/* ================================================================
   Industry Insights & Benchmarking — page styles
   Layered on top of rbi.css + design system tokens.

   Phase 1 (industry picker) + Mock Controls panel are unchanged.
   Phase 2 (dashboard) is the redesigned ii-* system, ported 1:1
   from the approved Industry Insights mockup.
   ================================================================ */

/* ── PHASE 1: Industry Picker ──────────────────────────────────── */

.ind-picker-outer {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px 80px;
    background: var(--bg-2);
}

.ind-picker-card {
    width: 100%;
    max-width: 720px;
    background: var(--bg-1);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px 48px 40px;
}

.ind-intake-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--funding-pool);
    background: var(--fp-5);
    border: 1px solid var(--fp-20);
    border-radius: var(--r-pill);
    padding: 5px 12px;
    margin-bottom: 16px;
}

.ind-picker-hero {
    margin-bottom: 32px;
}

.ind-intake-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--fg-1);
    margin: 0 0 10px;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.ind-intake-sub {
    font-size: 14.5px;
    color: var(--fg-2);
    margin: 0;
    line-height: 1.55;
}

/* ── Chip grid ─────────────────────────────────────────────────── */

.ind-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.ind-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-1);
    border: 1.5px solid var(--border-1);
    border-radius: var(--r-pill);
    font: 500 13.5px/1.2 var(--font-primary);
    color: var(--fg-1);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.ind-chip:hover {
    border-color: var(--growth-galaxy);
    background: var(--gg-5);
    color: var(--growth-galaxy);
}

.ind-chip-active {
    border-color: var(--growth-galaxy) !important;
    background: var(--growth-galaxy) !important;
    color: var(--fg-inverse) !important;
    box-shadow: 0 2px 10px rgba(var(--growth-galaxy-rgb, 30, 58, 138), 0.25);
}

.ind-chip-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.ind-chip-active .ind-chip-icon {
    opacity: 1;
}

.ind-chip-label {
    font-weight: 500;
}

/* ── Picker footer + CTA ───────────────────────────────────────── */

.ind-picker-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--border-1);
}

.ind-picker-cta {
    font: 600 14px/1 var(--font-primary);
    padding: 13px 28px;
    border-radius: var(--r-md);
    border: none;
    cursor: not-allowed;
    background: var(--bg-2);
    color: var(--fg-3);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ind-picker-cta-enabled {
    cursor: pointer;
    background: var(--growth-galaxy);
    color: var(--fg-inverse);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.ind-picker-cta-enabled:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── Dashboard body ────────────────────────────────────────────── */

.ind-dashboard-body {
    padding-bottom: 0 !important;
}

.ind-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.ind-reset-btn {
    font: 600 13px/1 var(--font-primary);
    color: var(--growth-galaxy);
    background: transparent;
    border: 1.5px solid var(--border-1);
    border-radius: var(--r-md);
    padding: 9px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ind-reset-btn:hover {
    background: var(--bg-2);
    border-color: var(--growth-galaxy);
}


/* ── Mock Controls Panel ───────────────────────────────────────── */

.ind-mock-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 72px 20px 20px;
}

.ind-mock-panel {
    width: 300px;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: indMockSlideIn 0.18s ease;
}

@keyframes indMockSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ind-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-1);
    background: var(--bg-2);
}

.ind-mock-title {
    font: 600 13px/1 var(--font-primary);
    color: var(--fg-1);
    letter-spacing: 0.01em;
}

.ind-mock-close {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--fg-3);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, color 0.12s ease;
}

.ind-mock-close:hover {
    background: var(--bg-1);
    color: var(--fg-1);
}

.ind-mock-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
}

.ind-mock-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: -4px;
}

.ind-mock-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ind-mock-label {
    font: 500 11.5px/1 var(--font-primary);
    color: var(--fg-2);
}

.ind-mock-select,
.ind-mock-input {
    font: 13px/1 var(--font-primary);
    color: var(--fg-1);
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
    padding: 8px 10px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s ease;
}

.ind-mock-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2399A0AA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.ind-mock-select:focus,
.ind-mock-input:focus {
    border-color: var(--growth-galaxy);
}

/* ================================================================
   PHASE 2 — Redesigned dashboard (ii-* design system)
   ================================================================ */

