
:root {
  /* Color — warm paper light theme. Chroma kept low except for accent. */
  --bg: oklch(98% 0.005 60);
  --bg-subtle: oklch(95.5% 0.006 60);
  --fg: oklch(20% 0.01 60);
  --fg-strong: oklch(11% 0.013 60);
  --fg-muted: oklch(50% 0.012 60);
  --rule: oklch(86% 0.007 60);
  --rule-strong: oklch(70% 0.009 60);
  --accent: oklch(45% 0.12 25);
  --accent-bg: oklch(94% 0.04 25);

  /* Typography stacks — no webfont loads. */
  --serif: "New York", "Iowan Old Style", "Iowan Old Style BT", "Charter", Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;

  /* Rhythm */
  --measure: 38rem;   /* prose column */
  --measure-wide: 56rem;
  --measure-page: 76rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(16% 0.008 60);
    --bg-subtle: oklch(20% 0.01 60);
    --fg: oklch(91% 0.006 60);
    --fg-strong: oklch(98% 0.004 60);
    --fg-muted: oklch(62% 0.012 60);
    --rule: oklch(28% 0.008 60);
    --rule-strong: oklch(42% 0.01 60);
    --accent: oklch(72% 0.14 25);
    --accent-bg: oklch(28% 0.04 25);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Serif prose block — used for body copy, hook samples, leads. */
.prose { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55; }
.prose p { margin: 0.6em 0; }

a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

code { font-family: var(--mono); font-size: 0.84em; color: var(--fg-muted); }

/* ──────────────────────────────────────────────────────────────────────── */
/* Page frame                                                                 */
/* ──────────────────────────────────────────────────────────────────────── */

.page {
  max-width: var(--measure-page);
  margin: 0 auto;
  padding: 48px 32px 96px;
}

.masthead {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--fg-muted);
}
.masthead .title {
  color: var(--fg-strong);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.masthead .crumbs { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
/* Dot separators rendered via pseudo-element so they never orphan onto a
   new line when the crumbs wrap. */
.masthead .crumbs > * + *::before { content: "· "; color: var(--rule-strong); }
.masthead nav { display: flex; gap: 16px; }
.masthead nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.masthead nav a[aria-current="page"] {
  color: var(--fg-strong);
  border-bottom-color: var(--accent);
}

/* ──────────────────────────────────────────────────────────────────────── */
/* Lead paragraph (used at top of every page)                                 */
/* ──────────────────────────────────────────────────────────────────────── */

.lead {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.45;
  color: var(--fg-strong);
  max-width: var(--measure-wide);
  margin: 0 0 56px;
  font-weight: 400;
}
.lead .num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.lead .accent { color: var(--accent); }

/* ──────────────────────────────────────────────────────────────────────── */
/* Section labels (small-caps sans, between sections)                         */
/* ──────────────────────────────────────────────────────────────────────── */

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin: 56px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-label .count {
  color: var(--rule-strong);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────────────────────────────── */
/* Index pattern list — type-driven, no cards                                 */
/* ──────────────────────────────────────────────────────────────────────── */

/* Tight scannable rows. Strength as a visual anchor on the left, label
   in the center, compact stats on the right. Brand list reads as muted
   metadata under the label without competing for attention. */
.pattern-list { list-style: none; padding: 0; margin: 0; }

.pattern-row {
  border-top: 1px solid var(--rule);
}
.pattern-row:last-child { border-bottom: 1px solid var(--rule); }

.pattern-row > a {
  display: grid;
  grid-template-columns: 3.6em 1fr auto;
  column-gap: 24px;
  row-gap: 2px;
  align-items: baseline;
  padding: 12px 0;
  text-decoration: none;
  color: var(--fg);
}

/* Brand count as visual scan anchor. Replaces the previous opaque
   "strength" decimal: scanning "4, 3, 2, 1, 1, 1" down the column reads
   as obvious importance ranking ("how many advertisers are running this
   angle") in a way "11.90, 5.86, 2.91" never could.
   Singletons get muted color so the eye lands on multi-brand patterns first. */
.row-brandcount {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-size: 1.15rem;
  color: var(--fg-strong);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
  grid-row: 1;
}
.pattern-row[data-brands="1"] .row-brandcount {
  color: var(--fg-muted);
  font-weight: 400;
}

.row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  grid-row: 1;
}

.row-label-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.row-label {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg-strong);
  margin: 0;
  letter-spacing: -0.005em;
}

.pattern-row > a:hover .row-label { color: var(--accent); }
.pattern-row > a:hover .row-brandcount { color: var(--accent); }

/* Primary-brand emphasis. Inline strong + accent color in any brand list
   so the eye instantly recognizes the client name amongst the competitive
   set. No row-level background or side-stripe — that would violate the
   absolute ban and add chrome where typography already does the work. */
.primary-brand { color: var(--accent); font-weight: 600; }
h3.primary-brand { color: var(--accent); }
.primary-brand-row td:first-child .primary-brand { color: var(--accent); }

.row-brands {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.35;
}

.row-stats {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-size: 0.82rem;
  color: var(--fg-muted);
  white-space: nowrap;
  grid-row: 1;
  letter-spacing: -0.01em;
}

/* Shared treatment for the days-running figure wherever it appears inline
   inside a longer stat string ("146d running", "3 brands / 146d running").
   Days-running is the primary quality signal, so the digit count is pulled
   forward — accent-colored, bold, one size larger than its surrounding
   label text. Pairs with the standalone .hook .days rule on gallery rows. */
.day-count {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.18em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .pattern-row > a {
    grid-template-columns: auto 1fr;
    column-gap: 16px;
  }
  .row-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    font-size: 0.78rem;
  }
}

