/* ================================================================
   PulseForge — New York Times Newspaper Theme
   ================================================================ */

/* ── CSS Variables ── */
:root {
    --black:       #000000;
    --ink:         #1a1a1a;
    --ink-light:   #333333;
    --ink-muted:   #666666;
    --rule:        #000000;
    --rule-light:  #cccccc;
    --red:         #C41E3A;
    --red-dark:    #9b1628;
    --white:       #ffffff;
    --newsprint:   #f9f7f4;
    --up:          #1a6b1a;
    --down:        #C41E3A;

    --font-head:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:   'Source Serif 4', Georgia, serif;
    --font-mono:   'IBM Plex Mono', 'Courier New', monospace;
    --font-sans:   'Helvetica Neue', Arial, sans-serif;

    --max-width:   1280px;
    --col-gap:     24px;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 16px; }

body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--red); }

/* ── Masthead ── */
.masthead {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 24px 0;
}

.masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--ink-muted);
    padding: 4px 0;
}

.masthead-edition {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.separator { color: var(--rule-light); }

.ds-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ds-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-muted);
    display: inline-block;
    flex-shrink: 0;
}
.ds-dot.connected { background: #1a6b1a; }
.ds-dot.offline   { background: var(--red); }

#dsLabel.connected { color: #1a6b1a; }
#dsLabel.offline   { color: var(--red); }

.masthead-price-strip {
    display: flex;
    gap: 16px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.masthead-price-strip .mono {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink);
}

.masthead-rule-thin {
    height: 1px;
    background: var(--rule);
    margin: 4px 0;
}

.masthead-nameplate {
    text-align: center;
    padding: 12px 0 8px;
}

.nameplate {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--black);
    text-transform: none;
}

.nameplate-tagline {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 4px;
}

.masthead-rule-thick {
    height: 4px;
    background: var(--black);
    margin: 6px 0 0;
}

/* ── Pulse Banner ── */
.pulse-banner {
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    margin: 0;
    font-family: var(--font-sans);
    flex-wrap: wrap;
}

.banner-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--red);
    padding: 2px 8px;
    flex-shrink: 0;
}

.banner-score {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
    flex-shrink: 0;
}

.banner-regime {
    font-size: 0.85rem;
    font-style: italic;
    color: #cccccc;
}

/* ── Section Nav ── */
.section-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--black);
    margin-top: 4px;
}

.section-nav-item {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-muted);
    padding: 6px 14px;
    border-right: 1px solid var(--rule-light);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.section-nav-item:first-child { border-left: 1px solid var(--rule-light); }

.section-nav-item:hover,
.section-nav-item.active {
    background: var(--black);
    color: var(--white);
}

/* ── Tab Content ── */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Newspaper Body ── */
.newspaper-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 32px;
}

/* ── Paper Section ── */
.paper-section {
    padding: 20px 0 12px;
}

.section-header {
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
    display: inline-block;
}

.section-rule {
    height: 3px;
    background: var(--black);
    margin-top: 2px;
}

/* ── Column Rule ── */
.column-rule-h {
    height: 1px;
    background: var(--rule-light);
    margin: 4px 0;
}

/* ── Metrics Grid ── */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
}

.metric-article {
    padding: 14px 16px;
    border-right: 1px solid var(--rule-light);
    border-bottom: 1px solid var(--rule-light);
}

.metric-article:last-child { border-right: none; }

/* ── Article Components ── */
.article-kicker {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 4px;
}

.article-headline {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    margin-bottom: 3px;
}

.article-headline-lg {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    margin-bottom: 4px;
}

.article-byline {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--ink-muted);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--rule-light);
    padding-bottom: 6px;
}

.article-lede {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.big-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1;
}

.change-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 1px 4px;
}

/* Change colors */
.change-badge.up, .metric-change.up  { color: var(--up);   }
.change-badge.down, .metric-change.down { color: var(--down); }
.change-badge.flat, .metric-change.flat { color: var(--ink-muted); }

/* ── Sparklines ── */
.metric-spark {
    height: 36px;
    margin-top: 4px;
}

/* ── Two Column Layout ── */
.two-col-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
}

.col-main {
    padding-right: 20px;
    border-right: 1px solid var(--rule-light);
}

.col-side {
    padding-left: 20px;
}

/* ── Chart Articles ── */
.chart-article {
    padding: 14px 0;
}

.chart-container {
    width: 100%;
    margin-top: 8px;
}

/* ── Sidebar Articles ── */
.sidebar-article {
    padding: 12px 0;
}

/* ── Predictions List ── */
.predictions-list {
    margin-top: 4px;
}

.prediction-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
}

.prediction-item:last-child { border-bottom: none; }

.prediction-name {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}

.prediction-signal {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3px;
    padding: 1px 5px;
    display: inline-block;
}

.prediction-signal.bullish {
    background: var(--up);
    color: white;
}

.prediction-signal.bearish {
    background: var(--red);
    color: white;
}

.prediction-signal.neutral {
    background: var(--ink-muted);
    color: white;
}

