/* ──────────────────────────────────────────────────────────────────
   Letters from the Yard — immersive per-letter page CSS.

   Loaded only on /letters/<slug>/<race_time>/. Everything is scoped
   under .letter / .letter-* so we can't leak onto any other page.

   Visual language:
     • Newspaper editorial — Iowan Old Style serif body, generous
       line-height, ragged-right paragraphs, drop-cap on the opening
     • Reading-progress bar at the top (gold strip)
     • Cream background — the editorial cousin of the Deep Dive page
     • Medal palette matches Deep Dive PR2 exactly (gold/silver/
       bronze/placed) so the "How it Finishes" cards are visually
       continuous with the racecard's results layer
     • Two-column layout on desktop: prose left, sticky sidebar
       (bet card + chapter chain) right. Stacks on mobile.
   ────────────────────────────────────────────────────────────── */

.letter {
  /* Palette tokens — mirror Deep Dive's --dd-* family so the two
     surfaces feel like siblings, just with letter-specific knobs
     under the .letter scope. */
  --l-ink:           #0b0e15;
  --l-ink-70:        rgba(11, 14, 21, 0.72);
  --l-ink-50:        rgba(11, 14, 21, 0.50);
  --l-ink-20:        rgba(11, 14, 21, 0.20);
  --l-ink-08:        rgba(11, 14, 21, 0.08);
  --l-gold:          #d4af37;
  --l-gold-bright:   #e8c558;
  --l-gold-ink:      #6f4f0a;
  --l-cream:         #faf6ec;
  --l-cream-warm:    #f5efde;
  --l-emerald:       #1a7d4a;
  --l-emerald-soft:  rgba(26, 125, 74, 0.08);

  /* LLaMa palette — soft sage / parchment, distinct from the
     Mr Fox russet-gold. Used on bylines, taglines and any
     LLaMa-branded chips. The brand is the letter writer; the
     case "LLaMa" carries the LLM hint, the colour stays calm. */
  --l-llama:         #c1b8a0;
  --l-llama-ink:     #6b6448;
  --l-llama-soft:    rgba(193, 184, 160, 0.18);
  --l-bronze:        #b35900;
  --l-bronze-soft:   rgba(179, 89, 0, 0.08);
  --l-slate:         #475569;
  --l-slate-soft:    rgba(71, 85, 105, 0.08);
  --l-rose:          #b91c1c;
  --l-rose-soft:     rgba(185, 28, 28, 0.08);

  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 80px;
  background: var(--l-cream);
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  color: var(--l-ink);
  line-height: 1.7;
}

/* ── Reading-progress bar ──────────────────────────────────── */
.letter-progress {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(212, 175, 55, 0.12);
  z-index: 1000;
  overflow: hidden;
}
.letter-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--l-gold), var(--l-gold-bright));
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 80ms ease-out;
  will-change: transform;
}

/* ── Masthead row — small identifier strip ───────────────── */
.letter__masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--l-ink-08);
}
.letter__masthead-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 50%;
  text-decoration: none;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 900;
  flex: 0 0 auto;
  transition: transform 160ms ease, background 160ms ease;
}
.letter__masthead-back:hover,
.letter__masthead-back:focus-visible {
  background: var(--l-gold-ink);
  transform: translateX(-2px);
  outline: none;
}
.letter__masthead-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.letter__eyebrow {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
}
.letter__meeting {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--l-ink-70);
}

/* ── Headline + dek + byline ─────────────────────────────── */
.letter__head {
  margin: 0 0 26px;
}
.letter__racecard-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 4px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.letter__racecard-chip strong {
  font-variant-numeric: tabular-nums;
}
.letter__headline {
  margin: 0 0 12px;
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--l-ink);
}
.letter__dek {
  margin: 0 0 16px;
  font-size: 21px;
  font-style: italic;
  color: var(--l-ink-70);
  line-height: 1.4;
  font-weight: 500;
}
.letter__byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  border-top: 1px dashed var(--l-ink-08);
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--l-ink-50);
}
.letter__byline-fox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--l-cream-warm);
  border-radius: 50%;
  font-size: 16px;
}
.letter__byline strong {
  color: var(--l-ink);
  font-weight: 800;
}
.letter__byline-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--l-llama-ink);
  background: var(--l-llama-soft);
  border-radius: 4px;
  vertical-align: 2px;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .letter__byline-tag { display: none; }
}
.letter__byline-engine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  background: linear-gradient(135deg,
    rgba(184, 134, 11, 0.10),
    rgba(184, 134, 11, 0.04));
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-ink);
  white-space: nowrap;
  cursor: help;
}
.letter__byline-engine-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--l-gold-bright, #c89f3a);
  box-shadow: 0 0 0 3px rgba(200, 159, 58, 0.18);
  animation: letter-engine-pulse 2.4s ease-in-out infinite;
}
@keyframes letter-engine-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}
@media (max-width: 560px) {
  .letter__byline { flex-wrap: wrap; }
  .letter__byline-engine { margin-left: 0; width: 100%; justify-content: center; }
}

