/* ============================================================
   Bharat Pulse — narrative intelligence
   Aesthetic: warm-paper editorial briefing. Confident serif
   display, monospaced labels, inked rules, restrained colour
   reserved for the ideological spectrum. Built to read like a
   designed publication, not a dashboard template.
   ============================================================ */

:root {
  /* Paper / ink */
  --paper:        #f4efe4;
  --paper-2:      #ece4d3;
  --card:         #fcf9f1;
  --card-raise:   #fffdf7;
  --ink:          #1b1714;
  --ink-soft:     #574e42;
  --ink-faint:    #8c8273;
  --rule:         #ded3bf;
  --rule-strong:  #c6b99f;
  --rule-hair:    #e7dece;

  /* Brand accent — deep marigold */
  --accent:       #bf5715;
  --accent-deep:  #93410f;
  --accent-wash:  #f7e7d6;

  /* Ideological spectrum — fixed everywhere */
  --left:   #2c6f7d;   /* teal  */
  --centre: #b08a32;   /* gold  */
  --right:  #a83a2b;   /* rust  */
  --left-soft:   #e3edee;
  --centre-soft: #f2ead4;
  --right-soft:  #f4e2dc;

  --radius:    3px;
  --radius-lg: 5px;
  --maxw:      1360px;
  --shadow-sm: 0 1px 0 var(--rule), 0 10px 26px -22px rgba(27,23,20,0.5);
  --shadow-md: 0 1px 0 var(--rule), 0 26px 56px -34px rgba(27,23,20,0.62);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;

  font-family: var(--serif);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 620px at 82% -12%, rgba(191, 87, 21, 0.09), transparent 60%),
    radial-gradient(960px 520px at -12% 6%, rgba(44, 111, 125, 0.08), transparent 58%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.5;
}

/* Fixed paper-grain overlay (never on a scrolling layer) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

::selection { background: var(--accent); color: var(--paper); }

/* ------------------------------------------------------------
   Masthead
   ------------------------------------------------------------ */
.masthead { padding: 30px 0 20px; border-bottom: 2.5px solid var(--ink); }

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 22px;
}
.edition { white-space: nowrap; }
.edition-rule { flex: 0 0 auto; width: 34px; height: 1px; background: var(--rule-strong); }
.masthead-meta .dateline { margin-left: auto; color: var(--accent-deep); letter-spacing: 0.16em; }

.masthead-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: end;
  padding: 6px 0 24px;
}
.brand { min-width: 0; }
.brand-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.brand h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  line-height: 0.86;
  margin: 0;
  letter-spacing: -0.028em;
}
.brand h1 em { font-style: italic; font-weight: 500; color: var(--accent); }

.masthead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 6px;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}
.brand-tag {
  font-size: 1.06rem;
  line-height: 1.46;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
  max-width: 38ch;
}
.share-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Spectrum legend */
.spectrum-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spectrum-title { color: var(--ink); font-weight: 600; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 13px; height: 13px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); }
.swatch.left { background: var(--left); }
.swatch.centre { background: var(--centre); }
.swatch.right { background: var(--right); }
.spectrum-note { margin-left: auto; color: var(--ink-faint); text-transform: none; letter-spacing: 0.04em; font-style: italic; font-family: var(--serif); font-size: 13px; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.16s cubic-bezier(.2,.7,.2,1), box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(27,23,20,0.75); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(27,23,20,0.06); box-shadow: none; }
.btn--sm { padding: 9px 13px; font-size: 10.5px; }
.btn[disabled] { opacity: 0.45; cursor: progress; transform: none; box-shadow: none; }
.btn.is-busy { cursor: progress; opacity: 0.7; }

/* ------------------------------------------------------------
   Newsroom dashboard overview
   ------------------------------------------------------------ */
.overview { margin: 30px 0 8px; }
.over-head { max-width: 62ch; margin-bottom: 22px; }
.over-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 12px;
}
.over-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); }
.over-head h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.02; margin: 12px 0 8px;
}
.over-head p { margin: 0; color: var(--ink-soft); font-size: 1.04rem; max-width: 56ch; }

