/* Slice D — Sly Man's Lay of the Day hub.
 *
 * Palette + type mirrors BoD (same persona, same brand family) but
 * flips the emotional accent from confidence-gold to a cooler
 * skeptical-slate. Where BoD says "back this horse", LoD says
 * "the market has this wrong" — CSS supports that tone.
 *
 * Structure:
 *   .lod              — page wrapper
 *   .lod-hero         — dark hero with Sly Man portrait
 *   .lod__body        — cream content column
 *   .lod-card         — the LoD (day's nomination) headline card
 *   .lod-shortlist    — the ranked runners-up
 *   .lod-liability    — the fixed lay-mechanics explainer
 *   .lod-pending      — empty state
 *
 * Mobile: single column ≤ 780px, hero portrait moves below copy.
 * Tap targets kept ≥ 44 px per Slice 29a.
 */

body.page-lod {
  background: #faf8f2;
  color: #1c1c19;
}
body.page-lod .site-footer {
  background: #f0ede4;
}

.lod {
  --ink:        #1c1c19;
  --ink-70:     #55554e;
  --ink-50:     #7d7d75;
  --ink-30:     #a8a8a0;
  --bg:         #faf8f2;
  --surface:    #ffffff;
  --border:     rgba(28, 28, 25, 0.10);
  --border-str: rgba(28, 28, 25, 0.18);

  /* Sly Man family — same base as BoD. Gold stays for continuity
   * with the persona; slate is layered on top for the contrarian
   * "fade this" tone. */
  --gold:       #b8871f;
  --slate:      #3a4550;
  --slate-soft: rgba(58, 69, 80, 0.08);
  --danger:     #a3363b;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

/* ── Hero ─────────────────────────────────────────────────────── */

.lod-hero {
  background: linear-gradient(140deg, #1c2530 0%, #2a3644 55%, #1a232f 100%);
  color: #fff9e4;
  padding: 48px 20px 44px;
  border-bottom: 3px solid var(--gold);
}
.lod-hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}
.lod-hero__copy {
  flex: 1;
  min-width: 0;
}
.lod-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lod-hero__eyebrow-mark {
  color: var(--gold);
  opacity: 0.75;
  font-size: 14px;
}
.lod-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 12px;
}
.lod-hero__date {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: "Playfair Display", Georgia, serif;
  color: rgba(255, 249, 228, 0.8);
  margin-bottom: 18px;
}
.lod-hero__date-day {
  font-size: 20px;
  font-weight: 700;
}
.lod-hero__date-rest {
  font-size: 16px;
  color: rgba(255, 249, 228, 0.65);
}
.lod-hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 249, 228, 0.85);
  max-width: 560px;
  margin: 0;
}
.lod-hero__lede strong { color: #fff9e4; font-weight: 600; }
.lod-hero__portrait {
  margin: 0;
  flex-shrink: 0;
  width: 220px;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.45));
}
.lod-hero__portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Body wrapper ─────────────────────────────────────────────── */

.lod__body {
  padding: 44px 20px 80px;
}
.lod__inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── LoD headline card ────────────────────────────────────────── */

.lod-card {
  background: var(--surface);
  border: 1px solid var(--border-str);
  border-radius: 14px;
  padding: 28px 28px 26px;
  box-shadow: 0 12px 32px -18px rgba(28, 28, 25, 0.22);
  position: relative;
  overflow: hidden;
}
.lod-card::before {
  /* Left accent bar keyed to conviction (see [data-confidence]). */
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--slate);
}
.lod-card[data-confidence="high"]::before   { background: var(--danger); }
.lod-card[data-confidence="medium"]::before { background: var(--gold); }
.lod-card[data-confidence="speculative"]::before { background: var(--ink-30); }

