/* ── BOTWAVEBOMBA — main.css ── */
/* Dark editorial theme — DM Sans / Playfair Display / DM Mono */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Mono:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── BASE (Dark editorial default) ── */
:root {
  --theme-primary:    #BF3B2D;
  --theme-accent:     #BF3B2D;
  --theme-gold:       #C8902A;
  --theme-bg-deep:    #0D0D0D;
  --theme-bg-card:    #161616;
  --theme-bg-nav:     #111111;
  --theme-border:     rgba(255,255,255,0.12);
  --theme-text:       #F0EDE8;
  --theme-text-muted: rgba(255,255,255,0.30);

  /* Semantic signal colors — NEVER overridden by theme */
  --signal-western:     #2255CC;
  --signal-adversarial: #CC2222;
  --signal-neutral:     #5E7070;
  --signal-blindspot:   #C8902A;
  --signal-verified:    #059669;

  /* Bias spectrum — L/C/R */
  --signal-left:        #2563eb;
  --signal-center:      #5E7070;
  --signal-right:       #CC2222;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Surfaces */
  --bg:            #111111;
  --bg-card:       #161616;
  --bg-hover:      #1A1A1A;
  --bg-surface:    #1A1A1A;
  --border-subtle:  rgba(255,255,255,0.10);
  --border-default: rgba(255,255,255,0.12);
  --text-primary:  #F0EDE8;
  --text-secondary: rgba(240,237,232,0.75);
  --text-muted:    rgba(255,255,255,0.30);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.40);
  --shadow-hover:  0 4px 12px rgba(0,0,0,0.55);
}

/* ── THEME 1: CHARGERS POWDER BLUE ── */
[data-theme="powder-blue"] {
  --theme-primary:    #0080C6;
  --theme-accent:     #CC8800;
  --theme-gold:       #CC8800;
  --theme-bg-deep:    #0a1218;
  --theme-bg-card:    #0d1a22;
  --theme-bg-nav:     #0a1218;
  --theme-border:     rgba(0,128,198,0.25);
  --theme-text:       #D0E8F4;
  --theme-text-muted: rgba(208,232,244,0.35);
  --bg:            #0a1218;
  --bg-card:       #0d1a22;
  --bg-hover:      #112030;
  --bg-surface:    #0d1a22;
  --text-primary:  #D0E8F4;
  --text-secondary: rgba(208,232,244,0.75);
  --text-muted:    rgba(208,232,244,0.35);
  --border-subtle:  rgba(0,128,198,0.18);
  --border-default: rgba(0,128,198,0.25);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.55);
  --shadow-hover:  0 4px 12px rgba(0,128,198,0.18);
}

/* ── THEME 2: CHARGERS NAVY ── */
[data-theme="chargers-navy"] {
  --theme-primary:    #4477DD;
  --theme-accent:     #FFB612;
  --theme-gold:       #FFB612;
  --theme-bg-deep:    #080c18;
  --theme-bg-card:    #0d1228;
  --theme-bg-nav:     #080c18;
  --theme-border:     rgba(68,119,221,0.25);
  --theme-text:       #C8D4F0;
  --theme-text-muted: rgba(200,212,240,0.35);
  --bg:            #080c18;
  --bg-card:       #0d1228;
  --bg-hover:      #121838;
  --bg-surface:    #0d1228;
  --text-primary:  #C8D4F0;
  --text-secondary: rgba(200,212,240,0.75);
  --text-muted:    rgba(200,212,240,0.35);
  --border-subtle:  rgba(68,119,221,0.18);
  --border-default: rgba(68,119,221,0.25);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.55);
  --shadow-hover:  0 4px 12px rgba(0,48,135,0.18);
}

/* ── THEME 3: LOS ANGELES DODGERS ── */
[data-theme="dodgers"] {
  --theme-primary:    #3380CC;
  --theme-accent:     #EF3E42;
  --theme-gold:       #EF3E42;
  --theme-bg-deep:    #080f1a;
  --theme-bg-card:    #0d1828;
  --theme-bg-nav:     #080f1a;
  --theme-border:     rgba(51,128,204,0.25);
  --theme-text:       #C0D4EE;
  --theme-text-muted: rgba(192,212,238,0.35);
  --bg:            #080f1a;
  --bg-card:       #0d1828;
  --bg-hover:      #102035;
  --bg-surface:    #0d1828;
  --text-primary:  #C0D4EE;
  --text-secondary: rgba(192,212,238,0.75);
  --text-muted:    rgba(192,212,238,0.35);
  --border-subtle:  rgba(0,90,156,0.18);
  --border-default: rgba(51,128,204,0.25);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.55);
  --shadow-hover:  0 4px 12px rgba(0,90,156,0.18);
}

/* ── THEME 4: LOS ANGELES LAKERS ── */
[data-theme="lakers"] {
  --theme-primary:    #7744BB;
  --theme-accent:     #FDB927;
  --theme-gold:       #FDB927;
  --theme-bg-deep:    #0d0814;
  --theme-bg-card:    #160d20;
  --theme-bg-nav:     #0d0814;
  --theme-border:     rgba(119,68,187,0.25);
  --theme-text:       #DDD0F0;
  --theme-text-muted: rgba(221,208,240,0.35);
  --bg:            #0d0814;
  --bg-card:       #160d20;
  --bg-hover:      #1e1230;
  --bg-surface:    #160d20;
  --text-primary:  #DDD0F0;
  --text-secondary: rgba(221,208,240,0.75);
  --text-muted:    rgba(221,208,240,0.35);
  --border-subtle:  rgba(85,37,131,0.22);
  --border-default: rgba(119,68,187,0.25);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.55);
  --shadow-hover:  0 4px 12px rgba(85,37,131,0.18);
}


/* ── THEME 5: SAN DIEGO PADRES ── */
[data-theme="padres"] {
  --theme-primary:    #FFC425;
  --theme-accent:     #E87722;
  --theme-gold:       #693F23;
  --theme-bg-deep:    #0f0a08;
  --theme-bg-card:    #1a110d;
  --theme-bg-nav:     #12090a;
  --theme-border:     rgba(255,196,37,0.20);
  --theme-text:       #F0E4D0;
  --theme-text-muted: rgba(240,228,208,0.35);
  --bg:            #0f0a08;
  --bg-card:       #1a110d;
  --bg-hover:      #2a1a12;
  --bg-surface:    #1a110d;
  --text-primary:  #F0E4D0;
  --text-secondary: rgba(240,228,208,0.75);
  --text-muted:    rgba(240,228,208,0.35);
  --border-subtle:  rgba(105,63,35,0.30);
  --border-default: rgba(255,196,37,0.20);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.60);
  --shadow-hover: 0 4px 12px rgba(232,119,34,0.18);
}


/* ── THEME 6: MORNING EDITION ── */
[data-theme="morning-edition"] {
  --theme-primary:    #1A1A1A;
  --theme-accent:     #B22222;
  --theme-gold:       #8B7355;
  --theme-bg-deep:    #F5F0E8;
  --theme-bg-card:    #FFFEF7;
  --theme-bg-nav:     #EDE8DC;
  --theme-border:     rgba(0,0,0,0.12);
  --theme-text:       #1A1A1A;
  --theme-text-muted: rgba(26,26,26,0.40);
  --bg:            #F5F0E8;
  --bg-card:       #FFFEF7;
  --bg-hover:      #F0EBD8;
  --bg-surface:    #FFFEF7;
  --text-primary:  #1A1A1A;
  --text-secondary: rgba(26,26,26,0.70);
  --text-muted:    rgba(26,26,26,0.40);
  --border-subtle:  rgba(0,0,0,0.08);
  --border-default: rgba(0,0,0,0.12);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(178,34,34,0.10);
}

/* ── THEME 7: GREEN SCREEN ── */
[data-theme="green-screen"] {
  --theme-primary:    #00FF41;
  --theme-accent:     #FFB000;
  --theme-gold:       #00CC33;
  --theme-bg-deep:    #0A0A0A;
  --theme-bg-card:    #0D120D;
  --theme-bg-nav:     #0A0E0A;
  --theme-border:     rgba(0,255,65,0.18);
  --theme-text:       #00FF41;
  --theme-text-muted: rgba(0,255,65,0.30);
  --bg:            #0A0A0A;
  --bg-card:       #0D120D;
  --bg-hover:      #121A12;
  --bg-surface:    #0D120D;
  --text-primary:  #00FF41;
  --text-secondary: rgba(0,255,65,0.70);
  --text-muted:    rgba(0,255,65,0.30);
  --border-subtle:  rgba(0,255,65,0.10);
  --border-default: rgba(0,255,65,0.18);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.55);
  --shadow-hover: 0 4px 12px rgba(0,255,65,0.12);
}

/* ── THEME 8: SAGE BRUSH ── */
[data-theme="sage-brush"] {
  --theme-primary:    #8B8552;
  --theme-accent:     #C4A35A;
  --theme-gold:       #5C6B3C;
  --theme-bg-deep:    #0E0E0A;
  --theme-bg-card:    #16160F;
  --theme-bg-nav:     #11110B;
  --theme-border:     rgba(139,133,82,0.22);
  --theme-text:       #D4CCAA;
  --theme-text-muted: rgba(212,204,170,0.30);
  --bg:            #0E0E0A;
  --bg-card:       #16160F;
  --bg-hover:      #1E1E15;
  --bg-surface:    #16160F;
  --text-primary:  #D4CCAA;
  --text-secondary: rgba(212,204,170,0.70);
  --text-muted:    rgba(212,204,170,0.30);
  --border-subtle:  rgba(139,133,82,0.12);
  --border-default: rgba(139,133,82,0.22);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.55);
  --shadow-hover: 0 4px 12px rgba(139,133,82,0.15);
}

