/* ══════════════════════════════════════════════════════════
   Socratica Symposium W26 — Shared Brand Styles
   Single source of truth for fonts, colors, variables,
   resets, and reusable brand components.
   ══════════════════════════════════════════════════════════ */

/* ── Socratica Brand Fonts ── */
@font-face { font-family: 'FormaDJRDeck'; src: url('fonts/FormaDJRDeck-Regular.CHPQZGu2.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'FormaDJRDeck'; src: url('fonts/FormaDJRDeck-Medium.k7tqA_zW.woff2') format('woff2'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'FormaDJRDeck'; src: url('fonts/FormaDJRDeck-Bold.CFd5y4I-.woff2') format('woff2'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'FormaDJRDeck'; src: url('fonts/FormaDJRDeck-Italic.D0tUFZRf.woff2') format('woff2'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Semack'; src: url('fonts/Semack-Regular.Bba1uX0b.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'TiemposHeadline'; src: url('fonts/tiempos-headline-light.OnYOKLR3.woff2') format('woff2'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'TiemposHeadline'; src: url('fonts/tiempos-headline-light-italic.CoIjvFPh.woff2') format('woff2'); font-weight: 300; font-style: italic; }

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Main Palette */
    --bg: #f1eee9;
    --bg-paper: #dfdfdf;
    --bg-cream: #fffcf3;
    --mahogany: #3e1212;
    --black: #000000;
    --ochre: #885900;
    --warm-gray: #7e7e7e;
    --soft-gray: #dfdfdf;
    --eggshell: #f1eee9;
    --dark-burgundy: #5d3232;

    /* Gradient Palette */
    --blush: #ffac90;
    --lilac: #d4c6ff;
    --soft-blue: #abe0ff;
    --chill-blue: #649aea;
    --energetic-blue: #2475ff;
    --pale-sun: #ffda94;
    --sky-blue: #4fade4;
    --tangerine: #f88944;
    --marigold: #de9200;
    --happy-yellow: #ffc446;
    --bright-orange: #ff6d24;

    /* Semantic */
    --text: #000000;
    --text-secondary: #3e1212;
    --text-dim: #7e7e7e;
    --text-warm-white: #f5f1e2;
    --accent-dark: #442d01;
    --gold: #e8b249;
    --warning: #da9c01;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'FormaDJRDeck', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── SVG Background Effects (Ethereal Focus — Principle 02) ── */
.svg-bg-effects {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Paper texture overlay (Textural Balance — Principle 01) */
.paper-texture {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: multiply;
}

/* ── Landing ── */
#landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

/* Decorative tangerine accent rectangles (per brand pattern) */
.accent-rect {
    position: absolute;
    background: var(--tangerine);
    opacity: 0.6;
    border-radius: 1px;
}

#landing .accent-rect:nth-child(1) { width: 24px; height: 22px; top: 15%; left: 12%; transform: rotate(12deg); }
#landing .accent-rect:nth-child(2) { width: 51px; height: 37px; top: 72%; right: 8%; transform: rotate(-8deg); }
#landing .accent-rect:nth-child(3) { width: 32px; height: 28px; bottom: 20%; left: 25%; transform: rotate(24deg); }

#landing .top-label {
    font-family: 'Semack', cursive;
    font-size: 14px;
    color: var(--ochre);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

#landing h1 {
    font-family: 'FormaDJRDeck', sans-serif;
    font-size: clamp(36px, 10vw, 64px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--mahogany);
    margin-bottom: 12px;
}

#landing h1 em {
    font-family: 'TiemposHeadline', serif;
    font-weight: 300;
    font-style: italic;
    color: var(--tangerine);
}

#landing .subtitle {
    font-family: 'FormaDJRDeck', sans-serif;
    font-size: 18px;
    color: var(--warm-gray);
    margin-bottom: 12px;
    font-weight: 400;
}

#landing .invitation-text {
    font-family: 'Semack', cursive;
    font-size: 15px;
    color: var(--accent-dark);
    margin-bottom: 40px;
    max-width: 360px;
    line-height: 1.5;
}

