/* Phía người đọc. Ngôn ngữ hình thức lấy từ deck:
   — tiêu đề Roboto Condensed đậm, dòng dịch in nghiêng ngay dưới, rồi một
     đường kẻ tím mảnh chạy hết chiều ngang (dấu hiệu nhận ra nhất của deck);
   — số liệu lớn màu tím đậm;
   — nhãn màu cho biết TÍNH CHẤT con số (luật / dự thảo / đề xuất).
   Tinh gọn so với deck: không gradient, khung hộp chỉ dùng khi thật cần. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand-line);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* ------------------------------------------------------------------- khung */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 64px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.wordmark small {
  display: block;
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  gap: var(--s5);
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--font-display);
  font-size: var(--step-0);
  text-decoration: none;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--brand);
  border-bottom-color: var(--brand-line);
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 5px 10px;
  font: inherit;
  color: var(--ink-3);
  cursor: pointer;
}

.lang-toggle button[aria-pressed='true'] {
  background: var(--brand);
  color: #fff;
}

/* Câu miễn trừ trách nhiệm — luôn hiển thị. Deck lặp lại ý này ở gần như mọi
   slide; trên web gom về một chỗ cố định thay vì rải khắp trang. */
.disclaimer-bar {
  background: var(--brand-tint);
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.disclaimer-bar .shell {
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

.site-footer {
  margin-top: var(--s9);
  border-top: 1px solid var(--rule);
  /* padding-block, KHÔNG dùng `padding: … 0 …`: phần tử này cũng là .shell,
     đặt padding ngang = 0 sẽ xoá lề hai bên và chữ dính mép màn hình. */
  padding-block: var(--s6) var(--s7);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s6);
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.site-footer p + p {
  margin-top: var(--s2);
}

/* ------------------------------------------------------- tiêu đề mục (deck) */

.block {
  padding: var(--s8) 0 0;
}

.block--cont {
  padding-top: var(--s5);
}

.block__head {
  margin-bottom: var(--s6);
}

.block__eyebrow {
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-line);
  font-weight: 700;
  margin-bottom: var(--s2);
}

.block__title {
  font-size: var(--step-3);
}

/* Dòng dịch in nghiêng dưới tiêu đề — y như deck. Giữ ngay cả khi đang xem
   một ngôn ngữ: người đọc song ngữ nhận ra ngay thuật ngữ tương ứng. */
.block__alt {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-3);
  font-size: var(--step-1);
  margin-top: 2px;
}

.block__rule {
  height: 1px;
  background: var(--brand-line);
  margin-top: var(--s3);
}

.block__lead {
  margin-top: var(--s4);
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: var(--measure);
}

.page-head {
  padding: var(--s8) 0 0;
}

.page-head h1 {
  font-size: var(--step-4);
}

/* ------------------------------------------------------------------- hero */

.hero {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(var(--s6), 7vw, var(--s9)) clamp(var(--s5), 6vw, var(--s8));
  margin-top: var(--s6);
  position: relative;
  overflow: hidden;
}

/* Thay cho gradient tím–teal của bìa deck: một dải teal mảnh bên trái. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--c-teal);
}

.hero h1 {
  color: #fff;
  font-size: var(--step-5);
  line-height: 1.1;
  max-width: 22ch;
}

.hero__alt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: rgb(255 255 255 / 0.75);
  margin-top: var(--s3);
  max-width: 48ch;
}

.hero__sub {
  margin-top: var(--s5);
  font-size: var(--step-1);
  color: rgb(255 255 255 / 0.9);
  max-width: 60ch;
}

.hero__meta {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid rgb(255 255 255 / 0.25);
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.75);
}

/* ---------------------------------------------------------------- divider */

.divider-block {
  margin-top: var(--s8);
  padding: var(--s7) 0;
  border-top: 3px solid var(--brand);
}

.divider-block__kicker {
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-line);
  font-weight: 700;
}

.divider-block h2 {
  font-size: var(--step-4);
  margin-top: var(--s3);
}

