/* =====================================================
   Ekantik 10x — Components (spec §9.4)
   Stat card, PASS/FAIL pill, buttons, table, callout.
   ===================================================== */

/* ─── Headings ─── */
h1, h2, h3 { font-family: var(--font-serif); color: var(--navy); font-weight: 700; letter-spacing: -0.005em; margin-top: 0; }
h2 { font-size: var(--fs-h2); line-height: 1.15; margin: 0 0 var(--s-2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; margin: 0 0 var(--s-1); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.subhead {
    color: var(--muted);
    font-size: var(--fs-body);
    line-height: 1.5;
    margin: 0 0 var(--s-4);
    max-width: 640px;
}
.section--navy .subhead { color: rgba(255,255,255,0.7); }

.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 var(--s-2);
}

p { margin: 0 0 var(--s-2); }
p.lede { font-size: 18px; line-height: 1.6; color: var(--ink); }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.section--navy a { color: var(--gold); }
.section--navy a:hover { color: var(--gold-warm); }

/* ─── Stat card ─── */
.stat-card {
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    padding: var(--s-3) var(--s-2);
    background: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
}
.stat-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.stat-card__label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.stat-card__value {
    font-family: var(--font-mono);
    font-size: 40px;
    line-height: 1.1;
    color: var(--navy);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
}
.stat-card__caption {
    font-size: 11px;
    color: var(--muted);
    margin: 6px 0 0;
    line-height: 1.4;
}

.stat-card--lg .stat-card__value { font-size: 56px; }
.stat-card--lg { padding: var(--s-3); }

.stat-card--dark {
    background: var(--navy);
    border-color: transparent;
    color: var(--white);
}
.stat-card--dark .stat-card__label { color: rgba(255,255,255,0.6); }
.stat-card--dark .stat-card__value { color: var(--gold); }
.stat-card--dark .stat-card__caption { color: rgba(255,255,255,0.55); }

/* ─── PASS / FAIL pill ─── */
.pill {
    display: inline-block;
    min-width: 60px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    line-height: 16px;
}
.pill--pass { background: var(--pass); }
.pill--fail { background: var(--fail); }
.pill--neutral { background: var(--muted); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-warm); border-color: var(--gold-warm); color: var(--navy); }
.btn--secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--tertiary {
    background: transparent;
    color: var(--navy);
    border-color: transparent;
    padding: 12px 4px;
    min-height: 44px;
    text-decoration: underline;
}
.btn--tertiary:hover { color: var(--gold); }
.section--navy .btn--secondary { color: var(--white); border-color: var(--white); }
.section--navy .btn--secondary:hover { background: var(--white); color: var(--navy); }
.btn--sm { padding: 10px 14px; min-height: 44px; font-size: 13px; }

/* ─── Table ─── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: var(--fs-small);
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.data-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 14px var(--s-2);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.data-table tbody td {
    padding: 14px var(--s-2);
    border-top: 1px solid var(--divider);
    vertical-align: middle;
}
.data-table tbody tr:nth-child(even) td { background: var(--cream); }
.data-table tbody tr:hover td { background: rgba(200, 169, 81, 0.06); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.data-table__test-name {
    font-weight: 600; color: var(--navy); cursor: pointer;
    background: none; border: none; font-size: inherit; text-align: left;
    display: block; width: 100%; padding: 14px 0; margin: -14px 0;
    min-height: 44px;
}
.data-table__test-name:hover { color: var(--gold); text-decoration: underline; }

@media (max-width: 640px) {
    .data-table__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ─── Callout ─── */
.callout {
    background: var(--cream-2);
    border-left: 4px solid var(--gold);
    padding: var(--s-2) var(--s-3);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: var(--s-3) 0;
}
.callout__title {
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
}
.callout__body { margin: 0; color: var(--ink); }

.callout--small {
    padding: 10px var(--s-2);
    border-left-width: 3px;
    margin: var(--s-2) 0 0;
    line-height: 1.5;
}
.callout--small .callout__title { margin-bottom: 4px; }

/* ─── Filter pills (trade log day-range) ─── */
.filter-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: var(--s-1) 0 var(--s-2);
}
.filter-pill {
    padding: 6px 14px;
    min-height: 32px;
    border: 1px solid var(--divider);
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-pill:hover { border-color: var(--navy); }
.filter-pill--active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Scrollable trade log body when there are many trades */
.data-table__wrap--scroll {
    max-height: 480px;
    overflow-y: auto;
    border-radius: var(--radius-md);
}
.data-table__wrap--scroll .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* ─── Inline charts (Section A — equity curve + monthly bars) ─── */
.mini-chart {
    position: relative;
    height: 260px;
    margin: var(--s-2) 0 var(--s-2);
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: var(--s-2);
}
.mini-chart--bars { height: 180px; }
.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}
.mini-stats > div {
    background: var(--cream-2);
    border-radius: var(--radius-sm);
    padding: 10px var(--s-2);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mini-stats__label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.mini-stats__val {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--navy);
    font-weight: 500;
    letter-spacing: -0.01em;
}
@media (max-width: 640px) {
    .mini-stats { grid-template-columns: 1fr; }
    .mini-chart { height: 180px; }
}

/* ─── Failure interpretation note (below battery table) ─── */
.failure-note {
    margin: var(--s-3) 0 var(--s-4);
    padding: var(--s-3) var(--s-4);
    border-left: 4px solid var(--gold);
    background: var(--cream-2);
    border-radius: var(--radius-sm);
}
.failure-note h4 {
    margin: 0 0 var(--s-1);
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -0.005em;
}
.failure-note p {
    margin: 0 0 var(--s-1);
    line-height: 1.6;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
}
.failure-note p:last-child { margin-bottom: 0; }
.failure-note__footer {
    font-size: var(--fs-small);
    color: var(--muted);
    font-style: italic;
}
.failure-note--a { border-left-color: var(--gold); }          /* context — gold */
.failure-note--b { border-left-color: #B00020; }              /* genuine concern — red */
.failure-note--c { border-left-color: #D97706; }              /* watch — amber */

/* ─── Pulsing live dot ─── */
.live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--live);
    margin-right: 6px;
    animation: pulse 2s infinite;
    vertical-align: middle;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 180, 100, 0.6); }
    50%      { box-shadow: 0 0 0 6px rgba(47, 180, 100, 0); }
}

/* ─── Card (general) ─── */
.card {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: var(--s-3);
}
.card__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--s-2); gap: var(--s-2);
}

/* ─── Glossary card ─── */
.glossary { margin-top: var(--s-4); }
.glossary__title { margin-bottom: var(--s-3); }
.glossary__card {
    scroll-margin-top: 100px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    background: var(--white);
    margin-bottom: var(--s-2);
}
.glossary__summary {
    cursor: pointer;
    padding: var(--s-2) var(--s-3);
    font-weight: 600;
    color: var(--navy);
    display: flex; justify-content: space-between; align-items: center;
    list-style: none;
}
.glossary__summary::-webkit-details-marker { display: none; }
.glossary__summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--gold);
    transition: transform 0.15s ease;
}
.glossary__card[open] .glossary__summary::after { content: '−'; }
.glossary__body {
    padding: 0 var(--s-3) var(--s-3);
    color: var(--ink);
    border-top: 1px solid var(--divider);
    padding-top: var(--s-2);
    font-size: var(--fs-small);
}
.glossary__body p { margin: 0 0 var(--s-2); }
.glossary__formula {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--cream-2);
    padding: var(--s-1) var(--s-2);
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: 6px 0;
}
.glossary__calc {
    margin-top: var(--s-2);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    padding: var(--s-2);
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px solid var(--divider);
}

/* ─── Attributes-of-a-Sustainable-Edge hub ─── */
.edge-hub {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 1 / 1;
    margin: var(--s-8) auto var(--s-6);
    padding: 0;
}
.edge-hub__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.edge-hub__center,
.edge-hub__sat {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.edge-hub__center {
    top: 50%;
    left: 50%;
    width: 30%;
    max-width: 216px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: grid;
    place-items: center;
    padding: var(--s-2);
    text-align: center;
    box-shadow: 0 6px 20px rgba(27, 42, 74, 0.12);
}
.edge-hub__center-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(200, 169, 81, 0.75);
    margin-bottom: 6px;
    font-weight: 600;
}
.edge-hub__center-title {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(17px, 2.4vw, 22px);
    line-height: 1.15;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: -0.005em;
}

.edge-hub__sat {
    width: 22%;
    min-width: 140px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--divider);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    text-align: left;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(27, 42, 74, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.edge-hub__sat:hover {
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 42, 74, 0.12);
    border-left-color: var(--navy);
}
.edge-hub__sat-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 2px;
}
.edge-hub__sat-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.2;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.005em;
}
.edge-hub__sat-desc {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}

/* ─── Mobile: collapse to stacked list ─── */
@media (max-width: 760px) {
    .edge-hub {
        aspect-ratio: auto;
        max-width: 560px;
    }
    .edge-hub__svg { display: none; }
    .edge-hub__center {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
        border-radius: var(--radius-md);
        padding: var(--s-3);
        margin-bottom: var(--s-3);
    }
    .edge-hub__sat {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        width: 100%;
        margin-bottom: 10px;
    }
    .edge-hub__sat:hover {
        transform: translateY(-1px) !important;
    }
}

/* ─── Layman question (italic, gold-bordered) ─── */
.glossary__question {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.4;
    color: var(--navy);
    margin: 0 0 var(--s-2);
    padding: 4px 0 4px var(--s-2);
    border-left: 2px solid var(--gold);
}
.glossary__lead {
    color: var(--navy);
    font-size: 15px;
    margin: 0 0 var(--s-2);
}

/* ─── Pass / Fail example boxes ─── */
.glossary__examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-2);
    margin: var(--s-2) 0;
}
.glossary__example {
    background: var(--white);
    border: 1px solid var(--divider);
    border-left-width: 3px;
    padding: var(--s-2);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.glossary__example--pass { border-left-color: var(--pass); }
.glossary__example--fail { border-left-color: var(--fail); }
.glossary__example-tag {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}
.glossary__example--pass .glossary__example-tag { color: var(--pass); }
.glossary__example--fail .glossary__example-tag { color: var(--fail); }
.glossary__example strong { color: var(--navy); font-weight: 600; }

/* ─── Threshold strip ─── */
.glossary__threshold {
    margin: var(--s-2) 0;
    padding: 10px var(--s-2);
    background: var(--cream-2);
    border-radius: var(--radius-sm);
    display: flex;
    gap: var(--s-2);
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 13px;
}
.glossary__threshold-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.glossary__threshold-val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--navy);
}
.glossary__threshold-note {
    color: var(--muted);
    font-style: italic;
    flex: 1 1 240px;
}

/* ─── "How it's computed" nested details (technical) ─── */
.glossary__detail-nested {
    margin: var(--s-2) 0;
    font-size: 13px;
}
.glossary__detail-nested > summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 0;
    list-style: none;
}
.glossary__detail-nested > summary::-webkit-details-marker { display: none; }
.glossary__detail-nested > summary::before { content: '▸ '; color: var(--gold); }
.glossary__detail-nested[open] > summary::before { content: '▾ '; }
.glossary__detail-nested > p { margin: 6px 0; color: var(--muted); }

/* ─── Why quote (closing italic pull) ─── */
.glossary__why {
    margin: var(--s-3) 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--muted);
    border-top: 1px solid var(--divider);
    padding-top: var(--s-2);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .glossary__examples { grid-template-columns: 1fr; }
}

/* ─── Ladder (Section A) ─── */
.ladder {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    margin: var(--s-3) 0;
}
.ladder th, .ladder td {
    padding: 12px var(--s-2);
    border-bottom: 1px solid var(--divider);
    text-align: right;
}
.ladder th { text-align: left; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ladder td:first-child { text-align: left; color: var(--navy); font-weight: 500; }
.ladder__target { color: var(--navy); }
.ladder__live { color: var(--gold); font-weight: 500; }

/* ─── 95/5 chart ─── */
.portfolio-reshaper {
    margin: var(--s-4) 0;
}
.portfolio-reshaper__bar {
    display: flex;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--divider);
    margin-bottom: var(--s-1);
}
.portfolio-reshaper__seg {
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
    color: var(--white);
    min-width: 2px;
    transition: width 0.4s ease;
}
.portfolio-reshaper__seg--market { background: var(--navy); }
.portfolio-reshaper__seg--spec { background: linear-gradient(90deg, var(--gold), var(--gold-warm)); color: var(--navy); }
.portfolio-reshaper__labels {
    display: flex; justify-content: space-between;
    font-size: var(--fs-xs); color: var(--muted);
    margin-bottom: var(--s-3);
}
.portfolio-reshaper__slider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-2);
    margin: var(--s-3) 0;
    padding: var(--s-2);
    background: var(--cream-2);
    border-radius: var(--radius-md);
}
.slider-field label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.slider-field .slider-value {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--navy);
    font-weight: 500;
}
.slider-field input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
}

