:root{
    --brand: #004a9f;      /* deep Fresno blue */
    --brand-2: #0072ce;    /* secondary blue */
    --bg: #f6f8fb;         /* soft page background */
    --text: #1b2430;       /* main text */
    --muted: #667085;      /* muted text */
    --card: #ffffff;       /* card bg */
    --ring: rgba(0,114,206,.25);
    --ok: #0f9d58;         /* accent */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

/* Header/Nav */
.topbar{
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.container{ max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.nav{
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.brand{
    display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: #fff;
}
.brand-logo{
    width: 120px; height: 36px;
    border-radius: 8px;
    background: #fff;
    padding: 3px 12px;
    display: grid;
    place-items: center;
    color: var(--brand);
    font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.brand-title{ font-weight: 700; letter-spacing: .2px; }

.nav-links{ display: flex; gap: 14px; align-items: center; }
.nav-links a{
    color: #fff; text-decoration: none; font-weight: 600; opacity: .95;
}
.nav-links a:hover{ opacity: 1; text-decoration: underline; }

.mobile-toggle{ display:none; background: rgba(255,255,255,.15); color:#fff; border:none; padding:8px 10px; border-radius: 8px; }

/* Hero */
.hero{
    background: linear-gradient(180deg, rgba(0,74,159,.08) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 0 10px;
}
.breadcrumbs{ color: #e9f1ff; font-size: 14px; opacity: .9; }
.hero h1{ margin: 4px 0 8px; font-size: clamp(28px, 3.5vw, 40px); }
.hero p{ color: #e9f1ff; max-width: 850px; margin: 0; }

/* Content */
.grid{
    display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; margin-top: 24px; padding-bottom: 40px;
}
.card{ background: var(--card); border-radius: 14px; box-shadow: 0 8px 24px rgba(16,24,40,.06); }
.card.border{ border: 1px solid #e6eef8; }
.card .section{ padding: 20px; }

/* Sidebar */
.toc{ position: sticky; top: 84px; }
.toc h3{ margin: 16px 16px 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.toc a{ display: block; padding: 10px 16px; text-decoration: none; color: var(--text); border-left: 3px solid transparent; }
.toc a:hover, .toc a.active{ background: #f1f6ff; border-left-color: var(--brand-2); }

/* Main content */
.prose{ padding: 8px 20px 24px; }
.prose h2{ margin: 24px 0 8px; font-size: 22px; }
.prose p{ margin: 8px 0; color: #2d3643; }
.kpi{ display:flex; gap:14px; flex-wrap:wrap; margin: 6px 0 12px; }
.pill{ background:#eef5ff; color: #0b4a9f; padding:6px 10px; border-radius: 999px; font-weight:600; font-size: 12px; }
.notice{ border-left: 4px solid var(--brand-2); background: #f2f7ff; padding: 12px 14px; border-radius: 8px; color: #173a6b; }
.list{ padding-left: 18px; }
.list li{ margin: 6px 0; }
code.inline{ background: #f1f4f9; padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; }

/* Footer */
footer{
    background: #0f2c5c; color: #dfeaff; padding: 28px 0; margin-top: 30px;
}
.footer-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.footer-grid a{ color: #dfeaff; text-decoration: none; }
.copyright{ margin-top: 8px; color: #bcd2ff; font-size: 14px; }

/* Responsive */
@media (max-width: 900px){
    .grid{ grid-template-columns: 1fr; }
    .toc{ position: static; }
}
@media (max-width: 700px){
    .nav-links{ display:none; }
    .mobile-toggle{ display:block; }
}