/* ── THEME 9: GLOBAL SOUTH ── */
[data-theme="global-south"] {
  --theme-primary:    #D2691E;
  --theme-accent:     #E8A838;
  --theme-gold:       #8B4513;
  --theme-bg-deep:    #100C08;
  --theme-bg-card:    #1A1410;
  --theme-bg-nav:     #13100A;
  --theme-border:     rgba(210,105,30,0.22);
  --theme-text:       #F0E0CC;
  --theme-text-muted: rgba(240,224,204,0.30);
  --bg:            #100C08;
  --bg-card:       #1A1410;
  --bg-hover:      #261A12;
  --bg-surface:    #1A1410;
  --text-primary:  #F0E0CC;
  --text-secondary: rgba(240,224,204,0.70);
  --text-muted:    rgba(240,224,204,0.30);
  --border-subtle:  rgba(139,69,19,0.18);
  --border-default: rgba(210,105,30,0.22);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.60);
  --shadow-hover: 0 4px 12px rgba(210,105,30,0.15);
}

/* ── THEME 10: NIGHT SHIFT ── */
[data-theme="night-shift"] {
  --theme-primary:    #AAAAAA;
  --theme-accent:     #CC4444;
  --theme-gold:       #888888;
  --theme-bg-deep:    #000000;
  --theme-bg-card:    #080808;
  --theme-bg-nav:     #040404;
  --theme-border:     rgba(170,170,170,0.10);
  --theme-text:       #CCCCCC;
  --theme-text-muted: rgba(170,170,170,0.25);
  --bg:            #000000;
  --bg-card:       #080808;
  --bg-hover:      #111111;
  --bg-surface:    #080808;
  --text-primary:  #CCCCCC;
  --text-secondary: rgba(170,170,170,0.65);
  --text-muted:    rgba(170,170,170,0.25);
  --border-subtle:  rgba(170,170,170,0.06);
  --border-default: rgba(170,170,170,0.10);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.70);
  --shadow-hover: 0 4px 12px rgba(204,68,68,0.10);
}

/* ── THEME 11: RIOT CLUB ── */
[data-theme="riot-club"] {
  --theme-primary:    #FFD600;
  --theme-accent:     #FF0054;
  --theme-gold:       #FFD600;
  --theme-bg-deep:    #0A0A00;
  --theme-bg-card:    #141410;
  --theme-bg-nav:     #0C0C06;
  --theme-border:     rgba(255,214,0,0.22);
  --theme-text:       #FFD600;
  --theme-text-muted: rgba(255,214,0,0.25);
  --bg:            #0A0A00;
  --bg-card:       #141410;
  --bg-hover:      #1A1A10;
  --bg-surface:    #141410;
  --text-primary:  #FFD600;
  --text-secondary: rgba(255,214,0,0.70);
  --text-muted:    rgba(255,214,0,0.25);
  --border-subtle:  rgba(255,214,0,0.10);
  --border-default: rgba(255,214,0,0.22);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.60);
  --shadow-hover: 0 4px 12px rgba(255,0,84,0.18);
}

/* ── THEME 12: CORKBOARD (Unwarranted Influence aesthetic) ── */
/* Black paper-textured background, cream cards, Special Elite + Oswald.
   The "corkboard" theme is the default for the visual-rearchitecture
   pass. All variables needed for the rest of the stylesheet to render
   as black/cream/red are present here. Cross-ref: botwavebomba visual
   upgrade 2026-07-07. */
[data-theme="corkboard"] {
  /* Color tokens (book-on-corkboard palette) */
  --theme-primary:    #d71920;          /* obey-red */
  --theme-accent:     #d71920;
  --theme-gold:       #ffb800;          /* pin-yellow */
  --theme-bg-deep:    #0a0a0a;
  --theme-bg-card:    #f4e9d5;          /* cream index-card */
  --theme-bg-nav:     #0a0a0a;
  --theme-border:     rgba(212, 207, 196, 0.30);
  --theme-text:       #f4e9d5;          /* cream on black */
  --theme-text-muted: rgba(244, 233, 213, 0.45);
  /* Surfaces */
  --bg:            #0a0a0a;
  --bg-card:       #f4e9d5;            /* paper cards on black */
  --bg-hover:      #ead9b8;
  --bg-surface:    #141210;            /* darker surface for inputs/modals */
  --text-primary:  #0a0a0a;            /* dark ink on cream cards */
  --text-secondary: rgba(10,10,10,0.75);
  --text-muted:    rgba(10,10,10,0.45);
  --border-subtle:  rgba(244, 233, 213, 0.10);
  --border-default: rgba(212, 207, 196, 0.30);
  /* Strings (the bias / ownership graph) */
  --string:        #ff1a1a;
  --string-glow:   rgba(255, 50, 50, 0.55);
  /* Tag colors (per-source classification) */
  --tag-convicted: #d71920;
  --tag-enabler:   #c95e30;
  --tag-associate: #ffb800;
  --tag-mentioned: #6b6b6b;
  --tag-shell:     #2d5a3d;
  --tag-property:  #5a3d2d;
  --tag-aircraft:  #3d2d5a;
  --tag-org:       #2d3d5a;
  /* Shadows (paper drops on black, not dark on dark) */
  --shadow-card:   0 4px 12px rgba(0,0,0,0.55), 0 1px 0 rgba(244,233,213,0.04) inset;
  --shadow-hover:  0 8px 22px rgba(0,0,0,0.70), 0 0 0 1px rgba(215,25,32,0.30);
}

/* Paper texture overlay — only in corkboard theme, applied to body */
[data-theme="corkboard"] body {
  background:
    radial-gradient(ellipse at center, #1a1410 0%, #0a0a0a 70%),
    #0a0a0a;
  font-family: 'Special Elite', 'Courier Prime', monospace;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
[data-theme="corkboard"] body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.4  0 0 0 0 0.4  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  opacity: 0.4;
}

/* Headings: Oswald condensed uppercase (book promo treatment) */
[data-theme="corkboard"] h1,
[data-theme="corkboard"] h2,
[data-theme="corkboard"] h3,
[data-theme="corkboard"] .bwb-display {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f4e9d5;
}
[data-theme="corkboard"] body { color: #f4e9d5; }
[data-theme="corkboard"] .bwb-topnav a { color: #f4e9d5; }
[data-theme="corkboard"] .bwb-topnav a:hover,
[data-theme="corkboard"] .bwb-topnav a.active { color: var(--theme-primary); border-color: var(--theme-primary); }
[data-theme="corkboard"] h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 0.95; }
[data-theme="corkboard"] h1 span,
[data-theme="corkboard"] .bwb-accent { color: var(--theme-primary); }
[data-theme="corkboard"] h2 { font-size: 1.4rem; line-height: 1.05; margin-bottom: 0.5em; }
[data-theme="corkboard"] h3 { font-size: 1rem; line-height: 1.1; }

/* Cards: cream paper with paper-clip corner + subtle drop */
[data-theme="corkboard"] .bwb-card,
[data-theme="corkboard"] article.bwb-card {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(10,10,10,0.10);
  border-radius: 1px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* slight rotation for the pinned-receipt feel */
  transform: rotate(-0.25deg);
}
[data-theme="corkboard"] .bwb-card:nth-child(even) { transform: rotate(0.35deg); }
[data-theme="corkboard"] .bwb-card:nth-child(3n)   { transform: rotate(-0.15deg); }
[data-theme="corkboard"] .bwb-card:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.012);
  box-shadow: var(--shadow-hover);
  z-index: 5;
}
/* Top color ribbon — the "category tab" on a pinned index card */
[data-theme="corkboard"] .bwb-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--theme-primary) 0%, var(--theme-primary) 30%,
    var(--theme-gold) 30%, var(--theme-gold) 60%,
    var(--theme-primary) 60%, var(--theme-primary) 100%);
  z-index: 2;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