/* ─── Upload panel ─── */
.upload-panel {
    margin: var(--s-3) 0;
    border: 1px dashed var(--divider);
    border-radius: var(--radius-md);
}
.upload-panel[open] { border-color: var(--gold); }
.upload-panel__summary {
    padding: var(--s-2) var(--s-3);
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
}
.upload-panel__summary::-webkit-details-marker { display: none; }
.upload-panel__summary::before { content: '↓ '; color: var(--gold); font-family: var(--font-mono); }
.upload-panel[open] .upload-panel__summary::before { content: '↑ '; }
.upload-panel__body {
    padding: 0 var(--s-3) var(--s-3);
    font-size: var(--fs-small);
}
.upload-panel__body p { color: var(--muted); }
.upload-panel__step {
    display: grid; gap: var(--s-1);
    margin: var(--s-2) 0;
    padding: var(--s-2);
    border-left: 3px solid var(--divider);
}
.upload-panel__step h4 { margin: 0; font-size: var(--fs-small); font-family: var(--font-sans); color: var(--navy); }
.upload-banner {
    background: var(--gold);
    color: var(--navy);
    padding: var(--s-1) var(--s-2);
    border-radius: var(--radius-sm);
    font-size: var(--fs-small);
    font-weight: 600;
    margin: var(--s-2) 0;
    display: flex; justify-content: space-between; align-items: center;
}

/* ─── Trade log / Discord card ─── */
.discord-feed { display: flex; flex-direction: column; gap: var(--s-1); }
.discord-msg {
    padding: 10px var(--s-2);
    border-bottom: 1px solid var(--divider);
    font-family: var(--font-sans);
    font-size: var(--fs-small);
}
.discord-msg:last-child { border-bottom: none; }
.discord-msg__header {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--muted); margin-bottom: 4px;
}
.discord-msg__body { color: var(--ink); font-family: var(--font-mono); font-size: 13px; }

/* ─── Roadmap ─── */
.roadmap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-2);
    margin: var(--s-3) 0;
}
.roadmap__track {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: var(--s-3);
}
.roadmap__track h3 {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s-2); margin-bottom: var(--s-2);
}
.roadmap__status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--cream-2);
    color: var(--muted);
    white-space: nowrap;
}
.roadmap__status--planning { background: var(--cream-2); color: var(--muted); }
.roadmap__status--progress { background: var(--gold); color: var(--navy); }
.roadmap__status--compliance { background: var(--navy); color: var(--white); }
.roadmap ul { padding-left: var(--s-2); margin: var(--s-1) 0 0; color: var(--ink); }
.roadmap li { margin-bottom: 4px; font-size: var(--fs-small); }

/* ─── Interest form ─── */
.interest-form {
    margin-top: var(--s-3);
    padding: var(--s-3);
    background: var(--cream-2);
    border-radius: var(--radius-md);
}
.interest-form__row {
    display: flex; gap: var(--s-1); flex-wrap: wrap;
    margin-top: var(--s-2);
}
.interest-form input[type="email"] {
    flex: 1; min-width: 240px;
    padding: 12px var(--s-2);
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    font-size: var(--fs-body);
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--ink);
}
.interest-form input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.interest-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ─── CTA row (bottom of Section C) ─── */
.cta-row {
    display: flex; gap: var(--s-2); flex-wrap: wrap;
    justify-content: flex-start;
    margin: var(--s-4) 0 0;
}

/* ─── Version history ─── */
.version-history { margin-top: var(--s-4); }
.version-history__summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    padding: var(--s-2) 0;
    list-style: none;
}
.version-history__summary::-webkit-details-marker { display: none; }
.version-history__summary::before { content: '▸ '; color: var(--gold); font-family: var(--font-mono); }
.version-history[open] .version-history__summary::before { content: '▾ '; }

/* ─── Transparency link ─── */
.transparency-link {
    display: inline-block;
    margin-top: var(--s-3);
    font-size: var(--fs-small);
    font-family: var(--font-mono);
    color: var(--muted);
}
.transparency-link:hover { color: var(--gold); }

/* ─── Modal (equity curve) ─── */
.modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 26, 48, 0.7);
    z-index: 100;
    padding: var(--s-2);
}
.modal--open { display: flex; align-items: center; justify-content: center; }
.modal__dialog {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--s-3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}
.modal__close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none;
    font-size: 28px; line-height: 1;
    color: var(--muted); cursor: pointer;
}
.modal__close:hover { color: var(--navy); }

/* ─── Utility ─── */
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hide { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.italic { font-style: italic; }
.text-center { text-align: center; }

/* ─── Fade-in on first render ─── */
.fade-in { animation: fadeIn 0.5s ease-out both; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Focus states (a11y) ─── */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* =====================================================
   Accelerator modules — A, B, C
   Spec 10x-cash-generator-spec.md v1.6
   ===================================================== */

/* ─── Module C slim context bar (above Module A) ─── */
.capacity-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    padding: 12px var(--s-3);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(200, 169, 81, 0.25);
}
.capacity-bar strong { color: var(--gold); font-weight: 600; }

/* ─── Module wrapper (A and B share this) ─── */
.mod {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: var(--s-4);
    margin: var(--s-4) 0;
}
.mod__header { margin-bottom: var(--s-3); }
.mod__title {
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.2;
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.005em;
}
.mod__subhead {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
    font-style: italic;
}

/* ─── Module slider grid (reuses .slider-field base) ─── */
.mod__sliders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-2);
    margin: var(--s-3) 0;
    padding: var(--s-3);
    background: var(--cream-2);
    border-radius: var(--radius-md);
}
.mod__radio-group {
    display: flex;
    gap: var(--s-1);
    flex-wrap: wrap;
}
.mod__radio-group label {
    flex: 1 1 0;
    min-width: 90px;
    padding: 10px 12px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    display: flex; align-items: center; justify-content: center;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
}
.mod__radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mod__radio-group label:has(input:checked),
.mod__radio-group input:checked + label {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}
.mod__radio-group label:hover { border-color: var(--navy); }

/* ─── Output panel (single-column target-only) ─── */
.mod__outputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: var(--s-3);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.mod__outputs--single { grid-template-columns: 1fr; }
.mod__col {
    padding: var(--s-3);
    background: var(--white);
}
.mod__col + .mod__col {
    border-left: 1px solid var(--divider);
    background: var(--cream);
}
.mod__col-eyebrow {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 4px;
}
.mod__col-title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 4px;
}
.mod__col-context {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 var(--s-2);
    line-height: 1.5;
}
.mod__col-context strong { color: var(--navy); font-weight: 600; }
.mod__metric {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-1);
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px dashed var(--divider);
}
.mod__metric:first-of-type { border-top: none; }
.mod__metric-label {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mod__metric-val {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--navy);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.mod__metric--big .mod__metric-val { font-size: 28px; color: var(--navy); }
.mod__col + .mod__col .mod__metric--big .mod__metric-val { color: var(--gold); }

.mod-out--provisional { font-style: italic; opacity: 0.85; }

.mod__caveat {
    margin-top: var(--s-3);
    padding: var(--s-2) var(--s-3);
    background: var(--cream-2);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
}

/* ─── Module B timeline ─── */
.mod-b__timelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-2);
    margin: var(--s-3) 0;
}
.mod-b__timelines--single { grid-template-columns: 1fr; }
.mod-b__timeline-block {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: var(--s-3);
}
.mod-b__timeline-block + .mod-b__timeline-block { background: var(--cream); }
.mod-b__timeline-block h4 {
    margin: 0 0 var(--s-2);
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.mod-b-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: var(--s-2);
    align-items: center;
    margin-bottom: var(--s-2);
}
.mod-b-row__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    letter-spacing: 0.04em;
}
.mod-b-row__track {
    position: relative;
    height: 36px;
    background: var(--cream-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--divider);
    overflow: hidden;
}
.mod-b-row__fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, rgba(200, 169, 81, 0.18), rgba(200, 169, 81, 0.32));
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.mod-b-marker {
    position: absolute;
    top: 50%;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--navy);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}
.mod-b-marker--start {
    left: 8px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 10px;
}
.mod-b-marker--end {
    right: 8px;
    transform: translateY(-50%);
    color: var(--navy);
    font-weight: 600;
}

/* ─── Monthly distribution tables (Modules A and B) ─── */
.mod-table-wrap {
    margin-top: var(--s-3);
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.mod-table-title {
    margin: 0;
    padding: 12px var(--s-3);
    background: var(--cream-2);
    border-bottom: 1px solid var(--divider);
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.mod-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 13px;
    background: var(--white);
}
.mod-table thead th {
    background: var(--white);
    color: var(--muted);
    padding: 10px var(--s-2);
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--divider);
}
.mod-table tbody td {
    padding: 10px var(--s-2);
    border-top: 1px solid var(--divider);
    vertical-align: middle;
    color: var(--ink);
}
.mod-table td.num, .mod-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.mod-table tbody tr:hover td { background: rgba(200, 169, 81, 0.04); }
.mod-table__row--dist td { background: rgba(200, 169, 81, 0.07); }
.mod-table__row--dist:hover td { background: rgba(200, 169, 81, 0.12); }
.mod-table__row--total td {
    background: var(--cream-2);
    border-top: 2px solid var(--gold);
    font-size: 13px;
    padding: 12px var(--s-2);
}
.mod-table__row--total:hover td { background: var(--cream-2); }

.mod-table__pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.mod-table__pill--active { background: rgba(47, 180, 100, 0.14); color: var(--pass); }
.mod-table__pill--down   { background: var(--cream-2); color: var(--muted); }

.mod-table__gain {
    font-family: var(--font-mono);
    color: var(--pass);
    font-weight: 500;
}
.mod-table__dist {
    font-family: var(--font-mono);
    color: var(--navy);
    font-weight: 600;
}
.mod-table__scale-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    background: var(--gold);
    color: var(--navy);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: 1px;
}
.mod-table__pos {
    font-family: var(--font-mono);
    color: var(--navy);
    font-weight: 600;
}

@media (max-width: 640px) {
    .mod-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .mod-table { min-width: 540px; }
    .mod-table thead th, .mod-table tbody td { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 760px) {
    .mod__outputs { grid-template-columns: 1fr; }
    .mod__col + .mod__col { border-left: none; border-top: 1px solid var(--divider); }
    .mod-b__timelines { grid-template-columns: 1fr; }
}

/* ─── Connector copy between Module A and Module B ─── */
.mod-connector {
    margin: var(--s-4) 0;
    padding: var(--s-3);
    text-align: center;
    color: var(--muted);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Module C — full panel ─── */
.mod-c-panel {
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: var(--s-4);
    margin: var(--s-4) 0;
}
.mod-c-panel__heading {
    margin: 0 0 var(--s-2);
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--navy);
    font-weight: 700;
}
.mod-c-statement {
    margin: 0 0 var(--s-3);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    max-width: 760px;
}
.mod-c-statement p { margin: 0 0 var(--s-2); }
.mod-c-statement p:last-child { margin-bottom: 0; }

/* Two-band capacity counter */
.cap-counter {
    margin: var(--s-3) 0;
    padding: var(--s-3);
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
}
.cap-counter__band {
    margin-bottom: var(--s-2);
}
.cap-counter__band:last-child { margin-bottom: 0; }
.cap-counter__band-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 12px;
    margin-bottom: 6px;
}
.cap-counter__band-label {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 11px;
}
.cap-counter__band-amount {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--navy);
}
.cap-counter__bar {
    height: 16px;
    background: var(--cream-2);
    border: 1px solid var(--divider);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
}
.cap-counter__bar--total {
    background: var(--cream-2);
    border-color: var(--gold);
    /* The total bar is decorative — never fills. Subtle stripe to indicate "ceiling". */
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0 6px,
        rgba(200, 169, 81, 0.12) 6px 8px
    );
}
.cap-counter__bar--tier { background: var(--cream-2); }
.cap-counter__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-warm));
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}
.cap-counter__band-note {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-sans);
}
.cap-counter__updated {
    margin: var(--s-2) 0 0;
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* ─── Indication-of-Interest form ─── */
.indication-form {
    margin-top: var(--s-3);
    padding: var(--s-4);
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
}
.indication-form__heading {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 4px;
}
.indication-form__subhead {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 var(--s-3);
    font-style: italic;
}
.indication-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-2);
    margin-bottom: var(--s-2);
}
@media (max-width: 640px) {
    .indication-form__grid { grid-template-columns: 1fr; }
}
.ind-field { display: flex; flex-direction: column; gap: 4px; }
.ind-field label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ind-field input[type="text"],
.ind-field input[type="email"],
.ind-field input[type="tel"] {
    padding: 12px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
}
.ind-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Booking amount slider with live label */
.ind-amount-block {
    margin: var(--s-3) 0;
    padding: var(--s-3);
    background: var(--cream-2);
    border-radius: var(--radius-sm);
}
.ind-amount-block label {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
#ind-amount {
    width: 100%;
    accent-color: var(--gold);
    margin: 6px 0 8px;
}
.ind-amount-val {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
    display: block;
}
.ind-amount-val strong {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Mode preference radios */
.ind-mode-block { margin: var(--s-3) 0; }
.ind-mode-block > label {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.ind-mode-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-1);
}
@media (max-width: 640px) {
    .ind-mode-options { grid-template-columns: 1fr; }
}
.ind-mode-options label {
    padding: 10px 12px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    color: var(--ink);
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.ind-mode-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ind-mode-options label:has(input:checked) {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

/* Acknowledgment checkboxes */
.ind-ack {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-2);
    align-items: start;
    padding: var(--s-2);
    margin: var(--s-1) 0;
    background: var(--cream-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.ind-ack input[type="checkbox"] {
    width: 20px; height: 20px;
    margin-top: 2px;
    accent-color: var(--gold);
    cursor: pointer;
}
.ind-ack-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    font-family: var(--font-sans);
}
.ind-ack-text em { font-style: italic; color: var(--ink); }
.ind-ack-text a { color: var(--navy); text-decoration: underline; }

/* Submit + footer */
.ind-submit-row {
    display: flex; align-items: center; gap: var(--s-2);
    margin-top: var(--s-3);
    flex-wrap: wrap;
}
#ind-submit {
    flex: 0 0 auto;
}
#ind-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
#ind-submit:disabled:hover {
    background: var(--gold);
    border-color: var(--gold);
}
.ind-error {
    flex: 1 1 240px;
    color: var(--fail);
    font-size: 13px;
    font-weight: 500;
    background: rgba(198, 40, 40, 0.08);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--fail);
}

