/*
 * SATURDAY RACING — Horse Detail Page
 * /horses/static/horses/css/detail.css
 */

/* ── PAGE WRAPPER ──────────────────────────────────────────── */
.horse-page { padding-bottom: var(--space-10); }

/* ── HERO ──────────────────────────────────────────────────── */
.horse-hero {
  position: relative;
  padding: calc(var(--nav-h) + 40px) 0 48px;
  overflow: hidden;
}
.horse-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 80% at 0% 60%,  rgba(10,55,120,0.45), transparent 55%),
    radial-gradient(ellipse 55% 70% at 100% 30%, rgba(100,15,50,0.42), transparent 52%),
    var(--c-navy);
}
.horse-hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 79px,
    rgba(212,175,55,0.025) 79px, rgba(212,175,55,0.025) 80px
  );
}
.horse-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: start;
}

/* Silk avatar */
.horse-silk-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.horse-silk-avatar__number {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Identity */
.horse-identity { min-width: 0; }
.horse-hero__eyebrow {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.horse-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  color: var(--c-text-55);
  border: 1px solid var(--c-border);
}
.horse-badge--country { color: var(--c-cyan); border-color: rgba(14,165,233,0.3); background: rgba(14,165,233,0.08); }
.horse-badge--fav     { color: var(--c-gold); border-color: var(--c-border-gold); background: var(--c-gold-subtle); }

.horse-hero__name {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900; line-height: 1;
  color: var(--c-text-100);
  margin-bottom: 12px;
}
.horse-hero__connections {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  font-size: 14px; color: var(--c-text-55);
}
.horse-hero__connections strong { color: var(--c-text-100); font-weight: 600; }
.horse-hero__connections .sep   { color: var(--c-text-35); }
.horse-hero__breeding {
  margin-top: 8px; font-size: 13px;
  color: var(--c-text-35); font-style: italic;
}
.breeding-label { font-style: normal; color: var(--c-text-35); }

/* Hero form-figures — premium prominence. Racing-Post convention:
   newest figure on the RIGHT. Big mono numerals with letterspacing
   so each finishing position reads as its own datum. Gold-rule left
   edge ties it visually to the cream-paper form band below. */
.horse-hero__form {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 16px;
  padding: 10px 16px 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-left: 3px solid var(--c-gold);
  border-radius: 6px;
}
.horse-hero__form-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.horse-hero__form-value {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace,
               'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--c-text-100, #fff);
  font-variant-numeric: tabular-nums;
}
.horse-hero__form-hint {
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--c-text-35);
  margin-left: auto;
  padding-left: 8px;
}

/* Debut variant — when there's neither HorseResult history nor a
   Runner.form string. Red accent instead of gold to set it apart
   from horses that have form. */
.horse-hero__form--debut {
  border-left-color: var(--c-red, #C0392B);
  border-color: rgba(192, 57, 43, 0.30);
  background: rgba(192, 57, 43, 0.06);
}
.horse-hero__form--debut .horse-hero__form-label { color: #ff8a7a; }
.horse-hero__form-debut {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: #ff8a7a;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .horse-hero__form { padding: 8px 12px; gap: 10px; }
  .horse-hero__form-value { font-size: 18px; letter-spacing: 0.20em; }
  .horse-hero__form-debut { font-size: 15px; }
  .horse-hero__form-hint { display: none; }
}

/* Hero stats panel */
.horse-hero__stats {
  display: flex; flex-direction: column;
  gap: 8px; align-items: flex-end; flex-shrink: 0;
}
.horse-stat {
  text-align: right;
}
.horse-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: var(--c-text-100); line-height: 1;
}
.horse-stat--gold .horse-stat__num { color: var(--c-gold); }
.horse-stat__label {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-35); margin-top: 2px;
}
.horse-voted-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--c-emerald-lt);
  background: var(--c-emerald-glow);
  border: 1px solid rgba(45,189,122,0.25);
  padding: 6px 14px; border-radius: var(--r-pill);
}
.horse-vote-btn { font-size: 13px; padding: 9px 18px; white-space: nowrap; }

/* ── BODY LAYOUT ───────────────────────────────────────────── */
.horse-body { padding-top: var(--space-7); }
.horse-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

/* ── SECTIONS ──────────────────────────────────────────────── */
.horse-section {
  background: var(--c-navy-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-5);
}
.horse-section__title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--c-text-100);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--c-border);
}
.horse-section__icon { font-size: 18px; }

/* Guide & bio */
.horse-guide-tip { margin-bottom: var(--space-4); }
.horse-bio {
  font-size: 15px; color: var(--c-text-75);
  line-height: 1.78; margin-top: var(--space-4);
}