/* Ochre button (brand-matched CTA) */
.ochre-btn {
    background: linear-gradient(135deg, var(--ochre) 0%, #e29464 50%, var(--marigold) 100%);
    border: 1.5px solid var(--dark-burgundy);
    color: #ffffff;
    padding: 15px 50px;
    font-size: 27px;
    font-family: 'FormaDJRDeck', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.54px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(136, 89, 0, 0.3);
    line-height: 28px;
}
.ochre-btn:hover {
    box-shadow: 0 4px 16px rgba(136, 89, 0, 0.4);
    transform: translateY(-1px);
}
.ochre-btn:active {
    background: #1d1705;
    transform: translateY(0);
}

/* White button (secondary CTA — brand-matched) */
.white-btn {
    background: var(--bg-cream);
    border: 1.5px solid var(--dark-burgundy);
    color: var(--mahogany);
    padding: 15px 24px;
    font-size: 18px;
    font-family: 'FormaDJRDeck', sans-serif;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(136, 89, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.white-btn:hover {
    box-shadow: 0 4px 12px rgba(62, 41, 0, 0.2);
    transform: translateY(-1px);
}
.white-btn:active {
    background: #1d1705;
    color: var(--bg-cream);
}

/* ── Paper Section (recurring container per brand) ── */
.paper-section {
    background: var(--bg-paper);
    position: relative;
    overflow: hidden;
}

/* Grid lines (notebook/sketchbook aesthetic — brand pattern) */
.paper-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent calc(100% - 1px),
            rgba(0,0,0,0.04) calc(100% - 1px),
            rgba(0,0,0,0.04) 100%
        );
    background-size: 100% 32px;
    pointer-events: none;
}

/* Section border lines (brand pattern) */
.section-border {
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
}
.section-border::before,
.section-border::after {
    content: '';
    position: absolute;
    background: rgba(0,0,0,0.06);
}
.section-border::before {
    top: 0; bottom: 0; left: 24px; width: 1px;
}
.section-border::after {
    top: 0; bottom: 0; right: 24px; width: 1px;
}

/* ── Card select ── */
#card-select {
    display: none;
    min-height: 100vh;
    padding: 80px 24px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}
#card-select h2 {
    font-family: 'Semack', cursive;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--mahogany);
}
#card-select .hint {
    color: var(--warm-gray);
    font-size: 14px;
    margin-bottom: 28px;
}
#card-input {
    background: var(--bg-cream);
    border: 1.5px solid var(--dark-burgundy);
    color: var(--mahogany);
    padding: 16px 20px;
    font-size: 22px;
    font-family: 'FormaDJRDeck', sans-serif;
    font-weight: 500;
    border-radius: 3px;
    width: 100%;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(136, 89, 0, 0.1);
}
#card-input::placeholder { color: var(--soft-gray); letter-spacing: 1px; font-size: 14px; font-weight: 400; }
#card-input:focus { outline: none; border-color: var(--tangerine); box-shadow: 0 0 0 3px rgba(248, 137, 68, 0.2); }

.random-btn {
    background: none;
    border: 1.5px solid var(--dark-burgundy);
    color: var(--mahogany);
    padding: 10px 24px;
    font-size: 14px;
    font-family: 'FormaDJRDeck', sans-serif;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(136, 89, 0, 0.1);
}
.random-btn:hover { border-color: var(--tangerine); color: var(--tangerine); transform: translateY(-1px); }

.go-btn {
    display: block;
    margin: 24px auto 0;
}

/* ── Journey ── */
#journey {
    display: none;
    padding-bottom: 80px;
}

.journey-header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

/* Radial glow ellipse behind big number (brand pattern) */
.journey-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 218, 148, 0.35) 0%, rgba(255, 171, 144, 0.15) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
}

.journey-header .big-number {
    font-family: 'FormaDJRDeck', sans-serif;
    font-size: clamp(80px, 22vw, 180px);
    font-weight: 700;
    line-height: 1;
    color: var(--tangerine);
    position: relative;
    z-index: 1;
}