.ind-thanks {
    padding: var(--s-4);
    background: var(--cream-2);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
}
.ind-thanks h3 {
    color: var(--navy);
    margin: 0 0 var(--s-2);
}
.ind-thanks p {
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 var(--s-2);
}
.ind-thanks p:last-child { margin-bottom: 0; }

/* Discord access block inside the thank-you state — prominent, gold-accented */
.ind-thanks__discord {
    margin: var(--s-3) 0;
    padding: var(--s-3);
    background: var(--navy);
    color: rgba(255,255,255,0.92);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
}
.ind-thanks__discord-eyebrow {
    font-family: var(--font-sans) !important;
    font-style: normal !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold) !important;
    margin: 0 0 var(--s-1) !important;
}
.ind-thanks__discord p {
    color: rgba(255,255,255,0.92) !important;
    font-style: normal !important;
    font-family: var(--font-sans) !important;
}
.ind-thanks__discord .btn--primary {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .mod { padding: var(--s-3); }
    .mod-c-panel { padding: var(--s-3); }
    .indication-form { padding: var(--s-3); }
    .ind-submit-row { flex-direction: column; align-items: stretch; }
    .ind-submit-row #ind-submit { width: 100%; justify-content: center; }
}

/* =====================================================
   DEV SPEC v1.0 — Sprint 1 additions
   Section 01 hero rewrite · Section 02 Operator · Section 03 Defense
   ===================================================== */

/* ─── Hero — Judgment Reframe (§3.1) ─── */
.hero--reframe { background: var(--ivory); text-align: left; }
.hero--reframe .hero__inner { max-width: 1080px; }
.hero--reframe .eyebrow--rule {
    display: inline-block;
    padding-bottom: var(--s-2);
    border-bottom: 1px solid var(--gold);
    width: auto;
    max-width: max-content;
    margin-bottom: var(--s-4);
}
.hero--reframe .hero__h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.005em;
    margin: 0 0 var(--s-4);
}
.hero--reframe .hero__h1-main {
    display: block;
    font-size: clamp(44px, 7vw, 80px);
    color: var(--navy);
    font-weight: 600;
}
.hero--reframe .hero__h1-italic {
    display: block;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(32px, 5vw, 56px);
    color: var(--gold);
    margin-top: var(--s-2);
}
.hero--reframe .hero__lead {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 1.6;
    color: rgba(27,42,74,0.8);
    max-width: 640px;
    margin: var(--s-4) 0 var(--s-3);
    font-weight: 400;
}
.hero--reframe .hero__lead--primary { color: var(--navy); margin-bottom: var(--s-2); }
.hero--reframe .hero__lead--primary strong { color: var(--navy); font-weight: 700; }
.hero--reframe .hero__lead--secondary {
    font-size: 17px;
    color: rgba(27,42,74,0.65);
    margin-bottom: var(--s-6);
}
.hero--reframe .hero__lead--secondary em { font-style: italic; }
.hero--reframe .hero__sample-caption {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 13px;
    color: var(--slate);
    margin: var(--s-2) 0 var(--s-4);
    max-width: 880px;
}
.hero--reframe .hero__ctas { gap: var(--s-3); align-items: center; }

/* Text-link CTA (used in hero secondary) */
.btn-text {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding: 4px 0;
    transition: border-color 0.15s ease;
}
.btn-text:hover { border-bottom-color: var(--navy); }

/* Gold-underline link variant (used in dark Layer 03 card) */
.link-gold {
    color: var(--gold);
    font-family: var(--font-sans);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
}
.link-gold:hover { color: var(--gold-warm); border-bottom-color: var(--gold-warm); }

/* ─── Section utility — ivory background, centered head ─── */
.section--ivory { background: var(--ivory); }
.section-head { margin-bottom: var(--s-8); }
.section-head--centered { text-align: center; max-width: 880px; margin-left: auto; margin-right: auto; }
.section-head__title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--navy);
    font-size: clamp(36px, 4.5vw, 52px);
    line-height: 1.1;
    margin: 0 0 var(--s-3);
}
.section-head__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 26px);
    color: rgba(27,42,74,0.8);
    line-height: 1.4;
    margin: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Section 02 · Operator (§3.2) ─── */
.operator .section__inner--wide { max-width: 1080px; }
.operator__grid {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: var(--s-8);
    align-items: start;
}
.operator__portrait { display: flex; justify-content: center; }
.portrait-frame {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ivory);
    font-family: var(--font-serif);
    font-size: 120px;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.96;
}
.portrait-frame__placeholder { user-select: none; }
.operator__title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--navy);
    font-size: clamp(36px, 4.5vw, 52px);
    line-height: 1.1;
    margin: 0 0 var(--s-4);
}
.pullquote {
    margin: 0 0 var(--s-3);
    padding: 0 0 0 var(--s-3);
    border-left: 3px solid var(--gold);
}
.pullquote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--gold);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
    margin: 0;
}
.operator__attribution {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(27,42,74,0.7);
    margin: 0 0 var(--s-6);
}
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
}
.credentials-grid__col { }
.credentials-grid__num {
    display: block;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 64px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: var(--s-2);
}
.credentials-grid__heading {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin: 0 0 var(--s-1);
}
.credentials-grid__body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy);
    margin: 0;
}

/* ─── Section 03 · Defense Architecture (§3.3) ─── */
.defense .section__inner--wide { max-width: 1280px; }
.defense__layers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
}
.defense-card {
    position: relative;
    padding: var(--s-4);
    border-radius: 4px;
}
.defense-card--light {
    background: var(--white);
    border: 1px solid var(--divider);
    color: var(--navy);
}
.defense-card--dark {
    grid-column: 1 / -1;
    background: var(--navy);
    color: var(--ivory);
    padding: var(--s-6);
    box-shadow: 0 8px 24px rgba(15,26,51,0.18);
}
.defense-card__num {
    position: absolute;
    top: var(--s-3);
    right: var(--s-4);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 80px;
    line-height: 1;
    color: var(--gold);
    opacity: 0.9;
}
.defense-card--dark .defense-card__num { opacity: 1; }
.defense-card__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    color: inherit;
    margin: 0 0 var(--s-2);
    max-width: calc(100% - 100px);
}
.defense-card--dark .defense-card__title { color: var(--ivory); font-size: 32px; }
.defense-card__sub {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    font-size: 20px;
    margin: 0 0 var(--s-3);
}
.defense-card__lead {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 var(--s-3);
}
.defense-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-3);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
}
.defense-card__list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(27,42,74,0.08);
}
.defense-card--dark .defense-card__list li { border-bottom-color: rgba(250,248,245,0.12); }
.defense-card__list li:last-child { border-bottom: none; }
.defense-card__footer {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: inherit;
    opacity: 0.85;
    margin: var(--s-3) 0 0;
    font-style: italic;
}
.defense-card__deflist { margin: 0 0 var(--s-3); }
.defense-card__defrow {
    padding: var(--s-2) 0;
    border-bottom: 1px solid rgba(250,248,245,0.12);
}
.defense-card__defrow:last-child { border-bottom: none; }
.defense-card__defrow dt {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 4px;
}
.defense-card__defrow dd {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ivory);
}
.defense-card__cta { margin: var(--s-3) 0 0; }

/* ─── Responsive (Dev Spec §1.4: mobile reduce ~30%) ─── */
@media (max-width: 880px) {
    .operator__grid { grid-template-columns: 1fr; gap: var(--s-4); }
    .operator__portrait { order: -1; }
    .portrait-frame { max-width: 320px; }
    .credentials-grid { grid-template-columns: 1fr; gap: var(--s-4); }
    .defense__layers { grid-template-columns: 1fr; }
    .defense-card--dark { grid-column: auto; padding: var(--s-4); }
    .defense-card--dark .defense-card__title { font-size: 26px; }
    .defense-card__num { font-size: 56px; top: var(--s-2); right: var(--s-3); }
    .hero--reframe .hero__ctas { flex-direction: column; align-items: stretch; }
    .hero--reframe .hero__ctas .btn-text { text-align: center; }
}

/* =====================================================
   DEV SPEC v1.0 — Sprints 2-4 additions
   ===================================================== */

/* ─── Allocation form intro (§3.10) ─── */
.mod-c-panel__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 26px);
    color: rgba(27,42,74,0.85);
    line-height: 1.4;
    max-width: 720px;
    margin: 0 0 var(--s-4);
}
.ind-submit-note {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 13px;
    color: var(--slate);
    text-align: center;
    margin: var(--s-2) 0 0;
    max-width: 720px;
}
.ind-thanks__gauntlet {
    margin-top: var(--s-3);
    font-family: var(--font-sans);
    font-size: 16px;
}
.ind-thanks__gauntlet a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    text-decoration: none;
}

/* XL submit button (Cross the line.) */
.btn--xl {
    padding: 20px 48px;
    font-size: 18px;
    min-height: 60px;
}

/* ─── Battery callout (§3.8) ─── */
.battery-callout {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--gold);
    margin: var(--s-3) 0;
}

/* ─── Edge restructure (§3.4) ─── */
.edge-live {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
    margin: var(--s-6) 0 var(--s-4);
}
.edge-live--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) {
    .edge-live--four { grid-template-columns: repeat(2, 1fr); }
}
.edge-live__card {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: 4px;
    padding: var(--s-4);
    text-align: left;
}
.edge-live__label {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin: 0 0 var(--s-2);
}
.edge-live__value {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1;
    color: var(--gold);
    margin: 0 0 var(--s-2);
}
.edge-live__caption {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 13px;
    color: var(--slate);
    margin: 0;
}
.record-panel {
    margin: var(--s-6) 0 0;
    padding: var(--s-3) var(--s-4);
    background: var(--ivory);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
}
.record-panel__eyebrow {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin: 0 0 var(--s-2);
}
.record-panel__body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--navy);
    margin: 0 0 var(--s-2);
}
.record-panel__body:last-child { margin-bottom: 0; }
.record-panel__body .link-inline {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    text-decoration: none;
}
.edge-disclaimer {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--slate);
    margin: var(--s-4) 0 0;
    line-height: 1.5;
}

/* ─── Section 05 · Three Paths (§3.5) ─── */
.paths .section__inner--wide { max-width: 1280px; }
.paths__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    align-items: stretch;
}
.path-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: 4px;
    padding: var(--s-4);
    display: flex;
    flex-direction: column;
}
.path-card--emphasized {
    background: var(--gold-pale);
    border-color: rgba(200,169,81,0.6);
}
.path-card__flag {
    position: absolute;
    top: var(--s-2);
    right: var(--s-3);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    background: var(--white);
    padding: 4px 8px;
    border-radius: 2px;
    border: 1px solid var(--gold);
}
.path-card__num {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 64px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: var(--s-2);
}
.path-card__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 36px;
    color: var(--navy);
    line-height: 1.1;
    margin: 0 0 var(--s-2);
}
.path-card__tag {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 var(--s-3);
}
.path-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-3);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--navy);
}
.path-card__list li {
    padding: var(--s-1) 0;
    padding-left: var(--s-2);
    position: relative;
}
.path-card__list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}
.path-card__lede {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--navy);
    margin: 0 0 var(--s-3);
    padding: var(--s-2);
    background: rgba(255,255,255,0.6);
    border-left: 2px solid var(--gold);
}
.path-card__meta {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--slate);
    margin: 0 0 var(--s-3);
    line-height: 1.6;
}
.path-card__meta strong { color: var(--navy); }
.path-card__cta {
    margin-top: auto;
    padding-top: var(--s-2);
}
.path-card__cta .btn { width: 100%; justify-content: center; }
.paths__disclaimer {
    margin-top: var(--s-4);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--slate);
    line-height: 1.55;
    max-width: 880px;
}

/* ─── Section 06 · Qualifying Gauntlet (§3.6) ─── */
.gauntlet .section__inner--wide { max-width: 1280px; }
.section-head__title--med { font-size: clamp(32px, 4vw, 48px); }
.gauntlet__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
}
.gate-card {
    background: var(--ivory);
    border: 1px solid var(--divider);
    border-radius: 4px;
    padding: var(--s-4);
}
.gate-card.is-passed { border-color: var(--pass); }
.gate-card.is-failed { border-color: var(--fail); opacity: 0.85; }
.gate-card__eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: var(--s-1);
}
.gate-card__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 36px;
    color: var(--navy);
    line-height: 1.1;
    margin: 0 0 var(--s-1);
}
.gate-card__sub {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--navy);
    margin: 0 0 var(--s-3);
}
.gate-card__deflist { margin: 0 0 var(--s-3); }
.gate-card__defrow {
    padding: var(--s-1) 0;
    border-bottom: 1px solid rgba(27,42,74,0.08);
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
}
.gate-card__defrow:last-child { border-bottom: none; }
.gate-card__defrow dt {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    flex: 0 0 130px;
}
.gate-card__defrow dd {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--navy);
    flex: 1;
    min-width: 0;
}
.gate-card__status {
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    border-top: 1px solid var(--divider);
}
.gate-card__status-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin: 0 0 var(--s-1);
}
.gate-card__bar {
    height: 8px;
    background: rgba(27,42,74,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--s-1) 0;
}
.gate-card__bar-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.6s ease;
}
.gate-card__status-text {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--navy);
    margin: var(--s-1) 0 0;
}
.gate-card__status-text strong { color: var(--navy); }
.gate-card__counter {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 48px;
    line-height: 1;
    color: var(--gold);
    margin: var(--s-1) 0;
}
.gate-card__counter-sub {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--slate);
    text-transform: none;
    letter-spacing: 0;
}
.gauntlet__footnote {
    margin: var(--s-4) auto;
    max-width: 880px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--slate);
    line-height: 1.55;
}