/* ──────────────────────────────────────────────────────────────────────── */
/* Inline tags                                                                */
/* ──────────────────────────────────────────────────────────────────────── */

.tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--bg-subtle);
  color: var(--fg-muted);
  border: 1px solid var(--rule);
  font-weight: 500;
  display: inline-block;
  line-height: 1.45;
}
.tag.robust { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.tag.fragile { color: var(--fg-muted); }
.tag.new { color: var(--accent); font-weight: 600; border-color: var(--accent); }
.tag.burned { color: var(--accent); border-color: var(--accent); }
.tag.unmatched { color: var(--fg-muted); border-style: dashed; }

/* Format-mix chips — separate axis from lifecycle tags. Video-heavy is
   filled (the gold-standard creative format gets the visual attention),
   static-heavy stays outlined, mixed uses a dashed border to read "split". */
.tag.format-video {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}
.tag.format-static {
  color: var(--fg-muted);
  background: var(--bg-subtle);
}
.tag.format-mixed {
  color: var(--fg-muted);
  border-style: dashed;
}

/* ──────────────────────────────────────────────────────────────────────── */
/* Filter controls (index)                                                    */
/* ──────────────────────────────────────────────────────────────────────── */

.controls {
  display: flex;
  gap: 24px;
  align-items: baseline;
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--fg-muted);
  flex-wrap: wrap;
}
.controls label { display: inline-flex; align-items: baseline; gap: 8px; }
.controls input, .controls select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  font: inherit;
  padding: 4px 0;
  min-width: 140px;
}
.controls input:focus, .controls select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.controls select { padding-right: 16px; }

/* ──────────────────────────────────────────────────────────────────────── */
/* Brief page — long-form editorial                                           */
/* ──────────────────────────────────────────────────────────────────────── */

.brief { max-width: var(--measure-wide); }
.brief .back {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 18px;
}
.brief .back:hover { color: var(--accent); }
.brief h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg-strong);
  margin: 0 0 10px;
}
.brief .deck {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  display: flex;
  gap: 4px 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.brief .deck > * + *::before { content: "· "; color: var(--rule-strong); }
.brief .deck .tag { font-size: 0.66rem; }
.brief .deck-tags { display: inline-flex; gap: 6px; align-items: baseline; }
/* Tag groups stay together — no dot between sibling tags inside the group. */
.brief .deck-tags > * + *::before { content: none; }
/* The pseudo-element above puts the dot inside the NEXT item, so it wraps
   together rather than orphaning at line start. */

.brief .lead {
  margin-bottom: 48px;
  max-width: var(--measure);
}
.brief .lead:first-letter {
  font-family: var(--serif);
  font-size: 4em;
  float: left;
  line-height: 0.85;
  font-weight: 600;
  color: var(--fg-strong);
  margin: 4px 10px 0 -2px;
}

.brief h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin: 56px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.brief h3 {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--fg);
  margin: 24px 0 8px;
  letter-spacing: 0.01em;
}
.brief h3 .count {
  color: var(--fg-muted);
  font-weight: 400;
  margin-left: 6px;
}

.brief .note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-style: italic;
  max-width: var(--measure);
  margin-bottom: 16px;
}

/* Hooks display: leading days mark + body text in a tight 2-column grid.
   The brand is already conveyed by the H3 above each group, so the old
   marginalia (BRAND · DAYS) was duplicating information. Now days reads
   like a footnote index entry. */
.hook {
  display: grid;
  grid-template-columns: 4.4em 1fr;
  column-gap: 14px;
  margin: 10px 0;
  max-width: var(--measure);
  color: var(--fg);
}
/* Days-running is the single most reliable proxy for ad quality/success
   (an ad that's been live 146 days is winning; a 6-day ad is unproven).
   So it gets the loudest typographic treatment on the row: large, bold,
   accent-colored, tabular. It's the number the eye should land on first. */
.hook .days {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  padding-top: 0.1em; /* baseline align with serif body */
  white-space: nowrap;
  line-height: 1.2;
}
.hook .text {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .hook { grid-template-columns: 1fr; gap: 2px; }
  .hook .days { text-align: left; padding-top: 0; }
}

/* Deep-link from each hook to its FB Ad Library entry. Solid accent-filled
   CTA pill so the affordance reads loudly as "click me, see the actual ad".
   Picks up theme accent via var(--accent) — oxblood on FE, violet on iGaming. */
