/* Ante-Post — landing + book placeholder.
 *
 * Every book carries its own accent colour (AnteBook.accent_hex).
 * The template sets `style="--ap-accent: #hex"` on the outer card
 * and this stylesheet pulls it through every accent-sensitive
 * property via `var(--ap-accent, #8b5a2b)` — copper fallback keeps
 * everything sane if a book is misconfigured.
 */

/* ── Landing — cream paper page ─────────────────────────────
 *
 * Same editorial wrapper as the book hub (see .ap-book below).
 * Dark chrome outside; cream card inside. All body text renders
 * on cream, all chromatic decisions live in the site's copper /
 * gold / paper palette. Per-race accent (AnteBook.accent_hex)
 * lights up ONLY the book-card top border and the countdown
 * chip — every other card element stays brand-consistent.
 */

.ap-landing {
  max-width: 1200px;
  margin: 24px auto;
  padding: 44px 44px 56px;
  background: #fbf8f0;
  border: 1px solid #e3ddd0;
  border-radius: 4px;
  box-shadow: 0 8px 32px -20px rgba(0, 0, 0, 0.35);
}

.ap-landing__hero {
  padding: 0 0 32px;
  border-bottom: 1px solid #e3ddd0;
  margin-bottom: 36px;
  position: relative;
}

.ap-landing__eyebrow {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8b5a2b;
  margin: 0 0 14px;
}

.ap-landing__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #17171a;
  margin: 0 0 16px;
  padding-bottom: 18px;
  position: relative;
}

.ap-landing__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #8b5a2b;
  border-radius: 2px;
}

.ap-landing__lede {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  color: #3a3a42;
  margin: 0;
  max-width: 60ch;
}

.ap-landing__empty {
  padding: 60px 20px;
  text-align: center;
  color: #6a6a70;
  font-family: Georgia, serif;
  font-style: italic;
}

/* ── Landing grid ──────────────────────────────────────────── */

.ap-landing__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* ── Book card — editorial voice, not chunky tile ─────────── */

.ap-book-card {
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 4px;
  border-top: 3px solid var(--ap-accent, #8b5a2b);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
}

.ap-book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(26, 22, 18, 0.28);
}

.ap-book-card__link {
  display: block;
  padding: 20px 22px 22px;
  color: inherit;
  text-decoration: none;
}

/* Head row — eyebrow + countdown chip, on same line */
.ap-book-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ap-book-card__eyebrow {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ap-accent, #8b5a2b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-book-card__countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 10px;
  background: var(--ap-accent, #8b5a2b);
  color: #fff;
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ap-book-card__cd-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.ap-book-card__cd-unit {
  font-size: 9px;
  opacity: 0.85;
  letter-spacing: 0.12em;
}

.ap-book-card__countdown--today {
  background: #d4af37;
  color: #17171a;
}

.ap-book-card__countdown--past {
  background: #ececec;
  color: #6a6a70;
}

/* Title + meta */
.ap-book-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: #17171a;
  margin: 0 0 6px;
}

.ap-book-card__meta {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #6a6a70;
  margin: 0 0 14px;
}

.ap-book-card__tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: #3a3a42;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 2px solid var(--ap-accent, #8b5a2b);
}

.ap-book-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0 14px;
  border-top: 1px dashed #ece5d4;
  border-bottom: 1px dashed #ece5d4;
  margin: 4px 0 14px;
}

.ap-book-card__stat {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  color: #6a6a70;
  letter-spacing: 0.03em;
}

.ap-book-card__stat strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  color: #17171a;
  font-weight: 800;
  margin-right: 3px;
}

.ap-book-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ap-accent, #8b5a2b);
  transition: gap 0.15s;
}

.ap-book-card:hover .ap-book-card__cta {
  gap: 10px;
}

/* ── Book hub — the deep page ───────────────────────────────
 *
 * Whole hub sits on a cream "paper" card matching the site's
 * newspaper vocabulary (same pattern as /verify/, /fox-ledger/,
 * /news/top-rated/honest-record/). The per-book accent colour
 * (Aintree emerald, Cheltenham purple, etc.) is a small
 * chromatic HIGHLIGHT — bar, chip, next-milestone ring —
 * never the whole hero background. Saturday brand always leads.
 */

.ap-book {
  max-width: 1080px;
  margin: 24px auto;
  padding: 44px 44px 56px;
  background: #fbf8f0;
  border: 1px solid #e3ddd0;
  border-radius: 4px;
  box-shadow: 0 8px 32px -20px rgba(0, 0, 0, 0.35);
}