/* Pin dot top-center — the "pinned" effect */
[data-theme="corkboard"] .bwb-card::after {
  content: "";
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px;
  background: radial-gradient(circle at 30% 30%, #ff5050 0%, var(--theme-primary) 50%, #8b0000 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.45);
  z-index: 3;
}
[data-theme="corkboard"] .bwb-card-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
[data-theme="corkboard"] .bwb-card-summary {
  font-family: 'Lora', Georgia, serif;
  color: rgba(10,10,10,0.78);
  line-height: 1.5;
}
[data-theme="corkboard"] .bwb-card-source-count,
[data-theme="corkboard"] .bwb-bias-meta,
[data-theme="corkboard"] .bwb-card-thumb-badges {
  font-family: 'Special Elite', 'Courier Prime', monospace;
  color: rgba(10,10,10,0.75);
}

/* Receipts — red border on cream */
[data-theme="corkboard"] .bwb-receipt,
[data-theme="corkboard"] .bwb-funding-chip,
[data-theme="corkboard"] .bwb-editorial-frame {
  border-color: var(--theme-primary) !important;
}
[data-theme="corkboard"] .bwb-funding-chip {
  background: rgba(215, 25, 32, 0.08);
  color: #8b0000;
  border: 1px solid rgba(215, 25, 32, 0.30);
  font-family: 'Special Elite', monospace;
}
[data-theme="corkboard"] .bwb-editorial-frame {
  background: var(--bg-surface);
  color: var(--theme-text);
  border: 1px solid rgba(215, 25, 32, 0.40);
  box-shadow: 0 0 0 1px rgba(215, 25, 32, 0.10) inset;
}
[data-theme="corkboard"] .bwb-editorial-frame-label {
  color: var(--theme-primary);
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

/* Legend dots: large, with red-string glow */
[data-theme="corkboard"] .bwb-legend-dot {
  width: 10px; height: 10px;
  box-shadow: 0 0 8px currentColor;
}

/* ── COVERAGE GAP PANEL (the front-page differentiator) ── */
.bwb-coverage-gap {
  max-width: 1400px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  background: rgba(10,10,10,0.04);
  border: 1px solid rgba(10,10,10,0.10);
  border-left: 4px solid var(--theme-primary);
  font-family: var(--font-mono);
}
.bwb-cg-eyebrow {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin-bottom: 10px;
}
.bwb-cg-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.bwb-cg-stat {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 70px;
}
.bwb-cg-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.bwb-cg-lbl {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
}
.bwb-cg-bar-wrap { flex: 1; min-width: 240px; }
.bwb-cg-bar-lbl {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.bwb-cg-bar {
  display: flex;
  height: 12px;
  background: rgba(10,10,10,0.06);
  border: 1px solid rgba(10,10,10,0.10);
  overflow: hidden;
  width: 100%;
}
.bwb-cg-seg {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.bwb-cg-seg.western     { background: var(--bloc-western, #3b82f6); }
.bwb-cg-seg.non-aligned { background: var(--bloc-neutral, #10b981); }
.bwb-cg-seg.adversarial { background: var(--bloc-adversarial, #ef4444); }
.bwb-cg-seg.other       { background: rgba(10,10,10,0.18); }
.bwb-cg-bar-legend {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.bwb-cg-bar-legend .bwb-bloc-bullet {
  display: inline-block; width: 8px; height: 8px;
  margin: 0 4px 0 8px; border-radius: 50%;
  vertical-align: -1px;
}
.bwb-cg-headline {
  flex-basis: 100%;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(10,10,10,0.15);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  max-width: 80ch;
}
.bwb-cg-headline b { color: var(--theme-primary); font-style: normal; }

/* G17 — region gap grid (per non-Western region % of corpus) */
.bwb-cg-region-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bwb-cg-region-lbl {
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--signal-faded, rgba(255,255,255,0.4));
  margin-bottom: 8px;
}
.bwb-cg-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 4px;
  margin-bottom: 8px;
}
.bwb-cg-region-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  transition: background 0.2s;
}
.bwb-cg-region-cell--green { background: rgba(46, 160, 67, 0.16); border-color: rgba(46, 160, 67, 0.35); }
.bwb-cg-region-cell--amber { background: rgba(255, 184, 0, 0.14); border-color: rgba(255, 184, 0, 0.35); }
.bwb-cg-region-cell--red   { background: rgba(215, 25, 32, 0.18); border-color: rgba(215, 25, 32, 0.4); }
.bwb-cg-region-name {
  font-size: 8.5px;
  letter-spacing: 0.6px;
  color: var(--text-secondary, rgba(255,255,255,0.55));
  text-transform: uppercase;
  margin-bottom: 2px;
}
.bwb-cg-region-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  line-height: 1;
}
.bwb-cg-delta {
  font-size: 11px;
  color: var(--text-secondary, rgba(255,255,255,0.65));
  font-style: italic;
  line-height: 1.4;
  border-top: 1px dashed rgba(255,255,255,0.08);
  padding-top: 8px;
  margin-top: 4px;
}
.bwb-cg-delta b {
  color: var(--text-primary, #fff);
  font-style: normal;
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  font-size: 9.5px;
  letter-spacing: 1px;
}
[data-bwb-theme="corkboard"] .bwb-cg-region-row { border-top-color: rgba(10,10,10,0.12); }
[data-bwb-theme="corkboard"] .bwb-cg-region-cell { background: rgba(0,0,0,0.04); }
[data-bwb-theme="corkboard"] .bwb-cg-region-name { color: rgba(10,10,10,0.6); }
[data-bwb-theme="corkboard"] .bwb-cg-region-val  { color: #0a0a0a; }
[data-bwb-theme="corkboard"] .bwb-cg-delta { color: rgba(10,10,10,0.7); border-top-color: rgba(10,10,10,0.12); }
[data-bwb-theme="corkboard"] .bwb-cg-delta b { color: #0a0a0a; }
[data-bwb-theme="corkboard"] .bwb-cg-region-cell--green { background: rgba(46, 160, 67, 0.18); border-color: rgba(46, 160, 67, 0.4); }
[data-bwb-theme="corkboard"] .bwb-cg-region-cell--amber { background: rgba(180, 130, 0, 0.18); border-color: rgba(180, 130, 0, 0.4); }
[data-bwb-theme="corkboard"] .bwb-cg-region-cell--red   { background: rgba(180, 30, 30, 0.18); border-color: rgba(180, 30, 30, 0.4); }

/* Corkboard-specific coverage gap — cream paper with red tape */
[data-theme="corkboard"] .bwb-coverage-gap {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(10,10,10,0.15);
  border-left: 4px solid var(--theme-primary);
  box-shadow: var(--shadow-card);
  position: relative;
  transform: rotate(-0.2deg);
}
[data-theme="corkboard"] .bwb-coverage-gap::after {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 50px; height: 14px;
  background: rgba(255, 184, 0, 0.55);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-theme="corkboard"] .bwb-cg-num { color: #0a0a0a; }
[data-theme="corkboard"] .bwb-cg-lbl { color: rgba(10,10,10,0.6); }
[data-theme="corkboard"] .bwb-cg-headline { color: #0a0a0a; border-top-color: rgba(10,10,10,0.15); }

/* Header / nav (injected by site-chrome.js) */
[data-theme="corkboard"] [data-bwb-chrome] {
  background: var(--bg) !important;
  border-color: rgba(215, 25, 32, 0.25) !important;
  color: var(--theme-text) !important;
}
[data-theme="corkboard"] [data-bwb-chrome] a {
  color: var(--theme-text) !important;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}
[data-theme="corkboard"] [data-bwb-chrome] a.active,
[data-theme="corkboard"] [data-bwb-chrome] a:hover {
  color: var(--theme-primary) !important;
}

/* Hero / page-intro block (used on super-donor.html) */
[data-theme="corkboard"] .bwb-hero {
  border: 2px solid var(--theme-primary);
  background: rgba(215, 25, 32, 0.04);
  padding: 28px 32px;
  margin-bottom: 32px;
  position: relative;
}
[data-theme="corkboard"] .bwb-hero::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: var(--theme-primary);
  box-shadow: 0 0 12px rgba(215,25,32,0.60);
}
[data-theme="corkboard"] .bwb-hero-eyebrow {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin-bottom: 8px;
}
[data-theme="corkboard"] .bwb-hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--theme-text);
  margin-bottom: 14px;
}
[data-theme="corkboard"] .bwb-hero-body {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(244,233,213,0.85);
  max-width: 70ch;
}

/* ── GLOBAL RESET + BODY ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--theme-primary); text-decoration: none; }
a:hover { opacity: 0.8; }

img { max-width: 100%; }

/* ── HEADER ── */
.bwb-header {
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.bwb-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bwb-header--compact .bwb-header-inner {
  height: 48px;
}

.bwb-logo-lockup { display: flex; flex-direction: column; gap: 2px; }

.bwb-logo {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-primary);
  white-space: nowrap;
}

.bwb-logo--small { font-size: 13px; }

.bwb-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.bwb-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bwb-pipeline-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--signal-verified);
  white-space: nowrap;
}

.bwb-pipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-verified);
  animation: livepulse 2s infinite;
}

/* Corpus-age sub-label inside the BIAS-FP badge. Sits underneath the
   "N rated · M awaiting" line, shows "53d ago" / "8h ago" / "just now" to
   surface pipeline freshness without crowding the chrome. */
.bwb-fp-gap-asof {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--signal-faded, rgba(255,255,255,0.35));
  margin-top: 2px;
  text-transform: uppercase;
}
[data-bwb-theme="corkboard"] .bwb-fp-gap-asof { color: rgba(26,20,16,0.45); }

@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.bwb-topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bwb-topnav a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.15s;
  text-transform: uppercase;
}

.bwb-topnav a:hover,
.bwb-topnav a.active {
  color: var(--theme-primary);
  border-color: var(--theme-primary);
  opacity: 1;
}

/* ── STATS BAR ── */
.bwb-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--theme-border);
  flex-wrap: wrap;
}

.bwb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.bwb-stat-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--theme-primary);
  line-height: 1;
}

.bwb-stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.bwb-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--theme-border);
}