.lod-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lod-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.lod-card__pin {
  color: var(--gold);
  font-size: 14px;
}
.lod-card__conviction {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--slate-soft);
  color: var(--slate);
}
.lod-card__conviction--high {
  background: rgba(163, 54, 59, 0.10);
  color: var(--danger);
}
.lod-card__conviction--medium {
  background: rgba(184, 135, 31, 0.10);
  color: var(--gold);
}
.lod-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-70);
  margin-bottom: 10px;
}
.lod-card__meta-time { font-weight: 700; color: var(--ink); }
.lod-card__meta-sep  { color: var(--ink-30); }

.lod-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--ink);
}
.lod-card__horse,
.lod-card__horse-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
}
.lod-card__horse-link:hover {
  color: var(--slate);
  border-bottom-color: var(--slate);
}

.lod-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 16px;
  margin: 0 0 20px;
  padding: 0;
}
.lod-card__stats--trio { grid-template-columns: repeat(3, 1fr); }
.lod-card__stat {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lod-card__stats--trio .lod-card__stat { text-align: center; }
.lod-card__stat--wide { grid-column: span 4; text-align: center; }
.lod-card__stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 4px;
}
.lod-card__stat-value {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lod-card__stat-value--market { color: var(--slate); }
.lod-card__stat-value--model  { color: var(--gold); }
.lod-card__stat-value--lose   {
  font-size: 30px;
  color: var(--danger);
}

/* Slice H — Market-vs-Model gap visualisation. Shows the two
   probabilities as proportional bars against the same 0-100 scale,
   then a single derived "Lay edge" delta chip. This is the "why the
   market is wrong" primitive per feedback slice H. */
.lod-gap {
  margin: 0 0 20px;
  padding: 16px 16px 14px;
  border: 1px solid var(--border, #e6e0d3);
  border-radius: 10px;
  background: #fbf8f0;
}
.lod-gap__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50, #6a6659);
  margin: 0 0 12px;
  text-align: center;
}
.lod-gap__row {
  display: grid;
  grid-template-columns: 150px 1fr 56px;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}
.lod-gap__row:last-of-type { margin-bottom: 14px; }
.lod-gap__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-70, #4a4638);
}
.lod-gap__track {
  display: block;
  position: relative;
  height: 12px;
  background: rgba(58, 69, 80, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.lod-gap__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 240ms ease-out;
}
.lod-gap__fill--market { background: var(--slate, #3a4550); }
.lod-gap__fill--model  { background: var(--gold, #b8871f); }
.lod-gap__value {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lod-gap__value--market { color: var(--slate, #3a4550); }
.lod-gap__value--model  { color: var(--gold, #b8871f); }
.lod-gap__edge {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px 0;
  border-top: 1px dashed var(--border, #e6e0d3);
}
.lod-gap__edge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50, #6a6659);
}
.lod-gap__edge-value {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #1a1815);
  line-height: 1;
}
.lod-gap__edge--pos .lod-gap__edge-value { color: var(--danger, #a3363b); }
.lod-gap__edge--neg .lod-gap__edge-value { color: var(--ink-50, #6a6659); }
.lod-gap__edge-help {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-70, #4a4638);
}
@media (max-width: 520px) {
  .lod-gap__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label  value"
      "track  track";
    row-gap: 4px;
    column-gap: 10px;
  }
  .lod-gap__label { grid-area: label; }
  .lod-gap__value { grid-area: value; }
  .lod-gap__track { grid-area: track; }
  .lod-gap__edge {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "label value"
      "help  help";
    row-gap: 6px;
  }
  .lod-gap__edge-label { grid-area: label; }
  .lod-gap__edge-value { grid-area: value; text-align: right; }
  .lod-gap__edge-help  { grid-area: help; }
}

/* Slice I — compact variant for the race emblem. Same primitive,
   tighter box: shorter labels, no help prose, smaller edge chip.
   Bar geometry stays the same so the two bars still compare cleanly. */
.lod-gap--compact {
  margin: 0 0 14px;
  padding: 12px 12px 10px;
  border-radius: 8px;
}
.lod-gap--compact .lod-gap__row {
  grid-template-columns: 68px 1fr 44px;
  gap: 10px;
  margin-bottom: 6px;
}
.lod-gap--compact .lod-gap__row:last-of-type { margin-bottom: 10px; }
.lod-gap--compact .lod-gap__label { font-size: 11px; }
.lod-gap--compact .lod-gap__value { font-size: 13px; }
.lod-gap--compact .lod-gap__track { height: 10px; }
.lod-gap--compact .lod-gap__edge {
  grid-template-columns: auto 1fr;
  padding: 8px 10px 0;
}
.lod-gap--compact .lod-gap__edge-value { font-size: 20px; text-align: right; }
.lod-gap__title--sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lod-card__reason {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
  padding: 12px 14px;
  background: var(--slate-soft);
  border-radius: 8px;
}
.lod-card__reason-chip {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  background: var(--slate);
  color: #fff9e4;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lod-card__narrative {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.lod-card__narrative p { margin: 0 0 10px; }
.lod-card__narrative p:last-child { margin-bottom: 0; }

/* ── Shortlist ────────────────────────────────────────────────── */

.lod-shortlist__head {
  margin-bottom: 16px;
}
.lod-shortlist__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.lod-shortlist__sub {
  font-size: 14.5px;
  color: var(--ink-70);
  margin: 0;
  line-height: 1.55;
}
.lod-shortlist__rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lod-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-str);
  border-radius: 10px;
  border-left: 3px solid var(--ink-30);
}
.lod-row[data-confidence="high"]   { border-left-color: var(--danger); }
.lod-row[data-confidence="medium"] { border-left-color: var(--gold); }
.lod-row__rank {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-30);
  line-height: 1;
  padding-top: 3px;
}
.lod-row__body {
  min-width: 0;
}
.lod-row__meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 4px;
}
.lod-row__time   { color: var(--ink); }
.lod-row__horse {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.lod-row__horse a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
}
.lod-row__horse a:hover {
  color: var(--slate);
  border-bottom-color: var(--slate);
}
.lod-row__reason {
  font-size: 13.5px;
  color: var(--ink-70);
  line-height: 1.5;
}
.lod-row__reason-chip {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 6px;
  background: var(--slate-soft);
  color: var(--slate);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lod-row__nums {
  text-align: right;
  min-width: 90px;
}
.lod-row__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}
.lod-row__prob {
  font-size: 11.5px;
  color: var(--ink-70);
}
.lod-row__prob-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}
.lod-row__prob-value {
  color: var(--danger);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Liability note ───────────────────────────────────────────── */

.lod-liability {
  background: rgba(184, 135, 31, 0.08);
  border: 1px solid rgba(184, 135, 31, 0.24);
  border-radius: 10px;
  padding: 14px 16px;
}
.lod-liability__inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lod-liability__icon {
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  padding-top: 2px;
}
.lod-liability__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.lod-liability__text {
  font-size: 13.5px;
  color: var(--ink-70);
  line-height: 1.55;
  margin: 0;
}

/* ── Pending / empty state ────────────────────────────────────── */

.lod-pending {
  background: var(--surface);
  border: 1px dashed var(--border-str);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
}
.lod-pending__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.lod-pending__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 480px;
  margin: 0 auto;
}

/* ═══ Slice E — Result chip + Honest Record ══════════════════
 * Post-race chip surfaces on both the hub (LoD card + shortlist
 * row) and every recent-row on the honest record. Sized to hug
 * the reason chip so the row doesn't grow when it arrives.
 *
 * Honest-record hero mirrors BoD's honest-record aesthetic —
 * dark, restrained, P/L is the load-bearing number.
 * ═════════════════════════════════════════════════════════════ */

.lod-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.lod-chip__mark { font-size: 12px; line-height: 1; }

.lod-chip--landed {
  background: rgba(47, 122, 74, 0.12);
  color: #2f7a4a;
}
.lod-chip--lost {
  background: rgba(163, 54, 59, 0.10);
  color: var(--danger);
}
.lod-chip--void {
  background: rgba(28, 28, 25, 0.06);
  color: var(--ink-70);
}

/* Sit the chip on its own line inside the shortlist row so the
 * horse/reason keeps its rhythm and the chip doesn't shove
 * columns. */
.lod-row .lod-chip { margin-top: 8px; }

/* ── Honest Record hero ──────────────────────────────────────── */

.lod-hr-hero {
  background: linear-gradient(140deg, #1c2530 0%, #2a3644 60%, #1a232f 100%);
  color: #fff9e4;
  padding: 40px 20px 36px;
  border-bottom: 3px solid var(--gold);
}
.lod-hr-hero__inner {
  max-width: 780px;
  margin: 0 auto;
}
.lod-hr-hero__back {
  display: inline-block;
  color: rgba(255, 249, 228, 0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  transition: color 0.12s ease;
}
.lod-hr-hero__back:hover { color: var(--gold); }
.lod-hr-hero__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.lod-hr-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 12px;
}
.lod-hr-hero__sub {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 249, 228, 0.82);
  margin: 0;
  max-width: 620px;
}

/* ── Headline tiles ──────────────────────────────────────────── */

.lod-hr-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lod-hr-tile {
  background: var(--surface);
  border: 1px solid var(--border-str);
  border-radius: 12px;
  padding: 20px 22px 18px;
  border-top: 3px solid var(--ink-30);
}
.lod-hr-tile--pnl.lod-hr-tile--pos { border-top-color: #2f7a4a; }
.lod-hr-tile--pnl.lod-hr-tile--neg { border-top-color: var(--danger); }
.lod-hr-tile__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 8px;
}
.lod-hr-tile__value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.lod-hr-tile--pnl.lod-hr-tile--pos .lod-hr-tile__value { color: #2f7a4a; }
.lod-hr-tile--pnl.lod-hr-tile--neg .lod-hr-tile__value { color: var(--danger); }
.lod-hr-tile__caption {
  font-size: 12.5px;
  color: var(--ink-70);
  line-height: 1.4;
}

/* ── Per-course table ────────────────────────────────────────── */

.lod-hr-course__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.lod-hr-course__sub {
  font-size: 14px;
  color: var(--ink-70);
  margin: 0 0 14px;
}
.lod-hr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border-str);
  border-radius: 10px;
  overflow: hidden;
}
.lod-hr-table thead th {
  background: var(--slate-soft);
  color: var(--slate);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 10px 14px;
}
.lod-hr-table tbody td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink);
}
.lod-hr-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.lod-hr-table__num--pos { color: #2f7a4a; }
.lod-hr-table__num--neg { color: var(--danger); }

/* ── Recent settled list ─────────────────────────────────────── */

.lod-hr-recent__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}
.lod-hr-recent__rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lod-hr-recent__row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-str);
  border-radius: 10px;
  border-left: 3px solid var(--ink-30);
}
.lod-hr-recent__row[data-outcome="landed"] { border-left-color: #2f7a4a; }
.lod-hr-recent__row[data-outcome="lost"]   { border-left-color: var(--danger); }
.lod-hr-recent__when {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
}
.lod-hr-recent__date {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.lod-hr-recent__time {
  color: var(--ink-70);
}
.lod-hr-recent__horse {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.lod-hr-recent__course {
  color: var(--ink-50);
  font-weight: 400;
  font-size: 14px;
}
.lod-hr-recent__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.lod-hr-recent__meta .lod-chip { margin-top: 0; }
.lod-hr-recent__fp {
  font-size: 12px;
  color: var(--ink-50);
}
.lod-hr-recent__pnl {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-50);
  text-align: right;
  min-width: 92px;
}
.lod-hr-recent__pnl--pos { color: #2f7a4a; }
.lod-hr-recent__pnl--neg { color: var(--danger); }

/* ═══ Silk placement ═════════════════════════════════════════
 * The racecard atom (races/components/atoms/_silk.html) applies
 * `.racecard__silk--sm/md/lg` classes but the sizing rules live
 * in racecard.css — which isn't loaded on the LoD hub. Redeclare
 * the minimum needed here so silks paint at the right size on
 * every LoD surface (hub + emblem). Sizes match racecard.css so
 * the atom looks identical to how it does in the racecard.
 * ═════════════════════════════════════════════════════════════ */

.lod .racecard__silk,
.lod-race-emblem .racecard__silk {
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
  object-fit: cover;
}
.lod .racecard__silk--sm,
.lod-race-emblem .racecard__silk--sm { width: 26px; height: 30px; }
.lod .racecard__silk--md,
.lod-race-emblem .racecard__silk--md { width: 34px; height: 40px; }
.lod .racecard__silk--lg,
.lod-race-emblem .racecard__silk--lg { width: 52px; height: 60px; }
.lod .racecard__silk--img,
.lod-race-emblem .racecard__silk--img { background: #f3efe4; }

/* Inline wraps — small horizontal gap so the silk hugs the horse
 * name without floating in space. */
.lod-card__silk-wrap,
.lod-row__silk-wrap,
.lod-race-emblem__silk-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.lod-row__silk-wrap { margin-right: 6px; }

/* ═══ Slice G — Racecard emblem + cross-link ═════════════════
 * The racecard emblem sits between chamber verdict + chamber
 * signals — a compact "Sly Man's lay verdict" panel that only
 * renders when a LayPick exists for the race. Loads the same
 * CSS variables the hub uses; safe to include on any page.
 *
 * The cross-link pill sits at the bottom of both hubs so users
 * flow between the back-side (BoD) and lay-side (LoD) products.
 * ═════════════════════════════════════════════════════════════ */

.lod-race-emblem {
  /* Reuse the hub's variable palette — same brand, same tokens.
   * Falls back safely on pages that don't declare them (e.g. the
   * racecard) so no runaway defaults. */
  --lod-ink:        #1c1c19;
  --lod-ink-70:     #55554e;
  --lod-ink-50:     #7d7d75;
  --lod-ink-30:     #a8a8a0;
  --lod-surface:    #ffffff;
  --lod-border:     rgba(28, 28, 25, 0.10);
  --lod-border-str: rgba(28, 28, 25, 0.18);
  --lod-gold:       #b8871f;
  --lod-slate:      #3a4550;
  --lod-slate-soft: rgba(58, 69, 80, 0.08);
  --lod-danger:     #a3363b;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--lod-ink);

  max-width: 720px;
  margin: 20px auto;
  background: var(--lod-surface);
  border: 1px solid var(--lod-border-str);
  border-left: 3px solid var(--lod-slate);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px -16px rgba(28, 28, 25, 0.16);
}
.lod-race-emblem--lod   { border-left-color: var(--lod-danger); }
.lod-race-emblem[data-confidence="high"]   { border-left-color: var(--lod-danger); }
.lod-race-emblem[data-confidence="medium"] { border-left-color: var(--lod-gold); }

.lod-race-emblem__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lod-race-emblem__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lod-slate);
}
.lod-race-emblem__pin { color: var(--lod-gold); font-size: 13px; }
.lod-race-emblem__conviction {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--lod-slate-soft);
  color: var(--lod-slate);
}
.lod-race-emblem__conviction--high {
  background: rgba(163, 54, 59, 0.10);
  color: var(--lod-danger);
}
.lod-race-emblem__conviction--medium {
  background: rgba(184, 135, 31, 0.10);
  color: var(--lod-gold);
}

.lod-race-emblem__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--lod-ink);
}
.lod-race-emblem__price {
  font-weight: 600;
  color: var(--lod-slate);
  font-size: 20px;
  margin-left: 6px;
}

.lod-race-emblem__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 0;
}
.lod-race-emblem__stats--duo {
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
.lod-race-emblem__stat {
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--lod-border);
  border-bottom: 1px solid var(--lod-border);
}
.lod-race-emblem__stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lod-ink-50);
  margin: 0 0 3px;
}
.lod-race-emblem__stat-value {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--lod-ink);
  font-variant-numeric: tabular-nums;
}
.lod-race-emblem__stat-value--lose { color: var(--lod-danger); }