/* Hero — single column by default; two-column when
 * hero_illustration is populated (see --illustrated modifier). */
.ap-book__hero {
  padding: 0 0 28px;
  position: relative;
}

.ap-book__hero--illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}

.ap-book__hero-main {
  min-width: 0;  /* allow prose to wrap in grid child */
}

.ap-book__hero-illo {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
}

.ap-book__hero-illo img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Preserve editorial feel — no drop shadow, no border. Illustrations
   * are transparent WebPs designed to sit on the cream paper. */
}

@media (max-width: 720px) {
  .ap-book__hero--illustrated {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ap-book__hero-illo img {
    max-height: 240px;
    width: auto;
    margin: 0 auto;
  }
}

.ap-book__eyebrow {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ap-accent, #8b5a2b);
  margin: 0 0 14px;
}

.ap-book__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: #17171a;
  margin: 0 0 16px;
  /* Small accent bar under the title — the ONE place per-race
   * colour is bold. 64px wide, 3px tall, book's accent hex. */
  padding-bottom: 20px;
  position: relative;
}

.ap-book__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--ap-accent, #8b5a2b);
  border-radius: 2px;
}

.ap-book__deck {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: #2a2a32;
  margin: 0 0 20px;
  max-width: 55ch;
  font-weight: 500;
}

.ap-book__prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  color: #3a3a42;
  margin: 0 0 12px;
  max-width: 58ch;
}

.ap-book__tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: #3a3a42;
  margin: 0 0 24px;
  max-width: 55ch;
}

/* Meta strip — sits below the hero. Countdown pill uses margin-left
 * auto on desktop to push right; wraps naturally on narrow screens. */
.ap-book__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 4px 0 28px;
  border-bottom: 1px solid #e3ddd0;
}

.ap-book__meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a52;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ap-book__meta-chip .ap-icon {
  width: 15px;
  height: 15px;
  color: #8b5a2b;  /* copper — the meta-icon accent */
  flex-shrink: 0;
}

.ap-book__meta-chip strong { font-weight: 800; color: #17171a; }

.ap-book__meta-chip--gold {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.55);
  color: #7a5a10;
}

.ap-book__meta-chip--gold strong { color: #7a5a10; }
.ap-book__meta-chip--gold .ap-icon { color: #7a5a10; }

/* Countdown — promoted. Bigger padding, thicker weight, uses the
 * per-race accent as fill. Auto-margin pushes it to the far right
 * on desktop; on wrap it flows normally. */
.ap-book__meta-chip--countdown {
  background: var(--ap-accent, #8b5a2b);
  color: #fff;
  border-color: var(--ap-accent, #8b5a2b);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 18px;
  font-size: 14px;
  margin-left: auto;
  box-shadow: 0 4px 14px -8px var(--ap-accent, #8b5a2b);
}

.ap-book__meta-chip--countdown strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.ap-book__meta-chip--countdown .ap-icon {
  color: rgba(255, 255, 255, 0.9);
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .ap-book__meta-chip--countdown {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    order: -1;   /* countdown floats to the top of the wrap on mobile */
  }
}

/* ── Mr Fox's Notebook — signed column card ─────────────────
 *
 * Sits under the meta strip. Three-column grid on desktop:
 * portrait / intro / bullets. Stacks on narrow screens.
 * The per-race accent tints the kicker only; everything else
 * stays site-copper so the card feels like a Saturday recurring
 * fixture, not a race-day one-off.
 */
.ap-notebook {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(220px, auto);
  gap: 28px;
  align-items: center;
  padding: 26px 30px;
  margin: 0 0 40px;
  background: linear-gradient(180deg, #f5efdf 0%, #f9f3e3 100%);
  border: 1px solid #e3ddd0;
  border-radius: 6px;
  position: relative;
}

.ap-notebook::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--ap-accent, #8b5a2b);
  border-radius: 6px 0 0 6px;
}

.ap-notebook__portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.ap-notebook__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;   /* frame Mr Fox's face, not the tablet */
  display: block;
}

.ap-notebook__body {
  min-width: 0;
}

.ap-notebook__kicker {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ap-accent, #8b5a2b);
  margin: 0 0 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
}

.ap-notebook__intro {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2a2a32;
  margin: 0;
}

.ap-notebook__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ap-notebook__bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #3a3a42;
}

.ap-notebook__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 50%;
  color: #8b5a2b;
}

.ap-notebook__icon .ap-icon {
  width: 14px;
  height: 14px;
}

.ap-notebook__bullet-text {
  min-width: 0;
}

@media (max-width: 860px) {
  .ap-notebook {
    grid-template-columns: 100px 1fr;
    gap: 20px;
    padding: 22px;
  }
  .ap-notebook__portrait {
    width: 100px;
    height: 100px;
  }
  .ap-notebook__bullets {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 20px;
    padding-top: 4px;
    border-top: 1px solid #e3ddd0;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .ap-notebook {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 20px;
  }
  .ap-notebook__portrait {
    margin: 0 auto;
  }
}

/* Story — sits directly on the cream paper (no additional card),
 * long-form editorial prose. */
.ap-book__story {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
  color: #17171a;
  margin-bottom: 44px;
  max-width: 66ch;
}

.ap-book__story p { margin: 0 0 20px; }
.ap-book__story p:last-child { margin-bottom: 0; }

/* Soon panel */
.ap-book__soon {
  padding: 32px 28px;
  background: #fbf8f0;
  border: 1px dashed #d8d3c8;
  border-radius: 8px;
  text-align: center;
}

.ap-book__soon-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: #17171a;
  margin: 0 0 10px;
}

.ap-book__soon-body {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  color: #6a6a70;
  margin: 0 0 18px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.ap-book__soon-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ap-accent, #8b5a2b);
  color: #fff;
  border-radius: 4px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.1s;
}

.ap-book__soon-cta:hover { transform: translateY(-1px); }

/* ── Hub sections (PR3) ────────────────────────────────────── */

.ap-section {
  margin: 44px 0;
}

.ap-section__head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3ddd0;
}