/* Industry Insights — page styles. Tokens from design-system/colors_and_type.css */

/* ── Top nav ─────────────────────────────────────────────── */

/* ── Page shell ──────────────────────────────────────────── */
.ii-body {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--sp-10) var(--sp-8) var(--sp-16);
    display: flex;
    flex-direction: column;
    gap: var(--sp-6)
}

.ii-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-8);
    padding-bottom: var(--sp-2)
}

.ii-eb {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gg-100);
    margin: 0 0 10px
}

.ii-h1 {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0;
    color: var(--trust-tech);
    text-wrap: pretty;
    /* max-width: 32ch */
}

.ii-h1 em {
    font-style: normal;
    color: var(--gg-100)
}

.ii-sub {
    font-size: 14.5px;
    color: var(--fg-2);
    margin: 12px 0 0;
    /* max-width: 62ch; */
    line-height: 1.5
}

.ii-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px
}

.ii-demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-3);
    background: var(--tt-5);
    border: 1px solid var(--tt-10);
    border-radius: var(--r-pill);
    padding: 5px 11px
}

.ii-demo-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-warning)
}

.ii-select {
    position: relative
}

.ii-select select {
    appearance: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-1);
    background: var(--infinity);
    border: 1px solid var(--tt-20);
    border-radius: var(--r-md);
    padding: 9px 34px 9px 13px;
    cursor: pointer
}

.ii-select:after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--tt-40);
    font-size: 11px
}

/* ── Cards / sections ────────────────────────────────────── */
.ii-card {
    background: var(--infinity);
    border: 1px solid var(--tt-10);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-sm)
}

.ii-sec {
    background: var(--infinity);
    border: 1px solid var(--tt-10);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-8)
}

.ii-sec-hd {
    margin-bottom: var(--sp-6);
    max-width: 76ch
}

.ii-sec-hd h2 {
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -.01em
}

.ii-sec-hd p {
    font-size: 14px;
    color: var(--fg-2);
    margin: 8px 0 0;
    line-height: 1.5
}

.ii-scope {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: var(--r-pill);
    padding: 4px 9px;
    margin-bottom: 12px
}

.ii-scope.you {
    color: var(--gg-100);
    background: var(--gg-10);
    display: none;
}

.ii-scope.ind {
    color: #0E8C74;
    background: var(--fp-10)
}

.ii-grid1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
}

.ii-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5)
}

.ii-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5)
}

.ii-grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4)
}

.ii-stack-v {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6)
}

.ii-panel {
    border: 1px solid var(--tt-10);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    background: var(--infinity)
}

.ii-panel-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4)
}

.ii-panel-hd h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0
}

.ii-panel-hd p {
    font-size: 12.5px;
    color: var(--fg-2);
    margin: 5px 0 0;
    line-height: 1.45
}

/* ── KPI snapshot cards ──────────────────────────────────── */
.ii-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4)
}

.ii-kpi {
    background: var(--infinity);
    border: 1px solid var(--tt-10);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm)
}

.ii-kpi-lab {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-3)
}

.ii-kpi-val {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums
}

.ii-kpi-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 12px;
    color: var(--fg-2);
    border-top: 1px dashed var(--tt-10);
    padding-top: 9px
}

.ii-kpi-row b {
    font-weight: 600;
    color: var(--fg-1);
    font-variant-numeric: tabular-nums
}

.ii-kpi-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap
}

.ii-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: var(--r-pill);
    padding: 4px 9px;
    white-space: nowrap
}

.ii-badge.above {
    color: #0A7D67;
    background: var(--fp-10)
}

.ii-badge.near {
    color: var(--gg-100);
    background: var(--gg-10)
}

.ii-badge.below {
    color: #B85C1E;
    background: #FDF1E7
}

.ii-badge.strong {
    color: #0A7D67;
    background: var(--fp-10)
}

.ii-badge.moderate {
    color: var(--gg-100);
    background: var(--gg-10)
}

.ii-badge.attention {
    color: #B85C1E;
    background: #FDF1E7
}