.divider-block p {
  margin-top: var(--s3);
  color: var(--ink-3);
  font-size: var(--step-1);
  max-width: var(--measure);
}

/* ---------------------------------------------------------------- callout */

.callout {
  margin-top: var(--s6);
  border-left: 3px solid var(--draft);
  background: var(--surface);
  padding: var(--s4) var(--s5);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1);
  color: var(--ink-2);
  max-width: 100%;
}

.callout strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink-head);
  font-size: var(--step-0);
  margin-bottom: var(--s1);
}

.callout[data-kind='highlight'] {
  border-left-color: var(--proposal);
  background: #fff8f0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s5);
  align-items: center;
  font-size: var(--step-0);
}

.callout__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--proposal);
  white-space: nowrap;
}

.callout[data-kind='brand'] {
  border-left-color: var(--brand);
  background: var(--brand-tint);
}

/* ------------------------------------------------------ nhãn tính chất số */

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--draft);
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.4;
}

.tag[data-kind='law'] {
  background: var(--law);
}

.tag[data-kind='draft'] {
  background: var(--draft);
}

.tag[data-kind='proposal'] {
  background: var(--proposal);
}

/* Chú giải ba loại nhãn — hiện một lần ở đầu trang tổng quan. */
.legend {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s5);
  font-size: var(--step--1);
  color: var(--ink-3);
  align-items: center;
}

/* -------------------------------------------------------------- stat-band */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s4);
}

.stat {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s4) var(--s4) var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.stat .tag {
  align-self: flex-start;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  /* Trần 30px: vừa khít "≥ 2.000 tỷ đồng" trên một dòng khi xếp 4 cột. */
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  line-height: 1.15;
  color: var(--brand);
  margin-top: var(--s2);
}

.stat__label {
  font-weight: 500;
  color: var(--ink);
}

.stat__note {
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* --------------------------------------------------------- numbered-cards */

.numbered-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s5) var(--s5);
}

.ncard {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
}

.ncard__no {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  display: grid;
  place-items: center;
}

.ncard__title {
  font-size: var(--step-1);
  line-height: 1.3;
  margin-top: 5px;
}

.ncard__body {
  margin-top: var(--s2);
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* ------------------------------------------------------------- prose-cols */

.prose-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s5);
}

.pcol {
  border-top: 4px solid var(--col, var(--brand));
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: var(--s4) var(--s4) var(--s5);
}

.pcol__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--col, var(--brand));
  margin-bottom: var(--s4);
}

.pcol__item + .pcol__item {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}

.pcol__item h3 {
  font-size: var(--step-0);
  line-height: 1.35;
}

.pcol__item p {
  margin-top: var(--s1);
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* ---------------------------------------------------------- process-strip */

.process {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  gap: 4px;
  overflow-x: auto;
  padding-bottom: var(--s2);
  scrollbar-width: thin;
}

.process__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col, var(--brand));
  margin-bottom: var(--s3);
}

.pstep {
  background: var(--surface);
  border-top: 3px solid var(--col, var(--brand));
  padding: var(--s3);
  min-height: 72px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.pstep__no {
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: var(--col, var(--brand));
  font-weight: 700;
}

.pstep__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.3;
  color: var(--ink-head);
}

.pstep__desc {
  margin-top: var(--s1);
  font-size: var(--step--1);
  color: var(--ink-3);
  line-height: 1.45;
}

.pstep[data-active='true'] {
  background: var(--col, var(--brand));
}

.pstep[data-active='true'] .pstep__label,
.pstep[data-active='true'] .pstep__no,
.pstep[data-active='true'] .pstep__desc {
  color: #fff;
}

/* ------------------------------------------------------------------ tiers */

.tiers {
  display: grid;
  gap: var(--s5);
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s3);
  position: relative;
}

/* Nối các tầng bằng một vạch dọc giữa — đủ để đọc quan hệ trên–dưới mà
   không phải vẽ sơ đồ. */
.tier-row + .tier-row::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--s5));
  height: var(--s5);
  width: 1px;
  background: var(--rule);
}

.tier-box {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--col, var(--brand));
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  background: var(--paper);
}