/* ── Race chip cluster ────────────────────────────────────── */
.letter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
}
.letter__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--l-cream-warm);
  border: 1px solid var(--l-ink-08);
  border-radius: 999px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--l-ink);
  text-decoration: none;
}
.letter__chip--prize {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--l-gold-ink);
}
.letter__chip--cta {
  background: var(--l-ink);
  color: var(--l-cream);
  border-color: var(--l-ink);
  transition: transform 160ms ease;
}
.letter__chip--cta:hover,
.letter__chip--cta:focus-visible {
  transform: translateX(2px);
  outline: none;
}

/* ── Two-column body grid (desktop) ──────────────────────── */
.letter__body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

/* ── Body prose ──────────────────────────────────────────── */
.letter__body {
  min-width: 0;  /* allow the prose column to shrink in grid */
}
.letter__section {
  margin: 0 0 38px;
}
.letter__section p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--l-ink);
}
.letter__section p:last-child {
  margin-bottom: 0;
}

/* Section headings */
.letter__h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--l-ink);
}
.letter__h2-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
}
.letter__h2-icon--gold {
  background: var(--l-gold);
  color: var(--l-ink);
}

/* ── 1. Opening — drop-cap on the first character ────────── */
.letter__section--opening p:first-child::first-letter {
  float: left;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 84px;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  margin: 6px 0 0;
  color: var(--l-gold-ink);
  font-weight: 800;
}
.letter__section--opening p {
  font-size: 19px;
  line-height: 1.75;
}

/* ── 2. Pace narrative ───────────────────────────────────── */
.letter__section--pace p {
  font-size: 17.5px;
  font-style: italic;
  color: var(--l-ink);
  border-left: 3px solid var(--l-gold);
  padding: 2px 0 2px 18px;
  margin: 0;
}

/* ── 3. Storylines (3 bullets) ───────────────────────────── */
.letter__storylines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.letter__storyline {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--l-ink-08);
  border-left: 3px solid var(--l-gold);
  border-radius: 6px;
}
.letter__storyline-mark {
  color: var(--l-gold);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}
.letter__storyline-headline {
  display: block;
  margin: 0 0 4px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
}
.letter__storyline-detail {
  display: block;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--l-ink);
}