/* ── BLOC LEGEND ── */
.bwb-legend-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--theme-border);
  flex-wrap: wrap;
}

.bwb-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.bwb-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bwb-legend-dot.western     { background: var(--signal-western); }
.bwb-legend-dot.neutral     { background: var(--signal-neutral); }
.bwb-legend-dot.adversarial { background: var(--signal-adversarial); }

/* ── FILTER NAV ── */
.bwb-filters {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--theme-border);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
}
.bwb-filters::-webkit-scrollbar { display: none; }

.bwb-filters button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 10px 16px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--theme-border);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-transform: uppercase;
}

.bwb-filters button:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.bwb-filters button.active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
  font-weight: 500;
}

/* ── MAIN LAYOUT ── */
.bwb-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .bwb-main { grid-template-columns: 1fr; }
  .bwb-sidebar { display: none; }
}

/* ── STORY FEED ── */
.bwb-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bwb-feed--full {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Wave-9 card-render polish: 2-column card grid above 1024px.
   Single column under (mobile + tablet). Cross-ref:
   _index/redteam/2026-07-06-card-render-vs-groundnews.md §5 #3
   The index feed sits inside .bwb-main which is `1fr 300px` from
   1024px+; 1fr is ~960px so 2 cards at ~470px each fit comfortably. */
@media (min-width: 1024px) {
  .bwb-main > #story-feed,
  body > main > #story-feed,
  main#main-feed > #story-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* ── STORY CARD ── */
.bwb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.bwb-card:hover {
  border-color: var(--theme-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ── CARD THUMBNAIL ── */
.bwb-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-hover);
}

/* Wave-9: when 2-column grid, image becomes a side-accent (4:3) rather
   than a 16:9 hero. Cross-ref:
   _index/redteam/2026-07-06-card-render-vs-groundnews.md §2 */
@media (min-width: 1024px) {
  .bwb-card-thumb { aspect-ratio: 21 / 9; }
}

.bwb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bwb-card:hover .bwb-card-thumb img {
  transform: scale(1.04);
}

/* G3.2 — archive-card treatment. Applied to thumbs that fell through to an
   orphan card from /api/orphan_cards.json. Subtle sepia + scanline filter
   signals "this is from the archive pool" without hiding the image. */
.bwb-card-thumb--archive img {
  filter: sepia(0.18) saturate(0.85) contrast(1.04);
  position: relative;
}
.bwb-card-thumb--archive::after {
  content: 'ARCHIVE';
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: var(--font-mono, 'DM Mono', ui-monospace, monospace);
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 2px 5px;
  border-radius: 2px;
  pointer-events: none;
}
[data-bwb-theme="corkboard"] .bwb-card-thumb--archive::after {
  background: rgba(26,20,16,0.7);
  color: rgba(255,245,225,0.9);
}

.bwb-card-thumb-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── CARD BODY ── */
.bwb-card-body {
  padding: 1.25rem 1.25rem 1.25rem;
}

.bwb-card-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ── BADGES ── */
.bwb-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  font-weight: 500;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.bwb-badge.blindspot {
  background: var(--signal-blindspot);
  color: #fff;
  border-color: var(--signal-blindspot);
}

.bwb-badge.high-variance {
  border: 1px solid var(--theme-accent);
  color: var(--theme-accent);
}

.bwb-badge.western     { background: var(--signal-western); color: #fff; }
.bwb-badge.neutral     { background: var(--signal-neutral); color: #fff; }
.bwb-badge.adversarial { background: var(--signal-adversarial); color: #fff; }

/* ── CARD CONTENT ── */
.bwb-card-headline {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.28;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.bwb-card-summary {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── MINI HEATMAP ── */
.bwb-mini-heatmap { margin: 14px 0; }

.bwb-heatmap-bar {
  height: 4px;
  background: var(--bg-surface);
  display: flex;
  overflow: hidden;
  border-radius: 0;
}

.bwb-bar-western {
  background: var(--signal-western);
  height: 100%;
  transition: width 0.6s ease;
}

.bwb-bar-neutral {
  background: var(--signal-neutral);
  height: 100%;
  transition: width 0.6s ease;
}

.bwb-bar-adversarial {
  background: var(--signal-adversarial);
  height: 100%;
  transition: width 0.6s ease;
}

.bwb-heatmap-labels {
  display: flex;
  gap: 16px;
  margin-top: 5px;
}

.bwb-heatmap-labels span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.bwb-heatmap-labels span.western     { color: var(--signal-western); }
.bwb-heatmap-labels span.neutral     { color: var(--signal-neutral); }
.bwb-heatmap-labels span.adversarial { color: var(--signal-adversarial); }

/* ── SOURCE PILLS ── */
.bwb-source-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.bwb-source-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 2px 7px 2px 4px;       /* tighten left for the chip */
  border: 1px solid var(--theme-border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Wave-9: 2-letter monogram chip at the start of each pill.
   No CDN, no external dep. Visual recognition before parsing the name.
   Cross-ref: _index/redteam/2026-07-06-card-render-vs-groundnews.md §5 #2 */
.bwb-source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 2px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.bwb-source-chip.western     { background: rgba(59, 130, 246, 0.18);  color: var(--signal-western); }
.bwb-source-chip.neutral     { background: rgba(34, 197, 94, 0.18);  color: var(--signal-neutral); }
.bwb-source-chip.adversarial { background: rgba(220, 38, 38, 0.18);  color: var(--signal-adversarial); }
.bwb-source-chip['non-aligned'] { background: rgba(34, 197, 94, 0.18); color: var(--signal-neutral); }

.bwb-source-pill.western     { border-color: var(--signal-western);     color: var(--signal-western); }
.bwb-source-pill.neutral     { border-color: var(--signal-neutral);     color: var(--signal-neutral); }
.bwb-source-pill.adversarial { border-color: var(--signal-adversarial); color: var(--signal-adversarial); }
.bwb-source-pill.more        { color: var(--text-muted); }

/* ── WHY THIS GAP — substrate-honesty micro-attribution ── */
.bwb-why-this-gap {
  margin-top: 10px;
  padding: 6px 10px;
  background: var(--theme-card);
  border-left: 2px solid var(--theme-accent);
  font-family: var(--theme-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--theme-text-secondary);
  line-height: 1.5;
  word-wrap: break-word;
}
/* LOW-CONFIDENCE BADGE — RedTeam 2026-07-06 §3
   Inline pill on the "why this gap" line. Marks sources whose axis
   provenance is below 0.5 confidence (auto-heuristic or hand-curated
   guess). Substrate-honest signal that the corpus is incomplete. */
.bwb-low-confidence-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  background: rgba(220, 130, 50, 0.18);
  border: 1px solid rgba(220, 130, 50, 0.55);
  border-radius: 3px;
  color: rgba(220, 130, 50, 0.95);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: help;
  vertical-align: middle;
}
.bwb-low-confidence-badge:hover,
.bwb-low-confidence-badge:focus {
  background: rgba(220, 130, 50, 0.30);
  outline: none;
}

/* ── CARD FOOTER ── */
.bwb-card-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--theme-border);
}

.bwb-card-stat, .bwb-card-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── FULL HEATMAP ── */
.bwb-heatmap {
  margin: 16px 0 24px;
}

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

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

.hm-column {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--theme-border);
  border-radius: 4px;
}

.hm-col-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hm-col-count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hm-source {
  padding: 8px 8px 8px 10px;
  margin-bottom: 6px;
  background: var(--bg);
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.hm-source:hover { background: var(--bg-hover); }

.hm-source-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-primary);
}

.hm-source-country {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-right: 6px;
}

.hm-source-headline {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.hm-empty {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  padding: 12px;
  text-align: center;
  border: 1px dashed var(--theme-border);
  font-style: italic;
}

.heatmap-bar-full {
  height: 10px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  margin-bottom: 10px;
}

.hm-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  overflow: hidden;
  transition: width 0.6s ease;
  cursor: default;
}

.hm-seg.western     { background: var(--signal-western);     color: #fff; }
.hm-seg.neutral     { background: var(--signal-neutral);     color: #fff; }
.hm-seg.adversarial { background: var(--signal-adversarial); color: #fff; }

.heatmap-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hm-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.hm-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.hm-legend-dot.western     { background: var(--signal-western); }
.hm-legend-dot.neutral     { background: var(--signal-neutral); }
.hm-legend-dot.adversarial { background: var(--signal-adversarial); }

/* ── 5-AXIS BREAKDOWN ── */
.bwb-axis-row-full {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--theme-border);
}

.bwb-axis-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.bwb-axis-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bwb-axis-bar-wrap {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  gap: 8px;
  align-items: center;
}

.bwb-axis-bloc-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
}
.bwb-axis-bloc-label.western     { color: var(--signal-western); }
.bwb-axis-bloc-label.neutral     { color: var(--signal-neutral); }
.bwb-axis-bloc-label.adversarial { color: var(--signal-adversarial); }

.bwb-axis-track {
  height: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--theme-border);
  position: relative;
  overflow: hidden;
}

.bwb-axis-fill {
  height: 100%;
  transition: width 0.5s ease;
}
.bwb-axis-fill.western     { background: var(--signal-western); opacity: 0.8; }
.bwb-axis-fill.neutral     { background: var(--signal-neutral); opacity: 0.8; }
.bwb-axis-fill.adversarial { background: var(--signal-adversarial); opacity: 0.8; }

.bwb-axis-midmark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--theme-border);
}

.bwb-axis-val {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

/* ── SIDEBAR ── */
.bwb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 76px;
}

.bwb-sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 1.25rem;
}