.prediction-meta {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--ink-muted);
    margin: 3px 0;
}

.prediction-rationale {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--ink-light);
    font-style: italic;
    line-height: 1.4;
}

/* ── Macro Notes ── */
.macro-notes {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink-light);
    line-height: 1.6;
}

.macro-notes ul {
    list-style: none;
    padding: 0;
}

.macro-notes li {
    padding: 6px 0;
    border-bottom: 1px solid var(--rule-light);
    font-style: italic;
}

.macro-notes li::before {
    content: "— ";
    color: var(--red);
    font-style: normal;
    font-weight: 700;
}

/* ── Watchlist Table ── */
.watchlist-table {
    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
}

.watchlist-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.88rem;
}

.watchlist-table thead tr {
    border-bottom: 2px solid var(--black);
}

.watchlist-table th {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 6px 10px 6px 0;
    text-align: left;
}

.watchlist-table tbody tr {
    border-bottom: 1px solid var(--rule-light);
}

.watchlist-table tbody tr:hover {
    background: var(--newsprint);
}

.watchlist-table td {
    padding: 8px 10px 8px 0;
    vertical-align: middle;
}

.ticker-cell {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--black);
}

.watchlist-table .up   { color: var(--up); font-family: var(--font-mono); }
.watchlist-table .down { color: var(--down); font-family: var(--font-mono); }

.signal {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 6px;
    display: inline-block;
}

.signal.bullish { background: var(--up); color: white; }
.signal.bearish { background: var(--red); color: white; }
.signal.neutral { background: var(--ink-muted); color: white; }

/* ── Charts Tab ── */
.watchlist-manager { margin-bottom: 16px; }

.wm-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--rule-light);
    border-bottom: 1px solid var(--rule-light);
}

.wm-tickers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wm-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--black);
    color: var(--white);
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wm-remove {
    background: none;
    border: none;
    color: var(--rule-light);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 0 0 2px;
}

.wm-remove:hover { color: var(--red); }

.wm-add {
    display: flex;
    gap: 6px;
    align-items: center;
}

.wm-add input {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border: 1px solid var(--black);
    padding: 4px 8px;
    outline: none;
    background: var(--white);
    color: var(--black);
    width: 160px;
}

.wm-add input:focus {
    border-color: var(--red);
}

.wm-add button {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    letter-spacing: 0.08em;
}

.wm-add button:hover { background: var(--red); }

/* ── LW Charts Grid ── */
.lw-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.lw-card {
    border: 1px solid var(--rule-light);
    border-top: 3px solid var(--black);
}

.lw-card-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px 6px;
    border-bottom: 1px solid var(--rule-light);
}

.lw-ticker {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
}

.lw-price {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--ink-light);
}

.lw-change {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    margin-left: auto;
}

.lw-change.up   { color: var(--up); }
.lw-change.down { color: var(--down); }

.lw-chart-wrap,
.lw-vol-wrap {
    width: 100%;
}

.lw-nodata {
    text-align: center;
    padding: 40px 20px;
    font-family: var(--font-body);
    font-style: italic;
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.lw-nodata span {
    display: block;
    font-size: 0.75rem;
    margin-top: 4px;
}

.lw-loading {
    text-align: center;
    padding: 60px;
    font-family: var(--font-body);
    font-style: italic;
    color: var(--ink-muted);
}

/* ── Footer ── */
.paper-footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 32px;
    text-align: center;
}

.footer-rule {
    height: 3px;
    background: var(--black);
    margin-bottom: 12px;
}

.paper-footer p {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--ink-muted);
    margin-bottom: 4px;
}

.paper-footer .disclaimer {
    font-style: italic;
    font-size: 0.65rem;
}

/* ── Plotly / Chart Overrides for NYT theme ── */
.js-plotly-plot .plotly .main-svg {
    background: transparent !important;
}

/* ── Mono utility ── */
.mono { font-family: var(--font-mono); }

/* ── Mobile Responsive ── */
@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    .col-main {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--rule-light);
    }
    .col-side {
        padding-left: 0;
        padding-top: 16px;
    }
    .lw-charts-grid {
        grid-template-columns: 1fr;
    }
    .masthead-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .masthead-price-strip {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nameplate {
        font-size: 2.8rem;
    }
    .newspaper-body {
        padding: 0 12px 24px;
    }
    .masthead {
        padding: 8px 12px 0;
    }
}

/* ================================================================
   PulseForge v2 — Ticker Tape, News, Heatmap, Insider, Congress
   ================================================================ */

/* ── Ticker Tape ── */
.ticker-tape-wrap {
    overflow: hidden;
    background: var(--black);
    color: var(--white);
    padding: 6px 0;
    margin: 0 -24px;
    cursor: default;
    user-select: none;
}

.ticker-inner {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 50s linear infinite;
    will-change: transform;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.tk-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.65rem;
}

