/* =========================================================
   CAP - Trung tâm Tư vấn Chính sách Nông nghiệp
   Giao diện editorial: xanh rừng + vàng lúa, Lora (tiêu đề) + Be Vietnam Pro (nội dung)
   Mobile: thanh điều hướng dưới (bottom-nav) + bottom sheet menu
   ========================================================= */
:root {
    --g-950: #072219;
    --g-900: #0b3326;
    --g-800: #0f4434;
    --g-700: #155a43;
    --g-600: #1f7a4d;
    --leaf: #5aa83c;
    --brand: #00a651;
    --gold: #e3b23c;
    --gold-600: #c9962a;
    --gold-soft: #f7ecce;
    --paper: #f6f4ee;
    --card: #ffffff;
    --ink: #15221c;
    --ink-2: #33433b;
    --muted: #64736b;
    --line: #e4dfd2;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(11, 51, 38, .06), 0 8px 24px -12px rgba(11, 51, 38, .18);
    --shadow-lg: 0 24px 48px -24px rgba(7, 34, 25, .45);
    --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Lora", Georgia, "Times New Roman", serif;
    --wrap: 1200px;
    --header-h: 76px;
    --bottom-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--g-600); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Topbar ---------- */
.topbar { background: var(--g-950); color: rgba(255,255,255,.72); font-size: 13px; }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 36px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.82); }
.topbar a:hover { color: var(--gold); }
.topbar .ic { width: 15px; height: 15px; }
.topbar-sp { flex: 1; }

/* ---------- Dịch tự động (Google Translate, js/vs-lang-translate.js) ---------- */
#google_translate_element2, .goog-te-banner-frame, .goog-te-banner-frame.skiptranslate, body > .skiptranslate, .goog-te-gadget, #goog-gt-tt, .goog-te-balloon-frame {
    display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important;
}
body { top: 0 !important; }
font[style] { background: none !important; box-shadow: none !important; }
.vs-lang-switcher { position: relative; z-index: 95; }
.vs-lang-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font-size: 12.5px; font-weight: 600;
}
.vs-lang-btn .ic { width: 15px; height: 15px; }
.vs-lang-btn::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.translate__lang {
    position: absolute; right: 0; top: calc(100% + 8px); width: 230px; max-height: 360px; overflow-y: auto; padding: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.vs-lang-switcher.active .translate__lang { opacity: 1; visibility: visible; transform: none; }
.translate__lang ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.translate__lang a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; }
.translate__lang a b { font-size: 10.5px; color: var(--muted); width: 20px; }
.translate__lang a:hover { background: var(--paper); color: var(--g-800); }
.translate__lang a.active { background: var(--gold-soft); color: var(--g-900); font-weight: 600; }
.vs-lang-switcher--mobile { display: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgba(0,0,0,.35); }
.header-in { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--brand); }
.brand:hover { color: var(--brand); }
.brand-mark { display: block; height: 50px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; text-transform: uppercase; font-weight: 700; letter-spacing: -.005em; min-width: 0; }
.brand-l1 { font-size: 13px; letter-spacing: .04em; }
.brand-l2 { font-size: 15.5px; white-space: nowrap; }
.mainnav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.mainnav-item { position: relative; }
.mainnav-link {
    display: block; padding: 10px 14px; border-radius: 999px;
    font-weight: 600; font-size: 15px; color: var(--ink-2);
}
.mainnav-link:hover, .mainnav-link.on { background: var(--paper); color: var(--g-700); }
.mainnav-link.has-sub::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .5;
}
.mainnav-drop {
    position: absolute; left: 0; top: 100%; min-width: 260px; max-height: 75vh; overflow-y: auto; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.mainnav-item:hover .mainnav-drop, .mainnav-item:focus-within .mainnav-drop { opacity: 1; visibility: visible; transform: none; }
.mainnav-drop a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); }
.mainnav-drop a:hover { background: var(--gold-soft); color: var(--g-900); }
.drop-group { margin: 4px 0; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.drop-group + .drop-group { border-top: 0; }
.mainnav-drop a.drop-head { font-weight: 600; color: var(--g-800); }
.mainnav-drop a.drop-sub { padding: 6px 12px 6px 26px; font-size: 14px; position: relative; }
.mainnav-drop a.drop-sub::before { content: ""; position: absolute; left: 14px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--g-800);
}
.icon-btn:hover { background: var(--g-800); color: #fff; border-color: var(--g-800); }

/* ---------- Search ---------- */
.search-panel {
    position: fixed; inset: 0; z-index: 90; background: rgba(7,34,25,.6);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0;
}
.search-box {
    width: 100%; max-width: 720px; display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 18px; padding: 10px 10px 10px 20px; box-shadow: var(--shadow-lg);
}
.search-box > .ic { color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: 0; font: 500 19px var(--sans); padding: 10px 0; min-width: 0; background: transparent; }

/* ---------- Buttons / chips ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
    font-weight: 600; font-size: 15px; border: 0; background: var(--gold); color: var(--g-950); transition: .18s;
}
.btn:hover { background: #f0c552; color: var(--g-950); transform: translateY(-1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-dark { background: var(--g-800); color: #fff; }
.btn-dark:hover { background: var(--g-700); color: #fff; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--gold-soft); color: #7a5a12;
}
.chip-green { background: #e3f0e3; color: var(--g-700); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(90,168,60,.35), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(227,178,60,.22), transparent 60%),
        linear-gradient(160deg, var(--g-900), var(--g-950));
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
    background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.5) 0 1px, transparent 1px 22px);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 72px 24px 88px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.16; margin: 18px 0 18px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero h1 a:hover { color: var(--gold); }
.hero-lead { color: rgba(255,255,255,.78); font-size: 17px; max-width: 540px; }
.hero-meta { display: flex; gap: 16px; align-items: center; color: rgba(255,255,255,.6); font-size: 14px; margin: 4px 0 28px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { width: 16px; height: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* slider ảnh chạy */
.slider { position: relative; }
.slider::before {
    content: ""; position: absolute; inset: 22px -18px -18px 22px; border: 2px solid var(--gold); border-radius: 22px; opacity: .55;
}
.slides {
    position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px;
    scrollbar-width: none; box-shadow: var(--shadow-lg); background: var(--g-800);
}
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 20px;
    background: linear-gradient(transparent, rgba(7,34,25,.92)); color: #fff;
    font: 600 16px/1.4 var(--serif);
}
.slide-cap:hover { color: var(--gold); }
.slider-dots { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; z-index: 2; }
.slider-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.5); transition: .2s; }
.slider-dots button.on { width: 26px; background: var(--gold); }

