/* Be Vietnam Pro (SIL Open Font License 1.1, xem OFL.txt) - tu host, khong goi Google Fonts */
/* vietnamese */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* latin-ext */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/be-vietnam-pro-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/be-vietnam-pro-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* vietnamese */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/be-vietnam-pro-600-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* latin-ext */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/be-vietnam-pro-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/be-vietnam-pro-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* vietnamese */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/be-vietnam-pro-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* latin-ext */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/be-vietnam-pro-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/be-vietnam-pro-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* vietnamese */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/be-vietnam-pro-800-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* latin-ext */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/be-vietnam-pro-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/be-vietnam-pro-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* site.css (v2) - giao dien website Lien doan Taekwondo Viet Nam. Nguon chuan cua token: DESIGN.md */

/* ============ 1. TOKEN ============ */
:root {
  /* bang mau goc (nhan dien) */
  --c-navy-900: #0B1F4D; --c-navy-800: #12306F; --c-navy-700: #1A3E8F;
  --c-blue-700: #1E40AF; --c-blue-600: #1D4ED8;
  --c-red-600: #DA251D; --c-red-700: #B91C14; --c-red-800: #991B1B;
  --c-gold-500: #F4B400;
  --c-slate-900: #0F172A; --c-slate-700: #334155; --c-slate-600: #475569; --c-slate-200: #E3E8F2; --c-slate-50: #F4F6FB; --c-white: #FFFFFF;
  /* vai tro mau (giao dien sang) */
  --bg: var(--c-white); --surface: var(--c-white); --surface-2: var(--c-slate-50);
  --text: var(--c-slate-900); --text-2: var(--c-slate-700); --muted: var(--c-slate-600); --heading: var(--c-navy-900);
  --border: var(--c-slate-200); --link: var(--c-blue-700); --link-hover: var(--c-navy-900);
  --accent: var(--c-red-600); --accent-hover: var(--c-red-700); --accent-text: var(--c-red-800); --on-accent: var(--c-white);
  --focus: var(--c-navy-900); --focus-halo: var(--c-gold-500);
  --note-bg: #FFF6DD; --note-border: #EED48A; --mark-bg: #FFE38A; --mark-text: #1A1300;
  --ok-bg: #E3F6EA; --ok-text: #14532D; --off-bg: #EEF0F4; --off-text: #475569;
  --hero-text-2: #DBE4FF; --hero-text-3: #C7D4FF; --tree-line: #9FB0DB;
  --shadow-1: 0 10px 24px rgba(11, 31, 77, .10); --shadow-2: 0 16px 40px rgba(11, 31, 77, .14);
  /* chu */
  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-xs: 13px; --fs-sm: 14px; --fs-base: 16px; --fs-md: 17px; --fs-lg: 18px; --fs-xl: 20px;
  --fs-2xl: clamp(24px, 3vw, 32px); --fs-3xl: clamp(28px, 4vw, 42px); --fs-4xl: clamp(34px, 5vw, 58px);
  --lh: 1.65; --lh-tight: 1.25; --measure: 75ch;
  /* khoang cach (goc 4px) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  /* bo goc */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  /* lop chong */
  --z-sticky: 20; --z-header: 50; --z-overlay: 60; --z-toast: 70; --z-skip: 100;
  /* chuyen dong */
  --dur-fast: 150ms; --dur: 220ms; --ease-out: cubic-bezier(.2, .8, .2, 1);
  /* bo cuc */
  --hdr: 72px; --maxw: 1200px; --tap: 44px;
}
/* giao dien toi */
[data-theme="dark"] {
  --bg: #0A1330; --surface: #0F1B3D; --surface-2: #132250;
  --text: #E6EBF7; --text-2: #C9D2EA; --muted: #A8B3D1; --heading: #F1F4FC;
  --border: #26386A; --link: #9DB8FF; --link-hover: #FFFFFF;
  --accent-text: #FF9C94; --focus: var(--c-gold-500); --focus-halo: rgba(244, 180, 0, .35);
  --note-bg: #2A2410; --note-border: #5C4B14; --mark-bg: #8A6A00; --mark-text: #FFFFFF;
  --ok-bg: #12351F; --ok-text: #A7F3C0; --off-bg: #1B2A55; --off-text: #A8B3D1; --tree-line: #3F5592;
  --shadow-1: 0 10px 24px rgba(0, 0, 0, .35); --shadow-2: 0 16px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ============ 2. NEN TANG ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + var(--sp-4)); }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh); color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { line-height: var(--lh-tight); margin: 0; }
p { margin: 0 0 var(--sp-3); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); border-radius: 4px; }
.home-hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--c-gold-500); box-shadow: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
.nw, .ref { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.skip { position: absolute; left: var(--sp-3); top: -60px; z-index: var(--z-skip); background: var(--c-gold-500); color: var(--c-slate-900); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: var(--sp-3); }
main:focus { outline: none; box-shadow: none; }
mark { background: var(--mark-bg); color: var(--mark-text); border-radius: 3px; padding: 0 2px; }

/* ============ 3. HEADER ============ */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--bg); border-bottom: 1px solid var(--border); } /* nen dac: chu phia duoi khong hien qua header */
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: var(--sp-4); }
.logo { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--heading); flex: 0 1 auto; min-width: 0; }
.logo-mark, .logo-img { flex: none; }
.logo:hover { color: var(--heading); }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 44px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: var(--fs-lg); letter-spacing: 1px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 15px; font-weight: 800; }
.logo-text span { font-size: var(--fs-xs); font-weight: 700; color: var(--accent-text); letter-spacing: 2px; text-transform: uppercase; }
.logo-img { height: 46px; width: auto; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo-text span { color: #FFB4AE; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: var(--sp-1); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-3); border-radius: var(--r-md); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.nav-link:hover, .nav-link[aria-current] { color: var(--link); background: var(--surface-2); }
.nav-link[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r-md) var(--r-md) 0 0; }
.sub-toggle { display: none; }
.sub { list-style: none; position: absolute; top: 100%; left: 0; min-width: 250px; padding: var(--sp-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.dismissed .sub { opacity: 0; visibility: hidden; } /* Escape an menu con (site.js) */
.sub a[aria-current="page"] { color: var(--link); font-weight: 700; }
.sub a { display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-3); border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 15px; }
.sub a:hover { background: var(--surface-2); color: var(--link); }
.header-tools { display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-md); background: var(--surface-2); color: var(--heading); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.icon-btn:hover { background: var(--border); }
.icon-btn .ic { width: 22px; height: 22px; }
.only-dark, [data-theme="dark"] .only-light { display: none; }
[data-theme="dark"] .only-dark { display: block; }
.nav-toggle { display: none; }
.nav-toggle .when-open, .nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: block; }

/* ============ 4. HERO ============ */
.home-hero, .page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(29, 78, 216, .55), transparent 60%), linear-gradient(120deg, var(--c-navy-900) 0%, var(--c-navy-800) 60%, var(--c-navy-700) 100%); }
.home-hero a, .page-hero a { color: #fff; }
.home-hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.home-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--c-red-600) 0 60%, var(--c-gold-500) 60% 100%); pointer-events: none; } /* vach co do - vang o day */
.home-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: var(--sp-12); align-items: center; padding-top: 80px; padding-bottom: 88px; }
/* nhan ky niem 30 nam */
.hh-badge { display: inline-flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); padding: 5px 16px 5px 5px; border-radius: var(--r-pill); background: rgba(244, 180, 0, .12); border: 1px solid rgba(244, 180, 0, .5); color: #FFE7A3; font-weight: 700; font-size: var(--fs-sm); letter-spacing: .5px; }
.hh-badge span { padding: 3px 12px; border-radius: var(--r-pill); background: var(--c-gold-500); color: var(--c-navy-900); font-weight: 800; }
/* khoi anh ky niem chuong: 2 the nho xep doc ben trai, the lon "30 nam" ben phai; giu nguyen ti le tung anh */
.hh-media { position: relative; margin: 0; }
.hh-media::before { content: ""; position: absolute; inset: 6% 0 18% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 180, 0, .32), rgba(244, 180, 0, 0)); pointer-events: none; }
.trophies { position: relative; display: flex; align-items: center; gap: 14px; }
.t-col { flex: 0 0 28%; display: flex; flex-direction: column; gap: 14px; }
.t { display: block; overflow: hidden; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .2); background: #0A0F1E; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.t img { display: block; width: 100%; height: auto; }
.t-big { flex: 1 1 0; border-color: rgba(244, 180, 0, .6); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 4px rgba(244, 180, 0, .14); }
.hh-media figcaption { position: relative; margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--hero-text-2); text-align: center; text-wrap: balance; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--hero-text-3); margin-bottom: var(--sp-4); text-wrap: balance; }
.home-hero h1 { font-size: clamp(34px, 3.7vw, 52px); font-weight: 800; letter-spacing: -1px; margin-bottom: var(--sp-5); text-wrap: balance; } /* 2 dong tren may tinh: "Lien doan Taekwondo / Viet Nam" */
.home-hero .lead { font-size: var(--fs-lg); color: var(--hero-text-2); max-width: 640px; margin-bottom: var(--sp-8); }
.btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; padding: var(--sp-3) var(--sp-6); border-radius: var(--r-pill); border: 0; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.btn-red, .btn-red:hover { color: var(--on-accent); }
.btn-red { background: var(--accent); }
.btn-red:hover { background: var(--accent-hover); }
.btn-red:active { transform: translateY(1px); }
.btn-ghost { color: #fff; background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: #fff; color: var(--c-navy-900); }
.btn-outline { background: var(--surface); color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--link); color: var(--link); }
.page-hero .container { position: relative; padding-top: var(--sp-10); padding-bottom: var(--sp-10); }
.page-hero h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.5px; text-wrap: balance; max-width: 30ch; }
.page-hero .lead { color: var(--hero-text-2); margin: var(--sp-3) 0 0; max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sp-2); font-size: var(--fs-sm); margin-bottom: var(--sp-3); color: var(--hero-text-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs > *:not(:first-child)::before { content: "›"; margin-right: var(--sp-2); opacity: .6; }

/* ============ 5. SECTION & THANH PHAN ============ */
.section { padding: var(--sp-16) 0; }
.section.alt { background: var(--surface-2); }
.sec-title { position: relative; font-size: var(--fs-2xl); font-weight: 800; color: var(--heading); padding-left: 18px; margin-bottom: var(--sp-8); }
.sec-title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 6px; border-radius: 3px; background: var(--accent); }
.sec-lead { color: var(--muted); max-width: var(--measure); margin: calc(-1 * var(--sp-3)) 0 var(--sp-8); }
.h3 { font-size: var(--fs-xl); color: var(--heading); margin: var(--sp-8) 0 var(--sp-4); }
.more { margin-top: var(--sp-6); }
.more .ref { white-space: normal; }
/* lien ket dung rieng (khong nam trong cau): vung cham 44px nhu quy dinh DESIGN.md */
.more .ref, .placeholder .ref, .bullets.links a, .table.kv td a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); }
.ref { color: var(--link); font-weight: 700; text-decoration: underline; }
.source { display: flex; align-items: flex-start; gap: var(--sp-2); margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--muted); }
.source .ic { margin-top: 3px; }
.pending { color: var(--muted); font-style: italic; }
.note { display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--note-bg); border: 1px solid var(--note-border); }
.note .ic { margin-top: 3px; color: var(--accent-text); }