/* Section kicker uses SITE copper (not per-race accent) so section
 * hierarchy reads as brand-consistent across all books; per-race
 * accent is reserved for chromatic highlights (bar under hero
 * title, countdown chip, "next" timeline card ring, fox star). */
.ap-section__kicker {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8b5a2b;
  margin: 0 0 6px;
}

.ap-section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: #17171a;
  margin: 0;
  letter-spacing: -0.005em;
}

.ap-section__mark {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.44);
  color: #8b5a2b;
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── Story ─────────────────────────────────────────────────── */

.ap-story {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
  color: #3a3a42;
  max-width: 66ch;
}

.ap-story p { margin: 0 0 20px; }
.ap-story p:last-child { margin-bottom: 0; }

/* ── Timeline ──────────────────────────────────────────────── */

.ap-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.ap-timeline__item {
  scroll-snap-align: start;
  padding: 16px 16px 18px;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 6px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-width: 200px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ap-timeline__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ap-accent, #8b5a2b);
  opacity: 0.3;
  border-radius: 6px 6px 0 0;
}

.ap-timeline__item--past {
  background: #fbf8f0;
  opacity: 0.68;
}

.ap-timeline__item--past::before {
  opacity: 0.12;
}

.ap-timeline__item--next {
  border-color: var(--ap-accent, #8b5a2b);
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.ap-timeline__item--next::before {
  opacity: 1;
  height: 4px;
}

.ap-timeline__item--today {
  background: #fdf7e2;
  border-color: #d4af37;
}

.ap-timeline__item--today::before {
  background: #d4af37;
  opacity: 1;
  height: 4px;
}

.ap-timeline__date-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}

.ap-timeline__date-day {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #17171a;
  letter-spacing: -0.02em;
}

.ap-timeline__date-mon {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-accent, #8b5a2b);
  margin-top: 2px;
}

.ap-timeline__date-dow {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6a70;
  margin-top: 4px;
}

.ap-timeline__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #17171a;
  margin: 0 0 6px;
  line-height: 1.25;
}

.ap-timeline__note {
  font-family: Georgia, serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6a6a70;
  margin: 0 0 8px;
}

.ap-timeline__kind {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(11, 30, 57, 0.06);
  color: #6a6a70;
  border-radius: 3px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ap-timeline__item--next .ap-timeline__kind {
  background: var(--ap-accent, #8b5a2b);
  color: #fff;
}

/* ── Field table ───────────────────────────────────────────── */

.ap-field {
  overflow-x: auto;
  border: 1px solid #e3ddd0;
  border-radius: 6px;
}

.ap-field__table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  background: #fff;
}

.ap-field__table thead {
  background: #fbf8f0;
  border-bottom: 2px solid #e3ddd0;
}

.ap-field__table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a6a70;
}

.ap-field__th-num,
.ap-field__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ap-field__th-status,
.ap-field__status-cell {
  text-align: right;
}

.ap-field__row {
  border-top: 1px solid #f0ebe0;
  transition: background 0.12s;
}