/* KPI tiles */
.kpis { display: grid; gap: 12px; margin: 0 0 22px; }
.kpis--over { grid-template-columns: repeat(4, 1fr); }
.kpi {
  position: relative;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--card-raise);
  padding: 16px 16px 14px;
  overflow: hidden;
}
.kpi.accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.kpi-num { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1; letter-spacing: -0.018em; color: var(--ink); }
.kpi-lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; line-height: 1.4; }
.kpi-sub { font-family: var(--serif); font-style: italic; font-size: 0.82rem; color: var(--ink-faint); margin-top: 4px; }

.over-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.panel {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.panel-label {
  display: block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 16px;
}
.panel--donut { display: flex; flex-direction: column; align-items: center; text-align: center; }

.over-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.callout {
  border: 1px solid var(--rule); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--card-raise);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 5px;
}
.callout-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.callout b { font-family: var(--display); font-size: 1.12rem; line-height: 1.1; letter-spacing: -0.01em; }
.callout-note { font-size: 0.86rem; color: var(--ink-soft); font-style: italic; }

/* ------------------------------------------------------------
   Donut chart
   ------------------------------------------------------------ */
.donut { width: 168px; height: 168px; display: block; }
.donut circle { transition: stroke-width 0.2s ease; }
.donut .donut-num { font-family: var(--display); font-weight: 600; font-size: 19px; fill: var(--ink); }
.donut .donut-lbl { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--ink-faint); }
.donut-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.donut-key span { display: inline-flex; align-items: center; gap: 7px; }
.donut-key b { color: var(--ink); }
.donut-key .dot, .stacklbl .dot { width: 10px; height: 10px; border-radius: 2px; }

/* ------------------------------------------------------------
   Trend chart (annotated)
   ------------------------------------------------------------ */
.trend-wrap { background: var(--card-raise); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 16px 8px; margin-bottom: 20px; }
.trendchart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--rule-hair); stroke-width: 1; }
.chart-axis { font-family: var(--mono); font-size: 9px; fill: var(--ink-faint); letter-spacing: 0.02em; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--accent); stroke: var(--card-raise); stroke-width: 1.4; }
.chart-dot.peak { fill: var(--accent-deep); stroke: var(--card-raise); stroke-width: 2; }
.chart-peakbg { fill: var(--ink); }
.chart-peaktxt { font-family: var(--mono); font-size: 9.5px; font-weight: 600; fill: var(--paper); }

/* ------------------------------------------------------------
   Ranked bar chart
   ------------------------------------------------------------ */