.ad-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 3px 10px 4px;
  font-family: var(--sans);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
  box-shadow: 0 1px 0 color-mix(in oklch, var(--accent) 25%, transparent);
  transition: background 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.1s ease-out;
}
.ad-source:hover,
.ad-source:focus-visible {
  background: color-mix(in oklch, var(--accent) 80%, black);
  box-shadow: 0 2px 6px color-mix(in oklch, var(--accent) 35%, transparent);
  transform: translateY(-1px);
}
.ad-source-arrow {
  font-size: 0.95em;
  line-height: 1;
  display: inline-block;
  transition: transform 0.15s ease-out;
}
.ad-source:hover .ad-source-arrow { transform: translate(1px, -1px); }

/* Audio narration list — clean Whisper output, serif prose treatment */
.quote-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  max-width: var(--measure);
}
.quote-list li {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  margin: 10px 0 10px 24px;
  color: var(--fg);
}

/* Full-transcripts disclosure on brief pages. Visually downplayed below the
   deduped first-sentence list — it's the deep-read material for testimonial
   and scam-reframe patterns where the punchline lands mid-clip. */
.transcripts {
  margin: 12px 0 24px;
  max-width: var(--measure-wide);
}
.transcripts > summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg-muted);
  padding: 6px 0;
  user-select: none;
}
.transcripts > summary:hover {
  color: var(--fg);
}
.transcript-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.transcript-list li {
  margin: 12px 0 14px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--rule);
}
.transcript-list li:first-child {
  border-top: none;
  padding-top: 4px;
}
.transcript-head {
  font-family: var(--sans);
  font-size: 0.86rem;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.transcript-meta {
  font-family: var(--mono);
  color: var(--fg-muted);
  font-size: 0.78rem;
}
.transcript-body {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg);
  white-space: pre-wrap;
}

/* OCR fragments list — visually subordinate to prose. Smaller, muted,
   sans-serif so it doesn't compete with body-text hooks or audio. Treats
   the section as "reference data, look but don't trust" rather than
   featured creative copy. */
.ocr-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  max-width: var(--measure-wide);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 24px;
}
.ocr-list li {
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fg-muted);
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: 4px;
}

/* Compact metadata strip below the lead — one row of key/value pairs
   running horizontally. Replaces the verbose 6-row K/V table that was
   doing more work than the data warranted. */
.brief-brands {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--fg);
  max-width: var(--measure-wide);
}
.brief-brands .k {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-right: 10px;
  font-weight: 600;
}

