/* ═════════════════════════════════════════════════════════════
   Bet of the Day — Sly Man's daily tip.

   Visual language CURRENTLY inherits from /letters/ (sage palette,
   Playfair serif headlines, paper-cream body) from the LLaMa era.
   The persona has been flipped to Sly Man (copper accent line);
   the deep colour-theme rework on this page (sage → copper) is
   pending — see commit history. Lab-notebook treatment: editorial
   header, methodology section, shortlist table, the pick, the
   case, the ledger.

   Palette:
     paper        #FBF7EF
     paper-warm   #FFFCF3
     ink          #1A1A1A
     ink-70       rgba(26,26,26,0.70)
     ink-40       rgba(26,26,26,0.40)
     sage         rgba(140, 175, 138, 1)
     sage-ink     #4a6b46
     gold         #D4AF37
     gold-ink     #A8791D
   ════════════════════════════════════════════════════════════ */

.page-botd {
  background: #FBF7EF;
  color: #1A1A1A;
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  line-height: 1.55;
}

.botd { display: block; }
.botd__body { padding: 36px 0 96px; }
.botd__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 36px);
}
/* Archive page needs more room for the diary entries — the shortlist
   strip fits 5 mini-tiles on the right of each row and 920px cramps
   them. The three-column entry grid needs ~1200px to breathe. */
.page-botd--archive .botd__inner {
  max-width: 1300px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.botd-hero {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(140, 175, 138, 0.18), transparent 60%),
    linear-gradient(180deg, #1d2820 0%, #14201a 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.botd-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .botd-hero__inner {
    grid-template-columns: 1.4fr 1fr;
  }
}
.botd-hero__copy { max-width: 56ch; }
.botd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(190, 215, 185, 1);
  margin-bottom: 18px;
}
.botd-hero__eyebrow-mark { color: rgba(190, 215, 185, 0.85); font-size: 14px; }
.botd-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
}
.botd-hero__date {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
}
.botd-hero__date-day {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "DM Sans", system-ui, sans-serif;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: rgba(190, 215, 185, 1);
}
.botd-hero__lede {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 22px;
}
.botd-hero__lede strong { color: rgba(190, 215, 185, 1); font-style: normal; font-weight: 700; }
/* Browse the Logbook — gold-tinted emblem pill so the CTA is
   visible against the dark hero rather than a plain underline.
   Icon = stylised ledger (three rule lines inside a card outline)
   so the visual + label both signal 'log of entries'. */
.botd-hero__archive-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 18px 10px 14px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5d76e;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.botd-hero__archive-link:hover,
.botd-hero__archive-link:focus-visible {
  background: rgba(212, 175, 55, 0.24);
  border-color: rgba(212, 175, 55, 0.80);
  color: #fbf1c0;
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}
.botd-hero__archive-link-icon {
  flex-shrink: 0;
  opacity: 0.88;
}
.botd-hero__archive-link-arrow {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  margin-left: 2px;
  transition: transform 0.18s ease;
}
.botd-hero__archive-link:hover .botd-hero__archive-link-arrow {
  transform: translateX(3px);
}
.botd-hero__portrait {
  margin: 0;
  display: flex;
  justify-content: center;
}
.botd-hero__portrait img {
  width: clamp(180px, 32vw, 320px);
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.45));
}

/* Archive page hero variant — slimmer, no portrait */
.botd-hero--archive .botd-hero__inner { grid-template-columns: 1fr; }
.botd-hero--archive { padding: 44px 0 48px; }