/* Notable wins */
.horse-notable-wins { display: flex; flex-direction: column; gap: 8px; }
.horse-win-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--c-text-75);
  padding: 8px 12px;
  background: rgba(212,175,55,0.05);
  border-left: 2px solid var(--c-gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.horse-win-icon { color: var(--c-gold); font-size: 12px; flex-shrink: 0; }

/* ── RACE HISTORY TABLE ─────────────────────────────────────── */
.horse-results-table { border-radius: var(--r-md); overflow: hidden; }
.hrt-header {
  display: grid;
  grid-template-columns: 100px 1fr 50px 90px 120px 60px;
  gap: 12px; padding: 10px 16px;
  background: rgba(212,175,55,0.07);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-35);
}
.hrt-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px 90px 120px 60px;
  gap: 12px; padding: 12px 16px;
  font-size: 14px; color: var(--c-text-75);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.15s;
  align-items: center;
}
.hrt-row:last-child { border-bottom: none; }
.hrt-row:hover { background: var(--c-navy-raised); }
.hrt-row--win    { background: rgba(26,92,64,0.08); }
.hrt-row--placed { background: rgba(212,175,55,0.04); }

.hrt-date    { color: var(--c-text-55); font-size: 13px; white-space: nowrap; }
.hrt-race    { font-weight: 600; color: var(--c-text-100); min-width: 0; }
.hrt-course  { display: block; font-size: 12px; font-weight: 400; color: var(--c-text-35); }
.hrt-pos     { font-family: var(--font-display); font-weight: 900; font-size: 15px; text-align: center; }
.hrt-pos--win  { color: var(--c-emerald-lt); }
.hrt-pos--dnf  { color: var(--c-text-35); font-size: 12px; }
.hrt-going   { font-size: 13px; color: var(--c-text-55); }
.hrt-jockey  { font-size: 13px; color: var(--c-text-75); }
.hrt-odds    { font-family: var(--font-display); font-weight: 700; color: var(--c-gold); text-align: right; }

.horse-empty { color: var(--c-text-35); font-size: 14px; font-style: italic; }

/* ── VOTERS PANEL ──────────────────────────────────────────── */
.horse-voters__count {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: var(--space-4);
}
.voters-num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 900;
  color: var(--c-gold); line-height: 1;
}
.voters-label { font-size: 14px; color: var(--c-text-55); }
.horse-voters__grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--space-4);
}
.voter-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(212,175,55,0.15);
  border: 2px solid rgba(212,175,55,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: default; transition: transform 0.15s;
}
.voter-avatar:hover { transform: scale(1.12); }
.voter-avatar__letter {
  font-size: 14px; font-weight: 700;
  color: var(--c-gold);
}
.horse-voters__names {
  font-size: 13px; color: var(--c-text-55);
  flex-wrap: wrap; display: flex; gap: 6px; align-items: center;
}
.voter-name  { color: var(--c-text-75); }
.voter-sep   { color: var(--c-text-35); }
.horse-voters__empty {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--c-text-55);
}
.horse-voters__join {
  color: var(--c-gold); font-weight: 600; font-size: 13px;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  padding-bottom: 1px;
}

/* ── ENTRY CARD ────────────────────────────────────────────── */
.entry-grid { display: flex; flex-direction: column; gap: 0; }
.entry-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 9px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}
.entry-row:last-child { border-bottom: none; }
.entry-row span:first-child { color: var(--c-text-35); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.entry-row span:last-child  { color: var(--c-text-100); font-weight: 500; }
.entry-form  { font-family: var(--font-display); letter-spacing: 0.1em; }
.entry-odds  { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--c-gold); }
.entry-row--odds { padding: 12px 0; }
.entry-comment {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--c-border);
  font-size: 14px; color: var(--c-text-55);
  font-style: italic; line-height: 1.7;
}

/* ── CHAT ──────────────────────────────────────────────────── */
.horse-chat { margin-top: 0; }
.horse-chat .horse-section__title .chat-count {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  color: var(--c-text-35);
}
.horse-chat__rule {
  font-size: 13px; color: var(--c-text-35);
  margin-top: -12px; margin-bottom: var(--space-5);
  font-style: italic;
}