.bwb-sidebar-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin-bottom: 12px;
}

.bwb-sidebar-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

.bwb-sidebar-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--theme-primary);
  display: block;
  margin-top: 8px;
}

.bwb-pipeline-info { display: flex; flex-direction: column; gap: 6px; }

.bwb-pipe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.bwb-pipe-status {
  font-size: 8px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border: 1px solid;
}

.bwb-pipe-status.live {
  color: var(--signal-verified);
  border-color: var(--signal-verified);
}

.bwb-axis-legend { display: flex; flex-direction: column; gap: 6px; }

.bwb-axis-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.axis-name {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--theme-primary);
  text-transform: uppercase;
}

.axis-desc {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

/* ── STORY PAGE ── */
.bwb-story-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}

.bwb-story-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--theme-border);
}

.bwb-story-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  margin: 16px 0;
  color: var(--text-primary);
}

.bwb-story-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── STORY HERO IMAGE ── */
.bwb-story-hero {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: var(--bg-hover);
  border-radius: 4px;
}
.bwb-story-hero img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* ── SCORE BADGE (blindspot cards) ── */
.bwb-badge--score {
  background: transparent;
  color: var(--accent-red, #dc2626);
  border: 1px solid var(--accent-red, #dc2626);
  font-weight: 700;
  letter-spacing: 0;
}

.bwb-meta-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.bwb-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--theme-border);
}

.bwb-section-header {
  margin-bottom: 16px;
}

.bwb-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--theme-primary);
  text-transform: uppercase;
}

.bwb-section-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── FRAMING GRID ── */
.bwb-framing-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bwb-framing-bloc {
  margin-bottom: 20px;
}

.bwb-framing-bloc-header {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 6px 12px;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.bwb-framing-bloc-header.western     { background: var(--signal-western);     color: #fff; }
.bwb-framing-bloc-header.neutral     { background: var(--signal-neutral);     color: #fff; }
.bwb-framing-bloc-header.adversarial { background: var(--signal-adversarial); color: #fff; }

.bwb-framing-row {
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--theme-border);
}

.bwb-framing-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bwb-framing-source-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.bwb-framing-country {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.bwb-framing-headline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.bwb-framing-snippet {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
  font-style: italic;
}

.bwb-framing-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--theme-primary);
}

/* ── 3-PANE SIDE-BY-SIDE FRAMING ──────────────────────────────────────────
   The signature W15 view: a story's coverage from each information bloc,
   stacked side by side. Lets the operator (and the reader) see for
   themselves whether Western/NATO press covers a story the same way as
   non-aligned regional press, or whether adversarial outlets publish
   articles the West won't. The whole product thesis in three columns. */
.bwb-3pane-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 900px) {
  .bwb-3pane-grid { grid-template-columns: 1fr; }
}

.bwb-3pane-col {
  background: var(--bwb-card-bg, #14110d);
  border: 1px solid var(--col-color, #888);
  border-top: 3px solid var(--col-color, #888);
  border-radius: 4px;
  padding: 0;
  min-height: 240px;
}

.bwb-3pane-col-header {
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.bwb-3pane-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--col-color, #fff);
  text-transform: uppercase;
}

.bwb-3pane-col-sub {
  font-size: 11px;
  color: var(--text-muted, #999);
  margin-top: 2px;
  line-height: 1.4;
}

.bwb-3pane-col-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted, #999);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.bwb-3pane-article {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.bwb-3pane-article:hover { background: rgba(255, 255, 255, 0.04); }
.bwb-3pane-article:last-child { border-bottom: none; }

.bwb-3pane-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--col-color, #999);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bwb-3pane-headline {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-primary, #e6e6e6);
  margin-bottom: 6px;
  font-weight: 500;
}

.bwb-3pane-snippet {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted, #b3b3b3);
  margin-bottom: 6px;
}

.bwb-3pane-read {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--col-color, #999);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bwb-3pane-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-muted, #888);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* ── ENTITY CLOUD ── */
.bwb-entity-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bwb-entity-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--theme-border);
  color: var(--text-secondary);
  transition: all 0.15s;
  cursor: default;
}

.bwb-entity-tag:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

/* ── SOURCE LINKS ── */
.bwb-source-link-row {
  display: grid;
  grid-template-columns: 90px 1fr 60px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--theme-border);
  font-size: 12px;
}

.bwb-source-link-bloc {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.bwb-source-link-bloc.western     { color: var(--signal-western);     border: 1px solid var(--signal-western); }
.bwb-source-link-bloc.neutral     { color: var(--signal-neutral);     border: 1px solid var(--signal-neutral); }
.bwb-source-link-bloc.adversarial { color: var(--signal-adversarial); border: 1px solid var(--signal-adversarial); }

.bwb-source-link-name { font-weight: 500; color: var(--text-primary); }
.bwb-source-link-country { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.bwb-source-link-url { font-family: var(--font-mono); font-size: 10px; color: var(--theme-primary); }

.bwb-back-row { padding: 24px 0; }
.bwb-back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.bwb-back-link:hover { color: var(--theme-primary); }

/* ── PAGE CONTAINERS ── */
.bwb-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.bwb-page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--theme-border);
}

.bwb-page-title {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 36px);
  letter-spacing: -0.5px;
  color: var(--theme-primary);
  margin-bottom: 12px;
}

.bwb-page-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.8;
}

.bwb-page-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ── ABOUT PAGE ── */
.bwb-about-body { max-width: 720px; }

.bwb-about-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--theme-border);
}

.bwb-about-section h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin-bottom: 16px;
}

.bwb-about-section p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 12px;
}

.bwb-about-section strong { color: var(--text-primary); }

.bwb-about-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.bwb-about-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--theme-border);
  position: relative;
  line-height: 1.6;
}

.bwb-about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--theme-primary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.bwb-pipeline-steps li strong {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--theme-primary);
}

code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface);
  padding: 1px 5px;
  border: 1px solid var(--theme-border);
  color: var(--theme-accent);
}

/* ── SOURCES PAGE ── */
.bwb-sources-summary {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.bwb-sum-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid var(--theme-border);
  min-width: 100px;
}

.bwb-sum-bloc.western     { border-color: var(--signal-western); }
.bwb-sum-bloc.neutral     { border-color: var(--signal-neutral); }
.bwb-sum-bloc.adversarial { border-color: var(--signal-adversarial); }

.bwb-sum-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.bwb-sum-bloc.western     .bwb-sum-num { color: var(--signal-western); }
.bwb-sum-bloc.neutral     .bwb-sum-num { color: var(--signal-neutral); }
.bwb-sum-bloc.adversarial .bwb-sum-num { color: var(--signal-adversarial); }

.bwb-sum-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

.bwb-source-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bwb-search {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0 16px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--theme-border);
  border-radius: 4px;
  color: var(--text-primary);
  width: 280px;
  outline: none;
  transition: border-color 0.15s;
}

.bwb-search:focus { border-color: var(--theme-primary); }
.bwb-search::placeholder { color: var(--text-muted); }

.bwb-source-filters {
  display: flex;
  gap: 6px;
}

.bwb-source-filters button {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 0 14px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--theme-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}

.bwb-source-filters button:hover,
.bwb-source-filters button.active {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.bwb-source-table {
  border: 1px solid var(--theme-border);
}

.bwb-source-table-header {
  display: grid;
  grid-template-columns: 2fr 60px 100px 80px 100px 100px 80px 40px;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--theme-border);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bwb-src-row {
  display: grid;
  grid-template-columns: 2fr 60px 100px 80px 100px 100px 80px 40px;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--theme-border);
  align-items: center;
  transition: background 0.1s;
}

.bwb-src-row:hover { background: var(--bg-hover); }

.bwb-src-name { font-size: 13px; color: var(--text-primary); }
.bwb-src-name a { color: var(--text-primary); }
.bwb-src-name a:hover { color: var(--theme-primary); }
.bwb-src-country { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.bwb-src-lean { font-size: 11px; color: var(--text-secondary); }
.bwb-src-link a { font-family: var(--font-mono); font-size: 12px; color: var(--theme-primary); }

.bwb-src-axis {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.src-axis-wrap {
  position: relative;
  width: 50px;
  height: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--theme-border);
  overflow: hidden;
  display: inline-block;
}

.src-axis-fill {
  height: 100%;
  transition: width 0.3s;
}
.src-axis-fill.western     { background: var(--signal-western); opacity: 0.8; }
.src-axis-fill.adversarial { background: var(--signal-adversarial); opacity: 0.8; }

.src-axis-mid {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--theme-border);
}

.bwb-fact-high   { color: var(--signal-verified); }
.bwb-fact-mixed  { color: var(--theme-gold); }
.bwb-fact-low    { color: var(--signal-adversarial); }
.bwb-fact-unknown { color: var(--text-muted); }

.bwb-axis-explainer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--theme-border);
}

.bwb-axis-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bwb-axis-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--theme-border);
  border-radius: 4px;
}