.brief-meta {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.92rem;
  margin: 0 0 40px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.brief-meta > span { display: inline-flex; align-items: baseline; gap: 6px; }
.brief-meta .k {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  font-weight: 600;
}
.brief-meta .v {
  font-feature-settings: "tnum";
  color: var(--fg-strong);
}

/* Dense data table — used for brand × runtime */
.brief table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9rem;
  margin: 12px 0 24px;
  max-width: var(--measure-wide);
}
.brief th, .brief td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}
.brief th {
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brief td.num, .brief th.num {
  text-align: right;
  font-feature-settings: "tnum";
}

/* ──────────────────────────────────────────────────────────────────────── */
/* Recent runs page                                                            */
/* ──────────────────────────────────────────────────────────────────────── */

.runs-table {
  font-family: var(--sans);
  font-size: 0.92rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  max-width: var(--measure-wide);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.runs-table tr + tr td { border-top: 1px solid var(--rule); }
.runs-table td {
  padding: 14px 16px;
  vertical-align: baseline;
}
.runs-table .date {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--fg-strong);
  white-space: nowrap;
  padding-right: 24px;
  width: 1%;
}
.runs-table .summary {
  color: var(--fg-muted);
  font-size: 0.88rem;
}
.runs-table .chips { margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.78rem; }
.runs-table .chip { color: var(--fg); }
.runs-table .chip .k { color: var(--fg-muted); }

/* ──────────────────────────────────────────────────────────────────────── */
/* Footer                                                                      */
/* ──────────────────────────────────────────────────────────────────────── */

footer.site {
  margin-top: 96px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────────── */
/* Mobile                                                                      */
/* ──────────────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .page { padding: 32px 20px 64px; }
  .lead { font-size: 1.15rem; margin-bottom: 36px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pattern-row > a { grid-template-columns: 1fr; }
  .row-tags { grid-column: 1; justify-content: flex-start; }
  .row-meta { gap: 8px; }
  .row-meta .stats { margin-left: 0; width: 100%; margin-top: 4px; }
  .brief .lead:first-letter {
    font-size: 3.2em;
    margin-right: 8px;
  }
  .brief h1 { font-size: 1.6rem; }
  .snapshot li { flex-direction: column; gap: 2px; }
}

/* Stat strip — replaces the prose lead on index + brief.
   Chip row: facts only, scannable in one beat. */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 12px 0 22px 0;
  max-width: var(--measure);
}
.stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-subtle);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
}
.stat-chip .k {
  color: var(--fg-muted);
  font-size: 0.78rem;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.stat-chip .v {
  color: var(--fg-strong);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.stat-accent { border-color: var(--accent); background: var(--accent-bg); }
.stat-accent .v { color: var(--accent); }
.stat-warn { border-style: dashed; border-color: var(--accent); }
.stat-warn .v { color: var(--accent); }
.brief-strip { margin-bottom: 14px; }

/* Format badges on each hook row — answers "video or static?" at a glance.
   Compact mono chip; doesn't compete with the body copy. */
.fmt-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-feature-settings: "tnum";
  line-height: 1.3;
  vertical-align: 0.12em;
  margin-right: 8px;
  border: 1px solid var(--rule);
}
.fmt-video { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.fmt-static { color: var(--fg-muted); }

/* Dedupe chip — appears when the same exact copy ran across multiple ads. */
.dupe {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-left: 4px;
  white-space: nowrap;
}

/* Poster thumbnail on video-hook rows. Stretches the hook grid to 3 cols.
   Clicking the thumb opens the ad in FB Ad Library. The ▶ overlay makes
   it read as "video" without needing a caption. */
/* Poster frame: 9:16 to match the dominant creative aspect in modern FE
   ads (~45% vertical in this scrape). object-fit: contain so landscape +
   square ads still show fully — letterboxed into the dark background
   rather than aggressively center-cropped. */
.hook.has-poster { grid-template-columns: 140px 3.4em 1fr; column-gap: 16px; }
.hook .poster {
  position: relative;
  display: block;
  width: 140px;
  height: 249px;
  border-radius: 4px;
  overflow: hidden;
  background: oklch(14% 0.01 60);
  border: 1px solid var(--rule);
  text-decoration: none;
  align-self: start;
}
.hook .poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hook .poster .poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: transform 0.15s ease-out;
}
.hook .poster:hover .poster-play { transform: scale(1.12); }
@media (max-width: 720px) {
  .hook.has-poster { grid-template-columns: 1fr; }
  .hook .poster { width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 400px; }
}

/* "Also in" cross-references appended to each hook row — labels the
   multi-pattern membership instead of letting duplicate hooks read as
   filler. Subtle by default; chip-shaped so they don't compete with body. */
.crossrefs {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  font-family: var(--sans);
}
.crossrefs-k {
  color: var(--fg-muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin-right: 2px;
  text-transform: uppercase;
}
.crossref {
  display: inline-block;
  padding: 1px 7px;
  font-size: 0.74rem;
  color: var(--fg-muted);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg-subtle);
  white-space: nowrap;
  transition: color 0.12s ease-out, border-color 0.12s ease-out;
}
.crossref:hover { color: var(--accent); border-color: var(--accent); }
.crossref-more { color: var(--fg-muted); font-size: 0.72rem; }

/* Hook gallery — flat index of every unique ad, with brand inline on
   each row's meta line. */
.page-title { font-family: var(--serif); font-size: 1.85rem; margin: 0 0 8px 0; }
.gallery { margin-top: 18px; }
.gallery-row { padding: 14px; border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 10px; background: var(--bg); transition: border-color 0.15s ease-out; }
.gallery-row:hover { border-color: var(--accent); }
.gallery-row:last-child { margin-bottom: 0; }
.hook-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-right: 6px;
}
.hook-brand {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.hook-brand.primary-brand { color: var(--accent); }

/* Brands page — per-brand sections with TOC nav at top */
.brand-toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 28px 0;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.brand-toc {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg-subtle);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.brand-toc:hover { border-color: var(--accent); color: var(--accent); }
.brand-toc.primary-brand { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.brand-toc-n {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-size: 0.74rem;
  color: var(--fg-muted);
}
.brand-section { margin: 38px 0; scroll-margin-top: 12px; }
.brand-heading {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--rule-strong, var(--rule));
}
.brand-heading.primary-brand { color: var(--accent); }
.primary-tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.4em;
  padding: 2px 6px;
  margin-left: 6px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
}