/* ── The Pick card ─────────────────────────────────────────── */
.botd-pick {
  background: #FFFCF3;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 4px;
  padding: 28px clamp(20px, 3vw, 36px) 24px;
  margin-bottom: 36px;
  position: relative;
}
.botd-pick::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(140, 175, 138, 0.7), transparent);
}
.botd-pick--gold::before    { background: linear-gradient(90deg, transparent, #D4AF37, transparent); }
.botd-pick--emerald::before { background: linear-gradient(90deg, transparent, #2DBD7A, transparent); }
.botd-pick--slate::before   { background: linear-gradient(90deg, transparent, #94a3b8, transparent); }

.botd-pick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.botd-pick__eyebrow {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
}
.botd-pick__conviction {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 5px 11px;
  border-radius: 4px;
}
.botd-pick__conviction--gold {
  background: rgba(212, 175, 55, 0.14);
  color: #A8791D;
  border: 1px solid rgba(212, 175, 55, 0.40);
}
.botd-pick__conviction--emerald {
  background: rgba(45, 189, 122, 0.14);
  color: #166534;
  border: 1px solid rgba(45, 189, 122, 0.40);
}
.botd-pick__conviction--slate {
  background: rgba(71, 85, 105, 0.10);
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.30);
}

.botd-pick__body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 22px;
  align-items: center;
}
@media (max-width: 599px) {
  .botd-pick__body {
    grid-template-columns: auto 1fr;
  }
  .botd-pick__odds-wrap { grid-column: 1 / -1; }
}
.botd-pick__silk-wrap { display: flex; align-items: center; }
.botd-pick__silk-wrap .racecard__silk { width: 56px; height: 64px; }

.botd-pick__id { min-width: 0; }
.botd-pick__horse {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
}
.botd-pick__horse a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.botd-pick__horse a:hover {
  color: #4a6b46;
  border-bottom-color: rgba(140, 175, 138, 0.6);
  text-decoration: none;
}
.botd-pick__where {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  color: rgba(26, 26, 26, 0.62);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.botd-pick__course { font-weight: 700; color: rgba(26, 26, 26, 0.78); }
.botd-pick__time   { font-variant-numeric: tabular-nums; }
.botd-pick__race-name { font-style: italic; }
.botd-pick__sep    { color: rgba(26, 26, 26, 0.32); }

.botd-pick__odds-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-left: 22px;
  border-left: 1px solid rgba(26, 26, 26, 0.10);
}
@media (max-width: 599px) {
  .botd-pick__odds-wrap {
    align-items: flex-start;
    padding-left: 0;
    padding-top: 14px;
    border-left: none;
    border-top: 1px dashed rgba(26, 26, 26, 0.12);
    width: 100%;
  }
}
.botd-pick__odds-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.50);
}
.botd-pick__odds {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #A8791D;
  line-height: 1;
  letter-spacing: -0.02em;
}
.botd-pick__odds-decimal {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.50);
  font-variant-numeric: tabular-nums;
}

/* Final SP block — appears below Price at Pick when the bet has
   settled. Smaller + greyer than the tipped odds so the reader's
   eye reads PRICE AT PICK first (advised price) then FINAL SP
   (settled price). Divider gives a clean visual break. */
.botd-pick__sp-divider {
  width: 32px;
  height: 1px;
  background: rgba(26, 26, 26, 0.18);
  margin-top: 8px;
}
.botd-pick__sp-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.45);
  margin-top: 4px;
}
.botd-pick__sp {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(26, 26, 26, 0.72);
  line-height: 1;
  letter-spacing: -0.02em;
}
.botd-pick__sp-decimal {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11.5px;
  color: rgba(26, 26, 26, 0.45);
  font-variant-numeric: tabular-nums;
}

/* Secondary CTA right under the pick card — subtle text link
   (not a pill, the hero already carries the gold logbook emblem).
   Right-aligned so it sits where the eye lands after reading the
   result strip. */
.botd-pick__see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
  margin: 10px 4px 0 auto;
  padding: 4px 2px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  text-decoration: none;
  border-bottom: 1px dotted rgba(26, 26, 26, 0.25);
  transition: color 0.18s ease, border-color 0.18s ease;
  float: right;     /* sits right-aligned beneath the pick card */
  clear: both;
}
.botd-pick__see-more:hover,
.botd-pick__see-more:focus-visible {
  color: #A8791D;
  border-bottom-color: #D4AF37;
  text-decoration: none;
}
.botd-pick__see-more-arrow {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.18s ease;
}
.botd-pick__see-more:hover .botd-pick__see-more-arrow {
  transform: translateX(3px);
}