.ap-field__row:hover {
  background: #fdfaf3;
}

.ap-field__row td {
  padding: 12px;
  vertical-align: middle;
}

.ap-field__row--fox {
  background: rgba(212, 175, 55, 0.05);
}

.ap-field__row--fox:hover {
  background: rgba(212, 175, 55, 0.10);
}

.ap-field__row--withdrawn td,
.ap-field__row--scratched td {
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: rgba(160, 48, 64, 0.4);
}

/* Horse cell */
.ap-field__horse {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-field__horse-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #17171a;
}

.ap-field__fox-star {
  color: #d4af37;
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(212, 175, 55, 0.3));
}

.ap-field__note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #ececec;
  color: #6a6a70;
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  cursor: help;
}

/* Connections cell — trainer stacked over jockey */
.ap-field__people {
  min-width: 130px;
}

.ap-field__trainer {
  display: block;
  color: #17171a;
  font-weight: 600;
}

.ap-field__jockey {
  display: block;
  color: #6a6a70;
  font-size: 12px;
  margin-top: 2px;
}

.ap-field__dash {
  color: #a3a3ac;
}

/* Prices */
.ap-field__price-open {
  color: #6a6a70;
  font-size: 12px;
}

.ap-field__price-now {
  font-weight: 700;
  font-size: 14px;
  color: #17171a;
}

/* Status chip */
.ap-field__status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #f3f3f0;
  color: #6a6a70;
  white-space: nowrap;
}

.ap-field__status--declared {
  background: rgba(11, 125, 74, 0.14);
  color: #0e7c4a;
}

.ap-field__status--entered {
  background: rgba(60, 70, 90, 0.10);
  color: #4a5566;
}

.ap-field__status--late_decision {
  background: rgba(212, 175, 55, 0.16);
  color: #8b5a2b;
}

.ap-field__status--withdrawn,
.ap-field__status--scratched,
.ap-field__status--non_runner {
  background: rgba(160, 48, 64, 0.10);
  color: #a03040;
}

/* Empty state */
.ap-field__empty {
  padding: 40px 20px;
  text-align: center;
  color: #6a6a70;
  font-family: Georgia, serif;
  background: #fdfaf3;
  border: 1px dashed #d8d3c8;
  border-radius: 6px;
}

.ap-field__empty p { margin: 0 0 8px; font-size: 15px; }
.ap-field__empty p:last-child { margin-bottom: 0; font-style: italic; font-size: 13px; }

/* Coming-soon strip */
.ap-book__coming-soon {
  margin: 50px 0 20px;
  padding: 16px 20px;
  background: #fbf8f0;
  border: 1px dashed #d8d3c8;
  border-radius: 4px;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 12.5px;
  color: #6a6a70;
  letter-spacing: 0.02em;
}