.tier-box[data-fill='true'] {
  background: var(--col, var(--brand));
  border-color: var(--col, var(--brand));
}

.tier-box[data-fill='true'] * {
  color: #fff !important;
}

.tier-box__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink-head);
}

.tier-box__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step--1);
  color: var(--ink-3);
}

.tier-box__body {
  margin-top: var(--s2);
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* ------------------------------------------------------------- allocation */

.alloc {
  display: grid;
  gap: var(--s5);
}

.alloc__label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-head);
  margin-bottom: var(--s2);
}

.alloc__bar {
  display: flex;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  gap: 2px;
}

.alloc__seg {
  background: var(--col, var(--brand));
  color: #fff;
  padding: var(--s2) var(--s3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.alloc__pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1;
}

/* Nhãn phân đoạn nằm bên dưới thanh, không nhét vào trong — đoạn 5% quá hẹp
   để chứa chữ, và nhét vào thì chữ bị cắt. */
.alloc__keys {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin-top: var(--s3);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.alloc__key {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.alloc__swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--col, var(--brand));
  flex: none;
}

.alloc__notes {
  margin-top: var(--s5);
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  min-width: 560px;
}

.dtable th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--eyebrow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: var(--s3) var(--s4);
}

.dtable td {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--rule);
  vertical-align: top;
}

.dtable tr:nth-child(even) td {
  background: var(--surface-2);
}

/* ----------------------------------------------------------- đội ngũ (team) */

.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--s5);
}

.member {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.member__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s4);
  align-items: center;
}

.member__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: var(--step-2);
}

.member__name {
  font-size: var(--step-2);
}

.member__title {
  font-size: var(--step--1);
  color: var(--ink-3);
  margin-top: 2px;
}

.member__remit {
  background: var(--brand-tint);
  border-radius: var(--radius);
  padding: var(--s3);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: var(--step--1);
  line-height: 1.4;
}

.member__remit span {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.member__bio {
  margin: 0;
  padding-left: 1.1em;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.member__bio li + li {
  margin-top: var(--s2);
}

/* -------------------------------------------------- mạng lưới chuyên gia */

.experts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s3);
}

.expert {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s4);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
}

.expert__code {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.expert__field {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-head);
  line-height: 1.3;
}

.expert__loc {
  font-size: var(--step--1);
  color: var(--ink-3);
}

.expert__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  color: var(--brand);
}

.expert[data-status='searching'] {
  border-style: dashed;
}

.expert[data-status='searching'] .expert__code {
  background: var(--draft);
}

.expert[data-status='searching'] .expert__count {
  font-size: var(--step--1);
  color: var(--ink-3);
  font-weight: 400;
  font-style: italic;
}

/* ------------------------------------------------------------- lộ trình */

.workplan {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.wstep {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: center;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
}

.wstep__no {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.wstep__title {
  font-size: var(--step-1);
}

.wstep__desc {
  margin-top: 2px;
  font-size: var(--step--1);
  color: var(--ink-3);
}

.status {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid currentColor;
}

.status[data-status='not-started'] {
  color: var(--draft);
}

.status[data-status='in-progress'] {
  color: var(--proposal);
}

.status[data-status='done'] {
  color: #fff;
  background: var(--c-green);
  border-color: var(--c-green);
}

/* --------------------------------------------------------------- tài liệu */

.docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s4);
}

.doc {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.doc__label {
  font-size: var(--step-2);
}

.doc__desc {
  font-size: var(--step--1);
  color: var(--ink-2);
  flex: 1;
}

.doc__meta {
  font-size: var(--step--1);
  color: var(--ink-3);
}

.btn {
  appearance: none;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font: 700 var(--step-0) / 1 var(--font-display);
  padding: 11px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  align-self: flex-start;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.btn:hover {
  background: #fff;
  color: var(--brand);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* -------------------------------------------------------- trang đơn giản */

.plain {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--s6) var(--gutter);
}

.plain__card {
  width: min(460px, 100%);
}

.plain__card .block__rule {
  margin-bottom: var(--s5);
}

.field {
  margin-bottom: var(--s5);
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s2);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-line);
  outline: none;
}

