/* ==========================================================================
   NAHAO Digital Health — Knowledge Hub design system (2026)
   Depth: layered glass + aurora light · Motion: purposeful & reduced-motion safe
   ========================================================================== */
:root {
    --night: #060b1a;
    --night-2: #0b1530;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #eef2f7;
    --bg: #f4f6fb;
    --surface: #ffffff;
    --brand: #0d9488;
    --brand-strong: #0f766e;
    --brand-soft: #e6f6f4;
    --cyan: #06b6d4;
    --violet: #8b5cf6;
    --mint: #5eead4;
    --amber: #f59e0b;
    --amber-soft: #fff6e5;
    --danger: #e11d48;
    --danger-soft: #fff0f3;
    --info: #2563eb;
    --info-soft: #eef4ff;
    --grad: linear-gradient(120deg, #14b8a6 0%, #06b6d4 45%, #8b5cf6 100%);
    --grad-soft: linear-gradient(120deg, rgba(20, 184, 166, .12), rgba(6, 182, 212, .1) 45%, rgba(139, 92, 246, .12));
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 1px rgba(15, 23, 42, .04), 0 6px 18px -10px rgba(15, 23, 42, .18);
    --shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 40px -18px rgba(15, 23, 42, .28);
    --shadow-lg: 0 30px 80px -30px rgba(2, 6, 23, .55);
    --glow: 0 0 0 1px rgba(94, 234, 212, .25), 0 12px 40px -8px rgba(6, 182, 212, .45);
    --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container: 1200px;
    --nav-h: 70px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text);
    background: radial-gradient(70rem 40rem at 100% 0%, rgba(139, 92, 246, .06), transparent 60%), var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.site main { flex: 1 0 auto; }
.site h1, .site h2, .site h3, .site h4, .site h5 { color: var(--ink); font-weight: 700; line-height: 1.3; letter-spacing: -.012em; }
.site a { color: var(--brand); text-underline-offset: 3px; }
.site a:hover { color: var(--brand-strong); }
.site img { max-width: 100%; height: auto; }
.site :focus-visible { outline: 3px solid rgba(6, 182, 212, .55); outline-offset: 2px; border-radius: 8px; }
.site mark { padding: 0 .15em; border-radius: 4px; color: inherit; background: linear-gradient(transparent 35%, rgba(94, 234, 212, .55) 35%); }
.wrap { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 2000; padding: .5rem 1rem; border-radius: 8px; color: #fff !important; background: var(--ink); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn-x {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: .65rem 1.2rem; border: 1px solid transparent; border-radius: 14px;
    font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; isolation: isolate;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn-x:hover { transform: translateY(-1px); }
.btn-x:active { transform: translateY(1px); }
.btn-x.primary { color: #fff; background: linear-gradient(120deg, #0d9488, #0891b2); box-shadow: 0 10px 24px -10px rgba(8, 145, 178, .7); }
.btn-x.primary:hover { color: #fff; box-shadow: 0 16px 30px -10px rgba(8, 145, 178, .8); }
.btn-x.mint { color: #04121a; background: var(--grad); box-shadow: var(--glow); }
.btn-x.mint:hover { color: #04121a; filter: saturate(1.15) brightness(1.05); }
.btn-x.ghost { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-x.ghost:hover { color: var(--brand-strong); border-color: #a5e4dc; }
.btn-x.on-dark { color: #e2f2ff; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.btn-x.on-dark:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn-x.sm { min-height: 38px; padding: .45rem .85rem; font-size: .86rem; border-radius: 11px; }
.btn-x.block { width: 100%; }
.btn-x[disabled], .btn-x.disabled { opacity: .5; pointer-events: none; box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--brand); background: var(--brand-soft); text-decoration: none; transition: .2s; }
.icon-btn:hover { color: #fff; background: var(--brand); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); }
.chip.amber { color: #92400e; background: var(--amber-soft); }
.chip.info { color: var(--info); background: var(--info-soft); }
.chip.danger { color: var(--danger); background: var(--danger-soft); }
.chip.muted { color: var(--muted); background: var(--line-soft); }
.chip.violet { color: #6d28d9; background: #f3efff; }
.chip.outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(15, 23, 42, .06); transition: box-shadow .3s; }
.site-nav.scrolled { box-shadow: 0 10px 30px -20px rgba(15, 23, 42, .35); }
.site-nav .navbar { min-height: var(--nav-h); padding: .5rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 6px 14px -6px rgba(15, 23, 42, .3); }
.brand-text strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.2; }
.brand-text small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.site-nav .nav-link { position: relative; padding: .5rem .75rem !important; border-radius: 10px; color: #334155; font-weight: 500; font-size: .93rem; }
.site-nav .nav-link:hover { color: var(--ink); background: rgba(15, 23, 42, .045); }
.site-nav .nav-link.active { color: var(--brand-strong); font-weight: 600; }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .1rem; height: 2px; border-radius: 2px; background: var(--grad); }
.site-nav .dropdown-menu { padding: .5rem; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 260px; animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.site-nav .dropdown-item { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 10px; font-size: .92rem; color: var(--text); }
.site-nav .dropdown-item i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item.active { color: var(--ink); background: var(--bg); }
.site-nav .dropdown-item small { display: block; color: var(--muted); font-size: .76rem; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-search { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .4rem .55rem .4rem .8rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, .7); font: 500 .88rem var(--font); cursor: pointer; transition: .2s; }
.nav-search:hover { color: var(--ink); border-color: #a5e4dc; box-shadow: 0 0 0 4px rgba(13, 148, 136, .08); }
.nav-search kbd { padding: .1rem .4rem; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; font: 600 .72rem var(--font); box-shadow: 0 1px 0 var(--line); }
.nav-login { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); border: 1px solid var(--line); text-decoration: none; background: rgba(255, 255, 255, .7); }
.nav-login:hover { color: var(--brand-strong); border-color: #a5e4dc; }
.site-nav .navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: .4rem .6rem; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(6, 182, 212, .3); }
@media (max-width: 1199.98px) {
    .site-nav .navbar-collapse { padding: .75rem 0 1rem; }
    .site-nav .nav-link.active::after { display: none; }
    .site-nav .nav-link.active { background: var(--brand-soft); }
    .nav-actions { margin-top: .75rem; flex-wrap: wrap; }
    .nav-actions .btn-x, .nav-actions .nav-search { flex: 1; }
}

/* ---------- Dark aurora hero ---------- */
.hero-dark { position: relative; overflow: hidden; isolation: isolate; color: #cbd5e1; background: radial-gradient(120% 80% at 50% 0%, var(--night-2), var(--night) 70%); }
.hero-dark::before, .hero-dark::after { content: ""; position: absolute; z-index: -2; width: 46rem; height: 46rem; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.hero-dark::before { top: -24rem; right: -10rem; background: radial-gradient(circle, rgba(6, 182, 212, .55), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.hero-dark::after { bottom: -30rem; left: -14rem; background: radial-gradient(circle, rgba(139, 92, 246, .5), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6rem, 4rem, 0) scale(1.15); } }
.hero-dark .grid-floor { position: absolute; inset: auto -20% -1px -20%; height: 55%; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(94, 234, 212, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 234, 212, .14) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(600px) rotateX(62deg); transform-origin: bottom; mask-image: linear-gradient(to top, #000, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); }
.hero-dark canvas.net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero-dark h1, .hero-dark h2 { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .32rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); }
.hero-dark .kicker { color: #cffafe; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.home-hero { padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(7rem, 11vw, 9rem); text-align: center; }
.home-hero h1 { margin: 0 auto 1rem; max-width: 16ch; font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.15; letter-spacing: -.025em; }
.home-hero h1 span { display: block; background: linear-gradient(100deg, #5eead4, #67e8f9 40%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero .lead { max-width: 40rem; margin: 0 auto 2rem; color: #94a3b8; font-size: clamp(1rem, 1.6vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* AI search bar */
.ai-search { position: relative; max-width: 760px; margin: 0 auto; text-align: left; z-index: 20; }
.ai-search form { position: relative; display: flex; align-items: center; gap: .5rem; padding: .5rem .5rem .5rem 1rem; border-radius: 22px; background: rgba(15, 23, 42, .6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ai-search form::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 23px; padding: 1.5px; background: conic-gradient(from var(--angle, 0deg), #14b8a6, #06b6d4, #8b5cf6, #ec4899, #14b8a6); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 6s linear infinite; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }
.ai-search.light form { background: #fff; box-shadow: var(--shadow); }
.ai-search.light input { color: var(--ink); }
.ai-search .spark { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #04121a; background: var(--grad); font-size: 1.1rem; }
.ai-search input { flex: 1; min-width: 0; min-height: 52px; padding: 0 .5rem; border: 0; outline: 0; color: #fff; background: transparent; font: 500 1.1rem var(--font); }
.ai-search input::placeholder { color: #94a3b8; }
.ai-search .hint-kbd { color: #64748b; font-size: .78rem; margin-right: .25rem; white-space: nowrap; }
@media (max-width: 575.98px) { .ai-search .hint-kbd { display: none; } .ai-search .go span { display: none; } }
.quick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.quick-chips a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; color: #cbd5e1; font-size: .85rem; text-decoration: none; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); transition: .2s; }
.quick-chips a:hover { color: #fff; border-color: rgba(94, 234, 212, .5); background: rgba(94, 234, 212, .08); }

/* Suggest dropdown (hero + command palette) */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + .6rem); z-index: 30; display: none; max-height: min(70vh, 520px); overflow-y: auto; padding: .5rem; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); text-align: left; }
.suggest.open { display: block; animation: pop .18s var(--ease); }
.suggest a.item { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 12px; color: var(--text); text-decoration: none; }
.suggest a.item > i { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.suggest a.item b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.suggest a.item small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest a.item span { min-width: 0; flex: 1; }
.suggest a.item em { flex: 0 0 auto; font-style: normal; color: var(--muted); font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; background: var(--line-soft); }
.suggest a.item.active, .suggest a.item:hover { background: var(--bg); }
.suggest .answer { display: flex; align-items: center; gap: .8rem; margin: .25rem .25rem .5rem; padding: .85rem 1rem; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #0f766e, #0e7490 60%, #6d28d9); text-decoration: none; }
.suggest .answer:hover { color: #fff; filter: brightness(1.05); }
.suggest .answer i { font-size: 1.4rem; }
.suggest .answer b { display: block; }
.suggest .answer small { color: #ccfbf1; }
.suggest .answer strong { margin-left: auto; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.suggest .all { display: block; margin-top: .25rem; padding: .65rem; border-radius: 12px; text-align: center; font-weight: 600; font-size: .9rem; text-decoration: none; background: var(--bg); }
.suggest .none { padding: 1.25rem; text-align: center; color: var(--muted); }
.suggest .loading { padding: 1rem; text-align: center; color: var(--muted); }

/* Command palette */
.cmdk { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(2, 6, 23, .55); backdrop-filter: blur(6px); }
.cmdk.open { display: flex; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cmdk-box { position: relative; width: min(100%, 680px); border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); animation: pop .2s var(--ease); }
.cmdk-box form { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.cmdk-box form > i { color: var(--brand); font-size: 1.2rem; }
.cmdk-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1.1rem var(--font); color: var(--ink); background: transparent; }
.cmdk-box kbd { padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 600 .72rem var(--font); background: #fff; }
.cmdk-box .suggest { position: static; display: block; box-shadow: none; border: 0; border-radius: 0; max-height: 60vh; }
.cmdk-foot { display: flex; flex-wrap: wrap; gap: 1rem; padding: .6rem 1.1rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .76rem; }

/* Duty strip in hero */
.duty-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; max-width: 760px; margin: 2.25rem auto 0; padding: .85rem 1rem; border-radius: 18px; text-align: left; color: #cbd5e1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px); }
.duty-strip .who { display: flex; align-items: center; gap: .75rem; }
.duty-strip .avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #04121a; background: var(--grad); font-weight: 700; }
.duty-strip strong { display: block; color: #fff; font-size: .98rem; }
.duty-strip small { color: #94a3b8; }
.duty-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; color: #86efac; }
.duty-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.duty-strip .calls { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.duty-strip .calls a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 11px; color: #e2f2ff; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: .2s; }
.duty-strip .calls a:hover { color: #04121a; background: var(--mint); }
.duty-strip .calls a small { color: inherit; opacity: .75; font-weight: 500; }
@media (max-width: 767.98px) { .duty-strip .calls { margin-left: 0; width: 100%; } .duty-strip .calls a { flex: 1; justify-content: center; } }

/* ---------- Depth cards ---------- */
.card-x { position: relative; height: 100%; border: 1px solid rgba(15, 23, 42, .06); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-x.pad { padding: 1.5rem; }
.card-x.hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card-x.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(13, 148, 136, .25); }
.spot { --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(6, 182, 212, .13), transparent 45%); }
.spot:hover::after { opacity: 1; }
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .25s var(--ease), box-shadow .35s var(--ease); }

/* ---------- Service tiles ---------- */
.services { position: relative; z-index: 3; margin-top: -4rem; }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; perspective: 1200px; }
.service { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem 1.1rem 1.25rem; border-radius: 20px; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 20px 50px -24px rgba(2, 6, 23, .45), inset 0 1px 0 #fff; backdrop-filter: blur(12px); }
.service:hover { color: var(--text); box-shadow: 0 30px 60px -24px rgba(2, 6, 23, .55), inset 0 1px 0 #fff; }
.service .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.3rem; color: #fff; background: var(--c, var(--brand)); box-shadow: 0 10px 20px -10px var(--c, var(--brand)); transform: translateZ(30px); }
.service strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; transform: translateZ(20px); }
.service small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.service .go { position: absolute; right: 1rem; top: 1.1rem; color: #cbd5e1; transition: .25s var(--ease); }
.service:hover .go { color: var(--brand); transform: translate(2px, -2px); }
@media (max-width: 991.98px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .service { padding: 1rem .9rem; } .service .go { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section.tight { padding-top: 3rem; }
.section.soft { background: linear-gradient(180deg, transparent, rgba(13, 148, 136, .05) 30%, transparent); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.section-head p { max-width: 40rem; margin: .45rem 0 0; color: var(--muted); }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .45rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--brand-strong); background: var(--grad-soft); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.stat { padding: 1.25rem 1.3rem; overflow: hidden; }
.stat b { display: block; font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat i { position: absolute; right: 1rem; top: 1rem; color: #cbd5e1; font-size: 1.4rem; }
@media (max-width: 767.98px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Knowledge bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.bento > * { grid-column: span 4; }
.bento > .wide { grid-column: span 8; }
.bento > .half { grid-column: span 6; }
@media (max-width: 991.98px) { .bento > *, .bento > .wide, .bento > .half { grid-column: span 6; } }
@media (max-width: 575.98px) { .bento > *, .bento > .wide, .bento > .half { grid-column: span 12; } }
.topic-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem; overflow: hidden; text-decoration: none; color: var(--text); }
.topic-card:hover { color: var(--text); }
.topic-card .ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: #fff; font-size: 1.35rem; background: var(--c); box-shadow: 0 12px 24px -12px var(--c); }
.topic-card h3 { margin: 0; font-size: 1.1rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.topic-card .count { margin-top: auto; color: var(--muted); font-size: .82rem; }
.topic-card .glow { position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--c); opacity: .14; filter: blur(30px); pointer-events: none; }
.topic-card.active { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), var(--shadow); }
.guide-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem; text-decoration: none; color: var(--text); }
.guide-card:hover { color: var(--text); }
.guide-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.guide-card p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card .meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: auto; padding-top: .4rem; color: var(--muted); font-size: .8rem; }
.guide-feature { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; color: #e2e8f0; background: radial-gradient(120% 120% at 100% 0%, #1e1b4b, #0b1530 50%, #042f2e); border: 0 !important; text-decoration: none; }
.guide-feature:hover { color: #e2e8f0; }
.guide-feature .copy { padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.guide-feature h3 { color: #fff; font-size: 1.35rem; margin: .25rem 0; }
.guide-feature p { color: #94a3b8; margin: 0; }
.guide-feature .chip { align-self: flex-start; color: #cffafe; background: rgba(255, 255, 255, .08); }
.guide-feature ol { margin: 0; padding: 1.75rem 1.75rem 1.75rem 2.75rem; display: grid; gap: .55rem; align-content: center; background: rgba(255, 255, 255, .04); border-left: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
.guide-feature ol li::marker { color: var(--mint); font-weight: 700; }
.guide-feature .link-more { color: var(--mint); margin-top: auto; }
@media (max-width: 767.98px) { .guide-feature { grid-template-columns: 1fr; } .guide-feature ol { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); } }

/* Info cards */
.info-card { display: flex; flex-direction: column; overflow: hidden; }
.info-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f7; }
.info-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.info-card figure.contain img { object-fit: contain; padding: 1rem; background: #fff; }
.info-card:hover figure img { transform: scale(1.06); }
.info-card .body { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem 1.15rem; }
.info-card .body i { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; color: var(--brand); background: var(--brand-soft); }
.info-card h3 { margin: 0; font-size: 1rem; }
.info-card a.zoom { color: inherit; text-decoration: none; }

/* Mission & values */
.mission-list { margin: 0; padding: 0; list-style: none; counter-reset: mission; display: grid; gap: .8rem; }
.mission-list li { position: relative; padding: 1.1rem 1.15rem 1.1rem 4rem; border-radius: 14px; background: var(--bg); }
.mission-list li::before { counter-increment: mission; content: counter(mission); position: absolute; left: 1.1rem; top: 1.05rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-weight: 700; background: var(--grad); }
.mission-list strong { display: block; color: var(--ink); margin-bottom: .15rem; }
.mission-list span { color: var(--muted); font-size: .92rem; }
.values { display: grid; gap: .7rem; }
.value { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line-soft); border-radius: 14px; }
.value b { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, #0f766e, #0891b2); }
.value:nth-child(2) b { background: linear-gradient(135deg, #0891b2, #2563eb); }
.value:nth-child(3) b { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.value:nth-child(4) b { background: linear-gradient(135deg, #7c3aed, #db2777); }
.value strong { display: block; color: var(--ink); }
.value span { color: var(--muted); font-size: .9rem; }
.card-title-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.2rem; }
.card-title-row i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--ink); font-size: 1.1rem; }
.card-title-row h3 { margin: 0; font-size: 1.15rem; }
.card-title-row small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }

/* Videos */
.video-card { overflow: hidden; border-radius: var(--radius); background: var(--night); box-shadow: var(--shadow); }
.video-lite { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 30%, #0e7490, #0b1530 60%); }
.video-lite button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.video-lite button:hover img { opacity: 1; transform: scale(1.04); }
.video-lite .play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #04121a; background: rgba(255, 255, 255, .95); font-size: 2rem; transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(255, 255, 255, .15); transition: transform .25s var(--ease); }
.video-lite button:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(5rem, 8vw, 6rem); }
.page-hero h1 { margin: 0 0 .6rem; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.02em; }
.page-hero p { max-width: 44rem; margin: 0; color: #94a3b8; }
.page-hero .crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .85rem; }
.page-hero .crumbs li { color: #64748b; }
.page-hero .crumbs li + li::before { content: "/"; margin-right: .4rem; color: #475569; }
.page-hero .crumbs a { color: #cbd5e1; text-decoration: none; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .hero-side { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 992px) { .page-hero .hero-side { justify-content: flex-end; } }
.page-body { position: relative; z-index: 2; margin-top: -3rem; padding-bottom: 4.5rem; }

/* ---------- Documents ---------- */
.filter-card { position: sticky; top: calc(var(--nav-h) + 1rem); padding: 1.25rem; height: auto; }
.search-box { position: relative; }
.search-box i { position: absolute; left: .95rem; top: 50%; color: var(--muted); transform: translateY(-50%); }
.search-box input { width: 100%; min-height: 48px; padding: .6rem 1rem .6rem 2.6rem; border: 1px solid var(--line); border-radius: 14px; font: inherit; background: var(--bg); transition: .2s; }
.search-box input:focus { outline: 0; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(6, 182, 212, .14); }
.filter-title { margin: 1.25rem 0 .5rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.filter-list { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.filter-list a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 11px; color: var(--text); text-decoration: none; font-size: .94rem; transition: .15s; }
.filter-list a i { color: var(--muted); }
.filter-list a span { flex: 1; }
.filter-list a em { min-width: 28px; padding: .05rem .5rem; border-radius: 999px; font-style: normal; font-size: .78rem; text-align: center; color: var(--muted); background: var(--line-soft); }
.filter-list a:hover { background: var(--bg); }
.filter-list a.active { color: var(--brand-strong); font-weight: 600; background: var(--grad-soft); }
.filter-list a.active i { color: var(--brand); }
.filter-list a.active em { color: #fff; background: var(--brand); }
.tabs-scroll { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; scrollbar-width: thin; }
.tabs-scroll a { flex: 0 0 auto; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: #fff; font-size: .88rem; text-decoration: none; }
.tabs-scroll a.active { color: #fff; border-color: transparent; background: linear-gradient(120deg, #0d9488, #0891b2); }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.result-bar strong { color: var(--ink); }
.doc-list { display: grid; gap: .65rem; }
.doc-row { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid rgba(15, 23, 42, .06); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.doc-row:hover { border-color: rgba(13, 148, 136, .25); box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-ico { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; font-size: 1.35rem; }
.doc-ico.t-policy { color: #0f766e; background: #e6f6f4; }
.doc-ico.t-rule { color: #15803d; background: #eafbef; }
.doc-ico.t-order { color: var(--danger); background: var(--danger-soft); }
.doc-ico.t-manual { color: #b45309; background: var(--amber-soft); }
.doc-ico.t-other { color: var(--info); background: var(--info-soft); }
.doc-ico.t-guide { color: #6d28d9; background: #f3efff; }
.doc-ico.t-service { color: #0e7490; background: #e0f7fb; }
.doc-main { flex: 1; min-width: 0; }
.doc-main h3 { margin: .25rem 0 .2rem; font-size: 1rem; font-weight: 600; line-height: 1.45; }
.doc-main h3 a { color: var(--ink); text-decoration: none; }
.doc-main h3 a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.doc-main h3 a:hover { color: var(--brand-strong); }
.doc-main p { margin: .2rem 0 .35rem; color: var(--muted); font-size: .9rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .82rem; }
.doc-actions { position: relative; z-index: 1; display: flex; gap: .4rem; flex: 0 0 auto; }
@media (max-width: 575.98px) { .doc-row { flex-wrap: wrap; } .doc-ico { width: 44px; height: 44px; font-size: 1.2rem; } .doc-actions { width: 100%; justify-content: flex-end; } }

.empty { padding: 3.5rem 1.5rem; text-align: center; color: var(--muted); border: 1px dashed #cbd5e1; border-radius: var(--radius); background: rgba(255, 255, 255, .8); }
.empty > i { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1rem; border-radius: 22px; color: #fff; background: var(--grad); font-size: 2rem; box-shadow: var(--glow); }
.empty h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.empty p { margin: 0 auto; max-width: 30rem; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-card .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 30% 20%, #ccfbf1, #e0e7ff); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #2dd4bf; font-size: 2.6rem; }
.news-card .body { display: flex; flex: 1; flex-direction: column; padding: 1.15rem 1.2rem 1.25rem; }
.news-card time { color: var(--muted); font-size: .82rem; }
.news-card h3 { margin: .35rem 0 .5rem; font-size: 1.06rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--brand-strong); }
.news-card p { flex: 1; margin: 0 0 1rem; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .links { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.link-more i { transition: transform .2s var(--ease); }
.link-more:hover i { transform: translateX(3px); }

/* ---------- Apps ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.app-card { display: flex; flex-direction: column; padding: 1.4rem; }
.app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.app-icon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 1.8rem; box-shadow: var(--glow); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.app-card .updated { color: var(--muted); font-size: .8rem; }
.app-card p { flex: 1; margin: 0 0 1.1rem; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-card .actions { display: grid; gap: .5rem; }

/* ---------- Organization ---------- */
.org-top { display: grid; justify-items: center; }
.org-line { width: 2px; height: 30px; background: linear-gradient(#cbd5e1, #5eead4); }
.person { position: relative; width: 100%; max-width: 420px; padding: 1.4rem; text-align: center; }
.person .avatar { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: .75rem; border-radius: 20px; color: #fff; font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, #0b1530, #334155); }
.person.head .avatar { background: var(--grad); }
.person h3 { margin: 0; font-size: 1.05rem; }
.person .role { color: var(--muted); font-size: .88rem; }
.person .tag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); }
.duties { margin: 1rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px dashed var(--line); text-align: left; display: grid; gap: .35rem; }
.duties li { position: relative; padding-left: 1.4rem; color: var(--text); font-size: .88rem; line-height: 1.5; }
.duties li::before { content: ""; position: absolute; left: .2rem; top: .55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.team-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .9rem 1.1rem; border-radius: 16px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid rgba(15, 23, 42, .06); box-shadow: var(--shadow-sm); }
.team-head i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #0d9488, #0891b2); }
.team-head.med i { background: linear-gradient(135deg, #7c3aed, #db2777); }
.person.staff { max-width: none; text-align: left; }
.person.staff .avatar { width: 52px; height: 52px; border-radius: 15px; font-size: 1.2rem; float: left; margin: 0 .9rem .5rem 0; color: var(--brand-strong); background: var(--brand-soft); }
.person.staff.med .avatar { color: #6d28d9; background: #f3efff; }
.person.staff .duties { clear: both; }

/* ---------- Article & guides ---------- */
.article { padding: clamp(1.5rem, 4vw, 3rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.article h1 { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.35; }
.article figure { margin: 0 0 1.75rem; border-radius: var(--radius); overflow: hidden; background: #eef2f7; text-align: center; }
.article figure img { max-height: 620px; width: auto; }
.prose { color: #334155; font-size: 1.06rem; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.attach { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: 16px; background: var(--grad-soft); border: 1px solid rgba(13, 148, 136, .15); }
.attach > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: var(--grad); font-size: 1.2rem; }
.attach div { flex: 1; min-width: 200px; }
.attach strong { display: block; color: var(--ink); }
.attach small { color: var(--muted); }
.attach .btns { display: flex; flex-wrap: wrap; gap: .5rem; flex: 0 0 auto; min-width: 0; }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.steps { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: .85rem; }
.steps li { position: relative; padding: 1rem 1.1rem 1rem 4rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-soft); }
.steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 1.1rem; top: 1rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; font-weight: 700; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(6, 182, 212, .8); }
.steps strong { display: block; color: var(--ink); margin-bottom: .15rem; }
.steps span { color: var(--muted); }
.tipbox { display: flex; gap: .85rem; margin-top: 1.5rem; padding: 1rem 1.15rem; border-radius: 16px; color: #78350f; background: var(--amber-soft); border: 1px solid #fde4b0; }
.tipbox > i { font-size: 1.25rem; color: var(--amber); }
.tipbox ul { margin: 0; padding-left: 1.1rem; }
.progress-read { position: fixed; left: 0; top: 0; z-index: 2100; height: 3px; width: 0; background: var(--grad); box-shadow: 0 0 12px rgba(6, 182, 212, .7); }

/* ---------- Search page ---------- */
.search-hero .ai-search { margin: 1.5rem 0 0; max-width: 820px; }
.type-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.type-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: #fff; font-size: .9rem; text-decoration: none; box-shadow: var(--shadow-sm); transition: .15s; }
.type-tabs a em { font-style: normal; color: var(--muted); font-size: .78rem; }
.type-tabs a.active { color: #fff; border-color: transparent; background: linear-gradient(120deg, #0d9488, #0891b2); box-shadow: 0 10px 20px -12px rgba(8, 145, 178, .8); }
.type-tabs a.active em { color: #ccfbf1; }
.type-tabs a.zero { opacity: .5; }
.answer-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1.15rem 1.3rem; border-radius: 18px; color: #e2e8f0; background: radial-gradient(120% 140% at 100% 0%, #312e81, #0b1530 55%, #042f2e); box-shadow: var(--shadow); }
.answer-card .lead-ico { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; color: #04121a; background: var(--grad); font-size: 1.35rem; }
.answer-card strong { display: block; color: #fff; }
.answer-card small { color: #94a3b8; }
.answer-card .calls { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.suggest-list { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.25rem, 3vw, 2.25rem); height: auto; }
.form-step { display: grid; grid-template-columns: 44px 1fr; gap: 0 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
.form-step:first-of-type { padding-top: 0; border-top: 0; }
.form-step > .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--grad); font-weight: 700; box-shadow: 0 8px 18px -8px rgba(6, 182, 212, .7); }
.form-step > .content { min-width: 0; }
.form-step h2 { margin: .35rem 0 .2rem; font-size: 1.12rem; }
.form-step .hint { margin: 0 0 1.1rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 575.98px) { .form-step { grid-template-columns: 1fr; } .form-step > .num { margin-bottom: .5rem; } }
.field { display: block; }
.field > span.label { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .9rem; font-weight: 600; }
.field > span.label em { color: var(--danger); font-style: normal; }
.input, .select, .textarea { display: block; width: 100%; min-height: 50px; padding: .65rem .95rem; border: 1px solid #d5dde8; border-radius: 14px; color: var(--ink); background: #fff; font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.1a.6.6 0 0 1 .8 0L8 10.7l5.6-5.6a.6.6 0 1 1 .8.8l-6 6a.6.6 0 0 1-.8 0l-6-6a.6.6 0 0 1 0-.8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.input:hover, .select:hover, .textarea:hover { border-color: #b4c3d6; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .14); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.field .help { display: block; margin-top: .35rem; color: var(--muted); font-size: .8rem; }
.field .counter { float: right; font-variant-numeric: tabular-nums; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.check-tile { position: relative; display: block; cursor: pointer; }
.check-tile input { position: absolute; opacity: 0; pointer-events: none; }
.check-tile span { display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: .65rem .85rem; border: 1px solid #d5dde8; border-radius: 14px; background: #fff; font-size: .94rem; transition: .15s; }
.check-tile span::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid #b4c3d6; border-radius: 6px; background: #fff center / 12px no-repeat; transition: .15s; }
.check-tile:hover span { border-color: #8fd8d0; }
.check-tile input:checked + span { border-color: var(--brand); background: var(--grad-soft); color: var(--brand-strong); font-weight: 600; }
.check-tile input:checked + span::before { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M13.5 3.6a.9.9 0 0 1 0 1.3l-6.8 6.8a.9.9 0 0 1-1.3 0L2.5 8.8a.9.9 0 1 1 1.3-1.3l2.3 2.3 6.1-6.2a.9.9 0 0 1 1.3 0z'/%3E%3C/svg%3E"); }
.check-tile input:focus-visible + span { box-shadow: 0 0 0 4px rgba(6, 182, 212, .3); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label > span { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .6rem .8rem; border: 1px solid #d5dde8; border-radius: 14px; background: #fff; font-weight: 600; transition: .15s; }
.seg label > span i { font-size: 1.2rem; }
.seg input:checked + span { color: var(--brand-strong); border-color: var(--brand); background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(6, 182, 212, .3); }
.seg .urg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); box-shadow: 0 0 8px var(--c, var(--brand)); }
.seg.urgency label > span { flex-direction: column; gap: .1rem; text-align: center; }
.seg.urgency label > span small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.consent { display: grid; gap: .75rem; padding: 1.15rem; border-radius: 16px; background: var(--amber-soft); border: 1px solid #fde4b0; }
.consent p { margin: 0; color: #92400e; font-size: .9rem; }
.tick { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-size: .94rem; color: var(--ink); }
.tick input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brand); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.form-submit small { color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.check-grid.is-invalid .check-tile span, .seg.is-invalid label > span { border-color: var(--danger); }

/* Alerts */
.alert-x { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 16px; margin-bottom: 1.25rem; border: 1px solid transparent; }
.alert-x > i { font-size: 1.25rem; line-height: 1.3; }
.alert-x strong { display: block; color: inherit; }
.alert-x ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.alert-x.success { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.alert-x.danger { color: #9f1239; background: var(--danger-soft); border-color: #fecdd3; }
.alert-x.info { color: #1e40af; background: var(--info-soft); border-color: #c7d7fe; }
.alert-x.warn { color: #92400e; background: var(--amber-soft); border-color: #fde4b0; }

/* Ticket */
.ticket { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; overflow: hidden; }
.ticket .ok { display: inline-grid; place-items: center; width: 76px; height: 76px; margin: 0 auto; border-radius: 24px; color: #fff; background: var(--grad); font-size: 2.1rem; box-shadow: var(--glow); animation: pop .5s var(--ease); }
.ticket h2 { margin: 0; }
.ticket .code { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; margin: 0 auto; padding: .75rem 1rem .75rem 1.25rem; border: 2px dashed #99e2d9; border-radius: 16px; background: var(--grad-soft); }
.ticket .code code { color: var(--ink); font: 700 clamp(1.15rem, 3vw, 1.5rem)/1.2 var(--font); letter-spacing: .06em; }
.ticket ol { max-width: 30rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; display: grid; gap: .6rem; }
.ticket ol li { display: flex; gap: .75rem; color: var(--text); font-size: .94rem; }
.ticket ol li b { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; color: #fff; background: var(--grad); font-size: .85rem; }

/* Side panel */
.side-panel { position: sticky; top: calc(var(--nav-h) + 1rem); display: grid; gap: 1rem; }
.side-panel .card-x { height: auto; }
.howto { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.howto li { display: flex; gap: .85rem; }
.howto li i { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; color: var(--brand); background: var(--brand-soft); }
.howto strong { display: block; color: var(--ink); font-size: .95rem; }
.howto span { color: var(--muted); font-size: .86rem; }
.side-panel h3 { margin: 0 0 1rem; font-size: 1rem; }
.mini-contact { display: grid; gap: .5rem; }
.call-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: .2s; }
.call-row:hover { border-color: #99e2d9; background: #f7fdfc; color: var(--text); }
.call-row i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.call-row span { flex: 1; min-width: 0; }
.call-row small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.2; }
.call-row b { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Tracking ---------- */
.track-search { display: flex; gap: .6rem; }
.track-search .input { font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 575.98px) { .track-search { flex-direction: column; } }
.status-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.status-steps li { position: relative; display: grid; justify-items: center; gap: .45rem; text-align: center; color: var(--muted); font-size: .84rem; }
.status-steps li::before { content: ""; position: absolute; top: 21px; left: calc(-50% + 26px); right: calc(50% + 26px); height: 3px; border-radius: 2px; background: var(--line); }
.status-steps li:first-child::before { display: none; }
.status-steps li i { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); background: var(--line-soft); border: 2px solid var(--line); font-size: 1.1rem; }
.status-steps li.done { color: var(--brand-strong); }
.status-steps li.done::before { background: var(--grad); }
.status-steps li.done i { color: #fff; background: var(--brand); border-color: var(--brand); }
.status-steps li.current { color: var(--ink); font-weight: 700; }
.status-steps li.current i { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(6, 182, 212, .15), var(--glow); }
.status-steps li.current::before { background: var(--grad); }
.status-rejected { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; padding: 1rem; border-radius: 16px; color: var(--danger); background: var(--danger-soft); font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin: 0; }
.kv div { padding: .85rem 1rem; border-radius: 14px; background: var(--bg); }
.kv dt { color: var(--muted); font-size: .78rem; font-weight: 500; }
.kv dd { margin: .15rem 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.lock-box { display: grid; gap: 1rem; padding: 1.25rem; border: 1px dashed #99e2d9; border-radius: 18px; background: linear-gradient(180deg, #f5fdfc, #fff); }
.lock-box .head { display: flex; gap: .85rem; align-items: flex-start; }
.lock-box .head > i { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: var(--grad); font-size: 1.2rem; box-shadow: var(--glow); }
.lock-box strong { display: block; color: var(--ink); }
.lock-box p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.otp-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.otp-input { flex: 1 1 200px; min-height: 58px; padding: .5rem 1rem; border: 1px solid #d5dde8; border-radius: 14px; text-align: center; font: 700 1.7rem/1 var(--font); letter-spacing: .5em; color: var(--ink); }
.otp-input:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .14); }
.otp-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .86rem; }
.linkish { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.download-box { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #312e81, #0e7490 55%, #0f766e); box-shadow: var(--shadow); }
.download-box > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: rgba(255, 255, 255, .14); font-size: 1.4rem; }
.download-box div { flex: 1; min-width: 180px; }
.download-box strong { display: block; color: #fff; }
.download-box small { color: #ccfbf1; }
.timeline { position: relative; margin: 0; padding: 0 0 0 1.6rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--cyan), var(--line)); }
.timeline li { position: relative; padding: 0 0 1.1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.38rem; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li:first-child::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .2); }
.timeline strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.timeline small { color: var(--muted); font-size: .8rem; }
.grant-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; border-radius: 14px; font-size: .86rem; color: var(--brand-strong); background: var(--grad-soft); }

/* ---------- Policy ---------- */
.policy-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.policy-summary div { padding: 1rem 1.1rem; border-radius: 14px; background: var(--bg); }
.policy-summary small { display: block; color: var(--muted); font-size: .8rem; }
.policy-summary strong { color: var(--ink); }
.policy-body section { padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
.policy-body section:first-child { border-top: 0; padding-top: 0; }
.policy-body h2 { display: flex; align-items: center; gap: .65rem; margin: 0 0 .75rem; font-size: 1.15rem; }
.policy-body h2 i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--grad); font-size: 1rem; }
.policy-body p, .policy-body li { color: #334155; }
.policy-body ul { padding-left: 1.2rem; margin: 0; display: grid; gap: .35rem; }
.toc { display: block; padding: 1.25rem; height: auto; }
.toc h3 { margin: 0 0 .75rem; }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .92rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand-strong); }
.table-x { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.table-x th, .table-x td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.table-x th { color: var(--muted); font-size: .8rem; font-weight: 600; background: var(--bg); }
.table-x tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 14px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: auto; color: #94a3b8; background: var(--night); isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; top: -12rem; left: 50%; width: 60rem; height: 24rem; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 182, 212, .18), transparent); }
.site-footer .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
@media (max-width: 991.98px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .site-footer .top { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h2 { margin: 0 0 1rem; color: #fff; font-size: .95rem; font-weight: 600; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #64748b; }
.site-footer p { margin: 1rem 0 0; font-size: .92rem; max-width: 26rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--mint); }
.site-footer .contact li { display: flex; gap: .65rem; font-size: .92rem; }
.site-footer .contact i { color: var(--mint); }
.site-footer .bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .85rem; }
.site-footer .bottom nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* ---------- Cookie notice ---------- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080; display: flex; align-items: center; gap: 1rem; max-width: 720px; margin: 0 auto; padding: .9rem 1rem; border-radius: 18px; color: #cbd5e1; background: rgba(11, 21, 48, .92); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); animation: rise .4s var(--ease); }
.cookie-notice.is-closing { opacity: 0; transform: translateY(12px); transition: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-notice > i { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; color: #04121a; background: var(--grad); font-size: 1.1rem; }
.cookie-notice strong { color: #fff; font-size: .95rem; }
.cookie-notice p { margin: .1rem 0 0; font-size: .84rem; line-height: 1.5; }
.cookie-notice a { color: var(--mint); }
.cookie-notice button { flex: 0 0 auto; }
@media (max-width: 575.98px) { .cookie-notice { flex-wrap: wrap; } .cookie-notice button { width: 100%; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-dark canvas.net { display: none; }
}
@media print {
    .site-nav, .site-footer, .cookie-notice, .hero-actions, .no-print, .cmdk, .progress-read { display: none !important; }
    .hero-dark { color: #000; background: none; }
    .hero-dark::before, .hero-dark::after, .grid-floor, canvas.net { display: none; }
    .hero-dark h1 { color: #000; }
    body.site { background: #fff; }
}
.ai-search input:focus-visible, .cmdk-box input:focus-visible { outline: none; }
.ai-search form:focus-within { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(6, 182, 212, .15); }
.ai-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.cmdk-box input::-webkit-search-cancel-button { opacity: .5; }
@media (max-width: 575.98px) { .services { margin-top: -2.5rem; } }

/* ---------- Tracking job board ---------- */
.board-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; margin-bottom: 1.25rem; }
@media (max-width: 991.98px) { .board-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .board-stats { grid-template-columns: repeat(2, 1fr); } .board-stats a:first-child { grid-column: 1 / -1; } }
.board-stat { position: relative; overflow: hidden; display: grid; gap: .15rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: 20px; text-decoration: none; color: var(--muted); background: rgba(255, 255, 255, .95); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 20px 50px -26px rgba(2, 6, 23, .5); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.board-stat:hover { color: var(--muted); transform: translateY(-3px); box-shadow: 0 28px 60px -26px rgba(2, 6, 23, .6); }
.board-stat::before { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c); opacity: .1; filter: blur(4px); }
.board-stat .ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .4rem; border-radius: 12px; color: #fff; background: var(--c); box-shadow: 0 10px 20px -10px var(--c); }
.board-stat b { color: var(--ink); font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.board-stat > span:not(.ico) { font-size: .88rem; }
.board-stat .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: var(--c); border-radius: 0 4px 4px 0; transition: width 1s var(--ease); }
.board-stat.active { box-shadow: 0 0 0 2px var(--c), 0 28px 60px -26px rgba(2, 6, 23, .6); }

.board { overflow: hidden; height: auto; }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem 1rem; }
.board-head h2 { margin: 0; font-size: 1.25rem; }
.board-head p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.board-search { position: relative; flex: 0 1 380px; min-width: 240px; }
.board-search i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.board-search input { width: 100%; min-height: 44px; padding: .5rem 1rem .5rem 2.6rem; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); font: inherit; font-size: .94rem; }
.board-search input:focus { outline: 0; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(6, 182, 212, .14); }
.board-tabs { display: flex; gap: .35rem; overflow-x: auto; padding: 0 1.4rem 1rem; border-bottom: 1px solid var(--line-soft); scrollbar-width: thin; }
.board-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; color: var(--text); font-size: .86rem; text-decoration: none; background: var(--bg); }
.board-tabs a em { font-style: normal; color: var(--muted); font-size: .76rem; }
.board-tabs a.active { color: #fff; background: var(--ink); }
.board-tabs a.active em { color: #cbd5e1; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.s-pending { --s: #f59e0b; --sb: #fff6e5; --st: #92400e; }
.s-in_progress { --s: #06b6d4; --sb: #e0f7fb; --st: #0e7490; }
.s-ready { --s: #8b5cf6; --sb: #f3efff; --st: #6d28d9; }
.s-completed { --s: #10b981; --sb: #e7f8f1; --st: #047857; }
.s-rejected { --s: #e11d48; --sb: #fff0f3; --st: #9f1239; }
.dot[class*="s-"] { background: var(--s); box-shadow: 0 0 6px var(--s); }
.board-table-wrap { overflow-x: auto; }
.board-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.board-table thead th { position: sticky; top: 0; z-index: 1; padding: .75rem 1rem; color: var(--muted); font-size: .78rem; font-weight: 600; text-align: left; white-space: nowrap; background: #f8fafc; border-bottom: 1px solid var(--line); }
.board-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.board-table tbody tr { transition: background-color .15s; }
.board-table tbody tr:hover { background: #f8fdfc; }
.board-table tbody tr td:first-child { box-shadow: inset 3px 0 0 transparent; }
.board-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.board-table .code { display: inline-block; padding: .2rem .55rem; border-radius: 8px; color: var(--ink); background: var(--bg); font-weight: 600; font-size: .82rem; letter-spacing: .03em; white-space: nowrap; }
.board-table .title { display: block; color: var(--ink); font-weight: 600; line-height: 1.45; max-width: 34ch; }
.board-table small { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .2rem; color: var(--muted); font-size: .8rem; }
.board-table .urg { padding: .05rem .45rem; border-radius: 999px; color: var(--u); background: color-mix(in srgb, var(--u) 12%, white); font-weight: 600; font-size: .72rem; }
.board-table .late { color: var(--danger); font-weight: 600; }
.board-table td:nth-child(3), .board-table td:nth-child(4), .board-table td:nth-child(5) { white-space: nowrap; color: var(--text); }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; color: var(--st); background: var(--sb); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--s); }
.status-pill.s-in_progress::before { animation: pulse-c 1.6s infinite; }
@keyframes pulse-c { 0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, .6); } 70% { box-shadow: 0 0 0 7px rgba(6, 182, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); } }
.progress-mini { display: block; width: 120px; height: 5px; margin-top: .45rem; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.progress-mini i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--s), color-mix(in srgb, var(--s) 60%, #8b5cf6)); }
tr.st-pending .progress-mini, tr.st-pending .status-pill { --s: #f59e0b; }
tr.st-in_progress .progress-mini { --s: #06b6d4; }
tr.st-ready .progress-mini { --s: #8b5cf6; }
tr.st-completed .progress-mini { --s: #10b981; }
tr.st-rejected .progress-mini { --s: #e11d48; }
tr.st-completed .title, tr.st-rejected .title { color: #475569; }
.board-table td.act { text-align: right; white-space: nowrap; }
.board-none { padding: 2rem; text-align: center; color: var(--muted); }
.board-foot { display: flex; gap: .5rem; align-items: center; padding: .9rem 1.4rem; color: var(--muted); font-size: .8rem; background: #f8fafc; border-top: 1px solid var(--line-soft); }
.lookup-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.lookup-card .lookup-copy { display: flex; gap: .9rem; align-items: center; }
.lookup-card .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: var(--grad); font-size: 1.25rem; box-shadow: var(--glow); }
.lookup-card .track-search { flex: 1 1 420px; max-width: 560px; }
@media (max-width: 767.98px) {
    .board-table thead { display: none; }
    .board-table, .board-table tbody, .board-table tr, .board-table td { display: block; width: 100%; }
    .board-table tr { margin: .75rem; width: auto; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
    .board-table td { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border: 0; text-align: right; }
    .board-table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; flex: 0 0 auto; }
    .board-table td:nth-child(2) { display: block; text-align: left; }
    .board-table td:nth-child(2)::before { display: none; }
    .board-table td.act { justify-content: flex-end; padding-top: .6rem; }
    .board-table td.act::before { display: none; }
    .board-table td:nth-child(6) { flex-wrap: wrap; }
    .progress-mini { width: 90px; }
    .board-table tbody tr:hover td:first-child { box-shadow: none; }
}
.site .board-stat, .site .board-stat:hover { color: var(--muted); }

/* ---------- Compact rhythm (v2): shorter hero, tighter sections ---------- */
.home-hero { padding: clamp(2rem, 4vw, 3rem) 0 clamp(4.75rem, 7vw, 5.75rem); }
.home-hero .kicker { margin-bottom: .75rem; }
.home-hero h1 { max-width: none; margin-bottom: .6rem; font-size: clamp(1.8rem, 3.8vw, 2.75rem); line-height: 1.2; }
.home-hero h1 span { display: inline; margin-left: .35em; }
.home-hero .lead { margin-bottom: 1.4rem; font-size: 1rem; }
.home-hero .quick-chips { margin-top: .85rem; }
.home-hero .duty-strip { margin-top: 1.25rem; padding: .7rem .9rem; }
.services { margin-top: -3.25rem; }
.service { padding: 1rem 1rem 1.05rem; gap: .6rem; }
.service .ico { width: 42px; height: 42px; font-size: 1.15rem; }
.section { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.section.tight { padding-top: 1.75rem; }
.section-head { margin-bottom: 1.25rem; }
.stat { padding: 1rem 1.15rem; }
.page-hero { padding: clamp(2rem, 4vw, 3rem) 0 clamp(4.25rem, 6vw, 5rem); }
@media (max-width: 767.98px) {
    .home-hero h1 span { display: block; margin-left: 0; }
    .home-hero .lead { font-size: .95rem; }
}
@media (max-width: 575.98px) { .services { margin-top: -2.25rem; } }
.home-hero .duty-strip { max-width: 980px; flex-wrap: nowrap; }
.home-hero .duty-strip .calls { flex-wrap: nowrap; }
.section.tight:has(.stats) { padding-bottom: 0; }
.section.tight + .section.tight { padding-top: 2.25rem; }
@media (max-width: 991.98px) { .home-hero .duty-strip, .home-hero .duty-strip .calls { flex-wrap: wrap; } }
.duty-strip .calls a { white-space: nowrap; }
@media (max-width: 575.98px) {
    .duty-strip .calls a { flex: 1 1 auto; padding: .45rem .6rem; font-size: .9rem; }
    .duty-strip .calls a small { display: none; }
    .home-hero .lead { font-size: .9rem; margin-bottom: 1.1rem; }
    .home-hero .quick-chips a:nth-child(n+5) { display: none; }
}