.ap-book__coming-soon strong { color: var(--ap-accent, #8b5a2b); font-weight: 800; }

/* ── Fox's Shortlist (PR4) ──────────────────────────────────
 *
 * Bigger, richer cards than the Field table row — this is a
 * curated pull-out, meant to feel like an editorial recommendation
 * not a data cell. Gold ★ mark + copper rank + narrative para.
 */
.ap-fox {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.ap-fox__card {
  position: relative;
  padding: 22px 24px 20px 56px;
  background: linear-gradient(135deg,
    rgba(212, 175, 55, 0.10),
    rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 8px;
  box-shadow: 0 6px 20px -14px rgba(212, 175, 55, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ap-fox__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(212, 175, 55, 0.55);
}

.ap-fox__mark {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 22px;
  color: #d4af37;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(212, 175, 55, 0.5));
}

.ap-fox__rank {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #a3a3ac;
  font-variant-numeric: tabular-nums;
}

.ap-fox__body {
  min-width: 0;
}

.ap-fox__horse {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #17171a;
  margin: 0 0 6px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.ap-fox__connections {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  color: #6a6a70;
  margin: 0 0 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ap-fox__connections strong {
  color: #8b5a2b;
  font-weight: 800;
  margin-right: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.ap-fox__note {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  color: #3a3a42;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(212, 175, 55, 0.4);
}

.ap-fox__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed #ece5d4;
}

.ap-fox__price {
  padding: 5px 12px;
  background: #17171a;
  color: #d4af37;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.ap-fox__stat {
  padding: 3px 8px;
  background: rgba(11, 30, 57, 0.06);
  color: #17171a;
  border-radius: 3px;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ap-fox__status {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #f3f3f0;
  color: #6a6a70;
}

.ap-fox__status--declared     { background: rgba(11, 125, 74, 0.14); color: #0e7c4a; }
.ap-fox__status--late_decision { background: rgba(212, 175, 55, 0.16); color: #8b5a2b; }
.ap-fox__status--withdrawn,
.ap-fox__status--scratched     { background: rgba(160, 48, 64, 0.10); color: #a03040; }

/* ── Market Movers (PR4) ─────────────────────────────────── */

.ap-movers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ap-movers__col {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 6px;
}

.ap-movers__col--steamers { border-top: 3px solid #0e7c4a; }
.ap-movers__col--drifters { border-top: 3px solid #a03040; }

.ap-movers__col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #17171a;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0ebe0;
}

.ap-movers__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.ap-movers__arrow--in  { background: rgba(11, 125, 74, 0.14); color: #0e7c4a; }
.ap-movers__arrow--out { background: rgba(160, 48, 64, 0.14); color: #a03040; }

.ap-movers__col-count {
  margin-left: auto;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  color: #a3a3ac;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ap-movers__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ap-movers__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed #f0ebe0;
}

.ap-movers__row:first-child { border-top: none; }

.ap-movers__horse {
  flex: 1;
  min-width: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #17171a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-movers__fox {
  color: #d4af37;
  font-size: 13px;
  margin-left: 6px;
}

.ap-movers__prices {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ap-movers__from {
  color: #a3a3ac;
  text-decoration: line-through;
  text-decoration-color: rgba(163, 163, 172, 0.55);
}

.ap-movers__arrow-inline {
  color: #a3a3ac;
  font-size: 11px;
}

.ap-movers__row--steamer .ap-movers__to {
  color: #0e7c4a;
  font-weight: 800;
}

.ap-movers__row--drifter .ap-movers__to {
  color: #a03040;
  font-weight: 800;
}

.ap-movers__empty {
  font-family: Georgia, serif;
  font-style: italic;
  color: #a3a3ac;
  font-size: 13px;
  margin: 4px 0 0;
}

/* ── Trials Watch (PR4) ──────────────────────────────────── */

.ap-trials__group + .ap-trials__group {
  margin-top: 28px;
}

.ap-trials__group-title {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #8b5a2b;
  margin: 0 0 12px;
}

.ap-trials__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ap-trials__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 6px;
  position: relative;
}

.ap-trials__item--past {
  background: #fbf8f0;
  border-color: #ece5d4;
}

.ap-trials__item--upcoming {
  border-left: 3px solid var(--ap-accent, #8b5a2b);
}

.ap-trials__date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: rgba(11, 30, 57, 0.04);
  border-radius: 4px;
  line-height: 1;
}

.ap-trials__date-day {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #17171a;
  letter-spacing: -0.02em;
}

.ap-trials__date-mon {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-accent, #8b5a2b);
  margin-top: 4px;
}

.ap-trials__body { min-width: 0; }

.ap-trials__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #17171a;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ap-trials__venue {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #6a6a70;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ap-trials__note {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: #6a6a70;
  margin: 6px 0 8px;
}

.ap-trials__ours {
  font-family: system-ui, sans-serif;
  font-size: 12.5px;
  color: #17171a;
  margin: 6px 0 0;
}

.ap-trials__ours strong {
  color: var(--ap-accent, #8b5a2b);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 6px;
}

.ap-trials__cd {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 3px 10px;
  background: var(--ap-accent, #8b5a2b);
  color: #fff;
  border-radius: 999px;
  font-family: system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ap-trials__cd--today {
  background: #d4af37;
  color: #17171a;
}

.ap-trials__winner {
  font-family: system-ui, sans-serif;
  font-size: 13.5px;
  color: #17171a;
  margin: 6px 0 10px;
}

.ap-trials__winner strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14.5px;
  font-weight: 700;
}

.ap-trials__won-flag {
  margin-right: 6px;
  font-size: 15px;
}

.ap-trials__our-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ap-trials__our-runner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(11, 30, 57, 0.06);
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
}

.ap-trials__our-runner--won {
  background: rgba(212, 175, 55, 0.22);
  color: #8b5a2b;
  font-weight: 700;
}

.ap-trials__our-runner--placed {
  background: rgba(140, 150, 165, 0.20);
  color: #4a5566;
}

.ap-trials__our-horse {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.ap-trials__our-pos {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Mobile — PR4 sections */
@media (max-width: 720px) {
  .ap-fox              { grid-template-columns: 1fr; gap: 14px; }
  .ap-fox__card        { padding: 18px 20px 16px 48px; }
  .ap-fox__horse       { font-size: 19px; }
  .ap-movers           { grid-template-columns: 1fr; gap: 14px; }
  .ap-trials__item     { grid-template-columns: 58px 1fr; padding: 14px 14px; }
  .ap-trials__date-day { font-size: 24px; }
  .ap-trials__cd       { position: static; margin-top: 8px; display: inline-block; }
}

/* ── Trainer Standings (PR5) ────────────────────────────── */

.ap-standings {
  overflow-x: auto;
  border: 1px solid #e3ddd0;
  border-radius: 6px;
  background: #fff;
}

.ap-standings__table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
}

.ap-standings__table thead {
  background: #fbf8f0;
  border-bottom: 2px solid #e3ddd0;
}

.ap-standings__table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a6a70;
}

.ap-standings__th-num,
.ap-standings__num { text-align: right; font-variant-numeric: tabular-nums; }
.ap-standings__th-rank { text-align: center; }

.ap-standings__row {
  border-top: 1px solid #f0ebe0;
  transition: background 0.12s;
}

.ap-standings__row:hover { background: #fdfaf3; }
.ap-standings__row--has-form { background: rgba(212, 175, 55, 0.05); }
.ap-standings__row--fox { border-left: 3px solid #d4af37; }

.ap-standings__row td { padding: 12px; vertical-align: middle; }

.ap-standings__rank {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ap-accent, #8b5a2b);
  font-variant-numeric: tabular-nums;
  width: 50px;
}

.ap-standings__trainer {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #17171a;
}

.ap-standings__num--main {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: #17171a;
}

.ap-standings__fox {
  color: #8b5a2b;
  font-weight: 700;
}

.ap-standings__row--has-form .ap-standings__num strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  color: #d4af37;
}

/* ── History Wall (PR5) ─────────────────────────────────── */

.ap-history {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ap-history__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 6px;
  transition: transform 0.12s, box-shadow 0.12s;
}

.ap-history__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.18);
}

.ap-history__item--iconic {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent);
  border-color: rgba(212, 175, 55, 0.42);
  border-left: 3px solid #d4af37;
}

.ap-history__year {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ap-accent, #8b5a2b);
  letter-spacing: -0.02em;
  line-height: 1;
  align-self: center;
  font-variant-numeric: tabular-nums;
  position: relative;
}

.ap-history__item--iconic .ap-history__year {
  color: #8b5a2b;
}

.ap-history__star {
  display: inline-block;
  margin-left: 2px;
  color: #d4af37;
  font-size: 18px;
  vertical-align: super;
  line-height: 1;
}

.ap-history__body { min-width: 0; }

.ap-history__horse {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #17171a;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.ap-history__connections {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px;
  color: #6a6a70;
  margin: 0 0 6px;
}

.ap-history__connections strong {
  color: #8b5a2b;
  font-weight: 800;
  margin-right: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.ap-history__sp {
  padding: 2px 8px;
  background: #17171a;
  color: #d4af37;
  border-radius: 3px;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ap-history__note {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.5;
  color: #6a6a70;
  margin: 6px 0 0;
  padding-left: 12px;
  border-left: 2px solid rgba(11, 30, 57, 0.10);
}

.ap-history__item--iconic .ap-history__note {
  border-left-color: rgba(212, 175, 55, 0.5);
  color: #4a4a52;
}

/* Mobile — PR5 sections */
@media (max-width: 720px) {
  .ap-history__item     { grid-template-columns: 70px 1fr; padding: 14px 16px; gap: 14px; }
  .ap-history__year     { font-size: 28px; }
  .ap-history__horse    { font-size: 19px; }
  .ap-standings__table  { font-size: 12px; }
  .ap-standings__table th,
  .ap-standings__row td { padding: 10px 8px; }
}

/* ── Mobile — hub ──────────────────────────────────────────── */

@media (max-width: 720px) {
  .ap-section { margin: 32px 0; }
  .ap-story   { font-size: 16px; }

  /* Timeline: horizontal scroll retained; slight card shrink */
  .ap-timeline { grid-auto-columns: minmax(170px, 1fr); gap: 10px; }
  .ap-timeline__item { padding: 12px 14px 14px; min-width: 170px; }
  .ap-timeline__date-day { font-size: 26px; }

  /* Field table becomes a card list */
  .ap-field { border: none; overflow: visible; border-radius: 0; }
  .ap-field__table,
  .ap-field__table thead,
  .ap-field__table tbody,
  .ap-field__table tr,
  .ap-field__table td { display: block; }
  .ap-field__table thead { display: none; }
  .ap-field__row {
    border: 1px solid #e3ddd0;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    background: #fff;
  }
  .ap-field__row td { padding: 0; border: none; }
  .ap-field__horse { grid-column: 1 / -1; margin-bottom: 6px; }
  .ap-field__people { grid-column: 1 / -1; }
  .ap-field__people::before {
    content: "";
    display: block;
    height: 1px;
    background: #f0ebe0;
    margin: 4px 0 8px;
  }
  .ap-field__num:not(.ap-field__price-now)::before {
    content: attr(data-label) " ";
    color: #6a6a70;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 10px;
    text-transform: uppercase;
  }
  .ap-field__num { text-align: left; }
  .ap-field__status-cell { text-align: left; }
}

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

@media (max-width: 640px) {
  .ap-landing {
    margin: 12px 8px;
    padding: 28px 22px 40px;
    border-radius: 3px;
  }
  .ap-landing__hero      { padding-bottom: 24px; margin-bottom: 24px; }
  .ap-landing__title     { padding-bottom: 14px; }
  .ap-landing__grid      { grid-template-columns: 1fr; gap: 14px; }
  .ap-landing__lede      { font-size: 16px; }

  .ap-book {
    margin: 12px 8px;
    padding: 28px 22px 40px;
    border-radius: 3px;
  }
  .ap-book__hero         { padding: 0 0 22px; margin-bottom: 24px; }
  .ap-book__title        { padding-bottom: 16px; }
  .ap-book__tagline      { font-size: 17px; }

  .ap-book-card__link    { padding: 18px 20px 20px; }
  .ap-book-card__title   { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
 *  PR-M3 — Viewport 2 modernize
 *  Market snapshot · Story+Course split · Horizontal timeline
 *  Follow-the-story CTA
 * ═══════════════════════════════════════════════════════════════ */

/* Market snapshot — 3-cell teaser strip. Cells collapse when
 * their data source is missing (fox_pick / biggest_steamer /
 * biggest_drifter each independently optional). Auto-fit grid
 * accommodates 1, 2, or 3 cells cleanly. */
.ap-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 44px;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid #e3ddd0;
  border-radius: 6px;
  position: relative;
}

.ap-snapshot::before {
  content: "FOX MARKET VIEW";
  position: absolute;
  top: -8px;
  left: 20px;
  padding: 0 10px;
  background: #fbf8f0;
  color: var(--ap-accent, #8b5a2b);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.ap-snapshot__cell {
  padding: 6px 14px 8px;
  border-left: 1px solid #ede7d7;
  min-width: 0;
}

.ap-snapshot__cell:first-child { border-left: 0; padding-left: 0; }

.ap-snapshot__mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-accent, #8b5a2b);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ap-snapshot__mark .ap-icon { width: 18px; height: 18px; }
.ap-snapshot__mark--in  { color: #0e7c4a; }
.ap-snapshot__mark--out { color: #a63a2c; }

.ap-snapshot__kicker {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a6a70;
  margin: 0 0 4px;
}

.ap-snapshot__horse {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #17171a;
  margin: 0 0 6px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-snapshot__meta {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  color: #6a6a70;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ap-snapshot__price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #17171a;
  letter-spacing: -0.005em;
}

.ap-snapshot__trainer { font-style: italic; }

.ap-snapshot__prices {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Playfair Display", Georgia, serif;
}

.ap-snapshot__from {
  color: #6a6a70;
  font-size: 14px;
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

.ap-snapshot__arrow { color: #6a6a70; font-size: 12px; }

.ap-snapshot__to {
  color: #17171a;
  font-size: 15px;
  font-weight: 700;
}

.ap-snapshot__cell--steamer .ap-snapshot__to { color: #0e7c4a; }
.ap-snapshot__cell--drifter .ap-snapshot__to { color: #a63a2c; }

@media (max-width: 720px) {
  .ap-snapshot { padding: 22px 18px 14px; }
  .ap-snapshot__cell {
    border-left: 0;
    border-top: 1px solid #ede7d7;
    padding: 12px 0 4px;
  }
  .ap-snapshot__cell:first-child { border-top: 0; padding-top: 0; }
}

/* Story + Course split — two-column on desktop when
 * course_title is set. Falls back to single-column when the
 * sidebar has no data. */
.ap-story-course { margin: 0 0 44px; }

.ap-story-course--split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.ap-story-course__main { margin-bottom: 0 !important; }

.ap-story-course__side {
  background: #fbf8f0;
  border: 1px solid #ede7d7;
  border-radius: 6px;
  padding: 22px 24px 24px;
  position: relative;
}

.ap-course__kicker {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ap-accent, #8b5a2b);
  margin: 0 0 8px;
}

.ap-course__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: #17171a;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.ap-course__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ap-course__bullet {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.5;
  color: #3a3a42;
}

.ap-course__bullet-mark {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ap-accent, #8b5a2b);
  transform: translateY(-2px);
}

.ap-course__map {
  margin-top: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ede7d7;
}

.ap-course__map img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 860px) {
  .ap-story-course--split { grid-template-columns: 1fr; gap: 24px; }
}

/* Horizontal timeline — overrides base .ap-timeline (card grid).
 * Circular icon nodes on a dashed connector, captions stacked
 * beneath. Scrolls horizontally on mobile. */
.ap-timeline--horizontal {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 20px 0 10px;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
}

/* Connector line at the vertical centre of the icon nodes. */
.ap-timeline--horizontal::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 6%;
  right: 6%;
  height: 0;
  border-top: 1px dashed #d8d3c8;
  z-index: 0;
}

.ap-timeline--horizontal .ap-timeline__item {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 130px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  box-shadow: none;
  transform: none;
}

.ap-timeline--horizontal .ap-timeline__item::before { content: none; }

.ap-timeline__node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fbf8f0;
  border: 2px solid #e3ddd0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ap-accent, #8b5a2b);
  flex-shrink: 0;
}

.ap-timeline__node .ap-icon { width: 24px; height: 24px; }

.ap-timeline__index {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ap-accent, #8b5a2b);
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ap-timeline--horizontal .ap-timeline__item--past .ap-timeline__node {
  background: #ede7d7;
  border-color: #d8d3c8;
  color: #8a8a90;
}

.ap-timeline--horizontal .ap-timeline__item--past .ap-timeline__index {
  background: #b5b0a5;
}

.ap-timeline--horizontal .ap-timeline__item--next .ap-timeline__node {
  background: #fff;
  border-color: var(--ap-accent, #8b5a2b);
  box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.14);
}

.ap-timeline--horizontal .ap-timeline__item--today .ap-timeline__node {
  background: #fdf7e2;
  border-color: #d4af37;
}

.ap-timeline--horizontal .ap-timeline__body { padding: 0 6px; }

.ap-timeline--horizontal .ap-timeline__eyebrow {
  margin: 0 0 4px;
  line-height: 1;
}

.ap-timeline--horizontal .ap-timeline__kind {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #6a6a70;
  background: transparent;
  padding: 0;
}

.ap-timeline--horizontal .ap-timeline__title {
  font-size: 14px;
  margin: 0 0 4px;
  line-height: 1.25;
}

.ap-timeline--horizontal .ap-timeline__date {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  color: #6a6a70;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.ap-timeline--horizontal .ap-timeline__note {
  font-size: 12px;
  color: #6a6a70;
  line-height: 1.45;
  margin: 0;
}

.ap-timeline--horizontal .ap-timeline__item--past .ap-timeline__title,
.ap-timeline--horizontal .ap-timeline__item--past .ap-timeline__date {
  color: #8a8a90;
}

@media (max-width: 760px) {
  .ap-timeline--horizontal::before { display: none; }
  .ap-timeline--horizontal .ap-timeline__item {
    min-width: 200px;
    padding: 14px 12px 16px;
    background: #fff;
    border: 1px solid #e3ddd0;
    border-radius: 6px;
  }
  .ap-timeline--horizontal .ap-timeline__node {
    width: 44px;
    height: 44px;
  }
  .ap-timeline--horizontal .ap-timeline__node .ap-icon {
    width: 20px;
    height: 20px;
  }
}

/* Follow-the-story CTA — viewport 2 closer. Portrait chip left,
 * copy centre, jump anchor right; wraps on mobile. */
.ap-follow {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin: 0 0 44px;
  background: #f5efdf;
  border: 1px solid #e3ddd0;
  border-radius: 6px;
}

.ap-follow__portrait {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px -6px rgba(0, 0, 0, 0.4);
}

.ap-follow__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.ap-follow__copy {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
  color: #3a3a42;
}

.ap-follow__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ap-accent, #8b5a2b);
  color: #fff;
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ap-follow__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px var(--ap-accent, #8b5a2b);
}

@media (max-width: 640px) {
  .ap-follow { flex-wrap: wrap; padding: 16px; }
  .ap-follow__copy { flex-basis: 100%; order: 3; }
  .ap-follow__cta  { margin-left: auto; }
}