.grid { display: grid; gap: var(--sp-5); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.grid.top { align-items: start; margin-top: var(--sp-8); }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); color: inherit; text-decoration: none; }
.section:not(.alt) .card { background: var(--surface-2); border-color: transparent; }
a.card { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
a.card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-1); }
.card h3 { font-size: var(--fs-lg); color: var(--heading); margin-bottom: var(--sp-2); }
.card p { color: var(--text-2); margin: 0; }
.card .n { display: inline-block; font-weight: 800; color: var(--accent-text); letter-spacing: 1px; margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.card.big { padding: var(--sp-8); }
.feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); margin-bottom: var(--sp-4); }
.feat-ic .ic { width: 22px; height: 22px; }
.tag { display: inline-block; background: var(--c-blue-700); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 4px var(--sp-3); border-radius: var(--r-pill); margin-bottom: var(--sp-3); }
.tag-red { background: var(--c-red-700); }
.org { display: flex; flex-direction: column; gap: var(--sp-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); color: inherit; text-decoration: none; }
.org b { display: flex; align-items: center; gap: var(--sp-2); font-size: 28px; color: var(--heading); letter-spacing: 1px; }
.org .ext { width: 18px; height: 18px; color: var(--muted); }
.org span { color: var(--muted); font-size: 15px; }
a.org { transition: border-color var(--dur-fast) var(--ease-out); }
a.org:hover { border-color: var(--link); color: inherit; }
.checklist ul { list-style: none; margin-top: var(--sp-2); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) 0; border-top: 1px solid var(--border); }
.checklist li .ic { margin-top: 4px; color: var(--c-blue-700); }
[data-theme="dark"] .checklist li .ic { color: var(--link); }
.leader .role { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); margin-bottom: var(--sp-1); }

.numlist { list-style: none; counter-reset: n; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-8); }
.numlist > li { counter-increment: n; position: relative; padding: var(--sp-4) 0 var(--sp-4) 48px; border-top: 1px solid var(--border); }
.numlist > li::before { content: counter(n); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--c-navy-900); color: #fff; font-weight: 700; font-size: var(--fs-sm); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .numlist > li::before { background: var(--c-blue-700); }
.numlist.one, .grid .numlist { grid-template-columns: 1fr; }
.sublist { list-style: none; margin-top: var(--sp-2); }
.sublist li { padding: var(--sp-1) 0 var(--sp-1) var(--sp-2); }
.bullets { list-style: none; }
.bullets li { position: relative; padding: var(--sp-3) 0 var(--sp-3) 22px; border-top: 1px solid var(--border); }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); max-width: 520px; }
.section:not(.alt) .chips li { background: var(--surface-2); border-color: transparent; }
.chips b { color: var(--accent-text); }
.quote { border-left: 6px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: var(--sp-6) var(--sp-8); font-size: var(--fs-md); max-width: 90ch; }
.placeholder { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); border: 2px dashed var(--tree-line); border-radius: var(--r-lg); padding: var(--sp-8); text-align: center; background: var(--surface); }
.placeholder > .ic { width: 32px; height: 32px; color: var(--muted); }
.placeholder strong { font-size: var(--fs-lg); color: var(--heading); }
.placeholder p { color: var(--muted); margin: 0; max-width: 60ch; }