/* Posts list */
.chat-posts {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: var(--space-5);
}
.chat-post {
  display: flex; gap: 12px;
  padding: 14px 16px;
  background: var(--c-navy-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color 0.2s;
}
.chat-post--mine {
  border-color: var(--c-border-gold);
  background: rgba(212,175,55,0.04);
}
.chat-post__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px; font-weight: 700; color: var(--c-gold);
  border: 1px solid rgba(212,175,55,0.2);
}
.chat-post__body { flex: 1; min-width: 0; }
.chat-post__header {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.chat-post__name { font-weight: 600; font-size: 13px; color: var(--c-text-100); }
.chat-post__time { font-size: 11px; color: var(--c-text-35); margin-left: auto; }
.chat-post__text { font-size: 15px; color: var(--c-text-75); line-height: 1.55; margin-bottom: 8px; }
.chat-emoji      { margin-right: 4px; }

/* Category label */
.chat-post__cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill);
}
.chat-post__cat--confident { background: rgba(212,175,55,0.12); color: var(--c-gold); border: 1px solid rgba(212,175,55,0.22); }
.chat-post__cat--sceptical { background: rgba(14,165,233,0.10); color: #7baff8; border: 1px solid rgba(14,165,233,0.22); }
.chat-post__cat--tactical  { background: rgba(139,92,246,0.10); color: #c084fc; border: 1px solid rgba(139,92,246,0.22); }
.chat-post__cat--banter    { background: rgba(212,98,42,0.10);  color: #f0804a; border: 1px solid rgba(212,98,42,0.22); }

/* Like button */
.chat-post__actions { display: flex; align-items: center; gap: 6px; }
.chat-like-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--c-border);
  border-radius: var(--r-pill); padding: 3px 10px;
  font-size: 13px; color: var(--c-text-55);
  cursor: pointer; transition: all 0.18s;
}
.chat-like-btn:hover { border-color: rgba(212,175,55,0.4); color: var(--c-gold); }
.chat-like-btn--liked { border-color: rgba(212,175,55,0.4); color: var(--c-gold); background: var(--c-gold-subtle); }
.like-heart { font-size: 14px; line-height: 1; }
.like-count { font-weight: 600; }
.chat-likes-readonly { font-size: 13px; color: var(--c-text-35); }

.chat-empty {
  text-align: center; padding: var(--space-6);
  font-size: 14px; color: var(--c-text-35); font-style: italic;
  background: var(--c-navy-mid); border-radius: var(--r-md);
  border: 1px dashed var(--c-border);
}

/* Already posted bar */
.chat-posted-msg {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(212,175,55,0.06);
  border: 1px solid var(--c-border-gold);
  border-radius: var(--r-md); margin-bottom: var(--space-4);
  font-size: 14px; color: var(--c-text-75);
}
.chat-posted-msg strong { color: var(--c-gold); }
.chat-change-btn {
  margin-left: auto; background: none; border: none;
  color: var(--c-gold); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: underline;
}

/* ── CHAT PICKER ───────────────────────────────────────────── */
.chat-picker { }
.chat-picker--hidden { display: none; }
.chat-picker__title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-text-35);
  margin-bottom: var(--space-4);
}
.chat-picker__group { margin-bottom: var(--space-5); }
.chat-picker__group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 10px;
  padding: 4px 0; border-bottom: 1px solid var(--c-border);
}
.label--confident { color: var(--c-gold); }
.label--sceptical { color: #7baff8; }
.label--tactical  { color: #c084fc; }
.label--banter    { color: #f0804a; }

.chat-picker__lines {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chat-line-btn {
  font-size: 13px; padding: 8px 14px;
  border-radius: var(--r-pill); cursor: pointer;
  transition: all 0.18s; border: 1px solid;
  display: flex; align-items: center; gap: 6px;
  background: none;
}
.line--confident { color: var(--c-gold);   border-color: rgba(212,175,55,0.28); }
.line--confident:hover { background: var(--c-gold-subtle); border-color: var(--c-gold); }
.line--sceptical { color: #7baff8; border-color: rgba(14,165,233,0.25); }
.line--sceptical:hover { background: rgba(14,165,233,0.08); border-color: #7baff8; }
.line--tactical  { color: #c084fc; border-color: rgba(139,92,246,0.25); }
.line--tactical:hover  { background: rgba(139,92,246,0.08); border-color: #c084fc; }
.line--banter    { color: #f0804a; border-color: rgba(212,98,42,0.25); }
.line--banter:hover    { background: rgba(212,98,42,0.08); border-color: #f0804a; }

/* Sign-in prompt */
.chat-signin-prompt {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-5);
  background: var(--c-navy-mid);
  border: 1px dashed var(--c-border-gold);
  border-radius: var(--r-md);
  font-size: 20px;
}
.chat-signin-prompt > div { flex: 1; }
.chat-signin-prompt strong { display: block; font-size: 15px; color: var(--c-text-100); margin-bottom: 3px; }
.chat-signin-prompt p { font-size: 13px; color: var(--c-text-55); margin: 0; }

/* ── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .horse-hero__inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .horse-hero__stats {
    grid-column: 1 / -1;
    flex-direction: row; flex-wrap: wrap;
    align-items: flex-start; justify-content: flex-start;
    gap: 16px;
  }
  .horse-stat { text-align: left; }
  .horse-layout {
    grid-template-columns: 1fr;
  }
  .hrt-header,
  .hrt-row {
    grid-template-columns: 85px 1fr 44px 70px;
  }
  .hrt-jockey, .hrt-odds { display: none; }
}

@media (max-width: 600px) {
  .horse-silk-avatar { width: 60px; height: 60px; }
  .horse-silk-avatar__number { font-size: 22px; }
  .horse-hero__name { font-size: 32px; }
  .horse-section { padding: var(--space-4); }
  .hrt-header, .hrt-row { grid-template-columns: 80px 1fr 44px; }
  .hrt-going { display: none; }
  .chat-line-btn { font-size: 12px; padding: 7px 12px; }
  .chat-signin-prompt { flex-wrap: wrap; }
}

/* ─────────────────────────────────────────────────────────────
   FORM & SPLITS — added with Phase 1+2 of richer profiles.
   Auto-populated from HorseResult rows via the horse_form
   template tag library. Renders nothing if the horse has no
   recorded results yet, so the section is self-hiding.
───────────────────────────────────────────────────────────── */

/* Auto-summary callout — visually distinct from editorial bio so
   Cubs know it's machine-generated and editors know it's a fallback. */
.horse-bio--auto {
  border-left: 3px solid rgba(212, 175, 55, 0.35);
  padding-left: 14px;
  position: relative;
}
.horse-bio__source {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.6);
  cursor: help;
}

/* Top-row: form figures + days-off chip side by side */
.form-top {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.form-figures {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.form-figures__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-35);
  font-weight: 700;
}
.form-figures__value {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.form-figures__hint {
  font-size: 10px;
  color: var(--c-text-35);
  letter-spacing: 0.04em;
}

.days-off-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}
.days-off-chip__icon { font-size: 11px; line-height: 1; }
.days-off-chip--fresh  { color: #2DBD7A; border-color: rgba(45,189,122,0.35); background: rgba(45,189,122,0.08); }
.days-off-chip--normal { color: var(--c-gold); border-color: rgba(212,175,55,0.35); background: rgba(212,175,55,0.06); }
.days-off-chip--stale  { color: #E05C4C; border-color: rgba(224,92,76,0.35); background: rgba(224,92,76,0.06); }

/* Recent-trend pip row — newest on the right (UK convention) */
.recent-trend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
}
.recent-trend__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-35);
  font-weight: 700;
}
.recent-trend__row {
  display: inline-flex;
  flex-direction: row-reverse;   /* newest on the right */
  gap: 6px;
}
.trend-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--c-text-75);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.trend-pip--win    { background: rgba(45,189,122,0.20); color: #2DBD7A; border-color: rgba(45,189,122,0.5); }
.trend-pip--placed { background: rgba(212,175,55,0.18); color: var(--c-gold); border-color: rgba(212,175,55,0.45); }
.trend-pip--dnf    { background: rgba(224,92,76,0.12);  color: #E05C4C;     border-color: rgba(224,92,76,0.35); }

/* Splits grid — small cards for course / going / distance + RPR/TS bests */
.splits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.split-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s, background 0.18s;
}
.split-card:hover { border-color: rgba(212,175,55,0.35); background: rgba(212,175,55,0.04); }

.split-card__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-35);
  font-weight: 700;
}
.split-card__value {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text-100);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.split-card__sep {
  color: var(--c-text-35);
  font-weight: 400;
  margin: 0 2px;
}
.split-card__sub {
  font-size: 11px;
  color: var(--c-text-55);
}
.split-card--gold .split-card__value { color: var(--c-gold); }

/* ═══════════════════════════════════════════════════════════════
   PHASE 1 — Horse detail redesign
   ────────────────────────────────────────────────────────────────
   Cream-paper zone below the hero, mirroring the racecard design.
   Status strip → today card → form band → race history → connections
   + cubs backing (side-by-side) → notable wins → editorial close.
═══════════════════════════════════════════════════════════════ */

.horse-paper {
  --hp-paper:        #FAFAF7;
  --hp-card:         #FFFFFF;
  --hp-card-warm:    #F7F5EE;
  --hp-ink:          #11151F;
  --hp-ink-70:       #41474F;
  --hp-ink-40:       #9CA3AF;
  --hp-rule:         #E7E5DD;
  --hp-rule-strong:  #D6D2C5;
  --hp-gold-ink:     #9C7B12;
  --hp-gold-bright:  #D4AF37;
  --hp-gold-wash:    #FAF1D7;
  --hp-emerald:      #1A7D4A;
  --hp-emerald-soft: rgba(26, 125, 74, 0.10);
  --hp-red:          #C0392B;
  --hp-amber:        #c46a1a;

  background: var(--hp-paper);
  color: var(--hp-ink);
  padding: 36px clamp(16px, 4vw, 32px) 56px;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
}
.horse-paper > .container { display: flex; flex-direction: column; gap: 22px; }

/* ── 1. STATUS STRIP ──────────────────────────────────────────── */
.horse-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 10px 14px;
  background: var(--hp-card);
  border: 1px solid var(--hp-rule);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-size: 12.5px;
  color: var(--hp-ink-70);
}
.horse-strip__state {
  display: inline-flex; align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 99px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  flex-shrink: 0;
}
.horse-strip__state-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.horse-strip--running_today .horse-strip__state {
  background: rgba(192, 57, 43, 0.10);
  border: 1px solid rgba(192, 57, 43, 0.40);
  color: var(--hp-red);
}
.horse-strip--running_today .horse-strip__state-dot {
  background: var(--hp-red);
  box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.55);
  animation: hp-pulse 1.6s ease-out infinite;
}
@keyframes hp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); }
}
.horse-strip--active .horse-strip__state {
  background: rgba(26, 125, 74, 0.10);
  border: 1px solid rgba(26, 125, 74, 0.35);
  color: var(--hp-emerald);
}
.horse-strip--active .horse-strip__state-dot { background: var(--hp-emerald); }

