:root {
    --bg: #f3f4f9;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --border: rgba(17, 19, 26, 0.10);
    --border-strong: rgba(17, 19, 26, 0.16);
    --text-primary: #11131a;
    --text-secondary: #52586b;
    --text-muted: #8a8f9e;
    --accent: #2a78d6;
    --accent-soft: rgba(42, 120, 214, 0.12);
    --box-medium: rgba(28, 176, 122, 0.15);
    --cat-1: #2a78d6;
    --cat-2: #eb6834;
    --cat-3: #1baf7a;
    --cat-4: #eda100;
    --cat-5: #e87ba4;
    --status-good: #0ca30c;
    --status-good-soft: rgba(12, 163, 12, 0.12);
    --status-warn: #c98100;
    --status-warn-soft: rgba(250, 178, 25, 0.20);
    --status-none: #8a8f9e;
    --status-none-soft: rgba(138, 143, 158, 0.14);
    --shadow: 0 1px 2px rgba(17, 19, 26, 0.05), 0 10px 28px -14px rgba(17, 19, 26, 0.16);
    --grain-op: 0.05;
    color-scheme: light;
}
body {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}
.logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 16px;
    margin-top: 1rem;
}
/* SIRR background symbol */
body::before {
    content: "";
    position: fixed;

    right: 0;
    bottom: 0;

    width: 600px;
    height: 600px;

    background-image: url("../images/SIRR-symbol-blue.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;

    opacity: 0.3;

    pointer-events: none;
    z-index: -1;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a0c12;
        --surface: #12141c;
        --surface-2: #161923;
        --border: rgba(255, 255, 255, 0.09);
        --border-strong: rgba(255, 255, 255, 0.16);
        --text-primary: #f4f5fa;
        --text-secondary: #b7bdd1;
        --text-muted: #7d8296;
        --accent: #4a90ea;
        --accent-soft: rgba(74, 144, 234, 0.16);
        --cat-1: #4a90ea;
        --cat-2: #e06a34;
        --cat-3: #22b57e;
        --cat-4: #d99400;
        --cat-5: #e2839f;
        --status-good: #25c625;
        --status-good-soft: rgba(37, 198, 37, 0.16);
        --status-warn: #f0a916;
        --status-warn-soft: rgba(240, 169, 22, 0.18);
        --status-none: #8890a6;
        --status-none-soft: rgba(136, 144, 166, 0.16);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 36px -18px rgba(0, 0, 0, 0.6);
        --grain-op: 0.09;
        color-scheme: dark;
    }
        body {
            position: relative;
            min-height: 100vh;
        }
    
        /* SIRR background symbol */
        body::before {
            content: "";
            position: fixed;
    
            right: 0;
            bottom: 0;
    
            width: 600px;
            height: 600px;
    
            background-image: url("../images/SIRR-symbol-blue.png");
            background-repeat: no-repeat;
            background-position: right bottom;
            background-size: contain;
    
            opacity: 0.3;
    
            pointer-events: none;
            z-index: -1;
        }
}

:root[data-theme="dark"] {
    --bg: #0a0c12;
    --surface: #12141c;
    --surface-2: #161923;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-primary: #f4f5fa;
    --text-secondary: #b7bdd1;
    --text-muted: #7d8296;
    --accent: #4a90ea;
    --accent-soft: rgba(74, 144, 234, 0.16);
    --cat-1: #4a90ea;
    --cat-2: #e06a34;
    --cat-3: #22b57e;
    --cat-4: #d99400;
    --cat-5: #e2839f;
    --status-good: #25c625;
    --status-good-soft: rgba(37, 198, 37, 0.16);
    --status-warn: #f0a916;
    --status-warn-soft: rgba(240, 169, 22, 0.18);
    --status-none: #8890a6;
    --status-none-soft: rgba(136, 144, 166, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 36px -18px rgba(0, 0, 0, 0.6);
    --grain-op: 0.09;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: "Archivo", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: clamp(20px, 4vw, 56px);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 3vw, 40px);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px);
    box-shadow: var(--shadow);
}

.hero-net {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

h1.title {
    font-family: "Archivo Expanded", "Archivo", sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin: 0 0 12px 0;
    text-wrap: balance;
    max-width: 19ch;
}

.subtitle {
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 62ch;
    margin: 0 0 22px 0;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12.5px;
    color: var(--text-muted);
}

.meta-row span b {
    color: var(--text-secondary);
    font-weight: 600;
}

.part-pill {
    position: absolute;
    top: clamp(20px, 3vw, 32px);
    right: clamp(20px, 3vw, 32px);
    z-index: 2;
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.part-pill2 {
    position: absolute;
    top: clamp(20px, 3vw, 32px);
    left: clamp(20px, 3vw, 32px);
    z-index: 2;
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    background: var(--surface);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 20px 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi .label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.kpi .value {
    font-family: "Archivo Expanded", sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.kpi .sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width:860px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 26px 26px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.panel-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-title {
    font-family: "Archivo Expanded", sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.panel-cap {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hbars {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.hbar-row {
    display: grid;
    grid-template-columns: minmax(120px, 220px) 1fr auto;
    align-items: center;
    gap: 10px 14px;
}

.hbar-label {
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.25;
}

.hbar-track {
    height: 14px;
    background: var(--surface-2);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hbar-fill {
    height: 100%;
    border-radius: 7px;
}

.hbar-val {
    font-family: "JetBrains Mono", monospace;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 34px;
    text-align: right;
}

.vbars {
    display: flex;
    align-items: flex-end;
    gap: clamp(10px, 2vw, 22px);
    height: 180px;
    padding-top: 10px;
}

.vbar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 8px;
}

.vbar-val {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.vbar-shaft {
    width: 100%;
    max-width: 56px;
    border-radius: 8px 8px 4px 4px;
    background: var(--accent);
}

.vbar-label {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.vbar-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: "JetBrains Mono", monospace;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-swatch {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex: none;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stack-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.stack-row-head {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.stack-track {
    display: flex;
    height: 26px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.stack-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    min-width: 0;
}

.stack-seg.tiny {
    color: transparent;
}

.callout {
    background: var(--box-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
}

.callout b {
    color: var(--text-primary);
}

.callout .mark {
    font-family: "JetBrains Mono", monospace;
    color: var(--accent);
    font-weight: 700;
    flex: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.bp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 19px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bp-date {
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.bp-title {
    font-family: "Archivo Expanded", sans-serif;
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.3;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.02em;
}

.bp-why {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.fb-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fb-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.fb-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

footer.foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 6px;
}

.nav-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-chip {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--surface);
    transition: border-color .15s, color .15s;
}

.nav-chip:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.nav-chip.current {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.foot-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}