/* Capital activation banner (§4.6) */
.activation-banner {
    background: var(--navy-dark);
    color: var(--ivory);
    padding: var(--s-6) var(--s-3);
    text-align: center;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-2);
}
.activation-banner__rule {
    width: 80px;
    height: 1px;
    background: var(--gold);
}
.activation-banner__text {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 500;
    color: var(--ivory);
    margin: 0;
    line-height: 1.4;
}
.activation-banner__text strong { color: var(--gold); font-weight: 700; }
.activation-banner__updated {
    font-family: var(--font-sans);
    font-size: 12px;
    color: rgba(250,248,245,0.55);
    margin: 0;
}

/* ─── Modes-intro section (smaller vertical padding) ─── */
.modes-intro { padding-bottom: 0; border-bottom: none; }
.modes-intro .section-head { margin-bottom: 0; }

/* ─── Footer canonical line (§3.11) ─── */
.footer__canon {
    color: var(--gold) !important;
    font-family: var(--font-sans);
    font-size: 14px !important;
    margin-bottom: var(--s-3) !important;
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
    .edge-live { grid-template-columns: 1fr; gap: var(--s-2); }
    .paths__grid { grid-template-columns: 1fr; gap: var(--s-3); }
    .gauntlet__grid { grid-template-columns: 1fr; }
    .gate-card__defrow dt { flex: 0 0 100%; }
    .activation-banner__text { font-size: 18px; }
}

/* ─── Mirror page · onboarding steps ─── */
.onboard-steps {
    list-style: none;
    padding: 0;
    margin: var(--s-6) 0 0;
    counter-reset: onboard;
    display: grid;
    gap: var(--s-3);
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.onboard-step {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: var(--s-3);
    align-items: start;
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: 4px;
    padding: var(--s-3);
}
.onboard-step__num {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 64px;
    line-height: 1;
    color: var(--gold);
}
.onboard-step__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 24px;
    color: var(--navy);
    margin: 0 0 var(--s-1);
}
.onboard-step__body p {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--navy);
    margin: 0 0 var(--s-1);
}
.onboard-step__cta { margin-top: var(--s-1); }

@media (max-width: 640px) {
    .onboard-step { grid-template-columns: 1fr; gap: var(--s-1); }
    .onboard-step__num { font-size: 48px; }
}

/* Doc reference under Layer 03 download link */
.defense-card__docref {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    color: rgba(250,248,245,0.45);
    margin-top: var(--s-1);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── R-multiple asymmetry strip (Edge section) ─── */
.r-asym {
    margin: var(--s-4) 0 var(--s-6);
    padding: var(--s-3) var(--s-4);
    background: var(--ivory);
    border: 1px solid var(--divider);
    border-radius: 4px;
}
.r-asym__eyebrow {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin: 0 0 var(--s-3);
}
.r-asym__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: var(--s-3);
    align-items: stretch;
    margin-bottom: var(--s-3);
}
.r-asym__cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--s-2) var(--s-3);
    background: var(--white);
    border-left: 3px solid var(--divider);
    border-radius: 0 4px 4px 0;
}
.r-asym__cell--win   { border-left-color: var(--pass); }
.r-asym__cell--loss  { border-left-color: var(--fail); }
.r-asym__cell--ratio { border-left-color: var(--gold); }
.r-asym__cell-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
}
.r-asym__cell-val {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.1;
    color: var(--navy);
}
.r-asym__cell--win   .r-asym__cell-val { color: var(--pass); }
.r-asym__cell--loss  .r-asym__cell-val { color: var(--fail); }
.r-asym__cell--ratio .r-asym__cell-val { color: var(--gold); }
.r-asym__cell-sub {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 12px;
    color: var(--slate);
    line-height: 1.45;
}
.r-asym__lede {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--navy);
    margin: 0;
}
.r-asym__lede strong { color: var(--gold); font-weight: 700; }
@media (max-width: 760px) {
    .r-asym__grid { grid-template-columns: 1fr; }
}

/* (Backtest panel removed — no backtest exists; live fills are the entire sample.) */

/* ─── Early-stability threshold tracker (Gauntlet) ─── */
.threshold-tracker {
    margin: var(--s-4) 0 var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: var(--ivory);
    border: 1px solid var(--divider);
    border-radius: 4px;
}
.threshold-tracker__eyebrow {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin: 0 0 var(--s-2);
}
.threshold-tracker__body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.65;
    color: var(--navy);
    margin: 0 0 var(--s-3);
}
.threshold-tracker__body .link-inline {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    text-decoration: none;
}
.threshold-tracker__bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
    margin-bottom: var(--s-2);
}
.threshold-tracker__bar { display: flex; flex-direction: column; gap: 6px; }
.threshold-tracker__bar-head {
    display: flex;
    justify-content: space-between;
    gap: var(--s-2);
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--slate);
    flex-wrap: wrap;
}
.threshold-tracker__bar-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.threshold-tracker__bar-val { color: var(--navy); }
.threshold-tracker__bar-val strong { color: var(--navy); font-weight: 700; }
.threshold-tracker__bar-track {
    height: 8px;
    background: rgba(27,42,74,0.08);
    border-radius: 4px;
    overflow: hidden;
}
.threshold-tracker__bar-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.6s ease;
}
.threshold-tracker__status {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--slate);
    margin: var(--s-2) 0 0;
    padding: var(--s-2);
    border-top: 1px dashed var(--divider);
    line-height: 1.55;
}
.threshold-tracker__status.is-met {
    color: var(--navy);
    background: rgba(45,80,22,0.06);
    border-top: 1px solid var(--pass);
    border-radius: 0 0 3px 3px;
}
@media (max-width: 760px) {
    .threshold-tracker__bars { grid-template-columns: 1fr; }
}

/* ─── Annualized trajectory panel (Edge section) ─── */
.annual-proj {
    margin: var(--s-4) 0 var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: 4px;
}
.annual-proj__eyebrow {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin: 0 0 var(--s-3);
}
.annual-proj__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}
.annual-proj__cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--s-2) var(--s-3);
    background: var(--ivory);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
}
.annual-proj__label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
}
.annual-proj__value {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.05;
    color: var(--gold);
}
.annual-proj__sub {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--slate);
    font-style: italic;
    line-height: 1.45;
}
.annual-proj__headline {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--navy);
    margin: 0 0 var(--s-2);
    padding-top: var(--s-2);
    border-top: 1px solid var(--divider);
}
.annual-proj__headline strong { color: var(--navy); font-weight: 700; }
.annual-proj__caveats {
    margin: var(--s-2) 0 0;
    border-top: 1px dashed var(--divider);
    padding-top: var(--s-2);
}
.annual-proj__caveats summary {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    padding: 4px 0;
    list-style: revert;
    text-transform: none;
    letter-spacing: 0;
}
.annual-proj__caveats summary:hover { color: var(--gold); }
.annual-proj__caveats ul {
    margin: var(--s-2) 0 0;
    padding-left: var(--s-3);
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.6;
    color: var(--slate);
}
.annual-proj__caveats li { margin-bottom: var(--s-1); }
.annual-proj__caveats li strong { color: var(--navy); }
.annual-proj__caveats li em { color: var(--gold); font-style: italic; }
@media (max-width: 760px) {
    .annual-proj__grid { grid-template-columns: 1fr; }
    .annual-proj__value { font-size: 32px; }
}

/* =====================================================
   REBUILD SPEC v1.0 — additions
   Hero (casino) · Where Edges Exist · Authority · Why Fifteen
   Allocate · Form changes
   ===================================================== */

/* ─── Containers (Rebuild Spec §2.3) ─── */
.container          { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow   { max-width: 980px;  margin: 0 auto; padding: 0 32px; }
.container-tight    { max-width: 720px;  margin: 0 auto; padding: 0 32px; }
section.block       { padding: 120px 0 140px; }
section.block.light { padding: 96px 0 112px; }
@media (max-width: 880px) {
    .container, .container-narrow, .container-tight { padding: 0 20px; }
    section.block, section.block.light { padding: 80px 0 96px; }
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 16px;
}
.section-eyebrow.center { display: block; text-align: center; }
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 18px;
}

/* ─── §1.1 Hero (Rebuild §4.1) ─── */
.hero--casino {
    background: var(--navy);
    color: var(--ivory);
    padding: 28px 0 96px;
    position: relative;
    overflow: hidden;
    border-bottom: none;
    text-align: left;
}
.hero--casino::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(200,169,81,0.08), transparent 60%);
    pointer-events: none;
}
.hero__inner-rb { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.hero-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line-dim);
    margin-bottom: 80px;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-status .dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 10px;
    vertical-align: middle;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
    font-weight: 500;
}
.hero--casino h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(40px, 6.5vw, 84px);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--ivory);
    margin: 0 0 36px;
    max-width: 18ch;
}
.hero--casino h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero-lead {
    font-family: var(--font-sans);
    font-size: clamp(17px, 1.4vw, 19px);
    color: rgba(250,248,245,0.78);
    max-width: 62ch;
    line-height: 1.65;
    margin: 0 0 40px;
}
.hero-sub {
    font-family: var(--font-sans);
    font-size: 15px;
    color: rgba(250,248,245,0.6);
    max-width: 60ch;
    margin: 0 0 56px;
    font-style: italic;
    line-height: 1.6;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* New unified .btn family (Rebuild §4.1) */
.btn-gold, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    min-height: 52px;
    box-sizing: border-box;
}
.btn-gold  { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover  { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(200,169,81,0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold .arr, .btn-ghost .arr { transition: transform 0.25s ease; }
.btn-gold:hover .arr, .btn-ghost:hover .arr { transform: translateX(3px); }

/* ─── §1.2 Where Edges Exist (Rebuild §4.2) ─── */
.edges-section { background: var(--navy-deep); color: var(--ivory); }
.edges-section .section-inner { color: var(--ivory); }
.edges-section .eyebrow { color: var(--gold); }
.h-section {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ivory);
    margin: 0 0 28px;
    max-width: 22ch;
}
.h-section em { color: var(--gold); font-style: italic; }
.lede {
    font-family: var(--font-sans);
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.7;
    color: rgba(250,248,245,0.78);
    max-width: 70ch;
    margin: 0 0 80px;
}

.component-label {
    font-family: var(--font-sans);
    font-size: 11.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
}
.component-h {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.2;
    color: var(--ivory);
    margin: 0 0 16px;
    max-width: 32ch;
}
.component-sub {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: rgba(250,248,245,0.65);
    max-width: 66ch;
    margin: 0 0 56px;
}
.component-block-divider {
    height: 1px;
    background: var(--line-faint);
    margin: 96px 0 64px;
}

/* EV panel */
.ev-panel {
    background: var(--navy-darker);
    border: 1px solid var(--line-dim);
    padding: 56px 48px;
    margin-bottom: 24px;
}
.ev-panel-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-faint);
}
.ev-equation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 48px;
}
.ev-var {
    background: var(--navy-deep);
    border: 1px solid var(--line-faint);
    padding: 22px 24px;
    flex: 1;
    min-width: 150px;
    border-radius: 3px;
}
.ev-var.var-edge { border-color: var(--gold); background: var(--gold-soft); }
.ev-var-label {
    font-family: var(--font-sans);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 8px;
    font-weight: 600;
}
.ev-var-primary {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: 4px;
}
.ev-var.var-edge .ev-var-primary { color: var(--gold); font-size: 26px; }
.ev-var-secondary, .ev-var-tertiary {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--slate-light);
    line-height: 1.5;
}
.ev-op {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 26px;
    color: var(--gold);
    padding: 0 4px;
    flex: 0 0 auto;
}
.ev-workings {
    background: var(--navy-deep);
    border-left: 3px solid var(--gold);
    padding: 24px 28px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 2;
    color: var(--slate-light);
    overflow-x: auto;
}
.ev-workings .line { display: block; }
.ev-workings .line.final {
    color: var(--gold);
    border-top: 1px solid var(--line-dim);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 500;
}
.ev-readout {
    background: var(--gold-soft);
    border-left: 3px solid var(--gold);
    padding: 20px 24px;
    margin-bottom: 32px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ivory);
}
.ev-readout strong { color: var(--gold); font-weight: 700; }
.ev-context-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ev-context-card {
    background: var(--navy-deep);
    border: 1px solid var(--line-faint);
    padding: 20px;
    text-align: left;
}
.ev-context-label {
    font-family: var(--font-sans);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 8px;
    font-weight: 600;
}
.ev-context-value {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--ivory);
    font-weight: 500;
}
.ev-context-value .small { font-size: 12px; color: var(--slate-light); }
.ev-disclaimer {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--slate-light);
    font-style: italic;
    line-height: 1.55;
    margin: 16px 0 0;
}