.horse-strip--resting .horse-strip__state {
  background: rgba(196, 106, 26, 0.08);
  border: 1px solid rgba(196, 106, 26, 0.35);
  color: var(--hp-amber);
}
.horse-strip--resting .horse-strip__state-dot { background: var(--hp-amber); }

.horse-strip--no_runs .horse-strip__state {
  background: rgba(108, 117, 125, 0.10);
  border: 1px solid rgba(108, 117, 125, 0.35);
  color: #6c757d;
}
.horse-strip--no_runs .horse-strip__state-dot { background: #6c757d; }

.horse-strip__metrics {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 18px; align-items: center;
  flex-wrap: wrap;
}
.horse-strip__metric { display: inline-flex; align-items: baseline; gap: 5px; }
.horse-strip__metric strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 800; line-height: 1;
  color: var(--hp-ink);
  font-variant-numeric: tabular-nums;
}
.horse-strip__metric-label {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-ink-40);
}
.horse-strip__spacer { flex: 1; }

/* ── 2. RUNNING-TODAY featured card ───────────────────────────── */
.horse-today {
  background: linear-gradient(135deg, var(--hp-gold-wash), var(--hp-card) 75%);
  border: 2px solid var(--hp-gold-bright);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.10);
}
.horse-today__head { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(212, 175, 55, 0.30); }
.horse-today__kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--hp-gold-ink);
}
.horse-today__race {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700; color: var(--hp-ink);
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.horse-today__meta {
  font-size: 13.5px; color: var(--hp-ink-70);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; font-variant-numeric: tabular-nums;
}
.horse-today__meta strong { color: var(--hp-ink); font-weight: 700; }
.horse-today__dot { color: var(--hp-rule-strong); }

.horse-today__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.horse-today__numbers {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.horse-today__num-cell { display: flex; flex-direction: column; gap: 3px; }
.horse-today__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 800;
  color: var(--hp-ink); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.horse-today__num-cell--text .horse-today__num {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 14.5px; font-weight: 700;
}
.horse-today__num-label {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-ink-40);
}

/* Phase 3 — headgear chip on the running-today card. First-time
   wearing is the standout signal (form readers watch for "b1"
   blinkers on debut runs), so the first-time variant gets a red
   accent + a small "FIRST" tag. */
.horse-today__headgear-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--hp-card-warm);
  border: 1.5px solid var(--hp-rule-strong);
  border-radius: 99px;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--hp-ink);
  cursor: help;
  white-space: nowrap;
}
.horse-today__headgear-chip--first {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.45);
  color: var(--hp-red);
}
.horse-today__headgear-ft {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 1px 5px;
  background: var(--hp-red);
  color: #fff;
  border-radius: 3px;
  margin-left: 2px;
}
.horse-today__action {
  display: flex; align-items: center; gap: 14px;
}
.horse-today__cta {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  background: var(--hp-ink); color: var(--hp-card);
  border-radius: 6px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}