.field__hint {
  font-size: var(--step--1);
  color: var(--ink-4);
  margin: var(--s2) 0 0;
}

.notice {
  padding: var(--s3) var(--s4);
  font-size: var(--step--1);
  margin-bottom: var(--s5);
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
}

.notice[data-kind='error'] {
  border-left-color: var(--danger);
  color: var(--danger);
  background: #fdf1f0;
}

.empty {
  color: var(--ink-4);
  font-size: var(--step--1);
  padding: var(--s6) 0;
}

.muted {
  color: var(--ink-3);
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .callout[data-kind='highlight'] {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }

  .tier-row + .tier-row::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .alloc__bar {
    height: 52px;
  }

  .alloc__pct {
    font-size: var(--step-0);
  }

  .wstep {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .wstep .status {
    grid-column: 2;
    justify-self: start;
  }

  .wstep__no {
    width: 32px;
    height: 32px;
  }
}

@media print {
  .site-header,
  .lang-toggle,
  .btn {
    display: none;
  }

  .hero {
    background: none;
    color: var(--ink);
    border: 2px solid var(--brand);
  }

  .hero h1,
  .hero__alt,
  .hero__sub,
  .hero__meta {
    color: var(--ink-head);
  }
}

/* ------------------------------------------------------ cửa vào /access */

.access__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s3);
}

.access__top .block__eyebrow {
  margin: 0;
}

.access__lead {
  margin: var(--s5) 0;
  color: var(--ink-2);
}

.access__note {
  margin-top: var(--s5);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.access__note + .access__note {
  margin-top: var(--s2);
}


/* ======================================================================
   ĐIỆN THOẠI
   ----------------------------------------------------------------------
   Nguyên tắc: không giấu nội dung sau cuộn ngang, header không chiếm quá
   một hàng, mỗi trang kết thúc bằng lối sang trang kế tiếp.
   ====================================================================== */

/* Nút mục lục và nút "xem đầy đủ" chỉ tồn tại ở màn hẹp. */
.menu-toggle,
.disclaimer-bar__more {
  display: none;
}

.lang-toggle {
  flex: none;
}

.disclaimer-bar__text {
  margin: 0;
}

/* Lối sang trang kế tiếp — mọi kích thước màn hình. */
.next-page {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  margin-top: var(--s8);
  padding: var(--s5) 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink-3);
  font-size: var(--step--1);
}

.next-page b {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--brand);
  text-align: right;
}

.next-page:hover b {
  text-decoration: underline;
}

/* Footer ngay sau lối "Tiếp theo" thì không cần khoảng cách lớn phía trên. */
.shell:has(.next-page) + .site-footer {
  margin-top: 0;
}

@media (max-width: 760px) {
  /* ---- header: đúng một hàng ---------------------------------------- */
  .site-header__inner {
    min-height: 56px;
    gap: var(--s3);
    position: relative;
  }

  .wordmark {
    font-size: 1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    appearance: none;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: 700 0.8125rem / 1 var(--font-display);
    padding: 0 10px;
    height: 34px;
    max-width: 42vw;
    cursor: pointer;
  }

  .menu-toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Mũi tên vẽ bằng viền — không dùng icon, đúng kỷ luật của bộ nhận diện. */
  .menu-toggle::after {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--fast) var(--ease);
  }

  .site-header.is-open .menu-toggle::after {
    transform: translateY(2px) rotate(-135deg);
  }

  /* Menu thả xuống toàn bề rộng, mỗi mục cao 48px cho dễ bấm. */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    /* left/right = 0 chứ không lùi thêm một khoảng lề: .site-header__inner cũng
       là .shell, vùng đệm của nó đã trải hết bề rộng màn hình. Lùi thêm sẽ
       làm trang tràn ngang 17px mỗi khi mở menu. */
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px -12px rgb(29 22 48 / 0.25);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--rule);
    border-left: 3px solid transparent;
    font-size: var(--step-1);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a[aria-current='page'] {
    border-bottom-color: var(--rule);
    border-left-color: var(--brand-line);
    background: var(--brand-tint);
  }

  /* ---- câu miễn trừ: 2 dòng, bấm để mở ------------------------------- */
  .disclaimer-bar.is-clamped .disclaimer-bar__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .disclaimer-bar__more {
    display: inline;
    appearance: none;
    border: 0;
    background: none;
    padding: 4px 0 0;
    font: 700 var(--step--1) / 1.4 var(--font-sans);
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
  }
}