.journey-header .big-label {
    font-family: 'TiemposHeadline', serif;
    font-size: clamp(18px, 5vw, 32px);
    font-weight: 300;
    font-style: italic;
    color: var(--mahogany);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.journey-header .archetype {
    margin-top: 36px;
    padding: 10px 28px;
    background: var(--bg-cream);
    border: 1.5px solid var(--dark-burgundy);
    border-radius: 3px;
    color: var(--ochre);
    font-family: 'Semack', cursive;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(136, 89, 0, 0.12);
    position: relative;
    z-index: 1;
}

.journey-header .dear-guest {
    font-family: 'Semack', cursive;
    font-size: 13px;
    color: var(--accent-dark);
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

/* ── Tap cards ── */
.tap-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.tap-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Paper section variant for every 3rd card */
.tap-card.paper-variant {
    background: var(--bg-paper);
    margin-left: calc(50% - 300px);
    margin-right: calc(50% - 300px);
    max-width: 600px;
    padding: 48px 44px;
    position: relative;
}
.tap-card.paper-variant::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent calc(100% - 1px),
            rgba(0,0,0,0.03) calc(100% - 1px),
            rgba(0,0,0,0.03) 100%
        );
    background-size: 100% 28px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .tap-card.paper-variant {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        padding: 48px 28px;
    }
}

.tap-time {
    font-family: 'FormaDJRDeck', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--warm-gray);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.tap-number {
    font-size: 11px;
    color: var(--soft-gray);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.tap-booth {
    font-family: 'FormaDJRDeck', sans-serif;
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 500;
    color: var(--mahogany);
    margin-bottom: 10px;
    line-height: 1.15;
}

.tap-category {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    border: 1px solid;
}

.tap-floor {
    font-family: 'Semack', cursive;
    font-size: 13px;
    color: var(--warm-gray);
    margin-bottom: 18px;
}

.tap-insight {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.6;
    font-weight: 400;
}
.tap-insight strong {
    color: var(--mahogany);
    font-weight: 500;
}

/* Small tangerine accent mark on tap cards */
.tap-accent {
    width: 24px;
    height: 4px;
    background: var(--tangerine);
    opacity: 0.5;
    margin-bottom: 16px;
    border-radius: 1px;
}

/* ── Walk transitions ── */
.walk-transition {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 28px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.walk-transition.visible { opacity: 1; }

.walk-line {
    width: 1.5px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--soft-gray), transparent);
    margin: 0 auto;
}

.walk-text {
    font-family: 'TiemposHeadline', serif;
    font-size: 13px;
    font-weight: 300;
    font-style: italic;
    color: var(--warm-gray);
    margin-top: 8px;
}

/* ── Stats finale ── */
.stats-finale {
    max-width: 560px;
    margin: 0 auto;
    padding: 80px 28px;
    text-align: center;
}

.stats-finale h2 {
    font-family: 'Semack', cursive;
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 400;
    margin-bottom: 36px;
    color: var(--mahogany);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.stat-box {
    padding: 24px 16px;
    background: var(--bg-cream);
    border: 1px solid var(--dark-burgundy);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(136, 89, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Tiny radial glow on stat boxes */
.stat-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 218, 148, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.stat-box .stat-num {
    font-family: 'FormaDJRDeck', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--tangerine);
    line-height: 1;
    position: relative;
}

.stat-box .stat-label {
    font-size: 13px;
    color: var(--warm-gray);
    margin-top: 6px;
    font-weight: 400;
}

.cohort-card {
    padding: 20px 24px;
    background: var(--bg-paper);
    border-left: 3px solid var(--tangerine);
    border-radius: 0 3px 3px 0;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--mahogany);
    line-height: 1.6;
    text-align: left;
    position: relative;
}
/* Grid lines on cohort card */
.cohort-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(0,0,0,0.025) 27px, rgba(0,0,0,0.025) 28px);
    pointer-events: none;
}
.cohort-card strong {
    color: var(--tangerine);
    font-weight: 700;
}

.cohort-card.blue {
    border-left-color: var(--chill-blue);
}
.cohort-card.blue strong {
    color: var(--energetic-blue);
}

/* ── Footer / sign-off (brand-matched) ── */
.share-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.share-section .sign-off {
    font-family: 'Semack', cursive;
    color: var(--accent-dark);
    font-size: 13px;
    margin-bottom: 6px;
}