.ii-delta {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

.ii-delta.up {
    color: #0A7D67
}

.ii-delta.down {
    color: #B85C1E
}

.ii-delta.flat {
    color: var(--fg-2)
}

/* ── Charts ──────────────────────────────────────────────── */
.ii-chart {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.ii-chart-wrap {
    position: relative
}

.ii-svg {
    width: 100%;
    height: 250px;
    display: block;
    overflow: visible
}

.ii-grid {
    stroke: var(--tt-10);
    stroke-width: 1
}

.ii-guide {
    stroke: var(--tt-20);
    stroke-width: 1;
    stroke-dasharray: 3 3
}

.ii-axis {
    font-family: var(--font-primary);
    font-size: 10.5px;
    fill: var(--fg-3)
}

.ii-legend {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex-wrap: wrap
}

.ii-lg {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--fg-2);
    font-weight: 500
}

.ii-lg i {
    width: 14px;
    height: 3px;
    border-radius: 2px;
    display: inline-block
}

.ii-lg i.dash {
    background: repeating-linear-gradient(90deg, var(--tt-40) 0 4px, transparent 4px 7px) !important
}

.ii-lg i.band {
    width: 14px;
    height: 10px;
    border-radius: 3px;
    background: var(--gg-10);
    border: 1px solid var(--gg-20)
}

.ii-trend {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-pill)
}

.ii-trend.up {
    color: #0A7D67;
    background: var(--fp-10)
}

.ii-trend.down {
    color: #B85C1E;
    background: #FDF1E7
}

.ii-tip {
    position: absolute;
    top: 6px;
    background: var(--trust-tech);
    color: #fff;
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 11.5px;
    pointer-events: none;
    min-width: 170px;
    box-shadow: var(--shadow-md);
    z-index: 5
}

.ii-tip-m {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 9.5px;
    opacity: .7;
    margin-bottom: 7px
}

.ii-tip-r {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    color: rgba(255, 255, 255, .82)
}

.ii-tip-r span {
    width: 9px;
    height: 3px;
    border-radius: 2px;
    flex: 0 0 auto
}

.ii-tip-r span.band {
    height: 8px;
    background: var(--gg-40)
}

.ii-tip-r b {
    margin-left: auto;
    color: #fff;
    font-variant-numeric: tabular-nums
}

.ii-spark {
    width: 120px;
    height: 34px
}

/* Gauge */
.ii-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px
}

.ii-gauge svg {
    width: 100%;
    max-width: 340px
}

.ii-gauge-val {
    font-family: var(--font-primary);
    font-size: 52px;
    font-weight: 600;
    fill: var(--trust-tech);
    letter-spacing: -.02em
}

.ii-gauge-cap {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    fill: var(--fg-3)
}

.ii-gauge-note {
    font-size: 13px;
    color: var(--fg-2);
    margin: 0
}

.ii-gauge-note b {
    color: #0A7D67;
    font-weight: 600
}

/* Bullet */
.ii-bullet {
    display: flex;
    flex-direction: column;
    gap: 0
}

.ii-bullet-track {
    position: relative;
    height: 14px;
    border-radius: var(--r-pill);
    background: var(--tt-5);
    border: 1px solid var(--tt-10)
}

.ii-bullet-band {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--gg-10)
}

.ii-bullet-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--gg-100), var(--fp-100))
}

.ii-bullet-ind,
.ii-bullet-you {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px
}

.ii-bullet-ind {
    background: var(--tt-60)
}

.ii-bullet-you {
    background: var(--trust-tech);
    width: 3px
}

.ii-bullet-tier {
    position: relative;
    height: 26px;
    flex: 0 0 auto
}

.ii-bullet-pill {
    position: absolute;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: var(--r-sm)
}

.ii-bullet-pill.you {
    color: #fff;
    background: var(--trust-tech)
}

.ii-bullet-pill.ind {
    color: var(--fg-2);
    background: var(--tt-5);
    border: 1px solid var(--tt-10)
}

.ii-bullet-scale {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
    margin-top: 2px
}

.ii-bullet-bandcap {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gg-100);
    margin-bottom: 4px
}

/* H bars */
.ii-hbars {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.ii-hbar {
    display: grid;
    grid-template-columns: 120px 1fr 68px;
    align-items: center;
    gap: var(--sp-4)
}

.ii-hbar-lab {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fg-1)
}