/* Bleed notices — per-brand owning-Page accountability. */
.bleed-notice {
  margin: 6px 0 14px 0;
  font-family: var(--sans);
  font-size: 0.84rem;
}
.bleed-notice code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 4px;
  background: var(--bg-subtle);
  border-radius: 2px;
}
.bleed-clean { color: var(--fg-muted); }
.bleed-clean a { color: var(--fg); text-decoration: none; }
.bleed-clean a:hover { color: var(--accent); }
.bleed-info { color: var(--fg-muted); font-style: italic; }
.bleed-warn {
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  border-radius: 0 4px 4px 0;
}
.bleed-warn strong { color: var(--accent); margin-right: 4px; }
.bleed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 8px;
}
.bleed-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg);
  text-decoration: none;
  color: var(--fg);
  font-size: 0.78rem;
  white-space: nowrap;
}
.bleed-chip:hover { border-color: var(--accent); color: var(--accent); }
.bleed-pct {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.bleed-more { color: var(--fg-muted); font-size: 0.78rem; align-self: center; }

/* Cuts chip — surfaces when one ad body is running across multiple
   library_ids (platform-aware duration variants). */
.cuts {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  white-space: nowrap;
  vertical-align: 0.08em;
}

/* Discovery page — four-section candidate UI. Cards favour serif body
   for sample hooks so they read like quotes, sans/mono for chrome.
   Constrained to single reading column when inside briefing-page so
   the YAML stanzas + sample hooks read at a comfortable line length
   instead of stretching full-bleed across the viewport. */
.briefing-page .discovery-section,
.briefing-page section.discovery-section {
  max-width: 56rem;
  margin: 2rem auto;
  padding: 0 1.5rem 1.5rem;
}
.discovery-section {
  margin: 32px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.discovery-section h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 12px 0;
}
.discovery-section h2 .count {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: 8px;
  vertical-align: 0.18em;
}
.discovery-empty {
  color: var(--fg-muted);
  font-style: italic;
  font-size: 0.92rem;
}
.discovery-card {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-subtle);
}
.discovery-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.discovery-card-head h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  margin: 0;
}
.discovery-persist {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
}
.discovery-persist.new {
  color: var(--accent);
  font-weight: 600;
}
.discovery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.discovery-count {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  color: var(--fg);
  font-weight: 600;
}
.discovery-sample {
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 8px 0;
  padding-left: 12px;
  border-left: 2px solid var(--rule);
  color: var(--fg);
}
.discovery-yaml { margin-top: 8px; }
.discovery-yaml summary {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--fg-muted);
  cursor: pointer;
}
.discovery-yaml summary:hover { color: var(--accent); }
.discovery-yaml pre {
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow-x: auto;
}
.discovery-yaml code {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--fg);
  white-space: pre;
}
.discovery-risk {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.88rem;
}
.discovery-risk th, .discovery-risk td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.discovery-risk th { color: var(--fg-muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; }

/* Today dashboard — feed rows + run strip. */
.run-strip {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--fg-muted);
  padding: 8px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.run-strip strong {
  color: var(--fg-strong);
  font-weight: 600;
}
.run-strip .run-strip-alert {
  color: var(--accent);
}
.run-strip .run-strip-alert strong { color: var(--accent); }

.feed {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}
.feed-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--fg);
}
.feed-row:last-child { border-bottom: 1px solid var(--rule); }
.feed-row:hover .feed-row-label { color: var(--accent); }

.feed-row-poster {
  position: relative;
  width: 100px;
  height: 178px;
  background: oklch(14% 0.01 60);
  border-radius: 3px;
  overflow: hidden;
  align-self: start;
}
.feed-row-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-row-poster-placeholder {
  background: var(--bg-subtle);
}
.feed-row-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.feed-row-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.feed-row-delta {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.delta-accent { color: var(--accent); }
.delta-muted { color: var(--fg-muted); }
.feed-row-label {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  color: var(--fg-strong);
}
.feed-row-context {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--fg-muted);
  margin: 2px 0 0 0;
  line-height: 1.4;
}
.feed-row-brands {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--fg-muted);
  margin: 4px 0 0 0;
  letter-spacing: 0.01em;
}
.feed-row-more {
  color: var(--fg-muted);
  opacity: 0.8;
}

@media (max-width: 720px) {
  .feed-row {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .feed-row-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: 70vh;
  }
}

/* Print-light treatment for accessibility tooling */
@media print {
  :root { --bg: #fff; --fg: #111; --rule: #ccc; }
  .controls, footer.site { display: none; }
}

/* ──────────────────────────────────────────────────────────────────────
   Field Briefing — Today dashboard register (probe 5, May 2026).
   Heat-mapped dossier rhythm + ticker rail + classification strip.
   Scoped under .briefing-page so it doesn't leak to /patterns, /briefs,
   /brands, /discovery, /recent — those still use the legacy editorial CSS.
   ────────────────────────────────────────────────────────────────────── */

.briefing-page {
  --warm: oklch(0.55 0.16 35);
  --cool: oklch(0.50 0.10 240);
  --neutral: oklch(0.45 0.005 60);
  --hot-bg: oklch(0.94 0.04 40);
  --cold-bg: oklch(0.93 0.025 235);
  --ticker-bg: oklch(0.94 0.008 60);
}
@media (prefers-color-scheme: dark) {
  .briefing-page {
    --warm: oklch(0.78 0.15 35);
    --cool: oklch(0.72 0.12 240);
    --neutral: oklch(0.70 0.008 60);
    --hot-bg: oklch(0.22 0.04 40);
    --cold-bg: oklch(0.20 0.03 235);
    --ticker-bg: oklch(0.19 0.008 60);
  }
}

/* The page itself overrides the global .page wrapper for full-bleed top strip */
.briefing-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.briefing-strip {
  background: var(--fg-strong);
  color: var(--bg);
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .briefing-strip { font-size: 0.62rem; letter-spacing: 0.08em; padding: 0.5rem 1rem; }
}

.briefing-page .briefing-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.briefing-page .briefing-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.briefing-page .briefing-nav a:hover { color: var(--fg-strong); border-bottom-color: var(--fg-strong); }
.briefing-page .briefing-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.briefing-page .nav-primary { font-weight: 700; }
.briefing-page .nav-data-group { display: inline-flex; align-items: baseline; gap: 0.9rem; margin-left: auto; padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.briefing-page .nav-data-label { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); font-weight: 700; }
.briefing-page .nav-data-group a { font-size: 0.85rem; color: var(--fg-muted); }
@media (max-width: 640px) {
  .briefing-page .nav-data-group { margin-left: 0; border-left: 0; padding-left: 0; width: 100%; }
}

.briefing-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}
.briefing-header .kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.85rem;
}
.briefing-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
  max-width: 26ch;
  color: var(--fg-strong);
}
.briefing-header .synth {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 60ch;
  font-style: italic;
  margin: 0;
}
.briefing-header .synth strong { color: var(--fg); font-style: normal; font-weight: 600; }