.bwb-axis-card-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--theme-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bwb-axis-card-range {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.bwb-axis-card p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .bwb-source-table-header,
  .bwb-src-row { grid-template-columns: 1fr 60px 80px 40px; }
  .hide-sm { display: none; }
}

/* ── BLINDSPOT PAGE ── */
.bwb-blindspot-explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

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

.bwb-explainer-card {
  padding: 20px;
  border: 1px solid var(--theme-border);
  background: var(--bg-card);
  border-radius: 4px;
}

.bwb-explainer-card p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.bwb-explainer-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bwb-explainer-card.western-only     .bwb-explainer-label { color: var(--signal-western); }
.bwb-explainer-card.adversarial-only .bwb-explainer-label { color: var(--signal-adversarial); }

.bwb-blindspot-card .bwb-bs-type-header {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 14px;
  display: inline-block;
}

.bwb-bs-type-header.western-only     { background: var(--signal-western);     color: #fff; }
.bwb-bs-type-header.adversarial-only { background: var(--signal-adversarial); color: #fff; }
.bwb-bs-type-header.mixed            { background: var(--theme-border);        color: var(--text-secondary); }

.bwb-bs-breakdown {
  display: flex;
  gap: 16px;
  margin: 14px 0;
}

.bwb-bs-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--theme-border);
  flex: 1;
}

.bwb-bs-bloc.zero { opacity: 0.4; }

.bwb-bs-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.bwb-bs-num.western     { color: var(--signal-western); }
.bwb-bs-num.neutral     { color: var(--signal-neutral); }
.bwb-bs-num.adversarial { color: var(--signal-adversarial); }

.bwb-bs-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.bwb-bs-zero-label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--theme-accent);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ── FOOTER ── */
.bwb-footer {
  border-top: 1px solid var(--theme-border);
  padding: 24px;
  margin-top: 48px;
  background: var(--bg-surface);
}

.bwb-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bwb-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bwb-footer-logo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--theme-primary);
  text-transform: uppercase;
}

.bwb-footer-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.bwb-footer-right {
  display: flex;
  gap: 20px;
}

.bwb-footer-right a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bwb-footer-right a:hover { color: var(--theme-primary); }

.bwb-footer-disclaimer {
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.30);
  line-height: 1.6;
  border-top: 1px solid var(--theme-border);
  padding-top: 16px;
}

/* ── UTILITY ── */
.bwb-loading {
  text-align: center;
  padding: 64px 24px;
}

.bwb-loading-pulse {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--theme-primary);
  text-transform: uppercase;
}

.bwb-loading-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0.6;
}

.bwb-empty {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 48px;
  border: 1px dashed var(--theme-border);
}

/* ── THEME SWITCHER ── */
.bwb-theme-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--theme-border);
  background: var(--bg-surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary) transparent;
}

.bwb-theme-switcher-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-right: 4px;
  text-transform: uppercase;
}

.bwb-theme-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bwb-theme-btn:hover {
  border-color: var(--theme-border);
  background: var(--bg-card);
}

.bwb-theme-btn.active {
  border-color: var(--theme-primary);
  background: var(--bg-card);
}

.bwb-theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.bwb-theme-btn-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  white-space: nowrap;
  text-transform: uppercase;
}

.bwb-theme-btn.active .bwb-theme-btn-label { color: var(--theme-primary); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .bwb-theme-btn-label { display: none; }
  .bwb-theme-dot { width: 14px; height: 14px; }
  .bwb-theme-switcher { gap: 4px; }
  .bwb-header-inner { padding: 0 1.25rem; }
  .bwb-legend-bar { display: none; }
  .bwb-stats-bar { gap: 0; padding: 8px 1.25rem; }
  .bwb-stat { padding: 0 10px; }
  .bwb-stat-number { font-size: 14px; }
  .bwb-main { padding: 1.25rem; }
  .bwb-filters { padding: 12px 1.25rem; }
  .bwb-card-body { padding: 1.25rem; }
  .bwb-page-container { padding: 2rem 1.25rem; }
  .bwb-story-container { padding: 2rem 1.25rem; }
}

/* ── STORY PAGE: 5-AXIS NARRATIVE FINGERPRINT ── */
.bwb-5axis-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bwb-5axis-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--theme-border);
}

.bwb-5axis-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.bwb-5axis-track {
  height: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--theme-border);
  position: relative;
  overflow: hidden;
}

.bwb-5axis-fill {
  height: 100%;
  opacity: 0.85;
  transition: width 0.5s ease;
}

.bwb-5axis-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

/* ── BIAS COVERAGE BAR (L / C / R) ── */
.bwb-bias-bar-wrap { margin: 14px 0 8px; }

/* Wave-9: bias bar moves to TOP of card body, 10px tall (was 5px).
   Cross-ref: _index/redteam/2026-07-06-card-render-vs-groundnews.md §4 */
.bwb-bias-bar-wrap--top {
  margin: 0 0 12px;
  padding: 10px 12px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

/* ── G2: PER-CARD SOURCE COUNT + BLOC BREAKDOWN ──
   Sits above the bias bar. Names the source count and bloc split in
   inline text: "12 sources · ●9W ●2N ●1A". The bias bar below becomes
   a visualization of the number the reader just read. Surfaces the
   substrate receipt, not a cipher. Cross-ref: ISA G2, _index/w12-g2.md */
.bwb-card-source-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 12px 0 6px;
  padding: 6px 10px 5px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary, #888);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--border-subtle);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.bwb-card-count-sep { opacity: 0.4; font-weight: 400; }
.bwb-card-count-empty { opacity: 0.5; font-style: italic; }
.bwb-bloc-bullet {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: 1px;
}
.bwb-bloc-bullet.western     { background: #2563eb; }   /* blue: NATO/US-aligned */
.bwb-bloc-bullet.non-aligned { background: #0d9488; }   /* teal: regional/global south */
.bwb-bloc-bullet.adversarial { background: #dc2626; }   /* red: state-media/multipolar */
.bwb-bloc-bullet.other       { background: #6b7280; opacity: 0.5; }

.bwb-bias-bar {
  height: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  overflow: hidden;
  border-radius: 2px;
}

.bwb-bias-seg {
  height: 100%;
  flex-shrink: 0;
  transition: width 0.6s ease;
}
.bwb-bias-left   { background: var(--signal-left); }
.bwb-bias-center { background: var(--signal-center); }
.bwb-bias-right  { background: var(--signal-right); }

.bwb-bias-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
}

/* Wave-9: bias meta shows inline labels "L 6 · C 5 · R 12" with the
   total source count trailing. Replaces the older %-only format. */
.bwb-bias-meta--labeled {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.bwb-bias-meta--labeled .bwb-bias-pct {
  font-size: 10px;
  letter-spacing: 0.5px;
}
.bwb-bias-meta--labeled .bwb-bias-pct.zero {
  opacity: 0.35;
}
.bwb-bias-meta--labeled .bwb-bias-pct.total {
  margin-left: auto;
  color: var(--text-primary);
  font-weight: 500;
}

.bwb-bias-pct {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.bwb-bias-pct.bwb-bias-left   { color: var(--signal-left); }
.bwb-bias-pct.bwb-bias-center { color: var(--signal-center); }
.bwb-bias-pct.bwb-bias-right  { color: var(--signal-right); }
.bwb-bias-pct.state            { color: var(--text-muted); font-style: italic; }

/* ── W13: FACTUALITY BADGE (per-story aggregate) + DOT (per-source) ──
   The signature Ground News "FACT High/Mixed/Low" rating. The aggregate
   surfaces the trust level of the entire source set; the dot is the
   individual source's MBFC factuality tier. Reader gets both signals. */
.bwb-factuality-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
}
.bwb-factuality-high {
  color: #22c55e;     /* green = High factuality */
}
.bwb-factuality-mixed {
  color: #f59e0b;     /* amber = Mixed factuality (the Ground News default) */
}
.bwb-factuality-low {
  color: #ef4444;     /* red = Low factuality */
}
.bwb-factuality-unknown {
  color: var(--text-muted);
  opacity: 0.4;
}

.bwb-fact-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: 1px;
  flex-shrink: 0;
}
.bwb-fact-dot.high, .bwb-fact-dot.mostly_factual {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}
.bwb-fact-dot.medium, .bwb-fact-dot.mixed {
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}
.bwb-fact-dot.low {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}
.bwb-fact-dot.unknown {
  display: none;
}

/* W14: Source Diversity Score badge — composite L/C/R + bloc spread */
.bwb-diversity-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
}
.bwb-diversity-high {
  color: #06b6d4;  /* cyan: well-distributed */
}
.bwb-diversity-mixed {
  color: #a78bfa;  /* violet: partial */
}
.bwb-diversity-low {
  color: #94a3b8;  /* slate: single-bloc */
}
.bwb-diversity-unknown {
  color: var(--text-muted);
  opacity: 0.4;
}

/* W14: Coverage gap warning — name the missing bloc */
.bwb-gap-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  text-transform: uppercase;
  animation: bwb-gap-pulse 2.4s ease-in-out infinite;
}
@keyframes bwb-gap-pulse {
  0%, 100% { background: rgba(239, 68, 68, 0.08); }
  50%      { background: rgba(239, 68, 68, 0.18); }
}

/* W15: Per-article factuality badge — distinct from FACT (source-registry).
   Same palette as FACT so the eye learns the color, but the label is
   A-FACT (article) to mark the different signal source. */
.bwb-article-fact-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
  font-style: italic;
}
.bwb-article-fact-high {
  color: #10b981;
}
.bwb-article-fact-mixed {
  color: #f59e0b;
}
.bwb-article-fact-low {
  color: #ef4444;
}

/* W15: Article-level bloc frame pill. BWB's frame is W/N/A, not L/R.
   W-FRAME = western editorial posture dominates the article snippets
   (NATO/EU framing, "regime" pejorative for adversaries, sanctions
   as law enforcement). N-FRAME = non-aligned / Global South framing
   (multipolar, sovereignty-first, sanctions as coercion). A-FRAME =
   adversarial framing (anti-Western, anti-imperial).
   The pill is italic to distinguish from the source-level L/C/R
   bias counts that the bias bar already shows. */
.bwb-frame-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
  font-style: italic;
}
.bwb-frame-western {
  color: #3b82f6;
}
.bwb-frame-non-aligned {
  color: #14b8a6;
}
.bwb-frame-adversarial {
  color: #f43f5e;
}