.horse-today__cta:hover { background: #2a2f3b; transform: translateY(-1px); }

/* ── 3. FORM BAND ─────────────────────────────────────────────── */
.horse-form-band {
  background: var(--hp-card);
  border: 1px solid var(--hp-rule);
  border-radius: 12px;
  padding: 22px 24px;
}
.horse-form-band__head {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hp-rule);
}
.horse-form-band__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700;
  color: var(--hp-ink);
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  flex: 1;
}
/* Form-figures display — elevated as a typographic feature.
   Mono / tabular-nums with letter-spacing so each character reads
   distinctly. UK racing convention is newest-rightmost. */
.horse-form-band__figures {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 6px 14px;
  background: var(--hp-card-warm);
  border: 1px solid var(--hp-rule);
  border-left: 3px solid var(--hp-gold-bright);
  border-radius: 6px;
}
.horse-form-band__figures-label {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-ink-40);
}
.horse-form-band__figures strong {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace,
               'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 17px; font-weight: 700;
  color: var(--hp-ink);
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}
.horse-form-band__days {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px; font-weight: 700;
}
.horse-form-band__days--fresh  { background: rgba(26,125,74,0.08); color: var(--hp-emerald); }
.horse-form-band__days--normal { background: rgba(196,106,26,0.08); color: var(--hp-amber); }
.horse-form-band__days--stale,
.horse-form-band__days--rusty  { background: rgba(192,57,43,0.08); color: var(--hp-red); }

