/* Off and Pacing — public site
   The registry voice: cool paper, navy ink from the logo, brass for
   silverware. Data set like a stud book; each stable carries its own
   colours as a horizontal blanket-band device. The Pro Series panel is
   the one deliberate brand break: Catch Driver's race-night black & gold. */

:root {
  --paper: #eef0f4;
  --card: #ffffff;
  --line: #d5dae4;
  --ink: #1a2440;
  --navy: #2b3a67;
  --steel: #67738e;
  --brass: #a87e2f;
  --brass-hi: #c99c4a;
  --band-a: #2b3a67;
  --band-b: #c7cedb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--brass); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */

.display {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.display .quiet { color: var(--steel); font-weight: 700; }

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}

.eyebrow .dim { color: var(--steel); }

.lede { color: var(--steel); font-size: 18px; max-width: 58ch; }

.num { font-family: 'Barlow Condensed', sans-serif; font-variant-numeric: tabular-nums; }

/* ---------- chrome ---------- */

.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand img { height: 44px; width: auto; }

.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }

.site-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
}

.site-nav a:hover { color: var(--navy); }

.site-nav .cta {
  color: #fff;
  background: var(--navy);
  padding: 9px 18px;
  border-radius: 2px;
}

.site-nav .cta:hover { color: #fff; background: var(--ink); }

.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 38px 0 54px; color: var(--steel); background: var(--card); }

.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

.site-foot p { margin: 4px 0; font-size: 14px; }

.store-links { display: flex; gap: 12px; flex-wrap: wrap; }

.store-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  border: 1px solid var(--line);
  padding: 9px 16px;
  color: var(--ink);
  background: var(--paper);
}

.store-links a:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- blanket chips + boards ---------- */

.blanket {
  display: inline-block;
  width: 24px;
  height: 20px;
  flex: 0 0 24px;
  border-radius: 2px;
  border: 1px solid rgba(26, 36, 64, 0.35);
  background: linear-gradient(180deg, var(--band-a) 0 50%, var(--band-b) 50% 100%);
}

.rank {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--steel);
  background: var(--card);
}

.rank.r1 { background: var(--navy); color: #fff; border-color: var(--navy); }
.rank.r2, .rank.r3 { color: var(--navy); border-color: var(--navy); }

.board { border: 1px solid var(--line); background: var(--card); }

.board-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px 11px;
  border-bottom: 1px solid var(--line);
}

.board-title h3 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}

.board-title a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; color: var(--steel); }

.board-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.board-row:last-child { border-bottom: 0; }

a.board-row:hover { background: #f7f8fb; }
a.board-row:hover .stable-name { color: var(--brass); }

.board-row .stable-name { font-weight: 600; font-size: 16px; }

.board-row .program-line { color: var(--steel); font-size: 13px; }

.board-row .right { margin-left: auto; text-align: right; }

.board-row .stat-big { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); }

.board-row .stat-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); font-family: 'Barlow Condensed', sans-serif; }

.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }

table.standings { border-collapse: collapse; width: 100%; min-width: 840px; }

table.standings th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.standings th.name-col, table.standings td.name-col { text-align: left; }

table.standings td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.standings tr:last-child td { border-bottom: 0; }

table.standings tbody tr:hover { background: #f7f8fb; }

table.standings .name-cell { display: flex; align-items: center; gap: 12px; font-family: 'Barlow', sans-serif; font-weight: 600; }

table.standings td .money { color: var(--brass); font-weight: 600; }

table.standings th.sorted { color: var(--brass); }

/* ---------- controls ---------- */

.controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 22px 0; }

.seg { display: inline-flex; border: 1px solid var(--line); background: var(--card); }

.seg a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  color: var(--steel);
  border-right: 1px solid var(--line);
}

.seg a:last-child { border-right: 0; }

