/* =========================================================
   FirstPass — landing page
   Subject   import health-supplement registration (Vietnam)
   Idea      the Vietnamese sub-label (nhãn phụ) on an imported bottle:
             condensed bold type and heavy rules as on a supplement-facts
             panel; it appears once, large, in the hero
   Colour    brand palette from the reference design: cream #F5F2EB ground,
             navy #1C2B4A, sand #EEE9DE fields, gold #D4A94E marks,
             gold ink #7D5E22 text, red only for pitfalls
   Type      Lora 500 for display (brand serif), Be Vietnam Pro for text
   Layout    left aligned; hero copy left, photo + label right;
             sections alternate split and full width
   ========================================================= */

:root {
  --ink: #1C2B4A;
  --body: #4E5A6B;
  --muted: #5E6878;
  --line: #E2DCCF;
  --bg: #F5F2EB;
  --paper: #FFFFFF;
  --sage: #EEE9DE;
  --sage-2: #E6E0D2;

  --green: #1C2B4A;
  --green-dark: #14223B;
  --amber: #7D5E22;
  --amber-mark: #D4A94E;
  --amber-bg: #FBF6EA;
  --blue: #2A4F8F;
  --red: #B3261E;
  --bar-max: #7C89A4;

  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --radius: 10px;
  --header-h: 64px;
  --gutter-l: max(32px, env(safe-area-inset-left, 0px));
  --gutter-r: max(32px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 600; color: var(--ink); }
button { font: inherit; }
p, li, dd, td, figcaption { text-wrap: pretty; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: #D4A94E; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.wrap {
  max-width: calc(1240px + 64px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.section { padding-block: clamp(64px, 8vw, 112px); }
.tint { background: var(--sage); }
.dark { background: #1C2B4A; color: #F5F2EB; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.col-head { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 901px) {
  .cols > .col-head, .match-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.col-head p { color: var(--body); font-size: 17px; line-height: 1.65; max-width: 52ch; }
.dark .col-head p { color: #C9CFDA; }

.head-wide {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px clamp(32px, 6vw, 88px);
  align-items: end;
  margin-bottom: 44px;
}
.head-wide p { color: var(--body); font-size: 17px; line-height: 1.65; }

/* ---------- Type ---------- */

h1, h2, .sl-title, .n, .v-word {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.sub { margin-bottom: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-quiet { border-color: #CFC7B7; color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--green); color: var(--green); }
.btn-onDark { background: #D4A94E; color: #1C2B4A; }
.btn-onDark:hover { background: #E0B85F; }
.btn-onDark[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0; text-decoration: none; color: var(--green); }

.site-nav { display: flex; align-items: center; gap: 4px 26px; font-size: 15.5px; }
.site-nav a:not(.btn) { color: var(--body); text-decoration: none; padding: 6px 0; }
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav a.is-active { color: var(--green); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.12; text-wrap: balance; color: var(--ink); }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--body); max-width: 50ch; }
.hero-fine { font-size: 13.5px; color: var(--muted); max-width: 52ch; }

.hero-visual { position: relative; padding-bottom: 48px; }

.photo { position: relative; overflow: hidden; border-radius: 14px; background: var(--sage); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-hero { aspect-ratio: 3 / 4; margin-left: 18%; }
.photo-wide { aspect-ratio: 16 / 9; }
.photo-square { aspect-ratio: 1 / 1; margin-top: 16px; }

/* Sub-label: the one bold element */
.sublabel {
  position: absolute;
  left: 0; bottom: 0;
  width: min(330px, 78%);
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 16px 12px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 8px 8px 0 #D4A94E;
}
.sl-title { font-size: 26px; line-height: 1.1; padding-bottom: 6px; border-bottom: 8px solid var(--ink); }
.sl-sub { padding: 6px 0; font-size: 13px; color: var(--body); border-bottom: 3px solid var(--ink); }
.sl-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
}
.sl-rows li::after { content: "khớp"; font-weight: 500; color: var(--green); }
.sl-warn { padding-top: 8px; margin-top: -1px; border-top: 6px solid var(--ink); font-size: 12.5px; color: var(--body); }
.sl-warn strong { display: block; }

/* Route line */
.line {
  --y: 38px;
  position: relative;
  display: flex;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 22px 28px 24px;
  background: var(--sage);
  border-radius: 14px;
}
.line::before {
  content: "";
  position: absolute;
  left: 28px; right: 28px;
  top: calc(22px + var(--y));
  height: 2px;
  background: var(--green);
}
.st { flex: 1 1 0; }
.st a { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; padding-right: 8px; }
.st b { order: 1; height: 30px; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--green); font-variant-numeric: tabular-nums; }
.st a::before {
  content: "";
  order: 2;
  width: 14px; height: 14px;
  margin: 1px 0 12px;
  border-radius: 50%;
  background: var(--sage);
  border: 2.5px solid var(--green);
  position: relative;
  transition: background-color .15s ease;
}
.st span { order: 3; font-size: 14px; line-height: 1.35; color: var(--body); max-width: 11ch; }
.st a:hover::before { background: var(--green); }
.st a:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.gt { flex: 0 0 auto; padding: 0 20px 0 4px; }
.gt span { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; color: var(--amber); line-height: 1.3; white-space: nowrap; }
.gt span::before { content: ""; order: 2; width: 5px; height: 34px; margin: 2px 0 6px 4px; border-radius: 3px; background: var(--amber-mark); }
.gt small { order: 3; font-size: 13px; font-weight: 500; color: var(--body); }

/* ---------- Register table ---------- */

table { width: 100%; border-collapse: collapse; text-align: left; }
.reg, .docs { font-size: 15.5px; line-height: 1.55; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.reg thead th, .docs thead th {
  padding: 14px 16px 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
.reg tbody th, .reg tbody td,
.docs tbody th, .docs tbody td {
  padding: 16px 16px 16px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.reg tr > :first-child, .docs tr > :first-child { padding-left: 20px; }
.reg tr > :last-child, .docs tr > :last-child { padding-right: 20px; }
.reg tbody tr:last-child > *, .docs tbody tr:last-child > * { border-bottom: 0; }
.reg tbody th, .docs tbody th { font-weight: 600; }
.reg td:last-child { color: var(--body); }
.reg thead th:nth-child(1) { width: 30%; }
.reg thead th:nth-child(2) { width: 22%; }
#boi-canh .reg { border: 1px solid var(--line); }

[class^="st-"] { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
[class^="st-"]::before { content: ""; width: 9px; height: 9px; flex: none; }
.st-on { color: var(--green); }
.st-on::before { background: currentColor; border-radius: 50%; }
.st-date { color: var(--blue); }
.st-date::before { background: currentColor; }
.st-paused { color: var(--amber); }
.st-paused::before { height: 10px; border-inline: 3px solid currentColor; }
.st-draft { color: var(--muted); }
.st-draft::before { border: 1.5px solid currentColor; border-radius: 50%; }

.draft { margin-top: 28px; padding: 20px 22px; background: var(--sage); border-radius: var(--radius); }
.draft ul { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; font-size: 15.5px; color: var(--body); }
.draft li { padding-left: 18px; position: relative; }
.draft li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--amber-mark); }

/* ---------- Classifier ---------- */

.classifier { background: var(--paper); border-radius: 14px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; }
.choices legend { font-size: 20px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 13px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--body);
  font: 400 16px/1.45 var(--sans);
  text-align: left;
  cursor: pointer;
}
.choice:last-of-type { border-bottom: 1px solid var(--line); }
.choice::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #8A93A3; background: var(--paper); }
.choice:hover { color: var(--ink); }
.choice[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.choice[aria-pressed="true"]::before { border: 6px solid var(--green); }

.verdict { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); }
.v-word { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.1; }
.verdict h3 { margin-top: 8px; }
.verdict p:not(.v-word) { color: var(--body); }
.v-yes { background: #E6ECF5; }
.v-yes .v-word { color: var(--green); }
.v-other { background: #E6ECF6; }
.v-other .v-word { color: var(--blue); }
.v-maybe { background: var(--amber-bg); }
.v-maybe .v-word { color: var(--amber); }
.v-no { background: #F7E3E0; }
.v-no .v-word { color: var(--red); }
.js .verdict:not(.is-shown) { display: none; }

/* ---------- Steps ---------- */

.steps-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 6vw, 88px);
  align-items: end;
  margin-bottom: 44px;
}
.head-text { display: flex; flex-direction: column; gap: 16px; }
.head-text p { color: var(--body); font-size: 17px; line-height: 1.65; }

.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 340px);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.n { font-size: 44px; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.step-text h3 { padding-top: 4px; }
.step-text p { margin-top: 6px; color: var(--body); max-width: 60ch; }
.gate { background: var(--amber-bg); padding: 14px 16px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.gate h4 { font-size: 15px; font-weight: 700; color: var(--amber); margin-bottom: 2px; }

/* ---------- Docs ---------- */

.docs .num { width: 56px; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--green); line-height: 1.2; }
.docs thead th:nth-child(2) { width: 26%; }
.docs thead th:nth-child(4) { width: 28%; }
.docs td[data-l="Yêu cầu"] { color: var(--body); }
.pit { color: var(--red); }
.hot .pit { font-weight: 600; }
.pit-none { color: var(--muted); }

.match {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  gap: 24px clamp(32px, 6vw, 88px);
  align-items: start;
}
.match-head { grid-row: span 2; display: flex; flex-direction: column; gap: 10px; }
.match-head h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; line-height: 1.2; }
.match-head p { color: var(--body); }
.match-list { counter-reset: m; background: var(--paper); border-radius: var(--radius); padding: 8px 20px; }
.match-list li { counter-increment: m; display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line); }
.match-list li:last-child { border-bottom: 0; }
.match-list li::before { content: counter(m); font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--amber); }
.match-foot { grid-column: 2; align-self: start; max-width: 58ch; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Timeline ---------- */

.timeline { display: flex; flex-direction: column; gap: 16px; font-size: 15.5px; padding: clamp(20px, 3vw, 32px); background: var(--sage); border-radius: 14px; }
.tl-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tl-legend span { display: inline-flex; align-items: center; }
.sw { display: inline-block; width: 14px; height: 10px; margin-right: 6px; border-radius: 2px; }
.sw-min { background: var(--green); }
.sw-max { background: var(--bar-max); }

.tl-rows { display: flex; flex-direction: column; gap: 14px; }
.tl-row { display: grid; grid-template-columns: 250px minmax(0, 1fr) 190px; gap: 20px; align-items: center; }
.tl-label { font-weight: 600; }
.tl-value { color: var(--body); font-variant-numeric: tabular-nums; }
.tl-hot .tl-value { color: var(--red); font-weight: 600; }
.tl-track {
  display: flex;
  gap: 2px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(33.333% - .5px), var(--line) 0 calc(33.333% + .5px), transparent 0),
    linear-gradient(90deg, transparent calc(66.667% - .5px), var(--line) 0 calc(66.667% + .5px), transparent 0),
    var(--paper);
}
.tl-min, .tl-max { height: 100%; transform-origin: left; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tl-min { width: var(--min); background: var(--green); }
.tl-max { width: var(--max); background: var(--bar-max); transition-delay: .2s; }
.tl-row[style*="--max:0%"] .tl-max { display: none; }
.tl-axis { position: relative; height: 1.5em; margin: -4px 210px 0 270px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tl-axis span:nth-child(1) { left: 0; transform: none; }
.tl-axis span:nth-child(2) { left: 33.333%; }
.tl-axis span:nth-child(3) { left: 66.667%; }
.tl-axis span:nth-child(4) { left: auto; right: 0; transform: none; }
.js .timeline:not(.is-in) .tl-min,
.js .timeline:not(.is-in) .tl-max { transform: scaleX(0); }

.time-notes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 88px); margin-top: 56px; }
.time-notes h3 { margin-bottom: 10px; }
.facts div, .after div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.facts dt { color: var(--body); font-size: 15.5px; }
.facts dd { flex: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.after dt { font-weight: 600; }
.after dd { color: var(--body); font-size: 15.5px; margin-top: 2px; }

/* ---------- Scope ---------- */

.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scope > div { background: var(--paper); border-radius: 14px; padding: 24px; }
.scope > .limit { background: var(--amber-bg); }
.scope h3 { margin-bottom: 10px; }
.list-in li, .list-out li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.list-in li:last-child, .list-out li:last-child { border-bottom: 0; }
.list-in li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.list-out li { color: var(--body); }
.list-out li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 2px; background: var(--muted); }
.limit p { color: var(--ink); font-size: 15.5px; line-height: 1.65; }

/* ---------- Why ---------- */

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rules div { padding: 18px 20px; background: var(--sage); border-radius: var(--radius); }
.rules dt { font-weight: 600; }
.rules dd { color: var(--body); margin-top: 4px; }

/* ---------- Contact ---------- */

.dark h2 { color: #fff; }
.contact-list { margin-top: 12px; font-size: 15.5px; }
.contact-list div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid #3A4A68; }
.contact-list dt { color: #A3AEC0; }
.contact-list dd { overflow-wrap: anywhere; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; color: #F5F2EB; }
.req { font-weight: 400; color: #A3AEC0; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font: 16px/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input, .field select { height: 50px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px #D4A94E; }
.field [aria-invalid="true"] { border-color: #F28B82; }
.err { font-size: 13.5px; color: #FFC4BE; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-status { font-size: 14.5px; color: #C9CFDA; }
.form-status.is-ok { color: #A6E3C4; }
.form-status.is-error { color: #FFC4BE; }

/* ---------- Footer ---------- */

.site-footer { background: #14223B; color: #A3AEC0; }
.footer-inner {
  padding-top: 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  font-size: 13.5px;
  line-height: 1.6;
}
.footer-disclaimer { max-width: 580px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter-r) 20px var(--gutter-l);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s ease, visibility 0s linear .15s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .15s ease; }
  .site-nav a:not(.btn) { padding: 13px 0; border-top: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; min-height: 48px; }

  .step { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 280px); }
  .tl-row { grid-template-columns: 220px minmax(0, 1fr) 170px; }
  .tl-axis { margin-left: 240px; margin-right: 190px; }
  .line { padding-inline: 20px; }
  .line::before { left: 20px; right: 20px; }
}

@media (max-width: 900px) {
  .hero-grid, .cols, .head-wide, .steps-head, .match, .time-notes { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
  .match-foot { grid-column: auto; }
  .match-head { grid-row: auto; }
  .match { grid-template-rows: none; }
  .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope .limit { grid-column: 1 / -1; }
  .head-wide, .steps-head { margin-bottom: 32px; }

  .step { grid-template-columns: 64px minmax(0, 1fr); row-gap: 14px; }
  .gate { grid-column: 2; }

  .tl-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "label value" "track track"; gap: 6px 16px; }
  .tl-label { grid-area: label; white-space: nowrap; }
  .tl-value { grid-area: value; text-align: right; font-size: 14px; }
  .tl-track { grid-area: track; }
  .tl-axis { margin: -4px 0 0; }
}

@media (max-width: 760px) {
  .line { flex-direction: column; --x: 50px; padding: 14px 16px; }
  .line::before { left: 56px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .st a { flex-direction: row; align-items: center; padding: 6px 0; }
  .st b { height: auto; width: 26px; text-align: right; margin-right: 8px; }
  .st a::before { margin: 0 16px 0 0; }
  .st span { max-width: none; font-size: 15px; }
  .gt { padding: 6px 0; }
  .gt span { flex-direction: row; align-items: center; font-size: 14px; }
  .gt span::before { order: -1; width: 28px; height: 5px; margin: 0 14px 0 27px; }
  .gt small { margin-left: 6px; font-size: 14px; }
}

@media (max-width: 680px) {
  :root { --gutter-l: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px)); }

  .actions .btn { flex: 1 1 100%; }
  .hero-visual { padding-bottom: 0; }
  .photo-hero { margin-left: 0; aspect-ratio: 4 / 3; }
  .photo-hero img { object-position: 50% 45%; }
  .sublabel { position: relative; width: min(330px, 90%); margin: -36px 0 0 auto; box-shadow: 6px 6px 0 #D4A94E; }
  .scope, .form-row, .rules, .after, .draft ul { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .n { font-size: 34px; }
  .form-foot .btn { width: 100%; }
  .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  /* Tables -> stacked rows */
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: auto !important; }
  .stack tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack tbody th, .stack tbody td { padding: 0 !important; border: 0 !important; }
  .stack tbody th { font-size: 16.5px; margin-bottom: 6px; }
  .stack tbody td + td { margin-top: 6px; }
  .stack td[data-l]::before { content: attr(data-l); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
  .reg td[data-l="Trạng thái"]::before { display: none; }
  .docs tbody tr { display: grid; grid-template-columns: 30px minmax(0, 1fr); }
  .docs tbody tr > * { grid-column: 2; }
  .docs tbody .num { grid-column: 1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .timeline:not(.is-in) .tl-min,
  .js .timeline:not(.is-in) .tl-max { transform: none; }
}

@media print {
  .site-header, .nav-toggle, .form, .skip-link { display: none !important; }
  .dark { background: #fff !important; color: #000 !important; }
  .js .verdict:not(.is-shown) { display: flex; }
  .section { padding-block: 24px; }
}

/* =========================================================
   Multi-page additions
   ========================================================= */

.site-nav a[aria-current="page"]:not(.btn) { color: var(--green); font-weight: 600; }

/* Page head */
.page-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 5vw, 72px);
  align-items: end;
}
.page-head-solo { grid-template-columns: minmax(0, 1fr); }
.page-head-text { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.page-head h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.12; text-wrap: balance; }
.page-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--body); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--body); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--green); }

/* Steps page: heading without photo, step 3 photo */
.steps-head-solo { grid-template-columns: minmax(0, 1fr); }
.steps-head-solo .head-text { max-width: 720px; }
.step-photo { aspect-ratio: 16 / 9; border-radius: var(--radius); }

/* Links to deeper pages */
.link-more {
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.link-more:hover { text-decoration-thickness: 2px; }
.more-row { margin-top: 20px; }

/* Home: recent legal changes */
.changes { background: var(--paper); border-radius: 14px; padding: 4px 22px; }
.changes div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.changes div:last-child { border-bottom: 0; }
.changes dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-weight: 600; }
.changes dd { margin-top: 4px; color: var(--body); }

/* CTA band */
.cta-band { padding-block: clamp(48px, 6vw, 80px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-inner > div { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.cta-inner p { color: #C9CFDA; font-size: 17px; }

/* Contact page */
.prep-list { background: var(--paper); border-radius: 14px; padding: 6px 20px; margin-bottom: 32px; }
.prep-sub { margin-bottom: 12px; }
.tint .rules div { background: var(--paper); }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: 6px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq-item summary:hover { color: var(--green); }
.faq-a { padding: 0 0 20px; color: var(--body); max-width: 68ch; }
.faq-a a { color: var(--green); text-underline-offset: 3px; }

/* Policy */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 26px); margin: 36px 0 10px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 6px; }
.draft-note { padding: 14px 18px; background: var(--amber-bg); border-radius: var(--radius); color: var(--ink) !important; }
.prose-meta { margin-top: 32px; font-size: 14px; color: var(--muted) !important; }

/* Footer */
.footer-grid {
  padding-top: 48px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: 32px 48px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-name { font-family: var(--serif); font-weight: 600; font-size: 22px; color: #F5F2EB; margin-bottom: 6px; }
.footer-brand p + p { margin-top: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #E6E1D6; text-decoration: none; width: fit-content; }
.footer-links a:hover { color: #D4A94E; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.footer-contact dd { color: #E6E1D6; overflow-wrap: anywhere; }
.footer-disclaimer { grid-column: 1 / -1; max-width: none; padding-top: 20px; border-top: 1px solid #2E3D5C; font-size: 13px; }

@media (max-width: 900px) {
  .page-head-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .step-photo { grid-column: 2; max-width: 420px; }
}

@media (max-width: 680px) {
  .cta-inner .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-item summary { font-size: 17px; }
}
.page-head + .section { padding-top: clamp(32px, 4vw, 56px); }
