:root{
    --navy:#102033;
    --navy2:#182c47;
    --ink:#172033;
    --muted:#667085;
    --bg:#f4f6f8;
    --panel:#ffffff;
    --line:#e5e7eb;
    --blue:#2563eb;
    --sky:#eaf3ff;
    --gold:#d8a441;
    --green:#166534;
    --orange:#92400e;
    --red:#991b1b;
    --shadow:0 16px 42px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
body{
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a{text-decoration:none}
.site-sidebar{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:336px;
    overflow-y:auto;
    z-index:40;
    background:linear-gradient(180deg,var(--navy),var(--navy2));
    color:#fff;
    padding:22px 20px;
}
.sidebar-brand{
    padding-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,.12);
    margin-bottom:18px;
}
.sidebar-brand a{
    display:flex;
    align-items:center;
    gap:12px;
    color:#fff;
}
.brand-icon{
    flex:0 0 52px;
    height:52px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--gold);
    color:#101828;
    font-weight:950;
    letter-spacing:-.06em;
}
.sidebar-brand strong{
    display:block;
    font-size:1.05rem;
}
.sidebar-brand small{
    display:block;
    color:rgba(255,255,255,.66);
    font-size:.78rem;
    line-height:1.25;
    margin-top:3px;
}
.sidebar-search{
    margin-bottom:20px;
}
.sidebar-search input{
    width:100%;
    padding:12px 13px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.08);
    color:#fff;
    outline:none;
}
.sidebar-search input::placeholder{color:rgba(255,255,255,.55)}
.sidebar-group{
    margin:20px 0;
}
.sidebar-label{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:rgba(255,255,255,.52);
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:.72rem;
    font-weight:850;
    margin:0 0 8px;
}
.sidebar-label-link{
    color:rgba(255,255,255,.62);
}
.sidebar-label-link:hover{color:#fff}
.sidebar-label em{
    font-style:normal;
    letter-spacing:0;
    text-transform:none;
    font-size:.72rem;
    color:rgba(255,255,255,.42);
}
.sidebar-link{
    display:block;
    color:rgba(255,255,255,.79);
    padding:9px 11px;
    border-radius:12px;
    line-height:1.25;
    font-size:.93rem;
    margin-bottom:3px;
}
.sidebar-link.subtle{
    font-size:.86rem;
    padding-left:18px;
}
.sidebar-link:hover,
.sidebar-link.active{
    color:#fff;
    background:rgba(255,255,255,.12);
}
.sidebar-note{
    margin-top:22px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.08);
    padding:15px;
}
.sidebar-note p{
    margin:.35rem 0 0;
    color:rgba(255,255,255,.65);
    font-size:.82rem;
}
.content-shell{
    margin-left:336px;
    padding:28px;
    min-height:100vh;
}
.mobile-sidebar-toggle{
    display:none;
    position:fixed;
    top:14px;
    left:14px;
    z-index:60;
    padding:10px 14px;
    border:0;
    border-radius:999px;
    background:var(--navy);
    color:#fff;
    box-shadow:var(--shadow);
}
.sidebar-overlay{display:none}
.page-hero{
    display:flex;
    justify-content:space-between;
    align-items:stretch;
    gap:22px;
    margin-bottom:24px;
    padding:30px;
    border-radius:28px;
    border:1px solid #dbeafe;
    background:
        radial-gradient(circle at top right,rgba(216,164,65,.24),transparent 32%),
        linear-gradient(135deg,#ffffff,#edf4ff);
    box-shadow:var(--shadow);
}
.kicker{
    margin-bottom:8px;
    color:var(--blue);
    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-weight:900;
}
.page-hero h1{
    margin:0;
    max-width:980px;
    font-size:clamp(2rem,4vw,4rem);
    line-height:1;
    font-weight:900;
    letter-spacing:-.055em;
}
.page-hero p{
    max-width:850px;
    margin:14px 0 0;
    color:var(--muted);
    font-size:1.05rem;
}
.hero-stats{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:10px;
    min-width:270px;
}
.stat{
    min-width:95px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:14px;
    text-align:center;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.stat strong{
    display:block;
    font-size:1.35rem;
    line-height:1;
}
.stat span{
    display:block;
    margin-top:6px;
    color:var(--muted);
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:850;
}
.panel,
.filter-panel,
.rail-card{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:24px;
    padding:22px;
    box-shadow:var(--shadow);
    margin-bottom:24px;
}
.panel-head{
    margin-bottom:16px;
}
.panel-head h2,
.rail-card h2,
.article h2{
    margin:0 0 4px;
    font-size:1.25rem;
    font-weight:880;
    letter-spacing:-.03em;
}
.panel-head p{
    margin:0;
    color:var(--muted);
}
.card-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}
.content-card{
    color:inherit;
}
.content-card article,
.standalone-card{
    height:100%;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    padding:18px;
    transition:.15s ease;
}
.content-card:hover article,
.row-item:hover,
.standalone-card:hover{
    transform:translateY(-2px);
    border-color:#bfdbfe;
    box-shadow:0 14px 36px rgba(37,99,235,.08);
}
.card-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:9px;
    color:var(--blue);
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:900;
}
.card-meta em{
    font-style:normal;
    padding:4px 8px;
    border-radius:999px;
    color:#92400e;
    background:#fef3c7;
}
.content-card h3,
.standalone-card h3,
.row-item h3,
.term-item h3{
    margin:0 0 8px;
    font-size:1.08rem;
    font-weight:850;
    letter-spacing:-.025em;
}
.content-card p,
.standalone-card p,
.row-item p,
.term-item p{
    color:var(--muted);
    margin:0;
}
.row-list{
    display:grid;
    gap:12px;
}
.row-item{
    display:flex;
    justify-content:space-between;
    gap:18px;
    padding:17px;
    border-radius:18px;
    border:1px solid var(--line);
    background:#fff;
    color:inherit;
    transition:.15s ease;
}
.static-row:hover{transform:none;box-shadow:none;border-color:var(--line)}
.row-meta{
    min-width:160px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
    color:var(--muted);
    font-size:.82rem;
}
.row-item code,
.route-string{
    display:block;
    margin:8px 0;
    padding:9px 10px;
    border-radius:12px;
    background:#f1f5f9;
    color:#0f172a;
    overflow-wrap:anywhere;
}
.filter-panel form{
    display:flex;
    gap:10px;
}
.filter-panel input,
.filter-panel select,
.filter-panel button{
    border:1px solid var(--line);
    border-radius:13px;
    padding:11px 12px;
}
.filter-panel input{flex:1}
.filter-panel button{
    background:var(--blue);
    border-color:var(--blue);
    color:#fff;
    font-weight:850;
    min-width:110px;
}
.content-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:24px;
    align-items:start;
}
.article-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}
.rich-content{
    line-height:1.75;
    font-size:1rem;
}
.rich-content h2,
.rich-content h3{
    margin-top:1.5rem;
    font-weight:850;
    letter-spacing:-.03em;
}
.rich-content table{
    width:100%;
    border-collapse:collapse;
    margin:1rem 0;
}
.rich-content th,
.rich-content td{
    border:1px solid var(--line);
    padding:.75rem;
}
.content-block{
    margin-top:18px;
    padding:18px;
    border-radius:18px;
    border:1px solid #dbeafe;
    background:#f8fbff;
}
.block-warning{
    border-color:#fed7aa;
    background:#fff7ed;
}
.right-rail{
    position:sticky;
    top:24px;
}
.rail-card dl{
    display:grid;
    grid-template-columns:110px 1fr;
    gap:7px 12px;
}
.rail-card dt{
    color:var(--muted);
    font-size:.82rem;
}
.rail-card dd{
    margin:0;
}
.warning-card{
    border-color:#fed7aa;
    background:#fff7ed;
}
.source-list{
    padding-left:18px;
}
.source-list li{
    margin-bottom:10px;
}
.source-list span,
.source-list a{
    display:block;
    font-size:.85rem;
}
.status-badge{
    display:inline-flex;
    align-items:center;
    width:max-content;
    border-radius:999px;
    padding:5px 9px;
    font-size:.72rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
    background:#f1f5f9;
    color:#475569;
}
.status-badge.success{background:#dcfce7;color:var(--green)}
.status-badge.warning{background:#fef3c7;color:var(--orange)}
.status-badge.info{background:#dbeafe;color:#1d4ed8}
.status-badge.danger{background:#fee2e2;color:var(--red)}
.empty-state{
    border:1px dashed #cbd5e1;
    background:#f8fafc;
    border-radius:18px;
    padding:26px;
    color:var(--muted);
}
.term-item{
    padding:18px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
}
.advisor-note{
    margin-top:12px;
    padding:13px;
    border-radius:15px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    color:#1e40af;
}
.segment-list{
    display:grid;
    gap:12px;
}
.segment{
    display:grid;
    grid-template-columns:46px 1fr;
    gap:13px;
    padding:15px;
    border:1px solid var(--line);
    border-radius:18px;
}
.segment-num{
    width:42px;
    height:42px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--navy);
    color:#fff;
    font-weight:900;
}
.responsive-table{
    overflow:auto;
}
.responsive-table table{
    width:100%;
    border-collapse:collapse;
}
.responsive-table th,
.responsive-table td{
    padding:12px;
    border-bottom:1px solid var(--line);
    text-align:left;
}
.responsive-table th{
    color:var(--muted);
    font-size:.76rem;
    text-transform:uppercase;
    letter-spacing:.08em;
}
pre{
    background:#0f172a;
    color:#e5e7eb;
    border-radius:16px;
    padding:14px;
    overflow:auto;
    font-size:.84rem;
}
details summary{
    color:var(--blue);
    font-weight:850;
    cursor:pointer;
}
.muted{color:var(--muted)!important}
.site-footer{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:14px 0 4px;
    color:var(--muted);
    font-size:.86rem;
}
.alert{
    border-radius:18px;
    box-shadow:var(--shadow);
}
@media(max-width:1250px){
    .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .content-layout{grid-template-columns:1fr}
    .right-rail{position:static}
}
@media(max-width:900px){
    .mobile-sidebar-toggle{display:block}
    .site-sidebar{
        width:min(340px,88vw);
        transform:translateX(-105%);
        transition:.2s ease;
    }
    body.sidebar-open .site-sidebar{transform:translateX(0)}
    .sidebar-overlay{
        position:fixed;
        inset:0;
        z-index:30;
        background:rgba(15,23,42,.45);
    }
    body.sidebar-open .sidebar-overlay{display:block}
    .content-shell{
        margin-left:0;
        padding:72px 16px 18px;
    }
    .page-hero{
        display:block;
        padding:22px;
    }
    .hero-stats{
        justify-content:flex-start;
        margin-top:18px;
    }
    .card-grid{grid-template-columns:1fr}
    .filter-panel form{flex-direction:column}
    .row-item{display:block}
    .row-meta{
        align-items:flex-start;
        margin-top:12px;
    }
    .site-footer{display:block}
}