/* Result ribbon (post-settlement) */
.botd-pick__result {
  margin: 22px -clamp(20px, 3vw, 36px) -24px;
  padding: 14px clamp(20px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.botd-pick__result--won {
  background: rgba(45, 189, 122, 0.10);
  border-top: 1px solid rgba(45, 189, 122, 0.30);
  color: #166534;
}
.botd-pick__result--lost {
  background: rgba(192, 57, 43, 0.06);
  border-top: 1px solid rgba(192, 57, 43, 0.22);
  color: #B91C1C;
}
.botd-pick__result--void,
.botd-pick__result--abandoned {
  background: rgba(26, 26, 26, 0.04);
  border-top: 1px solid rgba(26, 26, 26, 0.12);
  color: rgba(26, 26, 26, 0.62);
}
.botd-pick__result-mark { font-size: 18px; line-height: 1; }
.botd-pick__result-text { flex: 1; }
.botd-pick__result-pnl {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.botd-pick__result-pnl.is-positive { color: #166534; }
.botd-pick__result-pnl.is-negative { color: #B91C1C; }

/* ── Narrative essay — editorial treatment ─────────────────
   The lab-notebook entry reads as a long-form newspaper feature:
   a centred display headline above a hairline rule, an italic
   Playfair lede that opens the case, section labels with a sage
   dingbat, and gold-underlined inline links for every linked
   horse mention. Body type is bumped to 17.5/1.72 — newspaper
   feature column rhythm.
*/
.botd-narrative {
  background: #FFFCF3;
  border: 1px solid rgba(26, 26, 26, 0.10);
  border-radius: 4px;
  padding: 36px clamp(24px, 4vw, 56px) 40px;
  margin-bottom: 36px;
}
.botd-narrative__headline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  padding-bottom: 22px;
  color: #1A1A1A;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}
.botd-narrative__headline::after {
  content: '\10086';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFCF3;
  padding: 0 12px;
  font-size: 14px;
  color: #d4af37;
  line-height: 1;
}

.botd-narrative__body {
  font-family: "Iowan Old Style", "Charter", "Source Serif Pro", Georgia, serif;
  font-size: 17.5px;
  line-height: 1.72;
  color: rgba(26, 26, 26, 0.85);
  hyphens: auto;
}

/* Section labels — sage rule + dingbat */
.botd-narrative__body h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #4a6b46;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(140, 175, 138, 0.32);
}
.botd-narrative__body h3::before {
  content: '\10086';
  color: rgba(212, 175, 55, 0.85);
  font-size: 14px;
  line-height: 1;
}
.botd-narrative__body h3:first-child { margin-top: 0; }

/* Paragraphs */
.botd-narrative__body p {
  margin: 0 0 20px;
}
.botd-narrative__body p:last-child { margin-bottom: 0; }

/* Lede — the first paragraph after the Method label sets the
   editorial frame. Larger, Playfair italic, sage-leaning ink. */
.botd-narrative__body > h3:first-of-type + p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.78);
  margin-bottom: 26px;
  letter-spacing: -0.005em;
}

/* Inline emphasis — bold reads as ink-strong with a tiny touch
   of letter-spacing tightening (newspaper feel). */
.botd-narrative__body strong {
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.005em;
}
.botd-narrative__body em {
  font-style: italic;
  color: rgba(26, 26, 26, 0.72);
}

/* Inline links — gold-ink underline, sage hover. Editorial,
   not blue-and-underlined web. */
.botd-narrative__body a {
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 700;
  background-image: linear-gradient(transparent 0%, transparent calc(100% - 3px),
                                    rgba(212, 175, 55, 0.55) calc(100% - 3px),
                                    rgba(212, 175, 55, 0.55) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 1px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.botd-narrative__body a:hover {
  color: #4a6b46;
  background-color: rgba(140, 175, 138, 0.12);
  background-image: linear-gradient(transparent 0%, transparent calc(100% - 3px),
                                    rgba(140, 175, 138, 0.65) calc(100% - 3px),
                                    rgba(140, 175, 138, 0.65) 100%);
  text-decoration: none;
}

.botd-narrative__fallback-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed rgba(26, 26, 26, 0.18);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-style: italic;
  color: rgba(26, 26, 26, 0.55);
}

/* ── Pending empty state ───────────────────────────────────── */
.botd-pending {
  background: #FFFCF3;
  border: 1px dashed rgba(140, 175, 138, 0.45);
  border-radius: 4px;
  padding: 56px clamp(20px, 3vw, 40px);
  text-align: center;
}
.botd-pending__mark {
  font-size: 28px;
  color: rgba(140, 175, 138, 0.85);
  display: block;
  margin-bottom: 16px;
}
.botd-pending__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0 0 12px;
}
.botd-pending__lede {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.62);
  max-width: 48ch;
  margin: 0 auto 22px;
}
.botd-pending__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a6b46;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 175, 138, 0.4);
  padding-bottom: 3px;
  transition: gap 0.18s ease;
}
.botd-pending__cta:hover { gap: 12px; text-decoration: none; }