.briefing-spread {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
@media (max-width: 900px) {
  .briefing-spread { grid-template-columns: 1fr; gap: 2rem; }
}

.dossier {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 0 2rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.dossier:last-child { border-bottom: 0; }
.dossier::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 3px;
  height: 1.4rem;
  background: var(--neutral);
}
.dossier.warm::before { background: var(--warm); }
.dossier.cool::before { background: var(--cool); }

/* Dossier header row: momentum delta on the left, longest-run figure on
   the right. The days figure is the loud quality anchor; the delta gives
   direction. They share a baseline so the row reads as one stat line. */
.dossier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.dossier .delta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--neutral);
  font-weight: 600;
  margin-bottom: 0;
}
.dossier.warm .delta { color: var(--warm); }
.dossier.cool .delta { color: var(--cool); }

.dossier-days {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}
.dossier-days-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.dossier.lead .dossier-days-num { font-size: 2rem; }
.dossier.small .dossier-days-num { font-size: 1.25rem; }
.dossier-days-label {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.dossier h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
  color: var(--fg-strong);
}
.dossier.lead h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}
.dossier.small h3 { font-size: 1.1rem; font-weight: 600; }

.dossier h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.dossier h3 a:hover { border-bottom-color: var(--fg-strong); }

.dossier .body {
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--fg);
  max-width: 60ch;
}
.dossier.lead .body { font-size: 1.05rem; }
.dossier .body p { margin: 0 0 0.85rem; }
.dossier .body p:last-child { margin-bottom: 0; }

.dossier blockquote.hook {
  display: block;
  grid-template-columns: none;
  column-gap: 0;
  max-width: none;
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--ticker-bg);
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.45;
  font-style: normal;
  color: var(--fg);
}
.dossier.warm blockquote.hook { background: var(--hot-bg); }
.dossier.cool blockquote.hook { background: var(--cold-bg); }
.dossier blockquote.hook .attrib {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.dossier blockquote.hook .attrib strong { color: var(--fg); font-weight: 600; }

.briefing-ticker {
  background: var(--ticker-bg);
  padding: 1.25rem 1.25rem 0.5rem;
  align-self: start;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
@media (max-width: 900px) {
  .briefing-ticker { position: static; max-height: none; }
}
.briefing-ticker h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-strong);
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--fg-strong);
}
.bulletin {
  margin-bottom: 0.95rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--fg);
}
.bulletin:last-child { border-bottom: 0; }
.bulletin .time {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.bulletin strong { font-weight: 600; color: var(--fg-strong); }
.bulletin .dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--neutral);
  margin-right: 0.4rem;
  vertical-align: middle;
}
.bulletin.warm .dot { background: var(--warm); }
.bulletin.cool .dot { background: var(--cool); }

.briefing-footer {
  margin-top: 3rem;
  border-top: 2px solid var(--fg-strong);
  border-bottom: 1px solid var(--fg-strong);
  background: var(--ticker-bg);
}
.briefing-footer .stats {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.briefing-footer .stat .label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}
.briefing-footer .stat .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
}
.briefing-footer .stat .desc {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}
.briefing-footer .legend {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.briefing-footer .legend .swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.briefing-footer .legend .sw-warm { background: var(--warm); }
.briefing-footer .legend .sw-cool { background: var(--cool); }
.briefing-footer .legend .sw-neutral { background: var(--neutral); }

.briefing-page footer.site {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* Per-profile theme overrides — applied via body class theme-<key>.
   iGaming gets a violet accent + cooler warm-tint so it's distinct from
   the FE oxblood register without leaning on the casino-green cliché. */
.briefing-page.theme-igaming {
  --accent: oklch(0.42 0.18 285);
  --accent-bg: oklch(0.93 0.04 285);
  --warm: oklch(0.55 0.15 305);
  --hot-bg: oklch(0.94 0.04 305);
}
@media (prefers-color-scheme: dark) {
  .briefing-page.theme-igaming {
    --accent: oklch(0.78 0.17 285);
    --accent-bg: oklch(0.25 0.06 285);
    --warm: oklch(0.78 0.15 305);
    --hot-bg: oklch(0.22 0.05 305);
  }
}

/* Briefing — shared section heading (used on /patterns, /brands, /discovery) */
.briefing-page .briefing-section {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}
.briefing-page .briefing-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--fg-strong);
  font-weight: 700;
}
.briefing-page .briefing-section-head .count {
  font-family: var(--mono);
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  font-weight: 400;
}
.briefing-page .briefing-section-head .subtitle {
  flex: 1;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 0.92rem;
  margin: 0 1rem 0 0;
}