/* Pip ribbon — last 6 results as big colour-coded boxes.
   Phase 2: each pip is a click target that anchor-scrolls to the
   matching row in the history table below, with a hover popover
   surfacing date + race name without leaving the ribbon. */
.horse-pip-ribbon {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.horse-pip {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 800;
  text-decoration: none;
  background: var(--hp-card-warm);
  color: var(--hp-ink-40);
  border: 1.5px solid var(--hp-rule);
  transition: transform 0.16s ease, box-shadow 0.20s ease, border-color 0.16s ease;
}
.horse-pip__label {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.horse-pip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  border-color: var(--hp-ink-40);
}
.horse-pip:focus-visible {
  outline: 2px solid var(--hp-gold-ink);
  outline-offset: 3px;
}

.horse-pip--win {
  background: linear-gradient(135deg, #f5d76e, #c8a951);
  color: #11151F;
  border-color: var(--hp-gold-bright);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.20);
}
.horse-pip--placed {
  background: rgba(26, 125, 74, 0.14);
  color: var(--hp-emerald);
  border-color: rgba(26, 125, 74, 0.45);
}
.horse-pip--unplaced {
  background: var(--hp-card-warm);
  color: var(--hp-ink-70);
}
.horse-pip--dnf {
  background: rgba(192, 57, 43, 0.08);
  color: var(--hp-red);
  border-color: rgba(192, 57, 43, 0.30);
}

/* Hover popover — date + race name + course. Hidden by default,
   fades in on hover/focus. Pure CSS, no JS. */
.horse-pip__popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  z-index: 5;
  min-width: 180px;
  max-width: 240px;
  padding: 10px 12px;
  background: var(--hp-ink);
  color: var(--hp-card);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  display: flex; flex-direction: column; gap: 3px;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.horse-pip__popover::after {
  /* Down-arrow tail pointing at the pip */
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--hp-ink);
}
.horse-pip__pop-date {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.horse-pip__pop-race {
  font-weight: 700;
  color: #fff;
}
.horse-pip__pop-course {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.horse-pip:hover .horse-pip__popover,
.horse-pip:focus-visible .horse-pip__popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Target highlight — when the user clicks a pip and the page
   scrolls to the matching history row, briefly emphasise it.
   Combines :target (URL fragment) with scroll-margin so the row
   isn't flush against the toolbar above. */
.horse-result-row { scroll-margin-top: 100px; }
.horse-result-row:target {
  animation: hp-target-flash 2s ease-out;
  border-left: 3px solid var(--hp-gold-bright);
}
@keyframes hp-target-flash {
  0%   { background: rgba(212, 175, 55, 0.28); }
  60%  { background: rgba(212, 175, 55, 0.16); }
  100% { background: transparent; }
}

/* The whole document already inherits smooth-scroll from base.css
   (`html { scroll-behavior: smooth }`) so the pip-click jump is
   animated automatically. */

.horse-splits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.horse-split {
  background: var(--hp-card-warm);
  border: 1px solid var(--hp-rule);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.horse-split--gold {
  background: linear-gradient(135deg, var(--hp-gold-wash), var(--hp-card) 80%);
  border-color: var(--hp-gold-bright);
}
.horse-split__label {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-ink-40);
}
.horse-split__value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; font-weight: 800;
  color: var(--hp-ink); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.horse-split--gold .horse-split__value { color: var(--hp-gold-ink); }
.horse-split__sep { font-weight: 400; color: var(--hp-ink-40); margin: 0 2px; }
.horse-split__sub { font-size: 11px; color: var(--hp-ink-70); }

/* ── 4. RACE HISTORY ──────────────────────────────────────────── */
.horse-history-band {
  background: var(--hp-card);
  border: 1px solid var(--hp-rule);
  border-radius: 12px;
  padding: 22px 24px;
}
.horse-history-band__head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--hp-rule);
}
.horse-history-band__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700;
  color: var(--hp-ink);
  margin: 0;
  flex: 1;
  display: inline-flex; align-items: center; gap: 8px;
}
.horse-history-band__count {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-ink-40);
}
.horse-history-band__empty {
  margin: 0; padding: 24px 0;
  text-align: center; font-style: italic;
  color: var(--hp-ink-40);
}