/* ── 4. How it Finishes — predicted 1-2-3-4 cards ──────── */
.letter__finish-note {
  margin: 0 0 18px;
  font-size: 14px;
  font-style: italic;
  color: var(--l-ink-50);
}
.letter__finish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.letter-finish__card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--l-ink-08);
  border-left: 6px solid var(--l-slate);
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.letter-finish__card--gold   { border-left-color: var(--l-gold);    background: linear-gradient(180deg, rgba(212,175,55,0.06), #fff 70%); }
.letter-finish__card--silver { border-left-color: #c0c4cc;          background: linear-gradient(180deg, rgba(192,196,204,0.10), #fff 70%); }
.letter-finish__card--bronze { border-left-color: var(--l-bronze);  background: linear-gradient(180deg, rgba(179,89,0,0.06),    #fff 70%); }
.letter-finish__card--placed { border-left-color: var(--l-emerald); background: linear-gradient(180deg, rgba(26,125,74,0.05),   #fff 70%); }

.letter-finish__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 12px;
}
.letter-finish__medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--l-cream-warm);
  border: 2px solid var(--l-ink-08);
  font-size: 22px;
  font-weight: 900;
  color: var(--l-ink-70);
  flex: 0 0 auto;
}
.letter-finish__card--gold   .letter-finish__medal { background: linear-gradient(180deg, #fde9a3, var(--l-gold)); border-color: rgba(111,79,10,0.4); }
.letter-finish__card--silver .letter-finish__medal { background: linear-gradient(180deg, #f3f4f6, #d1d5db); border-color: rgba(75,85,99,0.30); }
.letter-finish__card--bronze .letter-finish__medal { background: linear-gradient(180deg, #d8965b, var(--l-bronze)); border-color: rgba(120,60,0,0.55); color:#fff; }
.letter-finish__card--placed .letter-finish__medal { background: var(--l-emerald-soft); border-color: rgba(26,125,74,0.35); color: var(--l-emerald); }

.letter-finish__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.letter-finish__position {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--l-ink-50);
}
.letter-finish__horse {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--l-ink);
}
.letter-finish__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
}
.letter-finish__odds {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 4px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.letter-finish__odds--live {
  background: var(--l-emerald-soft);
  color: var(--l-emerald);
  border: 1px solid rgba(26, 125, 74, 0.30);
}
.letter-finish__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background: var(--l-cream-warm);
  border: 1px solid var(--l-ink-08);
  border-radius: 999px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--l-ink-70);
}
.letter-finish__reasoning {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--l-ink);
}

/* ── 5. The Verdict — boxed editorial card ────────────── */
.letter__verdict {
  position: relative;
  margin: 0;
  padding: 28px 32px 22px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 10px;
  border-left: 6px solid var(--l-gold);
  box-shadow: 0 24px 48px -32px rgba(11, 14, 21, 0.55);
}
.letter__verdict--high {
  border-left-color: var(--l-gold);
}
.letter__verdict--medium {
  border-left-color: var(--l-gold-bright);
}
.letter__verdict--speculative {
  border-left-color: #a8acb0;
}
.letter__verdict-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 16px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--l-gold);
}
.letter__verdict-conviction {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--l-cream);
  opacity: 0.7;
}
.letter__verdict p {
  margin: 0 0 18px;
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--l-cream);
}
.letter__verdict-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  color: var(--l-cream);
  opacity: 0.85;
}
.letter__verdict-signature strong {
  color: var(--l-gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.letter__verdict-signature em {
  display: block;
  font-style: italic;
  font-size: 11px;
  opacity: 0.65;
}
.letter__verdict-fox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  font-size: 14px;
}

/* ── Sticky sidebar — bet card + chapter chain ──────────── */
.letter__sidebar {
  position: relative;
}
.letter__sidebar-sticky {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.letter__bet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--l-gold-bright), var(--l-gold));
  color: var(--l-ink);
  border: 1px solid rgba(111, 79, 10, 0.35);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 28px -16px rgba(212, 175, 55, 0.6);
}
.letter__bet-eyebrow {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
}
.letter__bet-horse {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--l-ink);
}
.letter__bet-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 3px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  width: fit-content;
  margin: 4px 0 0;
}
.letter__bet-stake {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--l-gold-ink);
  margin: 2px 0 0;
}
.letter__bet-rationale {
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(111, 79, 10, 0.25);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.45;
  color: var(--l-gold-ink);
}

/* ── Mr Fox's pick on this race — cross-reference tile ──────
   Sits below LLaMa's bet, above the in-meeting chain. Gold
   accent reads as "Fox content" inside LLaMa's space without
   competing with LLaMa's own bet (which is a solid gold pill).
   Self-hidden when no Fox pick exists on this race. */
.letter__fox-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(232, 197, 88, 0.06);
  border: 1px solid rgba(232, 197, 88, 0.32);
  border-left: 3px solid var(--l-gold-bright);
  border-radius: 8px;
}
.letter__fox-pick-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.letter__fox-pick-mark {
  font-size: 17px;
  line-height: 1;
}
.letter__fox-pick-eyebrow {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
}
.letter__fox-pick-horse-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.letter__fox-pick-horse {
  font-family: "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  color: var(--l-ink);
}
.letter__fox-pick-horse a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--l-gold-bright);
}
.letter__fox-pick-horse a:hover {
  color: var(--l-gold-ink);
}
.letter__fox-pick-odds {
  display: inline-block;
  padding: 3px 9px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--l-ink);
  background: var(--l-cream-warm);
  border: 1px solid rgba(111, 79, 10, 0.18);
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.letter__fox-pick-conviction {
  align-self: flex-start;
  padding: 2px 8px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
  background: rgba(232, 197, 88, 0.16);
  border-radius: 4px;
}
.letter__fox-pick-analysis {
  margin: 4px 0 4px;
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--l-ink-70);
}
.letter__fox-pick-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding-bottom: 1px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--l-gold-bright);
  transition: color 150ms ease, transform 150ms ease;
}
.letter__fox-pick-cta:hover {
  color: var(--l-ink);
  transform: translateX(2px);
}