.seg a.on { background: var(--navy); color: #fff; }

.controls input[type="search"] {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  padding: 9px 12px;
}

.controls form.search { margin-left: auto; display: flex; gap: 8px; }

.controls button {
  background: var(--card);
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}

.controls button:hover { background: var(--navy); color: #fff; }

/* ---------- landing hero ---------- */

.hero { background: var(--card); border-bottom: 1px solid var(--line); }

.hero .wrap {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero h1 { font-size: clamp(40px, 6.2vw, 68px); }

.hero .lede { margin: 18px 0 28px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-ctas .primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 14px 26px;
  border-radius: 2px;
}

.hero-ctas .primary:hover { background: var(--ink); color: #fff; }

.hero-ctas .secondary {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 13px 22px;
}

.hero-ctas .secondary:hover { border-color: var(--brass); color: var(--brass); }

.hero-art { justify-self: center; text-align: center; }

.hero-art img { width: min(340px, 64vw); margin: 0 auto; }

.hero-art .est {
  margin-top: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- sections ---------- */

.section { padding: 60px 0 0; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

.section-head .more {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- stable profile ---------- */

.profile-hero { background: var(--card); border-bottom: 1px solid var(--line); position: relative; }

.profile-hero .band {
  height: 14px;
  background: linear-gradient(180deg, var(--band-a) 0 50%, var(--band-b) 50% 100%);
  border-bottom: 1px solid var(--line);
}

.profile-hero .wrap { padding-top: 52px; padding-bottom: 46px; }

.profile-hero h1 { font-size: clamp(36px, 6vw, 64px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.profile-hero h1 .blanket { width: 40px; height: 32px; flex: 0 0 40px; }

.profile-hero .program-line {
  margin-top: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--steel);
}

.profile-hero .program-line b { color: var(--ink); font-weight: 600; }

.crumb {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-block;
  margin-bottom: 22px;
}

.stat-plates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 34px; }

.stat-plate { background: var(--card); padding: 16px 16px 13px; }

.stat-plate .v {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 28px);
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-plate .k {
  margin-top: 7px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

/* share row */

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }

.share-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-right: 4px;
}

.share-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 14px;
  cursor: pointer;
}

.share-btn:hover { border-color: var(--brass); color: var(--brass); }

.share-btn.did { border-color: var(--navy); color: #fff; background: var(--navy); }

/* trophy case */

.trophy-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--card);
}

.trophy-row:first-of-type { border-top: 1px solid var(--line); }

.trophy-row .cup {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
}

.trophy-row .what .race { font-weight: 600; font-size: 16px; }

.trophy-row .what .with { color: var(--steel); font-size: 13px; }

.trophy-row .right { margin-left: auto; text-align: right; white-space: nowrap; }

.trophy-row .purse { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: var(--brass); }

.trophy-row .meta { color: var(--steel); font-size: 13px; font-family: 'Barlow Condensed', sans-serif; }

/* stable stars (horses) */

.stars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.star-card { border: 1px solid var(--line); background: var(--card); padding: 18px; }

.star-card .horse-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 19px; line-height: 1.15; min-height: 2.3em; }

.star-card .mark {
  margin-top: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
}

.star-card .mark small { font-weight: 400; font-size: 13px; color: var(--steel); letter-spacing: 0.04em; }

.star-card .line { color: var(--steel); font-size: 13px; margin-top: 8px; font-family: 'Barlow Condensed', sans-serif; }

.star-card .money { color: var(--brass); font-weight: 600; }

/* ---------- the Pro Series panel (Catch Driver's colours, on purpose) ---------- */

.proseries-panel {
  background: #0d0b08;
  color: #f1ebdd;
  border: 1px solid #0d0b08;
  position: relative;
  overflow: hidden;
}

.proseries-panel::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  right: -14%;
  width: 30%;
  background: linear-gradient(180deg, #ffcb6b, #f2a93c 70%);
  transform: skewX(-12deg);
}

.proseries-panel .inner { position: relative; z-index: 1; padding: 34px 38px 36px; }

.proseries-panel .ps-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f2a93c;
  margin: 0 0 8px;
}

.proseries-panel h2 {
  font-family: 'Anton', sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: 0.01em;
  margin: 0 0 6px;
  color: #f1ebdd;
}

.proseries-panel h2 .gold { color: #f2a93c; }

.proseries-panel .ps-line { color: #998e78; font-family: 'Barlow Condensed', sans-serif; font-size: 17px; margin: 0 0 22px; max-width: 620px; }

.proseries-panel .ps-line b { color: #f1ebdd; font-weight: 600; }

.ps-drivers { border: 1px solid #2c251a; background: #171410; max-width: 640px; }

.ps-driver-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #2c251a;
  color: #f1ebdd;
}

.ps-driver-row:last-child { border-bottom: 0; }

a.ps-driver-row:hover { background: #1f1a13; }
a.ps-driver-row:hover .d-name { color: #ffcb6b; }

.ps-driver-row .d-rank { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: #998e78; width: 18px; }

.ps-driver-row .d-name { font-weight: 600; }

.ps-driver-row .d-line { color: #998e78; font-size: 13px; font-family: 'Barlow Condensed', sans-serif; }

.ps-driver-row .right { margin-left: auto; text-align: right; }

.ps-driver-row .d-wins { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: #ffcb6b; }

.proseries-panel .ps-cta {
  display: inline-block;
  margin-top: 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #0d0b08;
  background: linear-gradient(180deg, #ffcb6b, #f2a93c);
  padding: 11px 20px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.proseries-panel .ps-cta:hover { filter: brightness(1.08); }

.proseries-panel .ps-note { color: #998e78; font-size: 13px; margin-top: 14px; }

.proseries-panel .ps-note a { color: #f2a93c; }

/* misc */

.empty-note { color: var(--steel); border: 1px dashed var(--line); padding: 20px; text-align: center; background: var(--card); }

/* responsive */

@media (max-width: 880px) {
  .board-grid { grid-template-columns: 1fr; }
  .stars-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-plates { grid-template-columns: repeat(3, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 52px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(220px, 50vw); }
  .proseries-panel::after { display: none; }
}

@media (max-width: 560px) {
  .stat-plates { grid-template-columns: repeat(2, 1fr); }
  .stars-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .site-nav { gap: 14px; }
  .site-nav .hide-sm { display: none; }
  .controls form.search { margin-left: 0; width: 100%; }
  .controls form.search input { flex: 1; }
}