.horse-results { display: flex; flex-direction: column; gap: 0; }
.horse-results__head {
  display: grid;
  grid-template-columns: 100px 1fr 64px 90px 1fr 70px;
  gap: 12px; padding: 8px 14px;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-ink-40);
  border-bottom: 1px solid var(--hp-rule);
}
.horse-results__pos-col,
.horse-results__odds-col { text-align: center; }
.horse-result-row {
  display: grid;
  grid-template-columns: 100px 1fr 64px 90px 1fr 70px;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--hp-ink-70);
  border-bottom: 1px solid var(--hp-rule);
  align-items: center;
  transition: background 0.15s;
}
.horse-result-row:last-child { border-bottom: none; }
.horse-result-row:hover { background: var(--hp-card-warm); }
.horse-result-row--win    { background: rgba(212, 175, 55, 0.05); }
.horse-result-row--placed { background: rgba(26, 125, 74, 0.04); }

.horse-result-row__date { font-size: 12.5px; color: var(--hp-ink-70); white-space: nowrap; }
.horse-result-row__race { color: var(--hp-ink); font-weight: 600; min-width: 0; }
.horse-result-row__sub {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.horse-result-row__course {
  font-size: 11px; font-weight: 500;
  color: var(--hp-ink-40);
}
/* Phase 3 — race class chip on the history row. */
.horse-result-row__class {
  display: inline-flex; align-items: center;
  padding: 1px 6px;
  background: var(--hp-card-warm);
  border: 1px solid var(--hp-rule-strong);
  border-radius: 4px;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hp-ink-70);
}
/* Phase 3 — headgear chip on the history row. */
.horse-result-row__hg {
  display: inline-flex; align-items: center;
  padding: 1px 6px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(156, 123, 18, 0.40);
  border-radius: 4px;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--hp-gold-ink);
  font-family: var(--font-body, system-ui, sans-serif);
  cursor: help;
}
.horse-result-row__pos {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800; font-size: 14px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--hp-card-warm);
  border: 1px solid var(--hp-rule);
  color: var(--hp-ink);
  min-width: 50px;
}
.horse-result-row__pos strong { line-height: 1; }
/* Phase 3 — beaten-distance pill (or "+1¼L" for winners). */
.horse-result-row__btn {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hp-ink-40);
  margin-top: 1px;
}
.horse-result-row__pos--win .horse-result-row__btn { color: rgba(17, 21, 31, 0.65); }
.horse-result-row__pos--placed .horse-result-row__btn { color: rgba(26, 125, 74, 0.75); }
.horse-result-row__pos--dnf .horse-result-row__btn { color: rgba(192, 57, 43, 0.70); }
.horse-result-row__pos--win {
  background: linear-gradient(135deg, #f5d76e, #c8a951);
  border-color: var(--hp-gold-bright);
  color: #11151F;
}
.horse-result-row__pos--placed {
  background: rgba(26, 125, 74, 0.14);
  border-color: rgba(26, 125, 74, 0.45);
  color: var(--hp-emerald);
}
.horse-result-row__pos--dnf {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.30);
  color: var(--hp-red);
}
.horse-result-row__going { font-size: 12.5px; color: var(--hp-ink-70); }
.horse-result-row__jockey {
  font-size: 12.5px; color: var(--hp-ink-70);
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
/* Phase 3 — Official Rating chip alongside the jockey. */
.horse-result-row__or {
  display: inline-flex; align-items: center;
  padding: 1px 6px;
  background: var(--hp-card-warm);
  border: 1px solid var(--hp-rule-strong);
  border-radius: 4px;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--hp-ink-70);
  cursor: help;
  font-variant-numeric: tabular-nums;
}
.horse-result-row__odds {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800; color: var(--hp-gold-ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── 5. SIDE ROW: connections + cubs backing ─────────────────── */
.horse-side-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) {
  .horse-side-row { grid-template-columns: 1fr; }
}

.horse-connections,
.horse-backing {
  background: var(--hp-card);
  border: 1px solid var(--hp-rule);
  border-radius: 12px;
  padding: 22px 24px;
}
.horse-connections__title,
.horse-backing__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 700;
  color: var(--hp-ink);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hp-rule);
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%;
}