/* ── Archive list ──────────────────────────────────────────── */
.botd-archive__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(26, 26, 26, 0.10);
}
.botd-archive__item { border-bottom: 1px solid rgba(26, 26, 26, 0.08); }
.botd-archive__link {
  display: grid;
  /* date | pick | tipped-odds | sp | result-chip | pnl */
  grid-template-columns: 80px 1fr 70px 70px 80px 90px;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.botd-archive__link:hover {
  background: rgba(212, 175, 55, 0.06);
  text-decoration: none;
}
@media (max-width: 699px) {
  .botd-archive__link {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .botd-archive__odds,
  .botd-archive__sp,
  .botd-archive__chip { display: none; }
}
.botd-archive__date {
  display: flex;
  flex-direction: column;
  font-family: "Playfair Display", Georgia, serif;
}
.botd-archive__date strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.botd-archive__date span {
  font-style: italic;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.55);
}
.botd-archive__pick { display: flex; flex-direction: column; min-width: 0; }
.botd-archive__horse {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.botd-archive__where {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.55);
}
.botd-archive__odds {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #A8791D;
}
/* SP — settled price. Muted weight vs the tipped odds so the
   eye reads tipped first (gold) then SP (settled, neutral). */
.botd-archive__sp {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(26, 26, 26, 0.55);
}
.botd-archive__chip {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 4px 9px;
  border-radius: 4px;
}
.botd-archive__chip--won  { background: rgba(45, 189, 122, 0.14); color: #166534; }
.botd-archive__chip--lost { background: rgba(192, 57, 43, 0.10);  color: #B91C1C; }
.botd-archive__chip--void,
.botd-archive__chip--abandoned { background: rgba(26, 26, 26, 0.06); color: rgba(26, 26, 26, 0.55); }
.botd-archive__chip--live { background: rgba(212, 175, 55, 0.14); color: #A8791D; }
.botd-archive__pnl {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(26, 26, 26, 0.55);
}
.botd-archive__pnl.is-positive { color: #166534; }
.botd-archive__pnl.is-negative { color: #B91C1C; }

/* Pager */
.botd-archive__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 26, 26, 0.10);
}
.botd-archive__pager-btn {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4a6b46;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(140, 175, 138, 0.4);
  border-radius: 4px;
  transition: background 0.15s ease;
}
.botd-archive__pager-btn:hover {
  background: rgba(140, 175, 138, 0.10);
  text-decoration: none;
}
.botd-archive__pager-indicator {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.55);
}

/* Empty state for archive */
.botd-empty {
  padding: 64px 20px;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: rgba(26, 26, 26, 0.55);
}

/* ── Ledger summary ────────────────────────────────────────
   The Honest Record — running stats published on every page.
   Pure newspaper-stat-block treatment: paper backdrop, big
   tabular figures, ink labels. Sage rule + dingbat header
   matches the In This Issue / Live from the Turf stack so the
   visual rhythm reads consistent across LLaMa surfaces.
*/
.botd-ledger {
  margin: 48px 0 0;
  padding: 24px clamp(20px, 3vw, 36px) 28px;
  background: #FFFCF3;
  border-top:    3px double #1A1A1A;
  border-bottom: 3px double #1A1A1A;
}
.botd-ledger__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}
.botd-ledger__dingbat {
  font-size: 16px;
  line-height: 1;
  color: #D4AF37;
}
.botd-ledger__title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #1A1A1A;
  white-space: nowrap;
}
.botd-ledger__grid {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px clamp(12px, 2vw, 28px);
  text-align: center;
}
@media (max-width: 599px) {
  .botd-ledger__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.botd-ledger__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 6px;
  border-left: 1px solid rgba(26, 26, 26, 0.10);
}
.botd-ledger__cell:first-child { border-left: none; }
@media (max-width: 599px) {
  .botd-ledger__cell:nth-child(odd) { border-left: none; }
}
.botd-ledger__num {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #1A1A1A;
}
.botd-ledger__num.is-positive { color: #166534; }
.botd-ledger__num.is-negative { color: #B91C1C; }
.botd-ledger__num-sub {
  font-size: 0.6em;
  font-weight: 700;
  color: rgba(26, 26, 26, 0.45);
  margin-left: 2px;
}
.botd-ledger__label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
}
.botd-ledger__meta {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed rgba(26, 26, 26, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.65);
  text-align: center;
}
.botd-ledger__streak strong       { font-style: normal; font-weight: 800; }
.botd-ledger__streak--won  strong { color: #166534; }
.botd-ledger__streak--lost strong { color: #B91C1C; }
.botd-ledger__voids {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.45);
}
.botd-ledger__empty {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: rgba(26, 26, 26, 0.55);
  margin: 0;
}

/* Finishing-position suffix inside the archive chip — e.g.
   "LOST · 4th" / "WON · 1st" / "LOST · PU". Tabular numerals
   so single-digit and double-digit positions line up vertically
   when stacked down the archive list. */
.botd-archive__finish {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  opacity: 0.88;
}

/* ═════════════════════════════════════════════════════════════
   Shortlist — modernised.
   The pick is pulled OUT of the table as a stamped hero card
   (gold-foil left column + display-serif horse name + Advised /
   SP / Score facts row). Challengers below sit in an editorial
   ranked list where each row carries a score-magnitude bar, so
   the algorithm's confidence gap between #1 and #6 reads at a
   glance without prose. Status chips share vocabulary with the
   Honest Record page — WON / 2nd / 3rd / LOST / awaiting.
   ════════════════════════════════════════════════════════════ */
.botd-shortlist {
  --sl-paper:      #FBF7EF;
  --sl-paper-2:    #FFFCF3;
  --sl-paper-deep: #F1E9D0;
  --sl-ink:        #1A1612;
  --sl-ink-70:     #4A413A;
  --sl-ink-40:     rgba(26, 22, 18, 0.44);
  --sl-line:       rgba(26, 22, 18, 0.10);
  --sl-line-strong:rgba(26, 22, 18, 0.22);
  --sl-gold:       #C39E2A;
  --sl-gold-deep:  #8F6F18;
  --sl-gold-lite:  rgba(195, 158, 42, 0.14);
  --sl-gold-glow:  rgba(195, 158, 42, 0.35);
  --sl-emerald:    #1A7D4A;
  --sl-claret:     #A03040;
  --sl-pending:    #7A6B3E;

  margin: 36px 0 24px;
}

.botd-shortlist__head {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--sl-line);
}
.botd-shortlist__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sl-gold-deep);
}
.botd-shortlist__eyebrow::before,
.botd-shortlist__eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--sl-gold);
  opacity: 0.6;
}
.botd-shortlist__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--sl-ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.botd-shortlist__title em {
  font-style: italic;
  color: var(--sl-gold-deep);
  background: linear-gradient(180deg, transparent 78%, var(--sl-gold-lite) 78%);
  padding: 0 3px;
}
.botd-shortlist__lede {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sl-ink-70);
}