/* Edge landscape table */
.edge-table-frame {
    background: var(--navy-darker);
    border: 1px solid var(--line-dim);
    padding: 40px 32px;
    margin-bottom: 24px;
    overflow-x: auto;
}
.edge-table-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line-faint);
    flex-wrap: wrap;
}
.edge-table-title-block .label {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
    font-weight: 500;
}
.edge-table-title-block .h {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    font-size: 22px;
    color: var(--ivory);
}
.edge-table-meta {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--slate-light);
    text-align: right;
}
.edge-table-meta .live-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse 2.4s ease-in-out infinite;
}
.landscape {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 13.5px;
}
.landscape th {
    text-align: left;
    padding: 14px 18px;
    color: var(--gold);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line-dim);
    white-space: nowrap;
}
.landscape td {
    padding: 18px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-faint);
    color: var(--ivory);
}
.unsized-tag {
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--slate-light);
    margin-left: 4px;
}
.kelly-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    border: 1px solid var(--slate-light);
    color: var(--slate-light);
    font-size: 10px;
    cursor: help;
    position: relative;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.kelly-help .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-darker);
    border: 1px solid var(--gold);
    color: var(--ivory);
    padding: 12px 14px;
    width: 240px;
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.kelly-help:hover .tooltip, .kelly-help:focus .tooltip { opacity: 1; }
.row-strategy {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ivory);
    font-weight: 500;
    line-height: 1.35;
}
.qualifier {
    display: block;
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: var(--slate-light);
    font-weight: 400;
    margin-top: 3px;
    font-style: italic;
}
.cell-pos     { color: var(--positive); font-weight: 500; }
.cell-neg     { color: var(--negative); font-weight: 500; }
.cell-neutral { color: var(--ivory); }
.cell-dim     { color: var(--slate-light); }
.cell-dim .ann {
    display: block;
    font-family: var(--font-sans);
    font-size: 10.5px;
    color: var(--slate-light);
    font-style: italic;
    margin-top: 2px;
}
.landscape tr.ekantik-row {
    background: linear-gradient(90deg, var(--gold-soft) 0%, rgba(200,169,81,0.04) 100%);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}
.landscape tr.ekantik-row td {
    border-bottom-color: rgba(200,169,81,0.18);
    padding-top: 22px;
    padding-bottom: 22px;
}
.landscape tr.ekantik-row td:first-child {
    border-left: 3px solid var(--gold);
}
.landscape tr.ekantik-row .row-strategy {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--gold);
}
.landscape tr.ekantik-row .qualifier {
    color: var(--gold);
    opacity: 0.7;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-style: italic;
}
.table-clarifier {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--slate-light);
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 80px;
    max-width: 70ch;
}
.table-clarifier em { color: var(--ivory); }

/* Bridge quote */
.bridge {
    background: linear-gradient(135deg, var(--navy-darker), var(--navy-deep));
    border-left: 4px solid var(--gold);
    padding: 56px 56px 56px 64px;
    margin: 0 0 96px;
    position: relative;
}
.bridge::before {
    content: "\201C";
    position: absolute;
    top: -8px;
    left: 24px;
    font-family: var(--font-serif);
    font-size: 96px;
    color: var(--gold);
    opacity: 0.18;
    line-height: 1;
}
.bridge p {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.55;
    color: var(--ivory);
    margin: 0;
    max-width: 70ch;
}
.bridge em { color: var(--gold); }

/* Two operating modes */
.modes-section { margin-top: 96px; }
.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}
.mode-card {
    background: var(--navy-darker);
    border-top: 3px solid var(--gold);
    padding: 40px 32px;
}
.mode-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    font-weight: 500;
}
.mode-name {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    color: var(--ivory);
    margin: 0 0 16px;
}
.mode-formula {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gold);
    padding: 14px 16px;
    background: var(--navy-deep);
    border-left: 2px solid var(--gold);
    margin-bottom: 18px;
}
.mode-card p {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(250,248,245,0.78);
    margin: 0;
}
.mode-card p em { color: var(--gold); font-style: italic; }
.modes-close {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.55;
    color: var(--ivory);
    max-width: 68ch;
    margin: 0 0 80px;
}
.modes-close em { color: var(--gold); }

/* Sourcing footer */
.sourcing {
    border-top: 1px solid var(--line-faint);
    padding-top: 36px;
    margin-top: 24px;
}
.sourcing p {
    font-family: var(--font-sans);
    font-size: 12.5px;
    color: var(--slate-light);
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 76ch;
}
.sourcing strong { color: var(--ivory); font-weight: 600; }

/* Mobile collapse for §1.2 */
@media (max-width: 880px) {
    .ev-panel { padding: 32px 20px; }
    .ev-equation { flex-direction: column; gap: 12px; }
    .ev-op { padding: 4px 0; }
    .ev-var { width: 100%; }
    .ev-context-grid { grid-template-columns: 1fr; }
    .modes-grid { grid-template-columns: 1fr; gap: 20px; }
    .bridge { padding: 32px 28px; }
    .edge-table-frame { padding: 24px 16px; }
    .landscape th, .landscape td { padding: 10px 8px; font-size: 12px; }
    .landscape tr.ekantik-row .row-strategy { font-size: 15px; }
}

/* ─── §2.2 Defense reframe (Rebuild §4.4) ─── */
.epigraph {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.epigraph .quote {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.35;
    color: var(--navy);
    font-style: italic;
    margin: 0 0 18px;
    font-weight: 500;
}
.epigraph .attr {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}
.defense-h {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(36px, 4.5vw, 54px);
    line-height: 1.1;
    color: var(--navy);
    margin: 0 0 24px;
    max-width: 22ch;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.defense-open {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.7;
    color: var(--slate);
    max-width: 68ch;
    margin: 0 auto 56px;
    text-align: center;
}
.defense-open strong { color: var(--navy); font-weight: 500; }

/* ─── §2.2.1 Authority Panel (Rebuild §4.5) ─── */
.authority-section { background: var(--ivory-warm); padding: 96px 0; }
.authority-h {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 12px;
    text-align: center;
}
.authority-sub {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--slate);
    margin: 0 0 56px;
    font-style: italic;
}
.authority-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 36px 32px;
    transition: all 0.3s ease;
    position: relative;
}
.auth-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 32px; height: 3px;
    background: var(--gold);
}
.auth-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
/* Authority cards: principle leads, company is byline (revised per founder) */
.auth-principle-label {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 500;
}
.auth-principle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.3;
    color: var(--navy);
    margin: 0 0 14px;
    font-weight: 500;
}
.auth-byline {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--slate);
    margin: 0 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.auth-byline strong { color: var(--navy); font-weight: 600; }
.auth-card h4 {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--navy);
    margin: 0 0 4px;
    font-weight: 500;
}
.auth-scale {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    font-weight: 500;
}
.auth-layer { margin-bottom: 18px; }
.auth-layer:last-child { margin-bottom: 0; }
.auth-layer-label {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 6px;
    font-weight: 600;
}
.auth-layer p {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--navy);
    margin: 0;
}
.auth-close {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.45;
    color: var(--navy);
    max-width: 56ch;
    margin: 0 auto;
    font-style: italic;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.auth-close em.gold { color: var(--gold); }
@media (max-width: 880px) { .authority-grid { grid-template-columns: 1fr; } }

/* ─── §1.3 Why Fifteen (Rebuild §4.7) ─── */
.why-fifteen { background: var(--white); padding: 96px 0; }
.why-fifteen-panel { max-width: 760px; margin: 0 auto; text-align: center; }
.fifteen-mark {
    font-family: var(--font-serif);
    font-size: 96px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
}
.why-fifteen-h {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(32px, 3.6vw, 44px);
    line-height: 1.12;
    color: var(--navy);
    margin: 0 0 32px;
}
.why-fifteen-h em { color: var(--gold); font-style: italic; }
.why-fifteen-body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.75;
    color: var(--slate);
    margin: 0;
}
.why-fifteen-body strong { color: var(--navy); font-weight: 500; }

/* ─── §2.1 Operator closing (Rebuild §4.3) ─── */
.operator__close {
    margin: var(--s-4) 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    color: var(--navy);
    border-top: 1px solid var(--border);
    padding-top: var(--s-3);
}

/* ─── §1.4 Allocate (Rebuild §4.8) ─── */
.path-allocate {
    background: var(--navy);
    color: var(--ivory);
    border-left: 4px solid var(--gold);
    padding: 48px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}
.path-allocate .path-num {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 28px;
    color: rgba(200,169,81,0.4);
    line-height: 1;
}
.allocate-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 14px;
    margin-bottom: 24px;
    font-weight: 500;
    align-self: flex-start;
}
.allocate-h {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1.15;
    color: var(--ivory);
    margin: 0 0 12px;
    font-weight: 500;
}
.allocate-h em { color: var(--gold); font-style: italic; }
.allocate-sub {
    font-family: var(--font-sans);
    font-size: 15px;
    color: rgba(250,248,245,0.7);
    margin: 0 0 32px;
    font-style: italic;
    line-height: 1.55;
}
.allocate-bullets {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
}
.allocate-bullets li {
    padding: 14px 0 14px 28px;
    border-bottom: 1px solid rgba(200,169,81,0.18);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    position: relative;
    color: rgba(250,248,245,0.92);
}
.allocate-bullets li:last-child { border-bottom: none; }
.allocate-bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 600;
}
.allocate-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid rgba(200,169,81,0.18);
    border-bottom: 1px solid rgba(200,169,81,0.18);
    margin-bottom: 32px;
}
.allocate-stat-label {
    font-family: var(--font-sans);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
    font-weight: 600;
}
.allocate-stat-value {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--ivory);
    font-weight: 500;
}
.path-allocate .btn-gold { align-self: flex-start; margin-top: auto; }
@media (max-width: 880px) { .allocate-stats { grid-template-columns: 1fr; gap: 18px; } }

/* ─── §2.9 Form additions ─── */
.ind-amount-min {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--slate);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    margin-left: 6px;
}
.form-select {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
    line-height: 1.4;
    background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%),
                      linear-gradient(135deg, var(--slate) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}
.form-select:focus { outline: none; border-color: var(--gold); }

/* Allocate card sub-label under each stat value */
.allocate-stat-sub {
    font-family: var(--font-sans);
    font-size: 11px;
    color: rgba(250,248,245,0.55);
    font-style: italic;
    margin-top: 4px;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

/* Edge Landscape: 'ranked ↓' indicator on the Annual R column */
.landscape th.th-sorted { position: relative; }
.landscape th.th-sorted .unsized-tag {
    display: block;
    margin-left: 0;
    margin-top: 2px;
    font-size: 10.5px;
    color: var(--gold);
    opacity: 0.8;
    letter-spacing: 0.06em;
}

/* Edge Landscape: denominator/unit hint under each table header label */
.landscape th {
    vertical-align: top;
    padding-bottom: 16px;
}
.landscape th .th-denom {
    display: block;
    margin-top: 6px;
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: var(--slate-light);
    line-height: 1.4;
    max-width: 22ch;
}

/* ─── Risk Headroom panel (Edge Live · §2.3) ─── */
.risk-headroom {
    margin: var(--s-6) 0 var(--s-3);
    padding: var(--s-4) var(--s-4) var(--s-3);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 4px 4px;
}
.risk-headroom__eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin: 0 0 var(--s-2);
}
.risk-headroom__title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 var(--s-2);
}
.risk-headroom__lede {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--slate);
    margin: 0 0 var(--s-4);
    max-width: 76ch;
}
.risk-headroom__lede em { color: var(--navy); font-style: italic; }

.risk-headroom__gauge {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}
.risk-headroom__bar { display: flex; flex-direction: column; gap: 6px; }
.risk-headroom__bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-2);
    flex-wrap: wrap;
}
.risk-headroom__bar-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
}
.risk-headroom__bar-readout {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--slate);
}
.risk-headroom__bar-readout strong { color: var(--navy); font-weight: 600; }
.risk-headroom__bar-track {
    position: relative;
    height: 24px;
    background: rgba(27,42,74,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.risk-headroom__bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    transition: width 0.6s ease;
}
.risk-headroom__bar-fill--current {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
    box-shadow: inset 0 0 0 1px rgba(200,169,81,0.5);
}
.risk-headroom__bar-headroom {
    position: absolute;
    top: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(200,169,81,0.12),
        rgba(200,169,81,0.12) 6px,
        rgba(200,169,81,0.05) 6px,
        rgba(200,169,81,0.05) 12px
    );
    border-left: 1px dashed var(--gold);
    transition: left 0.6s ease, width 0.6s ease;
}
.risk-headroom__bar-fill--kelly {
    background: linear-gradient(90deg, rgba(27,42,74,0.85), rgba(15,26,48,0.85));
    box-shadow: inset 0 0 0 1px var(--border-strong);
}
.risk-headroom__axis {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate-light);
    margin-top: 2px;
}

.risk-headroom__compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--s-2);
    margin: var(--s-3) 0;
    padding: var(--s-3);
    background: var(--ivory);
    border-radius: 3px;
}
.risk-headroom__compare-cell { display: flex; flex-direction: column; gap: 4px; }
.risk-headroom__compare-cell--target {
    padding-left: var(--s-3);
    border-left: 3px solid var(--gold);
}
.risk-headroom__compare-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate);
}
.risk-headroom__compare-val {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--navy);
    line-height: 1.5;
}
.risk-headroom__compare-val .rh-r { color: var(--gold); font-weight: 500; }
.risk-headroom__compare-val .rh-risk { color: var(--slate); }
.risk-headroom__compare-val strong { color: var(--navy); font-weight: 700; }
.risk-headroom__compare-arrow {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--gold);
    align-self: center;
}

.risk-headroom__close {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--navy);
    margin: var(--s-2) 0 0;
    padding-top: var(--s-3);
    border-top: 1px dashed var(--border);
}
.risk-headroom__close strong { color: var(--gold); font-weight: 700; }

