:root {
    --red: #C1121F;
    --red-2: #E02A1F;
    --red-deep: #8E0B12;
    --red-dark: #5C060B;
    --red-ink: #2E0306;
    --red-soft: #FCEDEA;
    --red-line: #F1CCC6;
    --gold: #FFC72C;
    --gold-2: #FFDD6E;
    --gold-deep: #C58B00;
    --gold-ink: #6E4D00;
    --gold-soft: #FFF6D9;
    --ink: #1D1414;
    --ink-2: #4B3D3B;
    --ink-3: #85736F;
    --paper: #FBF7F1;
    --paper-2: #F4ECE2;
    --line: #EADDD1;
    --shadow: 0 18px 40px -18px rgba(92, 6, 11, .28), 0 4px 12px -6px rgba(92, 6, 11, .08);
    --shadow-red: 0 16px 34px -10px rgba(193, 18, 31, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
@media (max-width: 640px) { html { font-size: 16px; } }
body { margin: 0; font-family: 'Be Vietnam Pro', sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.serif { font-family: 'Noto Serif', Georgia, serif; }

/* ===== Longform header (chuẩn Báo Hà Tĩnh) ===== */
.longform-header { position: sticky; top: 0; z-index: 500; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 52px; border-bottom: 1px solid #e8eaed; }
.longform-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red-dark), var(--red) 50%, var(--gold)); }
.longform-header h2 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; line-height: 1; }
.longform-header .logo { width: 180px; height: 24px; display: block; text-indent: -999em; background: url(https://cdn.baohatinh.vn/assets/web/styles/img/logo.svg) 0 0 no-repeat; }
.longform-header .headline { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1a1a1a; text-decoration: none; }
.longform-header .headline:hover { color: var(--red); }
.lf-share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; background: #1877f2; color: #fff; font-size: 12px; font-weight: 600; border-radius: 4px; border: 0; cursor: pointer; line-height: 1.4; }
@media (max-width: 640px) { .longform-header { padding: 0 12px; } .longform-header .logo { width: 130px; background-size: contain; } .longform-header .headline { display: none; } }

/* ===== Chapter nav ===== */
.chap { position: fixed; left: 0; right: 0; top: 52px; z-index: 450; background: rgba(251, 247, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transform: translateY(-110%); opacity: 0; transition: transform .35s, opacity .35s; }
.chap.show { transform: none; opacity: 1; }
.chap .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.chap .wrap::-webkit-scrollbar { display: none; }
.chap a { flex-shrink: 0; position: relative; display: flex; align-items: center; gap: 7px; padding: 12px 12px; font-size: .74rem; font-weight: 700; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.chap a b { font-size: .66rem; color: var(--red-line); font-weight: 800; }
.chap a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.chap a.on { color: var(--red-dark); }
.chap a.on b { color: var(--red); }
.chap a.on::after { transform: none; }
.bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 600; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; color: #fff; margin-top: -1px;
    background:
        radial-gradient(ellipse 60% 70% at 82% 18%, rgba(255, 199, 44, .30), transparent 60%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(224, 42, 31, .45), transparent 60%),
        linear-gradient(160deg, var(--red-dark) 0%, var(--red-deep) 45%, var(--red) 100%);
}
.hero::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; align-items: center; min-height: min(780px, calc(100vh - 52px)); padding: 54px 16px 70px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 30px; } }
.h-chip { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 16px; border-radius: 999px; background: rgba(0,0,0,.2); margin-bottom: 20px; border: 1px solid rgba(255,221,110,.35); font-size: .7rem; font-weight: 600; color: #FFE6DD; }
.h-chip b { background: var(--gold); color: var(--red-ink); padding: 3px 10px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; }
.h-pre { margin: 26px 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.vals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vals span { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.vals span:nth-child(2) { background: rgba(255,199,44,.18); border-color: rgba(255,199,44,.4); color: var(--gold-2); }
.dam { margin: 0; font-weight: 900; text-transform: uppercase; line-height: 1.2; font-size: clamp(2.1rem, 5.6vw, 4.3rem); letter-spacing: -.01em; }
.dam span { display: block; opacity: 0; transform: translateY(30px); animation: up .9s cubic-bezier(.16,1,.3,1) forwards; }
.dam span:nth-child(2) { animation-delay: .15s; } .dam span:nth-child(3) { animation-delay: .3s; }
.dam i { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--gold); }
@keyframes up { to { opacity: 1; transform: none; } }
.h-sub { max-width: 600px; margin: 22px 0 0; font-size: 1rem; line-height: 1.75; color: #FFE3DB; font-weight: 300; }
.h-sub strong { color: #fff; font-weight: 700; }
.h-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 12px; font-size: .82rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-gold { background: var(--gold); color: var(--red-ink); box-shadow: 0 10px 24px -8px rgba(255,199,44,.6); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: #fff; color: var(--red-dark); }
.emblem { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.emblem .rays { position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; opacity: .55;
    background: repeating-conic-gradient(from 0deg, rgba(255, 221, 110, .22) 0deg 5deg, transparent 5deg 15deg);
    -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%); mask-image: radial-gradient(circle, #000 18%, transparent 68%);
    animation: raySpin 90s linear infinite; }
@keyframes raySpin { to { transform: rotate(360deg); } }
.emblem .halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 90, .55) 0%, rgba(255, 199, 44, .18) 45%, transparent 70%); animation: haloPulse 5s ease-in-out infinite; }
@keyframes haloPulse { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1.05); opacity: 1; } }
.emblem .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 221, 110, .28); }
.emblem .ring.r1 { width: 66%; aspect-ratio: 1; }
.emblem .ring.r2 { width: 86%; aspect-ratio: 1; border-style: dashed; border-color: rgba(255, 221, 110, .2); animation: raySpin 120s linear infinite reverse; }
.emblem img { position: relative; width: 52%; height: auto; filter: drop-shadow(0 10px 26px rgba(70, 0, 0, .45)) drop-shadow(0 0 22px rgba(255, 214, 90, .35)); animation: emblemIn 1.4s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes emblemIn { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .emblem { max-width: 340px; } }
@media (prefers-reduced-motion: reduce) { .emblem .rays, .emblem .halo, .emblem .ring.r2, .emblem img { animation: none; } }
.h-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; max-width: none; height: 60px; z-index: 1; display: block; }

