/* Thành đoàn Hải Phòng - giao diện v3 (style/thanhdoan_v3) */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(fonts/BeVietnamPro-400.ttf) format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url(fonts/BeVietnamPro-500.ttf) format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(fonts/BeVietnamPro-600.ttf) format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(fonts/BeVietnamPro-700.ttf) format("truetype"); }

:root {
  --b950: #05224b;
  --b900: #073878;
  --b800: #094d9f;
  --b700: #0062bd;
  --b600: #0b77dc;
  --b500: #1f92f0;
  --sky: #22b5f0;
  --b100: #e3f0ff;
  --b50: #f2f8ff;
  --red: #da251d;
  --gold: #ffc928;
  --ink: #10233f;
  --text: #33445c;
  --muted: #66768d;
  --line: #dce7f3;
  --bg: #f5f9fe;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(8, 62, 128, .09);
  --shadow-lg: 0 18px 44px rgba(6, 46, 102, .2);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 15px/1.6 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--b800); font-weight: 600; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }


/* ---------- Top bar ---------- */
.topbar { background: var(--b950); color: #bcd2ef; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 38px; }
.topbar-date { display: inline-flex; align-items: center; gap: 8px; }
.topbar-date .i { color: var(--gold); }
.topbar-links { display: flex; gap: 22px; margin-left: auto; }
.topbar a:hover { color: #fff; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.topbar-social a:hover { background: var(--gold); color: var(--b950); }

/* ---------- Masthead ---------- */
.masthead {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(112deg, var(--b950) 0%, var(--b800) 42%, var(--b600) 72%, var(--sky) 120%);
}
.masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 8% 120%, rgba(34, 181, 240, .35), transparent 38%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 84px);
}
.masthead-photo {
  position: absolute; inset: 0 0 0 auto; z-index: -2; width: 52%;
  background-size: cover; background-position: center 35%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 40%, #000 100%);
  opacity: .5; filter: saturate(1.15);
}
.masthead-inner { display: flex; align-items: center; gap: 28px; min-height: 156px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 92px; height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28)); }
.brand-text small { display: block; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.brand-text strong {
  display: block; margin-top: 2px; font-size: 38px; font-weight: 700; line-height: 1.1;
  letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 3px 16px rgba(0, 0, 0, .25);
}
.brand-text em { display: block; margin-top: 6px; color: #d4e6fc; font-size: 14.5px; font-style: normal; }
.masthead-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; margin-left: auto; }
.slogan { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.slogan .i { color: var(--gold); font-size: 12px; }
.hsearch {
  display: flex; align-items: center; width: 320px; padding: 4px 4px 4px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-size: 14px; }
.hsearch input::placeholder { color: #d0e2f8; }
.hsearch button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--gold); color: var(--b950); font-size: 17px; }

/* ---------- Main navigation ---------- */
.mainnav { position: sticky; top: 0; z-index: 60; background: var(--b700); transition: box-shadow .2s; }
.mainnav.is-stuck { box-shadow: 0 10px 26px rgba(4, 30, 70, .28); }
.mainnav > .wrap { display: flex; align-items: stretch; min-height: 54px; }
.mini-brand { display: flex; align-items: center; width: 0; opacity: 0; overflow: hidden; transition: width .25s, opacity .25s, margin .25s; }
.mini-brand img { width: 34px; height: auto; }
.is-stuck .mini-brand { width: 40px; margin-right: 10px; opacity: 1; }
.menu { display: flex; flex: 1; align-items: stretch; }
.menu > li { position: relative; display: flex; }
.menu > li > a {
  position: relative; display: flex; align-items: center; gap: 5px; padding: 0 14px;
  color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.menu > li > a .i { font-size: 14px; opacity: .8; transition: transform .2s; }
.menu > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .2s;
}
.menu > li:hover > a::after, .menu > li:focus-within > a::after, .menu > li > a[aria-current]::after { transform: scaleX(1); }
.menu > li:hover > a .i { transform: rotate(180deg); }
.menu-home > a { padding: 0 18px; background: rgba(255, 255, 255, .12); }
.menu-home > a .i { font-size: 19px; opacity: 1; }
.menu-home > a:hover .i { transform: none; }
.sub {
  position: absolute; top: 100%; left: 0; z-index: 70; min-width: 280px; padding: 8px;
  border-radius: 0 0 14px 14px; background: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.menu > li:hover > .sub, .menu > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 500; }
.sub a:hover { background: var(--b50); color: var(--b700); }
.nav-tools { display: flex; align-items: center; margin-left: auto; }
.nav-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; }
.nav-btn:hover { background: rgba(255, 255, 255, .2); }
.nav-toggle { display: none; align-self: center; margin-right: 10px; }
.navsearch { padding: 14px 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(8, 62, 128, .08); }
.navsearch form { display: flex; gap: 10px; }
.navsearch input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; outline: 0; }
.navsearch input:focus { border-color: var(--b600); box-shadow: 0 0 0 4px var(--b100); }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(3, 20, 48, .55); opacity: 0; transition: opacity .25s; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: min(340px, 86vw);
  overflow-y: auto; background: #fff; transform: translateX(-100%); transition: transform .3s;
}
.drawer.is-open .drawer-bg { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, var(--b900), var(--b600)); color: #fff; }
.drawer-head img { width: 40px; }
.drawer-head strong { flex: 1; font-size: 16px; text-transform: uppercase; }
.drawer-search { display: flex; margin: 14px 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.drawer-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; outline: 0; }
.drawer-search button { width: 44px; border: 0; background: var(--b700); color: #fff; font-size: 18px; display: grid; place-items: center; }
.dmenu a, .dmenu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 18px;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 15px; font-weight: 600; text-align: left;
}
.dmenu button .i { transition: transform .2s; }
.dmenu button[aria-expanded="true"] { color: var(--b700); }
.dmenu button[aria-expanded="true"] .i { transform: rotate(180deg); }
.dmenu ul { display: none; background: var(--b50); }
.dmenu li.open > ul { display: block; }
.dmenu ul a { padding-left: 32px; font-size: 14px; font-weight: 500; }