@media (max-width: 760px) {
    .risk-headroom__compare { grid-template-columns: 1fr; }
    .risk-headroom__compare-arrow { transform: rotate(90deg); }
    .risk-headroom__compare-cell--target { padding-left: 0; border-left: none; border-top: 3px solid var(--gold); padding-top: var(--s-2); }
}

/* ─── Risk Profile panel (Edge Live · §2.3) ─── */
.risk-profile {
    margin: var(--s-4) 0 var(--s-3);
    padding: var(--s-4) var(--s-4) var(--s-3);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--slate);  /* slate top accent — defensive pairing for Risk Headroom's gold */
    border-radius: 0 0 4px 4px;
}
.risk-profile__eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--slate);
    margin: 0 0 var(--s-2);
}
.risk-profile__title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 var(--s-2);
}
.risk-profile__lede {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--slate);
    margin: 0 0 var(--s-4);
    max-width: 76ch;
}
.risk-profile__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}
.risk-profile__cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--s-2) var(--s-3);
    background: var(--ivory);
    border-left: 3px solid var(--slate);
    border-radius: 0 4px 4px 0;
}
.risk-profile__label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate);
}
.risk-profile__value {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.05;
    color: var(--navy);
}
.risk-profile__sub {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--navy);
    line-height: 1.5;
}
.risk-profile__meta {
    font-family: var(--font-sans);
    font-size: 11px;
    font-style: italic;
    color: var(--slate-light);
    line-height: 1.4;
    margin-top: 2px;
}
.risk-profile__close {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--navy);
    margin: var(--s-2) 0 0;
    padding-top: var(--s-3);
    border-top: 1px dashed var(--border);
}
.risk-profile__close strong { color: var(--navy); font-weight: 700; }

@media (max-width: 880px) {
    .risk-profile__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .risk-profile__grid { grid-template-columns: 1fr; }
}

/* Hero — tertiary 'watch the journal' link (Discord, public) */
.hero-journal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(250,248,245,0.78);
    font-family: var(--font-sans);
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 12px 4px;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
    margin-left: 8px;
}
.hero-journal-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.hero-journal-link .arr { transition: transform 0.25s ease; }
.hero-journal-link:hover .arr { transform: translateX(3px); }
@media (max-width: 640px) {
    .hero-journal-link { margin-left: 0; padding: 12px 0; }
}

/* =====================================================
   §2.6 Edge × Risk Tolerance — paradigm reframe
   Prop-firm framing + shared Risk Tier Selector +
   paired upside/downside output columns on Mode A and B
   ===================================================== */

/* Prop-firm framing block (above the modes section) */
.prop-frame {
    margin: var(--s-4) auto var(--s-6);
    max-width: 880px;
    padding: var(--s-3) var(--s-4);
    background: var(--ivory);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
}
.prop-frame__eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin: 0 0 var(--s-2);
}
.prop-frame__body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--navy);
    margin: 0;
}
.prop-frame__body em { color: var(--gold); font-style: italic; }

/* Risk Tier Selector — the central control */
.risk-tier-selector {
    margin: 0 auto var(--s-6);
    max-width: 1080px;
    padding: var(--s-4) var(--s-4);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 4px 4px;
}
.risk-tier-selector__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-3);
    flex-wrap: wrap;
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--s-3);
}
.risk-tier-selector__label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
}
.risk-tier-selector__readout {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--navy);
}
.risk-tier-selector__readout strong { color: var(--gold); font-weight: 700; }

.risk-tier-selector__chips {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}
.risk-tier-chip {
    appearance: none;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: var(--s-2) var(--s-2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    transition: all 0.2s ease;
    min-height: 88px;
}
.risk-tier-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.risk-tier-chip--active {
    background: var(--navy);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(15,26,48,0.18);
}
.risk-tier-chip--active .risk-tier-chip__name,
.risk-tier-chip--active .risk-tier-chip__pct,
.risk-tier-chip--active .risk-tier-chip__note { color: var(--ivory); }
.risk-tier-chip--active .risk-tier-chip__pct { color: var(--gold); }

.risk-tier-chip__name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.risk-tier-chip__pct {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}
.risk-tier-chip__note {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--slate);
    font-style: italic;
}

.risk-tier-selector__custom {
    display: none;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3);
    background: var(--ivory);
    border-radius: 4px;
    margin-bottom: var(--s-2);
}
.risk-tier-selector__custom.is-active { display: grid; }
.risk-tier-selector__custom-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}
.risk-tier-selector__custom input[type="range"] { width: 100%; }
.risk-tier-selector__custom-val {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--navy);
}
.risk-tier-selector__custom-val strong { color: var(--gold); font-weight: 700; }

.risk-tier-selector__note {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--slate);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 880px) {
    .risk-tier-selector__chips { grid-template-columns: 1fr 1fr; }
    .risk-tier-chip { min-height: auto; }
}
@media (max-width: 520px) {
    .risk-tier-selector__chips { grid-template-columns: 1fr; }
}

/* Derived (read-only) slider field — replaces the old rate slider */
.slider-field--derived {
    background: var(--ivory);
    border-left: 3px solid var(--slate);
    padding: var(--s-2) var(--s-3);
    border-radius: 0 4px 4px 0;
}
.slider-field--derived label {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
}
.slider-derived-tag {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 1px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}
.slider-value--derived {
    display: block;
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--gold);
    font-weight: 500;
    margin: 4px 0 6px;
}
.slider-derived-note {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-style: italic;
    color: var(--slate);
    margin: 0;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* Paired upside / downside output columns */
.mod__outputs--paired {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
}
.mod__col--downside {
    background: var(--ivory);
    border-left: 3px solid var(--slate);
    border-radius: 0 4px 4px 0;
    padding: var(--s-3);
}
.mod__col--downside .mod__col-eyebrow { color: var(--slate); }
.mod__metric-val--neg { color: var(--fail) !important; }

@media (max-width: 760px) {
    .mod__outputs--paired { grid-template-columns: 1fr; }
}

/* =====================================================
   Risk Tolerance Selector — badges, warnings, survival rails
   ===================================================== */

/* Chip badges (Recommended / Theoretical ceiling) */
.risk-tier-chip { position: relative; padding-top: 28px; }
.risk-tier-chip__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
    line-height: 1.4;
}
.risk-tier-chip__badge--rec {
    background: var(--gold);
    color: var(--navy);
    border: 1px solid var(--gold);
}
.risk-tier-chip__badge--ceiling {
    background: var(--white);
    color: var(--slate);
    border: 1px solid var(--slate);
}
.risk-tier-chip--recommended { border-color: var(--gold); }
.risk-tier-chip--ceiling { border-color: var(--slate); border-style: dashed; }
.risk-tier-chip--ceiling .risk-tier-chip__pct { color: var(--slate); }
.risk-tier-chip--ceiling.risk-tier-chip--active .risk-tier-chip__pct { color: var(--fail); }
.risk-tier-chip--active.risk-tier-chip--ceiling { border-style: solid; }

/* Risk of ruin warning — appears dynamically */
.ruin-warning {
    margin: var(--s-3) 0 0;
    padding: var(--s-3) var(--s-3) var(--s-3) var(--s-6);
    background: linear-gradient(90deg, rgba(220,38,38,0.06), rgba(220,38,38,0.02) 50%, transparent);
    border-left: 4px solid var(--fail);
    border-radius: 0 4px 4px 0;
    position: relative;
}
.ruin-warning[hidden] { display: none; }
.ruin-warning__badge {
    position: absolute;
    top: var(--s-3);
    left: -1px;
    background: var(--fail);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 4px 10px;
    border-radius: 0 2px 2px 0;
}
.ruin-warning__body {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--navy);
    margin: var(--s-3) 0 0;
}
.ruin-warning__body strong { color: var(--fail); font-weight: 700; }
.ruin-warning__body em { color: var(--slate); font-style: italic; }
.ruin-warning--severe {
    background: linear-gradient(90deg, rgba(220,38,38,0.10), rgba(220,38,38,0.04) 50%, transparent);
}

/* Survival rails — links to Sit-Out + Falsifiability sections */
.survival-rails {
    margin: var(--s-3) 0 0;
    padding: var(--s-3) var(--s-3) var(--s-2);
    background: var(--ivory);
    border-top: 1px dashed var(--border-strong);
    border-radius: 4px;
}
.survival-rails__eyebrow {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin: 0 0 var(--s-2);
}
.survival-rails__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-2);
    margin-bottom: var(--s-2);
}
.survival-rails__cell {
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    padding: var(--s-2);
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--navy);
}
.survival-rails__cell:hover {
    border-left-color: var(--gold);
    background: rgba(200,169,81,0.04);
    transform: translateY(-1px);
}
.survival-rails__icon {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--gold);
    grid-row: 1 / span 2;
    align-self: center;
}
.survival-rails__title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.survival-rails__body {
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--slate);
}
.survival-rails__close {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 12.5px;
    color: var(--slate);
    line-height: 1.6;
    margin: var(--s-2) 0 0;
    padding-top: var(--s-2);
    border-top: 1px dashed var(--border);
}

@media (max-width: 760px) {
    .survival-rails__grid { grid-template-columns: 1fr; }
}

/* ─── CFTC Rule 4.14(a)(10) top-of-page disclosure banner ─── */
.cftc-banner {
    background: var(--navy-darker);
    color: rgba(250,248,245,0.78);
    border-bottom: 1px solid var(--line-dim);
}
.cftc-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    gap: 16px;
    align-items: baseline;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.5;
}
.cftc-banner__tag {
    flex: 0 0 auto;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
}
.cftc-banner__body { flex: 1 1 auto; min-width: 240px; }
.cftc-banner__body strong { color: var(--ivory); font-weight: 600; }
@media (max-width: 760px) {
    .cftc-banner__inner { padding: 10px 20px; font-size: 11.5px; }
}

/* =====================================================
   ACC-REPOS-FINAL-V1 — Experiment repositioning
   ===================================================== */

/* Hero experiment-status strip */
.experiment-status {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dim);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.experiment-status__label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.experiment-status__items {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(250,248,245,0.78);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}
.experiment-status__items strong { color: var(--ivory); font-weight: 500; }
.experiment-status__sep { color: rgba(250,248,245,0.3); }
.experiment-status .dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); margin-right: 4px; animation: pulse 2.4s ease-in-out infinite;
}

/* Section 01 — The Method */
.method-section { background: var(--ivory); }
.method-section .h-section { color: var(--navy); }
.method-section .h-section em { color: var(--gold); }
.method-section .lede { color: var(--slate); }
.method-section .component-label { color: var(--gold); }
.method-section .component-h { color: var(--navy); font-style: italic; }
.method-pyramid {
    background: var(--white); border: 1px solid var(--border);
    border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0;
    padding: var(--s-3) var(--s-4); margin-top: var(--s-2);
}
.method-pyramid p { font-family: var(--font-sans); font-size: 15px; color: var(--navy); margin: 0 0 var(--s-2); }
.method-pyramid__list { list-style: none; padding: 0; margin: 0 0 var(--s-2); }
.method-pyramid__list li {
    font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--navy);
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.method-pyramid__list li:last-child { border-bottom: none; }
.method-pyramid__note { font-size: 14px !important; color: var(--slate) !important; font-style: italic; }

/* Trigger ladder */
.trigger-ladder {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch; gap: 8px; margin: var(--s-3) 0;
}
.trigger-step {
    background: var(--white); border: 1px solid var(--border); border-radius: 4px;
    padding: var(--s-3); display: flex; flex-direction: column; gap: 6px;
}
.trigger-step__name { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--gold); }
.trigger-step__threshold { font-family: var(--font-mono); font-size: 13px; color: var(--navy); font-weight: 500; }
.trigger-step__action { font-family: var(--font-sans); font-size: 12.5px; color: var(--slate); line-height: 1.45; flex: 1; }
.trigger-step__status {
    font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 5px 8px; border-radius: 3px; text-align: center;
    background: rgba(100,116,139,0.12); color: var(--slate);
}
.trigger-step--fired { border-color: var(--gold); }
.trigger-step--fired .trigger-step__status { background: var(--gold); color: var(--navy); }
.trigger-step--active { border-color: var(--navy); box-shadow: var(--shadow-md); }
.trigger-step--active .trigger-step__status { background: var(--navy); color: var(--ivory); animation: pulse 1.5s ease-in-out infinite; }
.trigger-step__arrow { align-self: center; color: var(--gold); font-size: 20px; }
@media (max-width: 880px) {
    .trigger-ladder { grid-template-columns: 1fr; }
    .trigger-step__arrow { transform: rotate(90deg); justify-self: center; }
}
.method-ladder__note, .method-traj__close {
    font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--slate);
    margin: var(--s-2) 0 0; max-width: 76ch;
}