.barchart { display: flex; flex-direction: column; gap: 9px; }
.barrow { display: grid; grid-template-columns: minmax(70px, 0.9fr) 1.6fr auto; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11px; }
.barlabel { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bartrack { height: 9px; background: var(--paper-2); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.barfill { display: block; height: 100%; border-radius: 999px; transform-origin: left; animation: growx 0.7s cubic-bezier(.2,.7,.2,1) both; }
.barval { text-align: right; color: var(--ink); font-weight: 500; min-width: 42px; }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------------------------------------
   Stacked share-of-voice bar
   ------------------------------------------------------------ */
.stackbar-wrap { margin-bottom: 18px; }
.stackbar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.stackseg { height: 100%; }
.stacklbls { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.stacklbl { display: inline-flex; align-items: center; gap: 7px; }
.stacklbl b { color: var(--ink); }

/* ------------------------------------------------------------
   Sentiment gauge
   ------------------------------------------------------------ */
.gauge { display: flex; flex-direction: column; gap: 10px; }
.gauge-bar { display: flex; height: 30px; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.gauge-seg { display: flex; align-items: center; justify-content: center; color: var(--paper); font-family: var(--mono); font-size: 11px; font-weight: 600; min-width: 0; }
.gauge-seg span { padding: 0 4px; }
.gauge-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.gauge-net { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
.gauge-net b { font-size: 13px; }

/* ------------------------------------------------------------
   Weighted hashtag field
   ------------------------------------------------------------ */
.tagfield { display: flex; flex-wrap: wrap; gap: 9px; align-items: baseline; }
.tagchip {
  font-family: var(--mono); line-height: 1;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-flex; align-items: baseline; gap: 7px;
  transition: transform 0.16s ease, background 0.16s ease;
}
.tagchip:hover { transform: translateY(-2px); }
.tagchip .tagvol { color: var(--ink-faint); font-size: 0.7em; }
.tagchip.left { color: var(--left); background: var(--left-soft); }
.tagchip.centre { color: var(--centre); background: var(--centre-soft); }
.tagchip.right { color: var(--right); background: var(--right-soft); }

/* ------------------------------------------------------------
   Report layout: analyst read, splits
   ------------------------------------------------------------ */
.analyst { columns: 2; column-gap: 32px; }
.analyst p { margin: 0 0 12px; font-size: 1rem; line-height: 1.56; color: var(--ink-soft); break-inside: avoid; }
.analyst p:first-child::first-letter {
  font-family: var(--display); font-weight: 600; float: left;
  font-size: 3.1rem; line-height: 0.78; padding: 4px 10px 0 0; color: var(--accent);
}
.reach-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.reach-col { min-width: 0; }
.donut-inline { display: flex; justify-content: center; margin-bottom: 16px; }
.donut-inline .donut { width: 150px; height: 150px; }
.ideo-split { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.ideo-donut { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lean-stack { min-width: 0; }
.inf-ranked { margin: 4px 0 18px; }

/* ------------------------------------------------------------
   Toolbar
   ------------------------------------------------------------ */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  margin: 30px 0 12px;
}
.toolbar-lead { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; min-width: 0; }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after { content: ""; height: 1px; width: 90px; background: var(--rule-strong); }
.toolbar-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

/* ------------------------------------------------------------
   Chapter dividers — the spine of the story flow
   ------------------------------------------------------------ */
.chapter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 46px 0 18px;
}
.chapter.is-hidden, .lead.is-hidden { display: none; }
.chapter-no {
  font-family: var(--display); font-weight: 600; font-style: italic;
  font-size: 1.5rem; line-height: 1; color: var(--accent);
  letter-spacing: -0.02em;
}
.chapter-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.chapter-line { flex: 1; height: 1px; background: var(--rule-strong); min-width: 24px; }

/* ------------------------------------------------------------
   Scroll-reveal cascade
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------
   Search
   ------------------------------------------------------------ */
.search {
  display: flex; align-items: center; gap: 8px;
  flex: 0 1 380px; min-width: 220px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--card-raise);
  padding: 8px 12px 8px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.search-icon { width: 17px; height: 17px; color: var(--ink-faint); flex: none; }
.search-input {
  border: 0; background: transparent; outline: none; width: 100%;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em; color: var(--ink);
}
.search-input::placeholder { color: var(--ink-faint); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear {
  border: 0; background: var(--paper-2); color: var(--ink-soft);
  width: 22px; height: 22px; border-radius: 999px; flex: none;
  font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background 0.16s ease, color 0.16s ease;
}
.search-clear:hover { background: var(--accent); color: var(--paper); }
.search-status {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-soft); margin: 0 0 16px;
}
.search-status b { color: var(--ink); }
.banner--empty { grid-column: 1 / -1; }

/* ------------------------------------------------------------
   Ideology by industry
   ------------------------------------------------------------ */
.industries { margin: 6px 0 8px; }
.ind-list {
  border: 1px solid var(--rule-strong); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.ind-head {
  display: grid; grid-template-columns: 1.1fr 1.7fr 0.7fr; gap: 22px;
  padding: 13px 22px; border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(191,87,21,0.05), transparent);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-deep);
}
.ind-row {
  display: grid; grid-template-columns: 1.1fr 1.7fr 0.7fr; gap: 22px;
  align-items: center; padding: 16px 22px;
  border-bottom: 1px solid var(--rule-hair);
  transition: background 0.16s ease;
}
.ind-row:last-child { border-bottom: 0; }
.ind-row:hover { background: var(--card-raise); }
.ind-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ind-name b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.08; letter-spacing: -0.01em; }
.ind-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.ind-eg { font-family: var(--serif); font-style: italic; font-size: 0.86rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.ind-barwrap { min-width: 0; }
.ind-bar {
  display: flex; height: 16px; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.ind-seg { height: 100%; transform-origin: left; animation: growx 0.7s cubic-bezier(.2,.7,.2,1) both; }
.ind-seg.left { background: var(--left); }
.ind-seg.centre { background: var(--centre); }
.ind-seg.right { background: var(--right); }
.ind-readout {
  display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 9px;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint);
}
.ind-readout span.is-dom { color: var(--ink-soft); }
.ind-readout b { color: var(--ink); }
.ind-lean { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ind-lean-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor;
}
.ind-lean-tag.left { color: var(--left); background: var(--left-soft); }
.ind-lean-tag.centre { color: var(--centre); background: var(--centre-soft); }
.ind-lean-tag.right { color: var(--right); background: var(--right-soft); }
.ind-lean-margin { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); letter-spacing: 0.04em; }
.ind-callouts { margin-top: 18px; }

/* ------------------------------------------------------------
   Lead story (featured)
   ------------------------------------------------------------ */
.lead { margin-top: 4px; }
.lead-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  background: var(--card-raise);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.lead-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--left) 0 34%, var(--centre) 34% 66%, var(--right) 66% 100%);
  opacity: 0.92;
}
.lead-main { padding: 34px 36px 30px; border-right: 1px solid var(--rule); min-width: 0; }
.lead-aside { padding: 34px 32px 30px; background:
    linear-gradient(180deg, rgba(191,87,21,0.04), transparent 40%); min-width: 0; }