/* ── The Pick — stamped hero card ─────────────────────────── */
.botd-shortlist__pick {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  background: linear-gradient(180deg, var(--sl-paper-2), var(--sl-paper));
  border: 1px solid var(--sl-line);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 20px 60px -30px rgba(26, 22, 18, 0.28),
    0 4px 14px -4px rgba(26, 22, 18, 0.08);
  overflow: hidden;
  margin-bottom: 38px;
  position: relative;
}
.botd-shortlist__pick::after {
  content: '';
  position: absolute;
  left: 132px;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sl-gold) 0%, var(--sl-gold) 30%, transparent 100%);
  opacity: 0.8;
}
.botd-shortlist__stamp {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(155deg, #D5B64A 0%, #C39E2A 45%, #A58322 100%);
  padding: 26px 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.12);
}
.botd-shortlist__stamp-crest {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #F0D572 0%, #A58322 100%);
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, 0.22),
    inset 0 2px 2px rgba(255, 255, 255, 0.32),
    0 1px 3px rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  position: relative;
}
.botd-shortlist__stamp-crest::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(26, 22, 18, 0.4);
}
.botd-shortlist__stamp-crest span {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 15px;
  color: #1A1612;
  letter-spacing: 0.02em;
  z-index: 1;
}
.botd-shortlist__stamp-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.botd-shortlist__stamp-word {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 22, 18, 0.75);
}
.botd-shortlist__stamp-pick {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #1A1612;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.botd-shortlist__pick-body {
  padding: 26px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.botd-shortlist__pick-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.botd-shortlist__pick-time {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 13px;
  color: var(--sl-gold-deep);
  letter-spacing: 0.02em;
}
.botd-shortlist__pick-course {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sl-ink-70);
}
.botd-shortlist__pick-horse {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--sl-ink);
  margin: 0;
  text-wrap: balance;
}
.botd-shortlist__pick-horse a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--sl-gold);
  padding-bottom: 2px;
  background: linear-gradient(180deg, transparent 88%, var(--sl-gold-lite) 88%);
}
.botd-shortlist__pick-facts {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 20px 26px;
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--sl-line);
}
.botd-shortlist__pick-fact { min-width: 0; }
.botd-shortlist__pick-fact-label {
  display: block;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sl-ink-40);
  margin-bottom: 4px;
}
.botd-shortlist__pick-fact-val {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  line-height: 1;
  color: var(--sl-ink);
}
.botd-shortlist__pick-fact-suffix {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--sl-ink-40);
  font-weight: 500;
  letter-spacing: 0;
}
.botd-shortlist__pick-fact--sp .botd-shortlist__pick-fact-val {
  color: var(--sl-ink-40);
  font-style: italic;
}
.botd-shortlist__pick-fact--score .botd-shortlist__pick-fact-val {
  color: var(--sl-gold-deep);
  font-style: italic;
}

.botd-shortlist__pick-status {
  padding: 24px 26px 22px;
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.02), rgba(26, 22, 18, 0.06));
  border-left: 1px solid var(--sl-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.botd-shortlist__pick-status-label {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--sl-ink-40);
}
.botd-shortlist__pick-status-time {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  color: var(--sl-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.botd-shortlist__pick-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}
.botd-shortlist__pick-status-chip--pending {
  background: var(--sl-paper-deep);
  border: 1px solid var(--sl-line-strong);
  color: var(--sl-pending);
}
.botd-shortlist__pick-status-chip--won {
  background: rgba(26, 125, 74, 0.12);
  border: 1px solid rgba(26, 125, 74, 0.36);
  color: var(--sl-emerald);
}
.botd-shortlist__pick-status-chip--placed {
  background: rgba(195, 158, 42, 0.14);
  border: 1px solid rgba(195, 158, 42, 0.42);
  color: var(--sl-gold-deep);
}
.botd-shortlist__pick-status-chip--lost {
  background: rgba(160, 48, 64, 0.08);
  border: 1px solid rgba(160, 48, 64, 0.28);
  color: var(--sl-claret);
}
.botd-shortlist__pick-status-chip--void {
  background: rgba(26, 22, 18, 0.06);
  border: 1px solid var(--sl-line-strong);
  color: var(--sl-ink-70);
}

/* ── Divider ──────────────────────────────────────────────── */
.botd-shortlist__divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
}
.botd-shortlist__divider-rule {
  flex: 1;
  height: 1px;
  background: var(--sl-line);
}
.botd-shortlist__divider-label {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sl-ink-70);
  white-space: nowrap;
}
.botd-shortlist__divider-label em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 14px;
  color: var(--sl-gold-deep);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ── Ranked challengers ──────────────────────────────────── */
.botd-field {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  background: var(--sl-paper-2);
  border: 1px solid var(--sl-line);
  border-radius: 6px;
  overflow: hidden;
}
.botd-field__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1.4fr) 96px 1fr 140px;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--sl-line);
  position: relative;
  transition: background 0.15s ease;
}
.botd-field__row:last-child { border-bottom: none; }
.botd-field__row:hover { background: rgba(195, 158, 42, 0.03); }

.botd-field__rank {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 64px;
  line-height: 0.85;
  color: var(--sl-ink-40);
  letter-spacing: -0.04em;
  text-align: center;
  align-self: center;
}