/* Risk-parameter table + trajectory table */
.method-risk-table, .trajectory-table {
    width: 100%; border-collapse: collapse; margin-top: var(--s-2);
    font-family: var(--font-sans); font-size: 14px;
}
.method-risk-table th, .trajectory-table th {
    text-align: left; padding: 12px 14px; background: var(--navy); color: var(--ivory);
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.method-risk-table td, .trajectory-table td {
    padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--navy);
}
.method-risk-table .mono, .trajectory-table .mono { font-family: var(--font-mono); }
.trajectory-table-wrap { overflow-x: auto; }
.traj-row--coop td { background: var(--navy); color: var(--gold); }
.traj-row--coop td:first-child { color: var(--ivory); }
.traj-row--floor td { background: var(--slate); color: var(--ivory); }
.traj-row--real td { background: var(--ivory); color: var(--navy); }
.traj-sub { display: block; font-size: 11px; font-style: italic; opacity: 0.8; font-family: var(--font-sans); }
.traj-end { font-family: var(--font-serif) !important; font-size: 18px; font-weight: 600; }
.traj-mult { display: block; font-size: 12px; font-family: var(--font-sans); }
.hypothetical-disclosure {
    background: var(--ivory-warm); border: 1px solid var(--border); border-radius: 4px;
    padding: var(--s-3); margin: var(--s-3) 0;
}
.hypothetical-disclosure p {
    font-family: var(--font-sans); font-size: 12.5px; line-height: 1.6; color: var(--slate); margin: 0 0 var(--s-2);
}
.hypothetical-disclosure p:last-child { margin-bottom: 0; }
.hypothetical-disclosure strong { color: var(--navy); }

/* Architecture two-card layout + Falsifiability own section */
.defense__layers--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .defense__layers--two { grid-template-columns: 1fr; } }
.defense-card--gate { grid-column: 1 / -1; }
.defense-card__footer--commit { border-top: 1px solid rgba(250,248,245,0.18); padding-top: var(--s-2); margin-top: var(--s-2); color: var(--ivory) !important; font-style: normal !important; }
.defense-open__link { color: var(--gold); border-bottom: 1px solid var(--gold); text-decoration: none; }
.falsifiability-section .defense__layers { grid-template-columns: 1fr; }

/* Section 06 — Participation cards */
.participation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 880px) { .participation-grid { grid-template-columns: 1fr; } }
.participation-card { padding: var(--s-6) var(--s-4); border-radius: 4px; display: flex; flex-direction: column; }
.participation-card--witness { background: var(--ivory); border: 1px solid var(--border); }
.participation-card--reach { background: var(--navy); }
.participation-card__eyebrow {
    font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-1);
}
.participation-card__tag { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--gold); margin: 0 0 var(--s-3); }
.participation-card--witness .participation-card__tag { color: var(--navy); }
.participation-card__body { font-family: var(--font-sans); font-size: 15px; line-height: 1.65; margin: 0 0 var(--s-2); }
.participation-card--witness .participation-card__body { color: var(--navy); }
.participation-card--reach .participation-card__body { color: rgba(250,248,245,0.82); }
.participation-card__cta { margin-top: auto; padding-top: var(--s-3); }
.btn-ghost-dark {
    display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px;
    font-family: var(--font-sans); font-weight: 500; font-size: 14.5px; letter-spacing: 0.04em;
    text-transform: uppercase; text-decoration: none; border: 1px solid var(--gold);
    color: var(--gold); background: transparent; transition: all 0.25s ease;
}
.btn-ghost-dark:hover { background: var(--gold); color: var(--navy); }

/* Section 08 dashboard banner */
.evidence-dashboard-banner { text-align: center; margin: 0 0 var(--s-6); }

/* Section 09 — Reach Out form */
.reach-intro { font-family: var(--font-sans); font-size: 17px; line-height: 1.7; color: var(--slate); max-width: 70ch; margin: var(--s-2) 0 var(--s-4); }
.reach-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 640px) { .reach-form__grid { grid-template-columns: 1fr; } }
.reach-form textarea {
    width: 100%; padding: 12px 14px; font-family: var(--font-sans); font-size: 15px;
    color: var(--navy); background: var(--white); border: 1px solid var(--border);
    border-radius: 3px; resize: vertical; line-height: 1.5; box-sizing: border-box;
}
.reach-form textarea:focus { outline: none; border-color: var(--gold); }

/* =====================================================
   Public Experiment Dashboard (experiment.html)
   ===================================================== */
.dash-head { background: var(--navy); color: var(--ivory); padding: 64px 0 48px; }
.dash-head .eyebrow { color: var(--gold); }
.dash-h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px,5vw,56px); color: var(--ivory); margin: 0 0 16px; line-height: 1.05; }
.dash-lede { font-family: var(--font-sans); font-size: 17px; color: rgba(250,248,245,0.78); max-width: 70ch; margin: 0 0 24px; }
.dash-lede .link-gold { color: var(--gold); border-bottom: 1px solid var(--gold); text-decoration: none; }
.experiment-status--dash { border-top-color: rgba(200,169,81,0.25); }

.dash-block { padding: 56px 0; border-bottom: 1px solid var(--border); background: var(--white); }
.dash-block:nth-of-type(even) { background: var(--ivory); }
.dash-block .component-label { color: var(--gold); margin-bottom: 12px; }
.dash-block__sub { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--slate); max-width: 80ch; margin: 0 0 var(--s-3); }
.dash-chart { position: relative; height: 360px; width: 100%; }
@media (max-width: 640px) { .dash-chart { height: 280px; } }

.forecast-card { background: var(--ivory-warm); border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0; padding: var(--s-3) var(--s-4); }
.forecast-card p { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--navy); margin: 0 0 var(--s-2); }
.forecast-card strong { color: var(--gold); }
.forecast-card__caveat { font-size: 13px !important; color: var(--slate) !important; }
.forecast-card__caveat em { font-style: italic; }

.floor-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font-family: var(--font-sans); font-size: 13px; color: var(--navy); cursor: pointer; }
.dash-trade-table th[data-sort]:hover { color: var(--gold); }

/* =====================================================
   Admin — Discord import drop zone + preview
   ===================================================== */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border-strong);
    border-radius: 8px;
    background: var(--ivory);
    padding: 36px 24px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.drop-zone:hover, .drop-zone--over { border-color: var(--gold); background: var(--gold-soft); }
.drop-zone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone__icon { font-size: 32px; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.drop-zone__title { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--navy); margin: 0 0 4px; }
.drop-zone__sub { font-family: var(--font-sans); font-size: 13px; color: var(--slate); margin: 0; }
.drop-zone__browse { color: var(--gold); text-decoration: underline; }
.drop-zone__sub code { font-family: var(--font-mono); font-size: 12px; }
.drop-zone__file { font-size: 12px; color: var(--pass); margin: 10px 0 0; font-weight: 600; }

.preview-warn {
    background: rgba(220,38,38,0.06); border-left: 3px solid var(--fail);
    border-radius: 0 4px 4px 0; padding: 12px 16px; margin-bottom: 12px;
    font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: var(--navy);
}
.preview-warn ul { margin: 6px 0 6px 18px; padding: 0; }
.preview-warn li { color: var(--fail); margin-bottom: 3px; }
.preview-ok {
    background: rgba(45,80,22,0.06); border-left: 3px solid var(--pass);
    border-radius: 0 4px 4px 0; padding: 10px 16px; margin-bottom: 12px;
    font-family: var(--font-sans); font-size: 13px; color: var(--pass); font-weight: 600;
}

/* =====================================================
   Operator Falsifiability (Section 05 two-gate + 05.1 widget)
   ===================================================== */
.gates-status { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: var(--s-4) 0; }
@media (max-width:760px){ .gates-status { grid-template-columns: 1fr; } }
.gates-status__gate { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 0 0 4px 4px; padding: var(--s-3); }
.gates-status__label { display:block; font-family: var(--font-sans); font-size: 11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--gold); margin-bottom: 6px; }
.gates-status__value { display:block; font-family: var(--font-serif); font-size: 28px; font-weight:600; color: var(--pass); line-height:1; margin-bottom: 6px; }
.gates-status__value--fired { color: var(--fail); }
.gates-status__detail { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }
.gates-status__detail strong { color: var(--navy); }

.interp-rule { background: var(--navy); color: var(--ivory); border-left: 4px solid var(--gold); border-radius: 0 4px 4px 0; padding: var(--s-4); margin: var(--s-4) 0; }
.interp-rule__tag { display:inline-block; font-family: var(--font-sans); font-size: 11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--gold); margin-bottom: var(--s-2); }
.interp-rule__body { font-family: var(--font-serif); font-style: italic; font-size: clamp(18px,2.2vw,24px); line-height:1.45; color: var(--ivory); margin:0 0 var(--s-2); }
.interp-rule__body strong { color: var(--gold); font-style: normal; font-weight:600; }
.interp-rule__body em { color: var(--gold); }
.interp-rule__note { font-family: var(--font-sans); font-size: 13px; color: rgba(250,248,245,0.65); margin:0; }

.criteria-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-3); }
@media (max-width:880px){ .criteria-grid { grid-template-columns: 1fr; } }
.criterion-card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: var(--s-3); position: relative; }
.criterion-card__num { font-family: var(--font-serif); font-weight:600; font-size: 36px; color: var(--gold); line-height:1; }
.criterion-card__title { font-family: var(--font-serif); font-weight:600; font-size: 22px; color: var(--navy); margin: 4px 0 var(--s-2); line-height:1.15; }
.criterion-card__body { font-family: var(--font-sans); font-size: 13.5px; line-height:1.55; color: var(--slate); margin:0 0 var(--s-2); }
.criterion-card__body strong { color: var(--navy); }
.criterion-card__metric { display:flex; justify-content:space-between; align-items:baseline; gap: var(--s-2); padding: 6px 0; border-top: 1px solid var(--border); font-family: var(--font-sans); font-size: 12px; color: var(--slate); }
.criterion-card__metric strong { font-family: var(--font-mono); font-size: 16px; color: var(--navy); }
.criterion-card__threshold { font-family: var(--font-sans); font-size: 11.5px; font-style: italic; color: var(--gold); margin: var(--s-2) 0 0; }

.tier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-3); }
@media (max-width:880px){ .tier-grid { grid-template-columns: 1fr; } }
.tier-card { border: 1px solid var(--border); border-radius: 4px; padding: var(--s-3); background: var(--white); border-left: 4px solid var(--slate); }
.tier-card--t1 { border-left-color: var(--gold); }
.tier-card--t2 { border-left-color: #D9943B; }
.tier-card--t3 { border-left-color: var(--fail); }
.tier-card__badge { display:inline-block; font-family: var(--font-sans); font-size: 11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--navy); margin-bottom: var(--s-2); }
.tier-card__trigger { font-family: var(--font-sans); font-size: 13px; font-weight:600; color: var(--navy); margin:0 0 var(--s-1); }
.tier-card__response { font-family: var(--font-sans); font-size: 13px; line-height:1.55; color: var(--slate); margin:0; }
.tier-note { font-family: var(--font-sans); font-size: 12.5px; color: var(--slate); line-height:1.6; margin: var(--s-3) 0 0; max-width: 80ch; }

/* Stand-down state widget */
.standdown-section { }
.standdown-lede { font-family: var(--font-sans); font-size: 15px; line-height:1.6; color: var(--slate); max-width: 76ch; margin: var(--s-2) 0 var(--s-4); }
.standdown-widget { background: var(--navy-darker); color: var(--ivory); border: 1px solid var(--line-dim); border-radius: 6px; padding: var(--s-4); max-width: 620px; }
.standdown-widget__head { display:flex; justify-content:space-between; align-items:center; gap: var(--s-2); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line-faint); margin-bottom: var(--s-3); flex-wrap: wrap; }
.standdown-widget__title { font-family: var(--font-sans); font-size: 12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color: var(--gold); }
.standdown-widget__tier { font-family: var(--font-serif); font-size: 20px; font-weight:600; color: var(--pass); }
.standdown-widget__tier--t1 { color: var(--gold); }
.standdown-widget__tier--t2 { color: #E0A95C; }
.standdown-widget__tier--t3 { color: var(--negative); }
.standdown-widget__row { display:flex; justify-content:space-between; gap: var(--s-2); padding: 8px 0; font-family: var(--font-sans); font-size: 14px; color: rgba(250,248,245,0.7); }
.standdown-widget__row strong { font-family: var(--font-mono); color: var(--ivory); font-weight:500; }
.standdown-widget__resumption { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line-faint); }
.standdown-widget__resumption-label { font-family: var(--font-sans); font-size: 11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--gold); margin:0 0 var(--s-1); }

/* Never Lose Money block (Section 01.1) */
.nlm-rule { font-family: var(--font-serif); font-style: italic; font-size: clamp(18px,2.2vw,24px); line-height: 1.4; color: var(--navy); margin: 0 0 var(--s-3); }
.nlm-attr { font-size: 13px; font-style: normal; color: var(--gold); font-family: var(--font-sans); letter-spacing: 0.06em; }
.nlm-table { width: auto; min-width: 320px; border-collapse: collapse; margin: var(--s-3) 0; font-family: var(--font-sans); font-size: 14px; }
.nlm-table th { background: var(--navy); color: var(--ivory); text-align: left; padding: 10px 18px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.nlm-table td { padding: 9px 18px; border-bottom: 1px solid var(--border); }
.nlm-table tbody tr:last-child td { font-weight: 700; }
.nlm-table td:first-child { color: var(--fail); }
.nlm-table td:last-child { color: var(--navy); }
.nlm-table .mono { font-family: var(--font-mono); }

/* Never Lose Money — four principles grid (Section 01.1) */
.nlm-principles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin: var(--s-3) 0; }
@media (max-width:760px){ .nlm-principles { grid-template-columns: 1fr; } }
.nlm-principle { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0; padding: var(--s-2) var(--s-3); }
.nlm-principle__name { display:block; font-family: var(--font-serif); font-weight:600; font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.nlm-principle p { font-family: var(--font-sans); font-size: 13.5px; line-height:1.5; color: var(--slate); margin: 0 0 6px; }
.nlm-principle__where { font-family: var(--font-mono); font-size: 11px; color: var(--gold); }

/* ─── Doctrine alignment (ACC-DOCTRINE-ALIGN-V1) ─── */
.hero-doctrine-link { font-family: var(--font-sans); font-size: 13px; margin-top: 14px; opacity: .82; }
.hero-doctrine-link a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(200,169,81,.4); }
.hero-doctrine-link a:hover { border-bottom-color: var(--gold); }