.share-section .brand-name {
    font-family: 'TiemposHeadline', serif;
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 300;
    font-style: italic;
    color: var(--mahogany);
    margin-bottom: 8px;
}

.share-section .event-tag {
    font-family: 'FormaDJRDeck', sans-serif;
    color: var(--warm-gray);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ── Loading ── */
#loading {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px;
}
#loading .spinner {
    width: 36px; height: 36px;
    border: 2px solid var(--soft-gray);
    border-top-color: var(--tangerine);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}
#loading p {
    font-family: 'TiemposHeadline', serif;
    font-weight: 300;
    font-style: italic;
    color: var(--warm-gray);
    font-size: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Warning badge (brand pattern) ── */
.warning-badge {
    display: inline-block;
    font-family: 'Semack', cursive;
    font-size: 11px;
    color: var(--warning);
    margin-top: 16px;
    letter-spacing: 0.5px;
}
.warning-badge .risk-text {
    color: var(--accent-dark);
}

/* ── Star decoration ── */
.star-deco {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

/* ── Mascot easter egg ── */
.mascot-peek {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.3s ease;
}
.mascot-peek:hover {
    transform: scale(1.1) rotate(-5deg);
    pointer-events: auto;
}
.mascot-peek img {
    width: 48px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(248, 137, 68, 0.3));
}

/* ── Emblem badge ── */
.emblem-badge {
    width: clamp(120px, 30vw, 200px);
    height: auto;
    border-radius: 50%;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(255, 218, 148, 0.3));
}

/* ── Mascot in journey ── */
.journey-mascot {
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px) rotate(-5deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.journey-mascot.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}
.journey-mascot img {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(248, 137, 68, 0.25));
}
.journey-mascot .mascot-text {
    font-family: 'Semack', cursive;
    font-size: 11px;
    color: var(--ochre);
    margin-top: 6px;
}


/* ── Page-specific overrides for story stream dashboard ── */
body {
height: 100vh;
overflow: hidden;
display: grid;
grid-template-columns: 1fr 340px;
grid-template-rows: auto 1fr;
}

/* ── Header ── */
header {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 24px;
background: var(--bg-cream);
border-bottom: 1px solid var(--soft-gray);
}

header h1 {
font-family: 'TiemposHeadline', serif;
font-size: 20px;
font-weight: 300;
font-style: italic;
color: var(--tangerine);
letter-spacing: 1px;
}

header h1 span {
font-family: 'FormaDJRDeck', sans-serif;
font-style: normal;
color: var(--warm-gray);
font-size: 14px;
margin-left: 8px;
}

.sim-controls {
display: flex;
align-items: center;
gap: 12px;
}

.sim-controls label {
font-size: 11px;
color: var(--warm-gray);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.sim-controls select, .sim-controls button {
background: var(--bg);
border: 1px solid var(--soft-gray);
color: var(--mahogany);
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
padding: 4px 10px;
border-radius: 3px;
cursor: pointer;
}

.sim-controls button:hover {
background: var(--tangerine);
color: #fff;
border-color: var(--tangerine);
}

.sim-info {
display: flex;
gap: 20px;
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
}

.sim-info span { color: var(--warm-gray); }
.sim-info .value { color: var(--tangerine); font-weight: 500; }

/* ── Story stream ── */
#story-stream {
overflow-y: auto;
padding: 20px 28px;
display: flex;
flex-direction: column;
gap: 8px;
}

/* ── Story card base ── */
.story-card {
padding: 14px 18px;
border-radius: 3px;
animation: story-in 0.4s ease-out;
position: relative;
}