@media (max-width: 640px) {
  /* ---- nhịp dọc gọn hơn --------------------------------------------- */
  .block {
    padding-top: var(--s7);
  }

  .block--cont {
    padding-top: var(--s4);
  }

  .block__head {
    margin-bottom: var(--s5);
  }

  .block__title {
    font-size: 1.5rem;
  }

  .block__alt {
    font-size: var(--step-0);
  }

  .block__lead {
    font-size: var(--step-0);
  }

  /* ---- bìa ------------------------------------------------------------ */
  .hero {
    margin-top: var(--s4);
    padding: var(--s6) var(--s5) var(--s5) calc(var(--s5) + 6px);
  }

  .hero h1 {
    font-size: 1.875rem;
    line-height: 1.15;
  }

  .hero__alt {
    font-size: var(--step-0);
  }

  .hero__sub {
    margin-top: var(--s4);
    font-size: var(--step-0);
  }

  .hero__meta {
    margin-top: var(--s5);
  }

  /* ---- thẻ số liệu gọn --------------------------------------------- */
  .stat-band {
    gap: var(--s3);
  }

  .stat {
    padding: var(--s3) var(--s4);
    gap: 2px;
  }

  .stat__value {
    font-size: 1.625rem;
  }

  /* ---- dải bước → danh sách dọc có đường nối -------------------------
     Trên desktop các bước nằm ngang; ở đây chuyển thành cột để không bước
     nào bị giấu ngoài mép phải và chữ không bị bóp trong cột 90px. */
  .process {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .pstep {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--s3);
    align-items: baseline;
    min-height: 0;
    background: none;
    border-top: 0;
    border-left: 3px solid var(--col, var(--brand));
    border-radius: 0;
    padding: var(--s3) var(--s4);
  }

  .pstep + .pstep {
    border-top: 1px solid var(--rule);
  }

  .pstep__no {
    grid-row: 1 / span 2;
  }

  .pstep__label,
  .pstep__desc {
    grid-column: 2;
  }

  /* ---- bảng → mỗi hàng một thẻ --------------------------------------- */
  .table-wrap {
    border: 0;
    overflow: visible;
  }

  .dtable {
    min-width: 0;
  }

  .dtable thead {
    display: none;
  }

  .dtable,
  .dtable tbody,
  .dtable tr,
  .dtable td {
    display: block;
    width: 100%;
  }

  .dtable tr {
    border: 1px solid var(--rule);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: var(--s2) var(--s4);
    margin-bottom: var(--s3);
  }

  .dtable tr:nth-child(even) td {
    background: none;
  }

  .dtable td {
    border: 0;
    padding: var(--s2) 0;
  }

  .dtable td[data-label]:not([data-label=''])::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-bottom: 2px;
  }

  /* ---- sơ đồ tầng, thẻ thành viên, chuyên gia ------------------------- */
  .tiers {
    gap: var(--s3);
  }

  .tier-box {
    padding: var(--s3);
  }

  .member {
    padding: var(--s4);
  }

  .expert {
    padding: var(--s3);
  }

  .divider-block {
    margin-top: var(--s7);
    padding: var(--s6) 0;
  }

  .divider-block h2 {
    font-size: 1.75rem;
  }

  .callout[data-kind='highlight'] {
    padding: var(--s4);
  }

  .next-page {
    margin-top: var(--s7);
    flex-direction: column;
    gap: var(--s1);
  }

  .next-page b {
    text-align: left;
  }

  /* ---- trang /access: bám trên, không căn giữa màn --------------------- */
  .plain {
    place-items: start center;
    padding-top: var(--s7);
  }
}