/* dòng tin mới dưới hero */
.ticker { position: relative; margin-top: -44px; z-index: 2; }
.ticker-in {
    display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.ticker a { display: flex; gap: 14px; padding: 20px 22px; border-right: 1px solid var(--line); }
.ticker a:last-child { border-right: 0; }
.ticker a:hover { background: var(--paper); }
.ticker-date { flex: none; width: 52px; text-align: center; font-family: var(--serif); color: var(--g-700); line-height: 1.1; }
.ticker-date b { display: block; font-size: 26px; }
.ticker-date small { font-size: 12px; color: var(--muted); font-family: var(--sans); }
.ticker-title { font-weight: 600; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Section ---------- */
.section { padding: 80px 0 0; }
.section:last-of-type { padding-bottom: 80px; }
.sec-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.sec-num { font: 600 15px var(--sans); color: var(--gold-600); letter-spacing: .1em; }
.sec-title { font-size: clamp(26px, 3vw, 38px); }
.sec-title small { display: block; font: 600 13px var(--sans); color: var(--gold-600); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.sec-more { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--g-700); white-space: nowrap; }
.sec-more .ic { width: 18px; height: 18px; transition: transform .2s; }
.sec-more:hover .ic { transform: translateX(4px); }

/* thẻ bài */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,51,38,.06), 0 18px 36px -18px rgba(11,51,38,.35); color: inherit; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #dfe9dc, #f1ead6); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.card:hover .thumb img, .row-item:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font: 600 18px/1.4 var(--serif); }
.card-text { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .ic { width: 15px; height: 15px; }

/* Nghiên cứu: 1 lớn + danh sách */
.research-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature:hover img { transform: scale(1.04); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7,34,25,.95)); }
.feature-body { position: relative; z-index: 1; padding: 32px; }
.feature-body h3 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); margin: 12px 0 10px; }
.feature-body p { color: rgba(255,255,255,.78); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature:hover { color: #fff; }
.feature:hover h3 { color: var(--gold); }

.row-list { display: flex; flex-direction: column; }
.row-item { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-item:first-child { padding-top: 0; }
.row-item .thumb { border-radius: 12px; aspect-ratio: 4 / 3; }
.row-item h3 { font-size: 16.5px; line-height: 1.42; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-item:hover h3 { color: var(--g-600); }

/* Hoạt động: lưới 4 cột, mobile cuộn ngang */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Ấn phẩm: kệ sách */
.band-gold { background: linear-gradient(180deg, var(--gold-soft), #fbf5e4); margin-top: 80px; padding: 72px 0 80px; }
.band-gold + .section { padding-top: 80px; }
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.book { display: flex; flex-direction: column; gap: 14px; }
.book-cover {
    position: relative; aspect-ratio: 3 / 4; border-radius: 4px 12px 12px 4px; overflow: hidden; background: var(--g-800);
    box-shadow: -6px 6px 0 -1px rgba(11,51,38,.12), 0 18px 30px -16px rgba(7,34,25,.55); transition: transform .25s;
}
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.15), transparent); z-index: 1; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book:hover .book-cover { transform: translateY(-6px) rotate(-1deg); }
.book h3 { font-size: 15.5px; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book small { color: var(--muted); font-size: 13px; }

/* Số liệu */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--g-900); color: #fff; border-radius: 22px; overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 600 44px/1 var(--serif); color: var(--gold); }
.stat span { display: block; margin-top: 10px; color: rgba(255,255,255,.72); font-size: 14.5px; }

/* Đội ngũ */
.team-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.person { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: inherit; }
.avatar { width: 100%; max-width: 150px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e3ebe0; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person b { font: 600 16px/1.3 var(--serif); }
.person small { color: var(--muted); font-size: 13px; }
.person:hover b { color: var(--g-600); }

/* CTA liên hệ + tuyển dụng */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.cta { position: relative; border-radius: 22px; padding: 44px; background: var(--g-800); color: #fff; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(227,178,60,.18); }
.cta h2 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.75); max-width: 460px; }
.panel { background: #fff; border-radius: 22px; padding: 30px 32px; box-shadow: var(--shadow); }
.panel h3 { font-size: 22px; margin-bottom: 8px; }
.mini-list a { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.mini-list a:last-child { border-bottom: 0; }
.mini-list time { flex: none; color: var(--gold-600); font-weight: 600; font-size: 13px; padding-top: 2px; }

/* ---------- Trang danh mục ---------- */
.page-hero { background: linear-gradient(160deg, var(--g-900), var(--g-950)); color: #fff; padding: 44px 0 52px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(227,178,60,.12); }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.page-hero p { color: rgba(255,255,255,.7); margin: 10px 0 0; max-width: 680px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: .5; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 4px; scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.subcats a { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.subcats a.on, .subcats a:hover { background: var(--g-800); border-color: var(--g-800); color: #fff; }
.list-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 36px 0 80px; }
.list-lead { margin-bottom: 26px; }
.list-lead .feature { min-height: 400px; }
.news-rows .row-item { grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; }
.news-rows .row-item h3 { font-size: 19px; }
.news-rows .row-item p { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-box { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 22px; }
.side-box h4 { font-size: 18px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.side-rank { counter-reset: r; }
.side-rank a { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.side-rank a:last-child { border-bottom: 0; }
.side-rank a::before { content: counter(r, decimal-leading-zero); font: 600 18px var(--serif); color: var(--gold-600); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.pager .on { background: var(--g-800); color: #fff; border-color: var(--g-800); }
.pager .gap { border: 0; background: none; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); }

/* ---------- Chi tiết bài ---------- */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 100; transition: width .1s; }
.article-head { background: #fff; border-bottom: 1px solid var(--line); padding: 36px 0 34px; }
.article-head .crumbs { color: var(--muted); }
.article-head .crumbs a { color: var(--g-700); }
.article-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.article-head h1 { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.2; margin: 16px 0 18px; letter-spacing: -.01em; }
.article-lead { font: 500 19px/1.6 var(--serif); color: var(--ink-2); border-left: 4px solid var(--gold); padding: 4px 0 4px 20px; margin: 28px 0; }
.article-cover { margin: 28px auto 0; max-width: 1000px; padding: 0 24px; }
.article-cover img { width: auto; max-width: 100%; max-height: 560px; object-fit: contain; border-radius: 18px; display: block; margin: 0 auto; box-shadow: var(--shadow); }
.article-body { font-size: 17.5px; line-height: 1.8; color: #1f2c26; overflow-wrap: anywhere; }
.article-body font, .article-body span { font-family: inherit !important; font-size: inherit !important; }
.article-body img { border-radius: 12px; height: auto !important; margin: 10px 0; }
.article-body a { color: var(--g-600); text-decoration: underline; text-underline-offset: 3px; }
.article-body table { width: 100% !important; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px 10px; }
.article-body h2, .article-body h3 { margin: 1.6em 0 .6em; }
.article-body blockquote { margin: 1.4em 0; padding: 16px 22px; background: var(--gold-soft); border-radius: 12px; }
.article-body iframe, .article-body video { max-width: 100%; border-radius: 12px; }
.article-author { text-align: right; font-weight: 600; font-style: italic; color: var(--ink-2); }
.attach { margin: 36px 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.attach-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; background: var(--g-900); color: #fff; font-weight: 600; }
.attach-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.attach-item:first-of-type { border-top: 0; }
.attach-ext { width: 46px; height: 54px; border-radius: 6px 14px 6px 6px; display: grid; place-items: center; font: 700 11px var(--sans); color: #fff; background: var(--g-600); text-transform: uppercase; }
.attach-ext.pdf { background: #c0392b; }
.attach-ext.doc, .attach-ext.docx { background: #2b5797; }
.attach-ext.xls, .attach-ext.xlsx, .attach-ext.csv { background: #1e7145; }
.attach-ext.ppt, .attach-ext.pptx { background: #d24726; }
.attach-name { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.attach-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.attach-item .btn { padding: 10px 16px; font-size: 14px; }
/* ---------- Bài giới thiệu đơn vị (.cap-intro, nội dung tID1) ---------- */
.cap-intro { font-size: 17px; }
.cap-intro h2 { position: relative; font-size: 26px; margin: 2.2em 0 .8em; padding-top: 18px; }
.cap-intro h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--gold); }
.cap-intro h3 { font-size: 18px; margin: 0 0 10px; }
.ci-kicker { display: inline-block; margin: 0 0 22px !important; padding: 8px 14px; border-radius: 12px; background: #e3f0e3; color: var(--g-700); font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.ci-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 10px; }
.ci-facts div { background: var(--g-900); color: rgba(255,255,255,.8); border-radius: 16px; padding: 16px 16px 18px; font-size: 13.5px; line-height: 1.45; }
.ci-facts b { display: block; font: 600 26px/1.1 var(--serif); color: var(--gold); margin-bottom: 8px; }
.ci-tree { display: flex; flex-direction: column; gap: 0; margin: 20px 0 0; padding-left: 4px; }
.ci-tree span { position: relative; align-self: flex-start; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; margin-left: calc(var(--i, 0) * 28px); }
.ci-tree span:nth-child(2) { --i: 1; } .ci-tree span:nth-child(3) { --i: 2; }
.ci-tree span + span { margin-top: 14px; }
.ci-tree span + span::before { content: ""; position: absolute; left: -16px; top: -15px; width: 14px; height: 36px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); border-bottom-left-radius: 8px; }
.ci-tree span.on { background: var(--g-800); border-color: var(--g-800); color: #fff; }
.article-body blockquote.ci-vision { position: relative; margin: 0; padding: 26px 28px 26px 64px; border-radius: 18px; background: var(--gold-soft); font: 500 18.5px/1.65 var(--serif); color: var(--g-900); }
.ci-vision::before { content: "“"; position: absolute; left: 20px; top: 6px; font: 700 64px/1 var(--serif); color: var(--gold-600); }
.ci-tasks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: t; }
.ci-tasks li { counter-increment: t; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 18px 64px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.ci-tasks li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--g-800); color: var(--gold); font: 700 14px var(--sans); }
.ci-tasks li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.ci-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ci-tags li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--g-800); }
.ci-tags li::before { content: "●"; color: var(--gold); font-size: 9px; vertical-align: 2px; margin-right: 8px; }
.ci-leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-body .ci-leaders a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.article-body .ci-leaders a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-body .ci-leaders img { width: 110px; height: 110px; object-fit: cover; object-position: top; border-radius: 50%; margin: 0 0 10px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.ci-leaders b { font: 600 16.5px/1.3 var(--serif); }
.ci-leaders span { color: var(--gold-600); font-weight: 600; font-size: 13.5px; }
.ci-more { margin-top: 12px; font-weight: 600; }
.ci-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ci-partners > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.ci-partners ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.65; }
.ci-partners li { margin-bottom: 8px; }
.ci-partners li::marker { color: var(--gold-600); }
.ci-docs { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; }
.ci-doc { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ci-doc-ic { width: 46px; height: 54px; border-radius: 6px 14px 6px 6px; display: grid; place-items: center; background: #c0392b; color: #fff; font: 700 11px var(--sans); }
.ci-doc-t b { display: block; font-size: 15.5px; line-height: 1.4; }
.ci-doc-t small { color: var(--muted); font-size: 13px; }
.article-body .ci-doc a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.article-body .ci-doc-view { background: var(--g-800); color: #fff; }
.article-body .ci-doc-view:hover { background: var(--g-700); color: #fff; }
.article-body .ci-doc-dl { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--g-800); }
.ci-contact { display: flex; align-items: center; gap: 20px; margin: 40px 0 0; padding: 24px 26px; border-radius: 20px; color: #fff; background: radial-gradient(360px 180px at 100% 0, rgba(227,178,60,.3), transparent 70%), linear-gradient(150deg, var(--g-800), var(--g-950)); }
.ci-contact > div { flex: 1; }
.ci-contact h3 { color: #fff; margin-bottom: 6px; }
.ci-contact p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }
.article-body .ci-contact a { color: var(--gold); }
.article-body .ci-contact a.ci-btn { flex: none; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--g-950); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
    .cap-intro { font-size: 16px; }
    .cap-intro h2 { font-size: 22px; }
    .ci-facts { grid-template-columns: 1fr 1fr; }
    .ci-facts b { font-size: 22px; }
    .ci-tasks, .ci-partners { grid-template-columns: 1fr; }
    .ci-leaders { grid-template-columns: 1fr; }
    .article-body .ci-leaders a { display: grid; grid-template-columns: 64px 1fr; align-items: center; column-gap: 14px; row-gap: 2px; text-align: left; padding: 12px 14px; }
    .article-body .ci-leaders img { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
    .ci-leaders b { align-self: end; }
    .ci-leaders span { align-self: start; }
    .ci-tree span { font-size: 14px; }
    .ci-doc { grid-template-columns: 40px 1fr; }
    .ci-doc-ic { width: 40px; height: 48px; }
    .ci-doc a { justify-self: start; }
    .ci-contact { flex-direction: column; align-items: flex-start; }
    .article-body blockquote.ci-vision { padding: 22px 18px 20px 48px; font-size: 16.5px; }
    .ci-vision::before { left: 12px; font-size: 52px; }
}

/* Flipbook (sách lật) - khung nhúng sau link PDF / file đính kèm */
.news-flipbook-embed { margin: 22px 0 28px; border-radius: 16px; overflow: hidden; background: #2b2b2b; box-shadow: var(--shadow); }
.news-flipbook-embed iframe, iframe.hmu-flipbook { display: block; width: 100%; height: min(78vh, 760px); min-height: 420px; border: 0; border-radius: 0; margin: 0; }
.news-flipbook-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0; padding: 10px 14px; background: var(--g-950); }
.article-body .news-flipbook-actions a, .news-flipbook-actions a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.article-body .news-flipbook-actions a:hover { background: var(--gold); color: var(--g-950); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.attach-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-ghost-dark { background: #fff; color: var(--g-800); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost-dark:hover { background: var(--paper); color: var(--g-900); }
.pub-info { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: start; margin: 32px 0 8px; padding: 24px; background: var(--gold-soft); border-radius: 20px; }
.pub-info img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px 12px 12px 4px; box-shadow: -6px 6px 0 -1px rgba(11,51,38,.12), 0 18px 30px -16px rgba(7,34,25,.55); background: var(--g-800); }
.pub-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 20px; font-size: 15.5px; }
.pub-info dt { color: var(--muted); font-weight: 500; }
.pub-info dd { margin: 0; font-weight: 600; color: var(--ink); }
.share { display: flex; align-items: center; gap: 10px; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.share b { font-size: 14px; color: var(--muted); margin-right: 6px; }
.share a, .share button { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--g-800); }
.share a:hover, .share button:hover { background: var(--g-800); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--g-950); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 120; }
.related { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 72px; margin-top: 40px; }
.edit-link { display: inline-flex; margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--gold-600); }

/* ---------- Đội ngũ ---------- */
.team-group { padding: 36px 0 8px; }
.team-group h2 { font-size: 26px; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.team-group h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.member { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: left; border: 0; padding: 0; color: inherit; display: flex; flex-direction: column; transition: transform .2s; }
.member:hover { transform: translateY(-3px); }
.member-photo { aspect-ratio: 1 / 1.05; background: linear-gradient(135deg, #dfe9dc, #f1ead6); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.member-info { padding: 14px 16px 18px; }
.member-info b { display: block; font: 600 17px/1.3 var(--serif); }
.member-info small { color: var(--gold-600); font-weight: 600; font-size: 13px; }
/* Hồ sơ chuyên gia: đầu cố định (ảnh kích thước cố định) + tiểu sử cuộn riêng */
dialog.bio {
    border: 0; border-radius: 22px; padding: 0; width: calc(100% - 32px); max-width: 720px; max-height: min(86vh, 820px);
    box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink);
}
dialog.bio[open] { display: flex; flex-direction: column; }
dialog.bio::backdrop { background: rgba(7,34,25,.6); backdrop-filter: blur(3px); }
.bio-head {
    position: relative; flex: none; display: flex; align-items: flex-end; gap: 22px; padding: 28px 64px 22px 28px; color: #fff;
    background: radial-gradient(420px 220px at 100% 0, rgba(227,178,60,.28), transparent 70%), linear-gradient(150deg, var(--g-800), var(--g-950));
}
.bio-photo { flex: none; width: 128px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #e3ebe0; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 14px 28px -12px rgba(0,0,0,.5); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bio-id { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bio-id small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.bio-id h3 { color: #fff; font-size: 26px; line-height: 1.2; }
.bio-id .chip { align-self: flex-start; }
.bio-close {
    position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
}
.bio-close:hover { background: var(--gold); color: var(--g-950); }
.bio-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 28px; font-size: 15.5px; line-height: 1.75; }
.bio-body > :first-child { margin-top: 0; }
.bio-body p { margin: 0 0 .8em; }
.bio-body a { overflow-wrap: anywhere; }
.bio-empty { color: var(--muted); font-style: italic; }

/* ---------- Liên hệ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; padding: 40px 0 80px; }
.info-card { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.info-card .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--gold-soft); color: var(--g-800); }
.info-card b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 280px; background: #e3ebe0; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form { background: #fff; border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form h2 { font-size: 26px; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field input, .field textarea, .field select {
    font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); outline: 0; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--g-600); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.alert { padding: 14px 18px; border-radius: 12px; margin: 16px 0 0; font-weight: 500; }
.alert-ok { background: #e3f0e3; color: var(--g-700); }
.alert-err { background: #fbe6e3; color: #a33224; }
.hp { position: absolute; left: -9999px; }

/* ---------- Tìm kiếm ---------- */
.search-page-box { display: flex; gap: 10px; margin-top: 22px; max-width: 720px; }
.search-page-box input { flex: 1; min-width: 0; font: 500 17px var(--sans); padding: 14px 18px; border-radius: 999px; border: 0; outline: 0; }
mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--g-950); color: rgba(255,255,255,.72); padding: 64px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1fr; gap: 40px; }
.footer-mark { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 14px; }
.footer-mark img { display: block; height: 52px; width: auto; }
.footer-name { color: #fff; font: 600 18px/1.4 var(--serif); margin: 14px 0 4px; }
.footer-org { font-size: 13.5px; }
.footer-intro { color: rgba(255,255,255,.55); font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.site-footer a:hover { color: var(--gold); }
.footer-contact, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact .ic { color: var(--gold); width: 18px; height: 18px; margin-top: 3px; }
.footer-links li { margin-bottom: 9px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--gold); color: var(--g-950); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }
.footer-admin { color: rgba(255,255,255,.35); }

/* ---------- Bottom nav + sheet (mobile) ---------- */
.bottom-nav { display: none; }
.sheet, .sheet-backdrop { display: none; }

@media (max-width: 1100px) {
    .mainnav-link { padding: 10px 10px; font-size: 14.5px; }
    .brand-l2 { font-size: 13px; white-space: normal; max-width: 170px; }
    .shelf { grid-template-columns: repeat(4, 1fr); }
    .shelf .book:nth-child(5) { display: none; }
    .team-strip { grid-template-columns: repeat(4, 1fr); }
    .team-strip .person:nth-child(n+5) { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --header-h: 60px; }
    body { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
    .wrap { padding: 0 16px; }
    .topbar, .mainnav { display: none; }
    /* Tên đơn vị luôn 1 dòng: cỡ chữ co theo bề rộng màn hình */
    .brand { gap: 6px; flex: 1; }
    .brand-mark { height: 30px; }
    .brand-text { overflow: hidden; }
    .brand-l1 { font-size: clamp(8px, 2.3vw, 10.5px); }
    .brand-l2 { font-size: clamp(8px, 2.62vw, 13px); white-space: nowrap; letter-spacing: -.03em; max-width: none; overflow: hidden; text-overflow: ellipsis; }
    .header-in .icon-btn, .vs-lang-switcher--mobile .vs-lang-btn { width: 36px; height: 36px; }
    .header-in .icon-btn { margin-left: 0; }
    .header-in { gap: 10px; }
    .header-in .icon-btn { margin-left: auto; width: 40px; height: 40px; }
    .vs-lang-switcher--mobile { display: block; }
    .vs-lang-switcher--mobile .vs-lang-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: var(--line); background: #fff; color: var(--g-800); }
    .vs-lang-switcher--mobile .vs-lang-btn .ic { width: 20px; height: 20px; }
    .vs-lang-switcher--mobile .vs-lang-btn::after, .vs-lang-switcher--mobile .selected__lang { display: none; }
    .vs-lang-switcher--mobile .translate__lang { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px); width: auto; }

    .bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(7,34,25,.4);
    }
    .bottom-nav a, .bottom-nav button {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; padding: 0;
    }
    .bottom-nav .ic { width: 23px; height: 23px; transition: transform .2s; }
    .bottom-nav .on { color: var(--g-700); }
    .bottom-nav .on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--gold); }
    .bottom-nav .on .ic { transform: translateY(-1px) scale(1.06); }
    .bottom-nav a:active .ic, .bottom-nav button:active .ic { transform: scale(.9); }

    .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(7,34,25,.5); opacity: 0; transition: opacity .25s; }
    .sheet-backdrop.open { opacity: 1; }
    .sheet {
        display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; max-height: 86vh;
        background: #fff; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom);
        transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
    }
    .sheet.open { transform: none; }
    .sheet-handle { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 4px; }
    .sheet-head { display: flex; align-items: center; gap: 10px; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); }
    .sheet-head strong { font: 600 20px var(--serif); margin-right: auto; }
    .sheet-head .icon-btn { width: 36px; height: 36px; }
    .sheet-body { overflow-y: auto; padding: 6px 16px 10px; overscroll-behavior: contain; }
    .sheet-link, .sheet-group summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--line); list-style: none; cursor: pointer; }
    .sheet-group summary::-webkit-details-marker { display: none; }
    .sheet-group summary .ic { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
    .sheet-group[open] summary .ic { transform: rotate(90deg); }
    .sheet-sub { padding: 4px 0 8px 12px; border-left: 2px solid var(--gold); margin: 8px 0 8px 4px; }
    .sheet-sub a { display: block; padding: 9px 10px; color: var(--ink-2); font-size: 15px; }
    .sheet-sub a.sheet-sub-head { font-weight: 600; color: var(--g-800); }
    .sheet-sub3 { margin: 0 0 6px 12px; border-left: 1px dashed var(--line); }
    .sheet-sub3 a { padding: 7px 10px; font-size: 14px; color: var(--muted); }
    .sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
    .sheet-actions a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 12px; background: var(--paper); font-size: 13px; font-weight: 600; color: var(--g-800); }

    .hero-in { grid-template-columns: 1fr; gap: 28px; padding: 28px 16px 72px; }
    .hero h1 { font-size: 28px; margin: 12px 0; }
    .hero-lead { font-size: 15.5px; }
    .slider { order: -1; }
    .slider::before { display: none; }
    .slides { border-radius: 16px; }
    .ticker-in { grid-template-columns: 1fr; }
    .ticker a { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
    .ticker a:last-child { border-bottom: 0; }

    .section { padding-top: 52px; }
    .section:last-of-type { padding-bottom: 52px; }
    .sec-head { margin-bottom: 20px; gap: 12px; }
    .sec-title { font-size: 25px; }
    .research-grid, .split, .list-layout, .contact-grid { grid-template-columns: 1fr; }
    .feature { min-height: 340px; }
    .feature-body { padding: 22px; }
    .row-item { grid-template-columns: 104px 1fr; gap: 14px; }
    .row-item h3 { font-size: 15.5px; }

    /* cuộn ngang trên mobile */
    .cards-4, .cards-3, .shelf, .team-strip {
        display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%;
        overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 16px 18px; margin: 0 -16px;
        scrollbar-width: none;
    }
    .cards-4::-webkit-scrollbar, .cards-3::-webkit-scrollbar, .shelf::-webkit-scrollbar, .team-strip::-webkit-scrollbar { display: none; }
    .cards-4 > *, .cards-3 > *, .shelf > *, .team-strip > * { scroll-snap-align: start; }
    .shelf { grid-auto-columns: 44%; }
    .shelf .book:nth-child(5) { display: flex; }
    .team-strip { grid-auto-columns: 34%; }
    .team-strip .person:nth-child(n+5) { display: flex; }
    .band-gold { margin-top: 52px; padding: 48px 0 44px; }
    .band-gold + .section { padding-top: 52px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 22px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .stat:nth-child(2n) { border-right: 0; }
    .stat b { font-size: 34px; }
    .cta, .panel { padding: 28px 22px; }

    .page-hero { padding: 26px 0 32px; }
    .list-layout { padding: 22px 0 40px; gap: 20px; }
    .news-rows .row-item { grid-template-columns: 112px 1fr; gap: 14px; padding: 16px 0; }
    .news-rows .row-item h3 { font-size: 16px; }
    .news-rows .row-item p { display: none; }
    .list-lead .feature { min-height: 300px; }

    .article-head { padding: 22px 0 24px; }
    .article-wrap, .article-cover { padding: 0 16px; }
    .article-body { font-size: 16.5px; }
    .article-lead { font-size: 17px; }
    .attach-item { grid-template-columns: 40px 1fr; padding: 14px 16px; }
    .attach-item .attach-btns { grid-column: 1 / -1; }
    .attach-item .attach-btns .btn { flex: 1; justify-content: center; }
    .news-flipbook-embed iframe, iframe.hmu-flipbook { height: 70vh; min-height: 360px; }
    .attach-ext { width: 40px; height: 48px; }

    .pub-info { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; }
    .pub-info dl { grid-template-columns: 1fr; gap: 0; font-size: 14.5px; }
    .pub-info dd { margin-bottom: 6px; }
    .pub-info .btn { padding: 11px 16px; font-size: 14px; }
    /* Mobile: hồ sơ dạng bảng trượt từ dưới lên */
    dialog.bio { width: 100%; max-width: none; max-height: 90vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .bio-head { gap: 14px; padding: 20px 56px 18px 16px; align-items: center; }
    .bio-photo { width: 84px; border-radius: 12px; }
    .bio-id h3 { font-size: 20px; }
    .bio-body { padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); font-size: 15px; }
    .form { padding: 22px 18px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding-top: 44px; }
    .footer-bottom { flex-direction: column; padding: 18px 16px; margin-top: 32px; }
    .toast { bottom: calc(var(--bottom-h) + 20px); }
}

/* Màn hình rất hẹp (≤ 340px): thu gọn biểu tượng + nút để tên đơn vị vẫn 1 dòng */
@media (max-width: 340px) {
    .header-in { gap: 6px; }
    .brand-mark { height: 26px; }
    .brand-l2 { font-size: 2.55vw; letter-spacing: -.035em; }
    .header-in .icon-btn, .vs-lang-switcher--mobile .vs-lang-btn { width: 32px; height: 32px; }
    .header-in .icon-btn .ic, .vs-lang-switcher--mobile .vs-lang-btn .ic { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