@keyframes story-in {
from { opacity: 0; transform: translateY(-15px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}

.story-card .story-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}

.story-card .story-seq {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
color: var(--warm-gray);
opacity: 0.6;
}

.story-card .story-time {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
color: var(--warm-gray);
opacity: 0.6;
}

.story-card .story-type {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 1.5px;
font-weight: 600;
margin-bottom: 4px;
}

.story-card .story-headline {
font-size: 16px;
font-weight: 700;
line-height: 1.3;
margin-bottom: 4px;
color: var(--mahogany);
}

.story-card .story-body {
font-size: 13px;
line-height: 1.5;
opacity: 0.7;
color: var(--dark-burgundy);
}

.story-card .story-user {
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
color: var(--warm-gray);
margin-top: 6px;
}

/* ── Story styles (Socratica light palette) ── */

/* BREAKING NEWS */
.story-card.style-breaking {
background: linear-gradient(135deg, rgba(255, 109, 36, 0.12), rgba(255, 109, 36, 0.05));
border: 1px solid rgba(255, 109, 36, 0.3);
border-left: 4px solid var(--bright-orange);
}
.story-card.style-breaking .story-type { color: var(--bright-orange); }
.story-card.style-breaking .story-headline {
font-family: 'TiemposHeadline', serif;
color: var(--mahogany);
font-size: 18px;
}

/* DISPATCH */
.story-card.style-dispatch {
background: rgba(248, 137, 68, 0.08);
border: 1px solid rgba(248, 137, 68, 0.2);
border-left: 4px solid var(--tangerine);
}
.story-card.style-dispatch .story-type { color: var(--tangerine); }
.story-card.style-dispatch .story-headline { color: var(--mahogany); }

/* MILESTONE */
.story-card.style-milestone {
background: linear-gradient(135deg, rgba(222, 146, 0, 0.1), rgba(255, 196, 70, 0.06));
border: 1px solid rgba(222, 146, 0, 0.2);
border-left: 4px solid var(--marigold);
}
.story-card.style-milestone .story-type { color: var(--marigold); }
.story-card.style-milestone .story-headline {
font-family: 'TiemposHeadline', serif;
color: var(--ochre);
}

/* TICKER */
.story-card.style-ticker {
background: rgba(0, 0, 0, 0.02);
border: 1px solid rgba(0, 0, 0, 0.06);
border-left: 3px solid var(--soft-gray);
padding: 8px 14px;
}
.story-card.style-ticker .story-type { color: var(--warm-gray); }
.story-card.style-ticker .story-headline {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
color: var(--dark-burgundy);
font-weight: 400;
}
.story-card.style-ticker .story-body { display: none; }

/* FEATURE */
.story-card.style-feature {
background: linear-gradient(135deg, rgba(212, 198, 255, 0.15), rgba(171, 224, 255, 0.1));
border: 1px solid rgba(212, 198, 255, 0.3);
border-left: 4px solid var(--lilac);
}
.story-card.style-feature .story-type { color: var(--chill-blue); }
.story-card.style-feature .story-headline {
font-family: 'TiemposHeadline', serif;
font-style: italic;
color: var(--mahogany);
}

/* WHISPER */
.story-card.style-whisper {
background: rgba(0, 0, 0, 0.015);
border: 1px solid rgba(0, 0, 0, 0.04);
border-left: 2px solid var(--soft-gray);
padding: 10px 18px;
}
.story-card.style-whisper .story-type { display: none; }
.story-card.style-whisper .story-headline {
font-family: 'TiemposHeadline', serif;
font-style: italic;
font-size: 14px;
color: var(--warm-gray);
font-weight: 300;
}
.story-card.style-whisper .story-body { display: none; }

/* ── Sidebar ── */
#sidebar {
background: var(--bg-cream);
border-left: 1px solid var(--soft-gray);
padding: 20px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 20px;
}

.stat-card {
background: var(--bg);
border: 1px solid var(--soft-gray);
border-radius: 3px;
padding: 16px;
}

.stat-card h3 {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--warm-gray);
margin-bottom: 12px;
font-family: 'FormaDJRDeck', sans-serif;
}

.stat-big {
font-size: 32px;
font-weight: 700;
color: var(--tangerine);
line-height: 1;
}

.stat-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 0;
font-size: 12px;
}

.stat-row .label { color: var(--dark-burgundy); }
.stat-row .val {
font-family: 'JetBrains Mono', monospace;
color: var(--tangerine);
font-weight: 500;
}

/* Rule match counts */
.rule-bar {
display: flex;
align-items: center;
gap: 6px;
padding: 3px 0;
font-size: 11px;
}

.rule-bar .rule-label {
flex: 1;
color: var(--dark-burgundy);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.rule-bar .rule-count {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
color: var(--warm-gray);
min-width: 24px;
text-align: right;
}

.rule-bar .rule-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}