.hero-bridge { background: var(--navy-deep); padding: 18px 0; border-bottom: 1px solid rgba(200,169,81,.18); }
.hero-bridge__text { font-family: var(--font-sans); font-style: italic; font-size: 14px; line-height: 1.6; color: var(--slate-light); margin: 0; }
.hero-bridge__text a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(200,169,81,.4); font-style: normal; }
.hero-bridge__text a:hover { border-bottom-color: var(--gold); }

.doctrine-anchor { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--slate); background: rgba(200,169,81,.06); border-left: 3px solid var(--gold); padding: 12px 16px; margin: 0 0 16px; border-radius: 0 6px 6px 0; }
.doctrine-anchor a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(27,42,74,.3); }
.doctrine-anchor a:hover { border-bottom-color: var(--navy); }

.traj-doublings { font-weight: 600; color: var(--navy); white-space: nowrap; }

.doctrine-echo { text-align: center; }
.doctrine-echo__quote { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; font-style: italic; color: var(--navy); line-height: 1.2; margin: .4rem auto 1rem; max-width: 24ch; border: 0; }
.doctrine-echo__body { font-family: var(--font-sans); font-size: 15px; line-height: 1.65; color: var(--slate); max-width: 60ch; margin: 0 auto 1.25rem; }
.doctrine-echo__links { font-family: var(--font-sans); font-size: 14px; margin: 0; }
.doctrine-echo__links a { color: var(--gold); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(200,169,81,.4); }
.doctrine-echo__links a:hover { border-bottom-color: var(--gold); }

/* ─── Live-follow invite + Discord delay caveat ─── */
.ladder-live-note { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--slate); margin: 14px 0 0; padding: 12px 16px; background: rgba(200,169,81,.06); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; }
.ladder-live-note a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(27,42,74,.3); }
.ladder-live-note a:hover { border-bottom-color: var(--navy); }
.participation-card__caveat { font-size: 13px; opacity: .85; }

/* ─── Dashboard Discord CTAs (experiment.html) ─── */
.dash-head__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.dash-head__cta-note { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.5; color: var(--slate); max-width: 52ch; }
.dash-follow { text-align: center; background: var(--navy-deep); }
.dash-follow__h { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ivory); margin: 0 0 .5rem; }
.dash-follow__sub { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: var(--slate-light); max-width: 56ch; margin: 0 auto 1.5rem; }

/* ─── Trade-log Note column (dashboard) ─── */
.trade-note { font-family: var(--font-sans); font-size: 12px; line-height: 1.45; color: var(--slate); max-width: 280px; }
.trade-tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: var(--navy); background: rgba(200,169,81,.18); border: 1px solid rgba(200,169,81,.5); border-radius: 4px; padding: 1px 5px; }
.trade-tag--breach { color: #fff; background: var(--fail); border-color: var(--fail); }

/* ─── Criterion card auto/manual tracking badge (§05) ─── */
.criterion-card__track { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 2px 7px; margin: 0 0 10px; }
.criterion-card__track--auto { color: var(--pass); background: rgba(45,80,22,.1); border: 1px solid rgba(45,80,22,.35); }
.criterion-card__track--manual { color: var(--slate); background: rgba(100,116,139,.1); border: 1px solid rgba(100,116,139,.3); }

/* ─── Size-neutral note on the Edge Gate strip ─── */
.gates-status__note { font-size: 10px; opacity: .7; font-style: italic; }

/* ─── Convexity Experiment (convexity.html) ─── */
.convex-why { background: var(--ivory); }
.convex-hero-figure { margin: 1.5rem 0; }
.convex-hero-figure svg { width: 100%; height: auto; max-width: 760px; display: block; margin: 0 auto; border-radius: 8px; }
.convex-hero-figure figcaption { font-family: var(--font-sans); font-size: 12px; color: var(--slate); text-align: center; margin-top: .5rem; max-width: 64ch; margin-left: auto; margin-right: auto; }

.convex-twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 1.5rem; }
.convex-callout { padding: 18px 20px; border-radius: 10px; }
.convex-callout h4 { font-family: var(--font-serif); font-size: 1.15rem; margin: 0 0 .5rem; color: var(--navy); }
.convex-callout p { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--slate); margin: 0; }
.convex-callout--why  { background: rgba(200,169,81,.08); border-left: 3px solid var(--gold); }
.convex-callout--fail { background: rgba(220,38,38,.05);  border-left: 3px solid var(--fail); }

.convex-mechanism { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; background: var(--navy-deep); color: var(--ivory); padding: 16px 20px; border-radius: 8px; overflow-x: auto; margin: 1rem 0 1.25rem; }
.convex-rules { padding-left: 1.4rem; margin: 0 0 1rem; }
.convex-rules li { font-family: var(--font-sans); font-size: 14px; line-height: 1.65; color: var(--navy-deep); margin-bottom: .65rem; }

.convex-badge { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); background: rgba(200,169,81,.12); border: 1px solid rgba(200,169,81,.4); border-radius: 4px; padding: 2px 7px; margin-left: 6px; }
.convex-badge--prelim { color: var(--slate); background: rgba(100,116,139,.1); border-color: rgba(100,116,139,.3); }

.convex-buffer-widget { background: #fff; border: 1px solid #E5E0D0; border-radius: 10px; padding: 18px 20px; margin: 1rem 0 1.25rem; }
.convex-buffer-widget__row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-family: var(--font-sans); font-size: 13.5px; color: var(--slate); }
.convex-buffer-widget__lbl { font-weight: 500; }
.convex-buffer-widget__val { font-family: var(--font-mono); color: var(--navy); font-weight: 600; }
.convex-buffer-widget__bar { background: #F0EBDA; border-radius: 999px; height: 8px; margin: 8px 0; overflow: hidden; }
.convex-buffer-widget__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #E2C26A); transition: width .25s ease; }

.convex-revert-log { background: #fff; border: 1px solid #E5E0D0; border-radius: 10px; padding: 18px 20px; margin: 1rem 0 1.25rem; }
.convex-revert-log p, .convex-revert-log li { font-family: var(--font-sans); font-size: 13.5px; color: var(--slate); }

/* ─── Convexity §01.2 four-rule card grid (below the ladder SVG) ─── */
.convex-rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.25rem 0; }
.convex-rule-card { padding: 14px 16px; border-radius: 8px; }
.convex-rule-card__num { display: block; font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.convex-rule-card p { font-family: var(--font-sans); font-size: 13px; line-height: 1.55; color: var(--slate); margin: 0; }
.convex-rule-card--neutral { background: #EFEFEF; border-left: 3px solid #94A3B8; }
.convex-rule-card--ok      { background: #DCEFE5; border-left: 3px solid #0F6E56; }
.convex-rule-card--info    { background: #D6E4F0; border-left: 3px solid #185FA5; }
.convex-rule-card--warn    { background: #F8E0E0; border-left: 3px solid #DC2626; }

/* ─── The Compounding Ladder · aspirational equity arc (index.html) ─── */
.compounding-ladder-section { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); color: var(--ivory); padding: 4rem 0; }
.compounding-ladder-section .eyebrow { color: var(--gold); }
.compounding-ladder-section .h-section { color: var(--ivory); }
.compounding-ladder-section .h-section em { color: var(--gold); font-style: italic; }
.compounding-ladder-section .lede { color: var(--slate-light); max-width: 78ch; }
.cl-diamond { color: var(--gold); margin-right: 4px; }

.cl-aspirational-note { background: rgba(220,38,38,.08); border-left: 3px solid #DC2626; border-radius: 0 6px 6px 0; padding: 14px 18px; margin: 1.25rem 0 1.5rem; font-family: var(--font-sans); font-size: 13.5px; line-height: 1.55; color: var(--ivory); }
.cl-aspirational-note a { color: var(--gold); text-decoration: none; }

.eq-legend { display: flex; flex-wrap: wrap; gap: 18px 22px; font-family: var(--font-sans); font-size: 12px; color: var(--slate-light); margin: 1rem 0 1.25rem; }
.eq-legend__item { display: inline-flex; align-items: center; gap: 8px; }
.eq-legend__swatch { display: inline-block; width: 22px; height: 3px; background: #C8A951; border-radius: 1px; }
.eq-legend__swatch--dashed { background: repeating-linear-gradient(90deg, #DC2626 0 6px, transparent 6px 10px); }
.eq-legend__swatch--dot { width: 10px; height: 10px; border-radius: 50%; background: #C8A951; border: 2px solid #1B2A4A; }

.eq-svg { width: 100%; height: auto; background: rgba(15,26,48,.45); border-radius: 10px; padding: 14px; box-sizing: border-box; }

.eq-callout { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 1.5rem 0 1.5rem; }
.eq-callout__item { background: rgba(250,248,245,.06); border: 1px solid rgba(200,169,81,.25); border-radius: 8px; padding: 14px 16px; }
.eq-callout__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 .35rem; }
.eq-callout__value { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--ivory); margin: 0; line-height: 1.2; }
.eq-callout__value span { display: block; font-family: var(--font-sans); font-size: 11.5px; font-weight: 400; color: var(--slate-light); margin-top: .25rem; line-height: 1.4; }

.cl-kills { background: rgba(220,38,38,.06); border: 1px solid rgba(220,38,38,.25); border-radius: 10px; padding: 20px 22px; margin: 1.5rem 0; }
.cl-kills__head { text-align: center; margin-bottom: 1rem; }
.cl-kills__h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #DC2626; font-weight: 700; margin: 0 0 .4rem; }
.cl-kills__sub { font-family: var(--font-sans); font-size: 12.5px; color: var(--slate-light); font-style: italic; margin: 0 auto; max-width: 70ch; }
.cl-kills__chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cl-chip { background: rgba(250,248,245,.04); border: 1px solid rgba(220,38,38,.3); border-radius: 6px; padding: 10px 12px; }
.cl-chip__num { display: inline-block; background: rgba(220,38,38,.18); color: #DC2626; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 3px; margin-right: 6px; }
.cl-chip__label { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--ivory); }
.cl-chip__hint { display: block; font-family: var(--font-sans); font-size: 11px; color: var(--slate-light); margin-top: 4px; line-height: 1.4; }

.cl-explainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1.75rem 0 1.25rem; }
.cl-explainer-card { background: rgba(250,248,245,.06); border: 1px solid rgba(200,169,81,.25); border-radius: 8px; padding: 18px 20px; }
.cl-explainer-card h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--ivory); margin: 0 0 .5rem; }
.cl-explainer-card p { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--slate-light); margin: 0; }
.cl-explainer-card p em { color: var(--ivory); font-style: italic; }
.cl-explainer-card p strong { color: var(--gold); }

.cl-compliance { font-family: var(--font-sans); font-size: 12.5px; color: var(--slate-light); line-height: 1.65; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(250,248,245,.1); max-width: 90ch; }

/* ─── Capital architecture (§01.1.1) ─── */
.capital-arch { display: grid; grid-template-columns: minmax(280px, 1fr) 1.4fr; gap: 28px; align-items: start; margin: 1.5rem 0 1rem; }
.capital-arch__figure { margin: 0; }
.capital-arch__figure svg { width: 100%; height: auto; max-width: 460px; border-radius: 8px; box-shadow: 0 4px 18px rgba(27,42,74,.08); }
.capital-arch__h { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); margin: 0 0 .85rem; }
.capital-arch__list { margin: 0; }
.capital-arch__list dt { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--navy); margin: .65rem 0 .25rem; display: flex; align-items: center; gap: 8px; }
.capital-arch__list dd { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--slate); margin: 0; }
.capital-arch__tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; }
.capital-arch__tag--top  { color: #fff; background: #94A3B8; }
.capital-arch__tag--mid  { color: var(--navy); background: var(--gold); }
.capital-arch__tag--base { color: var(--gold); background: var(--navy); }

.capital-arch__suitability { background: rgba(220,38,38,.06); border-left: 3px solid #DC2626; border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 1.5rem 0 .5rem; }
.suitability__h { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #DC2626; font-weight: 700; margin: 0 0 .5rem; }
.capital-arch__suitability p:last-child { font-family: var(--font-sans); font-size: 14px; line-height: 1.65; color: var(--navy-deep); margin: 0; }
.capital-arch__suitability strong { color: var(--navy); }

@media (max-width: 720px) { .capital-arch { grid-template-columns: 1fr; } }

/* ─── Dashboard timeframe selector + KPI grid ─── */
.dash-tf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: .5rem 0 .85rem; }
.dash-tf-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-right: 4px; }
.dash-tf-chip { background: #fff; border: 1px solid #E5E0D0; color: var(--navy); font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.dash-tf-chip:hover { border-color: var(--gold); }
.dash-tf-chip--active { background: var(--navy); color: var(--gold); border-color: var(--navy); font-weight: 700; }
.dash-tf-window { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); font-style: italic; }

.dash-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 1rem 0 .5rem; }
.dash-kpi-card { background: #fff; border: 1px solid #E5E0D0; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.dash-kpi-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.dash-kpi-value { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.dash-kpi-value--pos { color: var(--pass); }
.dash-kpi-value--neg { color: var(--fail); }
.dash-kpi-sub { font-family: var(--font-sans); font-size: 11.5px; color: var(--slate); line-height: 1.4; }
