/* Bố cục: "hồ sơ dự án" — trang đọc rộng ~68 ký tự, phiếu thông tin kẻ dòng, nhãn nguồn dạng mã hồ sơ; navy + vàng đồng theo nhận diện kênh */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #0e1a2b;
  --muted: #56667a;
  --line: #d8dfe8;
  --navy: #0c2340;
  --navy-ink: #f3f5f8;
  --gold: #b88a35;
  --gold-soft: #f1e6cf;
  --link: #0f4c8a;
  --f-display: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1160px;
  --read: 68ch;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1422; --surface: #111e30; --ink: #e7edf4; --muted: #9aabc0; --line: #23344b;
    --navy: #07111f; --navy-ink: #e7edf4; --gold: #d8b468; --gold-soft: #2b2416; --link: #8cc0f2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1422; --surface: #111e30; --ink: #e7edf4; --muted: #9aabc0; --line: #23344b;
  --navy: #07111f; --navy-ink: #e7edf4; --gold: #d8b468; --gold-soft: #2b2416; --link: #8cc0f2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.22; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.tag { font: 500 0.74rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--navy); color: var(--navy-ink); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand b { font: 800 1.05rem/1.1 var(--f-display); display: block; }
.brand small { font: 500 0.7rem/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--navy-ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; opacity: 0.86; }
.nav a:hover, .nav a[aria-current] { opacity: 1; box-shadow: inset 0 -2px 0 var(--gold); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: #0c2340; }
.btn-ghost { border-color: currentColor; color: inherit; }
@media (max-width: 760px) { .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; } .site-head .btn { padding: 8px 14px; font-size: 0.9rem; } }

/* Hero */
.hero { background: var(--navy); color: var(--navy-ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 38%, transparent 85%), var(--hero-img) center/cover no-repeat; opacity: 0.55; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: end; padding-block: 56px 0; }
.hero-text { display: grid; gap: 20px; padding-bottom: 56px; }
.hero-text p.lead { font-size: 1.12rem; color: color-mix(in srgb, var(--navy-ink) 82%, transparent); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { align-self: end; justify-self: center; max-width: 380px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { max-width: 260px; } .hero-text { padding-bottom: 8px; } }

/* Phiếu hồ sơ */
.dossier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -1px; }
.dossier > div { padding: 18px 20px; display: grid; gap: 4px; align-content: start; border-left: 1px solid var(--line); }
.dossier > div:first-child { border-left: 0; }
.dossier b { font: 800 1.6rem/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.dossier span { font-size: 0.92rem; color: var(--muted); }
.dossier cite { font: 400 0.68rem/1.4 var(--f-mono); color: var(--muted); font-style: normal; letter-spacing: 0.03em; }
@media (max-width: 820px) { .dossier { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dossier > div:nth-child(3) { border-left: 0; } .dossier > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.lift { position: relative; z-index: 2; transform: translateY(-28px); }

section.block { padding-block: 56px; }
.head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 64ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; }
.pillar img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.pillar div { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.pillar:hover h3 { color: var(--link); }

.series { background: var(--navy); color: var(--navy-ink); border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.series > div { padding: 32px; display: grid; gap: 14px; align-content: center; }
.series img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
@media (max-width: 820px) { .series { grid-template-columns: 1fr; } .series > div { padding: 24px; } }

/* Mốc hạ tầng — thứ tự thời gian thật */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 24px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
.timeline li.future::before { border-style: dashed; border-color: var(--muted); }
.timeline time { font: 500 0.8rem/1.3 var(--f-mono); color: var(--gold); letter-spacing: 0.05em; }
.timeline li.future time { color: var(--muted); }

.cta-band { background: var(--gold-soft); border-block: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 36px; }
.phone { font: 800 clamp(1.6rem, 4vw, 2.2rem)/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.copy { font: 600 0.85rem var(--f-body); background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* Bài viết */
.crumbs { font-size: 0.86rem; color: var(--muted); padding-block: 18px 0; }
.crumbs a { color: var(--muted); }
.article-head { display: grid; gap: 14px; max-width: var(--read); padding-block: 18px 28px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--muted); flex-wrap: wrap; }
.byline img { width: 40px; height: 40px; border-radius: 50%; }
.prose { max-width: var(--read); display: grid; gap: 18px; }
.prose h2 { margin-top: 26px; scroll-margin-top: 90px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose figure { margin: 6px 0; display: grid; gap: 8px; }
.prose figure img { border-radius: var(--r); width: 100%; }
.prose figcaption { font-size: 0.86rem; color: var(--muted); }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 8px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--line) 35%, var(--surface)); }
td.src { font: 400 0.78rem/1.4 var(--f-mono); color: var(--muted); }
td b { font-variant-numeric: tabular-nums; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: 10px; }
.note { font-size: 0.92rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.author { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.author img { width: 84px; height: 84px; border-radius: 50%; }
.author div { display: grid; gap: 6px; }
.sources { font-size: 0.9rem; }
.layout { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 280px); gap: 48px; align-items: start; padding-bottom: 64px; }
.aside { position: sticky; top: 96px; display: grid; gap: 14px; }
.aside .card { background: var(--navy); color: var(--navy-ink); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .aside { position: static; } }
.fill { background: var(--gold-soft); border: 1px dashed var(--gold); padding: 0 6px; border-radius: 4px; font-size: 0.92em; }

/* Footer + nút nổi */
.site-foot { background: var(--navy); color: var(--navy-ink); padding-block: 40px 96px; font-size: 0.92rem; }
.site-foot .wrap { display: grid; gap: 18px; }
.site-foot a { color: var(--navy-ink); }
.site-foot .disclaimer { color: color-mix(in srgb, var(--navy-ink) 70%, transparent); max-width: 80ch; }
.float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: grid; gap: 10px; }
.float a { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font: 800 0.78rem var(--f-body); text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.float .zalo { background: #0068ff; color: #fff; }
.float .call { background: var(--gold); color: #0c2340; }
.nav a { white-space: nowrap; }
td:first-child { white-space: nowrap; font-weight: 600; }