/* Briefing-styled pattern row (compact dossier in lists). Heat tint on
   left edge mirrors the dossier rhythm without the full hook quote. */
.briefing-page .pattern-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.briefing-page .pattern-row {
  position: relative;
  padding: 0.85rem 1.1rem 0.85rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--bg);
  transition: border-color 0.15s ease-out;
}
.briefing-page .pattern-row:hover { border-color: var(--accent); }
.briefing-page .pattern-row:last-child { margin-bottom: 0; }
.briefing-page .pattern-row::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 1.1rem;
  width: 3px;
  height: 1rem;
  border-radius: 2px;
  background: var(--neutral);
}
.briefing-page .pattern-row.warm::before { background: var(--warm); }
.briefing-page .pattern-row.cool::before { background: var(--cool); }
.briefing-page .pattern-row a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  text-decoration: none;
  color: var(--fg);
  align-items: start;
}
.briefing-page .pattern-row .delta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--neutral);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.briefing-page .pattern-row.warm .delta { color: var(--warm); }
.briefing-page .pattern-row.cool .delta { color: var(--cool); }
.briefing-page .pattern-row .label {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--fg-strong);
  line-height: 1.25;
}
.briefing-page .pattern-row a:hover .label { color: var(--accent); }
.briefing-page .pattern-row .meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.briefing-page .pattern-row .meta-strip {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg-muted);
  letter-spacing: 0;
  margin-top: 0.35rem;
  line-height: 1.5;
}
.briefing-page .pattern-row .meta-strip .meta-badge {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--fg-muted);
  vertical-align: 0.12em;
  font-weight: 600;
  margin-right: 0.15rem;
}
.briefing-page .pattern-row .meta-strip .meta-badge-video {
  color: var(--accent);
  border-color: var(--accent);
}
.briefing-page .pattern-row .meta-strip .meta-badge-mixed {
  color: var(--fg);
  border-color: var(--fg-muted);
}
.briefing-page .pattern-row .meta-strip .meta-badge-static {
  color: var(--fg-muted);
  border-color: var(--rule);
  opacity: 0.85;
}
.briefing-page .pattern-row .meta-strip .meta-accent {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.08em;
  font-variant-numeric: tabular-nums;
}
.briefing-page .pattern-row .meta .primary-brand {
  color: var(--accent);
  font-weight: 600;
}
.briefing-page .pattern-row .stats {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.briefing-page .pattern-row .row-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
  color: var(--fg-muted);
  border: 1px solid var(--rule);
  vertical-align: 0.15em;
  font-weight: 500;
}
.briefing-page .pattern-row .row-tag.is-new { color: var(--warm); border-color: var(--warm); }
.briefing-page .pattern-row .row-tag.is-burned { color: var(--cool); border-color: var(--cool); }
.briefing-page .pattern-row .robust-mark {
  color: var(--accent);
  font-size: 0.85em;
  margin-right: 0.05em;
  vertical-align: 0.1em;
  font-weight: 700;
  cursor: help;
}
@media (max-width: 640px) {
  .briefing-page .pattern-row a { grid-template-columns: 1fr; gap: 0.3rem; }
  .briefing-page .pattern-row .stats { text-align: left; }
}

/* Briefing controls strip (filter / sort on /patterns) */
.briefing-page .briefing-controls {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0.85rem 1.5rem;
  background: var(--ticker-bg);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.briefing-page .briefing-controls label { display: flex; align-items: center; gap: 0.4rem; }
.briefing-page .briefing-controls input, .briefing-page .briefing-controls select {
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 0.3rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--fg);
}

/* Briefing prose block (used on /briefs/[sig] essay body) */
.briefing-page .briefing-essay {
  max-width: 42rem;
  margin: 1rem auto 3rem;
  padding: 0 1.5rem;
}

/* Brief-page header variant — narrower than the wide briefing-header used
   on Today/Patterns/etc. so the h1 + standfirst sit on the same reading
   column as the .briefing-essay body below. */