/* In-meeting chapter chain — sidebar widget */
.letter__chain {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 14px;
  background: #fff;
  border: 1px solid var(--l-ink-08);
  border-radius: 8px;
}
.letter__chain-eyebrow {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--l-ink-50);
}
.letter__chain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.letter__chain-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.letter__chain-link,
.letter__chain-item--current span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12.5px;
  color: var(--l-ink-70);
  flex: 1;
}
.letter__chain-link:hover,
.letter__chain-link:focus-visible {
  background: var(--l-cream-warm);
  color: var(--l-ink);
  outline: none;
}
.letter__chain-item--current .letter__chain-name {
  color: var(--l-ink);
  font-weight: 800;
}
.letter__chain-item--current {
  background: rgba(212, 175, 55, 0.10);
  border-radius: 4px;
}
.letter__chain-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}
.letter__chain-item--current .letter__chain-num {
  background: var(--l-gold);
  color: var(--l-ink);
}
.letter__chain-name {
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

/* ── Footer nav — previous / next chapter ──────────────── */
.letter__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--l-ink-08);
}
.letter__nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--l-ink-08);
  border-radius: 8px;
  text-decoration: none;
  color: var(--l-ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.letter__nav-link:hover,
.letter__nav-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(11, 14, 21, 0.25);
  outline: none;
}
.letter__nav-link--placeholder {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}
.letter__nav-link--next {
  text-align: right;
}
.letter__nav-direction {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
}
.letter__nav-num {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--l-ink-50);
}
.letter__nav-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

/* ── Empty-state page ──────────────────────────────────── */
.letter-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
  background: var(--l-cream, #faf6ec);
}
.letter-empty__inner {
  max-width: 560px;
  text-align: center;
}
.letter-empty__eyebrow {
  display: inline-block;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6f4f0a;
  margin: 0 0 14px;
}
.letter-empty__title {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #0b0e15;
}
.letter-empty__body {
  margin: 0 0 24px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(11, 14, 21, 0.72);
}
.letter-empty__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0b0e15;
  color: #faf6ec;
  border-radius: 999px;
  text-decoration: none;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

/* ── Auto-link styling — pick up wire-horse-link from news ── */
.letter a.wire-horse-link {
  color: var(--l-gold-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--l-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.letter a.wire-horse-link:hover,
.letter a.wire-horse-link:focus-visible {
  color: var(--l-ink);
  text-decoration-color: var(--l-ink);
}

/* ──────────────────────────────────────────────────────────────────
   FINISH CARD — verdict ribbons (post-race grading overlay)

   Card colour reflects the PREDICTED position (medal palette).
   The verdict ribbon along the bottom reflects the ACTUAL outcome.
   Two cues, one card — readers see Mr Fox's prediction AND what
   actually happened in a single glance.
   ────────────────────────────────────────────────────────── */
.letter-finish__verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px -20px -18px;
  padding: 10px 20px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.letter-finish__verdict-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}

/* hit — gold/emerald glow, "Called it" */
.letter-finish__verdict--hit {
  background: linear-gradient(90deg, rgba(26, 125, 74, 0.18), rgba(26, 125, 74, 0.06));
  color: var(--l-emerald);
  border-top: 1px solid rgba(26, 125, 74, 0.30);
}
.letter-finish__verdict--hit .letter-finish__verdict-mark {
  background: var(--l-emerald);
  color: #fff;
}

/* placed — emerald wash but lighter */
.letter-finish__verdict--placed {
  background: linear-gradient(90deg, rgba(26, 125, 74, 0.10), rgba(26, 125, 74, 0.03));
  color: var(--l-emerald);
  border-top: 1px solid rgba(26, 125, 74, 0.20);
}
.letter-finish__verdict--placed .letter-finish__verdict-mark {
  background: var(--l-emerald-soft);
  color: var(--l-emerald);
}

/* missed — rose tint */
.letter-finish__verdict--missed {
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.08), rgba(185, 28, 28, 0.02));
  color: var(--l-rose);
  border-top: 1px solid rgba(185, 28, 28, 0.18);
}
.letter-finish__verdict--missed .letter-finish__verdict-mark {
  background: var(--l-rose);
  color: #fff;
}