.botd-field__horse-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.botd-field__horse {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  color: var(--sl-ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--sl-line-strong);
  align-self: flex-start;
  letter-spacing: -0.005em;
}
.botd-field__horse:hover {
  color: var(--sl-gold-deep);
  border-bottom-style: solid;
}
.botd-field__race {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sl-ink-40);
  text-transform: uppercase;
}
.botd-field__race-time {
  font-variant-numeric: tabular-nums;
  color: var(--sl-ink-70);
  font-weight: 700;
}

.botd-field__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.botd-field__odds {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--sl-ink);
  letter-spacing: -0.01em;
}
.botd-field__sp {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sl-ink-40);
  text-transform: uppercase;
}
.botd-field__sp em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: normal;
  font-weight: 900;
  font-size: 14px;
  color: var(--sl-ink-70);
  letter-spacing: 0;
  text-transform: none;
  margin-left: 3px;
}

.botd-field__score-block {
  display: flex;
  align-items: center;
  gap: 14px;
}
.botd-field__score {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  line-height: 1;
  color: var(--sl-ink);
  min-width: 46px;
  text-align: right;
}
.botd-field__score-bar {
  flex: 1;
  height: 8px;
  background: rgba(26, 22, 18, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.botd-field__score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sl-gold-deep) 0%, var(--sl-gold) 100%);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--sl-gold-glow);
}

.botd-field__status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
}
.botd-field__status--pending {
  background: var(--sl-paper-deep);
  color: var(--sl-pending);
  border: 1px solid rgba(122, 107, 62, 0.28);
}
.botd-field__status--won {
  background: rgba(26, 125, 74, 0.10);
  color: var(--sl-emerald);
  border: 1px solid rgba(26, 125, 74, 0.32);
}
.botd-field__status--placed {
  background: rgba(195, 158, 42, 0.12);
  color: var(--sl-gold-deep);
  border: 1px solid rgba(195, 158, 42, 0.36);
}
.botd-field__status--lost {
  background: rgba(160, 48, 64, 0.06);
  color: var(--sl-claret);
  border: 1px solid rgba(160, 48, 64, 0.20);
}
.botd-field__status--void {
  background: rgba(26, 22, 18, 0.05);
  color: var(--sl-ink-70);
  border: 1px solid var(--sl-line-strong);
}

/* ── Foot ─────────────────────────────────────────────────── */
.botd-shortlist__foot {
  text-align: center;
  padding: 18px 22px;
  background: var(--sl-paper-deep);
  border: 1px solid var(--sl-line);
  border-radius: 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: var(--sl-ink-70);
  line-height: 1.55;
  margin: 0;
}
.botd-shortlist__foot strong {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--sl-ink);
}

/* ── Mobile — pick becomes stacked, field collapses to 2 rows ─ */
@media (max-width: 780px) {
  .botd-shortlist__pick { grid-template-columns: 1fr; }
  .botd-shortlist__pick::after { left: 0; }
  .botd-shortlist__stamp {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 20px;
  }
  .botd-shortlist__stamp-pick { font-size: 22px; }
  .botd-shortlist__stamp-crest { width: 36px; height: 36px; }
  .botd-shortlist__stamp-crest span { font-size: 13px; }
  .botd-shortlist__pick-body { padding: 22px 22px 24px; }
  .botd-shortlist__pick-status {
    border-left: none;
    border-top: 1px solid var(--sl-line);
    min-width: 0;
    padding: 18px;
  }
  .botd-shortlist__pick-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 14px;
  }
  .botd-shortlist__pick-fact-val { font-size: 28px; }
  .botd-shortlist__pick-fact-suffix { font-size: 11px; }

  .botd-field__row {
    grid-template-columns: 46px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    padding: 14px 16px;
  }
  .botd-field__rank { grid-row: 1 / span 2; font-size: 46px; }
  .botd-field__horse-block { grid-column: 2; grid-row: 1; }
  .botd-field__prices {
    grid-column: 3;
    grid-row: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .botd-field__score-block {
    grid-column: 2 / span 2;
    grid-row: 2;
    margin-top: 6px;
  }
  .botd-field__status {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
  }
}


/* ═════════════════════════════════════════════════════════════
   The Logbook — /bet-of-the-day/archive/
   Each day is a diary entry: date rail, bet hero (horse + prices
   + result chip + P/L as the diary's headline number), and a
   shortlist strip of five mini-tiles. Two lifetime cards above
   measure the bet and the shortlist reach separately so process
   quality and pick luck don't get confused for each other.
   ════════════════════════════════════════════════════════════ */