.full, .faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.full summary, .faq-item summary { cursor: pointer; list-style: none; position: relative; min-height: var(--tap); padding: var(--sp-3) 56px var(--sp-3) var(--sp-4); font-weight: 700; color: var(--link); display: flex; align-items: center; }
.faq-item summary { color: var(--heading); }
.full summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.full summary::after, .faq-item summary::after { content: "+"; position: absolute; right: var(--sp-3); top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--heading); text-align: center; line-height: 30px; font-size: 20px; }
.full[open] summary::after, .faq-item[open] summary::after { content: "\2013"; }
.full summary:hover, .faq-item summary:hover { text-decoration: underline; }
.full-body { padding: 0 var(--sp-4) var(--sp-4); }
.full-body p, .dieu p { margin: 6px 0; }
.full-body p.d, .dieu p.d, .full-body p.c, .dieu p.c { padding-left: var(--sp-6); }
.full-body p.g, .dieu p.g { padding-left: var(--sp-12); }
.faq { display: grid; gap: var(--sp-3); max-width: 90ch; }
.faq-a { padding: 0 var(--sp-4) var(--sp-4); color: var(--text-2); }
.faq-src { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.table th, .table td { text-align: left; padding: var(--sp-4); border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { background: var(--c-navy-900); color: #fff; font-weight: 700; }
.table.kv th { width: 220px; background: var(--surface-2); color: var(--heading); }
.table.kv td { overflow-wrap: anywhere; } /* email dai khong day bang ra ngoai man hinh 320px */
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table tr.old td { color: var(--muted); }
.dl { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 var(--sp-4); border-radius: var(--r-sm); background: var(--c-blue-700); color: #fff; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; margin: 2px; transition: background-color var(--dur-fast) var(--ease-out); }
.dl:hover { background: var(--c-navy-900); color: #fff; }
.status { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.status.ok { background: var(--ok-bg); color: var(--ok-text); }
.status.off { background: var(--off-bg); color: var(--off-text); }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.steps li { counter-increment: s; position: relative; background: var(--surface-2); border-radius: var(--r-lg); padding: 60px var(--sp-5) var(--sp-5); }
.steps li::before { content: counter(s); position: absolute; left: var(--sp-5); top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: var(--fs-lg); color: var(--heading); }
.steps span { color: var(--muted); }

.tabs { position: sticky; top: var(--hdr); z-index: var(--z-sticky); background: var(--bg); border-bottom: 1px solid var(--border); }
.tabs .container { display: flex; gap: var(--sp-2); overflow-x: auto; padding-top: var(--sp-2); padding-bottom: var(--sp-2); scrollbar-width: thin; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--surface-2); color: var(--heading); font-weight: 600; text-decoration: none; font-size: 15px; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.tabs a:hover, .tabs a.is-active { background: var(--c-navy-900); color: #fff; }
[data-theme="dark"] .tabs a:hover, [data-theme="dark"] .tabs a.is-active { background: var(--c-blue-700); }
/* trang co thanh muc dinh: phan dem cuon gom ca header va thanh muc -> neo va o dang focus khong bi che (WCAG 2.4.11) */
html:has(.tabs) { scroll-padding-top: calc(var(--hdr) + 62px + var(--sp-4)); }

.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.doc { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: inherit; text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.doc:hover { border-color: var(--link); box-shadow: var(--shadow-1); }
.doc-ic { flex: none; width: 52px; height: 56px; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.doc-ic .ic { width: 22px; height: 22px; }
.doc-ic small { font-size: 10px; font-weight: 800; letter-spacing: .5px; }
.doc strong { display: block; color: var(--heading); line-height: 1.35; }
.doc small { color: var(--muted); }
.doc .doc-ic small { color: var(--on-accent); }
.doc { flex-wrap: wrap; }
.doc .doc-t { flex: 1 1 200px; min-width: 0; }
.doc .dl-pair { margin-left: auto; }
.dl-pair { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: top; }
.dl-pair .dl { margin: 0; }
.dl.dl-view { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px var(--link); }
.dl.dl-view:hover { background: var(--surface-2); color: var(--link); }

/* tin tuc */
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.news-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-body { padding: var(--sp-5); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-2); }
.news-meta .tag { margin: 0; }
.news-meta time { display: inline-flex; align-items: center; gap: 6px; }
.news-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.news-card h3 a { color: var(--heading); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; color: var(--link); }
.news-card p { color: var(--text-2); margin: 0; }
.pager { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-8); }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); border-radius: var(--r-md); border: 1px solid var(--border); text-decoration: none; font-weight: 700; }
.pager span[aria-current] { background: var(--c-navy-900); color: #fff; border-color: var(--c-navy-900); }
.prose { max-width: var(--measure); font-size: var(--fs-md); }
.prose h2 { font-size: var(--fs-xl); color: var(--heading); margin: var(--sp-8) 0 var(--sp-3); }
.prose h3 { font-size: var(--fs-lg); color: var(--heading); margin: var(--sp-6) 0 var(--sp-2); }
.prose ul, .prose ol { padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
.prose li { margin: var(--sp-1) 0; }
.prose blockquote { margin: var(--sp-5) 0; padding: var(--sp-3) var(--sp-5); border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose figure { margin: var(--sp-6) 0; }
.prose figure img, .lead-img img { border-radius: var(--r-md); }
.prose figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-8) 0; }

/* ============ 6. SO DO TO CHUC (cay) ============ */
.tree { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-8) var(--sp-4); overflow-x: auto; }
.tree ul { list-style: none; display: flex; justify-content: center; position: relative; padding-top: 28px; }
.tree > ul { padding-top: 0; }
@media (min-width: 901px) { .tree > ul { width: max-content; min-width: 100%; } }
.tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px var(--sp-2) 0; }
.tree > ul > li { padding-top: 0; }
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 28px; border-top: 2px solid var(--tree-line); }
.tree li::after { right: auto; left: 50%; border-left: 2px solid var(--tree-line); }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 2px solid var(--tree-line); border-radius: 0 10px 0 0; }
.tree li:first-child::after { border-radius: 10px 0 0 0; }
.tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 28px; border-left: 2px solid var(--tree-line); }
.node { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: 250px; padding: var(--sp-4); background: var(--surface); border: 2px solid var(--c-blue-600); border-radius: 14px; color: var(--heading); font-weight: 800; text-decoration: none; line-height: 1.3; transition: box-shadow var(--dur-fast) var(--ease-out); }
.node small { font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.node.top { background: var(--c-navy-900); border-color: var(--c-navy-900); color: #fff; }
.node.top small { color: var(--hero-text-3); }
.node.side { border-style: dashed; border-color: var(--accent); color: var(--accent-text); }
.node.sm { width: 220px; }
.node:hover { box-shadow: var(--shadow-1); color: var(--heading); }
.node.top:hover { color: #fff; }
[data-theme="dark"] .node.top { background: var(--c-blue-700); border-color: var(--c-blue-700); }

/* ============ 7. TOAN VAN DIEU LE + CONG CU DOC ============ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-header) + 1); pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.charter-head { text-align: center; margin-bottom: var(--sp-10); }
.charter-head .t { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--heading); line-height: 1.4; text-wrap: balance; }
.charter-head .s { font-style: italic; color: var(--muted); text-wrap: balance; }
.meta { list-style: none; display: inline-flex; flex-direction: column; gap: var(--sp-1); text-align: left; margin: var(--sp-2) 0 var(--sp-6); }
.charter-head .docs { max-width: 900px; margin: 0 auto; text-align: left; }
.charter-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-8); padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.search { flex: 1 1 360px; display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-3); background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md); color: var(--muted); }
.search:focus-within { border-color: var(--link); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); padding: var(--sp-2) 0; outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search-status { margin: 0; font-size: var(--fs-sm); color: var(--muted); flex: 1 1 100%; order: 3; }
.search-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.charter { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-12); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + var(--sp-4)); max-height: calc(100dvh - var(--hdr) - var(--sp-8)); overflow: auto; border: 1px solid var(--border); border-radius: 14px; padding: var(--sp-4); font-size: var(--fs-sm); line-height: 1.45; background: var(--surface); }
.toc > summary { list-style: none; font-weight: 800; color: var(--heading); margin-bottom: var(--sp-2); cursor: default; }
.toc > summary::-webkit-details-marker { display: none; }
@media (min-width: 1025px) { .toc > summary { pointer-events: none; } } /* desktop: muc luc luon mo */
.toc ul { list-style: none; }
.toc > ul > li { margin-top: var(--sp-3); }
.toc ul ul { margin: var(--sp-1) 0 0 var(--sp-2); }
.toc a { display: block; padding: 7px 6px; border-radius: 6px; color: var(--text); text-decoration: none; }
.toc ul ul a { color: var(--muted); }
.toc a:hover, .toc a.is-active { background: var(--surface-2); color: var(--link); }
.toc li.is-hidden { display: none; }
.charter-body { max-width: 78ch; }
.chuong { margin-bottom: var(--sp-10); }
.chuong h2 { text-align: center; font-size: var(--fs-xl); color: var(--heading); margin: var(--sp-2) 0 var(--sp-6); text-wrap: balance; }
.chuong h2 span { display: block; font-size: 15px; letter-spacing: 1px; color: var(--accent-text); margin-bottom: var(--sp-1); }
.dieu { margin-bottom: var(--sp-6); }
.dieu-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.dieu h3 { font-size: var(--fs-lg); color: var(--heading); }
.copy-link { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); margin: -10px -8px 0 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; transition: opacity var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.dieu:hover .copy-link, .copy-link:focus-visible { opacity: 1; }
.copy-link:hover { background: var(--surface-2); color: var(--link); opacity: 1; }
.dieu:target { background: color-mix(in srgb, var(--c-gold-500) 14%, transparent); border-radius: 10px; box-shadow: 0 0 0 12px color-mix(in srgb, var(--c-gold-500) 14%, transparent); }
.dieu.is-hidden, .chuong.is-hidden { display: none; }
.no-result { display: flex; gap: var(--sp-2); align-items: center; color: var(--muted); padding: var(--sp-6); border: 2px dashed var(--border); border-radius: var(--r-md); }

/* ============ 7b. LICH THI DAU ============ */
.cal-stats { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.cal-stats li { display: flex; align-items: baseline; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); background: var(--surface-2); }
.section.alt .cal-stats li { background: var(--surface); border: 1px solid var(--border); }
.cal-stats b { font-size: var(--fs-2xl); font-weight: 800; color: var(--heading); line-height: 1; }
.cal-stats span { color: var(--muted); font-size: var(--fs-sm); }
/* o so lieu bam duoc (vd "50 trong tai" -> muc Ban To chuc, Ban Trong tai) */
.cal-stats li:has(> .stat-link) { padding: 0; }
.stat-link { display: flex; align-items: baseline; gap: var(--sp-2); min-height: var(--tap); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); color: inherit; text-decoration: none; }
.stat-link span { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.stat-link:hover span { color: var(--link-hover); }
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-6); }
.seg { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); }
.seg button { min-height: var(--tap); padding: 0 var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--heading); font: inherit; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.seg button:hover { border-color: var(--link); color: var(--link); }
.seg button[aria-pressed="true"] { background: var(--c-navy-900); border-color: var(--c-navy-900); color: #fff; }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--c-blue-700); border-color: var(--c-blue-700); }
.cal-status { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.timeline { list-style: none; }
.tl-month { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--sp-6); padding: var(--sp-6) 0; border-top: 1px solid var(--border); }
.tl-month:first-child { border-top: 0; padding-top: 0; }
.tl-h { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--hdr) + var(--sp-4)); align-self: start; }
.tl-h span { font-size: var(--fs-2xl); font-weight: 800; color: var(--heading); line-height: 1.1; }
.tl-h small { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); letter-spacing: 1px; }
.events { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.event { scroll-margin-top: 24px; }
.event article { height: 100%; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c-blue-700); border-radius: var(--r-lg); padding: var(--sp-5); }
.section:not(.alt) .event article { background: var(--surface-2); border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; }
.event[data-cap="Quốc gia"] article { border-left-color: var(--accent); }
.event:target article { box-shadow: 0 0 0 3px var(--c-gold-500); }
.ev-top { margin: 0 0 var(--sp-2); }
.cap { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: #fff; white-space: nowrap; }
.cap-qt { background: var(--c-blue-700); }
.cap-qg { background: var(--c-red-800); }
.cap-dp { background: var(--c-gold-500); color: var(--c-navy-900); } /* giai dia phuong: cap tinh, cap xa */
.event[data-cap="Cấp tỉnh"] article, .event[data-cap="Cấp xã"] article { border-left-color: var(--c-gold-500); }
.ev-btns { margin-top: var(--sp-4); }
.ev-roster { margin-top: var(--sp-4); }
.event:has(.ev-roster[open]) { grid-column: 1 / -1; } /* mo danh sach: the giai chiem ca hang cho bang du rong */
.ev-table th, .ev-table td { padding: var(--sp-2) var(--sp-3); }
.ev-role { display: block; font-size: var(--fs-xs); color: var(--accent-text); font-weight: 600; }
.ev-src { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.event h4 { font-size: var(--fs-lg); color: var(--heading); line-height: 1.35; margin-bottom: var(--sp-3); }
.ev-dl { display: grid; gap: var(--sp-2); margin: 0; }
.ev-dl div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--sp-2); }
.ev-dl dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-sm); }
.ev-dl dt .ic { flex: none; width: 16px; height: 16px; }
.ev-dl dd { margin: 0; color: var(--text); font-weight: 600; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
/* trang chu: lich rut gon */
.cal-mini { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.cal-mini a { display: flex; gap: var(--sp-4); align-items: flex-start; height: 100%; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid transparent; color: inherit; text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out); }
.section.alt .cal-mini a { background: var(--surface); border-color: var(--border); }
.cal-mini a:hover { border-color: var(--link); }
.cm-when { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: var(--r-md); background: var(--c-navy-900); color: #fff; }
[data-theme="dark"] .cm-when { background: var(--c-blue-700); }
.cm-when b { font-size: var(--fs-xl); line-height: 1; }
.cm-when small { font-size: 12px; font-weight: 600; }
.cm-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cm-body strong { color: var(--heading); line-height: 1.35; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }

/* ---- 7b2. LICH NAM (ln-): bang tong quan, 12 thang, 4 nhom mau, the su kien ---- */
:root {
  --c-teal-700: #0F766E; --c-amber-700: #B45309;
  /* mau nhom tren nen sang (net the, cham) va ban sang hon tren nen navy (bang tong quan) */
  --g-qg: var(--c-red-700); --g-vn: var(--c-blue-600); --g-lh: var(--c-teal-700); --g-qt: var(--c-amber-700);
  --p-qg: #FF7A6E; --p-vn: #7BA5FF; --p-lh: #3DD6C0; --p-qt: #FFC857;
}
[data-theme="dark"] { --g-qg: #FF8A80; --g-vn: #8FB0FF; --g-lh: #4DD6C6; --g-qt: #FFC45C; }
.ln-qg { --g: var(--g-qg); --gp: var(--p-qg); }
.ln-vn { --g: var(--g-vn); --gp: var(--p-vn); }
.ln-lh { --g: var(--g-lh); --gp: var(--p-lh); }
.ln-qt { --g: var(--g-qt); --gp: var(--p-qt); }
.ln-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--g, var(--muted)); }
.ln-panel { position: relative; overflow: hidden; margin-bottom: var(--sp-8); padding: var(--sp-6); border-radius: var(--r-xl); color: #fff; background: radial-gradient(900px 360px at 92% -20%, rgba(29, 78, 216, .6), transparent 62%), linear-gradient(125deg, var(--c-navy-900) 0%, var(--c-navy-800) 62%, var(--c-navy-700) 100%); box-shadow: var(--shadow-2); }
.ln-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.ln-panel > * { position: relative; }
.ln-panel .ln-dot { background: var(--gp, #fff); }
.ln-stats { list-style: none; display: grid; grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.ln-stats li { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-4) var(--sp-4) var(--sp-3); border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .16); border-top: 4px solid var(--gp, var(--c-gold-500)); background: rgba(255, 255, 255, .08); }
.ln-stats b { font-size: var(--fs-3xl); font-weight: 800; line-height: 1; color: #fff; }
.ln-stats span { font-size: var(--fs-sm); line-height: 1.35; color: var(--hero-text-2); }
.ln-stats .ln-tot { background: #fff; border-color: #fff; border-top-color: var(--c-gold-500); }
.ln-stats .ln-tot b { color: var(--c-navy-900); }
.ln-stats .ln-tot span { color: var(--c-slate-700); font-weight: 600; }
.ln-months { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-5); }
.ln-m a, .ln-m > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 84px; padding: var(--sp-2) 4px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; text-align: center; text-decoration: none; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.ln-m a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55); color: #fff; }
.ln-m a:focus-visible { outline-color: var(--c-gold-500); }
.ln-m b { font-size: var(--fs-lg); font-weight: 800; line-height: 1; }
.ln-m small { font-size: 12px; line-height: 1.2; color: var(--hero-text-2); }
.ln-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 54px; }
.ln-m.is-empty > span { border-style: dashed; background: transparent; opacity: .6; }
.ln-m.is-off a { opacity: .38; }
.timeline .tl-h { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--c-navy-900); color: #fff; gap: 4px; box-shadow: var(--shadow-1); }
[data-theme="dark"] .timeline .tl-h { background: var(--c-navy-700); }
.timeline .tl-h span { color: #fff; font-size: var(--fs-xl); }
.timeline .tl-h small { color: var(--c-gold-500); }
.tl-n { align-self: flex-start; margin-top: 6px; padding: 2px 10px; border-radius: var(--r-pill); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0; background: rgba(255, 255, 255, .18); color: #fff; }
.event.ev-qg article { border-left-color: var(--g-qg); }
.event.ev-vn article { border-left-color: var(--g-vn); }
.event.ev-lh article { border-left-color: var(--g-lh); }
.event.ev-qt article { border-left-color: var(--g-qt); }
.event[class*="ev-"] article { border-left-width: 6px; }
.section .event.is-cx article { border-style: dashed dashed dashed solid; border-top-color: var(--muted); border-right-color: var(--muted); border-bottom-color: var(--muted); }
.event[class*="ev-"] .ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cap-g-qg { background: var(--c-red-800); }
.cap-g-vn { background: var(--c-blue-700); }
.cap-g-lh { background: var(--c-teal-700); }
.cap-g-qt { background: var(--c-amber-700); }
.cap-sub { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--muted); }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; }
.st .ic { width: 14px; height: 14px; flex: none; }
.st-dk { background: var(--note-bg); box-shadow: inset 0 0 0 1px var(--note-border); color: var(--text); }
.st-wt { background: color-mix(in srgb, var(--c-blue-700) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-blue-700) 38%, transparent); color: var(--link); }
.st-cx { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); color: var(--muted); }
.ev-when { font-weight: 800; color: var(--heading); }
.ev-dl dd.ev-note { font-weight: 500; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.ev-tbd { color: var(--muted); font-style: italic; font-weight: 500; }
.ev-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags li { padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.ev-qg .ev-dl dt .ic { color: var(--g-qg); } .ev-vn .ev-dl dt .ic { color: var(--g-vn); } .ev-lh .ev-dl dt .ic { color: var(--g-lh); } .ev-qt .ev-dl dt .ic { color: var(--g-qt); }
.ev-src a .ext { width: 12px; height: 12px; margin-left: 3px; vertical-align: -1px; }
.seg button .ln-dot { margin-right: 8px; vertical-align: 1px; }
.seg button:has(.ln-qg)[aria-pressed="true"] { background: var(--c-red-800); border-color: var(--c-red-800); }
.seg button:has(.ln-vn)[aria-pressed="true"] { background: var(--c-blue-700); border-color: var(--c-blue-700); }
.seg button:has(.ln-lh)[aria-pressed="true"] { background: var(--c-teal-700); border-color: var(--c-teal-700); }
.seg button:has(.ln-qt)[aria-pressed="true"] { background: var(--c-amber-700); border-color: var(--c-amber-700); }
.seg button[aria-pressed="true"] .ln-dot { background: #fff; }
.ln-legend { list-style: none; display: grid; gap: var(--sp-2); margin: var(--sp-5) 0; }
.ln-legend li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 1024px) {
  .ln-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ln-stats .ln-tot { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: var(--sp-3); }
  .ln-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ln-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-panel { padding: var(--sp-4); }
}
@media (max-width: 560px) {
  .ln-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timeline .tl-h { align-items: center; flex-direction: row; gap: var(--sp-3); }
  .tl-n { margin: 0 0 0 auto; align-self: center; }
}
@media (forced-colors: active) { .ln-dot, .cap { forced-color-adjust: none; } }
@media print {
  .ln-panel { background: none; color: #000; border: 1px solid #999; box-shadow: none; }
  .ln-panel::before { display: none; }
  .ln-stats li, .ln-stats .ln-tot { background: none; border-color: #999; color: #000; }
  .ln-stats b, .ln-stats span, .ln-stats .ln-tot b, .ln-stats .ln-tot span, .ln-m a, .ln-m > span, .ln-m small { color: #000; }
  .ln-m a, .ln-m > span { border-color: #999; background: none; }
  .timeline .tl-h, [data-theme="dark"] .timeline .tl-h { background: none; color: #000; box-shadow: none; padding: 0; }
  .timeline .tl-h span { color: #000; }
  .timeline .tl-h small { color: #444; }
  .tl-n { background: none; color: #000; padding: 0; }
  .ln-dot, .cap, .st { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ln-panel .ln-dot { background: var(--g); }
}

/* ============ 7c. DAI HOI THE THAO TOAN QUOC ============ */
.sub-h { font-size: var(--fs-xl); color: var(--heading); margin: var(--sp-8) 0 var(--sp-4); }
.container > .btns + p { margin-top: var(--sp-5); }
.card h3 .ic { width: 20px; height: 20px; vertical-align: -3px; color: var(--accent-text); }
.card .btns { margin-top: var(--sp-4); }
.card p + p { margin-top: var(--sp-2); }
/* moc thoi gian: site.js gan .is-past / .is-next theo ngay xem */
.ms-list { list-style: none; display: grid; gap: var(--sp-2); }
.ms-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid transparent; }
.section.alt .ms-list li { background: var(--surface); border-color: var(--border); }
.ms-list time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; border-radius: var(--r-md); background: var(--c-navy-900); color: #fff; }
[data-theme="dark"] .ms-list time { background: var(--c-blue-700); }
.ms-list time b { font-size: var(--fs-lg); line-height: 1.1; }
.ms-list time small { font-size: 12px; font-weight: 600; }
.ms-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-body strong { color: var(--heading); }
.ms-body small { color: var(--muted); font-size: var(--fs-sm); }
.ms-state { font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.ms-list li.is-past time { background: var(--c-slate-600); }
.ms-list li.is-past .ms-state { color: var(--muted); }
.ms-list li.is-next { border-color: var(--c-gold-500); box-shadow: 0 0 0 1px var(--c-gold-500); }
.ms-list li.is-next .ms-state { padding: 3px 10px; border-radius: var(--r-pill); background: var(--c-red-800); color: #fff; }
/* chuong trinh theo ngay */
.dh-poster { max-width: 560px; margin: 0 auto var(--sp-6); }
.dh-poster img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--border); }
.dh-poster figcaption { margin-top: var(--sp-2); text-align: center; font-size: 14px; color: var(--muted, inherit); }
/* phan khu khan dai: mau theo chu giai trong so do */
.dh-poster.kd-fig { max-width: 880px; }
.kd-legend { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3); }
.kd-legend li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.kd-legend strong { display: block; color: var(--heading); }
.kd-sw { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgba(11, 31, 77, .4); }
.kd-sw.vip { background: #b4f0fa; }
.kd-sw.hcm { background: #deffb4; }
.kd-sw.cdv { background: #c8b9d9; }
.kd-sw.hlv { background: #a8e6d8; }
.prog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.prog-day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.prog-day h3 { font-size: var(--fs-lg); color: var(--heading); margin-bottom: var(--sp-3); }
.prog-day h3 span { color: var(--accent-text); }
.prog-day h3 .upd { margin-left: var(--sp-2); padding: 2px 10px; border-radius: var(--r-pill); background: var(--note-bg); border: 1px solid var(--note-border); color: var(--accent-text); font-size: 12px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.prog-day.is-updated { border-color: var(--note-border); }
.prog-items { list-style: none; display: grid; gap: var(--sp-2); }
.prog-items li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: var(--sp-3); }
.pg-time { font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.prog-note { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-md); background: var(--note-bg); border: 1px solid var(--note-border); font-size: var(--fs-sm); }
.prog-note .ic { flex: none; margin-top: 2px; color: var(--accent-text); }
/* hang can */
.wc-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.wc-g { font-weight: 800; color: var(--heading); padding-top: var(--sp-3); }
.chips.wc li { font-weight: 600; }
.contact-list { list-style: none; display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; }
/* lien ket chinh thuc (Ban To chuc Dai hoi) */
.official-links { margin-top: var(--sp-5); }
.official-links .btns { margin-top: var(--sp-3); }
.portal-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); margin-top: var(--sp-3); }
.portal-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
/* danh sach thanh vien (Ban To chuc, Ban Trong tai) */
@media (min-width: 801px) { .roster td:first-child { width: 56px; font-variant-numeric: tabular-nums; } } /* duoi 800px bang thanh the: khong ep do rong */
.roster-search { margin-bottom: var(--sp-3); max-width: 520px; }
.roster-wrap { margin-top: var(--sp-4); }
.contact-list li { display: flex; gap: var(--sp-2); align-items: center; }
.contact-list .ic { flex: none; color: var(--accent-text); }
.contact-list a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.deadline { display: inline-flex; gap: var(--sp-2); align-items: center; margin: var(--sp-2) 0 var(--sp-4); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); background: var(--c-red-800); color: #fff; }
.deadline .ic { flex: none; }
/* trang chu: bang thong bao Dai hoi */
.dh-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center; padding: var(--sp-6) var(--sp-8); border-radius: var(--r-xl); background: linear-gradient(120deg, var(--c-navy-900), var(--c-navy-700)); color: #fff; }
.dh-date { display: flex; flex-direction: column; gap: 2px; padding-right: var(--sp-6); border-right: 1px solid rgba(255, 255, 255, .25); }
.dh-date b { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.dh-date span { color: var(--hero-text-2); font-weight: 600; }
.dh-text p { margin: 0; color: var(--hero-text-2); }
.dh-text p + p { margin-top: var(--sp-2); }
.dh-text strong { color: #fff; }

/* ============ 8. NUT NOI, THONG BAO ============ */
.to-top { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: var(--z-overlay); width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--c-navy-900); color: #fff; box-shadow: var(--shadow-2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.to-top[hidden] { display: none; }
.to-top .ic { width: 22px; height: 22px; }
[data-theme="dark"] .to-top { background: var(--c-blue-700); }
.toast { position: fixed; left: 50%; bottom: var(--sp-6); z-index: var(--z-toast); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--c-slate-900); color: #fff; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-2); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 9. FOOTER ============ */
.site-footer { background: var(--c-navy-900); color: #CDD7F2; }
[data-theme="dark"] .site-footer { background: #060D24; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: var(--sp-10); padding-top: 56px; padding-bottom: var(--sp-10); }
.f-en { margin-top: var(--sp-4); color: #fff; font-weight: 600; }
.f-members { font-size: var(--fs-sm); line-height: 1.6; }
.f-members span { display: block; color: #fff; font-weight: 700; margin-bottom: var(--sp-1); }
.f-h { font-size: 15px; color: #fff; margin: 0 0 var(--sp-3); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.f-h:not(:first-child) { margin-top: var(--sp-6); }
.f-links { list-style: none; font-size: 15px; }
.f-links li { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-1) 0; }
.f-links li .ic { margin-top: 4px; opacity: .8; }
.f-links a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: var(--sp-5); padding-bottom: var(--sp-6); font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-6); }
.f-bottom p { margin: 0; }
.f-bottom a { text-decoration: underline; }

/* ============ 10. RESPONSIVE ============ */
@media (max-width: 1024px) {
  .prog { grid-template-columns: minmax(0, 1fr); }
  .dh-banner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .dh-date { padding: 0 0 var(--sp-4); border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .cal-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events { grid-template-columns: minmax(0, 1fr); }
  .tl-month { grid-template-columns: 120px minmax(0, 1fr); }
  .docs-table th, .docs-table td { padding: var(--sp-3); }
  .g4, .g5, .g3 { grid-template-columns: repeat(2, 1fr); }
  .home-hero-in { gap: var(--sp-8); padding-top: 64px; padding-bottom: 72px; }
  .charter { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc > summary { cursor: pointer; display: flex; align-items: center; min-height: var(--tap); margin: 0; }
  .toc > summary::after { content: "+"; margin-left: auto; font-size: 20px; }
  .toc[open] > summary::after { content: "\2013"; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .home-hero-in { grid-template-columns: 1fr; }
  .hh-media { width: 100%; max-width: 560px; margin: var(--sp-2) 0 0; }
  /* backdrop-filter bien header thanh khung chua cho phan tu fixed -> bo tren mobile de panel menu phu toan man hinh */
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: fixed; inset: var(--hdr) 0 0 0; background: var(--bg); overflow-y: auto; padding: var(--sp-3) var(--sp-5) var(--sp-10); margin: 0; }
  .site-nav.open { display: block; animation: nav-in var(--dur) var(--ease-out); }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .nav-link { flex: 1; min-height: 56px; padding: 0 var(--sp-1); font-size: var(--fs-md); }
  .nav-link[aria-current] { box-shadow: none; background: none; color: var(--accent-text); }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 56px; border: 0; background: none; color: var(--heading); cursor: pointer; }
  .sub-toggle .ic { transition: transform var(--dur) var(--ease-out); }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .sub { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 0 var(--sp-3) var(--sp-2); opacity: 1; visibility: visible; transform: none; display: none; background: transparent; }
  .sub.open { display: block; }
  .has-sub:hover .sub:not(.open), .has-sub:focus-within .sub:not(.open) { display: none; }
  body.nav-open { overflow: hidden; }
  .numlist, .g2, .steps, .docs { grid-template-columns: 1fr; }
  .doc .dl-pair { margin-left: 0; width: 100%; }
  .doc .dl-pair .dl { flex: 1 1 0; justify-content: center; }
  .tree { padding: var(--sp-5) var(--sp-3); }
  .tree ul { display: block; padding: 0 0 0 20px; }
  .tree > ul { padding-left: 0; }
  .tree li { display: block; padding: var(--sp-3) 0 0 18px; }
  .tree > ul > li { padding-left: 0; }
  .tree li::before, .tree li:first-child::before, .tree li:last-child::before, .tree li:only-child::before { display: block !important; content: ""; position: absolute; top: 0; left: 0; right: auto; width: 16px; height: 40px; border: 0 !important; border-left: 2px solid var(--tree-line) !important; border-bottom: 2px solid var(--tree-line) !important; border-radius: 0 0 0 8px !important; }
  .tree li::after, .tree li:first-child::after { display: block !important; content: ""; position: absolute; top: 40px; bottom: 0; left: 0; right: auto; width: 0; height: auto; border: 0 !important; border-left: 2px solid var(--tree-line) !important; border-radius: 0 !important; }
  .tree li:last-child::after, .tree li:only-child::after { display: none !important; }
  /* :nth-child(n) nang do uu tien hon .tree li:only-child::before o tren, de nut goc khong co duong noi */
  .tree > ul > li:nth-child(n)::before, .tree > ul > li:nth-child(n)::after, .tree ul ul::before { display: none !important; }
  .node, .node.sm { width: auto; align-items: flex-start; text-align: left; }
  .copy-link { opacity: 1; }
}
@media (max-width: 800px) {
  .docs-table thead { display: none; }
  .docs-table, .docs-table tbody { display: block; border: 0; background: none; }
  .docs-table tr { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-1); margin-bottom: var(--sp-3); }
  .docs-table td { display: block; border: 0; padding: var(--sp-1) var(--sp-3); }
  .docs-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--heading); }
}
@media (max-width: 560px) {
  .ms-list li { grid-template-columns: 64px minmax(0, 1fr); }
  .ms-state { grid-column: 2; justify-self: start; }
  .prog-items li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dh-banner { padding: var(--sp-5); }
  .wc-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wc-g { padding-top: 0; }
  .cal-mini { grid-template-columns: minmax(0, 1fr); }
  .tl-month { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .tl-h { position: static; flex-direction: row; align-items: baseline; gap: var(--sp-2); }
  .ev-dl div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* danh sach trong tai trong the giai: moi nguoi mot dong, don vi xuong duoi ten */
  .ev-roster .full-body { padding: 0 var(--sp-2) var(--sp-3); }
  .ev-table thead { display: none; }
  .ev-table, .ev-table tbody { display: block; }
  .ev-table tr { display: grid; grid-template-columns: 2em minmax(0, 1fr); column-gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); }
  .ev-table tr:last-child { border-bottom: 0; }
  .ev-table td { padding: 0; border: 0; }
  .ev-table td:last-child { grid-column: 2; color: var(--muted); font-size: var(--fs-sm); }
  .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .mini-org, .orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org b { font-size: 22px; }
  .section { padding: var(--sp-12) 0; }
  .card, .card.big { padding: var(--sp-5); }
  .quote { padding: var(--sp-5); font-size: var(--fs-base); }
  .table.kv th { width: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text strong { font-size: 14px; }
  .home-hero .lead { font-size: var(--fs-base); }
  .to-top { right: var(--sp-4); bottom: var(--sp-4); }
}

/* ============ 11. GIAM CHUYEN DONG ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ============ 12. BAN IN ============ */
@media print {
  @page { margin: 18mm 16mm; }
  .site-header, .site-nav, .tabs, .toc, .charter-tools, .to-top, .toast, .progress, .skip, .copy-link, .docs, .btn, .btns, .footer-grid, .more, .crumbs, .sprite { display: none !important; }
  body { color: #000; background: #fff; font-size: 11.5pt; }
  .home-hero, .page-hero { background: none; color: #000; }
  .home-hero::before, .page-hero::before, .home-hero::after { display: none; }
  .page-hero .container { padding: 0 0 8pt; }
  .page-hero h1 { color: #000; font-size: 20pt; }
  .section, .section.alt { padding: 8pt 0; background: none; }
  .charter { display: block; }
  .charter-body { max-width: none; }
  .chuong h2, .dieu-h, .sec-title { color: #000; break-after: avoid; }
  .chuong:not(:first-child) { break-before: page; }
  a { color: #000; text-decoration: none; }
  .prose a[href^="http"]::after, .bullets a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .site-footer, [data-theme="dark"] .site-footer { background: none; color: #000; border-top: 1px solid #000; }
  .home-hero .lead, .home-hero .eyebrow, .hh-badge, .hh-media figcaption, .page-hero .lead { color: #222; } /* chu sang tren nen toi: nen bi bo khi in */
  .f-bottom { border: 0; color: #000; }
  .f-bottom a { color: #000; }
  details > *:not(summary) { display: block !important; }
  :root, [data-theme="dark"] { --bg:#fff; --surface:#fff; --surface-2:#fff; --text:#000; --text-2:#222; --muted:#444; --heading:#000; --border:#ccc; --link:#000; --link-hover:#000; --accent-text:#991B1B; --note-bg:#FFF6DD; --note-border:#EED48A; --mark-bg:#FFE38A; --mark-text:#1A1300; --ok-bg:#E3F6EA; --ok-text:#14532D; --off-bg:#EEF0F4; --off-text:#475569; --tree-line:#9FB0DB; color-scheme: light; }
  .table thead th, .tag, .dl, .node.top, .numlist > li::before, .steps li::before, .pager span[aria-current], .doc-ic { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dieu.is-hidden, .chuong.is-hidden { display: block !important; }
  .cal-tools, .roster-search { display: none !important; }
  .roster tr[hidden] { display: table-row !important; } /* ban in luon du danh sach, ke ca khi dang loc */
  .event[hidden], .tl-month[hidden] { display: block !important; } /* ban in luon du lich, ke ca khi dang loc */
  .tl-h { position: static; }
  .cap, .cm-when, .ms-list time, .ms-list li.is-next .ms-state, .deadline, .dh-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ms-list li, .prog-day, .prog-items li, .steps li, .card, .note, .prog-note, .event, .dh-banner, .numlist > li, .docs-table tr, .table.kv tr { break-inside: avoid; }
  .sub-h, .prog-day h3, .tl-h { break-after: avoid; }
  /* lien ket ngoai (bieu mau, bang khung gio) in ra duoi dang chu kem dia chi; nut noi bo van an */
  .btns:has(a[href^="http"]) { display: block !important; margin: 4pt 0; }
  .btn[href^="http"] { display: inline !important; min-height: 0; padding: 0; background: none; box-shadow: none; color: #000; font-weight: 700; }
  .btn[href^="http"] .ic { display: none; }
  .btn[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 8.5pt; word-break: break-all; }
  .btns:has(a[href^="http"]) .btn + .btn::before { content: " · "; }
  #tai-lieu { display: none; }
  mark { background: none; color: inherit; padding: 0; }
  .no-result { display: none !important; }
}

/* ============ 13. CHE DO TUONG PHAN CAO (Windows) ============ */
.fc-light { display: none; }
@media (forced-colors: active) {
  .search:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
}
/* nen bi ep theo he thong: chon ban logo theo mau nen that, khong theo nut sang/toi cua trang */
@media (forced-colors: active) and (prefers-color-scheme: light) {
  .site-header .logo .only-dark, .site-footer .fc-dark { display: none !important; }
  .site-header .logo .only-light, .site-footer .fc-light { display: block !important; }
}
@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .site-header .logo .only-light { display: none !important; }
  .site-header .logo .only-dark { display: block !important; }
}
/* ============ 14. MAN HINH RAT HEP (320px, phong to 400%) ============ */
@media (max-width: 400px) {
  .orgs { grid-template-columns: 1fr; }
}
/* duoi 360px: dau trang chi giu logo (chu ben canh bi cat neu giu); ten day du co o tieu de trang va nhan lien ket logo */
@media (max-width: 359px) {
  .site-header .logo-img ~ .logo-text { display: none; }
}
/* 901-1080px (menu ngang 6 muc): bo chu canh logo de nhan menu khong xuong dong */
.nav-link { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1080px) {
  .site-header .logo-img ~ .logo-text { display: none; }
}
/* chan trang: dong co lien ket (dien thoai, email) cao 44px -> canh icon giua dong */
.f-links li:has(> a) { align-items: center; }
.f-links li:has(> a) > .ic { margin-top: 0; }

/* ============ khung video YouTube (an cho den khi quan tri dan lien ket trong admin.html) ============ */
.video-sec { background: var(--surface-2); border-block: 1px solid var(--border); }
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin: var(--sp-5) auto 0; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-1); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- bieu mau dang ky (chi co tren trang khi website noi may chu) ---- */
.vf-wrap { max-width: 860px; }
.vf[hidden] { display: none; }
.vf-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.vf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }
.vf-row { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.vf-row.wide { grid-column: 1 / -1; }
.vf label, .vf legend { padding: 0; font-weight: 700; font-size: var(--fs-sm); color: var(--heading); }
.vf .req { color: var(--accent-text); }
.vf input[type="text"], .vf input[type="email"], .vf input[type="tel"], .vf select, .vf textarea { width: 100%; min-height: 48px; padding: var(--sp-3) var(--sp-4); font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md); }
.vf textarea { min-height: 120px; line-height: 1.55; resize: vertical; }
.vf input:focus, .vf select:focus, .vf textarea:focus { border-color: var(--link); }
.vf [aria-invalid="true"] { border-color: var(--accent-text); }
.vf-err { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-text); }
.vf-err[hidden] { display: none; }
.vf-radios > div { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.vf .vf-radio, .vf .vf-check { display: flex; align-items: flex-start; gap: var(--sp-3); font-weight: 400; font-size: var(--fs-base); color: var(--text); cursor: pointer; }
.vf .vf-radio { align-items: center; padding: var(--sp-3) var(--sp-4); font-weight: 600; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md); }
.vf .vf-check { font-size: var(--fs-sm); line-height: 1.55; }
.vf input[type="radio"], .vf input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-blue-700); }
.vf-consent { margin-top: var(--sp-5); }
.vf-actions { margin-top: var(--sp-5); }
.vf-status { margin: var(--sp-4) 0 0; min-height: 1.5em; font-weight: 600; color: var(--text-2); }
.vf-status.is-ok, .vf-status.is-err { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--note-bg); border: 1px solid var(--note-border); }
.vf-status.is-ok { color: var(--link); }
.vf-status.is-err { color: var(--accent-text); }
@media (max-width: 640px) { .vf-grid { grid-template-columns: minmax(0, 1fr); } }
/* ---- bang lich check-in (Dai hoi X) ---- */
.ci-table { margin-top: var(--sp-4); }
.ci-table tr.free td { color: var(--muted); }
.ci-table tr.brk td { text-align: center; font-weight: 700; color: var(--heading); background: var(--surface-2); }
@media (min-width: 801px) { .ci-table td:first-child { width: 56px; font-variant-numeric: tabular-nums; } .ci-table td:nth-child(2) { width: 84px; font-variant-numeric: tabular-nums; } }
@media (max-width: 800px) { .ci-table td:not([data-label])::before { content: none; } }
/* ghi chu nho trong bang van ban (so trang, kich thuoc, ngay hieu luc) */
.docs-table td small { color: var(--muted); font-size: var(--fs-sm); }
/* ============ Phong chong doping (trang Dai hoi X) - lop "dp-"; khong dung tien to "ad-" (phan mem chan quang cao an the) ============ */
.dp-h { scroll-margin-top: calc(var(--hdr) + 76px); }
.dp-h4 { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-lg); line-height: var(--lh-tight); color: var(--heading); margin: 0 0 var(--sp-3); }
.dp-h4 .ic { color: var(--accent-text); width: 22px; height: 22px; }
.dp-ul { list-style: disc; padding-left: 1.25em; margin: 0 0 var(--sp-3); }
.dp-ul li { padding: 3px 0; }
.dp-ul ul { list-style: circle; padding-left: 1.25em; }
.dp-hero a, .card a, .dp-ul a, .numlist a, .full-body a, .note a { overflow-wrap: anywhere; }
.card .numlist > li { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }

/* khoi mo dau: banner Play True */
.dp-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-10); align-items: center; padding: var(--sp-12) var(--sp-10); border-radius: var(--r-xl); color: #fff; box-shadow: var(--shadow-2);
  background:
    linear-gradient(115deg, transparent 0 57%, rgba(218, 37, 29, .95) 57% 58.6%, transparent 58.6% 60.4%, rgba(244, 180, 0, .95) 60.4% 61.1%, transparent 61.1%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 30px),
    linear-gradient(135deg, var(--c-navy-900), var(--c-navy-800) 56%, var(--c-navy-700)); }
.dp-eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-4); padding: 6px 14px 6px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: var(--fs-sm); }
.dp-eyebrow .ic { width: 20px; height: 20px; }
.dp-motto { margin: 0 0 var(--sp-3); font-size: clamp(46px, 7.4vw, 96px); line-height: .95; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.dp-motto .dp-true { position: relative; display: inline-block; }
.dp-motto .dp-true::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.07em; height: .12em; border-radius: 2px; background: var(--c-red-600); transform: skewX(-14deg); }
.dp-sub { margin: 0 0 var(--sp-3); font-size: var(--fs-xl); font-weight: 700; color: #fff; }
.dp-lead { max-width: 56ch; margin: 0 0 var(--sp-6); color: var(--hero-text-2); }
.dp-pillars { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0 0; }
.dp-pillars li { padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.dp-cover { justify-self: center; display: block; width: min(100%, 290px); border-radius: var(--r-md); overflow: hidden; background: #fff; text-decoration: none; transform: rotate(2.2deg); box-shadow: 0 26px 54px rgba(0, 0, 0, .5); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.dp-cover:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 32px 60px rgba(0, 0, 0, .55); }
.dp-cover img { display: block; width: 100%; height: auto; }
.dp-cover span { display: block; padding: 9px 12px; background: var(--c-navy-900); color: #fff; font-weight: 700; font-size: var(--fs-sm); text-align: center; }
.dp-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0 0; }
.dp-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); color: var(--heading); font-weight: 600; font-size: 15px; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.dp-nav a:hover { background: var(--c-navy-900); border-color: var(--c-navy-900); color: #fff; }
[data-theme="dark"] .dp-nav a:hover { background: var(--c-blue-700); border-color: var(--c-blue-700); }

/* 4 dieu can nho */
.dp-key { position: relative; border-top: 5px solid var(--accent); }
.dp-key-n { position: absolute; right: var(--sp-5); top: var(--sp-3); font-size: 46px; font-weight: 800; line-height: 1; color: var(--border); }
.dp-key-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: var(--sp-3); border-radius: var(--r-md); background: var(--c-navy-900); color: #fff; }
[data-theme="dark"] .dp-key-ic { background: var(--c-blue-700); }
.dp-key-ic .ic { width: 26px; height: 26px; }
.dp-key h3 { font-size: var(--fs-lg); }
.dp-key p { font-size: var(--fs-sm); }
.dp-stats { margin-top: var(--sp-6); }

/* han TUE */
.dp-deadline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--c-red-800); color: #fff; }
.dp-deadline > .ic { flex: none; width: 28px; height: 28px; }
.dp-deadline strong { display: block; font-size: var(--fs-md); }
.dp-deadline small { display: block; margin-top: 2px; color: #FFE4E1; font-size: var(--fs-sm); }
.dp-dl-state { margin-left: auto; padding: 4px 12px; border-radius: var(--r-pill); background: #fff; color: var(--c-red-800); font-weight: 800; font-size: var(--fs-xs); }
.dp-contact .contact-list { margin-bottom: var(--sp-3); }

/* khi duoc thong bao */
.dp-fig { margin: 0; }
.dp-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--border); }
.dp-fig figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.dp-ill { align-self: start; max-width: 420px; }
.dp-ill img { border: 0; box-shadow: var(--shadow-1); }

/* quy trinh lay mau */
.dp-procs { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.dp-proc > summary { font-size: var(--fs-lg); }
.dp-proc > summary .ic { flex: none; margin-right: var(--sp-3); color: var(--accent-text); width: 24px; height: 24px; }
.dp-proc .full-body { padding-top: var(--sp-2); }
.dp-proc-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--sp-8); align-items: start; margin-top: var(--sp-2); }
@media (min-width: 901px) { .dp-proc-grid > .dp-fig { position: sticky; top: calc(var(--hdr) + 84px); } }
.dp-steps { list-style: none; counter-reset: dp; display: grid; gap: var(--sp-4); margin: var(--sp-4) 0; }
.dp-steps > li { counter-increment: dp; position: relative; padding-left: 52px; }
.dp-steps > li::before { content: counter(dp); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.dp-steps > li > b { display: block; margin-bottom: 4px; font-size: var(--fs-md); color: var(--heading); }
.dp-steps ul { list-style: disc; padding-left: 1.2em; margin: 0; }
.dp-steps li li { padding: 2px 0; }
.dp-luuy { margin: var(--sp-2) 0 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); background: var(--note-bg); border: 1px solid var(--note-border); font-size: var(--fs-sm); }
.dp-proc .table.kv { margin: var(--sp-3) 0; }
.dp-proc .table.kv th { width: 200px; }

/* quyen, nghia vu */
.dp-avoid { border-left: 6px solid var(--accent); }
.dp-slogan { margin: var(--sp-8) 0 0; padding: var(--sp-8) var(--sp-6); border-radius: var(--r-xl); text-align: center; color: #fff; background: linear-gradient(135deg, var(--c-navy-900), var(--c-navy-700)); box-shadow: var(--shadow-1); }
.dp-slogan strong { display: block; font-size: var(--fs-2xl); line-height: 1.25; font-weight: 800; }
.dp-slogan p { max-width: 60ch; margin: var(--sp-3) auto 0; color: var(--hero-text-2); }

/* danh muc cam */
.dp-rules .card .ic { width: 26px; height: 26px; margin-bottom: var(--sp-2); color: var(--accent-text); }
.dp-rules .card p { font-size: var(--fs-sm); }
.dp-wada { margin: var(--sp-4) 0 0; }
.dp-grp { margin: var(--sp-8) 0 var(--sp-2); font-size: var(--fs-xl); line-height: var(--lh-tight); color: var(--heading); }
.dp-grp + p { color: var(--muted); }
.dp-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.dp-sub .full-body { padding-top: var(--sp-2); }
.dp-code { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 30px; margin-right: var(--sp-3); padding: 0 8px; border-radius: var(--r-sm); background: var(--c-navy-900); color: #fff; font-weight: 800; font-size: var(--fs-sm); letter-spacing: .5px; }
.dp-moi .dp-code { background: var(--c-red-800); }
.dp-mon .dp-code { background: var(--c-blue-700); }
.dp-lam .dp-code { background: var(--c-slate-700); }
[data-theme="dark"] .dp-thi .dp-code { background: var(--c-blue-700); }

/* hau qua, tieu ban, tai lieu */
.dp-en { margin-bottom: var(--sp-2); font-size: var(--fs-sm); font-style: italic; color: var(--muted); }
.dp-msg-wrap { margin-top: var(--sp-6); }
.dp-msg-wrap .quote { max-width: none; }
.dp-msg p { margin: 0 0 var(--sp-3); }
.dp-sign { margin-top: var(--sp-4); text-align: right; }
@media (min-width: 801px) { .dp-tb td:first-child { width: 200px; font-variant-numeric: normal; } }
.dp-qr { margin: var(--sp-5) 0 var(--sp-3); color: var(--muted); font-size: var(--fs-sm); }
.dp-card-t { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-lg); font-weight: 700; line-height: var(--lh-tight); color: var(--heading); }
.dp-card-t .ic { color: var(--accent-text); }
.dp-dl { display: grid; gap: var(--sp-3); margin: var(--sp-2) 0 0; }
.dp-dl > div { padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.dp-dl dt { font-weight: 700; color: var(--heading); }
.dp-dl dd { margin: 2px 0 0; color: var(--text-2); }

/* the nhac o Tong quan, nut tab, dong tren trang chu */
.dp-callout { display: flex; align-items: center; gap: var(--sp-4); margin: 0 0 var(--sp-6); padding: var(--sp-4) var(--sp-6); border-radius: var(--r-lg); border-left: 8px solid var(--accent); color: #fff; text-decoration: none; background: linear-gradient(120deg, var(--c-navy-900), var(--c-navy-700)); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.dp-callout:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.dp-callout > .ic { flex: none; width: 34px; height: 34px; }
.dp-callout > .ic:last-child { margin-left: auto; width: 26px; height: 26px; }
.dp-callout strong { display: block; font-size: var(--fs-lg); line-height: 1.3; }
.dp-co-t { display: block; margin-top: 2px; color: var(--hero-text-2); font-size: var(--fs-sm); }
.tabs a.hot::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); }
.dh-text a { color: #fff; font-weight: 700; }
.dh-text a:hover { color: #fff; }

@media (max-width: 1024px) {
  .dp-hero { padding: var(--sp-10) var(--sp-8); gap: var(--sp-8); }
}
@media (max-width: 900px) {
  .dp-hero { grid-template-columns: minmax(0, 1fr); padding: var(--sp-8) var(--sp-6); }
  .dp-cover { width: min(70%, 240px); }
  .dp-proc-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .dp-proc-grid .dp-fig, .dp-ill { max-width: 420px; }
  .dp-callout { padding: var(--sp-4) var(--sp-5); }
}
@media (max-width: 560px) {
  .dp-hero { padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); }
  .dp-key-n { font-size: 38px; }
  .dp-callout > .ic:first-child { display: none; }
  .dp-proc .table.kv th { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-cover, .dp-callout { transition: none; }
  .dp-cover { transform: none; }
}
@media print {
  .dp-hero, .dp-slogan, .dp-callout, .dp-code, .dp-deadline, .dp-key-ic, .dp-steps > li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dp-hero, .dp-key, .dp-steps > li, .dp-sub, .dp-fig { break-inside: avoid; }
}
/* Ky cuong, ky luat thi dau (Cong van 263/CMKT, trang Dai hoi X) - lop "kc-" */
.kc-doc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-6); align-items: center; margin: 0 0 var(--sp-6); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-lg); border-left: 8px solid var(--accent); color: #fff; background: linear-gradient(120deg, var(--c-navy-900), var(--c-navy-700)); box-shadow: var(--shadow-1); }
.kc-no { padding-right: var(--sp-6); border-right: 1px solid rgba(255, 255, 255, .3); }
.kc-no b { display: block; font-size: var(--fs-2xl); line-height: 1.1; white-space: nowrap; }
.kc-no small, .kc-title small { display: block; margin-top: 2px; color: var(--hero-text-2); font-size: var(--fs-sm); }
.kc-title strong { display: block; font-size: var(--fs-lg); line-height: 1.35; }
.kc-grid { margin-top: var(--sp-5); }
.kc-card .n { font-size: var(--fs-md); }
.kc-warn { border-left: 6px solid var(--accent); }
.kc-sign { display: flex; flex-direction: column; align-items: flex-end; margin: var(--sp-6) 0 var(--sp-2); text-align: right; }
.kc-sign span { font-weight: 800; letter-spacing: .5px; color: var(--heading); }
.kc-sign strong { margin-top: var(--sp-2); font-size: var(--fs-lg); color: var(--heading); }
.kc-sign small { color: var(--muted); font-size: var(--fs-sm); }
.kc-to { margin: 0 0 var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 700px) {
  .kc-doc { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); }
  .kc-no { padding: 0 0 var(--sp-3); border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
}
@media print {
  .kc-doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kc-card, .kc-doc { break-inside: avoid; }
}
/* vien nhan manh: quy tac .section:not(.alt) .card dat vien trong suot nen phai khai bao lai mau theo tung canh */
.section .card.dp-key { border-top-color: var(--accent); }
.section .card.dp-avoid, .section .card.kc-warn { border-left-color: var(--accent); }
/* Huong dan loi vao nha thi dau (trang Dai hoi X) - lop "lv-" */
.lv-do { --lv-c: #d62828; --lv-on: #fff; }
.lv-xanh { --lv-c: #1d4ed8; --lv-on: #fff; }
.lv-vang { --lv-c: #f4b400; --lv-on: #1a1300; }
[data-theme="dark"] .lv-xanh { --lv-c: #5b86ff; --lv-on: #0a1330; }
.lv-ngoc { --lv-c: #0b7f72; --lv-on: #fff; }
[data-theme="dark"] .lv-ngoc { --lv-c: #2dd4bf; --lv-on: #04201c; }
.lv-where { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0 0 var(--sp-4); color: var(--text-2); }
.lv-where .ic { margin-top: 4px; color: var(--accent-text); }
.lv-key { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-3); }
.lv-key a { display: flex; align-items: center; gap: var(--sp-3); height: 100%; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--lv-c); border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.lv-key a:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.lv-key strong { display: block; color: var(--heading); line-height: var(--lh-tight); }
.lv-key small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); }
.lv-key > li > a > .ic { margin-left: auto; width: 20px; height: 20px; color: var(--muted); }
.lv-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lv-c); color: var(--lv-on); font-weight: 800; font-size: var(--fs-lg); line-height: 1; }
.lv-video { max-width: 960px; margin: 0 0 var(--sp-8); }
.lv-video video { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 914; border-radius: var(--r-lg); background: var(--c-navy-900); box-shadow: var(--shadow-1); }
.lv-video figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.lv-video figcaption a { white-space: nowrap; font-weight: 600; }
.lv-route { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-6); align-items: start; margin: 0 0 var(--sp-6); padding: var(--sp-5) var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-top: 8px solid var(--lv-c); border-radius: var(--r-lg); box-shadow: var(--shadow-1); scroll-margin-top: calc(var(--hdr) + 64px); }
.lv-h { display: flex; align-items: flex-start; gap: var(--sp-3); }
.lv-h h3 { margin: 0; font-size: var(--fs-lg); line-height: var(--lh-tight); }
.lv-tag { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.lv-arrow { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 20px; border-radius: 4px; background: var(--lv-c); color: var(--lv-on); }
.lv-arrow .ic { width: 16px; height: 16px; vertical-align: 0; }
.lv-map { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.lv-steps { list-style: none; counter-reset: lv; margin: var(--sp-4) 0 0; padding: 0; }
.lv-steps li { counter-increment: lv; position: relative; padding: var(--sp-3) 0 var(--sp-3) 36px; border-top: 1px solid var(--border); }
.lv-steps li::before { content: counter(lv); position: absolute; left: 0; top: var(--sp-3); width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--lv-c); color: var(--heading); font-weight: 700; font-size: var(--fs-xs); display: flex; align-items: center; justify-content: center; }
.lv-fig { margin: 0; }
.lv-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--border); }
.lv-fig figcaption { margin-top: var(--sp-2); text-align: center; font-size: var(--fs-sm); color: var(--muted); }
/* Quy trinh 4 buoc dieu phoi VDV vao san thi dau - dung lai lop "lv-", them "dv-" (khong co hinh ban do nen the buoc mot cot) */
.dv-video video { aspect-ratio: 1600 / 900; }
.lv-route.dv-step { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
.dv-step .lv-tag { margin: 0; }
.dv-body { margin-top: var(--sp-1); }
.dv-body p { margin: 0 0 var(--sp-3); max-width: 72ch; }
.dv-body p:last-child { margin-bottom: 0; }
/* Diem danh bang ung dung (ma QR) - dung lai lop "lv-"/"dv-", them "dd-" */
.dd-box { margin: 0 0 var(--sp-6); padding: var(--sp-4) var(--sp-5); max-width: 880px; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent-text); border-radius: var(--r-lg); }
.dd-box p { margin: 0 0 var(--sp-3); }
.dd-box p:last-child { margin-bottom: 0; }
.dd-cred { margin: var(--sp-3) 0; display: grid; gap: var(--sp-2); max-width: 560px; }
.dd-cred > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--lv-c); border-radius: var(--r-md); }
.dd-cred dt { color: var(--muted); }
.dd-cred dd { margin: 0; font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.dd-btns { margin: var(--sp-3) 0 0; }
.dd-hint { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.dd-fig { max-width: 1100px; }
.kd-more { display: inline-block; margin-left: var(--sp-2); font-weight: 600; }
@media (max-width: 860px) {
  .lv-route { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-4) var(--sp-4) var(--sp-5); }
}
@media print {
  .lv-video { display: none; }
  .lv-route { break-inside: avoid; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== Le Khai mac Dai hoi (km-): the nhac o Tong quan, hero ngay gio, lich trinh, cho ngoi, so do, quy dinh ===== */
.dp-callout[hidden] { display: none; }
.km-callout { border-left-color: var(--c-gold-500); }
.km-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-8); align-items: center; margin: 0 0 var(--sp-6); padding: var(--sp-8); border-radius: var(--r-xl); overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 88% -25%, rgba(244, 180, 0, .30), transparent 55%), linear-gradient(135deg, #0b1f4d 0%, #1a2f8f 58%, #3a1c8c 100%); box-shadow: var(--shadow-2); }
.km-hero::after { content: ""; position: absolute; right: -50px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 2px solid rgba(244, 180, 0, .35); box-shadow: 0 0 0 26px rgba(244, 180, 0, .07), 0 0 0 54px rgba(244, 180, 0, .04); pointer-events: none; }
.km-date { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 168px; padding: var(--sp-4) var(--sp-6); border-radius: var(--r-lg); text-align: center; color: #1a1300; background: linear-gradient(180deg, #ffe08a, #f4b400); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.km-date b { font-size: clamp(60px, 8vw, 92px); font-weight: 900; line-height: 1; }
.km-date span { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.km-info { position: relative; z-index: 1; }
.km-hero .km-info p { margin: 0 0 var(--sp-3); color: #fff; }
.km-hero .km-eyebrow { color: #ffd75e; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.km-hero .km-big { font-size: var(--fs-3xl); font-weight: 800; line-height: var(--lh-tight); }
.km-big time { color: #ffd75e; white-space: nowrap; }
.km-hero .km-where { display: flex; align-items: flex-start; gap: var(--sp-2); color: var(--hero-text-2); }
.km-where .ic { flex: none; margin-top: 4px; color: #ffd75e; }
.km-hero .km-count { margin-bottom: 0; }
.km-count-t { display: inline-block; padding: 6px 16px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); font-weight: 700; }
.km-count.is-live .km-count-t { border-color: var(--c-red-600); background: var(--c-red-600); }
.km-key { margin-top: var(--sp-6); }
.km-hong { --km-c: #e6199a; }
.km-xanh { --km-c: #1d4ed8; }
.km-vang { --km-c: #f4b400; }
.km-do { --km-c: #c8102e; }
.km-luc { --km-c: #15803d; }
[data-theme="dark"] .km-xanh { --km-c: #5b86ff; }
[data-theme="dark"] .km-do { --km-c: #ff6b6b; }
[data-theme="dark"] .km-luc { --km-c: #34d399; }
.km-tl { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: grid; gap: var(--sp-3); }
.km-tl li { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: var(--sp-5); align-items: center; padding: var(--sp-4) var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-left: 8px solid var(--km-c); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.km-tl-t { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.1; color: var(--heading); white-space: nowrap; }
.km-tl-b strong { display: block; font-size: var(--fs-lg); line-height: var(--lh-tight); color: var(--heading); }
.km-tl-b small { display: block; margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--muted); }
.km-bar { display: block; width: 100%; height: 36px; margin: 0 0 var(--sp-4); border-radius: var(--r-pill); overflow: hidden; }
.km-bar rect { stroke: var(--bg); stroke-width: 4px; vector-effect: non-scaling-stroke; }
.km-f-do { fill: #c8102e; }
.km-f-luc { fill: #15803d; }
.km-f-xanh { fill: #1d4ed8; }
.km-zones { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.km-zones li { display: flex; gap: var(--sp-4); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-top: 8px solid var(--km-c); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.km-z-n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--km-c); color: #fff; font-size: var(--fs-xl); font-weight: 800; }
.km-zones strong { display: block; font-size: var(--fs-lg); color: var(--heading); }
.km-z-ghe { display: block; color: var(--muted); }
.km-z-ghe b { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.1; color: var(--km-c); }
.km-zones p { margin: var(--sp-2) 0 0; color: var(--text-2); }
.km-total { margin: 0 0 var(--sp-6); color: var(--text-2); }
.dh-poster.kd-fig.km-fig { max-width: 1000px; }
.dh-poster.kd-fig.km-fig.km-sq { max-width: 720px; }
.km-legend { max-width: 1000px; margin: 0 auto var(--sp-6); padding: var(--sp-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-5); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.km-lg-title { grid-column: 1 / -1; font-size: var(--fs-lg); color: var(--heading); }
.km-lg-h { display: block; margin-bottom: var(--sp-2); color: var(--heading); }
.km-lg ul, .km-chips { list-style: none; margin: 0; padding: 0; }
.km-lg li { display: flex; align-items: center; gap: var(--sp-3); padding: 3px 0; }
.km-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin: 0 0 var(--sp-6); }
.km-chips li { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); font-weight: 600; }
.km-sw { flex: none; display: inline-block; width: 38px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(11, 31, 77, .35); }
.km-chips .km-sw { width: 24px; height: 14px; }
.km-sw-hong { background: #e6199a; }
.km-sw-xanh-dam { background: #2e2f93; }
.km-sw-cam { background: #f58220; }
.km-sw-xanh-nhat { background: #29a7f5; }
.km-sw-vang { background: #f6d51f; }
.km-sw-do { background: #c8102e; }
.km-sw-luc-dam { background: #0e7a5c; }
.km-sw-nau { background: #9a4f10; }
.km-sw-luc-sang { background: #5cf55c; }
.km-sw-luc { background: #1fa04a; }
.km-sw-ngoc { background: #1eb89a; }
.km-sw-tim { background: #4b0f8a; }
.km-sw-tim-sang { background: #c61fc6; }
.km-sw-xam { background: #9a9a9a; }
.km-sw-xanh { background: #1c4cff; }
.km-sw-mt-hong, .km-sw-mt-xanh { height: 0; background: none; border-top: 3px dashed #e6199a; border-radius: 0; box-shadow: none; }
.km-sw-mt-xanh { border-top-color: #29a7f5; }
.km-sw-tram-yt { position: relative; background: #fff; }
.km-sw-tram-yt::before, .km-sw-tram-yt::after { content: ""; position: absolute; left: 50%; top: 50%; background: #d62828; transform: translate(-50%, -50%); }
.km-sw-tram-yt::before { width: 14px; height: 4px; }
.km-sw-tram-yt::after { width: 4px; height: 14px; }
.km-rules { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: var(--sp-3); }
.km-rules li { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--note-bg); border: 1px solid var(--note-border); border-radius: var(--r-md); }
.km-rules .ic { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.km-reg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); margin: 0 0 var(--sp-6); padding: var(--sp-5) var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-left: 8px solid var(--accent); border-radius: var(--r-lg); }
.km-reg strong { display: block; font-size: var(--fs-lg); color: var(--heading); }
.km-reg p { max-width: 62ch; margin: var(--sp-1) 0 0; color: var(--text-2); }
.km-posters { max-width: 900px; margin: 0 auto var(--sp-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.km-poster { margin: 0; }
.km-poster img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.km-poster figcaption { margin-top: var(--sp-2); text-align: center; font-size: var(--fs-sm); color: var(--muted); }
#le-khai-mac .sub-h { scroll-margin-top: calc(var(--hdr) + 76px); }
@media (max-width: 720px) {
  .km-hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-5); }
  .km-date { flex-direction: row; justify-content: flex-start; gap: var(--sp-3); min-width: 0; padding: var(--sp-3) var(--sp-4); }
  .km-date b { font-size: 56px; }
  .km-tl li { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-4); }
  .km-reg { padding: var(--sp-4); }
}
@media print {
  .km-hero, .km-date, .km-count-t, .km-z-n, .km-sw, .km-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .km-tl li, .km-zones li, .km-rules li, .km-reg, .km-legend { break-inside: avoid; }
}

/* ============ Ket qua thi dau Dai hoi X (src/ket-qua.mjs) - theo token site, tu doi sang giao dien toi ============ */
.kq-dhx { --kq-gold-t: #8A6100; --kq-silver-t: #475569; --kq-bronze-t: #8A4515; --kq-gold-bg: #FFF4CC;
  --kq-chip-s-bg: #EEF1F6; --kq-chip-s-t: #3F4B61; --kq-chip-b-bg: #FBE9DC; --kq-chip-b-t: #7A3A0E; }
[data-theme="dark"] .kq-dhx { --kq-gold-t: #FFD34D; --kq-silver-t: #CBD5E6; --kq-bronze-t: #F0A872; --kq-gold-bg: rgba(244, 180, 0, .16);
  --kq-chip-s-bg: #2A3B6E; --kq-chip-s-t: #E1E8F7; --kq-chip-b-bg: #4A2C16; --kq-chip-b-t: #F6C9A4; }
.kq-dhx * { min-width: 0; }
.kq-hero { background: linear-gradient(135deg, #0B1F4D 0%, #16306E 100%); color: #fff; border-radius: var(--r-xl); padding: 28px 28px 24px; position: relative; overflow: hidden; }
.kq-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); pointer-events: none; }
.kq-eyebrow { margin: 0; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: #FFD34D; font-weight: 700; }
.kq-hero-t { margin: 6px 0 0; font-size: var(--fs-2xl); font-weight: 800; line-height: var(--lh-tight); color: #fff; }
.kq-hero-d { margin: 8px 0 0; color: #DBE4FF; font-size: var(--fs-sm); }
.kq-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; position: relative; z-index: 1; }
.kq-stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-md); padding: 12px 14px; }
.kq-stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kq-stat span { font-size: var(--fs-xs); color: #DBE4FF; }
.kq-stat.kq-g b { color: #FFD34D; } .kq-stat.kq-s b { color: #E3E9F4; } .kq-stat.kq-b b { color: #F4B48A; }
.kq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sp-5) 0 var(--sp-2); }
.kq-nav a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--fs-sm); padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--heading); text-decoration: none; font-weight: 600; }
.kq-nav a.is-done::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1AA260; margin-right: 8px; flex: none; }
.kq-nav a:hover { border-color: var(--heading); color: var(--heading); }
.kq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; margin-top: var(--sp-5); align-items: start; }
.kq-side { position: sticky; top: calc(var(--hdr) + var(--sp-4)); max-height: calc(100vh - var(--hdr) - var(--sp-8)); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.kq-side h3 { font-size: var(--fs-md); color: var(--heading); }
.kq-side p { font-size: var(--fs-xs); color: var(--muted); margin: 4px 0 var(--sp-3); }
.kq-mt { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.kq-mt th { font-size: var(--fs-xs); letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 6px 4px; border-bottom: 2px solid var(--border); text-align: center; }
.kq-mt th:nth-child(2) { text-align: left; }
.kq-mt td { padding: 9px 4px; border-bottom: 1px solid var(--border); }
.kq-mt tbody tr:first-child td { background: var(--kq-gold-bg); }
.kq-mt th.kq-g { color: var(--kq-gold-t); } .kq-mt th.kq-s { color: var(--kq-silver-t); } .kq-mt th.kq-b { color: var(--kq-bronze-t); }
.kq-rk { font-weight: 800; color: var(--heading); text-align: center; width: 28px; }
.kq-unit { font-weight: 600; }
.kq-n { text-align: center; font-variant-numeric: tabular-nums; width: 34px; font-weight: 700; }
.kq-n.kq-g { color: var(--kq-gold-t); } .kq-n.kq-s { color: var(--kq-silver-t); } .kq-n.kq-b { color: var(--kq-bronze-t); } .kq-n.kq-t { color: var(--heading); }
.kq-code { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.kq-events { display: flex; flex-direction: column; gap: 22px; }
.kq-ev { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-5); scroll-margin-top: calc(var(--hdr) + var(--sp-4)); }
.kq-ev-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: var(--sp-4); }
.kq-ev h3 { font-size: var(--fs-xl); color: var(--heading); }
.kq-en { margin: 2px 0 0; color: var(--accent-text); font-weight: 600; font-size: var(--fs-sm); }
.kq-status { font-size: var(--fs-xs); font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.kq-status.done { background: var(--ok-bg); color: var(--ok-text); }
.kq-gal { display: grid; gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.kq-gal.n1, .kq-gal.n2 { grid-template-columns: 1fr; }
.kq-gal.n2 .big { aspect-ratio: 2.2; } .kq-gal.n2 .kq-ph:not(.big) { aspect-ratio: 2.6; }
.kq-gal.n3 { grid-template-columns: 1fr 1fr; } .kq-gal.n3 .big { grid-column: 1 / 3; aspect-ratio: 2.2; } .kq-gal.n3 .kq-ph:not(.big) { aspect-ratio: 4 / 3; }
.kq-ph { margin: 0; position: relative; overflow: hidden; background: var(--surface-2); min-height: 0; }
.kq-ph a { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.kq-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
.kq-ph:hover img { transform: scale(1.04); }
.kq-ph figcaption { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(11, 31, 77, .82); color: #fff; font-size: var(--fs-xs); font-weight: 600; padding: 4px 9px; border-radius: 6px; pointer-events: none; }
.kq-gal-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(11, 31, 77, .92), rgba(11, 31, 77, 0)); color: #fff; pointer-events: none; }
.kq-gal-cap strong { font-size: var(--fs-md); }
.kq-gal-cap span:last-child { font-size: var(--fs-sm); color: #DBE4FF; }
.kq-credit { margin: 6px 2px 0; font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.kq-lb { position: fixed; inset: 0; z-index: var(--z-skip); background: rgba(6, 14, 36, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 12px; }
.kq-lb img { max-width: 100%; max-height: 82vh; width: auto; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.kq-lb p { color: #DBE4FF; font-size: var(--fs-sm); margin: 0; text-align: center; }
.kq-lb button { position: absolute; top: 14px; right: 14px; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: #fff; color: #0B1F4D; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.kq-chip { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; }
.kq-chip.gold { background: #FFD34D; color: #4A3600; } .kq-chip.silver { background: var(--kq-chip-s-bg); color: var(--kq-chip-s-t); }
.kq-chip.bronze { background: var(--kq-chip-b-bg); color: var(--kq-chip-b-t); } .kq-chip.none { background: var(--off-bg); color: var(--off-text); }
.kq-pod { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-top: var(--sp-5); }
.kq-pod-col { display: flex; flex-direction: column; }
.kq-pod-people { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 10px; text-align: center; }
.kq-pod-name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.kq-pod-unit { font-size: var(--fs-xs); color: var(--muted); }
.kq-pod-step { border-radius: 12px 12px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 12px; }
.kq-pod-col.gold .kq-pod-step { height: 96px; background: linear-gradient(180deg, #FFE58A, #F4C430); }
.kq-pod-col.silver .kq-pod-step { height: 70px; background: linear-gradient(180deg, #F1F4F8, #C9D1DD); }
.kq-pod-col.bronze .kq-pod-step { height: 52px; background: linear-gradient(180deg, #F6D2B6, #D9965F); }
.kq-medal { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.kq-medal.gold { background: #F4B400; color: #3B2A00; } .kq-medal.silver { background: #B6C0CF; color: #1F2937; } .kq-medal.bronze { background: #D08A52; color: #2B1708; }
.kq-list { margin-top: var(--sp-4); border-top: 1px dashed var(--border); padding-top: 10px; }
.kq-list summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--heading); min-height: var(--tap); display: flex; align-items: center; }
.kq-tb { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-top: 8px; }
.kq-tb th { text-align: left; font-size: var(--fs-xs); color: var(--muted); padding: 6px; border-bottom: 2px solid var(--border); }
.kq-tb td { padding: 8px 6px; border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .kq-grid { grid-template-columns: 1fr; } .kq-side { position: static; order: -1; max-height: none; overflow: visible; } }
@media (max-width: 600px) {
  .kq-hero { padding: 22px 18px; } .kq-stats { grid-template-columns: repeat(2, 1fr); }
  .kq-gal.n2, .kq-gal.n3 { gap: 6px; } .kq-gal .big { aspect-ratio: 16 / 10 !important; } .kq-gal.n3 .kq-ph:not(.big) { aspect-ratio: 1; } .kq-gal.n2 .kq-ph:not(.big) { aspect-ratio: 2; }
  .kq-ph figcaption { left: 6px; bottom: 6px; right: 6px; padding: 3px 7px; }
  .kq-gal-cap { padding: 28px 12px 10px; gap: 6px; } .kq-gal-cap strong { font-size: var(--fs-base); }
  .kq-ev { padding: var(--sp-4); } .kq-pod-name { font-size: var(--fs-xs); }
  .kq-pod-col.gold .kq-pod-step { height: 76px; } .kq-pod-col.silver .kq-pod-step { height: 56px; } .kq-pod-col.bronze .kq-pod-step { height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .kq-ph img { transition: none; } .kq-ph:hover img { transform: none; } }
@media print {
  .kq-hero, .kq-pod-step, .kq-medal, .kq-chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kq-ev, .kq-side { break-inside: avoid; } .kq-side { position: static; } .kq-lb { display: none; }
}

/* chat.css - giao dien tro ly ao LinhKate (noi vao site.css khi build; ma JS o src/chat.js) */
.chat-fab { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: calc(var(--z-overlay) + 1); display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 var(--sp-5) 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: var(--shadow-2); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.chat-fab:hover { background: var(--accent-hover); }
.chat-fab[hidden] { display: none; }
.chat-fab .ic { width: 24px; height: 24px; }
body.has-chat .to-top { bottom: calc(var(--sp-5) + 64px); }
.chat-panel { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: calc(var(--z-overlay) + 2); width: min(400px, calc(100vw - 2 * var(--sp-4))); height: min(620px, calc(100dvh - 2 * var(--sp-5))); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--c-navy-900); color: #fff; }
.chat-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.chat-who { flex: 1; min-width: 0; line-height: 1.3; }
.chat-who strong { display: block; }
.chat-who span { font-size: var(--fs-xs); color: var(--hero-text-2); }
.chat-reset, .chat-x { flex: none; background: transparent; border: 0; color: #fff; cursor: pointer; min-height: 36px; padding: 0 var(--sp-2); border-radius: var(--r-sm); font-size: var(--fs-xs); text-decoration: underline; text-underline-offset: 3px; }
.chat-x { width: 36px; padding: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.chat-x .ic { width: 20px; height: 20px; }
.chat-reset:hover, .chat-x:hover { background: rgba(255, 255, 255, .14); }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); background: var(--surface-2); }
.chat-msg { max-width: 92%; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.55; overflow-wrap: anywhere; }
.chat-msg.me { align-self: flex-end; background: var(--c-blue-700); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg p { margin: 0 0 var(--sp-2); }
.chat-msg p:last-child, .chat-text ul:last-child { margin-bottom: 0; }
.chat-text ul { padding-left: 18px; margin: 0 0 var(--sp-2); list-style: disc; }
.chat-imgs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.chat-imgs img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); }
.chat-src { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.chat-src ul { list-style: none; padding: 0; margin: 2px 0 0; }
.chat-src li { margin: 3px 0; }
.chat-src a { font-weight: 600; }
.chat-retry { display: block; margin-top: var(--sp-3); min-height: 36px; padding: 6px 14px; border: 1px solid var(--link); border-radius: var(--r-pill); background: transparent; color: var(--link); font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
.chat-retry:hover { background: var(--surface-2); }
.chat-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0 var(--sp-4) var(--sp-3); background: var(--surface-2); }
.chat-chips[hidden] { display: none; }
.chat-chip { min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--link); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.chat-chip:hover { border-color: var(--link); }
.chat-form { display: flex; align-items: flex-end; gap: var(--sp-2); padding: var(--sp-3); border-top: 1px solid var(--border); background: var(--surface); }
.chat-in { flex: 1; min-width: 0; resize: none; max-height: 110px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; line-height: 1.4; }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-send:hover:not(:disabled) { background: var(--accent-hover); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send .ic { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 0 var(--sp-3) var(--sp-3); background: var(--surface); font-size: 12px; line-height: 1.45; color: var(--muted); }
.chat-typing { display: flex; gap: 5px; align-items: center; }
.chat-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: chat-blink 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (max-width: 640px) {
  .chat-fab { right: var(--sp-4); bottom: var(--sp-4); width: 56px; min-height: 56px; padding: 0; justify-content: center; }
  .chat-fab-t { display: none; }
  body.has-chat .to-top { bottom: calc(var(--sp-4) + 68px); }
  .chat-panel { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; opacity: .6; } }
@media print { .chat-fab, .chat-panel { display: none !important; } }
