/* ---------- HÀNH TRANG ĐI LÀM (dùng chung biến màu của landing.css) ---------- */
.ht .nav-list a.is-current { color: var(--brand); font-weight: 700; }

/* ánh xạ màu theo chủ đề */
[data-topic="finance"]   { --t-color: var(--topic-finance);   --t-bg: var(--topic-finance-bg);   --t-solid: var(--topic-finance-solid); }
[data-topic="career"]    { --t-color: var(--topic-career);    --t-bg: var(--topic-career-bg);    --t-solid: var(--topic-career-solid); }
[data-topic="workplace"] { --t-color: var(--topic-workplace); --t-bg: var(--topic-workplace-bg); --t-solid: var(--topic-workplace-solid); }
[data-topic="legal"]     { --t-color: var(--topic-legal);     --t-bg: var(--topic-legal-bg);     --t-solid: var(--topic-legal-solid); }
[data-topic="growth"]    { --t-color: var(--topic-growth);    --t-bg: var(--topic-growth-bg);    --t-solid: var(--topic-growth-solid); }
[data-topic="all"]       { --t-color: var(--brand);           --t-bg: var(--band);             --t-solid: #1565C0; }

/* hero: xanh đêm chuyển sang ánh bình minh ở chân hero */
.ht-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 12% 24%, rgba(255, 255, 255, 0.72) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 29% 16%, rgba(255, 255, 255, 0.55) 50%, transparent 100%),
    radial-gradient(1.7px 1.7px at 47% 22%, rgba(147, 197, 253, 0.75) 50%, transparent 100%),
    radial-gradient(1.4px 1.4px at 66% 14%, rgba(255, 255, 255, 0.65) 50%, transparent 100%),
    radial-gradient(1.6px 1.6px at 84% 28%, rgba(253, 230, 138, 0.75) 50%, transparent 100%),
    radial-gradient(ellipse 85% 52% at 50% 104%, rgba(251, 191, 36, 0.34) 0%, rgba(217, 119, 6, 0.14) 44%, transparent 72%),
    linear-gradient(168deg, #0B1D3A 0%, #12315E 58%, #1A4684 100%);
  color: #e8eefb;
  padding: 84px 0 64px;
  border-bottom: 1px solid color-mix(in srgb, var(--sunrise-fill) 32%, var(--line));
}
.ht-hero-orbit { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 180px; pointer-events: none; }
.ht-hero-in { position: relative; z-index: 1; }
.ht-hero .eyebrow { color: var(--sunrise-fill); }
.ht-hero h1 { color: #ffffff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; margin: 0 0 12px; }
.ht-tag { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.3rem, 3vw, 1.8rem); color: #fde68a; margin: 0 0 12px; font-style: italic; }
.ht-lead { max-width: 56ch; color: #d6e4ff; font-size: 1.08rem; margin: 0 0 26px; }
.ht-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ht-hero .btn-primary { background: linear-gradient(135deg, #FDE68A 0%, var(--sunrise-fill) 48%, var(--sunrise-2) 100%); background-color: var(--sunrise-fill); color: var(--sunrise-ink); border-color: var(--sunrise-fill); box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28); }
.ht-hero .btn-primary:hover { filter: brightness(1.04); color: var(--sunrise-ink); }
.ht-hero .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.06); }
.ht-hero .btn-outline:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; color: #ffffff; }
.ht-stats { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 38px 0 0; }
.ht-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 152px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(11, 29, 58, 0.56);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(5, 12, 28, 0.22);
}
.ht-stats b { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.1rem, 3.6vw, 2.75rem); line-height: 1; color: #ffffff; }
.ht-stats span { color: #d6e4ff; font-size: .88rem; }

.ht-sec { padding: 76px 0; }
.ht-band { background: var(--band); border-block: 1px solid var(--line); }
.ht-sub { font-size: 1.15rem; margin: 40px 0 14px; }
.ht-muted { color: var(--muted); font-size: .92rem; }
.ht-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); background: color-mix(in srgb, var(--card) 70%, transparent); }
.ht-empty p { margin: 0 0 8px; }
.ht-empty .btn { margin-top: 8px; }
.ht-warn { background: color-mix(in srgb, #f59e0b 14%, var(--card)); border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--line)); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.ht-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.ht-foot-link { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }

/* chương trình */
.ht-prog {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--sunrise-fill) 35%, var(--line));
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(10, 23, 48, 0.06), 0 22px 44px rgba(10, 23, 48, 0.1);
  padding: 32px 26px 26px;
}
.ht-prog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--sunrise-2) 0%, var(--sunrise-fill) 55%, #FDE68A 100%);
}
.ht-prog[data-topic] { border-left: 4px solid var(--t-color, var(--brand)); }
.ht-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #FDE68A 0%, var(--sunrise-fill) 52%, var(--sunrise-2) 100%);
  background-color: var(--sunrise-fill);
  color: var(--sunrise-ink);
  border-radius: 16px;
  padding: 18px 10px;
  align-self: start;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}
