
    :root {
      --bg:         #ffffff;
      --bg-alt:     #f7f7f3;
      --bg-dark:    #0f1117;
      --border:     #e5e7eb;
      --text:       #111827;
      --body:       #4e4e4e;
      --muted:      #9ca3af;
      --accent:     #1a56db;
      --accent-lt:  #eff6ff;
      --prices:     #dc2626;
      --labor:      #2563eb;
      --growth:     #16a34a;
      --trade:      #d97706;
      --global:     #7c3aed;
      --compare:    #0891b2;
      --economy:    #1a56db;
      --people:     #059669;
      --environment:#0891b2;
    }

    body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }

    a { color: inherit; text-decoration: none; }

    /* ── Site Header ── */
    .site-header {
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0; background: rgba(255,255,255,0.97);
      backdrop-filter: blur(8px); z-index: 100;
    }
    .site-header-inner {
      display: flex; align-items: stretch; justify-content: space-between;
      max-width: 1120px; margin: 0 auto; padding: 0 48px; height: 54px; gap: 0;
    }
    .logo { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; flex-shrink: 0; margin-right: 0; }
    .logo-icon { display: block; flex-shrink: 0; }
    .logo-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
    .logo-rio { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
    .logo-intel { font-size: 0.58rem; font-weight: 400; letter-spacing: 0.06em; color: var(--body); text-transform: uppercase; }

    /* Section nav in header */
    .site-nav { display: flex; align-items: stretch; gap: 0; flex: 1; }
    .sec-btn {
      display: flex; align-items: center; padding: 0 16px;
      font-size: 0.8rem; font-family: inherit; font-weight: 400;
      color: var(--muted); background: none; border: none;
      border-bottom: 2px solid transparent; cursor: pointer;
      transition: color 0.15s, border-color 0.15s; white-space: nowrap;
      margin-bottom: -1px;
    }
    .sec-btn:hover { color: var(--text); }
    .sec-btn.active { color: var(--text); border-bottom-color: var(--text); font-weight: 500; }

    .header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 16px; }
    .btn-outline {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 5px 14px; font-size: 0.75rem; font-family: inherit;
      color: var(--body); background: transparent;
      border: 1px solid var(--border); border-radius: 6px;
      cursor: pointer; transition: all 0.15s;
    }
    .btn-outline:hover { border-color: #9ca3af; color: var(--text); }

    /* ── Range bar (slim, below header, only visible on detail tabs) ── */
    .range-bar {
      display: none; align-items: center; justify-content: flex-end;
      padding: 0 40px; height: 38px; border-bottom: 1px solid var(--border);
      background: var(--bg); position: sticky; top: 54px; z-index: 90;
    }
    .range-bar.visible { display: flex; }

    /* ── Snapshot KPI cards ── */
    .snap-kpi-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 20px; padding: 28px 48px; max-width: 1120px; margin: 0 auto;
    }
    .snap-kpi-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
      overflow: hidden; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s;
    }
    .snap-kpi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); transform: translateY(-1px); }
    .snap-kpi-spark { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 12px 16px 0; height: 80px; }
    .snap-kpi-spark svg { display: block; width: 100%; }
    .snap-kpi-body { padding: 16px 20px 20px; }
    .snap-kpi-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
    .snap-kpi-val { font-family: inherit; font-size: 1.7rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; margin-bottom: 4px; }
    .snap-kpi-meta { font-size: 0.68rem; color: var(--muted); display: flex; gap: 8px; margin-bottom: 6px; }
    .snap-kpi-desc { font-size: 0.72rem; color: var(--body); line-height: 1.4; }

    /* ── Page container ── */
    .container { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

    /* ── Loading ── */
    #loading { display: flex; align-items: center; justify-content: center; height: 60vh; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

    /* ════════════════════════════════════════
       HOME VIEW
    ════════════════════════════════════════ */

    /* ── Hero indicator bar ── */
    .hero-bar {
      border-bottom: 1px solid var(--border);
    }
    .hero-stat {
      padding: 16px 20px; border-right: 1px solid var(--border);
    }
    .hero-stat:last-child { border-right: none; }
    .hero-stat-label {
      font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px;
    }
    .hero-stat-val {
      font-family: inherit; font-size: 1.6rem;
      font-weight: 600; line-height: 1; color: var(--text);
      letter-spacing: -0.03em; margin-bottom: 5px;
    }
    .hero-stat-meta {
      font-size: 0.65rem; color: var(--muted);
      display: flex; align-items: center; gap: 8px;
    }
    .hero-stat-pill {
      font-family: inherit; font-size: 0.62rem;
      padding: 1px 5px; border-radius: 3px;
    }

    /* ── Metrics Strip ── */
    .metrics-strip {
      background: var(--bg); border-bottom: 1px solid var(--border);
      padding: 0;
    }
    .metrics-geo {
      max-width: 1120px; margin: 0 auto; padding: 8px 48px 0;
      font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.08em; color: var(--muted); display: flex; align-items: center; gap: 6px;
    }
    .metrics-geo:empty { display: none; }
    .metrics-inner {
      display: flex; align-items: stretch; max-width: 1120px; margin: 0 auto;
      padding: 0 48px; overflow-x: auto;
    }
    .metric-item {
      flex: 1; padding: 22px 20px; border-right: 1px solid var(--border);
      cursor: pointer; transition: background 0.15s;
    }
    .metric-item:last-child { border-right: none; }
    .metric-item:hover { background: rgba(0,0,0,0.02); }
    .metric-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
    .metric-value { font-family: inherit; font-size: 1.6rem; font-weight: 600; line-height: 1; margin-bottom: 5px; letter-spacing: -0.03em; color: var(--text); }
    .metric-meta { font-size: 0.65rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
    .metric-change { font-family: inherit; font-size: 0.62rem; padding: 1px 5px; border-radius: 3px; }
    .metric-change.up   { color: #dc2626; background: #fef2f2; }
    .metric-change.down { color: #16a34a; background: #f0fdf4; }
    .metric-change.neutral { color: var(--muted); background: #f3f4f6; }

    /* ── Home snapshot strip ── */
    .home-snapshot {
      display: grid; grid-template-columns: repeat(4, 1fr);
      border-bottom: 1px solid var(--border);
    }
    .snap-item {
      padding: 22px 28px; border-right: 1px solid var(--border);
      border-top: 3px solid transparent;
      cursor: pointer; transition: background 0.15s;
    }
    .snap-item:last-child { border-right: none; }
    .snap-item:hover { background: var(--bg-alt); }
    .snap-item[data-accent="prices"]  { border-top-color: var(--prices); }
    .snap-item[data-accent="growth"]  { border-top-color: var(--growth); }
    .snap-item[data-accent="compare"] { border-top-color: var(--compare); }
    .snap-item[data-accent="labor"]   { border-top-color: var(--labor); }
    .snap-section {
      font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.1em; margin-bottom: 10px;
    }
    .snap-num {
      font-family: 'JetBrains Mono', monospace; font-size: 1.6rem;
      font-weight: 600; line-height: 1; letter-spacing: -0.02em; margin-bottom: 4px;
    }
    .snap-label { font-size: 0.72rem; color: var(--body); line-height: 1.4; margin-bottom: 12px; }
    .snap-link { font-size: 0.68rem; color: var(--accent); font-weight: 500; }

    /* ── Sections ── */
    .home-section { padding: 60px 0; }
    .home-section.alt { background: var(--bg-alt); }
    .section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
    .section-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
    .section-link { font-size: 0.75rem; color: var(--accent); font-weight: 500; cursor: pointer; }
    .section-link:hover { text-decoration: underline; }

    /* ── Featured + Trending layout ── */
    .featured-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
    .trending-sidebar { border-left: 1px solid var(--border); padding-left: 32px; padding-top: 4px; }
    .trending-sidebar-head { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }

    /* ── Featured Cards ── */
    .featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

    .featured-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
      overflow: hidden; cursor: pointer; transition: box-shadow 0.15s, transform 0.15s;
      display: flex; flex-direction: column;
    }
    .featured-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); transform: translateY(-1px); }

    .card-sparkline { padding: 18px 18px 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
    .card-sparkline svg { display: block; width: 100%; height: 92px; }

    .card-body { padding: 21px; flex: 1; display: flex; flex-direction: column; }
    .card-category { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
    .card-stat { font-family: 'JetBrains Mono', monospace; font-size: 1.75rem; font-weight: 500; line-height: 1; color: var(--text); margin-bottom: 8px; letter-spacing: -0.03em; }
    .card-headline { font-size: 0.82rem; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 6px; }
    .card-desc { font-size: 0.76rem; color: var(--body); line-height: 1.6; flex: 1; }
    .card-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 0.72rem; font-weight: 500; color: var(--accent); }
    .card-cta:hover { text-decoration: underline; }

    /* ── Bite-sized Insights ── */
    .insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .insight-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
      padding: 20px; cursor: pointer; transition: all 0.15s;
      border-left: 3px solid transparent;
    }
    .insight-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
    .insight-card .tag { font-size: 0.60rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 10px; display: block; }
    .insight-card .big-num { font-family: 'JetBrains Mono', monospace; font-size: 1.65rem; font-weight: 600; line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
    .insight-card .desc { font-size: 0.76rem; color: var(--body); line-height: 1.55; }
    .insight-card .explore { font-size: 0.70rem; color: var(--accent); font-weight: 500; margin-top: 10px; display: block; }

    /* ── Trending ── */
    .trending-list { list-style: none; counter-reset: trending; }
    .trending-list li {
      counter-increment: trending;
      display: flex; align-items: flex-start; gap: 12px;
      padding: 11px 0; border-bottom: 1px solid var(--border); cursor: pointer;
      transition: opacity 0.15s;
    }
    .trending-list li:hover { opacity: 0.7; }
    .trending-list li:last-child { border-bottom: none; }
    .trending-list li::before {
      content: counter(trending, decimal-leading-zero);
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.68rem; color: var(--muted); min-width: 22px; padding-top: 2px;
    }
    .trending-list li .t-title { font-size: 0.82rem; font-weight: 500; line-height: 1.4; }
    .trending-list li .t-meta  { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }

    /* ── Theme Cards ── */
    .themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .theme-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
      padding: 24px 20px; cursor: pointer; transition: all 0.2s;
      display: flex; flex-direction: column; gap: 10px;
    }
    .theme-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
    .theme-icon { font-size: 1.5rem; line-height: 1; }
    .theme-name { font-size: 0.85rem; font-weight: 600; }
    .theme-desc { font-size: 0.72rem; color: var(--body); line-height: 1.5; flex: 1; }
    .theme-arrow { font-size: 0.75rem; color: var(--accent); font-weight: 500; margin-top: 4px; }

    /* theme accent borders */
    .theme-card[data-theme="economy"]     { border-top: 3px solid var(--economy); }
    .theme-card[data-theme="prices"]  { border-top: 3px solid var(--prices); }
    .theme-card[data-theme="labor"]   { border-top: 3px solid var(--labor); }
    .theme-card[data-theme="growth"]  { border-top: 3px solid var(--growth); }
    .theme-card[data-theme="trade"]       { border-top: 3px solid var(--trade); }
    .theme-card[data-theme="global"]      { border-top: 3px solid var(--global); }
    .theme-card[data-theme="people"]      { border-top: 3px solid var(--people); }
    .theme-card[data-theme="environment"] { border-top: 3px solid var(--environment); }

    /* insight card accent borders */
    .insight-card[data-theme="prices"],
    .insight-card[data-theme="prices-policy"] { border-left-color: var(--prices); }
    .insight-card[data-theme="labor"],
    .insight-card[data-theme="labour"]  { border-left-color: var(--labor); }
    .insight-card[data-theme="growth"]  { border-left-color: var(--growth); }
    .insight-card[data-theme="outlook"] { border-left-color: var(--compare); }
    .insight-card[data-theme="trade"]   { border-left-color: var(--trade); }
    .insight-card[data-theme="global"]  { border-left-color: var(--global); }

    /* ════════════════════════════════════════
       DETAIL VIEW
    ════════════════════════════════════════ */
    #detail-view { display: none; }

    .detail-header {
      background: var(--bg); border-bottom: 1px solid var(--border);
      padding: 14px 48px; display: flex; align-items: center; gap: 16px;
    }
    .back-btn {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 0.78rem; color: var(--body); cursor: pointer;
      padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border);
      background: transparent; font-family: inherit; transition: all 0.15s;
    }
    .back-btn:hover { background: var(--bg-alt); color: var(--text); }
    .detail-title { font-size: 0.9rem; font-weight: 600; }
    .detail-subtitle { font-size: 0.75rem; color: var(--muted); margin-left: auto; }

    /* Top-level theme selector */
    .theme-selector {
      display: flex; gap: 4px; padding: 10px 48px;
      border-bottom: 1px solid var(--border); background: var(--bg);
      position: sticky; top: 60px; z-index: 51;
    }
    .theme-sel-btn {
      padding: 6px 16px; font-size: 0.78rem; font-family: inherit; font-weight: 400;
      color: var(--body); background: transparent; border: 1px solid transparent;
      border-radius: 20px; cursor: pointer; transition: all 0.15s;
    }
    .theme-sel-btn:hover { background: var(--bg-alt); color: var(--text); }
    .theme-sel-btn.active { font-weight: 500; border-color: currentColor; }
    .theme-sel-btn[data-theme="economy"]     { color: var(--economy); }
    .theme-sel-btn[data-theme="global"]      { color: var(--global); }
    .theme-sel-btn[data-theme="people"]      { color: var(--people); }
    .theme-sel-btn[data-theme="environment"] { color: var(--environment); }
    .theme-sel-btn.active[data-theme="economy"]     { background: #eff6ff; }
    .theme-sel-btn.active[data-theme="global"]      { background: #f5f3ff; }
    .theme-sel-btn.active[data-theme="people"]      { background: #ecfdf5; }
    .theme-sel-btn.active[data-theme="environment"] { background: #ecfeff; }

    /* Tabs + range in detail */
    .detail-controls {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 48px; border-bottom: 1px solid var(--border); background: var(--bg);
      position: sticky; top: 112px; z-index: 50;
    }
    .tabs { display: flex; overflow-x: auto; }
    .tab-btn {
      padding: 14px 18px; font-size: 0.75rem; font-family: inherit; font-weight: 400;
      color: var(--muted); background: transparent; border: none;
      border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.15s;
      white-space: nowrap; margin-bottom: -1px;
    }
    .tab-btn:hover { color: var(--text); }
    .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

    .range-btns { display: flex; gap: 3px; }
    .range-btn {
      padding: 3px 8px; font-size: 0.62rem; font-family: 'JetBrains Mono', monospace;
      color: var(--muted); background: transparent; border: 1px solid transparent;
      border-radius: 4px; cursor: pointer; transition: all 0.15s;
    }
    .range-btn:hover { border-color: var(--border); color: var(--text); }
    .range-btn.active { color: var(--accent); border-color: #bfdbfe; background: var(--accent-lt); }

    /* Tab panels */
    .tab-panel { display: none; }
    .tab-panel.active { display: block; background: var(--bg-alt); min-height: calc(100vh - 92px); }

    /* Per-chart insight callout */
    .chart-insight { font-size: 0.75rem; color: var(--body); line-height: 1.55; }
    .chart-insight:empty { display: none; }
    .chart-insight strong { color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 0.77rem; }
    .insight-item strong { color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 0.77rem; }

    /* Per-chart tab system */
    .ctabs { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
    .ctab-bar { display: flex; gap: 2px; margin-bottom: 10px; }
    .ctab { background: none; border: none; padding: 4px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 500; color: var(--muted); cursor: pointer; font-family: inherit; transition: background 0.12s, color 0.12s; }
    .ctab:hover { color: var(--text); background: var(--bg-alt); }
    .ctab.active { background: var(--accent-lt); color: var(--accent); }
    .ctab-panel { display: none; font-size: 0.78rem; color: var(--body); line-height: 1.65; }
    .ctab-panel.active { display: block; }
    .ctab-panel br { display: block; content: ''; margin-top: 6px; }

    /* Charts grid */
    .charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 48px; max-width: 1120px; margin: 0 auto; }
    .chart-full { grid-column: 1 / -1; }

    /* Inflation tab layout */
    .tab-section { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
    .tab-section-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); padding: 24px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
    .tab-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
    .tab-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }
    .tab-grid-full { margin-bottom: 20px; }
    .chart-card { background: var(--bg); padding: 28px 32px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    .chart-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
    .chart-header h2 { font-size: 0.68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; margin: 0; }
    .chart-desc { font-size: 0.78rem; color: var(--body); line-height: 1.5; margin-bottom: 16px; max-width: 72ch; }
    .provenance { font-size: 0.58rem; font-family: 'JetBrains Mono', monospace; color: var(--muted); padding: 1px 6px; border: 1px solid var(--border); border-radius: 3px; white-space: nowrap; }
    .card-source { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); display: flex; align-items: center; }
    .chart-export { font-size: 0.58rem; color: var(--muted); display: flex; align-items: center; gap: 3px; text-decoration: none; padding: 1px 6px; border: 1px solid var(--border); border-radius: 3px; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
    .chart-export:hover { color: var(--accent); border-color: var(--accent); }
    .provenance[data-src="FRED"]       { border-color: #bfdbfe; color: #3b82f6; }
    .provenance[data-src="BEA"]        { border-color: #bbf7d0; color: #16a34a; }
    .provenance[data-src="World Bank"] { border-color: #fde68a; color: #d97706; }

    /* Choropleth toggle */
    .toggle-group { display: flex; gap: 3px; margin-left: 8px; }
    .toggle-btn { padding: 2px 9px; font-size: 0.62rem; font-family: 'JetBrains Mono', monospace; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 3px; cursor: pointer; transition: all 0.15s; }
    .toggle-btn.active { color: var(--accent); border-color: #bfdbfe; background: var(--accent-lt); }

    /* Global comparison divider within tabs */
    .chart-section-divider {
      grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
      padding: 12px 0 4px; font-size: 0.6rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
    }
    .chart-section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

    /* ── Footer ── */
    footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 32px 48px; }
    .footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .footer-brand { display: flex; align-items: center; gap: 8px; }
    .footer-brand .logo-rio { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
    .footer-brand .logo-intel { font-size: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--body); }
    .footer-text { font-size: 0.70rem; color: var(--muted); }

    ::-webkit-scrollbar { width: 4px; height: 4px; }
    ::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

    /* Old detail chrome - all hidden (sub-nav replaces them) */
    .detail-header { display: none; }
    .theme-selector { display: none; }
    .detail-controls { display: none; }
    .section-hero {
      background: var(--bg); border-bottom: 1px solid var(--border);
    }
    .section-hero-left { display: flex; flex-direction: column; gap: 2px; }
    .section-hero-title { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
    .section-hero-sub { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

    /* ── Yield curve signal badge ── */
    .yc-signal {
      display: inline-flex; align-items: center;
      padding: 2px 10px; border-radius: 4px;
      font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    }
    .yc-signal.inverted      { background:#fef2f2; color:#dc2626; }
    .yc-signal.deep-inverted { background:#fef2f2; color:#991b1b; }
    .yc-signal.flat          { background:#fffbeb; color:#d97706; }
    .yc-signal.normal        { background:#f0fdf4; color:#16a34a; }

    /* ── Narrative lede ── */
    .narrative-strip {
      display: none; border-bottom: 1px solid var(--border);
      background: var(--bg);
    }
    .narrative-strip.visible { display: block; }
    .narrative-inner {
      max-width: 1120px; margin: 0 auto; padding: 18px 48px;
      display: flex; align-items: baseline; gap: 16px;
    }
    .narrative-label {
      font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.1em; color: var(--accent); white-space: nowrap; flex-shrink: 0;
    }
    .narrative-text {
      font-size: 0.84rem; color: var(--text); line-height: 1.65;
      font-style: italic;
    }
    .narrative-meta {
      font-size: 0.65rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; margin-left: auto;
    }

    /* ── Economic Funnels ────────────────────────────────────── */
    .funnel-grid      { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
    .funnel-card      { background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; }
    .funnel-card-hd   { padding:16px 20px 13px; }
    .funnel-card-name { font-size:0.88rem; font-weight:700; color:var(--text); margin-bottom:2px; }
    .funnel-card-desc { font-size:0.66rem; text-transform:uppercase; letter-spacing:0.07em; color:var(--muted); }
    .funnel-card-q    { font-size:0.78rem; color:var(--body); font-style:italic; line-height:1.45; margin-top:5px; }
    .funnel-tier      { padding:10px 20px 12px; border-top:1px solid #f3f4f6; }
    .funnel-rule      { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
    .funnel-rule-lbl  { font-size:0.6rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--muted); white-space:nowrap; flex-shrink:0; }
    .funnel-rule-line { flex:1; height:1px; background:var(--border); }
    .funnel-tier-num  { font-size:0.6rem; font-weight:700; color:#fff; background:#9ca3af; border-radius:50%; width:14px; height:14px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; margin-right:6px; vertical-align:middle; }
    .funnel-inds      { display:flex; flex-direction:column; gap:5px; }
    .funnel-ind       { display:flex; justify-content:space-between; align-items:center; font-size:0.71rem; color:var(--body); }
    .funnel-ind-val   { font-weight:600; color:var(--text); white-space:nowrap; margin-left:8px; }
    .fi-up   { color:#dc2626; }
    .fi-dn   { color:#16a34a; }
    .fi-flat { color:#9ca3af; }
    .funnel-iq        { padding:14px 20px 16px; background:var(--bg-alt); border-top:1px solid var(--border); margin-top:auto; }
    .funnel-iq-lbl    { font-size:0.6rem; font-weight:700; text-transform:uppercase; letter-spacing:0.09em; color:var(--muted); margin-bottom:10px; }
    .funnel-iq-row    { display:flex; align-items:baseline; gap:6px; margin-bottom:10px; }
    .funnel-iq-num    { font-size:2rem; font-weight:700; line-height:1; color:var(--text); }
    .funnel-iq-max    { font-size:0.72rem; color:var(--muted); }
    .funnel-iq-name   { font-size:0.72rem; font-weight:600; margin-left:auto; }
    .funnel-iq-bar    { height:4px; border-radius:2px; position:relative; margin-bottom:5px; background:linear-gradient(to right,#16a34a 0%,#d97706 50%,#dc2626 100%); }
    .funnel-iq-needle { position:absolute; top:50%; transform:translate(-50%,-50%); width:11px; height:11px; border-radius:50%; background:#fff; border:2px solid #111; box-shadow:0 1px 3px rgba(0,0,0,0.2); }
    .funnel-iq-range  { display:flex; justify-content:space-between; font-size:0.58rem; color:var(--muted); margin-bottom:10px; }
    .funnel-iq-text   { font-size:0.72rem; color:var(--body); line-height:1.55; }
    .funnel-sparkline { display:block; width:100%; height:28px; margin-bottom:6px; }
    .funnel-dig       { display:block; text-align:right; font-size:0.72rem; font-weight:500;
                        color:var(--accent); text-decoration:none; padding:10px 0 2px;
                        letter-spacing:0.01em; }
    .funnel-dig:hover { text-decoration:underline; }
    .funnel-explainer { display:flex; align-items:flex-start; gap:14px; background:#fff; border:1px solid var(--border); border-radius:10px; padding:14px 18px; margin-bottom:20px; }
    .funnel-explainer-text { font-size:0.76rem; color:var(--body); line-height:1.6; }

    /* ── Funnel implication ── */
    .funnel-implication  { padding:11px 20px 14px; background:#f0f9ff; border-top:1px solid #bae6fd; }
    .funnel-impl-label   { font-size:0.59rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#0369a1; margin-bottom:4px; display:flex; align-items:center; gap:5px; }
    .funnel-impl-label::before { content:'↳'; font-size:0.69rem; }
    .funnel-impl-text    { font-size:0.75rem; color:#0c4a6e; line-height:1.55; }

    /* ── Inflation Friction Index ── */
    .ifi-block { background: #111827; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .ifi-inner { max-width: 1120px; margin: 0 auto; padding: 22px 48px;
                 display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
    .ifi-eyebrow { font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
                   letter-spacing: 0.12em; color: #6b7280; margin-bottom: 10px; }
    .ifi-score-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
    .ifi-score { font-size: 3rem; font-weight: 700; line-height: 1; color: #fff; letter-spacing: -0.03em; }
    .ifi-score-max { font-size: 1.1rem; color: #6b7280; }
    .ifi-label { display: inline-block; font-size: 0.72rem; font-weight: 700;
                 padding: 3px 10px; border-radius: 12px; margin-left: 4px; }
    .ifi-label.cooling  { background: rgba(22,163,74,0.15);  color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
    .ifi-label.target   { background: rgba(250,204,21,0.12); color: #fbbf24; border: 1px solid rgba(250,204,21,0.25); }
    .ifi-label.elevated { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
    .ifi-label.sticky   { background: rgba(220,38,38,0.15);  color: #f87171; border: 1px solid rgba(220,38,38,0.3); }
    .ifi-label.worker   { background: rgba(22,163,74,0.15);  color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
    .ifi-label.neutral  { background: rgba(250,204,21,0.12); color: #fbbf24; border: 1px solid rgba(250,204,21,0.25); }
    .ifi-label.employer { background: rgba(220,38,38,0.15);  color: #f87171; border: 1px solid rgba(220,38,38,0.3); }
    .ifi-label.momentum  { background: rgba(22,163,74,0.15);  color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
    .ifi-label.softland  { background: rgba(250,204,21,0.12); color: #fbbf24; border: 1px solid rgba(250,204,21,0.25); }
    .ifi-label.diverging { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
    .ifi-label.late-cycle   { background: rgba(220,38,38,0.15); color: #f87171; border: 1px solid rgba(220,38,38,0.3); }
    .ifi-label.mid-cycle    { background: rgba(250,204,21,0.12); color: #fbbf24; border: 1px solid rgba(250,204,21,0.25); }
    .ifi-label.early-cycle  { background: rgba(22,163,74,0.15);  color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
    .ifi-label.high-stress  { background: rgba(220,38,38,0.15); color: #f87171; border: 1px solid rgba(220,38,38,0.3); }
    .ifi-label.mid-stress   { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
    .ifi-label.accessible   { background: rgba(22,163,74,0.15);  color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }
    .ifi-label.contraction { background: rgba(220,38,38,0.15); color: #f87171; border: 1px solid rgba(220,38,38,0.3); }
    .ifi-bar-track { height: 4px; border-radius: 2px; background: linear-gradient(to right,
                     #16a34a 0%, #d97706 43%, #f97316 65%, #dc2626 100%); position: relative; margin-top: 10px; }
    .ifi-needle { position: absolute; top: 50%; transform: translate(-50%,-50%);
                  width: 11px; height: 11px; border-radius: 50%; background: #fff;
                  border: 2px solid #111827; box-shadow: 0 0 0 2px #dc2626; transition: left 0.5s; }
    .ifi-bar-labels { display: flex; justify-content: space-between; font-size: 0.55rem;
                      color: #4b5563; margin-top: 4px; }
    .ifi-synthesis { font-size: 0.83rem; color: #9ca3af; line-height: 1.65; margin-top: 12px; }
    .ifi-synthesis strong { color: #e5e7eb; font-weight: 500; }
    .ifi-narrative { font-size: 0.78rem; color: #6b7280; line-height: 1.7; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 10px; }
    .ifi-narrative strong { color: #9ca3af; font-weight: 500; }
    .ifi-pills { display: flex; flex-direction: column; gap: 8px; }
    .ifi-pill { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
                border-radius: 8px; padding: 10px 14px;
                display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 8px; align-items: center; }
    .ifi-pill-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
                      letter-spacing: 0.1em; color: #6b7280; grid-column: 1; grid-row: 1; }
    .ifi-pill-val { font-size: 1.05rem; font-weight: 700; color: #fff; grid-column: 2; grid-row: 1 / 3; text-align: right; }
    .ifi-pill-sub { font-size: 0.58rem; color: #4b5563; grid-column: 1; grid-row: 2; }

    /* ── Pricing Pressure Funnel ── */
    .ppf-section { background: var(--bg-alt); border-top: 1px solid var(--border); }
    .ppf-inner   { max-width: 1120px; margin: 0 auto; padding: 24px 48px 24px; }
    .ppf-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
                   letter-spacing: 0.08em; color: var(--text); margin-bottom: 5px; }
    .ppf-desc    { font-size: 0.78rem; color: var(--body); line-height: 1.6; margin-bottom: 18px; }
    .ppf-row     { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr;
                   grid-template-rows: auto auto auto auto auto; gap: 0; align-items: stretch; }
    .ppf-row .funnel-card { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
    .ppf-row .ppf-arrow   { grid-row: span 5; }
    .ppf-row .ppf-narrative { align-self: end; }
    .ppf-row .ppf-implication { min-height: unset; }
    .ppf-arrow   { display: flex; align-items: center; justify-content: center;
                   padding-top: 50px; color: var(--muted); font-size: 1.1rem; }
    .ppf-stage-badge { display: inline-flex; align-items: center; justify-content: center;
                       width: 20px; height: 20px; border-radius: 50%; font-size: 0.62rem;
                       font-weight: 700; color: #fff; background: #374151; margin-right: 7px; flex-shrink: 0; }
    .ppf-stage-context { font-size: 0.74rem; color: var(--body); line-height: 1.6;
                         padding: 10px 16px 12px; border-bottom: 1px solid var(--border); background: var(--bg); }
    .ppf-narrative { font-size: 0.72rem; color: var(--body);
                     padding: 9px 16px 10px; border-top: 1px solid var(--border); line-height: 1.5; }
    .ppf-implication { font-size: 0.72rem; color: #0c4a6e; background: #f0f9ff;
                       border-top: 1px solid #bae6fd; padding: 9px 16px 11px; line-height: 1.55; }
    .ppf-implication-label { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
                             text-transform: uppercase; color: #0369a1; margin-bottom: 3px; }
    .ppf-status { font-size: 0.58rem; font-weight: 700; padding: 2px 6px; border-radius: 3px;
                  margin-right: 5px; font-style: normal; }
    .ppf-status.easing { background: #dcfce7; color: #166534; }
    .ppf-status.sticky { background: #fef3c7; color: #92400e; }
    .ppf-status.rising { background: #fee2e2; color: #991b1b; }

    /* ── Strategic Implications ── */
    .implication-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
    .implication-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
    .implication-eyebrow { font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
                           letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
    .implication-text { font-size: 0.76rem; color: var(--body); line-height: 1.6; }
    .implication-text strong { color: var(--text); font-weight: 600; }

    /* ── Newsletter CTA ── */
    .nl-cta { background: #0d1117; border-top: 1px solid rgba(255,255,255,0.06); }
    .nl-cta-inner {
      max-width: 1120px; margin: 0 auto; padding: 20px 48px;
      display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
    }
    .nl-cta-eyebrow { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #4b5563; margin-bottom: 4px; }
    .nl-cta-headline { font-size: 0.95rem; font-weight: 700; color: #f9fafb; letter-spacing: -0.01em; margin-bottom: 3px; }
    .nl-cta-sub { font-size: 0.74rem; color: #6b7280; line-height: 1.5; }
    .nl-cta-perks { display: flex; gap: 14px; margin-top: 7px; flex-wrap: wrap; }
    .nl-cta-perk { font-size: 0.7rem; color: #9ca3af; display: flex; align-items: center; gap: 5px; }
    .nl-cta-perk::before { content: '✓'; color: #4ade80; font-weight: 700; font-size: 0.65rem; }
    .nl-cta-form { display: flex; gap: 8px; align-items: center; }
    .nl-cta-input {
      width: 150px; padding: 8px 12px;
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
      border-radius: 7px; color: #f9fafb; font-size: 0.78rem; font-family: inherit; outline: none;
    }
    .nl-cta-input::placeholder { color: #4b5563; }
    .nl-cta-input:focus { border-color: rgba(255,255,255,0.25); }
    .nl-cta-btn {
      padding: 8px 18px; background: #f59e0b; border: none;
      border-radius: 7px; color: #111827; font-size: 0.75rem; font-weight: 700;
      font-family: inherit; cursor: pointer; white-space: nowrap; letter-spacing: 0.01em;
    }
    .nl-cta-btn:hover { background: #fbbf24; }
    .nl-cta-success { font-size: 0.82rem; color: #4ade80; font-weight: 600; display: none; }

    /* ── Verdict ── */
    .verdict { background: #111827; }
    .verdict-inner {
      max-width: 1120px; margin: 0 auto; padding: 24px 48px;
      display: grid; grid-template-columns: 1fr 480px; gap: 40px; align-items: center;
    }
    .verdict-eyebrow { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #6b7280; margin-bottom: 12px; }
    .verdict-headline { font-size: 2.1rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #fff; margin-bottom: 14px; }
    .verdict-headline em { color: #f59e0b; font-style: normal; }
    .verdict-body { font-size: 0.92rem; color: #9ca3af; line-height: 1.65; max-width: 480px; margin-bottom: 20px; }
    .verdict-body strong { color: #e5e7eb; font-weight: 500; }
    .regime-block   { border-top:1px solid rgba(255,255,255,0.08); padding-top:16px; margin-top:0; margin-bottom:22px; }
    .regime-eyebrow { font-size:0.62rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#4b5563; margin-bottom:8px; }
    .regime-pill    { display:inline-flex; align-items:center; gap:7px; background:rgba(245,158,11,0.12); border:1px solid rgba(245,158,11,0.25); color:#f59e0b; font-size:0.94rem; font-weight:700; padding:5px 14px; border-radius:20px; margin-bottom:8px; }
    .regime-pill::before { content:'◆'; font-size:0.56rem; }
    .regime-context { font-size:0.875rem; line-height:1.7; color:#6b7280; font-style:italic; }
    .recession-signal { display:flex; align-items:center; gap:10px; margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.08); }
    .rs-label { font-size:0.62rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:#4b5563; white-space:nowrap; }
    .rs-pct { font-size:1.1rem; font-weight:700; color:#f59e0b; line-height:1; }
    .rs-badge { font-size:0.6rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; padding:2px 7px; border-radius:3px; white-space:nowrap; }
    .rs-badge.low { background:rgba(22,163,74,0.15); color:#4ade80; }
    .rs-badge.moderate { background:rgba(245,158,11,0.15); color:#fbbf24; }
    .rs-badge.elevated { background:rgba(249,115,22,0.15); color:#fb923c; }
    .rs-badge.high { background:rgba(220,38,38,0.15); color:#f87171; }
    .rs-bar-wrap { flex:1; height:4px; border-radius:2px; background:linear-gradient(to right,#16a34a 0%,#d97706 50%,#dc2626 100%); position:relative; min-width:60px; }
    .rs-needle { position:absolute; top:50%; transform:translate(-50%,-50%); width:9px; height:9px; border-radius:50%; background:#fff; border:2px solid #d97706; }
    .verdict-signals { display: flex; flex-wrap: wrap; gap: 6px; }
    .vsig { display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 20px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); font-size: 0.74rem; color: #d1d5db; white-space: nowrap; }
    .vsig-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
    .score-panel { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 18px 22px; }
    .score-lbl { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #6b7280; margin-bottom: 8px; }
    .score-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
    .score-num { font-size: 3.4rem; font-weight: 700; line-height: 1; color: #fff; letter-spacing: -0.03em; }
    .score-max { font-size: 0.95rem; color: #6b7280; }
    .score-name { font-size: 0.82rem; font-weight: 600; color: #f59e0b; margin-bottom: 10px; }
    .score-bar-track { height: 5px; border-radius: 3px; position: relative; margin-bottom: 4px; background: linear-gradient(to right,#16a34a 0%,#d97706 50%,#dc2626 100%); }
    .score-needle { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #111827; box-shadow: 0 0 0 2px #f59e0b, 0 1px 4px rgba(0,0,0,0.4); }
    .score-range { display: flex; justify-content: space-between; font-size: 0.64rem; color: #4b5563; margin-bottom: 12px; }
    .score-divider { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 10px; }
    .score-breakdown { display: flex; flex-direction: column; gap: 7px; }
    .sbi { display: flex; align-items: center; gap: 7px; }
    .sbi-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
    .sbi-label { display: flex; align-items: center; gap: 5px; flex-shrink: 0; width: 160px; }
    .sbi-name { font-size: 0.72rem; font-weight: 600; color: #d1d5db; white-space: nowrap; }
    .sbi-sep { font-size: 0.62rem; color: #4b5563; }
    .sbi-status { font-size: 0.68rem; color: #6b7280; white-space: nowrap; }
    .sbi-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); position: relative; }
    .sbi-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 2px; }
    .sbi-val { font-size: 0.72rem; font-weight: 600; width: 20px; text-align: right; flex-shrink: 0; }

    /* ── Macro Signal section ── */
    .mss { background: #fff; border-top: 1px solid var(--border); }
    .mss-in { max-width: 1120px; margin: 0 auto; padding: 24px 48px; }
    .mss-eyebrow { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
    .mss-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: stretch; }
    .mss-card { background: #f9fafb; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
    .mss-card-chart { display: flex; flex-direction: column; }
    .mss-card-chart #iq-chart-svg { flex: 1; height: auto; min-height: 0; }
    .mss-card-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
    .mss-card-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; margin-bottom: 16px; }
    .mss-chart-foot { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--muted); margin-top: 4px; }
    /* recession probability */
    .rp-big { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: #d97706; margin-bottom: 6px; }
    .rp-big span { font-size: 1.5rem; font-weight: 600; }
    .rp-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 2px 9px; border-radius: 4px; background: #fef3c7; color: #92400e; margin-bottom: 14px; }
    .rp-bar-wrap { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(to right,#16a34a 0%,#d97706 50%,#dc2626 100%); margin-bottom: 4px; }
    .rp-needle { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #d97706; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
    .rp-range { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--muted); margin-bottom: 10px; }
    .rp-qual-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
    .rp-qual-pill { flex-shrink: 0; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 3px; background: #f3f4f6; color: #374151; }
    .rp-qual-pill.low { background: #dcfce7; color: #166534; }
    .rp-qual-pill.moderate { background: #fef3c7; color: #92400e; }
    .rp-qual-pill.elevated { background: #fed7aa; color: #9a3412; }
    .rp-qual-pill.high { background: #fee2e2; color: #991b1b; }
    .rp-qual-context { font-size: 0.7rem; color: var(--muted); line-height: 1.4; }
    .rp-contributors { margin-bottom: 0; }
    .rp-contrib { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
    .rp-contrib:last-child { margin-bottom: 0; }
    .rp-contrib-name { font-size: 0.72rem; color: #374151; flex: 1; }
    .rp-contrib-dir { font-size: 0.62rem; font-weight: 600; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
    .rp-contrib-dir.raising { background: #fee2e2; color: #991b1b; }
    .rp-contrib-dir.lowering { background: #dcfce7; color: #166534; }
    .rp-div { height: 1px; background: var(--border); margin-bottom: 14px; }
    .rp-inputs-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
    .rpi { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
    .rpi:last-child { margin-bottom: 0; }
    .rpi-name { font-size: 0.72rem; color: #374151; flex: 1; }
    .rpi-signal { font-size: 0.65rem; font-weight: 600; padding: 1px 7px; border-radius: 3px; white-space: nowrap; }
    .rpi-red { background: #fee2e2; color: #991b1b; }
    .rpi-amber { background: #fef3c7; color: #92400e; }
    .rpi-green { background: #dcfce7; color: #166534; }
    .rpi-wt { font-size: 0.65rem; color: var(--muted); width: 28px; text-align: right; flex-shrink: 0; }
    /* AI insight */
    .mss-insight { margin-top: 16px; background: #f0f4ff; border: 1px solid #c7d7fe; border-left: 3px solid #4f46e5; border-radius: 10px; padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; }
    .mss-insight-icon { font-size: 0.95rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
    .mss-insight-lbl { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #4f46e5; margin-bottom: 4px; }
    .mss-insight-text { font-size: 0.8rem; color: #374151; line-height: 1.65; }
    .mss-insight-text strong { color: #111827; font-weight: 600; }

  /* ══════════════════════════════════════════════
     MOBILE BREAKPOINTS  (max-width: 768px)
  ══════════════════════════════════════════════ */
  @media (max-width: 768px) {

    /* ── Header ── */
    .site-header-inner { padding: 0 16px; }
    .site-nav {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .site-nav::-webkit-scrollbar { display: none; }
    .sec-btn { padding: 0 10px; font-size: 0.75rem; }
    .header-actions { display: none; }

    /* ── Range bar ── */
    .range-bar { padding: 0 16px; }

    /* ── Page container ── */
    .container { padding: 0 16px; }

    /* ── Snapshot KPI grid: 3-col → 2-col ── */
    .snap-kpi-grid {
      grid-template-columns: 1fr 1fr;
      padding: 16px;
    }

    /* ── Positioning line ── */
    #positioning-line { display: none; }

    /* ── Metric strip (tab KPI bar) ── */
    .metrics-inner { padding: 0 0 0 16px; }
    .metrics-geo   { padding: 8px 16px 0; }
    .metric-item   { flex: 0 0 140px; padding: 16px 16px; }
    .metric-value  { font-size: 1.3rem; }

    /* ── Key Indicators grid: 4-col → 2-col ── */
    #featured-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
    #key-indicators-inner {
      padding: 20px 16px 32px !important;
    }

    /* ── Charts grid ── */
    .charts {
      grid-template-columns: 1fr;
      padding: 16px;
    }

    /* ── Tab grids ── */
    .tab-grid-2 { grid-template-columns: 1fr; }
    .tab-grid-3 { grid-template-columns: 1fr; }

    /* ── Funnel grid: 3-col → 1-col ── */
    .funnel-grid { grid-template-columns: 1fr; }

    /* ── PPF row: multi-col → 1-col ── */
    .ppf-row {
      grid-template-columns: 1fr;
      grid-template-rows: none;
      gap: 16px;
    }
    .ppf-row .ppf-arrow { display: none; }
    .ppf-row .funnel-card {
      display: flex;
      grid-row: auto;
      grid-template-rows: none;
    }
    .ppf-inner { padding: 20px 16px; }

    /* ── Dark verdict section (.ifi-inner): side-by-side → stacked ── */
    .ifi-inner {
      grid-template-columns: 1fr;
      padding: 16px;
      gap: 20px;
    }

    /* ── Intelligence / MacroIQ history section (.verdict-inner): → stacked ── */
    .verdict-inner {
      grid-template-columns: 1fr;
      padding: 16px 16px;
      gap: 24px;
    }

    /* ── Macro Signal section (.mss-grid): → stacked ── */
    .mss-grid { grid-template-columns: 1fr; }
    .mss-in { padding: 16px; }

    /* ── Newsletter CTA (.nl-cta-inner): → stacked ── */
    .nl-cta-inner {
      grid-template-columns: 1fr;
      padding: 16px;
      gap: 16px;
    }
    /* Newsletter form fields: input + button → stacked ── */
    .nl-cta-form { flex-direction: column; align-items: stretch; }
    .nl-cta-input { width: 100%; }
    .nl-cta-btn { width: 100%; text-align: center; }

    /* ── Hero stat bar inline-style grid: 5-col → 2-col ── */
    #hero-stat-bar {
      grid-template-columns: repeat(2, 1fr) !important;
      padding: 0 16px !important;
    }

    /* ── Calendar event grid: 1fr 360px → 1-col ── */
    #cal-event-grid {
      grid-template-columns: 1fr !important;
    }

    /* ── Calendar outer padding ── */
    #cal-main-inner { padding: 20px 16px 40px !important; }

    /* ── Calendar next-event banner ── */
    #cal-next-banner > div {
      padding: 0 16px !important;
      flex-wrap: wrap;
      gap: 6px 12px;
    }
    #cal-next-banner > div > div,
    #cal-next-banner > div > button {
      margin-left: 0 !important;
    }

    /* ── About page hero grid: 1fr auto → 1-col ── */
    #about-hero-grid {
      grid-template-columns: 1fr !important;
      padding: 0 16px !important;
      gap: 24px;
    }

    /* ── About page input streams grid: repeat(4,1fr) → repeat(2,1fr) ── */
    #about-streams-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ── About page pillars grid: repeat(3,1fr) → 1-col ── */
    #about-pillars {
      grid-template-columns: 1fr !important;
    }

    /* ── Funnel card body padding ── */
    .funnel-card { min-width: 0; }

    /* ── Score panel: prevent overflow in verdict ── */
    .score-panel { overflow-x: auto; }

    /* ── Verdict headline font size ── */
    .verdict-headline { font-size: 1.5rem; }

  }