.lead-flag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 16px;
}
.lead-flag::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.lead-main h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 0.98; letter-spacing: -0.018em;
  margin: 0 0 14px;
}
.lead-summary { font-size: 1.16rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 22px; }
.lead-origin {
  font-size: 0.96rem; color: var(--ink-soft); line-height: 1.45;
  border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; margin: 0 0 22px;
}
.lead-origin b { color: var(--ink); }

.lead-aside .aside-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 12px;
}
.lead-spark { margin: 0 0 18px; }

/* The lead's full report drawer spans both columns, below them */
.lead-card .details { grid-column: 1 / -1; margin: 0 36px 32px; padding-top: 22px; }
.detail-sub { min-width: 0; }

/* ------------------------------------------------------------
   Topic grid
   ------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding-bottom: 84px;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s cubic-bezier(.2,.7,.2,1) forwards;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--rule-strong); transform: translateY(-3px); }
.card:nth-child(2) { animation-delay: 0.07s; }
.card:nth-child(3) { animation-delay: 0.14s; }
.card:nth-child(4) { animation-delay: 0.21s; }
.card:nth-child(5) { animation-delay: 0.28s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  background: var(--paper);
}
.chip.status {
  border-color: var(--accent); color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.chip.archived {
  border-style: dashed;
  border-color: var(--rule-strong);
  color: var(--ink-faint);
  background: var(--paper-2);
}
/* Archived cards only surface through search — mark them with a muted wash and
   a quiet left rule so they read as reference, not headline. */
.card--archived { background: var(--paper); overflow: hidden; }
.card--archived::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--rule-strong);
}
.card--archived h2 { color: var(--ink-soft); }

.card h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.62rem;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.012em;
}
.card-summary { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }

/* Ideology stacked bar */
.ideo { display: flex; flex-direction: column; gap: 7px; }
.ideo-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.ideo-seg { height: 100%; transition: filter 0.2s ease; }
.ideo-seg.left { background: var(--left); }
.ideo-seg.centre { background: var(--centre); }
.ideo-seg.right { background: var(--right); }
.ideo-bar:hover .ideo-seg { filter: saturate(1.25) brightness(1.03); }
.ideo-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.ideo-labels b { color: var(--ink-soft); font-weight: 600; }

/* Metrics row */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-top: 1px solid var(--rule); padding-top: 15px; }
.metric .num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}
.metric .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 5px;
}