.botd-logbook__stats {
  --lb-paper:      #FBF7EF;
  --lb-paper-2:    #FFFCF3;
  --lb-paper-deep: #F1E9D0;
  --lb-ink:        #1A1612;
  --lb-ink-70:     #4A413A;
  --lb-ink-40:     rgba(26, 22, 18, 0.44);
  --lb-line:       rgba(26, 22, 18, 0.10);
  --lb-gold:       #C39E2A;
  --lb-gold-deep:  #8F6F18;
  --lb-emerald:    #1A7D4A;
  --lb-claret:     #A03040;
  --lb-pending:    #7A6B3E;

  max-width: 1260px;
  margin: -20px auto 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.botd-logbook__stats-card {
  background: var(--lb-paper-2);
  border: 1px solid var(--lb-line);
  border-radius: 6px;
  padding: 18px 22px 20px;
  box-shadow: 0 10px 40px -20px rgba(26, 22, 18, 0.25);
}
.botd-logbook__stats-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lb-line);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lb-ink-70);
}
.botd-logbook__stats-tag {
  padding: 3px 8px;
  background: var(--lb-paper-deep);
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  color: var(--lb-gold-deep);
  letter-spacing: 0.14em;
  font-size: 9px;
}
.botd-logbook__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.botd-logbook__stat {
  text-align: center;
}
.botd-logbook__stat-val {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  line-height: 1;
  color: var(--lb-ink);
}
.botd-logbook__stat-val--pl-pos { color: var(--lb-emerald); }
.botd-logbook__stat-val--pl-neg { color: var(--lb-claret); }
.botd-logbook__stat-val--gold   { color: var(--lb-gold-deep); font-style: italic; }
.botd-logbook__stat-lbl {
  display: block;
  margin-top: 6px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lb-ink-40);
}