.lod-race-emblem__reason {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lod-ink-70);
  padding: 10px 12px;
  background: var(--lod-slate-soft);
  border-radius: 8px;
}
.lod-race-emblem__reason-chip {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  background: var(--lod-slate);
  color: #fff9e4;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lod-race-emblem__cta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--lod-slate);
  text-decoration: none;
  border-bottom: 1px dotted var(--lod-slate);
}
.lod-race-emblem__cta:hover {
  color: var(--lod-danger);
  border-bottom-color: var(--lod-danger);
}

.lod-race-emblem .lod-chip { margin-top: 0; margin-bottom: 10px; }

/* ── Cross-link pills (both hubs) ─────────────────────────── */

.botd-crosslink,
.lod-crosslink {
  margin: 24px 0 0;
  padding: 16px 18px;
  background: var(--slate-soft, rgba(58, 69, 80, 0.08));
  border: 1px solid var(--border-str, rgba(28, 28, 25, 0.18));
  border-left: 3px solid var(--gold, #b8871f);
  border-radius: 10px;
}
.botd-crosslink__body,
.lod-crosslink__body {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.botd-crosslink__body + .lod-crosslink__body {
  margin-top: 10px;
}
.lod-crosslink__body--minor { padding-top: 2px; }
.botd-crosslink__eyebrow,
.lod-crosslink__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70, #55554e);
}
.botd-crosslink__link,
.lod-crosslink__link {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #1c1c19);
  text-decoration: none;
  border-bottom: 2px solid var(--gold, #b8871f);
  padding-bottom: 1px;
}
.botd-crosslink__link:hover,
.lod-crosslink__link:hover {
  color: var(--danger, #a3363b);
  border-bottom-color: var(--danger, #a3363b);
}
.lod-crosslink__minor {
  font-size: 13.5px;
  color: var(--ink-70, #55554e);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-30, #a8a8a0);
}
.lod-crosslink__minor:hover {
  color: var(--slate, #3a4550);
  border-bottom-color: var(--slate, #3a4550);
}

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

@media (max-width: 780px) {
  .lod-hero { padding: 32px 18px 32px; }
  .lod-hero__inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .lod-hero__portrait { width: 160px; align-self: center; }
  .lod-hero__title { font-size: 34px; }
  .lod-hero__lede { font-size: 15.5px; }

  .lod__body { padding: 28px 16px 60px; }
  .lod__inner { gap: 24px; }

  .lod-card { padding: 22px 20px; }
  .lod-card__title { font-size: 26px; }
  .lod-card__stats { grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
  .lod-card__stat--wide { grid-column: span 2; }
  .lod-card__stat-value { font-size: 20px; }
  .lod-card__stat-value--lose { font-size: 26px; }

  .lod-row {
    grid-template-columns: 40px 1fr auto;
    padding: 12px 14px;
    gap: 10px;
  }
  .lod-row__rank { font-size: 18px; }
  .lod-row__horse { font-size: 16px; }
  .lod-row__price { font-size: 20px; }

  /* Honest Record — tighter tiles, single-column recent list */
  .lod-hr-hero { padding: 30px 16px 28px; }
  .lod-hr-hero__title { font-size: 30px; }
  .lod-hr-tiles { grid-template-columns: 1fr; gap: 10px; }
  .lod-hr-tile__value { font-size: 28px; }
  .lod-hr-recent__row {
    grid-template-columns: 70px 1fr auto;
    padding: 10px 14px;
    gap: 10px;
  }
  .lod-hr-recent__pnl { font-size: 18px; min-width: 72px; }

  /* Table scrolls horizontally on very narrow screens rather than
   * squashing numbers together. */
  .lod-hr-table { display: block; overflow-x: auto; }
}