.ht-date b { font-family: 'Newsreader', Georgia, serif; font-size: 3rem; line-height: 1; }
.ht-date span { font-size: .88rem; text-transform: capitalize; font-weight: 700; }
.ht-date small { opacity: .9; font-weight: 700; }
.ht-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.ht-countdown { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--sunrise-fill); color: var(--sunrise-ink); font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: none; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28); }
.ht-topic-badge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; background: var(--t-bg, var(--band)); color: var(--t-color, var(--brand)); font-size: .76rem; font-weight: 700; letter-spacing: .01em; text-transform: none; }
.ht-prog h3 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 10px; }
.ht-prog p { margin: 0 0 8px; }
.ht-speaker { color: var(--muted); }
.ht-speaker b { color: var(--ink); }
.ht-when { font-weight: 600; }
.ht-place { color: var(--muted); font-size: .9rem; }
.ht-prog-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ht-prog-act .btn-primary { padding: 13px 26px; font-size: 1rem; }
.ht-archive { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* chủ đề */
.ht-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
@media (min-width: 900px) {
  .ht-topics { grid-template-columns: repeat(3, 1fr); }
}
.ht-topic {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-top: 4px solid var(--t-color, var(--brand));
  border-radius: 18px;
  padding: 22px 20px;
  cursor: pointer;
  min-height: 134px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, transform .18s, box-shadow .18s, background-color .18s;
}
.ht-topic:hover {
  border-color: var(--t-color, var(--brand));
  transform: translateY(-4px);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--t-color, var(--brand)) 18%, transparent);
}
.ht-topic.on {
  border-color: var(--t-color, var(--brand));
  background: var(--t-bg, var(--band));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-color, var(--brand)) 24%, transparent);
}
.ht-topic-hd { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; z-index: 1; }
.ht-topic-num {
  position: absolute;
  right: 16px;
  top: 6px;
  font-family: 'Newsreader', Georgia, serif;
  color: var(--t-color, var(--brand));
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  opacity: 0.13;
  pointer-events: none;
}
.ht-topic-ico-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--t-solid, var(--brand)) 0%, color-mix(in srgb, var(--t-solid, var(--brand)) 72%, #0a1730) 100%);
  background-color: var(--t-solid, var(--brand));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--t-solid, var(--brand)) 28%, transparent);
}
.ht-topic-ico { width: 22px; height: 22px; flex-shrink: 0; }
.ht-topic-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--t-solid, var(--brand));
  color: #ffffff;
  font-size: .88rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(10, 23, 48, 0.16);
}
.ht-topic b { font-size: 1.08rem; position: relative; z-index: 1; }
.ht-topic-desc { color: var(--muted); font-size: .86rem; line-height: 1.45; position: relative; z-index: 1; }