/* nr / dnf — slate, italic, low-key */
.letter-finish__verdict--nr,
.letter-finish__verdict--dnf {
  background: var(--l-slate-soft);
  color: var(--l-slate);
  border-top: 1px solid rgba(71, 85, 105, 0.20);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Card-level grading modifiers — sit ON TOP of the medal palette
   without overriding the prediction colour. Subtle outer glow that
   nudges the eye to graded outcomes. */
.letter-finish__card--hit {
  box-shadow: 0 0 0 1px rgba(26, 125, 74, 0.30),
              0 14px 30px -18px rgba(26, 125, 74, 0.45);
}
.letter-finish__card--missed {
  opacity: 0.85;
  filter: saturate(0.88);
}
.letter-finish__card--nr,
.letter-finish__card--dnf {
  opacity: 0.72;
  filter: saturate(0.65);
}

/* ──────────────────────────────────────────────────────────────────
   VERDICT CARD — letter-level glow (the editorial close)

   Drives by the letter_verdict view variable:
     hit   — winner-call landed       → strong gold glow
     place — winner-call placed top-4 → silver glow
     miss  — winner-call failed       → neutral (no extra glow)
   ────────────────────────────────────────────────────────── */
.letter__verdict--graded-hit {
  border-left-color: var(--l-emerald);
  box-shadow:
    0 0 0 1px rgba(26, 125, 74, 0.45),
    0 24px 48px -22px rgba(26, 125, 74, 0.55);
}
.letter__verdict--graded-hit .letter__verdict-eyebrow::after {
  content: ' \2713 CALLED IT';
  color: var(--l-emerald);
  margin-left: 8px;
  letter-spacing: 0.18em;
}
.letter__verdict--graded-place {
  border-left-color: #c0c4cc;
  box-shadow: 0 0 0 1px rgba(120, 125, 130, 0.25);
}
.letter__verdict--graded-place .letter__verdict-eyebrow::after {
  content: ' \2713 PLACED';
  color: #c0c4cc;
  margin-left: 8px;
  letter-spacing: 0.18em;
}
/* miss intentionally has no glow — own the miss via the cards, not
   the verdict card itself. Matches the Deep Dive's row-level
   grading rule. */

/* ──────────────────────────────────────────────────────────────────
   MEETING HUB — /letters/ and /letters/<slug>/

   Full-bleed layout: dark hero band at the top, cream content
   below, dark signed footer. Reads top-to-bottom like a
   magazine cover. No narrow centered column.

   Card grid is 2-up on desktop and stacks to 1-up on mobile;
   each card carries its own confidence accent + hover lift.
   ────────────────────────────────────────────────────────── */

.hub {
  --l-ink:           #0b0e15;
  --l-ink-70:        rgba(11, 14, 21, 0.72);
  --l-ink-50:        rgba(11, 14, 21, 0.50);
  --l-ink-08:        rgba(11, 14, 21, 0.08);
  --l-gold:          #d4af37;
  --l-gold-bright:   #e8c558;
  --l-gold-ink:      #6f4f0a;
  --l-cream:         #faf6ec;
  --l-cream-warm:    #f5efde;
  --l-emerald:       #1a7d4a;
  --l-emerald-soft:  rgba(26, 125, 74, 0.08);

  /* LLaMa palette — soft sage / parchment, distinct from the
     Mr Fox russet-gold. Used on bylines, taglines and any
     LLaMa-branded chips. The brand is the letter writer; the
     case "LLaMa" carries the LLM hint, the colour stays calm. */
  --l-llama:         #c1b8a0;
  --l-llama-ink:     #6b6448;
  --l-llama-soft:    rgba(193, 184, 160, 0.18);
  --l-slate:         #475569;
  --l-slate-soft:    rgba(71, 85, 105, 0.08);

  font-family: "Iowan Old Style", Charter, Georgia, serif;
  color: var(--l-ink);
}

/* ── HERO BAND — full-bleed dark masthead ────────────────── */
.hub-hero {
  position: relative;
  padding: 96px 32px 88px;
  background:
    radial-gradient(1200px 600px at 80% 110%, rgba(212, 175, 55, 0.18), transparent 60%),
    radial-gradient(900px 500px at 15% 0%, rgba(26, 125, 74, 0.12), transparent 65%),
    linear-gradient(180deg, #0c1320 0%, #0b0e15 100%);
  color: var(--l-cream);
  overflow: hidden;
  isolation: isolate;
}
.hub-hero__glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hub-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ── Hero portrait — LLaMa stands in the right column, anchored
   to the hero floor on desktop (magazine-cover composition). On
   mobile she shrinks to a small masthead avatar above the copy.   */
.hub-hero__portrait {
  margin: 0;
  position: relative;
  z-index: 1;
}
.hub-hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}
@media (min-width: 900px) {
  /* Hero loses its own bottom padding so the portrait can touch
     the floor; whitespace moves onto the .hub-hero__copy column. */
  .hub-hero { padding-bottom: 0; }
  .hub-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    column-gap: 56px;
    align-items: end;
    text-align: left;
  }
  .hub-hero__copy   { align-self: end; padding-bottom: 88px; }
  .hub-hero__portrait { align-self: end; }
  .hub-hero__portrait img {
    filter:
      drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55))
      drop-shadow(0 -2px 20px rgba(212, 175, 55, 0.08));
  }
  /* Title clamp was sized for the full-width hero (9vw, max 108px).
     With the portrait stealing the right column, ~720px of copy width
     can't fit a 108px-tall headline on one line. Smaller cap + balance
     keeps short titles on a single line and distributes longer ones
     evenly across two. */
  .hub-hero__title {
    font-size: clamp(44px, 6.4vw, 78px);
    text-wrap: balance;
  }
}
@media (max-width: 899px) {
  /* Quiet portrait above the eyebrow — title stays the hero.
     Flex column so order:-1 lifts the figure above the copy. */
  .hub-hero__inner {
    display: flex;
    flex-direction: column;
  }
  .hub-hero__portrait {
    max-width: 170px;
    margin: 0 auto 22px;
    order: -1;
  }
}
.hub-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--l-gold);
  margin: 0 0 22px;
}
.hub-hero__eyebrow-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--l-gold);
  color: var(--l-ink);
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0;
}
.hub-hero__title {
  margin: 0 0 22px;
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--l-cream);
  text-shadow: 0 1px 0 rgba(212, 175, 55, 0.10), 0 24px 60px rgba(0, 0, 0, 0.4);
}
.hub-hero__date {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  justify-content: center;
  margin: 0 0 28px;
  font-family: "DM Sans", "Inter", sans-serif;
}
.hub-hero__date-day {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--l-gold);
}
.hub-hero__date-rest {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: rgba(250, 246, 236, 0.60);
}
.hub-hero__tagline {
  max-width: 640px;
  margin: 0 auto 22px;
  font-family: "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(250, 246, 236, 0.78);
  text-align: center;
}
.hub-hero__tagline strong {
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--l-llama);
}
.hub-hero__tagline em {
  font-style: italic;
  color: var(--l-gold-bright);
  font-weight: 600;
}
.hub-hero__intro {
  max-width: 720px;
  margin: 0 auto 32px;
}
.hub-hero__intro p {
  margin: 0 0 8px;
  font-size: 19px;
  font-style: italic;
  line-height: 1.55;
  color: rgba(250, 246, 236, 0.78);
}
.hub-hero__stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 8px 0 0;
  padding: 16px 28px;
  list-style: none;
  background: rgba(11, 14, 21, 0.42);
  border: 1px solid rgba(212, 175, 55, 0.20);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.hub-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
}
.hub-hero__stat-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: var(--l-gold-bright);
  font-variant-numeric: tabular-nums;
}
.hub-hero__stat--fox .hub-hero__stat-num { font-size: 24px; }
.hub-hero__stat-label {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.55);
}
.hub-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(212, 175, 55, 0.30);
}

