/* Linda Rice Racing — public site styles
   Theme colors/fonts arrive as CSS custom properties from settings.theme (layout.php). */

:root {
  --navy: #2b2b2b;
  --blue: #0f6cbf;
  --gold: #1a81dd;
  --ivory: #f1f2f4;
  --ink: #1b1b1b;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --white: #ffffff;
  --paper: #fafafa;
  --muted: #5b6068;
  --line: rgba(28, 30, 34, .13);
  --line-strong: rgba(28, 30, 34, .24);
  --navy-2: color-mix(in srgb, var(--navy) 88%, #000);
  /* Old-site palette: charcoal bands (brushed texture from the 2013 site), logo blue accents. "brass" = accent dark enough for small text; "walnut" = charcoal; "saddle" = logo blue */
  --brass: color-mix(in srgb, var(--gold) 72%, #0b2540);
  --walnut: #2e2e2e;
  --brushed: url("../img/brushed-charcoal.jpg") center / cover;
  --saddle: #1a73c7;
  --stitch: color-mix(in srgb, var(--gold) 55%, transparent);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .2 0 0 0 0 .22 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --horseshoe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M14 58V30a18 18 0 0 1 36 0v28h-9V30a9 9 0 0 0-18 0v28z' fill='black'/%3E%3C/svg%3E");
  --shadow-sm: 0 1px 2px rgba(18, 20, 24, .07), 0 3px 10px rgba(18, 20, 24, .06);
  --shadow-md: 0 14px 34px -14px rgba(18, 20, 24, .35);
  --radius: 3px;
  --radius-lg: 6px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(2.75rem, 5vw, 4.25rem);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--paper) var(--grain); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--saddle); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.container-mid { max-width: calc(960px + 2 * var(--gutter)); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 .6rem; display: inline-flex; align-items: center; gap: .75rem;
}
/* a short saddle-stitched rule in front of every eyebrow */
.eyebrow::before { content: ""; flex-shrink: 0; width: 30px; height: 0; border-top: 1.5px dashed currentColor; opacity: .85; }
.section-head-center .eyebrow::after { content: ""; width: 30px; height: 0; border-top: 1.5px dashed currentColor; opacity: .85; }
.eyebrow-light { color: color-mix(in srgb, var(--gold) 70%, #fff); }
.section-title { font-size: clamp(1.85rem, 3.4vw, 2.6rem); margin-bottom: .3em; }
.section-intro { color: var(--muted); font-size: 1.02rem; max-width: 64ch; margin-bottom: 0; }
.section-head { margin-bottom: clamp(1.25rem, 2.2vw, 1.85rem); }
.section-head-center { text-align: center; }
.section-head-center .section-intro { margin-inline: auto; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.25rem, 2.2vw, 1.85rem); }
.section-head-row .section-head { margin-bottom: 0; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; padding-bottom: .35rem; border-bottom: 1px solid var(--gold); transition: gap .25s var(--ease), color .2s;
}
.text-link::after { content: "→"; letter-spacing: 0; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--blue); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .75rem 1.5rem;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--blue); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, #fff 94%, transparent); border-top: 3px solid var(--gold); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .5); }
.header-inner { height: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; }
.brand-tag { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { list-style: none; display: flex; gap: clamp(1rem, 1.8vw, 1.9rem); margin: 0; padding: 0; }
.main-nav ul a {
  position: relative; display: block; padding: .5rem 0; text-decoration: none; color: var(--navy);
  font-size: .76rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
}
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav ul a[aria-current="page"] { color: var(--blue); }
.nav-cta { min-height: 40px; padding: .65rem 1.2rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; content: ""; }
.nav-toggle-bars { top: 50%; }
.nav-toggle-bars::before { left: 0; right: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; right: 0; top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 2rem var(--gutter) 3rem; background: var(--paper); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 500; letter-spacing: 0; text-transform: none; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .nav-cta { min-height: 54px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  :root { --header-h: 62px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { display: none; }
}

/* ---------- Flash ---------- */
.flash { padding: 1rem 0; font-weight: 500; }
.flash-success { background: #e8f3ea; color: #1d5a2b; }
.flash-error { background: #fbeaea; color: #8a1f1f; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem) var(--section); }
.section-tint { background: var(--grain), var(--ivory); }
/* saddle-stitch: a dashed outline just inside the edge of cream panels */
.milestone-card, .fact-card, .contact-form, .highlight, .link-card, .empty-state { outline: 1px dashed var(--stitch); outline-offset: -7px; }
.fact-card-dark { outline-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.section-head-center::before { content: ""; display: block; width: 24px; height: 24px; margin: 0 auto .6rem; background: var(--gold); opacity: .7;
  -webkit-mask: var(--horseshoe) center / contain no-repeat; mask: var(--horseshoe) center / contain no-repeat; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: clamp(460px, 66vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--walnut); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 30% 30%); filter: saturate(.95); transform: scale(1.06); }
.hero-slide.is-active img { animation: hero-zoom 9s linear both; }
@media (max-width: 700px) { .hero-slide img { object-position: 68% 40%; } .hero { min-height: 72vh; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: var(--grain), linear-gradient(90deg, rgba(16, 17, 19, .84) 0%, rgba(16, 17, 19, .55) 40%, rgba(16, 17, 19, .05) 72%),
              linear-gradient(0deg, rgba(16, 17, 19, .8) 0%, rgba(16, 17, 19, 0) 48%); }
.hero-inner { padding-block: clamp(4rem, 10vh, 6rem) clamp(1.5rem, 3vh, 2.25rem); }
.hero-title { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 500; line-height: 1.02; max-width: 18ch; margin-bottom: 1rem; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-title em { color: color-mix(in srgb, var(--gold) 72%, #fff); font-weight: 400; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 48ch; color: rgba(255, 255, 255, .88); font-weight: 300; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero-sub { margin-bottom: 0; }
.hero .btn-primary, .page-hero-image .btn-primary { background: #ffffff; color: var(--walnut); }
.hero .btn-primary:hover { background: var(--gold); color: #fff; }

/* Slideshow controls: caption of the current photo, one tick per photo and a pause button */
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: .8rem 1rem; border-top: 1px dashed rgba(255, 255, 255, .25); }
.hero-caption { margin: 0; font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; color: rgba(255, 255, 255, .9); min-height: 1.6em; }
.hero-caption-label { font-family: var(--font-body); font-style: normal; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--gold) 70%, #fff); margin-right: .6rem; }
.hero-dots { display: flex; align-items: center; gap: .35rem; }
.hero-dot { width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero-dot span { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--gold) 75%, #fff); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span::after { transform: scaleX(1); }
.hero-slideshow.is-playing .hero-dot.is-active span::after { animation: dot-fill var(--slide-ms, 6500ms) linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-pause { width: 34px; height: 34px; margin-left: .5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-pause:hover { background: rgba(255, 255, 255, .15); }
.hero-pause span { width: 10px; height: 11px; border-inline: 3px solid currentColor; }
.hero-pause.is-paused span { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }
@media (max-width: 640px) { .hero-caption { font-size: .98rem; } .hero-caption-label { display: block; margin-bottom: .2rem; } }

/* ---------- Stats band ---------- */
.stats-band { background: var(--brushed), var(--navy); color: #fff; padding-block: clamp(1.75rem, 3.5vw, 2.5rem); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% -20%, color-mix(in srgb, var(--blue) 40%, transparent), transparent 55%); opacity: .45; pointer-events: none; }
.stats-band::after { content: ""; position: absolute; inset: 8px 0 auto; border-top: 1px dashed var(--stitch); pointer-events: none; }
.stats-band .container { position: relative; }
.stats-band-title { margin-bottom: 1.25rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 40%), 1fr)); gap: 1.5rem; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: .45rem; padding-left: 1.25rem; border-left: 1px dashed var(--stitch); }
.stat dd { margin: 0; font-family: var(--font-heading); font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 500; line-height: 1; color: #fff; }
.stat dt { font-size: .9rem; font-weight: 400; color: rgba(255, 255, 255, .74); line-height: 1.45; max-width: 24ch; }
.stats-note { margin: 1.25rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, .65); }

/* ---------- Split sections ---------- */
.split-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 861px) { .split-left .split-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.split-left .split-media { order: -1; }
.split-noimage .split-grid { grid-template-columns: minmax(0, 760px); }
.split-media { margin: 0; position: relative; }
/* photos sit in a cream "print" mat with a stitched outline offset behind */
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 520px; border-radius: 2px; border: 8px solid var(--white); box-shadow: var(--shadow-md); }
.split-media::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 1.5px dashed var(--stitch); border-radius: var(--radius); z-index: -1; }
.split-left .split-media::before { inset: 1rem 1rem -1rem -1rem; }
.split-media-wide img { aspect-ratio: auto; }
.split-media-wide::before { inset: 1rem -1rem -1rem 1rem; }
.split + .split { padding-top: 0; }
.split-text .prose { margin-bottom: 1.5rem; color: #3b4250; }
.split-text .btn-row { margin-top: 0; }
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-left .split-media, .split-media { order: -1; }
  .split-media img { aspect-ratio: 16 / 10; max-height: 340px; }
  .split-media::before { display: none; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ivory); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 80% 0%, color-mix(in srgb, var(--blue) 40%, transparent), transparent 60%), var(--navy); }
.card-placeholder::before, .card-placeholder::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); transform: rotate(45deg); }
.card-placeholder::after { width: 62%; opacity: .45; }
.card-placeholder img { position: relative; z-index: 1; width: 72px; height: 72px; opacity: .95; transform: none !important; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .75rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.card-title { font-size: 1.35rem; line-height: 1.18; margin-bottom: .4rem; }
.card-title a { color: var(--navy); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.card-title a:hover { background-size: 100% 1px; }
.card-text { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .text-link { margin-top: auto; align-self: flex-start; }
.tag { display: inline-block; padding: .2rem .55rem; border-radius: 99px; font-size: .64rem; letter-spacing: .14em; }
.tag-win { background: color-mix(in srgb, var(--gold) 20%, #fff); color: color-mix(in srgb, var(--gold) 55%, var(--navy)); }
.horse-card .card-media { aspect-ratio: 4 / 3; }
/* Phones: news cards become compact rows (thumbnail left, headline right) so a list of stories doesn't scroll forever */
@media (max-width: 600px) {
  .post-card { flex-direction: row; }
  .post-card .card-media { flex: 0 0 34%; aspect-ratio: auto; min-height: 100%; }
  .post-card .card-body { padding: .8rem .9rem; }
  .post-card .card-meta { font-size: .64rem; gap: .5rem; margin-bottom: .2rem; }
  .post-card .card-title { font-size: 1.12rem; margin-bottom: .25rem; }
  .post-card .card-text { -webkit-line-clamp: 2; font-size: .84rem; margin-bottom: .4rem; }
  .post-card .text-link { font-size: .68rem; padding-bottom: .2rem; }
  .post-card .card-placeholder img { width: 40px; height: 40px; }
  .card-grid { gap: .75rem; }
}

/* ---------- Gallery strip (home) ---------- */
.strip-scroller { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1.25rem; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
@media (min-width: 1240px) { .strip-scroller { padding-inline: calc((100vw - 1240px) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - 1240px) / 2 + var(--gutter)); } }
.strip-item { position: relative; flex: 0 0 clamp(240px, 26vw, 330px); aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--ivory); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.strip-item:hover img { transform: scale(1.05); }
.strip-caption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(16, 17, 19, .8)); }

/* ---------- Win photo wall (home) ---------- */
.win-wall { position: relative; color: #e9eef4; background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%), var(--brushed), var(--walnut); overflow: hidden; }
.win-wall::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 190px); } /* faint board seams */
.win-wall > * { position: relative; }
.win-wall .section-title { color: #ffffff; }
.win-wall .section-title em { color: color-mix(in srgb, var(--gold) 75%, #fff); }
.win-wall .eyebrow { color: color-mix(in srgb, var(--gold) 72%, #fff); }
.win-wall .section-intro { color: rgba(233, 238, 244, .78); }
.wall-nav { display: flex; gap: .6rem; }
.wall-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(233, 238, 244, .35); background: transparent; color: #e9eef4; font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s; }
.wall-btn:hover { background: #e9eef4; color: var(--walnut); }
.wall-track { list-style: none; margin: 0; display: flex; gap: clamp(1.25rem, 2.5vw, 2.25rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 1rem var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
@media (min-width: 1240px) { .wall-track { padding-inline: calc((100vw - 1240px) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - 1240px) / 2 + var(--gutter)); } }
.wall-print { flex: 0 0 clamp(200px, 20vw, 250px); scroll-snap-align: start; }
.wall-print:nth-child(3n + 1) a { transform: rotate(-1.2deg); }
.wall-print:nth-child(3n + 2) a { transform: rotate(.8deg) translateY(10px); }
.wall-print:nth-child(3n) a { transform: rotate(-.4deg); }
.wall-print a { display: block; position: relative; text-decoration: none; color: var(--ink); cursor: zoom-in; background: var(--white); padding: 10px 10px 0; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .7), 0 2px 4px rgba(0, 0, 0, .25); transition: transform .4s var(--ease), box-shadow .4s; }
.wall-print a::before { content: ""; position: absolute; top: -9px; left: 50%; width: 74px; height: 20px; transform: translateX(-50%) rotate(-2deg); background: rgba(214, 226, 240, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); } /* masking tape */
.wall-print a:hover, .wall-print a:focus-visible { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .8); }
.wall-mat { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #e6e7e9; }
.wall-mat img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wall-label { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .7rem .2rem .8rem; }
.wall-label strong { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.wall-label span { font-size: .72rem; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.wall-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-top: .5rem; }
.wall-years { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.wall-years span { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(233, 238, 244, .65); margin-right: .5rem; }
.wall-years a { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .85rem; border: 1px dashed rgba(233, 238, 244, .35); border-radius: 99px; color: #e9eef4; text-decoration: none; font-size: .85rem; transition: background .2s, color .2s; }
.wall-years a:hover { background: #e9eef4; color: var(--walnut); border-style: solid; }
.text-link-light { color: #e9eef4; }
.text-link-light:hover { color: #fff; }

/* ---------- Milestones (home) ---------- */
.milestone-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; counter-reset: ms; }
.milestone-card { padding: 1.35rem 1.35rem; border-top: 2px solid var(--gold); background: var(--white); box-shadow: var(--shadow-sm); border-radius: 0 0 var(--radius) var(--radius); }
.milestone-date { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: .75rem; }
.milestone-card h3 { font-size: 1.45rem; }
.milestone-card p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Quote band ---------- */
.quote-band { position: relative; background: var(--navy); color: #fff; padding-block: var(--section); overflow: hidden; isolation: isolate; }
.quote-media, .quote-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-media { z-index: -2; }
.quote-band-image::after { content: ""; position: absolute; inset: 0; background: rgba(16, 17, 19, .72); z-index: -1; }
.quote-inner { max-width: 900px; text-align: center; }
.quote-inner blockquote { margin: 0; }
.quote-inner blockquote::before { content: "“"; display: block; font-family: var(--font-heading); font-size: 6rem; line-height: .6; color: var(--gold); margin-bottom: 1rem; }
.quote-inner p { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-style: italic; line-height: 1.3; margin-bottom: 1.5rem; }
.quote-inner footer { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* ---------- CTA ---------- */
.cta-block { background: var(--grain), var(--ivory); border-top: 1px dashed var(--stitch); }
.cta-media { position: relative; transform: rotate(-1deg); max-width: 440px; justify-self: center; width: 100%; }
.cta-media img { border: 8px solid var(--white); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.cta-noimage { grid-template-columns: minmax(0, 760px); justify-content: center; text-align: center; }
.cta-noimage .btn-row { justify-content: center; }
.cta-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } .cta-media { max-width: 360px; } }

/* ---------- Page hero ---------- */
.page-hero { background: var(--grain), var(--ivory); padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.75rem, 4vw, 2.75rem); border-bottom: 1px dashed var(--stitch); position: relative; overflow: hidden; }
/* a large, faint horseshoe watermark instead of a geometric shape */
.page-hero::after { content: ""; position: absolute; right: clamp(-80px, -4vw, -20px); top: 50%; width: clamp(160px, 20vw, 250px); aspect-ratio: 1; transform: translateY(-50%) rotate(-14deg); pointer-events: none;
  background: var(--gold); opacity: .13; -webkit-mask: var(--horseshoe) center / contain no-repeat; mask: var(--horseshoe) center / contain no-repeat; }
.page-title { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 500; max-width: 20ch; margin-bottom: .25em; text-wrap: balance; }
.page-intro { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 58ch; margin: 0; font-weight: 300; }
.page-hero-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; background: var(--navy); color: #fff; border: 0; min-height: clamp(320px, 34vw, 430px); }
.page-hero-image::after { display: none; }
.page-hero-text { display: flex; align-items: center; position: relative; overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem) clamp(2.25rem, 4.5vw, 3.5rem) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
.page-hero-text::before { content: ""; position: absolute; right: -40px; bottom: -50px; width: 230px; height: 230px; transform: rotate(-14deg); background: var(--gold); opacity: .14;
  -webkit-mask: var(--horseshoe) center / contain no-repeat; mask: var(--horseshoe) center / contain no-repeat; }
.page-hero-text::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--blue) 35%, transparent), transparent 60%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-media { position: relative; min-height: 280px; }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.page-hero-image .page-title { color: #fff; }
.page-hero-image .page-intro { color: rgba(255, 255, 255, .82); }
.page-hero-image .eyebrow { color: color-mix(in srgb, var(--gold) 70%, #fff); }
@media (max-width: 860px) {
  .page-hero-image { grid-template-columns: 1fr; min-height: 0; }
  .page-hero-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; max-height: 300px; }
  .page-hero-text { padding: 1.75rem var(--gutter) 2rem; }
}

/* ---------- Prose ---------- */
.prose { color: #2f3540; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose h2 { font-size: clamp(1.65rem, 2.6vw, 2.05rem); margin: 1.4em 0 .5em; }
.prose h3 { font-size: 1.45rem; margin: 1.3em 0 .45em; }
.prose h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 1.6em 0 .6em; }
.prose a { color: var(--blue); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.5em; border-left: 2px solid var(--gold); font-family: var(--font-heading); font-size: 1.45em; font-style: italic; line-height: 1.4; color: var(--navy); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em auto; height: auto; }
.prose figure { margin: 1.5em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .7em; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .65em .8em; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.prose thead th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.5em 0; }
.prose-lg { font-size: 1.06rem; line-height: 1.7; }
.prose-lg > p:first-child::first-letter { font-family: var(--font-heading); float: left; font-size: 4.2em; line-height: .85; padding: .06em .1em 0 0; color: var(--navy); font-weight: 500; }
.post-body > p:first-child::first-letter { font-size: 3.6em; }
.post-body-short > p:first-child::first-letter { float: none; font-size: inherit; font-family: inherit; padding: 0; color: inherit; font-weight: inherit; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-body { max-width: 70ch; }
.about-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.fact-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; }
.fact-card-dark { background: var(--navy); color: rgba(255, 255, 255, .85); border: 0; }
.fact-card-dark .btn { margin-top: .5rem; }
.fact-list { margin: 0 0 1.25rem; }
.fact-list div { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.fact-list div:first-child { padding-top: 0; }
.fact-list dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact-list dd { margin: .1rem 0 0; font-family: var(--font-heading); font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.fact-note { font-size: .82rem; color: var(--muted); }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .about-aside { position: static; } }

/* ---------- News listing ---------- */
.news-filter { display: flex; gap: .75rem; margin-bottom: 1.5rem; max-width: 640px; }
.news-filter input { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.chips-small { margin-bottom: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: .4rem 1rem; border: 1px solid var(--line-strong); border-radius: 99px;
  font-size: .8rem; font-weight: 500; color: var(--navy); text-decoration: none; background: var(--white); transition: all .2s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: 2.25rem; }
.page-link { min-width: 44px; height: 44px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 500; font-size: .9rem; background: var(--white); }
.page-link:hover { border-color: var(--navy); }
.page-link.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-gap { color: var(--muted); padding: 0 .25rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--ivory); }
.empty-state h2 { font-size: 2rem; }
.empty-state p { color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .8rem 1rem; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
textarea { resize: vertical; min-height: 130px; }

/* ---------- Post ---------- */
.post-header { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem); text-align: left; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.post-title { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 500; text-wrap: balance; }
.post-dek { font-size: 1.2rem; color: var(--muted); font-weight: 300; margin: 0; }
.post-hero { margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem); max-width: 1140px; }
.post-hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.post-body { padding-bottom: 1.75rem; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 2rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-block: 1.5rem; border-block: 1px solid var(--line); font-size: .85rem; }
.share-label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.share a, .share-copy { color: var(--navy); font: inherit; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-block: 1.75rem var(--section); }
.post-nav-link { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s; }
.post-nav-link:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.post-nav-link span { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.post-nav-link strong { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.post-nav-link.next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav-link.next { text-align: left; } }

/* ---------- Galleries ---------- */
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.gallery-card { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; background: var(--navy); isolation: isolate; box-shadow: var(--shadow-sm); }
.gallery-card-media, .gallery-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-card-media { z-index: -2; }
.gallery-card-media img { transition: transform 1s var(--ease); }
.gallery-card:hover .gallery-card-media img { transform: scale(1.05); }
.gallery-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 17, 19, 0) 40%, rgba(16, 17, 19, .88)); }
.gallery-card-body { position: absolute; inset: auto 0 0 0; padding: 1.35rem; display: flex; flex-direction: column; gap: .35rem; }
.gallery-card-body .eyebrow { color: color-mix(in srgb, var(--gold) 70%, #fff); margin: 0; }
.gallery-card-title { font-family: var(--font-heading); font-size: 1.7rem; line-height: 1.1; font-weight: 500; }
.gallery-card-count { font-size: .82rem; color: rgba(255, 255, 255, .75); }

.masonry { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 1rem; }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; }
.masonry-item a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--ivory); cursor: zoom-in; position: relative; }
.masonry-item img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .3s; }
.masonry-item a:hover img { transform: scale(1.03); }
.masonry-caption { font-size: .85rem; color: var(--muted); margin: .55rem 0 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12, 12, 14, .96); display: grid; grid-template-rows: auto 1fr auto; color: #fff; opacity: 0; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); font-size: .85rem; color: rgba(255, 255, 255, .7); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(3.5rem, 7vw, 6rem); min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-caption { text-align: center; padding: 1rem var(--gutter) 1.5rem; font-size: .95rem; min-height: 3.5rem; color: rgba(255, 255, 255, .85); }
.lb-btn { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); }
@media (max-width: 600px) { .lb-stage { padding: 0 .5rem; } .lb-prev, .lb-next { top: auto; bottom: -3.75rem; transform: none; } }

/* ---------- Record ---------- */
.stats-band-flush { padding-block: clamp(2rem, 4vw, 3rem); }
.highlight-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.highlight { padding: 1.25rem 1.35rem; background: var(--ivory); border-radius: var(--radius-lg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.highlight strong { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 500; color: var(--navy); line-height: 1; }
.highlight span { color: var(--muted); font-size: .95rem; }

.timeline { --tl-date: 8.5rem; --tl-gap: 2.5rem; list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(var(--tl-date) + var(--tl-gap) / 2); top: .5rem; bottom: .5rem; width: 1px; background: color-mix(in srgb, var(--gold) 60%, transparent); }
.timeline-item { display: grid; grid-template-columns: var(--tl-date) 1fr; column-gap: var(--tl-gap); padding-bottom: 1rem; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: calc(var(--tl-date) + var(--tl-gap) / 2 - 5px); top: .45rem; width: 11px; height: 11px; background: var(--ivory); border: 2px solid var(--gold); transform: rotate(45deg); }
.timeline-date { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); text-align: right; padding-top: .25rem; margin: 0; }
.timeline-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; }
.timeline-card:not(:has(.timeline-media)) { grid-template-columns: 1fr; }
.timeline-media img { width: 110px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.timeline-card h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.timeline-card p { color: var(--muted); margin: 0; font-size: .94rem; line-height: 1.55; }
@media (max-width: 700px) {
  .timeline::before { left: 5px; }
  .timeline-item { grid-template-columns: 1fr; row-gap: .5rem; padding-left: 2rem; }
  .timeline-item::before { left: 0; }
  .timeline-date { text-align: left; }
  .timeline-card { grid-template-columns: 1fr; }
  .timeline-media img { width: 100%; aspect-ratio: 16 / 9; max-height: 200px; }
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.honor-list { list-style: none; margin: 0; padding: 0; }
.honor-list li { display: grid; grid-template-columns: 3.75rem 1fr; gap: .75rem; padding: .55rem 0; line-height: 1.4; border-bottom: 1px solid var(--line); }
.honor-year { font-family: var(--font-heading); font-size: 1.2rem; color: var(--brass); font-weight: 600; line-height: 1.2; }
.honor-list strong { display: block; font-weight: 500; color: var(--navy); }
.honor-list em { display: block; font-style: normal; font-size: .88rem; color: var(--muted); }
/* Record page: two-column timeline, wider trainer-title list, compact runner cards */
@media (min-width: 1000px) {
  .timeline-cols { columns: 2; column-gap: 2.5rem; }
  .timeline-cols::before { display: none; }
  .timeline-cols .timeline-item { break-inside: avoid; display: block; padding: 0 0 1rem 1.6rem; border-left: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); }
  .timeline-cols .timeline-item::before { left: -6px; top: .3rem; }
  .timeline-cols .timeline-date { text-align: left; padding: 0 0 .35rem; }
}
@media (min-width: 861px) { .two-col-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
@media (min-width: 640px) { .honor-list-cols { columns: 2; column-gap: 2rem; } .honor-list-cols li { break-inside: avoid; } }
.card-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card-grid-sm .card-media { aspect-ratio: 16 / 9; }
.card-grid-sm .card-title { font-size: 1.2rem; }
.card-grid-sm .card-text { font-size: .86rem; margin-bottom: 0; }
.card-grid-sm .card-placeholder img { width: 52px; height: 52px; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: .6rem 1rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--ivory); font-weight: 600; }
.data-table tbody th { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--ivory) 60%, transparent); }

.legacy-stats { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.legacy-stats summary { list-style: none; cursor: pointer; padding: 1.1rem 1.5rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem 1rem; }
.legacy-stats summary::-webkit-details-marker { display: none; }
.legacy-stats summary .eyebrow { grid-column: 1; margin: 0; }
.legacy-title { grid-column: 1; font-family: var(--font-heading); font-size: 1.7rem; color: var(--navy); font-weight: 600; }
.legacy-hint { grid-column: 2; grid-row: 1 / span 2; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.legacy-hint::after { content: " +"; }
.legacy-stats[open] .legacy-hint::after { content: " −"; }
.legacy-stats[open] summary { border-bottom: 1px solid var(--line); }
.legacy-body { padding: 1.5rem 1.75rem 2rem; }
.legacy-body table { display: table; width: 100%; }
.legacy-body p strong { font-family: var(--font-heading); font-size: 1.3rem; display: block; margin-top: 1.5rem; }

/* ---------- Entries ---------- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.link-card { display: flex; flex-direction: column; gap: .45rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.link-group + .link-group { margin-top: clamp(2rem, 4vw, 3rem); }
.link-cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.link-card-title { font-size: 1.75rem !important; }
.link-card-title { font-family: var(--font-heading); font-size: 2rem; color: var(--navy); font-weight: 600; line-height: 1.1; }
.link-card-text { color: var(--muted); margin-bottom: .6rem; }
.link-card .text-link { margin-top: auto; align-self: flex-start; }
.link-card .text-link::after { content: none; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem 1.25rem; }
.video-card { margin: 0; }
.video-frame { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-link { display: grid; place-items: center; color: #fff; text-decoration: none; }
.video-card figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.video-card figcaption strong { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.2; color: var(--navy); font-weight: 600; }
.video-card figcaption span { font-size: .85rem; color: var(--muted); white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info > .prose { margin-bottom: 1.5rem; font-size: 1.02rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.contact-list li:first-child { padding-top: 0; }
.contact-label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.contact-value { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.1vw, 1.6rem); color: var(--navy); text-decoration: none; line-height: 1.25; overflow-wrap: anywhere; }
a.contact-value:hover { color: var(--blue); }
.contact-list .text-link { margin-top: .6rem; }
.contact-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.35rem, 3vw, 2.1rem); display: grid; gap: 1rem; }
.form-title { font-size: 1.75rem; margin: 0; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.has-error input, .has-error textarea { border-color: #b3261e; }
.field-error, .form-error { color: #b3261e; font-size: .85rem; margin: 0; }
.form-error { padding: .8rem 1rem; background: #fbeaea; border-radius: var(--radius); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: flex; align-items: center; text-align: center; }
.notfound .page-title, .notfound .page-intro { margin-inline: auto; }
.notfound .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--brushed), var(--navy); color: rgba(255, 255, 255, .72); padding-top: clamp(2.5rem, 5vw, 3.5rem); font-size: .9rem; }
.site-footer::before { content: ""; position: absolute; inset: 10px 0 auto; border-top: 1px dashed var(--stitch); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.1fr .8fr .9fr; gap: 2rem; padding-bottom: 2.25rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .9rem; font-family: var(--font-heading); font-size: 1.6rem; color: #fff !important; margin-bottom: .9rem; }
.footer-logo img { width: 46px; height: 46px; }
.footer-brand p { max-width: 36ch; }
.footer-title { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--gold) 75%, #fff); margin-bottom: .85rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-contact li { display: flex; flex-direction: column; }
.footer-contact span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.social { list-style: none; display: flex; gap: .6rem; padding: 0; margin: 1rem 0 0; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social a:hover { background: #fff; color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; } .footer-brand, .footer-grid > :nth-child(2) { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wall-track { scroll-behavior: auto; }
  .hero-slide img { transform: none; }
}

@media print {
  .site-header, .site-footer, .share, .post-nav, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ---------- Page enrichments (About quotes, Contact owners, Entries season/watch) ---------- */
.prose blockquote cite { display: block; margin-top: .6em; font-family: var(--font-body); font-size: .62em; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.prose blockquote cite::before { content: "— "; }
.prose .source { margin-top: 2.5em; padding-top: 1em; border-top: 1px dashed var(--line-strong); font-size: .85rem; color: var(--muted); }

.about-portrait { margin: 0; background: var(--white); padding: .7rem .7rem 0; border: 1px solid var(--line); box-shadow: var(--shadow-md); transform: rotate(-1.2deg); }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 30%; border-radius: 2px; }
.about-portrait figcaption { font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; color: var(--saddle); text-align: center; padding: .55rem 0 .7rem; }

.section-dark { background: var(--brushed), var(--walnut); color: rgba(255, 255, 255, .86); position: relative; }
.section-dark .eyebrow { color: color-mix(in srgb, var(--gold) 75%, #fff); }
.section-dark .section-title { color: #fff; }
.section-dark .section-title em { color: color-mix(in srgb, var(--gold) 80%, #fff); }
.quote-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.quote-card { margin: 0; padding: 1.5rem 1.5rem 1.3rem; border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0 0 1rem; flex: 1; font-family: var(--font-heading); font-size: 1.3rem; font-style: italic; line-height: 1.4; color: #fff; }
.quote-card blockquote::before { content: "“"; display: block; font-size: 3.5rem; line-height: .7; color: var(--gold); margin-bottom: .35rem; font-style: normal; }
.quote-card blockquote p { margin: 0; }
.quote-card figcaption { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--gold) 70%, #fff); }

.timeline-compact { --tl-date: 8rem; --tl-gap: 2.5rem; }
.timeline-compact .timeline-item { padding-bottom: 1.5rem; }
.timeline-compact .timeline-card { padding: 1.15rem 1.35rem; }
.timeline-compact .timeline-card h3 { font-size: 1.3rem; }

.owner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.owner-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.3rem; box-shadow: var(--shadow-sm); outline: 1px dashed var(--stitch); outline-offset: -7px; }
.owner-num { display: block; font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; color: var(--gold); margin-bottom: .6rem; }
.owner-card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.owner-card p { color: var(--muted); margin: 0; }
.owners-cta { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1.5rem 0 0; }

.season-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); outline: 1px dashed var(--stitch); outline-offset: -8px; }
.season-panel .section-head { margin-bottom: 0; }
.season-facts { margin: 0; display: grid; gap: 1.1rem; }
.season-facts div { display: flex; flex-direction: column-reverse; gap: .2rem; padding-left: 1.1rem; border-left: 2px solid var(--gold); }
.season-facts dd { margin: 0; font-family: var(--font-heading); font-size: 2.3rem; line-height: 1; color: var(--navy); }
.season-facts dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .season-panel { grid-template-columns: 1fr; } }

.watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.5rem; }
.watch-card { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--saddle); border-radius: var(--radius-lg); padding: 1.3rem 1.35rem 1.15rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.watch-card::after { content: ""; position: absolute; right: 14px; top: 18px; width: 54px; height: 54px; background: var(--gold); opacity: .08; -webkit-mask: var(--horseshoe) center / contain no-repeat; mask: var(--horseshoe) center / contain no-repeat; pointer-events: none; }
.watch-tag { margin: 0 0 .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.watch-card h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.watch-card p { color: var(--muted); flex: 1; }
.gallery-card-desc { font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-card:has(.gallery-card-desc)::after { background: linear-gradient(180deg, rgba(16, 17, 19, 0) 20%, rgba(16, 17, 19, .92) 78%); }

/* ---------- Race day: entries, results, live ---------- */
.raceday-strip { background: var(--brushed), var(--walnut); color: #e9eef4; border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.raceday-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .9rem; }
.raceday-inner p { margin: 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .95rem; }
.raceday-inner strong { color: #fff; letter-spacing: .04em; }
.raceday-inner .btn { padding-block: .6rem; }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); flex-shrink: 0; }
.is-live .live-dot, .live-dot.is-live { background: #d8402f; animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 64, 47, .55); } 70% { box-shadow: 0 0 0 .55rem rgba(216, 64, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 64, 47, 0); } }

.race-day + .race-day { margin-top: 1.75rem; }
.race-day-title { display: flex; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; font-size: 1.5rem; margin: 0 0 .75rem; padding-bottom: .6rem; border-bottom: 1.5px dashed var(--stitch); }
.race-day-title small { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.race-list { display: grid; gap: .75rem; }
@media (min-width: 1000px) { .race-list:not(.race-list-compact) { grid-template-columns: 1fr 1fr; } .race-list:not(.race-list-compact) .race-card { grid-template-columns: 150px 1fr; } }
.race-card { display: grid; grid-template-columns: minmax(170px, 220px) 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.race-when { display: flex; flex-direction: column; gap: .25rem; padding: .95rem 1.15rem; background: var(--ivory); border-right: 1px dashed var(--stitch); }
.race-num { font-family: var(--font-heading); font-size: 1.85rem; font-weight: 600; color: var(--navy); line-height: 1; }
.race-time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.race-time abbr { text-decoration: none; font-weight: 500; color: var(--muted); font-size: .85em; }
.race-track { font-size: .85rem; color: var(--muted); }
.race-pill { align-self: flex-start; margin-top: .35rem; padding: .22rem .6rem; border-radius: 99px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: color-mix(in srgb, var(--navy) 9%, #fff); color: var(--navy); }
.race-pill-soon { background: color-mix(in srgb, var(--gold) 30%, #fff); color: var(--walnut); }
.race-pill-live { background: #d8402f; color: #fff; }
.race-pill-finished { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.race-countdown { font-size: .82rem; color: var(--brass); font-weight: 600; font-variant-numeric: tabular-nums; }
.race-countdown:empty { display: none; }
.race-body { padding: .95rem 1.15rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.race-horses { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.race-horses li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; }
.race-horse { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.race-horse a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.race-horse a:hover { background-size: 100% 1px; }
.race-meta { font-size: .86rem; color: var(--muted); }
.race-cond { margin: 0; font-size: .86rem; color: var(--muted); }
.race-cond strong { color: var(--ink); font-weight: 600; }
.race-links { margin: .1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.race-live { border-color: #d8402f; box-shadow: 0 0 0 1px #d8402f, var(--shadow-md); }
.race-finished { opacity: .88; }
@media (max-width: 640px) {
  .race-card { grid-template-columns: 1fr; }
  .race-when { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; border-right: 0; border-bottom: 1px dashed var(--stitch); }
  .race-pill { margin-top: 0; }
}

.finish { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .16rem .5rem; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; background: color-mix(in srgb, var(--navy) 7%, #fff); color: var(--muted); font-variant-numeric: tabular-nums; }
.finish-1 { background: var(--gold); color: #fff; }
.finish-2 { background: color-mix(in srgb, var(--navy) 16%, #fff); color: var(--navy); }
.finish-3 { background: color-mix(in srgb, var(--saddle) 22%, #fff); color: var(--saddle); }

.form-band { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0 0 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-band div { display: flex; flex-direction: column-reverse; gap: .2rem; padding: .85rem 1.1rem; border-right: 1px dashed var(--stitch); }
.form-band div:last-child { border-right: 0; }
.form-band dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.form-band dd { margin: 0; font-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .form-band { grid-template-columns: repeat(3, 1fr); } .form-band div:nth-child(3) { border-right: 0; } .form-band div:nth-child(-n+3) { border-bottom: 1px dashed var(--stitch); } }

.results-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.results-table th, .results-table td { padding: .55rem .9rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.results-table thead th { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--ivory); font-weight: 600; }
.results-table tbody th { font-family: var(--font-heading); font-size: 1.12rem; color: var(--navy); font-weight: 600; }
.results-table .num { text-align: right; }
.results-table tr.is-win { background: color-mix(in srgb, var(--gold) 9%, var(--white)); }
.results-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 700px) { .results-table .hide-sm { display: none; } .results-table th, .results-table td { padding: .7rem .7rem; } }
.feed-note { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.raceday-bar { background: var(--walnut); color: #e9eef4; font-size: .86rem; border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.raceday-bar-inner { display: flex; align-items: center; gap: .4rem .75rem; padding-block: .55rem; flex-wrap: wrap; }
.raceday-bar strong { color: #fff; margin-right: .35rem; letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; }
.raceday-bar a { margin-left: auto; color: color-mix(in srgb, var(--gold) 75%, #fff); font-weight: 600; text-decoration: none; white-space: nowrap; }
.raceday-bar a:hover { color: #fff; }
.raceday-bar.is-live { background: #7d241a; }

/* Live page */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 2rem 2.5rem; align-items: start; }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; } }
.live-status { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.live-status p { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .7rem; align-items: baseline; }
.live-status strong { color: var(--navy); }
.live-status.is-live { border-color: #d8402f; background: color-mix(in srgb, #d8402f 6%, var(--white)); }
.live-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--brushed), var(--walnut); box-shadow: var(--shadow-md); }
.live-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-player-off { display: grid; place-items: center; }
.live-player-card { max-width: 30rem; padding: 2rem; text-align: center; color: #dde4ec; }
.live-player-card img { opacity: .85; margin-inline: auto; }
.live-player-card p { margin: .6rem 0 0; font-size: .95rem; }
.live-player-title { font-family: var(--font-heading); font-size: 2rem !important; color: #fff; font-weight: 600; margin-top: .9rem !important; line-height: 1.1; }
@media (max-width: 560px) { .live-player-off { aspect-ratio: auto; } .live-player-card { padding: 2rem 1.25rem; } }
.watch-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.watch-option { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.watch-option:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.watch-option-label { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.watch-option-text { font-size: .85rem; color: var(--muted); }
.watch-option .text-link { margin-top: auto; padding-top: .3rem; }
.live-side { position: sticky; top: calc(var(--header-h) + 1rem); }
.live-side-title { font-size: 1.9rem; margin: 0 0 1rem; }
.live-side-links { display: flex; gap: 1.4rem; margin: 1rem 0 0; }
.race-list-compact .race-card { grid-template-columns: 1fr; }
.race-list-compact .race-when { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; border-right: 0; border-bottom: 1px dashed var(--stitch); padding: .9rem 1.1rem; }
.race-list-compact .race-num { font-size: 1.45rem; }
.race-list-compact .race-pill { margin-top: 0; }
.race-list-compact .race-body { padding: .9rem 1.1rem; }
.race-list-compact .race-horse { font-size: 1.25rem; }
@media (max-width: 1000px) { .live-side { position: static; } }
.race-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.race-grid .race-card { grid-template-columns: 1fr; }
.race-grid .race-when { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; border-right: 0; border-bottom: 1px dashed var(--stitch); }
.race-grid .race-pill { margin-top: 0; }
.home-raceday .race-links { align-items: center; margin: 0; gap: .8rem 1.4rem; }
.home-raceday .btn .live-dot { display: inline-block; margin-right: .45rem; vertical-align: middle; }
.replay-link { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.replay-link::before { content: "▶"; font-size: .6rem; margin-right: .35rem; }
.replay-link:hover { color: var(--navy); }
.yr-mark { color: var(--brass); font-size: .7em; margin-left: .1em; }

/* ---------- Winners reel (home) ---------- */
.reel .section-intro { color: rgba(233, 238, 244, .78); }
.reel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
.reel-main { position: relative; }
.reel-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #111;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
.reel-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-facade { position: absolute; inset: 0; padding: 0; border: 0; background: #111; cursor: pointer; display: block; width: 100%; }
.reel-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .8s var(--ease); }
.reel-facade:hover img { opacity: 1; transform: scale(1.02); }
.reel-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); animation: reel-pulse 2.2s infinite; }
.reel-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 22px solid #fff; border-block: 16px solid transparent; }
@keyframes reel-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 70% { box-shadow: 0 0 0 22px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.reel-sound { position: absolute; right: .9rem; top: .9rem; z-index: 2; min-height: 40px; padding: .5rem 1rem; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(0, 0, 0, .7); color: #fff; font: 600 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(4px); }
.reel-sound::before { content: "🔊"; margin-right: .45rem; letter-spacing: 0; }
.reel-sound:hover { background: var(--gold); }
.reel-caption { margin: .75rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; color: rgba(233, 238, 244, .8); }
.reel-caption strong { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; color: #fff; }
.reel-caption small { font-size: .85rem; color: rgba(233, 238, 244, .6); }
.reel-now { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--gold) 70%, #fff); }
.reel-list { list-style: none; margin: 0; padding: 0 .4rem 0 0; display: grid; gap: .5rem; max-height: min(26rem, 62vh); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.reel-item { width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: .8rem; align-items: center; padding: .4rem; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03); color: inherit; font: inherit;
  transition: background .2s, border-color .2s, transform .25s var(--ease); }
.reel-item:hover { background: rgba(255, 255, 255, .08); transform: translateX(3px); }
.reel-item.is-active { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent); }
.reel-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #111; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .9rem; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .2s; }
.reel-item:hover .reel-thumb::after { opacity: 1; }
.reel-item.is-active .reel-thumb::after { content: "● NOW"; font: 700 .6rem/1 var(--font-body); letter-spacing: .14em; opacity: 1; background: color-mix(in srgb, var(--gold) 45%, transparent); }
.reel-meta { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.reel-meta strong { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: #fff; line-height: 1.15; }
.reel-meta span { font-size: .82rem; color: rgba(233, 238, 244, .82); }
.reel-meta small { font-size: .72rem; color: rgba(233, 238, 244, .55); }
.reel-note { margin: .75rem 0 0; font-size: .8rem; color: rgba(233, 238, 244, .55); }
@media (max-width: 900px) {
  .reel-grid { grid-template-columns: 1fr; }
  .reel-list { max-height: none; overflow: visible; grid-auto-flow: column; grid-auto-columns: minmax(240px, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 .75rem; }
  .reel-list li { scroll-snap-align: start; }
  .reel-item { grid-template-columns: 96px 1fr; }
}