.briefing-page .briefing-header.briefing-header-essay {
  max-width: 42rem;
  margin: 0 auto;
}
.briefing-page .briefing-header.briefing-header-essay h1 {
  max-width: none;
}
.briefing-page .briefing-header.briefing-header-essay .synth {
  max-width: none;
}
.briefing-page .briefing-essay h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--fg-strong);
  font-weight: 700;
}
.briefing-page .briefing-essay h2:first-of-type { margin-top: 1.5rem; }
.briefing-page .briefing-essay h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.4rem;
  color: var(--fg-strong);
}
.briefing-page .briefing-essay p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
}
.briefing-page .briefing-essay blockquote.essay-quote {
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--ticker-bg);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.5;
  font-style: normal;
}
.briefing-page .briefing-essay blockquote.essay-quote .attrib {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.briefing-page .briefing-essay .signal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.82rem;
  margin: 1.25rem 0;
}
.briefing-page .briefing-essay .signal-table th {
  text-align: left;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--fg-strong);
}
.briefing-page .briefing-essay .signal-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px dotted var(--rule);
}
.briefing-page .briefing-essay .signal-table td.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--accent);
}
.briefing-page .briefing-essay .essay-image {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
}

/* ---------------------------------------------------------------------- */
/* Angle stream: lead feature + swipe grid (Today, briefing user)             */
/* ---------------------------------------------------------------------- */
.briefing-page .angle-stream { max-width: 1100px; }
.briefing-page .lead-feature { border: 1px solid var(--rule); border-radius: 14px; padding: 24px 28px; margin-bottom: 1.5rem; background: var(--bg); }
.briefing-page .feature-head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.briefing-page .feature-status { font-size: 0.75rem; font-weight: 600; color: var(--fg-muted); }
.briefing-page .feature-heat { font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.briefing-page .feature-days { margin-left: auto; font-family: var(--mono); font-size: 0.78rem; color: var(--fg-muted); }
.briefing-page .feature-days-num { color: var(--accent); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.briefing-page .feature-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; font-weight: 800; margin: 0.2rem 0 0.5rem; }
.briefing-page .feature-title a { color: var(--fg-strong); text-decoration: none; }
.briefing-page .feature-explainer { font-size: 0.98rem; color: var(--fg); line-height: 1.5; margin: 0 0 1rem; max-width: 46rem; }
.briefing-page .feature-body { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; }
.briefing-page .feature-poster { display: block; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--accent); position: relative; }
.briefing-page .feature-poster img { width: 100%; height: 100%; object-fit: cover; }
.briefing-page .feature-poster-placeholder { background: linear-gradient(135deg, var(--accent), var(--warm)); opacity: 0.85; }
.briefing-page .feature-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; }
.briefing-page .feature-hook { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--fg-strong); margin: 0; }
.briefing-page .feature-brands { font-size: 0.85rem; color: var(--fg-muted); margin: 1rem 0 0; }

.briefing-page .swipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.briefing-page .swipe-tile { display: grid; grid-template-columns: 84px 1fr; gap: 12px; border: 1px solid var(--rule); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--fg); background: var(--bg); transition: border-color 0.15s; }
.briefing-page .swipe-tile:hover { border-color: var(--accent); }
.briefing-page .tile-poster { aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--accent); position: relative; }
.briefing-page .tile-poster img { width: 100%; height: 100%; object-fit: cover; }
.briefing-page .tile-poster-placeholder { background: linear-gradient(135deg, var(--accent), var(--warm)); opacity: 0.8; }
.briefing-page .tile-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.briefing-page .tile-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--fg-strong); line-height: 1.2; }
.briefing-page .tile-explainer { font-size: 0.78rem; color: var(--fg-muted); margin: 0 0 0.4rem; line-height: 1.4; }
.briefing-page .tile-hook { font-family: var(--serif); font-size: 0.92rem; line-height: 1.35; color: var(--fg); margin: 0 0 0.5rem; }
.briefing-page .tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.briefing-page .tile-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.briefing-page .tile-chip { font-size: 0.66rem; font-weight: 600; padding: 1px 6px; border: 1px solid var(--rule); border-radius: 4px; color: var(--fg-muted); }
.briefing-page .tile-chip.is-primary { color: var(--accent); border-color: var(--accent); }
.briefing-page .tile-badge { font-family: var(--mono); font-size: 0.72rem; color: var(--fg-muted); white-space: nowrap; }
.briefing-page .tile-days { color: var(--accent); font-weight: 700; }

/* Brief page plain-language header extras */
.briefing-page .brief-meta-row { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 0.3rem 0 0.6rem; }
.briefing-page .brief-status { font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); }
.briefing-page .brief-heat { font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.briefing-page .brief-days { margin-left: auto; font-family: var(--mono); font-size: 0.82rem; color: var(--fg-muted); }
.briefing-page .brief-explainer { font-size: 1rem; line-height: 1.5; color: var(--fg); max-width: 42rem; margin: 0 0 1rem; }

/* Marker that signals the explainer line is our analysis, not scraped copy.
   Accent sparkle + native title tooltip. cursor:help invites the hover. */
.briefing-page .explainer-mark {
  color: var(--accent);
  font-size: 0.82em;
  margin-right: 0.35em;
  cursor: help;
  vertical-align: 0.05em;
}
