:root {
    --primary: #f7931a;
    --primary-glow: rgba(247, 147, 26, 0.5);
    --bg-dark: #0f111a;
    --card-bg: rgba(var(--fg), 0.03);
    --card-border: rgba(var(--fg), 0.08);
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent: #00ccff;
    --green: #26e6a4;
    --red: #ff5c5c;
    --orange: #ffaa00;
    --ink: #fff;
    --fg: 255, 255, 255;
    --bg-rgb: 15, 17, 26;
}

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

html, body { width: 100%; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Figtree', sans-serif;
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% -20%, #1e2130, #0f111a);
    min-height: 100vh;
}

.top-nav {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 300;
    gap: 12px;
    transition: transform 0.2s ease;
}

.logo-link:hover { transform: scale(1.02); }
.nav-logo { height: 32px; width: auto; }
.nav-date {
    font-family: 'Figtree', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.container { max-width: 1050px; margin: 0 auto; padding: 40px 20px; }

header { text-align: center; margin-bottom: 40px; animation: fadeInDown 0.8s ease-out; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--green);
    border: 1px solid rgba(38, 230, 164, 0.3);
    background: rgba(38, 230, 164, 0.07);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

h1 {
    font-size: 3.2rem;
    font-weight: 300;
    background: linear-gradient(135deg, var(--primary), #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subheader { font-size: 1.1rem; color: var(--text-dim); max-width: 700px; margin: 0 auto; }
.subheader strong { color: var(--text-main); font-weight: 400; }

/* Market strip */
.market-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.market-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.market-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.market-value { font-size: 1.9rem; font-weight: 300; }
.market-value.green { color: var(--green); text-shadow: 0 0 20px rgba(38,230,164,0.3); }
.market-value.orange { color: var(--orange); text-shadow: 0 0 20px rgba(255,170,0,0.3); }
.market-value.blue { color: var(--accent); text-shadow: 0 0 20px rgba(0,204,255,0.3); }
.market-sub { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; min-height: 1.2em; }
.market-sub.up { color: var(--green); }
.market-sub.down { color: var(--red); }

.pulse { width: 8px; height: 8px; background-color: var(--green); border-radius: 50%; display: inline-block; animation: pulse-green 2s infinite; }
.pulse.green { background-color: var(--green); }
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(38,230,164,0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(38,230,164,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(38,230,164,0); }
}

.updated-line {
    text-align: center;
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    color: var(--text-dim);
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Sections */
.section { margin-bottom: 60px; }

.section-title {
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title.orange { color: var(--orange); }
.section-desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 24px; max-width: 800px; }

/* Catalyst grid */
.catalyst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.catalyst-col {
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--card-border);
    background: rgba(var(--fg), 0.015);
}
.catalyst-col.bullish { border-top: 3px solid var(--green); }
.catalyst-col.bearish { border-top: 3px solid var(--red); }

.col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.col-header.bull { color: var(--green); }
.col-header.bear { color: var(--red); }

.count-badge {
    margin-left: auto;
    font-family: 'Figtree', sans-serif;
    font-size: 0.75rem;
    border: 1px solid currentColor;
    border-radius: 14px;
    padding: 2px 10px;
    opacity: 0.85;
}

.card-list { display: flex; flex-direction: column; gap: 14px; }

.factor-card {
    background: rgba(var(--fg), 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.factor-card:hover { transform: translateY(-3px); }
.bullish .factor-card:hover { border-color: rgba(38,230,164,0.4); }
.bearish .factor-card:hover { border-color: rgba(255,92,92,0.4); }

.factor-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.impact {
    font-family: 'Figtree', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid;
}
.impact.high { color: #ff8a8a; border-color: rgba(255,92,92,0.5); background: rgba(255,92,92,0.08); }
.impact.medium { color: #ffd27a; border-color: rgba(255,170,0,0.5); background: rgba(255,170,0,0.08); }
.impact.low { color: #9be7ff; border-color: rgba(0,204,255,0.4); background: rgba(0,204,255,0.07); }

.factor-status {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: 'Figtree', sans-serif;
}

.eta-row { margin-bottom: 10px; }

.eta {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: #9be7ff;
    border: 1px dashed rgba(0, 204, 255, 0.4);
    background: rgba(0, 204, 255, 0.06);
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.eta::before { content: '\25B8 '; }

.factor-card h3 { font-size: 1.05rem; font-weight: 400; margin-bottom: 6px; color: var(--ink); }
.factor-card p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.6; }
.factor-card a {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(0,204,255,0.25);
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(0,204,255,0.05);
    transition: all 0.25s ease;
}
.factor-card a:hover { background: rgba(0,204,255,0.12); border-color: var(--accent); }
.factor-card a::after { content: ' \2192'; }

/* News */
.news-list { display: flex; flex-direction: column; gap: 14px; }

.news-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 18px;
    background: rgba(var(--fg), 0.025);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.news-card:hover { transform: translateY(-2px); border-color: rgba(255,170,0,0.35); }

.news-time {
    font-family: 'Figtree', sans-serif;
    font-size: 0.75rem;
    color: var(--orange);
    text-align: center;
    border-right: 1px dashed rgba(255,170,0,0.25);
    padding-right: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.tag {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(255,170,0,0.1);
    border: 1px solid rgba(255,170,0,0.3);
    color: var(--orange);
    white-space: nowrap;
}
.tag.crypto { background: rgba(247,147,26,0.1); border-color: rgba(247,147,26,0.4); color: var(--primary); }
.tag.macro { background: rgba(0,204,255,0.08); border-color: rgba(0,204,255,0.35); color: var(--accent); }
.tag.equities { background: rgba(180,140,255,0.1); border-color: rgba(180,140,255,0.35); color: #b48cff; }
.tag.geopolitics { background: rgba(255,92,92,0.08); border-color: rgba(255,92,92,0.35); color: #ff8a8a; }

.news-body h3 { font-size: 1.02rem; font-weight: 400; color: var(--ink); margin-bottom: 6px; }

.stance-row { margin-bottom: 8px; }

.stance {
    font-family: 'Figtree', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid;
    white-space: nowrap;
}

.stance.positive { color: #26e6a4; border-color: rgba(38, 230, 164, 0.5); background: rgba(38, 230, 164, 0.08); }
.stance.negative { color: #ff8a8a; border-color: rgba(255, 92, 92, 0.5); background: rgba(255, 92, 92, 0.08); }
.stance.conditional { color: #ffd27a; border-color: rgba(255, 170, 0, 0.5); background: rgba(255, 170, 0, 0.08); }

.news-card.stance-positive { border-left: 3px solid #26e6a4; }
.news-card.stance-negative { border-left: 3px solid #ff5c5c; }
.news-card.stance-conditional { border-left: 3px solid #ffaa00; }

html { scroll-behavior: smooth; }

.section { scroll-margin-top: 150px; }

.quick-nav {
    position: sticky;
    top: 72px;
    z-index: 900;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 36px;
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

.quick-nav a {
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    padding: 7px 16px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.quick-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 204, 255, 0.07);
}

.event-list { display: flex; flex-direction: column; gap: 12px; }

.event-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    background: rgba(var(--fg), 0.025);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px 20px;
}

.event-row.past { opacity: 0.45; }

.event-date {
    text-align: center;
    border-right: 1px dashed rgba(0, 204, 255, 0.25);
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    color: var(--accent);
}

.event-year {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.event-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }

.event-flag {
    width: 26px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.countdown {
    font-family: 'Figtree', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid;
    white-space: nowrap;
}

.countdown.soon { color: #26e6a4; border-color: rgba(38, 230, 164, 0.5); background: rgba(38, 230, 164, 0.08); }
.countdown.later { color: #9be7ff; border-color: rgba(0, 204, 255, 0.4); background: rgba(0, 204, 255, 0.07); }
.countdown.past { color: var(--text-dim); border-color: var(--card-border); }

.event-body h3 { font-size: 1rem; font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.event-body p { font-size: 0.88rem; color: var(--text-dim); }

.gauge-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    margin-bottom: 16px;
}

.gauge-card .market-value.red { color: var(--red); text-shadow: 0 0 20px rgba(255, 92, 92, 0.3); }

.lean-bar {
    margin-top: 16px;
    height: 10px;
    border-radius: 6px;
    background: rgba(var(--fg), 0.06);
    overflow: hidden;
}

.lean-fill { height: 100%; border-radius: 6px; transition: width 0.8s ease; }
.lean-fill.bull { background: linear-gradient(90deg, rgba(38, 230, 164, 0.4), #26e6a4); }
.lean-fill.bear { background: linear-gradient(90deg, #ff5c5c, rgba(255, 92, 92, 0.4)); }
.lean-fill.flat { background: linear-gradient(90deg, rgba(0, 204, 255, 0.4), var(--accent)); }

.signal-list { display: flex; flex-direction: column; gap: 10px; }

.signal-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    background: rgba(var(--fg), 0.025);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 18px;
}

.signal-name { font-size: 0.95rem; color: var(--ink); font-weight: 400; }
.signal-note { display: block; font-size: 0.78rem; color: var(--text-dim); }
.signal-value { font-family: 'Figtree', sans-serif; font-size: 0.85rem; color: var(--accent); }

/* Backtested calibration block */
.calib {
    margin-top: 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px 26px;
}

.calib-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.calib-kicker {
    font-family: 'Figtree', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.calib-meta {
    font-family: 'Figtree', sans-serif;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.calib-lede {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 16px;
}

.calib-lede strong { color: var(--ink); font-weight: 400; }

.calib-table { display: flex; flex-direction: column; gap: 6px; }

.calib-row {
    display: grid;
    grid-template-columns: 1fr 0.5fr 1.3fr 0.8fr;
    gap: 12px;
    align-items: center;
    padding: 9px 14px;
    border-radius: 10px;
}

.calib-row:not(.calib-header) {
    background: rgba(var(--fg), 0.025);
    border: 1px solid var(--card-border);
}

.calib-header {
    font-family: 'Figtree', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding-bottom: 2px;
}

.calib-label {
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.calib-label.calm { color: var(--green); }
.calib-label.normal { color: var(--accent); }
.calib-label.elevated { color: var(--orange); }
.calib-label.extreme { color: var(--red); }

.calib-num, .calib-range, .calib-pct {
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
}

.calib-num { color: var(--text-dim); }
.calib-range { color: var(--accent); }
.calib-pct { color: var(--ink); text-align: right; }

.calib-bar {
    display: block;
    height: 4px;
    margin-top: 5px;
    border-radius: 3px;
    background: rgba(var(--fg), 0.07);
    overflow: hidden;
}

.calib-bar i { display: block; height: 100%; border-radius: 3px; }
.calib-bar i.calm { background: var(--green); }
.calib-bar i.normal { background: var(--accent); }
.calib-bar i.elevated { background: var(--orange); }
.calib-bar i.extreme { background: var(--red); }

.calib-foot {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.vote {
    font-family: 'Figtree', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid;
    white-space: nowrap;
}

.vote.bull { color: #26e6a4; border-color: rgba(38, 230, 164, 0.5); background: rgba(38, 230, 164, 0.08); }
.vote.bear { color: #ff8a8a; border-color: rgba(255, 92, 92, 0.5); background: rgba(255, 92, 92, 0.08); }
.vote.flat { color: var(--text-dim); border-color: var(--card-border); }

.market-value.calm { color: #26e6a4; text-shadow: 0 0 20px rgba(38, 230, 164, 0.3); }
.market-value.normal { color: var(--accent); text-shadow: 0 0 20px rgba(0, 204, 255, 0.3); }
.market-value.elevated { color: var(--orange); text-shadow: 0 0 20px rgba(255, 170, 0, 0.3); }
.market-value.extreme { color: var(--red); text-shadow: 0 0 20px rgba(255, 92, 92, 0.3); }

.lean-fill.calm { background: linear-gradient(90deg, rgba(38, 230, 164, 0.4), #26e6a4); }
.lean-fill.normal { background: linear-gradient(90deg, rgba(0, 204, 255, 0.4), var(--accent)); }
.lean-fill.elevated { background: linear-gradient(90deg, rgba(255, 170, 0, 0.4), var(--orange)); }
.lean-fill.extreme { background: linear-gradient(90deg, #ff5c5c, rgba(255, 92, 92, 0.4)); }

.predict-block { margin-top: 12px; }

.predict-title {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.predict-bar {
    display: flex;
    height: 12px;
    border-radius: 7px;
    overflow: hidden;
    background: rgba(var(--fg), 0.06);
}

.predict-seg.seg-hold { background: #00ccff; }
.predict-seg.seg-hike { background: #ff5c5c; }
.predict-seg.seg-cut { background: #26e6a4; }
.predict-seg.seg-other { background: #8a93a6; }

.predict-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.predict-legend .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
}

.predict-legend .dot.seg-hold { background: #00ccff; }
.predict-legend .dot.seg-hike { background: #ff5c5c; }
.predict-legend .dot.seg-cut { background: #26e6a4; }
.predict-legend .dot.seg-other { background: #8a93a6; }

.scenario-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
    font-size: 0.85rem;
}

.scenario-odds {
    font-family: 'Figtree', sans-serif;
    color: var(--accent);
    white-space: nowrap;
}

.scenario-outcome { color: var(--text-dim); }

.btc-impact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--card-border);
}

.btc-impact p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}
.news-body p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
.news-body a { color: var(--accent); font-size: 0.82rem; text-decoration: none; border-bottom: 1px solid transparent; }
.news-body a:hover { border-bottom-color: var(--accent); }
.news-meta { margin-top: 8px; font-size: 0.78rem; color: var(--text-dim); font-family: 'Figtree', sans-serif; }

.note-box {
    background: rgba(0,204,255,0.04);
    border: 1px dashed rgba(0,204,255,0.3);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 50px;
}
.note-box h3 { color: var(--accent); font-weight: 400; margin-bottom: 12px; font-size: 1.1rem; }
.note-box ul { padding-left: 20px; color: var(--text-dim); font-size: 0.92rem; display: flex; flex-direction: column; gap: 8px; }
.note-box code { color: var(--orange); font-family: 'Figtree', sans-serif; font-size: 0.85rem; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.3rem; }
    .container { padding: 20px 15px; }
    .top-nav { padding: 15px 20px; }
    .nav-date { display: none; }
    .news-card { grid-template-columns: 1fr; }
    .event-row { grid-template-columns: 1fr; }
    .news-time { border-right: none; border-bottom: 1px dashed rgba(255,170,0,0.25); padding-bottom: 10px; flex-direction: row; justify-content: flex-start; }
    .calib { padding: 18px 14px; }
    .calib-row { grid-template-columns: 1fr 0.45fr 1fr 0.75fr; gap: 8px; padding: 8px 9px; }
    .calib-header { font-size: 0.56rem; letter-spacing: 0.5px; }
    .calib-label, .calib-num, .calib-range, .calib-pct { font-size: 0.72rem; }
    .calib-lede { font-size: 0.84rem; }
}

/* ---------- Structured / summary-first layer ---------- */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}
.section-head .section-desc { margin-bottom: 18px; }
.section-tools { display: flex; gap: 8px; flex-shrink: 0; padding-top: 6px; }
.tool-btn {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tool-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,204,255,0.07); }

.section-title.gold { color: var(--primary); }
.tldr-section {
    background: rgba(247,147,26,0.04);
    border: 1px solid rgba(247,147,26,0.22);
    border-radius: 18px;
    padding: 24px 26px;
}
.tldr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 820px) { .tldr-grid { grid-template-columns: 1fr; } .section-head { flex-direction: column; } }
.tldr-card {
    background: rgba(var(--fg), 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tldr-card:first-child { grid-row: span 2; justify-content: center; }
@media (max-width: 820px) { .tldr-card:first-child { grid-row: auto; } }
.tldr-label { font-family: 'Figtree', sans-serif; font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.tldr-tone-value { font-size: 1.5rem; font-weight: 400; }
.tldr-tone-value.bull { color: var(--green); }
.tldr-tone-value.bear { color: var(--red); }
.tldr-tone-value.flat { color: var(--accent); }
.tldr-counts { font-size: 0.82rem; color: var(--text-dim); }
.tldr-counts .bull { color: var(--green); }
.tldr-counts .bear { color: #ff8a8a; }
.tldr-counts .sep { margin: 0 6px; opacity: 0.5; }
.tldr-updated { font-size: 0.8rem; color: var(--text-dim); line-height: 1.55; border-top: 1px dashed var(--card-border); padding-top: 8px; margin-top: 4px; }
.tldr-item-title { font-size: 0.92rem; color: var(--ink); font-weight: 400; line-height: 1.5; }
.tldr-meta { font-family: 'Figtree', sans-serif; font-size: 0.75rem; color: var(--text-dim); }
.tldr-news { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; color: var(--text-dim); }
.tldr-news .stance { font-size: 0.62rem; }
.tldr-link { font-size: 0.8rem; color: var(--accent); text-decoration: none; margin-top: auto; padding-top: 4px; }
.tldr-link:hover { text-decoration: underline; }

/* Collapsible cards: summary row + hidden detail */
details.factor-card, details.news-card, details.event-row { padding: 0; overflow: hidden; }
details.factor-card summary, details.news-card summary, details.event-row summary { list-style: none; cursor: pointer; }
details.factor-card summary::-webkit-details-marker, details.news-card summary::-webkit-details-marker, details.event-row summary::-webkit-details-marker { display: none; }
.factor-summary, .news-summary, .event-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    flex-wrap: wrap;
}
.factor-title { flex: 1; min-width: 180px; font-size: 0.98rem; font-weight: 400; color: var(--ink); line-height: 1.45; }
.chev { margin-left: auto; color: var(--text-dim); transition: transform 0.2s ease; font-size: 0.85rem; }
details[open] .chev { transform: rotate(180deg); color: var(--accent); }
.factor-details, .news-card .news-body, .event-row .event-body {
    padding: 0 18px 16px 18px;
    border-top: 1px dashed var(--card-border);
    padding-top: 12px;
    margin: 0 18px 16px 18px;
    padding-left: 0;
    padding-right: 0;
}
.factor-card .factor-top { margin-bottom: 10px; }
.news-summary .news-time-inline, .event-summary .event-date-inline {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    color: var(--orange);
    white-space: nowrap;
}
.event-summary .event-date-inline { color: var(--accent); }
.news-summary .tag, .news-summary .stance, .event-summary .countdown, .event-summary .impact, .factor-summary .impact { flex-shrink: 0; }

/* Old grid layouts no longer apply to collapsed cards */
details.news-card { display: block; }
details.event-row { display: block; }

/* Generic collapse boxes (lean votes, backtest, how-it-works) */
.collapse-box, details.note-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}
.collapse-box summary, .note-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 20px; }
.collapse-box summary::-webkit-details-marker, details.note-box summary::-webkit-details-marker { display: none; }
.collapse-title { font-size: 0.95rem; color: var(--ink); font-weight: 400; }
.collapse-hint { margin-left: auto; font-family: 'Figtree', sans-serif; font-size: 0.7rem; color: var(--text-dim); }
.collapse-box[open] .collapse-hint, details.note-box[open] .collapse-hint { display: none; }
.collapse-box .signal-list { padding: 0 14px 14px 14px; }
details.calib-details .calib { border: none; background: transparent; margin-top: 0; padding-top: 4px; }
details.note-box ul { padding: 0 28px 22px 40px; }
.note-summary h3 { margin-bottom: 0 !important; }

/* Form controls and code don't inherit fonts by default — keep everything on Figtree */
button, input, select, textarea, code, kbd, pre { font-family: inherit; }

/* Bright skin */
:root[data-theme="light"] {
    --primary-glow: rgba(247, 147, 26, 0.25);
    --bg-dark: #f4f6fa;
    --card-bg: #ffffff;
    --card-border: rgba(20, 24, 40, 0.12);
    --text-main: #1a1d29;
    --text-dim: #4a5068;
    --accent: #0277b5;
    --green: #047857;
    --red: #dc2626;
    --orange: #b45309;
    --ink: #0b0d14;
    --fg: 20, 24, 40;
    --bg-rgb: 255, 255, 255;
}
:root[data-theme="light"] body { background: radial-gradient(circle at 50% -20%, #ffffff, #eef1f6); background-color: var(--bg-dark); }
:root[data-theme="light"] h1 { background: linear-gradient(135deg, #c2410c, #e88a00); -webkit-background-clip: text; }
:root[data-theme="light"] .pulse, :root[data-theme="light"] .pulse.green { background-color: #10b981; }
:root[data-theme="light"] .status-badge { border-color: rgba(4, 120, 87, 0.3); background: rgba(16, 185, 129, 0.08); }
:root[data-theme="light"] .market-value { text-shadow: none !important; }
:root[data-theme="light"] .market-card,
:root[data-theme="light"] .gauge-card,
:root[data-theme="light"] .collapse-box,
:root[data-theme="light"] details.note-box,
:root[data-theme="light"] .calib { box-shadow: 0 1px 3px rgba(20, 24, 40, 0.08); }
:root[data-theme="light"] details.calib-details .calib { box-shadow: none; }
:root[data-theme="light"] .quick-nav { background: rgba(255, 255, 255, 0.85); box-shadow: 0 4px 16px rgba(20, 24, 40, 0.08); }
:root[data-theme="light"] .quick-nav a:hover,
:root[data-theme="light"] .tool-btn:hover { background: rgba(2, 119, 181, 0.07); }
:root[data-theme="light"] .catalyst-col { background: rgba(255, 255, 255, 0.6); }
:root[data-theme="light"] .factor-card,
:root[data-theme="light"] .news-card,
:root[data-theme="light"] .event-row,
:root[data-theme="light"] .signal-row,
:root[data-theme="light"] .tldr-card { background: #ffffff; box-shadow: 0 1px 3px rgba(20, 24, 40, 0.06); }
:root[data-theme="light"] .calib-row:not(.calib-header) { background: #f7f8fb; }
:root[data-theme="light"] .tldr-section { background: rgba(247, 147, 26, 0.06); border-color: rgba(194, 104, 10, 0.25); }
:root[data-theme="light"] .section-title.gold { color: #b45f06; }
:root[data-theme="light"] .impact.high { color: #dc2626; border-color: rgba(220, 38, 38, 0.4); background: rgba(220, 38, 38, 0.06); }
:root[data-theme="light"] .impact.medium { color: #b45309; border-color: rgba(217, 119, 6, 0.45); background: rgba(245, 158, 11, 0.08); }
:root[data-theme="light"] .impact.low { color: #0277b5; border-color: rgba(2, 119, 181, 0.35); background: rgba(14, 165, 233, 0.07); }
:root[data-theme="light"] .eta,
:root[data-theme="light"] .countdown.later { color: #0277b5; border-color: rgba(2, 119, 181, 0.35); background: rgba(14, 165, 233, 0.06); }
:root[data-theme="light"] .stance.positive,
:root[data-theme="light"] .vote.bull,
:root[data-theme="light"] .countdown.soon { color: #047857; border-color: rgba(4, 120, 87, 0.4); background: rgba(16, 185, 129, 0.08); }
:root[data-theme="light"] .stance.negative,
:root[data-theme="light"] .vote.bear { color: #dc2626; border-color: rgba(220, 38, 38, 0.4); background: rgba(220, 38, 38, 0.06); }
:root[data-theme="light"] .stance.conditional { color: #b45309; border-color: rgba(217, 119, 6, 0.45); background: rgba(245, 158, 11, 0.08); }
:root[data-theme="light"] .news-card.stance-positive { border-left-color: #10b981; }
:root[data-theme="light"] .news-card.stance-negative { border-left-color: #ef4444; }
:root[data-theme="light"] .news-card.stance-conditional { border-left-color: #f59e0b; }
:root[data-theme="light"] .tag { background: rgba(245, 158, 11, 0.08); border-color: rgba(217, 119, 6, 0.35); }
:root[data-theme="light"] .tag.crypto { color: #b45f06; background: rgba(247, 147, 26, 0.08); border-color: rgba(194, 104, 10, 0.35); }
:root[data-theme="light"] .tag.macro { background: rgba(14, 165, 233, 0.07); border-color: rgba(2, 119, 181, 0.3); }
:root[data-theme="light"] .tag.equities { color: #6d28d9; background: rgba(109, 40, 217, 0.06); border-color: rgba(109, 40, 217, 0.3); }
:root[data-theme="light"] .tag.geopolitics { color: #dc2626; background: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.3); }
:root[data-theme="light"] .tldr-counts .bear { color: #dc2626; }
:root[data-theme="light"] .news-time { border-right-color: rgba(217, 119, 6, 0.3); }
:root[data-theme="light"] .event-date { border-right-color: rgba(2, 119, 181, 0.25); }
:root[data-theme="light"] .event-flag { box-shadow: 0 0 0 1px rgba(20, 24, 40, 0.12); }
:root[data-theme="light"] .factor-card a { border-color: rgba(2, 119, 181, 0.3); background: rgba(14, 165, 233, 0.05); }
:root[data-theme="light"] .factor-card a:hover { background: rgba(14, 165, 233, 0.12); }
:root[data-theme="light"] .lean-fill.bull, :root[data-theme="light"] .lean-fill.calm { background: linear-gradient(90deg, rgba(16, 185, 129, 0.45), #10b981); }
:root[data-theme="light"] .lean-fill.bear, :root[data-theme="light"] .lean-fill.extreme { background: linear-gradient(90deg, #ef4444, rgba(239, 68, 68, 0.45)); }
:root[data-theme="light"] .lean-fill.flat, :root[data-theme="light"] .lean-fill.normal { background: linear-gradient(90deg, rgba(14, 165, 233, 0.45), #0ea5e9); }
:root[data-theme="light"] .lean-fill.elevated { background: linear-gradient(90deg, rgba(245, 158, 11, 0.45), #f59e0b); }
:root[data-theme="light"] .calib-bar i.calm { background: #10b981; }
:root[data-theme="light"] .calib-bar i.normal { background: #0ea5e9; }
:root[data-theme="light"] .calib-bar i.elevated { background: #f59e0b; }
:root[data-theme="light"] .calib-bar i.extreme { background: #ef4444; }
:root[data-theme="light"] .predict-seg.seg-hold, :root[data-theme="light"] .predict-legend .dot.seg-hold { background: #0ea5e9; }
:root[data-theme="light"] .predict-seg.seg-hike, :root[data-theme="light"] .predict-legend .dot.seg-hike { background: #ef4444; }
:root[data-theme="light"] .predict-seg.seg-cut, :root[data-theme="light"] .predict-legend .dot.seg-cut { background: #10b981; }
:root[data-theme="light"] .note-box { background: rgba(14, 165, 233, 0.04); border-color: rgba(2, 119, 181, 0.25); }
:root[data-theme="light"] details.note-box { background: #ffffff; border-color: var(--card-border); }