/* ── BODY BAND — cream, with the chapter grid ─────────── */
.hub-body {
  background: var(--l-cream);
  padding: 64px 32px 80px;
}
.hub-body__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hub-body__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 32px;
}
.hub-body__eyebrow {
  display: block;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
  margin: 0 0 6px;
}
.hub-body__h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--l-ink);
}
.hub-body__note {
  margin: 0;
  max-width: 360px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: var(--l-ink-50);
}

/* ── CHAPTER GRID ────────────────────────────────────── */
.hub-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* ── CHAPTER CARD ────────────────────────────────────── */
.hub-card {
  position: relative;
  list-style: none;
}
.hub-card__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--l-ink-08);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(11, 14, 21, 0.03),
    0 12px 28px -16px rgba(11, 14, 21, 0.10);
  text-decoration: none;
  color: var(--l-ink);
  height: 100%;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
  overflow: hidden;
}
.hub-card__link::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--l-gold), var(--l-gold-bright));
  opacity: 0.85;
  transition: opacity 200ms ease, height 200ms ease;
}
.hub-card--high       .hub-card__link::before { background: linear-gradient(90deg, var(--l-emerald), #2da66a); }
.hub-card--medium     .hub-card__link::before { background: linear-gradient(90deg, var(--l-gold), var(--l-gold-bright)); }
.hub-card--speculative .hub-card__link::before { background: linear-gradient(90deg, var(--l-slate), #6b7790); }
.hub-card__link:hover,
.hub-card__link:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 2px 0 rgba(11, 14, 21, 0.04),
    0 24px 48px -18px rgba(11, 14, 21, 0.22);
  border-color: rgba(11, 14, 21, 0.16);
  outline: none;
}
.hub-card__link:hover::before,
.hub-card__link:focus-visible::before {
  height: 6px;
  opacity: 1;
}

.hub-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
}
.hub-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.hub-card__head-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.hub-card__time {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--l-ink-70);
  font-variant-numeric: tabular-nums;
}
.hub-card__race {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--l-ink-50);
  line-height: 1.35;
}
.hub-card__class {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--l-cream-warm);
  border: 1px solid var(--l-ink-08);
  border-radius: 999px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--l-ink-70);
  flex: 0 0 auto;
  margin-top: 4px;
}