.origin-line {
  font-size: 0.93rem; color: var(--ink-soft); line-height: 1.4;
  border-left: 3px solid var(--accent); padding-left: 12px; margin: 0;
}
.origin-line b { color: var(--ink); }

.card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   Inline sparkline (SVG)
   ------------------------------------------------------------ */
.spark { display: block; width: 100%; height: auto; overflow: visible; }
.spark-area { fill: var(--accent); opacity: 0.1; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark-peak { fill: var(--accent); stroke: var(--card-raise); stroke-width: 1.6; }
.spark-caption { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }

/* Mini stat list in the lead aside */
.aside-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 6px; }
.aside-stat .num { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.aside-stat .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

/* ------------------------------------------------------------
   Detail drawer (the report)
   ------------------------------------------------------------ */
.details {
  display: none;
  border-top: 1px dashed var(--rule-strong);
  margin-top: 4px;
  padding-top: 20px;
  flex-direction: column;
  gap: 24px;
}
.details.open { display: flex; animation: rise 0.45s ease forwards; }
.detail-block h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.detail-block h3::before { content: ""; width: 16px; height: 1.5px; background: var(--accent); }

.exec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.exec-stat { border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 13px; background: var(--card-raise); }
.exec-stat .num { font-family: var(--display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; }
.exec-stat .lbl { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }

/* Pull quote */
.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.34;
  color: var(--ink);
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  position: relative;
}
.pullquote-cite { display: block; font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 12px; }
.origin-context { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; margin: 12px 0 0; }

/* Lean cards */
.lean-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 13px 15px; margin-bottom: 9px; }
.lean-card:last-child { margin-bottom: 0; }
.lean-card.left { border-left: 4px solid var(--left); background: var(--left-soft); }
.lean-card.centre { border-left: 4px solid var(--centre); background: var(--centre-soft); }
.lean-card.right { border-left: 4px solid var(--right); background: var(--right-soft); }
.lean-card .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lean-card .lh b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.lean-card .lh span { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.lean-card p { margin: 7px 0; font-size: 0.96rem; color: var(--ink-soft); line-height: 1.48; }
.lean-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }
.lean-card li { margin-bottom: 3px; }