/* ===== Ribbon căn cứ ===== */
.ribbon { background: var(--red-ink); color: #fff; position: relative; }
.ribbon .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
@media (max-width: 900px) { .ribbon .wrap { grid-template-columns: 1fr; gap: 22px; } }
.chain { display: flex; align-items: stretch; gap: 0; }
.chain .lk { flex: 1; position: relative; padding: 0 22px 0 0; }
.chain .lk:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: 34px; right: 6px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(255,199,44,.2)); }
.chain .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: .72rem; color: var(--gold); background: var(--red-ink); position: relative; z-index: 1; }
.chain .lk:last-child .dot { background: var(--gold); color: var(--red-ink); box-shadow: 0 0 0 6px rgba(255,199,44,.18); }
.chain small { display: block; margin-top: 10px; font-size: .64rem; font-weight: 700; color: var(--gold-2); letter-spacing: .06em; }
.chain b { display: block; font-size: .86rem; line-height: 1.3; margin-top: 2px; }
.chain span { display: block; font-size: .7rem; color: #D9B8B2; margin-top: 3px; line-height: 1.4; }
@media (max-width: 560px) { .chain { flex-direction: column; gap: 16px; } .chain .lk { padding: 0 0 0 46px; } .chain .dot { position: absolute; left: 0; top: 0; } .chain .lk:not(:last-child)::after { left: 15px; top: 34px; bottom: -16px; right: auto; width: 2px; height: auto; } .chain small { margin-top: 0; } }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nums div { text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.nums b { display: block; font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.nums span { display: block; font-size: .64rem; color: #E5C9C3; margin-top: 6px; line-height: 1.35; }
.refs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.12); }
.refs > small { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #B98F88; margin-right: 6px; }
.ref { position: relative; font-size: .7rem; font-weight: 600; padding: 5px 11px; border-radius: 8px; background: rgba(255,255,255,.06); color: #F5DCD6; border: 1px solid rgba(255,255,255,.14); cursor: help; }
.ref:hover, .ref:focus { border-color: var(--gold); color: var(--gold-2); outline: none; }
.ref .tip { position: absolute; left: 0; bottom: calc(100% + 8px); width: 290px; max-width: 80vw; background: #fff; color: var(--ink-2); font-weight: 400; font-size: .74rem; line-height: 1.55; text-align: left; padding: 11px 13px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.ref .tip b { color: var(--red-dark); }
.ref:hover .tip, .ref:focus .tip { opacity: 1; }

/* ===== Chapter heading ===== */
main section.ch { scroll-margin-top: 104px; padding: 96px 0 10px; }
.ch-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: end; margin-bottom: 34px; }
.ch-no { font-size: 6.2rem; font-weight: 900; line-height: .78; color: transparent; -webkit-text-stroke: 2px var(--red); letter-spacing: -.04em; }
.ch-k { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 8px; }
.ch-head h2 { margin: 0; font-size: 1.75rem; line-height: 1.28; font-weight: 900; color: var(--red-ink); max-width: 820px; letter-spacing: -.01em; }
.ch-head p { margin: 10px 0 0; color: var(--ink-2); font-size: .92rem; max-width: 760px; }
@media (max-width: 640px) { .ch-head { grid-template-columns: 1fr; gap: 6px; } .ch-no { font-size: 3.6rem; } .ch-head h2 { font-size: 1.25rem; } }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } .dam span { animation: none; opacity: 1; transform: none; } }
.src { display: flex; gap: 7px; font-size: .7rem; color: var(--ink-3); font-style: italic; margin-top: 12px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.lbl { display: inline-flex; align-items: center; gap: 7px; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* ===== 01 Before/After ===== */
.ba { position: relative; height: 330px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); user-select: none; --p: 50%; }
@media (max-width: 640px) { .ba { height: 420px; } }
.ba-l { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 34px 40px; }
@media (max-width: 640px) { .ba-l { padding: 24px 18px; } }
.ba-before { background: repeating-linear-gradient(135deg, #EEE7E2 0 12px, #E8E0DA 12px 24px); color: var(--ink-3); }
.ba-after { background: radial-gradient(circle at 85% 20%, rgba(255,199,44,.35), transparent 50%), linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; clip-path: inset(0 0 0 var(--p)); }
.ba-l h3 { margin: 0 0 18px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.ba-before h3 { color: var(--ink-3); }
.ba-after h3 { color: var(--gold-2); justify-content: flex-end; }
.ba-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.ba-after .ba-tags { justify-content: flex-end; }
.ba-tags span { font-size: 1.05rem; font-weight: 800; padding: 10px 18px; border-radius: 14px; }
.ba-before .ba-tags span { background: #fff; border: 1px dashed #C9BBB4; color: #8E7F7A; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.ba-before .ba-tags span:nth-child(odd) { transform: rotate(-2deg); }
.ba-before .ba-tags span:nth-child(even) { transform: rotate(1.5deg); }
.ba-after .ba-tags span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,221,110,.5); color: #fff; }
.ba-after .ba-tags span:nth-child(3n+1) { background: var(--gold); color: var(--red-ink); border-color: var(--gold); }
@media (max-width: 640px) { .ba-tags span { font-size: .82rem; padding: 7px 12px; } }
.ba-q { margin: 18px 0 0; font-size: .8rem; max-width: 560px; line-height: 1.6; }
.ba-before .ba-q { color: #8E7F7A; }
.ba-after .ba-q { margin-left: auto; text-align: right; color: #FFDCD4; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; background: var(--gold); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 20px rgba(255,199,44,.8); }
.ba-handle::after { content: '\f337'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--red-ink); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 8px 20px rgba(0,0,0,.3); border: 4px solid #fff; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-hint { text-align: center; font-size: .72rem; color: var(--ink-3); margin-top: 10px; }
.ba-hint i { color: var(--red); }

.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.acc { display: grid; gap: 10px; }
.acc-i { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.acc-i.open { border-color: var(--red-line); box-shadow: var(--shadow); }
.acc-h { width: 100%; display: grid; grid-template-columns: 42px 1fr 18px; gap: 14px; align-items: center; padding: 14px 16px; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; }
.acc-h .n { width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); color: var(--red); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: all .2s; }
.acc-i.open .acc-h .n { background: var(--red); color: var(--gold); }
.acc-h b { font-size: .88rem; line-height: 1.4; color: var(--red-ink); }
.acc-h .chev { color: var(--red); transition: transform .25s; }
.acc-i.open .chev { transform: rotate(180deg); }
.acc-b { display: none; padding: 0 18px 18px 72px; font-size: .85rem; color: var(--ink-2); line-height: 1.8; }
.acc-i.open .acc-b { display: block; animation: fade .35s both; }
.acc-b strong { color: var(--red-dark); }
@media (max-width: 640px) { .acc-b { padding-left: 18px; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.ticket { position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.ticket-h { background: var(--red); color: #fff; padding: 16px 22px 14px; position: relative; }
.ticket-h small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .16em; color: var(--gold-2); text-transform: uppercase; }
.ticket-h b { font-size: 1.05rem; font-weight: 900; text-transform: uppercase; }
.ticket-h::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; background: radial-gradient(circle at 7px 7px, #fff 6px, transparent 6.5px) 0 0 / 18px 14px repeat-x; }
.ticket ul { list-style: none; margin: 0; padding: 22px 22px 18px; display: grid; gap: 4px; }
.ticket li { display: grid; grid-template-columns: 30px auto 1fr 22px; gap: 10px; align-items: end; padding: 8px 0; font-size: .9rem; font-weight: 700; color: var(--red-ink); }
.ticket li i.ic { color: var(--red); text-align: center; align-self: center; }
.ticket li .ln { border-bottom: 2px dotted var(--red-line); height: 1px; margin-bottom: 6px; }
.ticket li .ck { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--red-line); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: transparent; transition: all .3s; align-self: center; }
.ticket.in li .ck { background: var(--red); border-color: var(--red); color: var(--gold); }
.ticket.in li:nth-child(2) .ck { transition-delay: .15s; } .ticket.in li:nth-child(3) .ck { transition-delay: .3s; } .ticket.in li:nth-child(4) .ck { transition-delay: .45s; } .ticket.in li:nth-child(5) .ck { transition-delay: .6s; } .ticket.in li:nth-child(6) .ck { transition-delay: .75s; }
.stamp { position: absolute; right: 18px; bottom: 54px; transform: rotate(-14deg) scale(1.6); opacity: 0; transition: all .5s cubic-bezier(.3,1.6,.5,1) 1s; border: 3px double var(--red); color: var(--red); padding: 4px 12px; border-radius: 8px; font-weight: 900; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.85); }
.ticket.in .stamp { opacity: .9; transform: rotate(-14deg) scale(1); }
.ticket .foot { padding: 12px 22px 16px; border-top: 1px dashed var(--line); font-size: .74rem; color: var(--ink-3); font-style: italic; }
.four-dung { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: var(--red-ink); color: #fff; }
.four-dung .lbl { color: var(--gold-2); }
.fd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.fd div { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,199,44,.6); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px; transition: background .25s; }
.fd div:hover { background: var(--gold); color: var(--red-ink); }
.fd small { font-size: .56rem; font-weight: 800; letter-spacing: .12em; color: var(--gold-2); }
.fd div:hover small { color: var(--red-deep); }
.fd b { font-size: .74rem; font-weight: 900; text-transform: uppercase; line-height: 1.15; }

/* ===== 02 Mục tiêu ===== */
.portrait { position: relative; display: grid; grid-template-columns: 1fr 300px 1fr; grid-template-areas: "a m c" "b m d" ". e ."; gap: 16px 10px; align-items: center; }
.pt { position: relative; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s; }
.pt:hover { transform: translateY(-3px); }
.pt i { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 6px; flex-shrink: 0; }
.pt b { display: block; font-size: .95rem; font-weight: 900; color: var(--red-dark); text-transform: uppercase; line-height: 1.3; }
.pt.pl { text-align: right; }
.pt.pc { text-align: center; }
.pt.pl::after, .pt.pr::after { content: ''; position: absolute; top: 50%; width: 30px; height: 2px; background: var(--gold); }
.pt.pl::after { right: -32px; }
.pt.pr::after { left: -32px; }
.portrait > :nth-child(1), .portrait > :nth-child(4) { align-self: end; }
.portrait > :nth-child(2), .portrait > :nth-child(5) { align-self: start; }
.pt-mid { grid-area: m; text-align: center; }
.pt-mid svg { width: 100%; max-width: 300px; }
.pt-mid .cap { font-size: .78rem; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.pt-mid .cap b { color: var(--red-dark); }
/* Mobile: câu dẫn ở đầu, 5 phẩm chất thành danh sách nối liền bên dưới */
@media (max-width: 900px) {
    .portrait { grid-template-columns: 1fr; grid-template-areas: "m" "a" "b" "c" "d" "e"; gap: 8px; padding-left: 0; }
    .portrait > * { align-self: auto !important; }
    .pt-mid { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; text-align: left; margin-bottom: 6px; }
    .pt-mid svg { max-width: 76px; }
    .pt-mid .cap { margin: 0; font-size: .9rem; color: var(--ink); }
    .pt, .pt.pl, .pt.pc { display: flex; align-items: center; gap: 12px; text-align: left; margin-left: 22px; padding: 11px 14px; box-shadow: none; }
    .pt:hover { transform: none; }
    .pt i { margin: 0; }
    .pt b { font-size: .86rem; }
    .pt.pl::after, .pt.pr::after { display: none; }
    .pt::before { content: ''; position: absolute; left: -22px; top: 50%; width: 16px; height: 2px; background: var(--gold); }
    .portrait::before { content: ''; position: absolute; left: 0; top: 96px; bottom: 26px; width: 2px; background: var(--gold); border-radius: 2px; }
}
.eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.25fr; gap: 10px; align-items: center; margin-top: 46px; }
/* Mobile: 3 ô cùng một hàng, dấu "=" và kết quả trải ngang bên dưới */
@media (max-width: 900px) {
    .eq { grid-template-columns: 1fr 16px 1fr 16px 1fr; gap: 6px; }
    .eq .t { padding: 14px 6px; border-radius: 14px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
    .eq .t i { font-size: 1.15rem; margin-bottom: 6px; }
    .eq .t b { font-size: .74rem; }
    .eq .op { font-size: 1.15rem; }
    .eq .op.eqs, .eq .t.res { grid-column: 1 / -1; }
    .eq .op.eqs { line-height: 1; margin: 2px 0; }
    .eq .t.res { flex-direction: row; gap: 12px; padding: 16px; }
    .eq .t.res i { margin: 0; }
    .eq .t.res b { font-size: .92rem; }
}
.eq .t { padding: 22px 16px; text-align: center; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.eq .t i { font-size: 1.4rem; color: var(--red); margin-bottom: 8px; display: block; }
.eq .t b { font-size: .88rem; font-weight: 800; color: var(--red-ink); line-height: 1.35; display: block; }
.eq .op { font-size: 1.6rem; font-weight: 900; color: var(--gold-deep); text-align: center; }
.eq .t.res { background: linear-gradient(135deg, var(--red), var(--red-dark)); border: 0; box-shadow: var(--shadow-red); }
.eq .t.res i { color: var(--gold); } .eq .t.res b { color: #fff; font-size: .98rem; }
.eq-cap { text-align: center; font-size: .8rem; color: var(--ink-3); margin-top: 12px; font-style: italic; }
details.full { margin-top: 22px; background: var(--paper-2); border-radius: 16px; border: 1px solid var(--line); }
details.full summary { cursor: pointer; padding: 14px 18px; font-size: .8rem; font-weight: 800; color: var(--red-dark); list-style: none; display: flex; align-items: center; gap: 10px; }
details.full summary::-webkit-details-marker { display: none; }
details.full summary::before { content: '\f15c'; font-family: 'Font Awesome 6 Free'; font-weight: 400; color: var(--red); }
details.full summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: .7rem; color: var(--red); transition: transform .2s; }
details.full[open] summary::after { transform: rotate(180deg); }
details.full p { margin: 0; padding: 0 20px 18px; font-family: 'Noto Serif', serif; font-size: .9rem; line-height: 1.9; color: var(--ink); }

.ruler { margin-top: 46px; padding: 26px 26px 22px; border-radius: 24px; background: var(--gold-soft); border: 1px solid #F1DE9F; }
.ruler-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ruler-h b { font-size: 1.05rem; font-weight: 900; color: var(--red-ink); text-transform: uppercase; }
.ruler-h span { font-size: .76rem; color: var(--gold-ink); }
.rl { position: relative; height: 54px; border-radius: 10px; background: var(--gold); box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); overflow: hidden;
    background-image: repeating-linear-gradient(90deg, rgba(110,77,0,.55) 0 2px, transparent 2px 2.5%), repeating-linear-gradient(90deg, rgba(110,77,0,.9) 0 2px, transparent 2px 12.5%); background-size: 100% 16px, 100% 28px; background-repeat: no-repeat; background-color: var(--gold); }
.rl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(193,18,31,.18); transition: width 1.6s cubic-bezier(.16,1,.3,1); }
.ruler.in .rl-fill { width: 100%; }
.rl-marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 640px) { .rl-marks { grid-template-columns: repeat(2, 1fr); } }
.rl-marks div { position: relative; padding: 12px 12px 12px 14px; border-left: 3px solid var(--red); background: #fff; border-radius: 0 12px 12px 0; font-size: .8rem; font-weight: 700; color: var(--red-ink); line-height: 1.4; }
.rl-marks small { display: block; font-size: .6rem; font-weight: 800; color: var(--gold-ink); letter-spacing: .1em; }

.goals { margin-top: 56px; }
.goals-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.goals-h h3 { margin: 0; font-size: 1.2rem; font-weight: 900; color: var(--red-ink); }
.gtabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .gtabs { grid-template-columns: repeat(2, 1fr); } }
.gt { position: relative; text-align: left; padding: 16px 16px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .25s; overflow: hidden; }
.gt .num { position: absolute; right: 10px; top: -8px; font-size: 3.4rem; font-weight: 900; color: rgba(193,18,31,.07); line-height: 1; }
.gt small { display: inline-block; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-ink); }
.gt b { display: block; margin-top: 8px; font-size: .84rem; line-height: 1.35; color: var(--red-ink); position: relative; }
.gt:hover { border-color: var(--red); }
.gt.on { background: var(--red); border-color: var(--red); box-shadow: var(--shadow-red); }
.gt.on b { color: #fff; } .gt.on small { background: var(--gold); color: var(--red-ink); } .gt.on .num { color: rgba(255,255,255,.12); }
.gt.on::after { content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); border: 9px solid transparent; border-bottom-color: #fff; }
.gpanel { margin-top: 14px; padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .gpanel { grid-template-columns: 1fr; padding: 20px 16px; } }
.gpanel .q { margin: 0; font-family: 'Noto Serif', serif; font-size: .93rem; line-height: 1.9; color: var(--ink); animation: fade .4s both; }
.gvis { animation: fade .5s .1s both; }
.gvis h4 { margin: 0 0 12px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.fields div { text-align: center; padding: 12px 6px 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .7rem; font-weight: 700; color: var(--ink-2); line-height: 1.3; transition: all .2s; }
.fields div i { display: block; font-size: 1.05rem; color: var(--red); margin-bottom: 6px; }
.fields div:hover { background: var(--red); color: #fff; border-color: var(--red); }
.fields div:hover i { color: var(--gold); }
.fields div.wide { grid-column: span 2; background: var(--gold-soft); border-color: #F1DE9F; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.split2 div { padding: 14px; border-radius: 14px; font-size: .8rem; font-weight: 700; line-height: 1.45; }
.split2 div:first-child { background: var(--red-soft); color: var(--red-dark); }
.split2 div:last-child { background: var(--red-ink); color: #fff; }
.split2 i { display: block; margin-bottom: 6px; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: .74rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); border: 1px solid var(--red-line); }
.chip.g { background: var(--gold-soft); color: var(--gold-ink); border-color: #F1DE9F; }
.crit4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.crit4 div { padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; font-weight: 800; color: var(--red-ink); font-size: .9rem; }
.crit4 i { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ===== 03 Bento nhiệm vụ ===== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bt { position: relative; grid-column: span 2; padding: 24px 22px 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.bt:hover { transform: translateY(-5px); }
.bt.w3 { grid-column: span 3; }
.bt.dark { background: linear-gradient(150deg, var(--red-deep), var(--red-ink)); color: #fff; border: 0; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .bt, .bt.w3 { grid-column: span 1; } .bt.full-m { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bt.full-m { grid-column: auto; } }
.bt .no { position: absolute; right: 16px; top: 8px; font-size: 4.6rem; font-weight: 900; line-height: 1; color: rgba(193,18,31,.07); }
.bt.dark .no { color: rgba(255,199,44,.12); }
.bt .lbl { margin-bottom: 8px; }
.bt.dark .lbl { color: var(--gold-2); }
.bt h3 { margin: 0; font-size: 1.05rem; line-height: 1.38; font-weight: 900; color: var(--red-ink); position: relative; }
.bt.dark h3 { color: #fff; }
.bt .key { margin: 10px 0 0; font-size: .82rem; color: var(--ink-2); line-height: 1.7; }
.bt.dark .key { color: #F3CFC8; }
.bt .vis { margin: 18px 0 16px; flex: 1; display: flex; align-items: center; }
.bt .vis > * { width: 100%; }
.read { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--red-line); background: var(--red-soft); color: var(--red-dark); font-size: .76rem; font-weight: 800; cursor: pointer; transition: all .2s; }
.read:hover { background: var(--red); color: #fff; border-color: var(--red); }
.bt.dark .read { background: var(--gold); border-color: var(--gold); color: var(--red-ink); }
.s3 { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; }
.s3 div { text-align: center; padding: 14px 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: .76rem; font-weight: 800; color: var(--red-dark); line-height: 1.35; }
.s3 div i { display: block; font-size: 1.15rem; color: var(--red); margin-bottom: 6px; }
.s3 .ar { color: var(--gold-deep); font-size: .8rem; }
@media (max-width: 480px) { .s3 { grid-template-columns: 1fr; } .s3 .ar { transform: rotate(90deg); justify-self: center; } }
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; position: relative; }
.loop div { text-align: center; padding: 12px 4px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,199,44,.35); font-size: .68rem; font-weight: 800; text-transform: uppercase; line-height: 1.25; color: #fff; animation: glow 5s infinite; }
.loop div small { display: block; font-size: .9rem; color: var(--gold); margin-bottom: 3px; }
.loop div:nth-child(2) { animation-delay: 1s; } .loop div:nth-child(3) { animation-delay: 2s; } .loop div:nth-child(4) { animation-delay: 3s; } .loop div:nth-child(5) { animation-delay: 4s; }
@keyframes glow { 0%, 14% { background: var(--gold); color: var(--red-ink); } 20%, 100% { background: rgba(255,255,255,.07); color: #fff; } }
.loop-cap { margin-top: 10px; font-size: .7rem; color: #E8BDB5; text-align: center; }
@media (max-width: 480px) { .loop div { font-size: .58rem; } }
.tiers { display: grid; gap: 6px; }
.tiers div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-size: .74rem; font-weight: 800; }
.tiers div:nth-child(1) { background: var(--red); color: #fff; margin: 0 0; }
.tiers div:nth-child(2) { background: #E2544B; color: #fff; margin: 0 8%; }
.tiers div:nth-child(3) { background: var(--red-soft); color: var(--red-dark); margin: 0 16%; }
.tiers span { font-size: .62rem; font-weight: 700; opacity: .85; text-align: right; }
.shield { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.shield svg { width: 90px; }
.shield ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.shield li { font-size: .74rem; font-weight: 700; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.shield li i { color: var(--red); width: 14px; }
.meter { display: grid; gap: 8px; }
.meter div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: .7rem; font-weight: 700; color: var(--ink-2); }
.meter span { height: 10px; border-radius: 6px; background: var(--paper-2); overflow: hidden; position: relative; }
.meter span::after { content: ''; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 6px; transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.bt.in .meter span::after { width: var(--w); }

/* ===== 04 Đề xuất ===== */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin-bottom: 40px; }
.pipe::before { content: ''; position: absolute; left: 10%; right: 10%; top: 31px; height: 4px; border-radius: 2px; background: var(--line); }
.pipe::after { content: ''; position: absolute; left: 10%; top: 31px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--gold)); width: 0; transition: width 2s cubic-bezier(.16,1,.3,1); }
.pipe.in::after { width: 80%; }
.pipe div { position: relative; z-index: 1; text-align: center; }
.pipe i { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; background: #fff; border: 3px solid var(--red); color: var(--red); font-size: 1.3rem; box-shadow: 0 0 0 6px var(--paper); }
.pipe div:last-child i { background: var(--red); color: var(--gold); }
.pipe b { font-size: .8rem; font-weight: 800; color: var(--red-ink); text-transform: uppercase; }
@media (max-width: 640px) { .pipe i { width: 46px; height: 46px; font-size: .95rem; } .pipe::before, .pipe::after { top: 21px; } .pipe b { font-size: .6rem; } }
.tree { position: relative; }
.tree-root { position: relative; max-width: 560px; margin: 0 auto; text-align: center; padding: 18px 22px; border-radius: 18px; background: var(--red-ink); color: #fff; }
.tree-root small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .16em; color: var(--gold-2); text-transform: uppercase; }
.tree-root b { font-size: .98rem; line-height: 1.4; }
.tree-root::after { content: ''; position: absolute; left: 50%; bottom: -28px; width: 2px; height: 28px; background: var(--gold-deep); }
.kids { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 56px; }
.kids::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px; background: var(--gold-deep); }
.kid { position: relative; text-align: left; padding: 18px 16px 16px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: all .25s; display: flex; flex-direction: column; gap: 10px; }
.kid::before { content: ''; position: absolute; left: 50%; top: -30px; width: 2px; height: 28px; background: var(--gold-deep); }
.kid i { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); font-size: 1.05rem; }
.kid b { font-size: .86rem; line-height: 1.38; color: var(--red-ink); }
.kid span { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.kid:hover { border-color: var(--red); }
.kid.on { border-color: var(--red); background: var(--red); box-shadow: var(--shadow-red); }
.kid.on i { background: var(--gold); color: var(--red-ink); } .kid.on b { color: #fff; } .kid.on span { color: var(--gold-2); }
@media (max-width: 860px) { .kids { grid-template-columns: 1fr 1fr; padding-top: 30px; } .kids::before, .kid::before, .tree-root::after { display: none; } }
@media (max-width: 480px) { .kids { grid-template-columns: 1fr; } }
.kans { margin-top: 18px; padding: 24px 26px; border-top: 5px solid var(--gold); }
@media (max-width: 640px) { .kans { padding: 20px 16px; } }
.kans h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 900; color: var(--red-dark); animation: fade .35s both; }
.kans blockquote { margin: 0 0 4px; padding: 12px 16px; border-left: 4px solid var(--red); background: var(--paper); border-radius: 0 12px 12px 0; font-family: 'Noto Serif', serif; font-size: .9rem; line-height: 1.8; animation: fade .4s both; }
.kans .who { font-size: .7rem; color: var(--ink-3); font-style: italic; margin: 0 0 14px; }
.dossier { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 30px; align-items: stretch; }
@media (max-width: 860px) { .dossier { grid-template-columns: 1fr; } }
.paper { position: relative; padding: 26px 26px 22px; background: #fff; border-radius: 6px 22px 22px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.paper::before { content: ''; position: absolute; left: -1px; top: -16px; width: 120px; height: 18px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.paper h4 { margin: 0 0 14px; font-size: .9rem; font-weight: 900; color: var(--red-ink); }
.paper ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
@media (max-width: 480px) { .paper ul { grid-template-columns: 1fr; } }
.paper li { display: flex; gap: 9px; font-size: .82rem; color: var(--ink-2); line-height: 1.45; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.paper li i { color: var(--red); margin-top: 3px; }
.paper li.g { grid-column: 1 / -1; color: var(--red-dark); font-weight: 800; border-bottom: 0; background: var(--gold-soft); padding: 10px 12px; border-radius: 10px; }
.alarm { border-radius: 22px; padding: 26px; background: repeating-linear-gradient(135deg, var(--red-ink) 0 16px, #3A0408 16px 32px); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.alarm i { font-size: 2rem; color: var(--gold); }
.alarm p { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.6; }
.alarm small { font-size: .7rem; color: #D7A9A1; }

/* ===== 05 Bảo vệ ===== */
.zone { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }
.z { padding: 30px 28px 26px; position: relative; }
@media (max-width: 640px) { .z { padding: 24px 18px; } }
.z.ok { background: #fff; }
.z.no { background: linear-gradient(160deg, var(--red-dark), var(--red-ink)); color: #fff; }
.z .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.z.ok .tag { background: var(--gold-soft); color: var(--gold-ink); }
.z.no .tag { background: rgba(255,255,255,.1); color: var(--gold-2); }
.z h3 { margin: 14px 0 14px; font-size: 1.15rem; font-weight: 900; line-height: 1.4; }
.z.ok h3 { color: var(--red-dark); }
.z p { margin: 0 0 14px; font-size: .84rem; line-height: 1.75; }
.z.ok p { color: var(--ink-2); }
.z.no p { color: #F0CCC4; }
.line-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--gold) 0 14px, transparent 14px 24px); z-index: 2; }
.line-mid span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; background: var(--gold); color: var(--red-ink); padding: 6px 16px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
@media (max-width: 860px) { .line-mid { left: 0; right: 0; top: auto; bottom: auto; width: auto; height: 4px; transform: none; position: relative; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 24px); } .line-mid span { transform: translate(-50%, -50%); } }
.khau { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 16px; }
.khau div { position: relative; text-align: center; padding: 12px 4px; font-size: .74rem; font-weight: 800; color: var(--red-dark); background: var(--red-soft); }
.khau div:first-child { border-radius: 12px 0 0 12px; } .khau div:last-child { border-radius: 0 12px 12px 0; background: var(--red); color: #fff; }
.khau div:not(:last-child)::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-left-color: var(--red-soft); border-right: 0; z-index: 1; }
.khau div:nth-child(2) { background: #F8D9D4; } .khau div:nth-child(2)::after { border-left-color: #F8D9D4; }
.khau div:nth-child(3) { background: #F1B9B1; } .khau div:nth-child(3)::after { border-left-color: #F1B9B1; }
.bad { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.bad span { font-size: .76rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); position: relative; }
.bad span::before { content: '\f00d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--gold); margin-right: 6px; font-size: .68rem; }
.nop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--gold); color: var(--red-ink); font-weight: 900; font-size: .86rem; text-transform: uppercase; line-height: 1.35; }
.nop i { font-size: 1.4rem; }
.lens { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: center; margin-top: 40px; padding: 28px; }
@media (max-width: 860px) { .lens { grid-template-columns: 1fr; padding: 22px 16px; } }
.donut { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
.donut svg { width: 100%; transform: rotate(-90deg); }
.donut circle.seg { fill: none; stroke: var(--paper-2); stroke-width: 30; cursor: pointer; transition: stroke .3s; }
.donut circle.seg.on { stroke: var(--red); }
.donut circle.seg:hover { stroke: var(--gold-2); }
.donut circle.seg.on:hover { stroke: var(--red-2); }
.donut .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.donut .c b { font-size: 2.6rem; font-weight: 900; color: var(--red); line-height: 1; }
.donut .c span { font-size: .66rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; max-width: 130px; }
.donut.full .c b { color: var(--gold-deep); }
.lens h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 900; color: var(--red-ink); }
.lens > div > p { margin: 0 0 16px; font-size: .84rem; color: var(--ink-2); }
.facs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .facs { grid-template-columns: 1fr; } }
.facs button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--ink-2); line-height: 1.35; transition: all .2s; }
.facs button em { font-style: normal; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 900; color: var(--ink-3); }
.facs button.on { background: var(--red); border-color: var(--red); color: #fff; }
.facs button.on em { background: var(--gold); border-color: var(--gold); color: var(--red-ink); }
.lens-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); font-size: .8rem; color: var(--gold-ink); font-weight: 600; min-height: 44px; }
.keep { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 22px; border: 2px solid var(--gold); background: #fff; }
.keep .ic { width: 70px; height: 70px; position: relative; }
.keep .ic svg { width: 100%; }
.keep p { margin: 0; font-size: .87rem; color: var(--ink-2); line-height: 1.8; }
.keep strong { color: var(--red-dark); }
@media (max-width: 560px) { .keep { grid-template-columns: 1fr; padding: 20px 16px; } }

/* ===== 06 Phụ lục ===== */
.ap-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.views { display: inline-flex; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.views button { border: 0; background: none; padding: 9px 14px; border-radius: 10px; font-size: .78rem; font-weight: 700; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.views button.on { background: var(--red); color: #fff; }
.views button.on i { color: var(--gold); }
.search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: .85rem; }
.search input { width: 100%; padding: 12px 14px 12px 38px; font-family: inherit; font-size: .82rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; outline: none; }
.search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,18,31,.1); }
.ap-note { font-size: .76rem; color: var(--ink-3); margin: -8px 0 16px; }
.ap-note b { color: var(--red); }
.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.oc { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s; }
.oc:hover { box-shadow: var(--shadow); }
.oc.big { grid-column: span 2; background: linear-gradient(140deg, #fff, var(--red-soft)); border-color: var(--red-line); }
@media (max-width: 600px) { .oc.big { grid-column: auto; } }
.oc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.oc-h b { font-size: .86rem; font-weight: 900; color: var(--red-ink); line-height: 1.35; }
.oc-h span { flex-shrink: 0; font-size: 1.5rem; font-weight: 900; color: var(--red); line-height: 1; }
.oc-h span small { font-size: .6rem; color: var(--ink-3); font-weight: 700; display: block; text-align: right; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.td { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--red); color: #fff; font-weight: 900; font-size: .86rem; cursor: pointer; transition: all .2s; position: relative; }
.td:hover { background: var(--gold); color: var(--red-ink); transform: translateY(-2px) scale(1.06); }
.td.dim, .kc.dim, tr.dim { opacity: .18; }
.td.hit { box-shadow: 0 0 0 3px var(--gold); }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kcol { background: var(--paper-2); border-radius: 18px; padding: 12px; min-height: 200px; }
.kcol-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 12px; }
.kcol-h b { font-size: .8rem; font-weight: 900; color: var(--red-ink); }
.kcol-h span { font-size: .7rem; font-weight: 800; background: var(--red); color: #fff; border-radius: 999px; padding: 2px 9px; }
.kcol.hot .kcol-h span { background: var(--gold); color: var(--red-ink); }
.kc { display: block; width: 100%; text-align: left; margin-bottom: 8px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: all .2s; }
.kc:hover { border-color: var(--red); transform: translateY(-2px); }
.kc b { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; background: var(--red-soft); color: var(--red); align-items: center; justify-content: center; font-size: .74rem; font-weight: 900; margin-right: 6px; }
.kc em { font-style: normal; font-size: .62rem; font-weight: 800; color: var(--gold-ink); background: var(--gold-soft); padding: 2px 7px; border-radius: 6px; }
.kc p { margin: 8px 0 0; font-size: .74rem; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tbl-w { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 820px; }
.tbl th { position: sticky; top: 0; background: var(--red); color: #fff; text-align: left; padding: 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.tbl td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); line-height: 1.6; }
.tbl td:first-child { font-weight: 900; color: var(--red); text-align: center; }
.tbl tr:nth-child(even) td { background: #FDFAF6; }
.tbl td.ld { font-weight: 700; color: var(--red-ink); }
mark { background: var(--gold-2); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ===== 07 Tổ chức ===== */
.hub { position: relative; height: 680px; margin-bottom: 20px; }
.hub svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub svg.lines line { stroke: var(--red-line); stroke-width: 2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.hub svg.lines line.key { stroke: var(--gold-deep); stroke-width: 3; stroke-dasharray: none; }
.hub-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 210px; height: 210px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px;
    background: radial-gradient(circle at 30% 25%, var(--red-2), var(--red-dark)); box-shadow: 0 0 0 12px rgba(193,18,31,.08), 0 0 0 26px rgba(193,18,31,.05), var(--shadow-red); }
.hub-c small { font-size: .6rem; font-weight: 800; letter-spacing: .16em; color: var(--gold-2); text-transform: uppercase; }
.hub-c b { font-size: 1.15rem; font-weight: 900; line-height: 1.25; margin-top: 4px; }
.hub-c span { font-size: .66rem; color: #F6CFC8; margin-top: 6px; line-height: 1.4; }
.hn { position: absolute; transform: translate(-50%, -50%); width: 200px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; text-align: left; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; transition: all .25s; }
.hn i { width: 34px; height: 34px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.hn b { font-size: .74rem; font-weight: 800; color: var(--red-ink); line-height: 1.3; }
.hn small { display: block; font-size: .58rem; font-weight: 800; color: var(--gold-ink); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.hn:hover { border-color: var(--red); transform: translate(-50%, -50%) scale(1.05); z-index: 3; }
.hn.key { background: var(--gold); border-color: var(--gold-deep); }
.hn.key i { background: var(--red); color: var(--gold); }
@media (max-width: 960px) { .hub { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .hub svg.lines { display: none; } .hub-c { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; width: auto; height: auto; border-radius: 20px; margin-bottom: 8px; } .hn { position: relative; left: auto !important; top: auto !important; transform: none; width: auto; } .hn:hover { transform: none; } }
@media (max-width: 520px) { .hub { grid-template-columns: 1fr; } }
.hub-hint { text-align: center; font-size: .74rem; color: var(--ink-3); margin-bottom: 50px; }
.hub-hint i { color: var(--red); }
.road-h { font-size: 1.2rem; font-weight: 900; color: var(--red-ink); margin: 0 0 20px; }
.road { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto 64px auto; column-gap: 10px; position: relative; }
.road-band { grid-column: 1 / -1; grid-row: 2; align-self: center; height: 34px; border-radius: 17px; background: #3A2A28; position: relative; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.road-band::after { content: ''; position: absolute; left: 20px; right: 20px; top: 50%; height: 3px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 32px); }
.pin { grid-row: 2; align-self: center; justify-self: center; position: relative; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--red); }
.pin.end { background: var(--gold); border-color: var(--red-dark); width: 32px; height: 32px; }
.mc { padding: 14px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.mc.top { grid-row: 1; align-self: end; margin-bottom: 8px; }
.mc.bot { grid-row: 3; align-self: start; margin-top: 8px; }
.mc.top::after, .mc.bot::after { content: ''; position: absolute; left: 50%; width: 2px; height: 14px; background: var(--red-line); }
.mc.top::after { bottom: -16px; } .mc.bot::after { top: -16px; }
.mc small { display: block; font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.mc b { display: block; font-size: .98rem; font-weight: 900; color: var(--red); line-height: 1.2; margin-top: 2px; }
.mc p { margin: 6px 0 0; font-size: .72rem; color: var(--ink-2); line-height: 1.5; }
.mc.end { background: var(--red); border-color: var(--red); }
.mc.end b { color: var(--gold); } .mc.end small { color: #FFD3CB; } .mc.end p { color: #FFE4DE; }
@media (max-width: 1000px) {
    .road { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 12px; padding-left: 46px; }
    .road-band { position: absolute; left: 8px; top: 0; bottom: 0; width: 26px; height: auto; grid-row: auto; grid-column: auto; align-self: stretch; border-radius: 13px; }
    .road-band::after { left: 50%; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--gold) 0 14px, transparent 14px 26px); }
    .pin { display: none; }
    .mc.top, .mc.bot { grid-row: auto !important; grid-column: auto !important; margin: 0; }
    .mc.top::after, .mc.bot::after { left: -32px; top: 50%; bottom: auto; width: 24px; height: 2px; }
}
.flowr { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 50px; }
@media (max-width: 860px) {
    .flowr { grid-template-columns: 1fr; gap: 0; }
    .flowr .fb { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; }
    .flowr .fb i { margin: 0; width: 28px; text-align: center; }
    .flowr .ar { display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 22px; text-align: left; border-left: 2px dashed var(--gold); margin-left: 29px; }
    .flowr .ar i { transform: rotate(90deg); font-size: 1rem; }
    .flowr .ar br { display: none; }
}
.flowr .fb { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.flowr .fb i { font-size: 1.4rem; color: var(--red); display: block; margin-bottom: 8px; }
.flowr .fb b { font-size: .86rem; font-weight: 800; color: var(--red-ink); line-height: 1.4; }
.flowr .fb.dk { background: var(--red-ink); border: 0; } .flowr .fb.dk b { color: #fff; } .flowr .fb.dk i { color: var(--gold); }
.flowr .ar { text-align: center; color: var(--gold-deep); font-weight: 800; font-size: .72rem; line-height: 1.3; }
.flowr .ar i { display: block; font-size: 1.3rem; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }
.notes div { padding: 16px 18px; border-radius: 16px; background: var(--paper-2); font-size: .82rem; color: var(--ink-2); line-height: 1.7; }
.notes strong { color: var(--red-dark); }

/* ===== Drawer ===== */
.drawer { position: fixed; inset: 0; z-index: 900; visibility: hidden; }
.drawer.open { visibility: visible; }
.dr-bg { position: absolute; inset: 0; background: rgba(46,3,6,.55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); }
.drawer.open .dr-bg { opacity: 1; }
.dr { position: absolute; right: 0; top: 0; bottom: 0; width: min(720px, 100%); background: var(--paper); transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.25); }
.drawer.open .dr { transform: none; }
.dr-h { padding: 22px 26px 20px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; position: relative; flex-shrink: 0; }
.dr-h small { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.dr-h h3 { margin: 6px 0 0; font-size: 1.12rem; line-height: 1.45; font-weight: 900; padding-right: 40px; }
.dr-x { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; font-size: 1rem; }
.dr-x:hover { background: var(--gold); color: var(--red-ink); }
.dr-b { padding: 24px 26px 40px; overflow-y: auto; }
@media (max-width: 640px) { .dr-h, .dr-b { padding-left: 18px; padding-right: 18px; } }
.dr-b .lead { margin: 0 0 18px; font-family: 'Noto Serif', serif; font-size: .95rem; line-height: 1.85; padding-left: 16px; border-left: 4px solid var(--gold); }
.dr-b ol, .dr-b ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: p; }
.dr-b li { position: relative; padding: 14px 16px 14px 50px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: .86rem; line-height: 1.78; color: var(--ink-2); }
.dr-b li::before { counter-increment: p; content: counter(p); position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: .7rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.dr-b li strong { color: var(--red-dark); }
.dr-b h4 { margin: 24px 0 10px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.dr-b .intro { font-weight: 800; color: var(--red-dark); margin: 0 0 12px; font-size: .86rem; }
.dl { display: grid; gap: 10px; margin: 0; }
.dl div { padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.dl dt { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.dl dd { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.65; }
.dl div.main { background: var(--red-ink); border: 0; } .dl div.main dt { color: var(--gold-2); } .dl div.main dd { color: #fff; font-family: 'Noto Serif', serif; font-size: .92rem; line-height: 1.8; }
.dr-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.dr-nav button { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .76rem; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.dr-nav button:hover { border-color: var(--red); color: var(--red); }

/* ===== Footer ===== */
footer { margin-top: 90px; background: var(--red-ink); color: #D9B4AD; padding: 50px 0 110px; position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.sign { text-align: center; margin-bottom: 26px; }
.sign small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-2); }
.sign b { display: block; font-size: 1.1rem; color: #fff; margin-top: 6px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .74rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.top-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: none; color: #fff; font-size: .74rem; font-weight: 700; cursor: pointer; }
.top-btn:hover { background: var(--gold); color: var(--red-ink); }