.ii-hbar-track {
    height: 12px;
    background: var(--tt-5);
    border-radius: var(--r-pill);
    overflow: hidden
}

.ii-hbar-fill {
    height: 100%;
    border-radius: var(--r-pill)
}

.ii-hbar-val {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums
}

/* Stacked */
.ii-stack {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.ii-stack-bar {
    display: flex;
    height: 26px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--tt-5)
}

.ii-stack-seg {
    height: 100%
}

.ii-stack-key {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5)
}

.ii-stack-k {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--fg-2)
}

.ii-stack-k i {
    width: 9px;
    height: 9px;
    border-radius: 2px
}

.ii-stack-k b {
    color: var(--fg-1);
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

.ii-stack-k em {
    font-style: normal;
    color: var(--fg-3)
}

/* Donut */
.ii-donut {
    display: flex;
    align-items: center;
    gap: var(--sp-8)
}

.ii-donut svg {
    width: 180px;
    height: 180px;
    flex: 0 0 auto
}

.ii-donut-key {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1 1 auto
}

.ii-donut-k {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--fg-2);
    border-bottom: 1px solid var(--tt-5);
    padding-bottom: 7px
}

.ii-donut-k i {
    width: 10px;
    height: 10px;
    border-radius: 3px
}

.ii-donut-k b {
    margin-left: auto;
    color: var(--fg-1);
    font-variant-numeric: tabular-nums
}

/* Columns */
.ii-cols {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    padding-top: 18px
}

.ii-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    gap: 6px
}

.ii-col-bar {
    border-radius: 5px 5px 0 0;
    position: relative;
    min-height: 3px
}

.ii-col-bar span {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 9.5px;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums
}

.ii-col-lab {
    font-size: 10px;
    color: var(--fg-3);
    text-align: center
}

/* ── Metric mini cards ───────────────────────────────────── */
.ii-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4)
}

.ii-mini-val {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums
}

.ii-note {
    font-size: 12.5px;
    color: var(--fg-2);
    line-height: 1.5;
    margin: 12px 0 0
}

.ii-defs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px
}

.ii-def {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-5);
    font-size: 12.5px;
    color: var(--fg-2);
    border-top: 1px dashed var(--tt-10);
    padding-top: 8px;
    line-height: 1.45
}

.ii-def>span:first-child {
    flex: 1 1 auto
}

.ii-def b {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap
}

.ii-def b {
    color: var(--fg-1);
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

/* ── Factor cards ────────────────────────────────────────── */
.ii-factors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-4)
}

.ii-factor {
    border: 1px solid var(--tt-10);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--infinity)
}

.ii-factor h4 {
    font-size: 13.5px;
    font-weight: 600;
    margin: 0
}

.ii-factor p {
    font-size: 12px;
    color: var(--fg-2);
    margin: 0;
    line-height: 1.5
}

.ii-factor-cmp {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11.5px;
    color: var(--fg-3);
    border-top: 1px dashed var(--tt-10);
    padding-top: 9px;
    margin-top: auto
}

.ii-factor-cmp b {
    color: var(--fg-1);
    font-weight: 600;
    font-size: 12px
}

/* ── Challenge / edu cards ───────────────────────────────── */
.ii-tile {
    border: 1px solid var(--tt-10);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--infinity)
}

.ii-tile-ic {
    width: 34px;
    height: 34px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: var(--gg-10);
    color: var(--gg-100)
}

.ii-tile.teal .ii-tile-ic {
    background: var(--fp-10);
    color: #0A7D67
}

.ii-tile h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0
}

.ii-tile p {
    font-size: 12.5px;
    color: var(--fg-2);
    margin: 0;
    line-height: 1.5
}

.ii-tile-cta {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gg-100);
    margin-top: 6px;
    cursor: pointer
}

.ii-tag {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-3)
}

/* ── Table ───────────────────────────────────────────────── */
.ii-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.ii-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-3);
    padding: 0 var(--sp-4) 11px;
    border-bottom: 1px solid var(--tt-10)
}

.ii-table td {
    padding: 13px var(--sp-4);
    border-bottom: 1px solid var(--tt-5);
    color: var(--fg-2)
}