/* Influencers */
.inf-list { display: flex; flex-direction: column; gap: 10px; }
.inf {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0 14px;
  align-items: start;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px 12px 0;
  overflow: hidden;
}
.inf .bar { width: 4px; align-self: stretch; border-radius: 0; }
.inf.left .bar { background: var(--left); }
.inf.centre .bar { background: var(--centre); }
.inf.right .bar { background: var(--right); }
.inf-body { min-width: 0; }
.inf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.inf .who { font-weight: 600; font-size: 1.04rem; }
.inf .handle { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.02em; }
.inf .stat { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.inf .sample { margin: 8px 0 0; font-style: italic; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.42; }

/* Headlines */
.headline-item { padding: 11px 0; border-bottom: 1px solid var(--rule); display: block; text-decoration: none; color: inherit; transition: padding 0.18s ease; }
.headline-item:last-child { border-bottom: none; }
.headline-item:hover { padding-left: 8px; }
.headline-item .pub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.headline-item .pub.left { color: var(--left); }
.headline-item .pub.centre { color: var(--centre); }
.headline-item .pub.right { color: var(--right); }
.headline-item .hl { font-family: var(--display); font-size: 1.08rem; line-height: 1.26; margin-top: 4px; color: var(--ink); }
.headline-item:hover .hl { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Hashtags + platform/geo rows */
.minirow { display: flex; flex-wrap: wrap; gap: 7px; }
.tagpill {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.tagpill .vol { color: var(--ink-faint); font-size: 9.5px; }
.tagpill.left { color: var(--left); }
.tagpill.centre { color: var(--centre); }
.tagpill.right { color: var(--right); }

.distbars { display: flex; flex-direction: column; gap: 9px; }
.distbar { display: grid; grid-template-columns: 110px 1fr 54px; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.distbar .track { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.distbar .fill { height: 100%; background: var(--ink-soft); border-radius: 999px; }
.distbar .val { text-align: right; color: var(--ink); }

/* Sentiment meter */
.sentiment { display: flex; flex-direction: column; gap: 8px; }
.sent-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.sent-seg.pos { background: #4a7c59; }
.sent-seg.neu { background: var(--rule-strong); }
.sent-seg.neg { background: #a8493c; }
.sent-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.sent-labels b { color: var(--ink-soft); }

/* ------------------------------------------------------------
   States
   ------------------------------------------------------------ */
.skeleton { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); height: 340px; position: relative; overflow: hidden; opacity: 0.7; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.banner {
  grid-column: 1 / -1;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  background: var(--card);
}
.banner h2 { font-family: var(--display); font-size: 1.7rem; margin: 0 0 8px; }
.banner p { color: var(--ink-soft); margin: 0 0 20px; }

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.03em;
  padding: 13px 20px; border-radius: var(--radius);
  z-index: 50; opacity: 0; pointer-events: none;
  box-shadow: 0 18px 40px -18px rgba(27,23,20,0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 48px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer {
  border-top: 1px solid var(--rule-strong);
  padding: 24px 0 64px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-brand { color: var(--ink-soft); }

/* ------------------------------------------------------------
   The wider web — diverging "right vs left" voice share
   ------------------------------------------------------------ */
.channels { margin: 6px 0 8px; }
.chan-overall {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 6px 0 18px;
}
.chan-panel { padding: 20px 22px 16px; }
.chan-readout {
  border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 20px;
}
.chan-readout-h {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 12px;
}

/* Diverging bars (used in the overall report and inside each topic) */
.vbars { display: flex; flex-direction: column; }
.vbar-axislabels {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
  padding-bottom: 9px; margin-bottom: 6px; border-bottom: 1px solid var(--rule-hair);
}
.vbar-axislabels .left { color: var(--left); }
.vbar-axislabels .right { color: var(--right); text-align: right; }
.vbar-axislabels .mid { text-align: center; }
.vbar-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 0.95fr);
  gap: 16px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--rule-hair);
}
.vbar-row:last-child { border-bottom: 0; }
.vbar-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vbar-name b { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.1; letter-spacing: -0.01em; }
.vbar-kind { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.vbar-aud { font-family: var(--mono); font-size: 9px; color: var(--accent-deep); letter-spacing: 0.04em; }
.vbar-track {
  display: grid; grid-template-columns: 1fr 2px 1fr; align-items: center;
  min-width: 0;
}
.vbar-side { height: 13px; display: flex; min-width: 0; }
.vbar-side.l { justify-content: flex-end; }
.vbar-side.r { justify-content: flex-start; }
.vbar-fill {
  height: 100%; max-width: 100%;
  transform-origin: inherit; animation: growx 0.7s cubic-bezier(.2,.7,.2,1) both;
}
.vbar-side.l .vbar-fill { transform-origin: right; }
.vbar-side.r .vbar-fill { transform-origin: left; }
.vbar-fill.left { background: var(--left); border-radius: 999px 0 0 999px; }
.vbar-fill.right { background: var(--right); border-radius: 0 999px 999px 0; }
.vbar-axis { width: 2px; height: 20px; background: var(--ink); opacity: 0.55; }
.vbar-read {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-faint);
}
.vbar-read span.is-dom { color: var(--ink); }
.vbar-read b { color: var(--ink); font-weight: 600; }
.vbar-read .vbar-c { color: var(--ink-faint); }
.vbar-tag {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; margin-left: auto;
}
.vbar-tag.left { color: var(--left); background: var(--left-soft); }
.vbar-tag.right { color: var(--right); background: var(--right-soft); }

/* Per-topic channels block inside the detail drawer */
.chan-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 14px; }
.chan-col { min-width: 0; }
.chan-analyst { margin-top: 6px; }
.chan-analyst.analyst { columns: 2; column-gap: 32px; }

/* Short analytical lead-in under a section heading */
.block-analysis {
  margin: -4px 0 14px; font-size: 0.98rem; line-height: 1.5;
  color: var(--ink-soft); font-style: italic; max-width: 78ch;
}

/* ------------------------------------------------------------
   Information cascade — phase-wise stream + phase cards
   ------------------------------------------------------------ */
.cascade { margin: 6px 0 8px; }
.casc-streamwrap {
  border: 1px solid var(--rule-strong); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow-sm);
  padding: 18px 22px 14px; margin-bottom: 18px;
}
.casc-stream { display: block; width: 100%; height: auto; overflow: visible; }
.casc-mid { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.casc-tick { stroke: var(--rule-hair); stroke-width: 1; }
.casc-off { fill: var(--ink); opacity: 0.82; }
.casc-webline { fill: none; stroke: var(--accent-deep); stroke-width: 1.6; stroke-linejoin: round; }
.casc-dot { fill: var(--accent); stroke: var(--card); stroke-width: 1.4; }
.casc-dot.peak { fill: var(--accent-deep); r: 5; }
.casc-pno { font-family: var(--mono); font-size: 10px; font-weight: 600; fill: var(--ink); letter-spacing: 0.06em; }
.casc-pname { font-family: var(--mono); font-size: 8.5px; fill: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.casc-axis { font-family: var(--mono); font-size: 8.5px; fill: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.casc-cross { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.casc-crosslbl { font-family: var(--mono); font-size: 8.5px; fill: var(--accent-deep); letter-spacing: 0.06em; text-transform: uppercase; }
.casc-legend {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft);
}
.casc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.casc-legend .dot { width: 10px; height: 10px; border-radius: 2px; }

.casc-track { display: flex; align-items: stretch; gap: 0; }
.casc-arrow {
  align-self: center; flex: 0 0 auto; padding: 0 4px;
  font-family: var(--display); font-size: 1.6rem; color: var(--rule-strong); line-height: 1;
}
.casc-phase {
  flex: 1 1 0; min-width: 0;
  border: 1px solid var(--rule); border-top: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--card-raise);
  padding: 13px 13px 14px; display: flex; flex-direction: column; gap: 9px;
}
.casc-phase.medium-offline { border-top-color: var(--ink); background: var(--card); }
.cp-head { display: flex; align-items: baseline; gap: 8px; }
.cp-no {
  font-family: var(--display); font-weight: 600; font-style: italic;
  font-size: 1.15rem; color: var(--accent); line-height: 1;
}
.medium-offline .cp-no { color: var(--ink); }
.cp-name { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.05; letter-spacing: -0.01em; }
.cp-medium { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); line-height: 1.4; }
.cp-metrics { display: flex; gap: 14px; border-top: 1px solid var(--rule-hair); border-bottom: 1px solid var(--rule-hair); padding: 8px 0; }
.cp-metrics div { display: flex; flex-direction: column; gap: 1px; }
.cp-metrics b { font-family: var(--display); font-size: 1.12rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.cp-metrics span { font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.cp-breadth { display: flex; align-items: center; gap: 4px; }
.cp-breadth .cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.cp-breadth .cdot.on { background: var(--accent); box-shadow: none; }
.medium-offline .cp-breadth .cdot.on { background: var(--ink); }
.cp-breadthlbl { font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-left: 4px; }
.cp-leanbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.cp-leanbar .cseg { height: 100%; }
.cp-leanbar .cseg.left { background: var(--left); }
.cp-leanbar .cseg.centre { background: var(--centre); }
.cp-leanbar .cseg.right { background: var(--right); }
.cp-note { margin: 0; font-size: 0.85rem; line-height: 1.42; color: var(--ink-soft); }
.casc-readout { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 18px; }

/* ------------------------------------------------------------
   Audience & profile — data access for web & non-web entities
   ------------------------------------------------------------ */
.audience { margin: 6px 0 8px; }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.aud-listpanel { padding: 20px 22px 12px; }
.aud-head, .aud-row {
  display: grid; grid-template-columns: 1.1fr 1.5fr 1.1fr 1fr; gap: 14px; align-items: center;
}
.aud-head {
  padding: 0 0 10px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep);
}
.aud-row { padding: 12px 0; border-bottom: 1px solid var(--rule-hair); }
.aud-row:last-child { border-bottom: 0; }
.aud-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aud-name b { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.08; letter-spacing: -0.01em; }
.aud-kind { font-family: var(--mono); font-size: 8px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); }
.aud-basistag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.02em; line-height: 1.3;
  padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; display: inline-block;
}
.aud-basistag.regional { color: var(--accent-deep); background: var(--accent-wash); }
.aud-basistag.offline { color: var(--ink-soft); background: var(--paper-2); border-style: dashed; }
.aud-addr { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.aud-addrtrack { height: 7px; background: var(--paper-2); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.aud-addrfill { display: block; height: 100%; background: var(--accent); border-radius: 999px; animation: growx 0.7s cubic-bezier(.2,.7,.2,1) both; }
.aud-addrval { font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; color: var(--ink-faint); }
.aud-reach { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.aud-reach b { font-family: var(--display); font-size: 1.08rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.aud-reach span { font-family: var(--mono); font-size: 8px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }

.aud-comppanel { margin-bottom: 18px; }
.aud-compinline { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.aud-compitem + .aud-compitem { margin-top: 14px; }
.aud-compinline .aud-compitem + .aud-compitem { margin-top: 0; }
.aud-complabel { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 7px; }
.aud-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.aud-seg { height: 100%; transform-origin: left; animation: growx 0.7s cubic-bezier(.2,.7,.2,1) both; }
.aud-legend { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 9px; font-family: var(--mono); font-size: 10px; color: var(--ink-soft); }
.aud-legend span { display: inline-flex; align-items: center; gap: 7px; }
.aud-legend .dot { width: 9px; height: 9px; border-radius: 2px; }
.aud-legend b { color: var(--ink); }
.aud-callouts { margin-top: 4px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 940px) {
  .lead-card { grid-template-columns: 1fr; }
  .lead-main { border-right: none; border-bottom: 1px solid var(--rule); }
  .lead-card .details { margin: 0 22px 26px; }
  .over-grid { grid-template-columns: 1fr; }
  .over-callouts { grid-template-columns: 1fr; }
  .kpis--over { grid-template-columns: repeat(2, 1fr); }
  .reach-split { grid-template-columns: 1fr; gap: 22px; }
  .ideo-split { grid-template-columns: 1fr; gap: 20px; }
  .ideo-donut { margin: 0 auto; }
  .analyst { columns: 1; }
  .chan-analyst.analyst { columns: 1; }
  .chan-overall { grid-template-columns: 1fr; }
  .chan-split { grid-template-columns: 1fr; gap: 18px; }
  .aud-grid { grid-template-columns: 1fr; }
  .casc-track { flex-wrap: wrap; gap: 10px; }
  .casc-phase { flex: 1 1 44%; }
  .casc-arrow { display: none; }
  .vbar-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); row-gap: 6px; }
  .vbar-read { grid-column: 1 / -1; }
  .ind-head { display: none; }
  .ind-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 22px; }
  .masthead-main { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .masthead-side { border-left: none; padding-left: 0; }
  .grid { grid-template-columns: 1fr; }
  .masthead-meta { flex-wrap: wrap; gap: 10px 14px; }
  .masthead-meta .dateline { margin-left: 0; width: 100%; }
  .toolbar { align-items: stretch; }
  .search { flex: 1 1 100%; }
  .aud-head { display: none; }
  .aud-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .aud-reach { text-align: left; }
  .casc-phase { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .exec { grid-template-columns: 1fr 1fr; }
  .metric .num { font-size: 1.3rem; }
  .lead-main, .lead-aside { padding: 26px 22px; }
  .distbar { grid-template-columns: 84px 1fr 46px; }
  .btn-label { display: inline; }
  .kpis--over { grid-template-columns: 1fr 1fr; }
  .kpi-num { font-size: 1.4rem; }
  .barrow { grid-template-columns: minmax(60px, 0.9fr) 1.4fr auto; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .lead-card { animation: none; opacity: 1; transform: none; }
  .skeleton::after { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  .barfill { animation: none; }
}