.hub-card__headline {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: -0.013em;
  line-height: 1.2;
  color: var(--l-ink);
}
.hub-card__dek {
  margin: 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  color: var(--l-ink-70);
}

.hub-card__foot {
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--l-ink-08);
}
.hub-card__foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hub-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--l-cream-warm);
  border: 1px solid var(--l-ink-08);
  border-radius: 999px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--l-ink-70);
}
.hub-card__chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.hub-card__chip--high {
  background: var(--l-emerald-soft);
  border-color: rgba(26, 125, 74, 0.30);
  color: var(--l-emerald);
}
.hub-card__chip--medium {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.30);
  color: var(--l-gold-ink);
}
.hub-card__chip--speculative {
  background: var(--l-slate-soft);
  border-color: rgba(71, 85, 105, 0.25);
  color: var(--l-slate);
}
.hub-card__chip--muted {
  background: transparent;
  border-color: var(--l-ink-08);
  color: var(--l-ink-50);
  letter-spacing: 0.04em;
}

.hub-card__bet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 10px;
  font-family: "DM Sans", "Inter", sans-serif;
  width: fit-content;
}
.hub-card__bet-label  { font-size: 16px; }
.hub-card__bet-horse {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--l-ink);
}
.hub-card__bet-type {
  padding: 3px 8px;
  background: var(--l-ink);
  color: var(--l-cream);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.hub-card__bet-odds {
  margin-left: auto;
  padding: 4px 11px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.48);
  color: var(--l-gold-ink);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hub-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-gold-ink);
  align-self: flex-end;
}
.hub-card__cta-arrow {
  font-size: 16px;
  transition: transform 200ms ease;
}
.hub-card__link:hover .hub-card__cta-arrow,
.hub-card__link:focus-visible .hub-card__cta-arrow {
  transform: translateX(5px);
}

/* ── FOOTER BAND — signed colophon ───────────────────── */
.hub-foot {
  background: linear-gradient(180deg, #0b0e15 0%, #060810 100%);
  color: var(--l-cream);
  padding: 32px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}
.hub-foot__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hub-foot__fox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  font-size: 20px;
  flex: 0 0 auto;
}
.hub-foot__stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 13px;
}
.hub-foot__stack strong {
  font-weight: 900;
  letter-spacing: 0.04em;
}
.hub-foot__stack em {
  font-style: italic;
  font-size: 12px;
  color: rgba(250, 246, 236, 0.55);
}
.hub-foot__engine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 5px 10px;
  align-self: flex-start;
  background: rgba(200, 159, 58, 0.10);
  border: 1px solid rgba(200, 159, 58, 0.28);
  border-radius: 999px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--l-gold-bright, #c89f3a);
}
.hub-foot__engine-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--l-gold-bright, #c89f3a);
  box-shadow: 0 0 0 3px rgba(200, 159, 58, 0.18);
  animation: letter-engine-pulse 2.4s ease-in-out infinite;
}
.hub-foot__link {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-gold-bright);
  text-decoration: none;
  transition: transform 200ms ease;
}
.hub-foot__link:hover,
.hub-foot__link:focus-visible {
  transform: translateX(4px);
  outline: none;
}