.ii-table td:first-child {
    font-weight: 600;
    color: var(--fg-1)
}

.ii-table td.top {
    color: #0A7D67;
    font-weight: 600
}

.ii-table tr:last-child td {
    border-bottom: none
}

/* ── Buttons / CTA ───────────────────────────────────────── */
.ii-btn {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--r-md);
    padding: 12px 20px;
    cursor: pointer;
    border: 1px solid transparent
}

.ii-btn.primary {
    background: var(--gg-100);
    color: #fff
}

.ii-btn.primary:hover {
    background: #0035A0
}

.ii-btn.secondary {
    background: var(--infinity);
    color: var(--gg-100);
    border-color: var(--gg-20)
}

.ii-btn.secondary:hover {
    border-color: var(--gg-40)
}

.ii-btn.onnavy {
    background: var(--infinity);
    color: var(--trust-tech)
}

.ii-btn.onnavy-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .4)
}

.ii-cta {
    background: var(--galaxy-gradient);
    border-radius: var(--r-card);
    padding: var(--sp-10) var(--sp-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
    color: #fff;
    margin-bottom: var(--sp-12);
}

.ii-cta h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.18;
    margin: 0;
    max-width: 24ch
}

.ii-cta p {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    margin: 12px 0 0;
    max-width: 52ch
}

.ii-cta-btns {
    display: flex;
    gap: var(--sp-3);
    flex: 0 0 auto
}

.ii-inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gg-100);
    border: 1px solid var(--gg-20);
    border-radius: var(--r-md);
    padding: 10px 16px;
    cursor: pointer;
    background: var(--infinity);
    font-family: inherit;
    margin-top: var(--sp-5)
}

.ii-inline-cta:hover {
    border-color: var(--gg-40)
}

.ii-callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--fp-5);
    border: 1px solid var(--fp-20);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--fg-1);
    line-height: 1.5;
    margin-top: var(--sp-5)
}

.ii-callout b {
    font-weight: 600
}

.ii-callout.info {
    background: var(--gg-5);
    border-color: var(--gg-20)
}

/* ── Footer ──────────────────────────────────────────────── */

/* ── Auth overlay ────────────────────────────────────────── */

@media (max-width:1180px) {
    .ii-kpis {
        grid-template-columns: repeat(3, 1fr)
    }

    .ii-factors {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:900px) {
    .ii-body {
        padding: var(--sp-6) var(--sp-5) var(--sp-12)
    }

    .ii-grid2,
    .ii-grid3,
    .ii-grid4 {
        grid-template-columns: 1fr
    }

    .ii-kpis,
    .ii-factors {
        grid-template-columns: 1fr 1fr
    }

    .ii-hero {
        flex-direction: column;
        align-items: flex-start
    }

    .ii-hero-right {
        align-items: flex-start
    }

    .ii-h1 {
        font-size: 29px
    }

    .ii-donut {
        flex-direction: column
    }

    .ii-cta {
        flex-direction: column;
        align-items: flex-start
    }
}

@media (max-width:560px) {

    .ii-kpis,
    .ii-factors {
        grid-template-columns: 1fr
    }
}

/* ── Loading / error / sample banner ───────────────────────────── */

.ii-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 220px;
    padding: 40px 24px;
}

.ii-state-inline {
    margin: 32px auto;
    max-width: 520px;
    background: var(--bg-1);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
}

.ii-state-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--bg-3, #e6eaf0);
    border-top-color: var(--gg-100, #0040BA);
    border-radius: 50%;
    animation: ii-spin 0.7s linear infinite;
    margin-bottom: 8px;
}

@keyframes ii-spin {
    to {
        transform: rotate(360deg);
    }
}

.ii-state-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg-1);
}

.ii-state-sub {
    margin: 0;
    font-size: 13.5px;
    color: var(--fg-3);
    max-width: 360px;
}

.ii-inline-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: var(--r-md, 8px);
    background: #FFF6E5;
    color: #7A4E00;
    font-size: 13px;
}

.ii-inline-banner button {
    border: 1px solid #D4A017;
    background: #fff;
    color: #7A4E00;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12.5px;
    cursor: pointer;
}

.ii-inline-banner button:hover {
    background: #FFF6E5;
}