/* ── The ledger — diary entries ───────────────────────────── */
.botd-logbook__ledger {
  --lb-paper-2:    #FFFCF3;
  --lb-paper-deep: #F1E9D0;
  --lb-ink:        #1A1612;
  --lb-ink-70:     #4A413A;
  --lb-ink-40:     rgba(26, 22, 18, 0.44);
  --lb-ink-20:     rgba(26, 22, 18, 0.14);
  --lb-line:       rgba(26, 22, 18, 0.10);
  --lb-gold:       #C39E2A;
  --lb-gold-deep:  #8F6F18;
  --lb-gold-lite:  rgba(195, 158, 42, 0.14);
  --lb-emerald:    #1A7D4A;
  --lb-claret:     #A03040;

  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 1260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.botd-logbook__entry {
  display: grid;
  grid-template-columns: 130px minmax(0, 1.15fr) minmax(430px, 1fr);
  background: var(--lb-paper-2);
  border: 1px solid var(--lb-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px -8px rgba(26, 22, 18, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.botd-logbook__entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(26, 22, 18, 0.18);
}
.botd-logbook__entry--won {
  background: linear-gradient(180deg, rgba(26, 125, 74, 0.04), var(--lb-paper-2));
  border-left: 3px solid var(--lb-emerald);
}
.botd-logbook__entry--lost {
  background: linear-gradient(180deg, rgba(160, 48, 64, 0.03), var(--lb-paper-2));
  border-left: 3px solid rgba(160, 48, 64, 0.55);
}
.botd-logbook__entry--live,
.botd-logbook__entry--pending {
  border-left: 3px solid var(--lb-gold);
}
.botd-logbook__entry--void,
.botd-logbook__entry--abandoned {
  border-left: 3px solid var(--lb-ink-20);
}

.botd-logbook__date {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.02), rgba(26, 22, 18, 0.04));
  border-right: 1px dashed var(--lb-ink-20);
}
.botd-logbook__dow {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lb-ink-40);
}
.botd-logbook__day {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 46px;
  line-height: 0.9;
  color: var(--lb-ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.botd-logbook__month {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 18px;
  color: var(--lb-gold-deep);
  line-height: 1;
}
.botd-logbook__year {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--lb-ink-40);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* The Bet — middle column, clickable */
.botd-logbook__bet {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.botd-logbook__bet:hover .botd-logbook__horse { color: var(--lb-gold-deep); }
.botd-logbook__bet-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lb-gold-deep);
}
.botd-logbook__bet-label::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--lb-gold);
}
.botd-logbook__horse {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.05;
  color: var(--lb-ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
  transition: color 0.12s ease;
}
.botd-logbook__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 0 0;
  border-top: 1px solid var(--lb-line);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--lb-ink-40);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.botd-logbook__meta-item strong {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--lb-ink);
  letter-spacing: -0.005em;
  text-transform: none;
  margin-left: 5px;
}
.botd-logbook__meta-item--sp strong {
  font-style: italic;
  color: var(--lb-ink-70);
}
.botd-logbook__result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.botd-logbook__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 3px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.botd-logbook__chip--won {
  background: rgba(26, 125, 74, 0.10);
  color: var(--lb-emerald);
  border: 1px solid rgba(26, 125, 74, 0.32);
}
.botd-logbook__chip--lost {
  background: rgba(160, 48, 64, 0.08);
  color: var(--lb-claret);
  border: 1px solid rgba(160, 48, 64, 0.24);
}
.botd-logbook__chip--live {
  background: rgba(195, 158, 42, 0.14);
  color: var(--lb-gold-deep);
  border: 1px solid rgba(195, 158, 42, 0.42);
}
.botd-logbook__chip--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lb-gold-deep);
  box-shadow: 0 0 0 3px rgba(195, 158, 42, 0.28);
  animation: botd-logbook-pulse 1.5s ease-in-out infinite;
}
.botd-logbook__chip--void,
.botd-logbook__chip--abandoned {
  background: rgba(26, 22, 18, 0.05);
  color: var(--lb-ink-70);
  border: 1px solid var(--lb-line);
}
@media (prefers-reduced-motion: reduce) {
  .botd-logbook__chip--live::before { animation: none; }
}
@keyframes botd-logbook-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* P/L — the diary's headline number */
.botd-logbook__pl {
  margin-left: auto;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.botd-logbook__pl--pos { color: var(--lb-emerald); }
.botd-logbook__pl--neg { color: var(--lb-claret); }
.botd-logbook__pl--flat { color: var(--lb-ink-40); font-style: normal; }
.botd-logbook__pl--pending {
  color: var(--lb-gold-deep);
  font-size: 15px;
  font-style: normal;
  letter-spacing: 0.06em;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

/* The Shortlist — right column */
.botd-logbook__shortlist {
  padding: 18px 20px;
  border-left: 1px solid var(--lb-line);
  background: linear-gradient(180deg, rgba(195, 158, 42, 0.04), rgba(195, 158, 42, 0.00));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.botd-logbook__shortlist-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lb-gold-deep);
}
.botd-logbook__shortlist-count {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 13px;
  color: var(--lb-ink-70);
  letter-spacing: 0.02em;
  text-transform: none;
}
.botd-logbook__shortlist-count strong {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
  color: var(--lb-gold-deep);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  margin-right: 3px;
}
.botd-logbook__shortlist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.botd-logbook__stile {
  position: relative;
  padding: 10px 8px 8px;
  background: rgba(26, 22, 18, 0.03);
  border: 1px solid var(--lb-line);
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  transition: transform 0.12s ease;
}
.botd-logbook__stile:hover { transform: translateY(-1px); }
.botd-logbook__stile--gold {
  background: linear-gradient(180deg, rgba(195, 158, 42, 0.32), rgba(195, 158, 42, 0.20));
  border-color: rgba(195, 158, 42, 0.55);
}
.botd-logbook__stile--silver {
  background: rgba(140, 150, 165, 0.18);
  border-color: rgba(140, 150, 165, 0.42);
}
.botd-logbook__stile--bronze {
  background: rgba(160, 90, 40, 0.18);
  border-color: rgba(160, 90, 40, 0.40);
}
.botd-logbook__stile--outside {
  background: rgba(160, 48, 64, 0.05);
  border-color: rgba(160, 48, 64, 0.14);
  color: var(--lb-ink-40);
}
.botd-logbook__stile--pending {
  background: var(--lb-paper-deep);
  border-color: rgba(26, 22, 18, 0.22);
  color: var(--lb-ink-40);
}
.botd-logbook__stile--void {
  background: rgba(26, 22, 18, 0.04);
  border-color: var(--lb-line);
  color: var(--lb-ink-40);
}
.botd-logbook__stile-rank {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 11px;
  color: var(--lb-gold-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.botd-logbook__stile-medal {
  font-size: 14px;
  line-height: 1;
}
.botd-logbook__stile-horse {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
  color: var(--lb-ink);
  letter-spacing: -0.005em;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 2.4em;
}
.botd-logbook__stile--outside .botd-logbook__stile-horse,
.botd-logbook__stile--pending .botd-logbook__stile-horse,
.botd-logbook__stile--void .botd-logbook__stile-horse { color: var(--lb-ink-70); }

/* ── Pager ────────────────────────────────────────────────── */
.botd-logbook__pager {
  max-width: 1260px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.botd-logbook__pager-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #1A1612;
  color: #FAF6EC;
  text-decoration: none;
  border-radius: 999px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.15s ease;
}
.botd-logbook__pager-btn:hover { transform: translateY(-1px); }
.botd-logbook__pager-btn--disabled {
  background: rgba(26, 22, 18, 0.08);
  color: rgba(26, 22, 18, 0.35);
  cursor: not-allowed;
  pointer-events: none;
}
.botd-logbook__pager-status {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: rgba(26, 22, 18, 0.62);
  letter-spacing: 0.02em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .botd-logbook__stats { grid-template-columns: 1fr; }
  .botd-logbook__entry {
    grid-template-columns: 92px 1fr;
    grid-template-rows: auto auto;
  }
  .botd-logbook__date {
    grid-row: 1 / span 2;
    padding: 14px 10px;
  }
  .botd-logbook__day { font-size: 34px; }
  .botd-logbook__bet { padding: 16px 18px; }
  .botd-logbook__shortlist {
    grid-column: 2;
    grid-row: 2;
    border-left: none;
    border-top: 1px dashed var(--lb-ink-20);
    padding: 12px 18px 16px;
  }
  .botd-logbook__horse { font-size: 22px; }
  .botd-logbook__pl { font-size: 28px; }
}
@media (max-width: 520px) {
  .botd-logbook__meta { flex-direction: column; gap: 6px; }
  .botd-logbook__result-row { flex-wrap: wrap; }
  .botd-logbook__pl { margin-left: 0; }
  .botd-logbook__stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 6px; }
}