/* W15: 5-axis frame pill. Operator-visible differentiator vs Ground
   News — names the *worldview axis* (interventionist, zionist,
   atlanticist, statist, financialized) the article coverage aligns
   with, not just the bias_bucket. Each axis gets its own color. */
.bwb-axis-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
}
.bwb-axis-interventionist { color: #f97316; }   /* orange — military action */
.bwb-axis-zionist         { color: #06b6d4; }   /* cyan — Israel/Western */
.bwb-axis-atlanticist     { color: #6366f1; }   /* indigo — NATO/transatlantic */
.bwb-axis-statist         { color: #a855f7; }   /* purple — strong state */
.bwb-axis-financialized   { color: #eab308; }   /* yellow — capital markets */

/* Blindspot flag — amber, prominent */
.bwb-blindspot-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--signal-blindspot);
  margin-right: 4px;
}

/* Video badge on card thumbnail */
.bwb-badge.video {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-color: transparent;
}

/* Geo-frame badges */
.bwb-badge.mono-frame {
  background: #7c3aed;
  color: #fff;
  border-color: transparent;
}
.bwb-badge.blackout {
  background: rgba(240,237,232,0.12);
  color: #F0EDE8;
  border-color: transparent;
}

/* ── GEO FRAME BREAKDOWN ── */
.bwb-geo-frame-wrap {
  padding: 8px 10px;
  margin: 10px 0;
  border-left: 3px solid transparent;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bwb-geo-mono-frame  { border-color: #7c3aed; }
.bwb-geo-blackout    { border-color: rgba(240,237,232,0.30); }

.bwb-geo-frame-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.bwb-geo-mono-frame .bwb-geo-frame-label  { color: #7c3aed; }
.bwb-geo-blackout   .bwb-geo-frame-label  { color: rgba(240,237,232,0.60); }

.bwb-geo-counts {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Source pill bias_bucket colors */
.bwb-source-pill.left  { border-color: var(--signal-left);   color: var(--signal-left); }
.bwb-source-pill.right { border-color: var(--signal-right);  color: var(--signal-right); }

/* ── ARTICLE STRIP ── */
.bwb-article-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0 6px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 12px;
}
.bwb-article-strip::-webkit-scrollbar { display: none; }

.bwb-article-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  width: 80px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.bwb-article-link:hover { opacity: 0.72; }

.bwb-article-thumb {
  position: relative;
  width: 80px;
  height: 52px;
  overflow: hidden;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.bwb-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bwb-mini-play {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 1px 4px;
  line-height: 1.4;
  pointer-events: none;
}

.bwb-article-src {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2px;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 80px;
  display: block;
}

/* ── NEWSPAPER SECTION DIVIDERS ── */
.bwb-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 8px;
  grid-column: 1 / -1;
}

.bwb-section-divider-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.bwb-section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* Corkboard section dividers — look like torn-paper tape strips */
[data-theme="corkboard"] .bwb-section-divider {
  padding: 28px 0 6px;
}
[data-theme="corkboard"] .bwb-section-divider-label {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4e9d5;
  background: var(--theme-primary);
  padding: 6px 14px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  transform: rotate(-0.5deg);
  display: inline-block;
}
[data-theme="corkboard"] .bwb-section-divider-line {
  background: var(--theme-primary);
  opacity: 0.25;
  height: 2px;
}

/* ── SECTION NAV ── */
.bwb-section-tabs {
  border-bottom: 2px solid var(--border-default);
  margin-bottom: 0;
}

.bwb-section-tabs button {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.bwb-section-tabs button.active {
  border-bottom-color: var(--theme-primary);
  color: var(--theme-primary);
}

/* ── SIGNAL FILTERS ── */
.bwb-signal-filters {
  padding-top: 6px;
}

/* ── VIEW TRANSITIONS (index→story morph) ── */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
  }
  ::view-transition-old(root) {
    animation-name: bwb-fade-out;
  }
  ::view-transition-new(root) {
    animation-name: bwb-fade-in;
  }
}
@keyframes bwb-fade-out {
  to { opacity: 0; }
}
@keyframes bwb-fade-in {
  from { opacity: 0; }
}

/* ── DAILY BLINDSPOT BRIEF CTA (editorial frame) ── */
.bwb-editorial-frame-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}
.bwb-editorial-frame-cta-btn {
  display: inline-block;
  background: var(--theme-primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 120ms;
}
.bwb-editorial-frame-cta-btn:hover {
  background: #d04a3a;
}
.bwb-editorial-frame-cta-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
}
.bwb-editorial-frame-cta-link:hover {
  color: var(--theme-primary);
  text-decoration-color: var(--theme-primary);
}

/* ── W6: FUNDING CHIP on card (state=red, public_corp=blue, family=gold, foundation=teal, unknown=grey) ── */
.bwb-funding-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease;
  user-select: none;
}
.bwb-funding-chip:hover { opacity: 0.78; }
.bwb-funding-chip[data-form="state"]        { background: rgba(220, 38, 38, 0.12);  color: #dc2626; border-color: rgba(220, 38, 38, 0.3); }
.bwb-funding-chip[data-form="public_corp"]  { background: rgba(37, 99, 235, 0.12);  color: #2563eb; border-color: rgba(37, 99, 235, 0.3); }
.bwb-funding-chip[data-form="family"]       { background: rgba(217, 119, 6, 0.12);  color: #d97706; border-color: rgba(217, 119, 6, 0.3); }
.bwb-funding-chip[data-form="foundation"]   { background: rgba(13, 148, 136, 0.12); color: #0d9488; border-color: rgba(13, 148, 136, 0.3); }
.bwb-funding-chip[data-form="unknown"]      { background: rgba(107, 114, 128, 0.12);color: #6b7280; border-color: rgba(107, 114, 128, 0.3); }
.bwb-funding-chip-icon { font-size: 11px; }

/* ── W6: PRIMARY chip — primary source jump on card ── */
.bwb-source-primary-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(34, 197, 94, 0.10);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.bwb-source-primary-chip:hover { opacity: 0.7; }

/* ── W6: FUNDING TRAIL section on story page ── */
.bwb-funding-trail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bwb-funding-trail h3 {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 22px;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}
.bwb-funding-owner {
  padding: 12px 16px;
  border-left: 3px solid var(--border-subtle);
  background: var(--surface-elevated, rgba(255,255,255,0.02));
  border-radius: 0 8px 8px 0;
}
.bwb-funding-owner[data-form="state"]        { border-left-color: #dc2626; }
.bwb-funding-owner[data-form="public_corp"]  { border-left-color: #2563eb; }
.bwb-funding-owner[data-form="family"]       { border-left-color: #d97706; }
.bwb-funding-owner[data-form="foundation"]   { border-left-color: #0d9488; }
.bwb-funding-owner-name {
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bwb-funding-owner-form {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.bwb-funding-owner-edges {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.bwb-funding-owner-edges a {
  color: var(--theme-primary, #3B82F6);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
}
.bwb-funding-owner-edges a:hover { text-decoration-color: var(--theme-primary, #3B82F6); }
.bwb-funding-more {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono, "DM Mono", monospace);
  margin-top: 8px;
}
.bwb-funding-more a {
  color: var(--theme-primary, #3B82F6);
  text-decoration: underline;
}

/* ── W7: CORRUPTION CROSS-REFERENCE section on story page ── */
.bwb-corruption-xref {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bwb-corruption-xref h3 {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 22px;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}
.bwb-corruption-empty {
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: var(--surface-elevated, rgba(255,255,255,0.02));
  border-radius: 6px;
  border-left: 3px solid var(--border-subtle);
  line-height: 1.6;
}
.bwb-corruption-hit {
  padding: 12px 16px;
  border-left: 3px solid #dc2626;
  background: var(--surface-elevated, rgba(220,38,38,0.04));
  border-radius: 0 8px 8px 0;
}
.bwb-corruption-hit-name {
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bwb-corruption-hit-notes {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.bwb-corruption-hit-links {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  font-family: var(--font-mono, "DM Mono", monospace);
}
.bwb-corruption-hit-links a {
  color: var(--theme-primary, #3B82F6);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
}
.bwb-corruption-hit-links a:hover { text-decoration-color: var(--theme-primary, #3B82F6); }

/* ── ENTITLEMENT / PRO GATE CHROME ────────────────────────────────────────── */
/* The visual cue that a feature is paywalled. Small lock pill that sits   */
/* inline with chips, sections, or as a corner stamp. Used by:               */
/*   - funding-chip (when chain owner name is hidden)                        */
/*   - corruption cross-ref header (when not Pro)                           */
/*   - money-trail body (when not Pro)                                      */
/*   - any element painted via BWB_Entitlements.paintLockBadge()            */

.bwb-pro-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px 1px 4px;
  background: linear-gradient(135deg, #d71920 0%, #8b0000 100%);
  color: #fff;
  font-family: var(--font-mono, "Special Elite", "Courier Prime", monospace);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 184, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
  cursor: pointer;
  vertical-align: middle;
  transition: transform 120ms, box-shadow 120ms;
}
.bwb-pro-lock:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 12px rgba(255, 184, 0, 0.4);
  color: #fff;
  text-decoration: none;
}
.bwb-pro-lock-key { font-size: 10px; line-height: 1; }
.bwb-pro-lock-lbl { letter-spacing: 0.18em; }

/* Variant: corner stamp for sections. */
.bwb-pro-corner {
  position: absolute;
  top: -8px;
  right: 12px;
  z-index: 2;
}

/* Section paywall: blurred body + CTA lockup. */
.bwb-pro-section {
  position: relative;
  border: 1px dashed var(--border-subtle, #444);
  padding: 18px 20px 22px;
  margin: 18px 0 24px;
  background: rgba(215, 25, 32, 0.04);
}
.bwb-pro-section-eyebrow {
  font-family: var(--font-mono, "Special Elite", monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--theme-primary, #d71920);
  margin: 0 0 6px;
}
.bwb-pro-section-h {
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--text-primary, #f4e9d5);
}
.bwb-pro-section-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #c0b89a);
  margin: 0 0 14px;
  max-width: 600px;
}
.bwb-pro-section-cta {
  display: inline-block;
  background: var(--theme-primary, #d71920);
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  font-family: var(--font-mono, "Special Elite", monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 120ms, background 120ms;
}
.bwb-pro-section-cta:hover {
  background: #b51319;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.bwb-pro-section-meta {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted, #888);
  text-transform: uppercase;
}
.bwb-pro-section-meta strong { color: var(--theme-primary, #d71920); font-weight: 400; }

/* Corkboard variant: cream paper paywall block, red stamp diagonal. */
[data-theme="corkboard"] .bwb-pro-section {
  background: rgba(215, 25, 32, 0.06);
  border: 1px dashed rgba(215, 25, 32, 0.4);
}
[data-theme="corkboard"] .bwb-pro-section-h {
  font-family: var(--font-display, "Playfair Display", serif);
  font-style: italic;
  font-weight: 700;
  color: #1a0e08;
}
[data-theme="corkboard"] .bwb-pro-section-body { color: #4a3a2a; }
[data-theme="corkboard"] .bwb-pro-section-eyebrow { color: #d71920; }
[data-theme="corkboard"] .bwb-pro-section-cta {
  background: #d71920;
  box-shadow: 2px 2px 0 #1a0e08;
}
[data-theme="corkboard"] .bwb-pro-section-cta:hover {
  background: #8b0000;
  box-shadow: 3px 3px 0 #1a0e08;
}

/* Vantage badge — small star + label that sits next to a section title
   to mark Vantage-exclusive data products. */
.bwb-vantage-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  padding: 3px 8px 3px 7px;
  margin-left: 10px;
  background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
  color: #1a0e08;
  vertical-align: middle;
  border: 1px solid #8b6914;
  text-transform: uppercase;
  font-weight: 600;
}

/* Ownership breakdown — Vantage table */
.bwb-ownership-breakdown { padding: 4px 0; }
.bwb-ownership-breakdown h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  color: var(--theme-fg, #F0EDE8);
  margin: 0 0 12px;
}
.bwb-ownership-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--theme-hairline, rgba(255,255,255,0.10));
}
.bwb-ownership-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.7fr 0.5fr 0.6fr;
  gap: 8px;
  padding: 8px 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--theme-fg-dim, rgba(240,237,232,0.75));
  border-bottom: 1px solid var(--theme-hairline, rgba(255,255,255,0.06));
  align-items: center;
}
.bwb-ownership-row:last-child { border-bottom: none; }
.bwb-ownership-row--head {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--theme-fg-faint, rgba(240,237,232,0.35));
  text-transform: uppercase;
  background: rgba(0,0,0,0.15);
}
.bwb-ownership-source { color: var(--theme-fg, #F0EDE8); font-weight: 500; }
.bwb-ownership-parent { color: var(--theme-fg, #F0EDE8); }
.bwb-ownership-form {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid currentColor;
  display: inline-block;
  text-align: center;
  width: fit-content;
}
.bwb-ownership-form-independent { color: #4a8a4a; }
.bwb-ownership-form-chain { color: #c97a2a; }
.bwb-ownership-form-state { color: #c0392b; }
.bwb-ownership-form-nonprofit { color: #5a7fb8; }
.bwb-ownership-form-unknown { color: var(--theme-fg-faint, rgba(240,237,232,0.35)); }
.bwb-ownership-conc { color: var(--theme-fg-dim, rgba(240,237,232,0.75)); }
.bwb-ownership-cite a { color: var(--theme-primary, #BF3B2D); text-decoration: underline; }
.bwb-ownership-empty { font-size: 12px; color: var(--theme-fg-faint, rgba(240,237,232,0.45)); padding: 12px 0; }
.bwb-ownership-foot {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--theme-fg-faint, rgba(240,237,232,0.35));
  margin-top: 14px;
  line-height: 1.7;
}
.bwb-ownership-foot a { color: var(--theme-primary, #BF3B2D); text-decoration: underline; }
[data-theme="corkboard"] .bwb-ownership-table { border-color: rgba(90,60,30,0.25); }
[data-theme="corkboard"] .bwb-ownership-row { border-bottom-color: rgba(90,60,30,0.15); color: rgba(26,20,16,0.78); }
[data-theme="corkboard"] .bwb-ownership-row--head { background: rgba(90,60,30,0.08); color: rgba(26,20,16,0.55); }
@media (max-width: 720px) {
  .bwb-ownership-row { grid-template-columns: 1fr 1fr; gap: 4px 8px; font-size: 10px; }
  .bwb-ownership-row--head { display: none; }
  .bwb-ownership-cell:nth-child(n+3) { grid-column: span 1; }
  .bwb-ownership-source::before { content: 'Source: '; color: var(--theme-fg-faint, rgba(240,237,232,0.35)); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
  .bwb-ownership-parent::before { content: 'Parent: '; color: var(--theme-fg-faint, rgba(240,237,232,0.35)); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
  .bwb-ownership-form::before { content: 'Form: '; color: var(--theme-fg-faint, rgba(240,237,232,0.35)); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; border: none; padding: 0; }
  .bwb-ownership-conc::before { content: 'Conc: '; color: var(--theme-fg-faint, rgba(240,237,232,0.35)); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
  .bwb-ownership-cite::before { content: 'Cite: '; color: var(--theme-fg-faint, rgba(240,237,232,0.35)); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
}

/* Inline teaser: "FUNDED BY [redacted-shape]" — used in the free card chip
   to show a colored geometric placeholder instead of the real owner name. */
.bwb-funding-tease {
  display: inline-block;
  width: 60px;
  height: 8px;
  margin-left: 6px;
  background: linear-gradient(90deg,
    currentColor 0%, currentColor 20%,
    transparent 20%, transparent 35%,
    currentColor 35%, currentColor 50%,
    transparent 50%, transparent 70%,
    currentColor 70%, currentColor 100%);
  opacity: 0.7;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.bwb-funding-tease::after {
  content: 'LOCKED';
  position: absolute;
  right: -2px;
  top: -10px;
  font-family: var(--font-mono, "Special Elite", monospace);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--theme-primary, #d71920);
  background: var(--bg-card, #1a1a1a);
  padding: 0 3px;
}

/* Funding chip — when free, the chip becomes a tap-to-upgrade affordance. */
.bwb-funding-chip.is-locked { cursor: pointer; }
.bwb-funding-chip.is-locked:hover { opacity: 1; box-shadow: 0 0 0 1px var(--theme-primary, #d71920); }

/* Inline "🔒 PRO" badge inside the locked funding chip. */
.bwb-pro-lock-inline {
  display: inline-block;
  font-family: var(--font-mono, "Special Elite", monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--theme-primary, #d71920);
  padding: 1px 5px;
  margin-left: 6px;
  border-radius: 2px;
  vertical-align: middle;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  top: -1px;
}

/* Owner-only tier toggle (dev mode). Hidden from public users. */
#bwb-owner-tier-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  font-family: var(--font-mono, "Special Elite", monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #fff;
  background: #1a1a1a;
  border: 1px solid var(--theme-primary, #d71920);
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
#bwb-owner-tier-toggle:hover { background: #2a2a2a; }