/* ── RESPONSIVE — tablet ≤ 900px ─────────────────────── */
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; gap: 18px; }
  .hub-hero { padding: 72px 22px 64px; }
  .hub-body { padding: 48px 22px 64px; }
  .hub-body__head { flex-direction: column; align-items: flex-start; }
  .hub-body__note { max-width: none; }
}

/* ── RESPONSIVE — mobile ≤ 560px ─────────────────────── */
@media (max-width: 560px) {
  .hub-hero { padding: 52px 18px 48px; }
  .hub-hero__stats { gap: 12px; padding: 12px 16px; border-radius: 14px; }
  .hub-hero__stat-divider--hide-sm { display: none; }
  .hub-hero__stat-num { font-size: 24px; }
  .hub-hero__stat-divider { height: 28px; }
  .hub-card__link { padding: 22px 20px 20px; }
  .hub-card__headline { font-size: 20px; }
  .hub-card__num { width: 38px; height: 38px; font-size: 19px; border-radius: 10px; }
  .hub-body { padding: 36px 18px 56px; }
  .hub-foot { padding: 22px 18px; }
  .hub-foot__inner { flex-wrap: wrap; gap: 12px; }
  .hub-foot__link { width: 100%; }
}

/* ──────────────────────────────────────────────────────────────────
   RACECARD EMBLEM — "Read Mr Fox's letter" CTA on /races/<id>/

   Sits between the big-race hero and the toolbar. Self-hides when
   no letter exists. Visual sibling of the cinematic CTA on the
   Deep Dive — Mr Fox's editorial output reads as one family.
   ────────────────────────────────────────────────────────── */
.racecard-letter-emblem {
  margin: 16px auto;
  max-width: 1080px;
  padding: 0 24px;
}
.racecard-letter-emblem__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #e8c558, #d4af37);
  color: #0b0e15;
  border: 1px solid rgba(111, 79, 10, 0.40);
  border-radius: 10px;
  text-decoration: none;
  font-family: "DM Sans", "Inter", sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 30px -18px rgba(212, 175, 55, 0.5);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.racecard-letter-emblem__link:hover,
.racecard-letter-emblem__link:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 36px -16px rgba(212, 175, 55, 0.65);
  outline: none;
}
.racecard-letter-emblem__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #0b0e15;
  color: #d4af37;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.30);
  flex: 0 0 auto;
}
.racecard-letter-emblem__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.racecard-letter-emblem__eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6f4f0a;
}
.racecard-letter-emblem__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #0b0e15;
}
.racecard-letter-emblem__meta {
  font-size: 12px;
  font-weight: 700;
  color: #6f4f0a;
  opacity: 0.8;
}
.racecard-letter-emblem__arrow {
  font-size: 22px;
  font-weight: 900;
  color: #0b0e15;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}
.racecard-letter-emblem__link:hover .racecard-letter-emblem__arrow,
.racecard-letter-emblem__link:focus-visible .racecard-letter-emblem__arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .racecard-letter-emblem { padding: 0 14px; }
  .racecard-letter-emblem__link { gap: 12px; padding: 12px 14px; }
  .racecard-letter-emblem__title { font-size: 16px; }
  .racecard-letter-emblem__arrow { display: none; }
}

/* ── Tablet (≤ 960px) — drop the sticky sidebar ────────── */
@media (max-width: 960px) {
  .letter__body-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .letter__sidebar-sticky {
    position: relative;
    top: 0;
  }
}

/* ── Mobile (≤ 640px) — looser type, simpler chrome ───── */
@media (max-width: 640px) {
  .letter {
    padding: 18px 16px 60px;
  }
  .letter__section p,
  .letter__section--opening p {
    font-size: 17px;
  }
  .letter__section--opening p:first-child::first-letter {
    font-size: 64px;
    padding: 4px 10px 0 0;
  }
  .letter__headline { font-size: clamp(28px, 7vw, 38px); }
  .letter__dek { font-size: 18px; }
  .letter__verdict { padding: 22px 22px 18px; }
  .letter__verdict p { font-size: 19px; }
  .letter__nav { grid-template-columns: 1fr; }
  .letter__nav-link--next { text-align: left; }
}