.tk-sym {
    font-weight: 700;
    color: #e5e7eb;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.tk-price {
    color: #d1d5db;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.tk-chg { font-family: var(--font-mono); font-size: 0.7rem; }
.tk-chg.up   { color: #4ade80; }
.tk-chg.down { color: #f87171; }

.ticker-loading {
    padding: 0 16px;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-sans);
    font-size: 0.72rem;
}

/* ── Section Nav update (5 tabs) ── */
.section-nav {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }

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

.news-list-full {
    max-height: 800px;
    overflow-y: auto;
}

.news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
    cursor: pointer;
    transition: background 0.15s;
}

.news-item:hover { background: var(--newsprint); }
.news-item:last-child { border-bottom: none; }

.news-compact {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
}

.news-img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--rule-light);
}

.news-content { flex: 1; min-width: 0; }

.news-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 3px;
}

.news-source {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
}

.news-ago {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--ink-muted);
}

.news-headline {
    font-family: var(--font-head);
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--ink);
    font-weight: 600;
}

.news-compact .news-headline {
    font-size: 0.82rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.news-summary {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.4;
    margin-top: 3px;
}

.news-loading {
    padding: 16px 0;
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: italic;
}

/* ── Flow Controls (Insider/Congress filter buttons) ── */
.flow-controls {
    display: flex;
    gap: 6px;
    margin: 10px 0 12px;
    flex-wrap: wrap;
}

.flow-btn {
    padding: 4px 12px;
    border: 1px solid var(--rule-light);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    color: var(--ink-muted);
    transition: all 0.15s;
}

.flow-btn:hover { border-color: var(--black); color: var(--black); }
.flow-btn.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ── Flow Table ── */
.flow-table-wrap {
    overflow-x: auto;
    margin-top: 4px;
}

.flow-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.8rem;
}

.flow-table thead th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    border-bottom: 2px solid var(--black);
    padding: 6px 8px;
    text-align: left;
    white-space: nowrap;
}

.flow-table tbody tr { border-bottom: 1px solid #f0f0f0; }
.flow-table tbody tr:hover { background: var(--newsprint); }
.flow-table tbody td { padding: 6px 8px; vertical-align: middle; }

.flow-date { color: var(--ink-muted); font-size: 0.75rem; white-space: nowrap; }
.flow-name { color: var(--ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-ticker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 2px;
}

.flow-type-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

.flow-buy  { color: var(--up); }
.flow-sell { color: var(--red); }

.flow-type-badge.flow-buy  { background: rgba(26,107,26,0.1);  color: var(--up); }
.flow-type-badge.flow-sell { background: rgba(196,30,58,0.1);  color: var(--red); }

.text-right { text-align: right; }

/* ── Insider Summary Sidebar ── */
.flow-summary { margin-top: 4px; }

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.summary-stat {
    text-align: center;
    padding: 8px 4px;
    border: 1px solid var(--rule-light);
}

.summary-num {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.summary-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin-top: 2px;
}

.summary-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    padding: 4px 0;
    border-bottom: 1px dotted var(--rule-light);
}

.flow-summary-loading {
    color: var(--ink-muted);
    font-size: 0.8rem;
    font-style: italic;
    padding: 8px 0;
}

/* ── Big Moves ── */
.big-moves-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

.big-move-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--rule-light);
}

.big-move-left { display: flex; align-items: center; gap: 8px; }
.big-move-name { font-family: var(--font-sans); font-size: 0.75rem; color: var(--ink-muted); }
.big-move-right { display: flex; align-items: center; gap: 8px; }
.big-move-val { font-size: 0.8rem; }

/* ── Insider Updated ── */
.insider-updated {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--ink-muted);
}

/* ── Congress ── */
.congress-search-wrap { margin: 8px 0 4px; }
.congress-search {
    width: 100%;
    max-width: 400px;
    padding: 6px 10px;
    border: 1px solid var(--rule-light);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--ink);
    background: var(--white);
    outline: none;
}
.congress-search:focus { border-color: var(--black); }

.congress-badge {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 5px;
    border-radius: 2px;
}
.congress-house  { background: #dbeafe; color: #1d4ed8; }
.congress-senate { background: #fce7f3; color: #9d174d; }

/* ── Top Tickers Bar Chart ── */
.top-tickers-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

.top-ticker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
}

.top-ticker-bar-wrap {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.top-ticker-bar {
    height: 100%;
    background: var(--black);
    border-radius: 3px;
    transition: width 0.3s;
}

.top-ticker-count { color: var(--ink-muted); font-size: 0.72rem; }

/* ── Insider Mini (Overview sidebar) ── */
.insider-mini-list { display: flex; flex-direction: column; gap: 0; }

.insider-mini-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.78rem;
}

.insider-mini-name {
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

@media (max-width: 600px) {
    .ticker-tape-wrap { margin: 0 -12px; }
    .flow-table { font-size: 0.72rem; }
    .flow-table thead th, .flow-table tbody td { padding: 4px 5px; }
    .summary-grid { grid-template-columns: 1fr 1fr 1fr; }
    .summary-num { font-size: 1.2rem; }
    .congress-search { max-width: 100%; }
}