.horse-connections__list { margin: 0; }
.horse-connections__row {
  display: flex; justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(231, 229, 221, 0.55);
  font-size: 13.5px;
}
.horse-connections__row:last-child { border-bottom: none; }
.horse-connections__row dt {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hp-ink-40);
  flex-shrink: 0;
}
.horse-connections__row dd {
  margin: 0;
  color: var(--hp-ink); font-weight: 600;
  text-align: right; min-width: 0;
}

/* Cubs backing */
.horse-backing__count {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 14px;
}
.horse-backing__count strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px; font-weight: 800;
  color: var(--hp-gold-ink); line-height: 1;
}
.horse-backing__count span { font-size: 13px; color: var(--hp-ink-70); }
.horse-backing__avatars {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.horse-backing__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: var(--hp-gold-ink);
  font-weight: 800;
  font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.horse-backing__names {
  font-size: 12.5px; color: var(--hp-ink-70);
  line-height: 1.6;
}
.horse-backing__empty {
  text-align: left;
  color: var(--hp-ink-40);
  font-size: 14px; font-style: italic;
}
.horse-backing__empty p { margin: 0 0 10px; }
.horse-backing__cta {
  color: var(--hp-gold-ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  font-style: normal;
  border-bottom: 1px solid rgba(156, 123, 18, 0.35);
}
.horse-backing__cta:hover { border-bottom-color: var(--hp-gold-ink); }

/* ── 6. NOTABLE WINS ──────────────────────────────────────────── */
.horse-notable {
  background: var(--hp-card);
  border: 1px solid var(--hp-rule);
  border-radius: 12px;
  padding: 22px 24px;
}
.horse-notable__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 700;
  color: var(--hp-ink);
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.horse-notable__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.horse-notable__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--hp-gold-bright);
  border-radius: 0 6px 6px 0;
  font-size: 14px; color: var(--hp-ink);
}
.horse-notable__star { color: var(--hp-gold-bright); font-size: 14px; flex-shrink: 0; }

/* ── 7. EDITORIAL PULL-QUOTE ──────────────────────────────────── */
.horse-editorial {
  position: relative;
  background: var(--hp-card);
  border: 1px solid var(--hp-rule);
  border-left: 4px solid var(--hp-gold-bright);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
}
.horse-editorial__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--hp-gold-ink);
  margin-bottom: 10px;
}
.horse-editorial__quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  font-weight: 500;
  color: var(--hp-ink);
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.005em;
}
.horse-editorial__quote::before { content: '"'; color: var(--hp-gold-bright); margin-right: 2px; }
.horse-editorial__quote::after  { content: '"'; color: var(--hp-gold-bright); margin-left: 2px; }
.horse-editorial__bio {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--hp-ink-70);
}
.horse-editorial__source {
  display: block; margin-top: 10px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hp-ink-40);
}
.horse-editorial--auto { border-left-color: var(--hp-rule-strong); }
.horse-editorial--auto .horse-editorial__eyebrow { color: var(--hp-ink-40); }

/* ── Chat wrap — sits on dark below the paper zone ────────────── */
.horse-chat-wrap { padding-top: 36px; padding-bottom: 0; }

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .horse-paper { padding: 24px 14px 36px; }
  .horse-strip { padding: 10px 12px; gap: 12px; }
  .horse-strip__metrics { gap: 14px; }
  .horse-today { padding: 18px 16px; }
  .horse-today__body { gap: 14px; }
  .horse-today__action { width: 100%; justify-content: space-between; }
  .horse-form-band,
  .horse-history-band,
  .horse-connections,
  .horse-backing,
  .horse-notable,
  .horse-editorial { padding: 18px 16px; }

  .horse-pip { min-width: 42px; height: 42px; font-size: 16px; }

  /* Race history — stack into card-style rows on mobile. */
  .horse-results__head { display: none; }
  .horse-result-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date pos"
      "race pos"
      "meta odds";
    gap: 4px 12px;
    padding: 12px 8px;
  }
  .horse-result-row__date { grid-area: date; }
  .horse-result-row__race { grid-area: race; font-size: 14px; }
  .horse-result-row__pos  { grid-area: pos; align-self: center; }
  .horse-result-row__going,
  .horse-result-row__jockey { grid-area: meta; font-size: 12px; }
  .horse-result-row__jockey::before { content: '· '; color: var(--hp-rule-strong); }
  .horse-result-row__odds { grid-area: odds; text-align: right; }
}