/* ---------- Ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; align-items: center; gap: 14px; min-height: 50px; }
.ticker-label {
  display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #f05a2c); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(218, 37, 29, .25);
}
.ticker-track { position: relative; flex: 1; min-width: 0; height: 24px; overflow: hidden; }
.ticker-track a {
  position: absolute; inset: 0; overflow: hidden; color: var(--ink); font-weight: 500;
  white-space: nowrap; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: opacity .4s, transform .4s;
}
.ticker-track a.is-on { opacity: 1; transform: none; }
.ticker-track a.is-out { opacity: 0; transform: translateY(-100%); }
.ticker-track a:hover { color: var(--b700); }
.ticker-nav { display: flex; gap: 6px; }
.ticker-nav button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--b700); }
.ticker-nav button:hover { border-color: var(--b600); background: var(--b50); }

/* ---------- Shared pieces ---------- */
.media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--b100); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a:hover .media img { transform: scale(1.05); }
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--b700), var(--sky)); color: rgba(255, 255, 255, .3); }
.ph .i { width: 36%; height: 36%; }
.meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.tag {
  display: inline-block; max-width: 100%; margin-bottom: 10px; padding: 4px 10px; overflow: hidden; border-radius: 7px;
  background: var(--b600); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; vertical-align: top;
}
.tag--soft { margin: 14px 0 0; background: var(--b50); color: var(--b700); }
.tag--gold { margin: 14px 0 0; background: var(--gold); color: #6b1d10; }
.excerpt { margin-top: 8px; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .15); }
.btn--light { background: #fff; color: var(--b800); }
.btn--gold { background: var(--gold); color: var(--b950); }
.sec { margin-top: 44px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.sec-title { display: flex; align-items: center; gap: 12px; color: var(--b900); font-size: 21px; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.sec-title .badge {
  display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--b700), var(--sky)); color: var(--gold); font-size: 18px;
  box-shadow: 0 6px 14px rgba(11, 119, 220, .3);
}
.sec-more { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--b700); font-size: 14px; font-weight: 600; transition: gap .2s; }
.sec-more:hover { gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin: -4px 0 20px; }
.pill-link { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: .15s; }
.pill-link:hover { border-color: var(--b600); color: var(--b700); }
.pill-more { border-style: dashed; color: var(--b700); }
.pill-link.is-on { border-color: var(--b700); background: var(--b700); color: #fff; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(8, 62, 128, .05); }
.panel + .panel { margin-top: 28px; }
.panel .sec-head { margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero { margin-top: 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.05fr) minmax(0, 1.15fr); gap: 20px; }
.hcard { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; background: var(--b900); box-shadow: var(--shadow); }
.hcard > a { display: block; height: 100%; min-height: inherit; color: #fff; }
.hcard img, .hcard .ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hcard > a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 34, 75, 0) 28%, rgba(5, 34, 75, .55) 58%, rgba(3, 20, 48, .95)); }
.hcard:hover img { transform: scale(1.05); }
.hcard-body { position: absolute; right: 0; bottom: 0; left: 0; padding: 26px; }
.hcard .meta { color: #c7d9f1; }
.hcard--lg { min-height: 480px; }
.hcard--lg h2 { font-size: 27px; font-weight: 700; line-height: 1.32; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.hcard--lg .excerpt { color: #d5e3f6; -webkit-line-clamp: 2; }
.hcard--lg .tag { background: var(--red); }
.hero-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.hcard--sm { min-height: 230px; }
.hcard--sm .hcard-body { padding: 18px; }
.hcard--sm h3 { font-size: 16px; font-weight: 700; line-height: 1.42; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.latest { display: flex; flex-direction: column; padding: 20px 20px 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.latest-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid var(--b50); }
.latest-head h2 { display: flex; align-items: center; gap: 10px; color: var(--b900); font-size: 18px; font-weight: 700; text-transform: uppercase; }
.latest-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--b700); font-size: 13px; font-weight: 600; }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(218, 37, 29, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(218, 37, 29, 0); } }
.latest li + li { border-top: 1px dashed var(--line); }
.latest li a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.dbadge { flex: none; width: 50px; overflow: hidden; border: 1px solid var(--b100); border-radius: 11px; text-align: center; box-shadow: 0 4px 10px rgba(8, 62, 128, .08); }
.dbadge b { display: block; padding: 7px 0 5px; background: #fff; color: var(--b700); font-size: 19px; line-height: 1; }
.dbadge small { display: block; padding: 3px 0; background: linear-gradient(135deg, var(--b700), var(--b500)); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.latest .t { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.latest li a:hover .t { color: var(--b700); }

/* ---------- Quick access band ---------- */
.quick { position: relative; margin-top: 44px; overflow: hidden; background: linear-gradient(120deg, var(--b950), var(--b800) 52%, var(--b600)); }
.quick::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 6% 130%, rgba(34, 181, 240, .4), transparent 36%), radial-gradient(circle at 96% -30%, rgba(255, 201, 40, .22), transparent 32%);
}
.quick-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qtile { position: relative; display: flex; align-items: center; gap: 16px; padding: 28px 20px; color: #fff; transition: background .2s; }
.qtile + .qtile::before { content: ""; position: absolute; top: 26px; bottom: 26px; left: 0; width: 1px; background: rgba(255, 255, 255, .14); }
.qtile:hover { background: rgba(255, 255, 255, .06); }
.qicon {
  display: grid; flex: none; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px;
  background: rgba(255, 255, 255, .1); color: var(--gold); font-size: 25px; transition: transform .25s, background .25s, color .25s;
}
.qtile:hover .qicon { background: var(--gold); color: var(--b950); transform: translateY(-3px) rotate(-6deg); }
.qtext { min-width: 0; }
.qtile small { display: block; color: #9cc2ee; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.qtile strong { display: block; margin: 2px 0; font-size: 16px; font-weight: 700; }
.qtile .d { display: block; color: #c6d9f2; font-size: 13px; line-height: 1.45; }
.qtile .arrow { margin-left: auto; opacity: .5; transition: transform .2s, opacity .2s; }
.qtile:hover .arrow { opacity: 1; transform: translateX(4px); }

/* ---------- Main + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 30px; }
.feat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; }
.feat-main h3, .bac-main h3 { margin-top: 10px; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.42; }
.feat-main a:hover h3, .bac-main a:hover h3 { color: var(--b700); }
.list-thumb li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.list-thumb a { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: start; gap: 14px; }
.list-thumb .media { aspect-ratio: 4 / 3; border-radius: 10px; }
.list-thumb h4 { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.list-thumb a:hover h4 { color: var(--b700); }
.list-thumb .meta { margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.card .cat { display: block; margin-top: 12px; overflow: hidden; color: var(--b600); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.card h3 { margin-top: 6px; color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card .media + h3 { margin-top: 12px; }
.card a:hover h3 { color: var(--b700); }
.col-main, .side { min-width: 0; }
.side { display: grid; gap: 24px; }
.side-block { padding: 20px; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid var(--b50); }
.side-head h2 { display: flex; align-items: center; gap: 8px; color: var(--b900); font-size: 16px; font-weight: 700; text-transform: uppercase; }
.side-head h2 .i { color: var(--b600); }
.side-head a { color: var(--b700); font-size: 13px; font-weight: 600; }
.docs li + li { border-top: 1px solid var(--line); }
.docs a { display: flex; gap: 12px; padding: 12px 0; }
.doc-ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--b50); color: var(--b700); font-size: 19px; }
.docs a:hover .doc-ic { background: var(--b700); color: #fff; }
.docs h4 { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.docs .meta { margin-top: 2px; }
.app-card, .cta-quiz { position: relative; overflow: hidden; padding: 24px; border-radius: 20px; color: #fff; }
.app-card { background: linear-gradient(140deg, var(--b800), var(--b600) 60%, var(--sky)); }
.cta-quiz { background: linear-gradient(140deg, #c81e17, var(--red) 45%, #f2662f); }
.app-card .kicker, .cta-quiz .kicker, .topic-intro .kicker { color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.app-card h2, .cta-quiz h2 { margin: 6px 0 8px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.app-card p, .cta-quiz p { position: relative; margin-bottom: 16px; color: rgba(255, 255, 255, .86); font-size: 14px; }
.app-card .btn, .cta-quiz .btn { position: relative; }
.app-ic, .cta-star { position: absolute; right: -18px; bottom: -22px; color: rgba(255, 255, 255, .12); font-size: 130px; line-height: 0; transform: rotate(-12deg); }
.cta-star { color: rgba(255, 201, 40, .25); }
.vcard a { display: block; }
.vcard .media { aspect-ratio: 16 / 9; }
.play {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--red); font-size: 22px; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .2); transition: transform .2s, box-shadow .2s;
}
.vcard a:hover .play { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 12px rgba(255, 255, 255, .25); }
.vcard h3 { margin-top: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.vcard--side { margin-top: 14px; }
.vcard--side h3 { color: var(--ink); }

/* ---------- Topic band ---------- */
.topic { margin-top: 56px; padding: 48px 0; background: linear-gradient(180deg, var(--b100), var(--bg)); }
.topic-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 22px; }
.topic-intro {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 28px; border-radius: 20px; color: #fff;
  background: linear-gradient(150deg, var(--b900), var(--b700) 55%, var(--sky)); box-shadow: var(--shadow-lg);
}
.topic-intro h2 { margin-top: 8px; font-size: 23px; font-weight: 700; line-height: 1.32; }
.topic-intro p { position: relative; margin: 12px 0 22px; color: #d7e7fb; font-size: 14px; }
.topic-intro .btn { position: relative; align-self: flex-start; margin-top: auto; }
.topic-star { position: absolute; right: -30px; bottom: -40px; color: rgba(255, 201, 40, .16); font-size: 190px; line-height: 0; transform: rotate(14deg); }
.topic .card { padding: 14px 14px 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.topic .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- Youth organisations ---------- */
.orgs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.org {
  --c: var(--b600); --c-soft: var(--b50);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--c);
  border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(8, 62, 128, .05);
}
.org--sky { --c: #0aa3d8; --c-soft: #e6f7fd; }
.org--red { --c: var(--red); --c-soft: #fdecea; }
.org-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.org-ic { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--c-soft); color: var(--c); font-size: 21px; }
.org-head h3 { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.org-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 500; text-transform: none; }
.org-more { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; background: var(--c-soft); color: var(--c); transition: .2s; }
.org-more:hover { background: var(--c); color: #fff; }
.org-feature { display: block; padding: 0 20px; }
.org-feature h4 { margin-top: 12px; color: var(--ink); font-size: 15.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.org-feature:hover h4 { color: var(--c); }
.org-list { padding: 8px 20px 18px; }
.org-list li a { position: relative; display: block; padding: 10px 0 10px 18px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; }
.org-list li a::before { content: ""; position: absolute; top: 18px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.org-list li a:hover { color: var(--c); }

/* ---------- Theo dấu chân Bác ---------- */
.bac { position: relative; margin-top: 56px; padding: 48px 0; overflow: hidden; background: linear-gradient(135deg, #fff5d9, #fffbef 55%, #fff); border-block: 1px solid #f1dfae; }
.bac::after { content: ""; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 40, .35), transparent 65%); }
.bac .sec-title { color: #8f1d14; }
.bac .sec-title .badge { background: linear-gradient(135deg, var(--red), #f2662f); box-shadow: 0 6px 14px rgba(218, 37, 29, .3); }
.bac .sec-more { color: #b2261a; }
.bac-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; }
.bac-main .media { aspect-ratio: 16 / 9; border-radius: 18px; }
.bac .list-thumb li + li { border-color: #f0e2bd; }
.bac .list-thumb a:hover h4, .bac-main a:hover h3 { color: #b2261a; }

/* ---------- Library ---------- */
.library { padding: 52px 0 58px; color: #fff; background: radial-gradient(circle at 12% 0%, rgba(34, 181, 240, .25), transparent 42%), linear-gradient(160deg, var(--b950), #031737); }
.library .sec-title { color: #fff; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: #cbdcf3; font-size: 14px; font-weight: 600; }
.tab[aria-selected="true"] { background: #fff; color: var(--b800); }
.library .sec-more { color: var(--gold); }
.lib-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.lib-grid .vbig { grid-row: span 2; }
.lib-grid .vbig h3 { font-size: 19px; }
.library .vcard h3 { color: #e8f1fd; }
.library .vcard .media { border-radius: 14px; background: rgba(255, 255, 255, .06); }
.vbig .play { width: 76px; height: 76px; font-size: 30px; }
.agrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.acard .media { aspect-ratio: 4 / 3; }
.acount { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(3, 23, 55, .7); color: #fff; font-size: 17px; }

/* ---------- Partners ---------- */
.banner-link { display: block; margin: 0 auto 20px; }
.banner-link img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.partners { padding: 36px 0 44px; background: #fff; border-top: 1px solid var(--line); }
.partners-title { margin-bottom: 18px; color: var(--b900); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.partners-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.partners a { display: grid; place-items: center; height: 88px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: .2s; }
.partners a:hover { border-color: var(--b500); box-shadow: var(--shadow); transform: translateY(-3px); }
.partners img { width: auto; max-height: 64px; object-fit: contain; }

/* ---------- Footer ---------- */
.footer { color: #b6cbe7; background: var(--b950); }
.footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold) 35%, var(--sky) 70%, var(--b600)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; padding: 48px 0 36px; }
.fbrand { display: flex; align-items: center; gap: 14px; }
.fbrand img { width: 62px; }
.fbrand strong { display: block; color: #fff; font-size: 19px; font-weight: 700; text-transform: uppercase; }
.fbrand small { display: block; font-size: 13px; }
.fcontact { margin-top: 20px; }
.fcontact li { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; font-size: 14px; }
.fcontact .i { margin-top: 3px; color: var(--gold); }
.fcontact a:hover, .flinks a:hover { color: #fff; }
.footer h3 { margin-bottom: 14px; color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.flinks a { display: inline-block; padding: 5px 0; font-size: 14px; transition: transform .2s; }
.flinks a:hover { transform: translateX(4px); }
.footer p { font-size: 14px; }
.social { display: flex; gap: 10px; margin: 14px 0 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; transition: .2s; }
.social a:hover { background: var(--gold); color: var(--b950); }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--b700), var(--sky)); color: #fff; font-size: 20px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }

/* ---------- Inner pages: page head ---------- */
.sec-sm { margin-top: 28px; }
main { padding-bottom: 60px; }
.page-home main { padding-bottom: 0; }
.metas { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.muted { color: var(--muted); }
.phead {
  position: relative; overflow: hidden; padding: 22px 0 26px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 0% 140%, rgba(255, 201, 40, .2), transparent 34%), linear-gradient(180deg, #fff, var(--b50));
}
.phead::before {
  content: ""; position: absolute; top: -160px; right: -90px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 181, 240, .18), transparent 62%);
}
.phead::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 38%;
  background: repeating-linear-gradient(115deg, rgba(11, 119, 220, .05) 0 2px, transparent 2px 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.phead .wrap { position: relative; z-index: 1; }
.phead--compact { padding: 14px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; color: var(--muted); font-size: 13.5px; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 11px 0 7px;
  border-top: 1.5px solid #9fb3cc; border-right: 1.5px solid #9fb3cc; transform: rotate(45deg);
}
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--b700); font-weight: 500; }
.crumbs a:hover { color: var(--b900); text-decoration: underline; }
.crumbs .i { font-size: 15px; }
.crumbs [aria-current] span { max-width: 460px; overflow: hidden; color: var(--ink); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.phead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 16px; }
.phead .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.phead .kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.phead h1 { margin-top: 6px; color: var(--b900); font-size: 32px; font-weight: 700; line-height: 1.25; }
.phead-text p { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 6px; color: var(--muted); }
.phead-text p .meta { margin-top: 0; }
.phead-stat {
  display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; min-width: 124px; padding: 12px 20px;
  border-radius: 18px; background: linear-gradient(140deg, var(--b800), var(--b600) 60%, var(--sky)); color: #fff;
  box-shadow: 0 10px 24px rgba(11, 119, 220, .28);
}
.phead-stat b { font-size: 26px; line-height: 1.15; }
.phead-stat small { color: #d7e8fb; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.phead .pills { margin: 18px 0 0; }
.phead-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn--line { background: #fff; color: var(--b800); box-shadow: inset 0 0 0 1px var(--line); }
.btn--blue { min-height: 48px; padding: 0 22px; background: linear-gradient(135deg, var(--b700), var(--b500)); color: #fff; }
.libnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.libnav a {
  display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; transition: .15s;
}
.libnav a .i { color: var(--b600); font-size: 17px; }
.libnav a:hover { border-color: var(--b600); color: var(--b700); }
.libnav a.is-on { border-color: transparent; background: var(--b700); color: #fff; box-shadow: 0 8px 18px rgba(0, 98, 189, .25); }
.libnav a.is-on .i { color: var(--gold); }

/* ---------- News listing ---------- */
.lead-story { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.lead-story > a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.lead-story .media { height: 100%; min-height: 340px; aspect-ratio: auto; border-radius: 0; }
.lead-body { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.lead-body .tag { background: var(--red); }
.lead-body h2 { color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.4; }
.lead-story a:hover h2 { color: var(--b700); }
.lead-body .excerpt { -webkit-line-clamp: 4; }
.lead-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; color: var(--b700); font-size: 14px; font-weight: 700; transition: gap .2s; }
.lead-story a:hover .lead-more { gap: 10px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 12px; color: var(--muted); font-size: 14px; }
.list-toolbar b { color: var(--ink); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--b100); }
.seg a { padding: 6px 14px; border-radius: 9px; color: var(--b800); font-size: 13.5px; font-weight: 600; }
.seg a.is-on { background: #fff; box-shadow: 0 2px 8px rgba(8, 62, 128, .12); }
.rows { padding: 4px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(8, 62, 128, .05); }
.rows li + li { border-top: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 22px; padding: 20px 0; }
.row .media { border-radius: 14px; }
.row .cat { color: var(--b600); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.row h3 { margin-top: 6px; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.42; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.row a:hover h3 { color: var(--b700); }
.row .excerpt { -webkit-line-clamp: 2; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager a, .pager span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600;
}
.pager span { border-color: transparent; background: none; }
.pager a[href]:hover { border-color: var(--b600); color: var(--b700); }
.pager a.is-on { border-color: transparent; background: linear-gradient(135deg, var(--b700), var(--b500)); color: #fff; box-shadow: 0 8px 18px rgba(0, 98, 189, .25); }
.pager a[aria-disabled] { opacity: .45; }
.rank li + li { border-top: 1px solid var(--line); }
.rank a { display: flex; gap: 14px; padding: 12px 0; }
.rank-n { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--b50); color: var(--b700); font-size: 15px; font-weight: 700; }
.rank li:nth-child(1) .rank-n { background: linear-gradient(135deg, var(--red), #f2662f); color: #fff; }
.rank li:nth-child(2) .rank-n { background: linear-gradient(135deg, #f08c00, var(--gold)); color: #fff; }
.rank li:nth-child(3) .rank-n { background: linear-gradient(135deg, var(--b700), var(--sky)); color: #fff; }
.rank h4 { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.rank a:hover h4 { color: var(--b700); }
.rank .meta { margin-top: 4px; font-size: 12.5px; }
.catnav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--line); color: var(--ink); font-size: 14px; font-weight: 500; }
.catnav li:last-child a { border-bottom: 0; }
.catnav a .i { color: #9fb3cc; transition: transform .2s, color .2s; }
.catnav a:hover { color: var(--b700); }
.catnav a:hover .i { color: var(--b700); transform: translateX(3px); }
.latest--side { padding: 20px 20px 8px; box-shadow: 0 6px 22px rgba(8, 62, 128, .05); }

/* ---------- Article ---------- */
.readbar { position: fixed; top: 0; right: 0; left: 0; z-index: 90; height: 4px; pointer-events: none; }
.readbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold) 50%, var(--sky)); transform: scaleX(0); transform-origin: 0 50%; }
.article { padding: 34px 40px 30px; }
.article > .tag { background: var(--red); }
.art-title { color: var(--b950); font-size: 30px; font-weight: 700; line-height: 1.36; }
.art-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 16px; padding: 12px 0; border-block: 1px solid var(--line); }
.art-bar .meta { margin-top: 0; }
.art-tools { display: flex; gap: 6px; }
.art-tools button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--b800); font-size: 14px; font-weight: 700;
}
.art-tools button:hover { border-color: var(--b600); background: var(--b50); }
.art-tools sup { margin-left: 1px; font-size: 11px; }
.art-tools .i { font-size: 17px; }
.art-lead {
  position: relative; margin-top: 22px; padding: 18px 22px 18px 24px; border-radius: 14px;
  background: var(--b50); color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.65;
}
.art-lead::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 0; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--b600), var(--sky)); }
.art-body { --fs: 17px; margin-top: 22px; color: #26354b; font-size: var(--fs); line-height: 1.8; }
.art-body p { margin-bottom: 1em; }
.art-body strong { color: var(--ink); }
.art-fig { margin: 1.4em 0; }
.art-fig img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 26px rgba(8, 62, 128, .12); }
.art-author { margin-top: 12px; color: var(--ink); font-weight: 700; text-align: right; }
.art-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.art-share > span { margin-right: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.sh {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; transition: .15s;
}
.sh:hover { border-color: var(--b600); color: var(--b700); }
.sh--fb { border-color: #1877f2; background: #1877f2; color: #fff; }
.sh--fb:hover { color: #fff; filter: brightness(1.08); }
.sh--zalo { border-color: #0068ff; color: #0068ff; }
.related { margin-top: 36px; }
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 150; padding: 11px 18px; border-radius: 12px; background: var(--b950); color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 20px); transition: .25s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Albums ---------- */
.album-feature > a {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(34, 181, 240, .3), transparent 40%), linear-gradient(150deg, var(--b950), var(--b800) 60%, var(--b600));
  box-shadow: var(--shadow-lg);
}
.af-cover { position: relative; min-height: 400px; overflow: hidden; background: var(--b900); }
.af-cover img, .af-cover .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.album-feature a:hover .af-cover img { transform: scale(1.04); }
.af-body { display: flex; flex-direction: column; padding: 32px; }
.af-body .kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.af-body h2 { margin-top: 10px; font-size: 24px; font-weight: 700; line-height: 1.38; }
.af-body .meta { color: #c7d9f1; }
.af-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0 24px; }
.af-thumb { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.af-thumb img { width: 100%; height: 100%; object-fit: cover; }
.af-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 34, 75, .62); font-size: 20px; font-weight: 700; }
.af-body .btn { align-self: flex-start; margin-top: auto; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.album-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.album a { display: block; }
.album-stack { position: relative; isolation: isolate; margin-top: 14px; }
.album-stack::before, .album-stack::after {
  content: ""; position: absolute; top: -7px; right: 6%; left: 6%; z-index: -1; height: 40px; border-radius: 12px 12px 0 0;
  background: #c4dbf6; transition: transform .3s;
}
.album-stack::after { top: -14px; right: 12%; left: 12%; z-index: -2; background: #e2edfb; }
.album a:hover .album-stack::before { transform: translateY(-3px) rotate(-1.5deg); }
.album a:hover .album-stack::after { transform: translateY(-6px) rotate(2deg); }
.album .media { aspect-ratio: 4 / 3; border-radius: 14px; box-shadow: 0 10px 22px rgba(8, 62, 128, .14); }
.album-count {
  position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(3, 23, 55, .72); color: #fff; font-size: 12.5px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.album h3 { margin-top: 14px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.album a:hover h3 { color: var(--b700); }
.album .meta { margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.g-item { margin: 0; }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item button { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--b100); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item button:hover img { transform: scale(1.05); }
.g-item button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3, 20, 48, .5)); opacity: 0; transition: opacity .25s; }
.g-item button:hover::after, .g-item button:focus-visible::after { opacity: 1; }
.g-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255, 255, 255, .92); color: var(--b800); font-size: 18px; opacity: 0; transform: translateY(6px); transition: .25s;
}
.g-item button:hover .g-zoom, .g-item button:focus-visible .g-zoom { opacity: 1; transform: none; }
.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 12, 30, .97); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(2, 12, 30, .8); }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.lb-count { flex: none; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; }
.lb-title { flex: 1; min-width: 0; overflow: hidden; color: #cfe0f6; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.lb-btn { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; }
.lb-btn:hover { background: var(--gold); color: var(--b950); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 0; padding: 0 20px; }
.lb-scroll { display: flex; flex: 1; align-items: center; justify-content: center; min-width: 0; height: 100%; }
.lb-img { width: 100%; max-width: 1100px; height: 100%; object-fit: contain; }
.lightbox--scroll .lb-scroll { display: block; overflow-y: auto; overscroll-behavior: contain; }
.lightbox--scroll .lb-img { max-width: 960px; height: auto; margin: 0 auto; }
.lightbox--scroll .lb-thumbs button { width: 46px; height: 60px; }
.lb-thumbs { display: flex; justify-content: center; gap: 8px; padding: 14px 20px 18px; overflow-x: auto; }
.lb-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: none; opacity: .5; transition: .2s; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button.is-on { border-color: var(--gold); opacity: 1; }
.lb-thumbs button:hover { opacity: 1; }

/* ---------- Video ---------- */
.theater {
  padding: 32px 0 40px; color: #fff; scroll-margin-top: 54px;
  background: radial-gradient(circle at 85% 0%, rgba(34, 181, 240, .22), transparent 40%), linear-gradient(160deg, var(--b950), #031737);
}
.theater-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: stretch; gap: 24px; }
.player { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); cursor: pointer; }
.player-bg { position: absolute; top: -30px; left: -30px; z-index: -1; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) brightness(.55) saturate(1.2); }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-play {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 86px; height: 86px; border: 0; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 34px; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 12px rgba(218, 37, 29, .25), 0 14px 30px rgba(0, 0, 0, .4); transition: transform .2s, box-shadow .2s;
}
.player-play .i { margin-left: 4px; }
.player:hover .player-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 18px rgba(218, 37, 29, .2), 0 14px 30px rgba(0, 0, 0, .4); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-info { margin-top: 18px; }
.player-info .tag { background: var(--red); }
.player-title { font-size: 22px; font-weight: 700; line-height: 1.4; }
.theater .meta { color: #b9cde8; }
.player-yt:hover { color: #fff; }
.playlist {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px;
  background: rgba(255, 255, 255, .06); contain: size;
}
.playlist-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.playlist-head h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.playlist-head h2 .i { color: var(--gold); }
.playlist-head span { color: #9fbbe0; font-size: 13px; }
.playlist-items { position: relative; flex: 1; min-height: 0; padding: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.pl-item {
  position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px;
  background: none; color: #fff; text-align: left; transition: background .2s;
}
.pl-item:hover { background: rgba(255, 255, 255, .07); }
.pl-item.is-on { background: rgba(255, 255, 255, .13); }
.pl-item.is-on::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 0; width: 3px; border-radius: 3px; background: var(--gold); }
.pl-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 9px; background: rgba(255, 255, 255, .08); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3, 20, 48, .35); font-size: 18px; opacity: 0; transition: .2s; }
.pl-item:hover .pl-play, .pl-item.is-on .pl-play { opacity: 1; }
.pl-text strong { font-size: 13.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pl-text small { display: block; margin-top: 4px; color: #9fbbe0; font-size: 12px; }
.pl-item.is-on small::before { content: "Đang chọn · "; color: var(--gold); font-weight: 700; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.vgrid .vcard h3 { color: var(--ink); font-size: 15.5px; }
.vgrid .vcard a:hover h3 { color: var(--b700); }

/* ---------- Documents ---------- */
.doc-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .8fr) auto; align-items: end; gap: 16px; }
.df-field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 600; }
.df-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: .15s; }
.df-input .i { color: var(--muted); font-size: 18px; }
.df-input input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; }
.doc-filter select {
  width: 100%; height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); font: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230062bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  -webkit-appearance: none; appearance: none;
}
.df-input:focus-within, .doc-filter select:focus { border-color: var(--b600); box-shadow: 0 0 0 4px var(--b100); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip {
  display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 6px 7px 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; transition: .15s;
}
.chip b { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--b50); color: var(--b700); font-size: 12px; }
.chip:hover { border-color: var(--b600); }
.chip.is-on { border-color: var(--b700); background: var(--b700); color: #fff; }
.chip.is-on b { background: rgba(255, 255, 255, .2); color: #fff; }
.doc-panel { padding: 6px 24px 14px; }
.doc-head { padding: 12px 0; color: var(--muted); font-size: 14px; }
.doc-count b { color: var(--ink); }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th {
  padding: 12px; border-bottom: 2px solid var(--b100); color: var(--b900); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap;
}
.doc-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.doc-table tbody tr { transition: background .15s; }
.doc-table tbody tr:hover { background: var(--b50); }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-no { width: 200px; color: var(--b800); font-size: 13.5px; font-weight: 600; }
.doc-title a { color: var(--ink); font-weight: 600; line-height: 1.5; }
.doc-title a:hover { color: var(--b700); }
.doc-type { display: inline-block; padding: 3px 10px; border-radius: 8px; background: var(--b50); color: var(--b700); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.doc-date { color: var(--muted); white-space: nowrap; }
.doc-file { width: 1%; text-align: right; white-space: nowrap; }
.fbadge {
  --fc: #64748b;
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; text-align: left; transition: .15s;
}
.fbadge > .i { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--fc); color: #fff; }
.fbadge small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.fbadge--pdf { --fc: #e5322d; }
.fbadge--doc { --fc: #2b6cde; }
.fbadge--xls { --fc: #1e8e4e; }
.fbadge:hover { border-color: var(--fc); box-shadow: 0 6px 14px rgba(8, 62, 128, .1); }
.doc-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px; color: var(--muted); }

/* ---------- Document detail ---------- */
.docview-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fmini {
  display: inline-grid; flex: none; place-items: center; min-width: 44px; height: 24px; padding: 0 8px; border-radius: 7px;
  background: var(--fc, #64748b); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.docinfo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.docinfo div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--b50); }
.docinfo dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.docinfo dd { margin: 4px 0 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.docinfo dd a { color: var(--b700); }
.docfile {
  display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 16px; border: 1px dashed #b9cfe9; border-radius: 16px;
  background: linear-gradient(135deg, #fff, var(--b50));
}
.docfile-ic, .sdoc-ic {
  display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--fc, #64748b); color: #fff;
}
.docfile-ic { width: 56px; height: 64px; border-radius: 12px; font-size: 24px; box-shadow: 0 8px 18px rgba(8, 62, 128, .15); }
.docfile-ic b, .sdoc-ic b { font-size: 10px; letter-spacing: .05em; }
.docfile-text { flex: 1; min-width: 0; }
.docfile-text strong { color: var(--ink); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.docfile-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.docfile-actions { display: flex; flex: none; gap: 8px; }
.docfile-actions .btn { min-height: 46px; padding: 0 18px; }
.docviewer { margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #525659; }
.docviewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--b950); color: #fff; }
.docviewer-head h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.docviewer-head h2 .i { color: var(--gold); }
.docviewer-head a { display: inline-flex; align-items: center; gap: 6px; color: #cfe0f6; font-size: 13px; font-weight: 600; }
.docviewer-head a:hover { color: #fff; }
.docviewer iframe { display: block; width: 100%; height: 820px; border: 0; background: #525659; }
.docviewer-note { display: none; }
.docviewer--empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; background: var(--b50); color: var(--muted); text-align: center; }
.docviewer--empty > .i { color: var(--b600); font-size: 40px; }
.lookup { position: relative; overflow: hidden; padding: 22px; border-radius: 20px; background: linear-gradient(140deg, var(--b800), var(--b600) 60%, var(--sky)); color: #fff; }
.lookup .kicker { color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lookup h2 { margin: 4px 0 14px; font-size: 20px; font-weight: 700; }
.lookup form { position: relative; z-index: 1; display: flex; padding: 4px; border-radius: 12px; background: #fff; }
.lookup input { flex: 1; min-width: 0; padding: 8px 10px; border: 0; outline: 0; color: var(--ink); }
.lookup button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 9px; background: var(--gold); color: var(--b950); font-size: 18px; }
.lookup-ic { position: absolute; top: -14px; right: -16px; color: rgba(255, 255, 255, .12); font-size: 120px; line-height: 0; transform: rotate(12deg); }
.sdocs li + li { border-top: 1px solid var(--line); }
.sdocs a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.sdocs .fmini { margin-top: 2px; }
.sdocs h4 { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sdocs a:hover h4 { color: var(--b700); }
.sdocs .meta { margin-top: 4px; font-size: 12.5px; }

/* ---------- Search ---------- */
.sbox {
  display: flex; align-items: center; gap: 12px; max-width: 760px; margin-top: 18px; padding: 6px 6px 6px 18px;
  border: 2px solid var(--b100); border-radius: 16px; background: #fff; box-shadow: var(--shadow); transition: .15s;
}
.sbox:focus-within { border-color: var(--b600); box-shadow: 0 0 0 5px var(--b100), var(--shadow); }
.sbox > .i { color: var(--b600); font-size: 22px; }
.sbox input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; color: var(--ink); font-size: 17px; font-weight: 500; }
.ssum { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.ssum b { color: var(--ink); }
.ssum .sterm { color: var(--red); }
.shints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.shints span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.shints a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--b800); font-size: 13px; font-weight: 600; transition: .15s; }
.shints a:hover { border-color: var(--b600); background: var(--b50); }
.stools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tabs--light { background: var(--b100); }
.tabs--light .tab { color: var(--b800); }
.tabs--light .tab[aria-selected="true"] { background: #fff; color: var(--b800); box-shadow: 0 2px 8px rgba(8, 62, 128, .12); }
.tab b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(0, 98, 189, .1); color: var(--b700); font-size: 11.5px; text-align: center; }
.tab[aria-selected="true"] b { background: var(--b700); color: #fff; }
.sgroup + .sgroup { margin-top: 30px; }
.sgroup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sgroup-head h2 { display: flex; align-items: center; gap: 8px; color: var(--b900); font-size: 17px; font-weight: 700; text-transform: uppercase; }
.sgroup-head h2 .i { color: var(--b600); }
button.sec-more { padding: 0; border: 0; background: none; }
mark { padding: 0 2px; border-radius: 4px; background: #fff0b3; color: inherit; box-shadow: inset 0 -2px 0 var(--gold); }
.sdoc-list { padding: 4px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(8, 62, 128, .05); }
.sdoc-list li + li { border-top: 1px solid var(--line); }
.sdoc { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.sdoc-ic { width: 44px; height: 50px; border-radius: 10px; font-size: 18px; }
.sdoc-text { flex: 1; min-width: 0; }
.sdoc h3 { color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.sdoc:hover h3 { color: var(--b700); }
.sdoc-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.sdoc-size { flex: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sgrid .vcard { margin-top: 14px; }
.page-search .vcard .cat { display: block; margin-top: 10px; color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.page-search .vcard h3 { margin-top: 4px; color: var(--ink); font-size: 15px; }
.page-search .vcard a:hover h3 { color: var(--b700); }
.sempty { padding: 40px 32px; border: 1px dashed #b9cfe9; border-radius: 20px; background: #fff; text-align: center; }
.sempty-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--b50); color: var(--b600); font-size: 32px; }
.sempty h2 { margin-top: 16px; color: var(--ink); font-size: 20px; font-weight: 700; }
.sempty .sterm { color: var(--red); }
.sempty ul { display: inline-block; margin-top: 14px; color: var(--muted); text-align: left; }
.sempty li { position: relative; padding-left: 18px; line-height: 1.8; }
.sempty li::before { content: ""; position: absolute; top: 11px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--b500); }
.sempty .shints { justify-content: center; }

/* ---------- Infographic ---------- */
.ig-note { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13.5px; }
.ig-grid { columns: 4 250px; column-gap: 22px; }
.ig-grid--3 { columns: 3 220px; }
.ig-card { margin-bottom: 26px; break-inside: avoid; }
.ig-card a {
  display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  box-shadow: 0 6px 22px rgba(8, 62, 128, .06); transition: transform .25s, box-shadow .25s;
}
.ig-card a:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.ig-cover { position: relative; overflow: hidden; background: var(--b100); }
.ig-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top; transition: transform .5s; }
.ig-card a:hover .ig-cover img { transform: scale(1.03); }
.ig-cover.is-tall::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 90px; background: linear-gradient(transparent, rgba(5, 34, 75, .55)); }
.ig-count {
  position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; background: var(--gold); color: var(--b950); font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.ig-body { padding: 14px 16px 16px; }
.ig-body .cat { display: block; overflow: hidden; color: var(--b600); font-size: 11.5px; font-weight: 700; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.ig-body h3 { margin-top: 6px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ig-card a:hover h3 { color: var(--b700); }
.page-ig-one .layout { align-items: stretch; }
.page-ig-one .side { align-content: start; }
.ig-toc { position: sticky; top: 74px; }
.ig-toc .side-head span { color: var(--muted); font-size: 13px; }
.ig-thumbs {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: calc(100vh - 170px);
  margin-top: 14px; padding: 2px; overflow-y: auto; scrollbar-width: thin;
}
.ig-thumbs a { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border: 2px solid transparent; border-radius: 10px; background: var(--b50); transition: .2s; }
.ig-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ig-thumbs span {
  position: absolute; right: 4px; bottom: 4px; min-width: 22px; padding: 1px 6px; border-radius: 6px;
  background: rgba(3, 23, 55, .75); color: #fff; font-size: 11px; font-weight: 700; text-align: center;
}
.ig-thumbs a:hover { border-color: var(--b500); }
.ig-thumbs a.is-on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 201, 40, .3); }
.ig-pages { display: grid; gap: 22px; margin-top: 24px; }
.ig-page { position: relative; margin: 0; scroll-margin-top: 70px; }
.ig-page button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--b50); cursor: zoom-in; }
.ig-page img { width: 100%; height: auto; }
.ig-page button:hover .g-zoom, .ig-page button:focus-visible .g-zoom { opacity: 1; transform: none; }
.ig-no { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(3, 23, 55, .75); color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .menu > li > a { padding: 0 10px; font-size: 14px; }
  .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .latest { grid-column: 1 / -1; }
  .latest ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .latest li + li { border-top: 0; }
  .latest li { border-bottom: 1px dashed var(--line); }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest--side ol { display: block; }
  .latest--side li { border-bottom: 0; }
  .latest--side li + li { border-top: 1px dashed var(--line); }
  .row a { grid-template-columns: 220px minmax(0, 1fr); }
  .album-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .album-grid--4 .album:nth-child(4) { display: none; }
}
@media (max-width: 1024px) {
  .menu { display: none; }
  .nav-toggle { display: grid; }
  .mini-brand { width: 40px; margin-right: 10px; opacity: 1; }
  .masthead-aside { display: none; }
  .brand-text strong { font-size: 32px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qtile:nth-child(3)::before { display: none; }
  .orgs-grid { grid-template-columns: 1fr 1fr; }
  .orgs-grid .org:last-child { grid-column: 1 / -1; }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-grid .vbig { grid-column: 1 / -1; grid-row: auto; }
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phead h1 { font-size: 28px; }
  .lead-story > a { grid-template-columns: minmax(0, 1fr); }
  .lead-story .media { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .article { padding: 28px; }
  .album-feature > a { grid-template-columns: minmax(0, 1fr); }
  .af-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .album-grid, .album-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-grid--4 .album:nth-child(4) { display: block; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .theater-grid { grid-template-columns: minmax(0, 1fr); }
  .playlist { max-height: 440px; contain: none; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .df-q { grid-column: 1 / -1; }
  .doc-filter .btn { grid-column: 1 / -1; }
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody { display: block; }
  .doc-table tr {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "no no no" "title title title" "type date file";
    align-items: center; column-gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .doc-table tbody tr:last-child { border-bottom: 0; }
  .doc-table td { padding: 0; border: 0; }
  .doc-no { grid-area: no; width: auto; font-size: 12.5px; }
  .doc-no.is-empty { display: none; }
  .doc-title { grid-area: title; margin: 4px 0 10px; font-size: 15px; }
  .doc-table td:nth-child(3) { grid-area: type; }
  .doc-date { grid-area: date; font-size: 13px; }
  .doc-file { grid-area: file; width: auto; }
  .docinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docviewer iframe { height: 640px; }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-ig-one .layout { align-items: start; }
  .page-ig-one .side { display: none; }
}
@media (max-width: 760px) {
  .topbar-links { display: none; }
  .topbar-social { margin-left: auto; }
  .masthead-inner { min-height: 0; padding: 16px 0; }
  .masthead-photo { width: 75%; opacity: .35; }
  .masthead-aside { display: none; }
  .brand { gap: 12px; }
  .brand img { width: 58px; }
  .brand-text small { font-size: 10.5px; letter-spacing: .12em; }
  .brand-text strong { font-size: 23px; }
  .brand-text em { margin-top: 3px; font-size: 12px; }
  .mainnav > .wrap { min-height: 52px; }
  .ticker-nav { display: none; }
  .ticker-label { padding: 5px 10px; font-size: 11.5px; }
  .hero { margin-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hcard--lg { min-height: 360px; }
  .hcard--lg h2 { font-size: 20px; }
  .hcard--lg .excerpt { display: none; }
  .hcard-body { padding: 18px; }
  .hero-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hcard--sm { min-height: 230px; }
  .hcard--sm .hcard-body { padding: 14px; }
  .hcard--sm h3 { font-size: 14px; }
  .hcard--sm .tag { display: none; }
  .latest ol { grid-template-columns: 1fr; }
  .quick { margin-top: 32px; }
  .quick-grid { grid-template-columns: 1fr; }
  .qtile { padding: 16px 2px; }
  .qtile::before { display: none; }
  .qtile + .qtile { border-top: 1px solid rgba(255, 255, 255, .1); }
  .sec { margin-top: 32px; }
  .sec-title { font-size: 18px; }
  .sec-title .badge { width: 32px; height: 32px; font-size: 16px; }
  .panel { padding: 18px; border-radius: 18px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding: 2px 18px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .feat, .bac-grid { grid-template-columns: 1fr; }
  .list-thumb a { grid-template-columns: 104px minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cards .card + .card { padding-top: 16px; border-top: 1px solid var(--line); }
  .cards .card + .card a { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .cards .card + .card .media { grid-row: span 3; aspect-ratio: 4 / 3; border-radius: 10px; }
  .cards .card + .card .cat { margin-top: 0; font-size: 11px; }
  .cards .card + .card h3 { margin-top: 2px; font-size: 14px; }
  .cards .card + .card .meta { margin-top: 4px; }
  .side, .topic-grid, .orgs-grid { grid-template-columns: 1fr; }
  .topic, .bac { margin-top: 40px; padding: 36px 0; }
  .library { padding: 40px 0; }
  .library .sec-more { display: none; }
  .agrid { gap: 14px; }
  .partners-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .sec-sm { margin-top: 20px; }
  main { padding-bottom: 40px; }
  .page-home main { padding-bottom: 0; }
  .phead { padding: 16px 0 20px; }
  .phead--compact { padding: 12px 0; }
  .phead::after { display: none; }
  .crumbs ol { font-size: 13px; }
  .crumbs [aria-current] span { max-width: 58vw; }
  .phead-row { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 12px; }
  .phead h1 { font-size: 24px; }
  .phead-stat { flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; padding: 7px 14px; border-radius: 12px; }
  .phead-stat b { font-size: 18px; }
  .phead .pills { margin: 16px -16px 0; padding: 2px 16px; }
  .libnav, .chips { flex-wrap: nowrap; margin-inline: -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
  .libnav::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .libnav { margin-top: 16px; }
  .libnav a { padding: 8px 13px; font-size: 13.5px; }
  .lead-body { padding: 18px; }
  .lead-body h2 { font-size: 18px; }
  .lead-body .excerpt { -webkit-line-clamp: 3; }
  .list-toolbar { flex-direction: column; align-items: flex-start; margin-top: 24px; }
  .rows { padding: 0 16px; border-radius: 18px; }
  .row a { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .row .media { aspect-ratio: 4 / 3; border-radius: 10px; }
  .row .cat { font-size: 11px; }
  .row h3 { margin-top: 2px; font-size: 14.5px; }
  .row .excerpt, .row .metas .meta + .meta { display: none; }
  .row .meta { margin-top: 4px; }
  .pager a:nth-child(5) { display: none; }
  .article { padding: 20px 18px; border-radius: 18px; }
  .art-title { font-size: 22px; }
  .art-lead { padding: 14px 16px 14px 18px; font-size: 15.5px; }
  .art-body { --fs: 16px; line-height: 1.75; }
  .art-share > span { width: 100%; }
  .related { margin-top: 28px; }
  .album-feature > a { border-radius: 18px; }
  .af-body { padding: 20px; }
  .af-body h2 { font-size: 19px; }
  .album-grid, .album-grid--4 { gap: 26px 14px; }
  .album h3 { margin-top: 10px; font-size: 14px; }
  .album-count { bottom: 8px; left: 8px; padding: 3px 8px; font-size: 11.5px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; }
  .g-item button { border-radius: 12px; }
  .lb-top { padding: 10px 12px; }
  .lb-stage { padding: 0; }
  .lb-prev, .lb-next { position: absolute; z-index: 1; background: rgba(2, 12, 30, .55); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-thumbs { justify-content: flex-start; padding: 10px 12px 14px; }
  .lb-thumbs button { width: 64px; height: 46px; }
  .theater { padding: 16px 0 26px; }
  .theater-grid { gap: 18px; }
  .player { border-radius: 14px; }
  .player-play { width: 64px; height: 64px; font-size: 26px; }
  .player-title { font-size: 18px; }
  .pl-item { grid-template-columns: 112px minmax(0, 1fr); }
  .vgrid { gap: 22px 14px; }
  .vgrid .vcard h3 { font-size: 14px; }
  .doc-filter { gap: 12px; }
  .chips { margin: 14px -16px; }
  .doc-panel { padding: 2px 16px 6px; }
  .docinfo { gap: 8px; }
  .docinfo div { padding: 10px 12px; }
  .docfile { flex-wrap: wrap; }
  .docfile-actions { width: 100%; }
  .docfile-actions .btn { flex: 1; }
  .docviewer { background: none; }
  .docviewer iframe, .docviewer-head a { display: none; }
  .docviewer-note { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--b50); color: var(--muted); font-size: 13.5px; }
  .sbox { gap: 8px; padding-left: 14px; }
  .sbox input { height: 44px; font-size: 16px; }
  .sbox .btn { min-height: 44px; padding: 0 16px; }
  .stools .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .stools .tab { flex: none; padding: 7px 12px; font-size: 13px; }
  .sdoc-list { padding: 0 16px; }
  .sdoc-size { display: none; }
  .sgrid { gap: 14px; }
  .sempty { padding: 28px 18px; }
  .sempty h2 { font-size: 18px; }
  .ig-grid, .ig-grid--3 { columns: 2; column-gap: 12px; }
  .ig-card { margin-bottom: 14px; }
  .ig-card a { border-radius: 14px; }
  .ig-cover img { max-height: 340px; }
  .ig-count { top: 8px; left: 8px; padding: 3px 8px; font-size: 11px; }
  .ig-body { padding: 10px 12px 12px; }
  .ig-body h3 { font-size: 13.5px; }
  .ig-pages { gap: 14px; }
  .ig-no { top: 8px; left: 8px; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: 20px; }
  .hero-stack { grid-template-columns: 1fr; }
  .hcard--sm { min-height: 210px; }
  .lib-grid { grid-template-columns: 1fr; }
  .doc-filter { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .masthead, .mainnav, .drawer, .phead, .side, .related, .art-tools, .art-share, .footer, .totop,
  .readbar, .toast { display: none !important; }
  body { background: #fff; }
  .layout { display: block; }
  .article { padding: 0; border: 0; box-shadow: none; }
}