/* thẻ nội dung */
.ht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ht-grid > .ht-empty { grid-column: 1 / -1; }
.ht-exp-author { margin-top: auto !important; padding-top: 8px; font-size: .86rem !important; font-weight: 600; color: var(--ink) !important; }
.ht-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: transform .18s ease, border-color .18s ease;
}
.ht-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--t-color, var(--brand)) 45%, var(--line)); }
.ht-card[data-topic], .ht-post[data-topic] { border-left: 4px solid var(--t-color, var(--brand)); }
.ht-card-cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: -20px -20px 4px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: linear-gradient(135deg, var(--t-solid, var(--brand)) 0%, color-mix(in srgb, var(--t-solid, var(--brand)) 68%, #0a1730) 100%);
  background-color: var(--t-solid, var(--brand));
  color: #ffffff;
}
.ht-cover-ico { width: 32px; height: 32px; flex-shrink: 0; opacity: 0.95; }
.ht-cover-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ht-type-chip, .ht-dur-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(10, 23, 48, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
}
.ht-card h3, .ht-card h4 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.ht-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.ht-card-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.ht-card-ft .chip { margin-left: 0; }
.chip { gap: 5px; }
.ht-chip-ico { width: 14px; height: 14px; flex-shrink: 0; }
.ht-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ht-tag-topic { color: var(--t-color, var(--brand)); font-weight: 700; }
.ht-cardlink { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ht-cardlink:hover { color: var(--t-color, var(--brand)); text-decoration: underline; }
.ht-iconbtn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .84rem; color: var(--muted); cursor: pointer; min-height: 40px; }
.ht-iconbtn.on, .ht-iconbtn:hover { color: var(--t-color, var(--brand)); border-color: var(--t-color, var(--brand)); }
.ht-foryou { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px; }
.ht-foryou h3 { margin: 0 0 4px; font-size: 1.1rem; }
.ht-foryou p { margin: 0 0 10px; }
.ht-foryou-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ht-chipbtn { font: inherit; font-size: .9rem; background: var(--band); color: var(--brand); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.ht-chipbtn:hover { border-color: var(--brand); }

/* cộng đồng */
.ht-note { border-radius: 12px; padding: 12px 16px; font-size: .92rem; margin-bottom: 16px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.ht-note.local { border-style: dashed; }
.ht-com-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 16px; }
.ht-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.ht-tabs button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 38px; }
.ht-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.ht-sort { font-size: .86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.ht-sort select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.ht-com-act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ht-feed { display: grid; gap: 14px; }
.ht-post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; }
.ht-post h3 { margin: 0; font-size: 1.2rem; }
.ht-excerpt { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.ht-stat { display: flex; gap: 16px; margin: 4px 0 0; font-size: .84rem; color: var(--muted); }
.ht-pend { margin-left: 4px; }

/* bài đọc */
.ht-article h3 { font-size: 1.15rem; margin: 22px 0 6px; }
.ht-article p, .ht-article li { line-height: 1.7; }
.ht-article ul { padding-left: 1.2em; }
.ht-article li { margin-bottom: 6px; }

/* hộp thoại */
.ht-dlg { border: 0; padding: 0; background: transparent; width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); }
.ht-dlg::backdrop { background: rgba(10, 23, 48, .55); }
.ht-dlg-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.ht-dlg[data-topic] .ht-dlg-box { border-top: 4px solid var(--t-color, var(--brand)); }
.ht-dlg[data-topic] .ht-dlg-bd a:not(.btn) { color: var(--t-color, var(--brand)); }
.ht-dlg[data-topic] .btn-primary { background: var(--t-color, var(--brand)); border-color: var(--t-color, var(--brand)); color: #fff; }
.ht-dlg[data-topic] .btn-outline { border-color: color-mix(in srgb, var(--t-color, var(--brand)) 55%, var(--line)); color: var(--t-color, var(--brand)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .ht-dlg[data-topic] .btn-primary { color: #0a1730; }
}
:root[data-theme='dark'] .ht-dlg[data-topic] .btn-primary { color: #0a1730; }
.ht-dlg-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 8px; }
.ht-dlg-title { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.ht-x { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ht-dlg-bd { padding: 8px 22px 22px; overflow-y: auto; overscroll-behavior: contain; }
.ht-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; }
.ht-postbody { font-size: 1.02rem; line-height: 1.7; }
.ht-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.ht-danger { color: #b42318; border-color: color-mix(in srgb, #b42318 40%, var(--line)); }
.ht-cmt { border-top: 1px solid var(--line); padding: 10px 0; }
.ht-form { display: grid; gap: 8px; }
.ht-form label { font-weight: 600; font-size: .9rem; }
.ht-form input[type=text], .ht-form input[type=password], .ht-form select, .ht-form textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.ht-form textarea { resize: vertical; }
.ht-form input:focus, .ht-form select:focus, .ht-form textarea:focus, .ht-topic:focus-visible, .ht-tabs button:focus-visible, .ht-x:focus-visible, .ht-cardlink:focus-visible, .ht-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ht-chk { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.ht-form .btn { justify-self: start; }
.ht-rules { padding-left: 1.2em; }
.ht-rules li { margin-bottom: 8px; line-height: 1.6; }
.ht-admin-list { display: grid; gap: 12px; margin-top: 14px; }

.ht-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 200; max-width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); font-size: .94rem; }
.ht-toast[hidden] { display: none; }

/* tuyên ngôn */
.ht-manifesto {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 55% at 80% 105%, rgba(251, 191, 36, 0.22) 0%, transparent 70%),
    linear-gradient(160deg, #071124 0%, #0f254a 60%, #173463 100%);
  color: #e8eefb;
  padding: 84px 0;
  border-top: 2px solid color-mix(in srgb, var(--sunrise-fill) 40%, transparent);
}
.ht-man-in { position: relative; }
.ht-man-in::before {
  content: "“";
  position: absolute;
  top: -36px;
  right: 12px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(7rem, 14vw, 12rem);
  line-height: 1;
  color: var(--sunrise-fill);
  opacity: 0.14;
  pointer-events: none;
}
.ht-manifesto .eyebrow { color: var(--sunrise-fill); }
.ht-manifesto h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.15; max-width: 22ch; margin: 0 0 24px; }
.ht-manifesto blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--sunrise-fill); max-width: 70ch; color: #d6e4ff; }
.ht-manifesto blockquote p { margin: 0 0 14px; }
.ht-sign { margin: 28px 0 0; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: #cbd5e1; }

@media (max-width: 760px) {
  .ht-hero { padding: 52px 0 38px; }
  .ht-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ht-stats li { min-width: 0; padding: 12px; }
  .ht-sec { padding: 48px 0; }
  .ht-prog { grid-template-columns: 1fr; padding: 26px 18px 18px; }
  .ht-date { flex-direction: row; gap: 8px; justify-content: flex-start; padding: 10px 14px; }
  .ht-date b { font-size: 1.7rem; }
  .ht-com-act { margin-left: 0; }
  .ht-dlg-hd { padding: 16px 16px 6px; }
  .ht-dlg-bd { padding: 6px 16px 18px; }
}
@media (max-width: 480px) {
  /* Giữ 3 ô cạnh nhau trên điện thoại để không đẩy nội dung chính xuống quá sâu */
  .ht-stats li { padding: 10px 10px; }
  .ht-stats span { font-size: .78rem; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) { .ht-topic, .ht-card { transition: none; } }
