﻿:root {
  color-scheme: light;
  --page: #f7f1e3;
  --header: #fbf7ee;
  --paper: #fffaf0;
  --paper-deep: #f1e7d4;
  --ink: #1f2622;
  --muted: #687065;
  --green: #0f5f45;
  --green-dark: #083c2e;
  --gold: #b1843b;
  --brown: #6e4d25;
  --line: #d8c8aa;
  --shadow: 0 16px 36px rgba(68, 45, 20, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.76), rgba(247, 241, 227, 0.82)),
    var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  background: var(--header);
  border-bottom: 1px solid var(--gold);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(42px, 5vw, 72px);
}

.header-logo-link {
  flex: 0 0 auto;
  padding: 7px 0;
}

.header-logo {
  display: block;
  height: 96px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2.4vw, 30px);
  flex: 0 1 auto;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--green-dark);
}

.site-nav a {
  position: relative;
  padding: 24px 0 21px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  background: var(--green);
}

.masthead {
  width: min(720px, calc(100% - 32px));
  height: 150px;
  margin: 8px auto 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.masthead-logo {
  width: min(250px, 58vw);
  max-height: 150px;
  height: auto;
  object-fit: contain;
}

.dog-divider {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
  align-items: center;
  gap: 14px;
}

.dog-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brown), var(--gold));
}

.dog-divider span:last-child {
  background: linear-gradient(90deg, var(--gold), var(--brown), transparent);
}

.dog-divider img {
  width: 72px;
  height: auto;
}

.ad-slot {
  width: min(980px, calc(100% - 32px));
  min-height: 86px;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed rgba(110, 77, 37, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.54);
  color: var(--muted);
  text-align: center;
}

.ad-slot span {
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ad-slot small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.ad-slot-leaderboard {
  min-height: 92px;
  margin-top: 16px;
  margin-bottom: 18px;
}

.ad-slot-home {
  grid-column: 1 / -1;
  min-height: 82px;
  margin: 0 0 14px;
  width: 100%;
}

.ad-slot-footer {
  width: min(760px, calc(100% - 48px));
  min-height: 74px;
  margin-top: 0;
  margin-bottom: 16px;
}

.home-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(330px, 40fr) minmax(0, 60fr);
  align-items: stretch;
  gap: 0;
}

.home-content > :not(.ad-slot-home) {
  height: auto;
  min-height: clamp(390px, 32vw, 420px);
}

.home-content > .today-status-navigation {
  grid-column: 1 / -1;
  min-height: 0;
}

.today-status-navigation {
  margin-top: 14px;
}

.today-status-navigation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.today-status-card {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(177, 132, 59, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
  color: var(--green-dark);
  text-decoration: none;
}

.today-status-card:hover {
  border-color: rgba(15, 95, 69, 0.42);
  background: rgba(255, 250, 240, 0.96);
}

.today-status-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.today-status-card-icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.today-status-card-content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.today-status-card-title {
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.1;
}

.today-status-card-status {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.today-status-card-light {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b52b2b;
}

.today-status-card.is-good .today-status-card-light {
  background: var(--green-dark);
}

.today-status-card.is-partial .today-status-card-light {
  background: var(--gold);
}

.today-status-card-arrow {
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

.next-races-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  border: 1px solid rgba(177, 132, 59, 0.44);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--shadow);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  font-weight: 700;
}

.race-list {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.race-row {
  flex: 0 0 auto;
  min-height: 58px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.race-row:hover .race-track,
.race-row:focus-visible .race-track {
  color: var(--green);
}

.race-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.race-time {
  min-width: 0;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.race-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.race-track {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.race-title {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.race-arrow {
  justify-self: end;
  color: var(--green);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1;
  text-align: right;
}

.race-message {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.data-status {
  margin: 10px 0 0;
}

.data-status-panel {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(177, 132, 59, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.7);
}

.data-status-home {
  margin-top: 9px;
}

.data-health-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 8px 10px;
  border: 1px solid rgba(177, 132, 59, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.74);
}

.data-health-strip-summary,
.data-health-strip-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.data-health-strip-summary {
  color: var(--brown);
  font-size: 0.78rem;
}

.data-health-strip-summary strong {
  color: var(--green-dark);
  font-weight: 800;
}

.data-health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.data-health-dot.is-good {
  background: var(--green-dark);
}

.data-health-dot.is-partial {
  background: var(--gold);
}

.data-health-strip-meta {
  margin: 0;
}

.data-health-strip-meta div {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.data-health-strip-meta dt,
.data-health-strip-meta dd {
  margin: 0;
}

.data-health-strip-meta dd {
  color: var(--ink);
  font-weight: 700;
}

.data-health-strip-link {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.data-status-items {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.data-status-badge {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(110, 77, 37, 0.18);
  border-radius: 999px;
  background: rgba(251, 247, 238, 0.82);
  color: var(--brown);
  font-size: 0.76rem;
  line-height: 1.2;
}

.data-status-badge strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 750;
}

.data-status-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
}

.data-status-badge.is-good {
  border-color: rgba(15, 95, 69, 0.24);
  background: rgba(15, 95, 69, 0.07);
  color: var(--green-dark);
}

.data-status-badge.is-partial {
  border-color: rgba(177, 132, 59, 0.36);
  background: rgba(177, 132, 59, 0.1);
}

.data-status-badge.is-muted {
  background: rgba(104, 112, 101, 0.08);
  color: var(--muted);
}

.data-status-note {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-footer p {
  margin: 0;
}

.card-footer a {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-weight: 750;
  text-decoration-color: rgba(15, 95, 69, 0.42);
  text-underline-offset: 4px;
}

.racing-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.racing-visual::before {
  position: absolute;
  inset: 8% 3% 0;
  background: radial-gradient(circle, rgba(110, 77, 37, 0.16), transparent 68%);
  content: "";
}

.racing-visual img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.76;
  mix-blend-mode: multiply;
}

.racecards-view {
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.racecards-heading,
.tracks-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--gold);
}

.racecards-date,
.tracks-date {
  margin: 0 0 2px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.racecards-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.predictions-view {
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.data-health-view {
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.data-health-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
}

.data-health-heading h1 {
  margin: 4px 0 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.05;
}

.data-health-date {
  margin: 0 0 2px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.data-health-content {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.data-health-message,
.data-health-overview,
.data-health-section {
  padding: 14px 16px;
  border: 1px solid rgba(177, 132, 59, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.86);
}

.data-health-message {
  margin: 0;
}

.data-health-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.data-health-overview-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brown);
}

.data-health-overview-status strong {
  color: var(--green-dark);
}

.data-health-overview-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
}

.data-health-overview-meta div,
.data-health-coverage-panel dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.data-health-overview-meta dt,
.data-health-overview-meta dd,
.data-health-coverage-panel dt,
.data-health-coverage-panel dd {
  margin: 0;
}

.data-health-overview-meta dt,
.data-health-coverage-panel dt {
  color: var(--muted);
  font-size: 0.74rem;
}

.data-health-overview-meta dd,
.data-health-coverage-panel dd {
  color: var(--ink);
  font-weight: 750;
  text-align: right;
}

.data-health-section h2,
.data-health-coverage-panel h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.data-health-section h2 {
  font-size: 1.14rem;
}

.data-health-family-grid,
.data-health-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.data-health-family,
.data-health-coverage-panel {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(110, 77, 37, 0.16);
  border-radius: 8px;
  background: rgba(251, 247, 238, 0.82);
}

.data-health-family.is-good {
  border-color: rgba(15, 95, 69, 0.22);
  background: rgba(15, 95, 69, 0.06);
}

.data-health-family.is-partial {
  border-color: rgba(177, 132, 59, 0.34);
  background: rgba(177, 132, 59, 0.09);
}

.data-health-family.is-muted {
  background: rgba(104, 112, 101, 0.06);
}

.data-health-family span,
.data-health-family strong {
  display: block;
}

.data-health-family span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.data-health-family strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.84rem;
}

.data-health-coverage-panel h3 {
  font-size: 1rem;
}

.data-health-coverage-panel dl {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
}

.predictions-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
}

.predictions-heading h1 {
  margin: 4px 0 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.05;
}

.predictions-date {
  margin: 0 0 2px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.predictions-status {
  margin-top: 12px;
}

.predictions-summary,
.predictions-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.prediction-summary-card {
  padding: 14px 16px;
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 8px 20px rgba(68, 45, 20, 0.07);
}

.prediction-summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.prediction-summary-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.2;
}

.prediction-summary-heading p {
  max-width: 48%;
  margin: 0;
  color: var(--brown);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
}

.prediction-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.prediction-metrics div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(110, 77, 37, 0.16);
  border-radius: 7px;
  background: rgba(251, 247, 238, 0.74);
}

.prediction-metrics span,
.prediction-metrics strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prediction-metrics span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.prediction-metrics strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.25;
}

.prediction-caveats,
.prediction-withheld-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.prediction-caveats p,
.prediction-withheld-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

.prediction-caveats p + p {
  margin-top: 5px;
}

.prediction-withheld-summary h3 {
  margin: 0 0 5px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

.prediction-reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.prediction-reason-list span {
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(177, 132, 59, 0.3);
  border-radius: 999px;
  background: rgba(177, 132, 59, 0.09);
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prediction-track {
  overflow: hidden;
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 8px 20px rgba(68, 45, 20, 0.07);
}

.prediction-track-toggle {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(216, 200, 170, 0.78);
  background: rgba(15, 95, 69, 0.06);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.prediction-track.is-open .prediction-track-toggle {
  background: rgba(15, 95, 69, 0.1);
}

.prediction-track-toggle:hover,
.prediction-track-toggle:focus-visible {
  background: rgba(15, 95, 69, 0.12);
}

.prediction-track-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.prediction-track-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.prediction-track-title h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.prediction-track-summary {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 750;
}

.prediction-track-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prediction-track-summary span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.prediction-toggle-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid rgba(15, 95, 69, 0.24);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.prediction-track-list {
  display: grid;
}

.prediction-race-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 10px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(216, 200, 170, 0.78);
  color: inherit;
  text-decoration: none;
}

.prediction-race-card:last-child {
  border-bottom: 0;
}

a.prediction-race-card:hover,
a.prediction-race-card:focus-visible {
  background: rgba(15, 95, 69, 0.06);
}

a.prediction-race-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.prediction-race-header,
.prediction-winner,
.prediction-top-runners {
  min-width: 0;
  grid-column: 1 / 2;
}

.prediction-race-header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.prediction-time {
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.2;
}

.prediction-race-details,
.prediction-race-meta {
  min-width: 0;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.prediction-race-details {
  flex-direction: column;
  gap: 4px;
}

.prediction-race-details strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.25;
}

.prediction-race-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.prediction-race-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.prediction-race-meta span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.prediction-winner {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 95, 69, 0.18);
  border-radius: 7px;
  background: rgba(15, 95, 69, 0.06);
}

.prediction-winner-label,
.prediction-top-runners-label {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.prediction-winner-runner {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prediction-winner-runner strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-size: 1rem;
}

.prediction-trap {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 77, 37, 0.35);
  border-radius: 999px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  font-weight: 800;
}

.prediction-winner-meta,
.prediction-odds-history,
.prediction-top-runners {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.prediction-winner-meta span,
.prediction-top-runners span:not(.prediction-top-runners-label) {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(110, 77, 37, 0.18);
  border-radius: 999px;
  background: rgba(251, 247, 238, 0.82);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prediction-odds-history span {
  min-width: 74px;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(177, 132, 59, 0.28);
  border-radius: 7px;
  background: rgba(251, 247, 238, 0.86);
}

.prediction-odds-history small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.prediction-odds-history strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.1;
}

.prediction-top-runners {
  align-items: center;
}

.prediction-arrow {
  grid-column: 2 / 3;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
}

.tracks-view {
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.trainers-view,
.greyhounds-view {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.tracks-intro,
.tracks-controls,
.track-profile,
.trainers-intro,
.trainers-controls,
.trainers-caveats,
.greyhounds-controls,
.greyhounds-caveats {
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 8px 20px rgba(68, 45, 20, 0.07);
}

.tracks-intro {
  margin-top: 14px;
  padding: 14px 16px;
}

.tracks-intro p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
}

.tracks-intro p + p {
  margin-top: 6px;
}

.trainers-intro,
.greyhounds-caveats {
  margin-top: 14px;
  padding: 14px 16px;
}

.trainers-intro p,
.greyhounds-caveats p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
}

.greyhounds-caveats p + p {
  margin-top: 6px;
}

.tracks-source-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.tracks-controls,
.trainers-controls,
.greyhounds-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
}

.trainers-controls,
.greyhounds-controls {
  flex-wrap: wrap;
}

.trainers-pagination,
.greyhounds-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(177, 132, 59, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.76);
}

.tracks-search,
.trainers-search,
.trainers-sort,
.trainers-page-size,
.greyhounds-search,
.greyhounds-filter,
.greyhounds-sort,
.greyhounds-page-size {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.trainers-sort,
.greyhounds-filter,
.greyhounds-sort {
  min-width: 220px;
}

.trainers-page-size,
.greyhounds-page-size {
  min-width: 150px;
}

.tracks-search input,
.trainers-search input,
.trainers-sort select,
.trainers-page-size select,
.greyhounds-search input,
.greyhounds-filter select,
.greyhounds-sort select,
.greyhounds-page-size select {
  min-height: 38px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(177, 132, 59, 0.58);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.tracks-search input:focus,
.trainers-search input:focus,
.trainers-sort select:focus,
.trainers-page-size select:focus,
.greyhounds-search input:focus,
.greyhounds-filter select:focus,
.greyhounds-sort select:focus,
.greyhounds-page-size select:focus {
  border-color: var(--green);
  outline: 2px solid rgba(15, 95, 69, 0.18);
}

.trainers-pagination-status,
.greyhounds-pagination-status {
  flex: 1 1 220px;
  margin: 0;
  color: var(--brown);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: center;
}

.trainers-page-actions,
.greyhounds-page-actions {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.tracks-filters,
.trainers-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.track-filter,
.track-card-action,
.trainer-filter,
.trainer-page-button,
.greyhound-page-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 95, 69, 0.3);
  border-radius: 6px;
  background: rgba(15, 95, 69, 0.08);
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.track-filter:hover,
.track-filter:focus-visible,
.track-filter.is-active,
.track-card-action:hover,
.track-card-action:focus-visible,
.trainer-filter:hover,
.trainer-filter:focus-visible,
.trainer-filter.is-active,
.trainer-page-button:hover,
.trainer-page-button:focus-visible,
.greyhound-page-button:hover,
.greyhound-page-button:focus-visible {
  background: rgba(15, 95, 69, 0.14);
}

.track-filter:focus-visible,
.track-card-action:focus-visible,
.trainer-filter:focus-visible,
.trainer-page-button:focus-visible,
.greyhound-page-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.trainer-page-button:disabled,
.greyhound-page-button:disabled {
  cursor: default;
  opacity: 0.48;
}

.tracks-list,
.trainers-list,
.greyhounds-list {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.trainers-list,
.greyhounds-list {
  overflow-x: auto;
}

.trainers-heading,
.greyhounds-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--gold);
}

.trainers-date,
.greyhounds-date {
  margin: 0 0 2px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.trainers-status,
.greyhounds-status {
  margin-top: 12px;
}

.trainers-caveats {
  margin-top: 10px;
  padding: 14px 16px;
  border-left: 3px solid rgba(177, 132, 59, 0.9);
  box-shadow: none;
}

.trainers-caveats h2 {
  margin: 0 0 8px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.trainers-caveats ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

.trainers-caveats li {
  overflow-wrap: anywhere;
}

.trainers-table,
.greyhounds-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 8px 20px rgba(68, 45, 20, 0.07);
  overflow: hidden;
}

.trainers-table th,
.trainers-table td,
.greyhounds-table th,
.greyhounds-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(216, 200, 170, 0.72);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.trainers-table thead th,
.greyhounds-table thead th {
  background: rgba(15, 95, 69, 0.08);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trainers-table tbody tr:last-child th,
.trainers-table tbody tr:last-child td,
.greyhounds-table tbody tr:last-child th,
.greyhounds-table tbody tr:last-child td {
  border-bottom: 0;
}

.trainers-table tbody th strong,
.greyhounds-table tbody th strong {
  display: block;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.trainer-note,
.greyhound-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tracks-section h2 {
  margin: 0 0 10px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.track-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.track-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 8px 20px rgba(68, 45, 20, 0.07);
}

.track-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.track-card-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.14;
}

.track-card-official,
.track-card-location,
.track-card-summary,
.track-caveat-note,
.track-profile-location,
.track-profile-summary,
.track-profile-copy {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.track-card-official,
.track-card-location,
.track-profile-location {
  margin: 6px 0 0;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 750;
}

.track-card-summary {
  flex: 1 1 auto;
}

.track-caveat-note {
  padding: 10px;
  border-left: 3px solid rgba(177, 132, 59, 0.85);
  background: rgba(177, 132, 59, 0.08);
  color: var(--brown);
  font-size: 0.86rem;
  font-weight: 650;
}

.track-caveat-note.is-hold {
  border-left-color: rgba(95, 67, 15, 0.72);
  background: rgba(95, 67, 15, 0.08);
}

.track-card-action {
  flex: 0 0 auto;
  align-self: flex-start;
}

.track-status-pill,
.track-field-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(15, 95, 69, 0.2);
  border-radius: 999px;
  background: rgba(15, 95, 69, 0.08);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.track-status-pill.is-caveat,
.track-field-status.is-reported {
  border-color: rgba(177, 132, 59, 0.45);
  background: rgba(177, 132, 59, 0.12);
  color: var(--brown);
}

.track-status-pill.is-hold {
  border-color: rgba(112, 90, 60, 0.35);
  background: rgba(112, 90, 60, 0.1);
  color: var(--muted);
}

.track-detail {
  margin-top: 16px;
}

.track-profile {
  padding: 18px;
}

.track-profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
}

.track-profile-heading h2 {
  margin: 4px 0 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.track-profile-summary {
  margin-top: 14px;
  color: var(--brown);
  font-weight: 700;
}

.track-profile-copy {
  margin-top: 12px;
}

.track-profile-facts {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
}

.track-profile-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 200, 170, 0.72);
}

.track-profile-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.track-profile-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: right;
}

.track-field-status {
  margin-left: 8px;
  vertical-align: middle;
}

.track-verification {
  margin-top: 16px;
  padding: 12px;
  border-left: 3px solid rgba(177, 132, 59, 0.8);
  background: rgba(177, 132, 59, 0.08);
}

.track-verification h3 {
  margin: 0 0 8px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.track-verification ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

.track-verification li + li {
  margin-top: 4px;
}

.legal-view {
  width: min(820px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.legal-card {
  padding: 24px;
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: var(--shadow);
}

.legal-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
}

.legal-heading h1 {
  margin: 4px 0 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.05;
}

.legal-section {
  margin-top: 18px;
}

.legal-section h2 {
  margin: 0 0 8px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

.legal-section p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-section p + p {
  margin-top: 10px;
}

.racecard-track {
  overflow: hidden;
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 8px 20px rgba(68, 45, 20, 0.07);
}

.racecard-track-toggle {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  background: linear-gradient(90deg, rgba(15, 95, 69, 0.11), rgba(177, 132, 59, 0.1));
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.racecard-track.is-open .racecard-track-toggle {
  border-bottom: 1px solid var(--line);
}

.racecard-track-toggle:hover,
.racecard-track-toggle:focus-visible {
  background: linear-gradient(90deg, rgba(15, 95, 69, 0.16), rgba(177, 132, 59, 0.13));
}

.racecard-track-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.racecard-track-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.racecard-track-title h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.1;
}

.racecard-track-summary {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 750;
}

.racecard-track-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.racecard-track-summary span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.racecard-toggle-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid rgba(15, 95, 69, 0.24);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.racecard-track-list {
  display: grid;
}

.racecard-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(216, 200, 170, 0.78);
  text-decoration: none;
}

.racecard-row:last-child {
  border-bottom: 0;
}

.racecard-row:hover,
.racecard-row:focus-visible {
  background: rgba(15, 95, 69, 0.06);
}

.racecard-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.racecard-row-no-time {
  grid-template-columns: minmax(0, 1fr) 22px;
}

.racecard-time {
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1;
}

.racecard-details {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.racecard-details strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.94rem;
}

.racecard-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.racecard-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.racecard-meta span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.racecard-arrow {
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

.racecards-message {
  margin-top: 0;
}

.results-view,
.odds-movers-view {
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.results-heading,
.odds-movers-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--gold);
}

.results-date,
.odds-movers-date {
  margin: 0 0 2px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.results-list,
.odds-movers-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.result-track,
.mover-track {
  overflow: hidden;
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 8px 20px rgba(68, 45, 20, 0.07);
}

.result-track-toggle,
.mover-track-toggle {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  background: linear-gradient(90deg, rgba(15, 95, 69, 0.11), rgba(177, 132, 59, 0.1));
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.result-track.is-open .result-track-toggle,
.mover-track.is-open .mover-track-toggle {
  border-bottom: 1px solid var(--line);
}

.result-track-toggle:hover,
.result-track-toggle:focus-visible,
.mover-track-toggle:hover,
.mover-track-toggle:focus-visible {
  background: linear-gradient(90deg, rgba(15, 95, 69, 0.16), rgba(177, 132, 59, 0.13));
}

.result-track-toggle:focus-visible,
.mover-track-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.result-track-title,
.mover-track-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.result-track-title h2,
.mover-track-title h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.1;
}

.result-track-summary,
.mover-track-summary {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 750;
}

.result-track-summary span,
.mover-track-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.result-track-summary span + span::before,
.mover-track-summary span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.result-toggle-icon,
.mover-toggle-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid rgba(15, 95, 69, 0.24);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.result-track-list,
.mover-track-list {
  display: grid;
}

.result-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 0.78fr) minmax(190px, 1.22fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(216, 200, 170, 0.78);
  text-decoration: none;
}

.result-row:last-child {
  border-bottom: 0;
}

a.result-row:hover,
a.result-row:focus-visible {
  background: rgba(15, 95, 69, 0.06);
}

a.result-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.result-row-no-time {
  grid-template-columns: minmax(0, 0.78fr) minmax(190px, 1.22fr) 22px;
}

.result-time {
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1;
}

.result-details {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.result-details strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.94rem;
}

.result-meta,
.result-outcome {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.result-meta span,
.result-outcome span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.result-meta span + span::before,
.result-outcome span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.result-winner {
  color: var(--ink);
  font-weight: 750;
}

.result-arrow {
  grid-column: -2 / -1;
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

.results-message {
  margin-top: 0;
}

.mover-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(150px, 0.8fr) minmax(120px, 0.7fr) minmax(190px, 1.15fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(216, 200, 170, 0.78);
  text-decoration: none;
}

.mover-row:last-child {
  border-bottom: 0;
}

a.mover-row:hover,
a.mover-row:focus-visible {
  background: rgba(15, 95, 69, 0.06);
}

a.mover-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.mover-row-no-time {
  grid-template-columns: minmax(150px, 0.8fr) minmax(120px, 0.7fr) minmax(190px, 1.15fr) 22px;
}

.mover-time {
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1;
}

.mover-runner {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mover-runner strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92rem;
}

.mover-trap {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 77, 37, 0.35);
  border-radius: 999px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  font-weight: 800;
}

.mover-race,
.mover-prices {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.mover-race span,
.mover-prices span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mover-race span + span::before,
.mover-prices span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.mover-prices span:first-child {
  color: var(--ink);
  font-weight: 750;
}

.mover-arrow {
  grid-column: -2 / -1;
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

.odds-movers-message {
  margin-top: 0;
}

.tracks-message {
  margin-top: 0;
}

.race-detail-view {
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.race-detail-back {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration-color: rgba(15, 95, 69, 0.42);
  text-underline-offset: 4px;
}

.race-detail-content {
  overflow: hidden;
  border: 1px solid rgba(177, 132, 59, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 8px 20px rgba(68, 45, 20, 0.07);
}

.race-detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 95, 69, 0.11), rgba(177, 132, 59, 0.1));
}

.race-detail-heading > div {
  min-width: 0;
}

.race-detail-heading-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 750;
}

.race-detail-heading-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.race-detail-heading-meta span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.race-detail-time {
  margin: 0 0 2px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 750;
}

.race-detail-status {
  margin: 12px 14px 0;
}

.race-detail-status + .race-detail-meta {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.race-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 12px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(216, 200, 170, 0.88);
  border-radius: var(--radius);
  background: rgba(251, 247, 238, 0.58);
}

.race-summary div {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid rgba(216, 200, 170, 0.78);
}

.race-summary div:last-child {
  border-right: 0;
}

.race-summary dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.race-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.race-detail-notice {
  margin: 12px 14px 0;
  padding: 9px 10px;
  border: 1px solid rgba(177, 132, 59, 0.34);
  border-radius: var(--radius);
  background: rgba(177, 132, 59, 0.08);
  color: var(--brown);
  font-size: 0.84rem;
  line-height: 1.35;
}

.race-detail-notice.is-muted {
  background: rgba(104, 112, 101, 0.08);
  color: var(--muted);
}

.race-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.race-detail-meta div {
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid rgba(216, 200, 170, 0.78);
}

.race-detail-meta div:last-child {
  border-right: 0;
}

.race-detail-meta dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.race-detail-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.race-detail-section-title {
  margin: 0;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(216, 200, 170, 0.78);
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.race-detail-message {
  margin: 14px;
}

.runner-list {
  display: grid;
}

.runner-list-header,
.runner-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(180px, 1.25fr) minmax(180px, 1fr) minmax(150px, 0.85fr);
  align-items: center;
  gap: 14px;
}

.runner-list-header {
  min-height: 34px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(216, 200, 170, 0.78);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.runner-row {
  min-height: 58px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(216, 200, 170, 0.78);
}

.runner-row:last-child {
  border-bottom: 0;
}

.runner-row-no-trap {
  grid-template-columns: minmax(180px, 1.25fr) minmax(180px, 1fr) minmax(150px, 0.85fr);
}

.runner-row.is-non-runner {
  background: rgba(104, 112, 101, 0.06);
}

.runner-trap {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 77, 37, 0.35);
  border-radius: 999px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 800;
}

.runner-details {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.runner-details strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.96rem;
}

.runner-meta,
.runner-odds,
.runner-result {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.runner-odds,
.runner-result {
  align-content: center;
}

.runner-meta span,
.runner-odds span,
.runner-result span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.runner-meta span + span::before,
.runner-result span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.runner-price,
.runner-sp,
.runner-odds-state {
  padding: 3px 7px;
  border: 1px solid rgba(110, 77, 37, 0.18);
  border-radius: 999px;
  background: rgba(251, 247, 238, 0.82);
  color: var(--ink);
  font-weight: 750;
}

.runner-sp {
  border-color: rgba(15, 95, 69, 0.22);
  background: rgba(15, 95, 69, 0.07);
  color: var(--green-dark);
}

.runner-odds-state {
  color: var(--muted);
  font-weight: 700;
}

.runner-result {
  color: var(--brown);
  font-weight: 750;
}

.site-footer {
  padding: 0 0 22px;
}

.dog-divider-small {
  width: min(760px, calc(100% - 48px));
}

.dog-divider-small img {
  width: 54px;
}

.footer-inner {
  width: min(980px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: auto;
    padding: 10px 0 8px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .header-logo {
    display: block;
    height: 64px;
    width: auto;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .site-nav a {
    padding: 8px 0 9px;
  }

  .masthead {
    height: 132px;
    margin-top: 10px;
  }

  .ad-slot-leaderboard {
    min-height: 78px;
    margin-top: 14px;
    margin-bottom: 16px;
  }

  .home-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ad-slot-home {
    margin-bottom: 0;
  }

  .home-content > :not(.ad-slot-home) {
    min-height: auto;
  }

  .racing-visual {
    order: 2;
    min-height: 260px;
    border-radius: var(--radius);
  }

  .racing-visual img {
    width: 100%;
    height: 260px;
    margin: 0 auto;
    object-fit: contain;
    opacity: 0.58;
  }

  .racecards-view,
  .results-view,
  .odds-movers-view,
  .predictions-view,
  .data-health-view,
  .tracks-view,
  .trainers-view,
  .greyhounds-view,
  .legal-view,
  .race-detail-view {
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .masthead,
  .dog-divider,
  .ad-slot,
  .home-content,
  .racecards-view,
  .results-view,
  .odds-movers-view,
  .predictions-view,
  .data-health-view,
  .tracks-view,
  .trainers-view,
  .greyhounds-view,
  .legal-view,
  .race-detail-view,
  .footer-inner {
    width: min(100% - 24px, 1080px);
  }

  .masthead-logo {
    width: min(220px, 76vw);
    max-height: 132px;
  }

  .dog-divider {
    gap: 10px;
  }

  .dog-divider img {
    width: 58px;
  }

  .ad-slot {
    min-height: 64px;
    padding: 10px;
  }

  .ad-slot span {
    font-size: 0.68rem;
  }

  .ad-slot small {
    font-size: 0.74rem;
  }

  .ad-slot-footer {
    margin-bottom: 14px;
  }

  .next-races-card {
    padding: 18px;
  }

  .today-status-navigation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .today-status-card {
    min-height: 78px;
    grid-template-columns: 20px minmax(0, 1fr) 14px;
    gap: 8px;
    padding: 10px;
  }

  .today-status-card-title {
    font-size: 0.94rem;
  }

  .today-status-card-status {
    font-size: 0.7rem;
  }

  .legal-card {
    padding: 18px;
  }

  .predictions-card {
    padding: 18px;
  }

  .card-heading,
  .card-footer,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .race-row {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 62px;
    padding: 10px 0;
  }

  .data-status-panel {
    padding: 8px;
  }

  .data-status-items {
    align-items: flex-start;
  }

  .data-status-badge {
    max-width: 100%;
    border-radius: 8px;
  }

  .data-health-strip,
  .data-health-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-health-overview-meta {
    justify-content: flex-start;
  }

  .data-health-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .race-time {
    font-size: 1.12rem;
  }

  .racecards-heading,
  .predictions-heading,
  .odds-movers-heading,
  .tracks-heading,
  .trainers-heading,
  .greyhounds-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .tracks-controls,
  .trainers-controls,
  .trainers-pagination,
  .greyhounds-controls,
  .greyhounds-pagination,
  .track-profile-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trainers-pagination-status,
  .greyhounds-pagination-status {
    text-align: left;
  }

  .tracks-filters,
  .trainers-filters {
    justify-content: flex-start;
  }

  .track-profile-facts div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .track-profile-facts dd {
    text-align: left;
  }

  .racecards-date,
  .results-date,
  .odds-movers-date,
  .predictions-date,
  .tracks-date,
  .trainers-date,
  .greyhounds-date {
    text-align: left;
  }

  .prediction-summary-heading {
    flex-direction: column;
    gap: 6px;
  }

  .prediction-summary-heading p {
    max-width: 100%;
    text-align: left;
  }

  .prediction-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .prediction-track-toggle {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 10px 11px;
  }

  .prediction-track-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .prediction-race-card {
    padding: 10px 11px;
  }

  .prediction-race-header {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
  }

  .prediction-winner {
    padding: 9px;
  }

  .prediction-odds-history span {
    min-width: min(74px, 100%);
  }

  .trainers-table,
  .greyhounds-table,
  .trainers-table thead,
  .greyhounds-table thead,
  .trainers-table tbody,
  .greyhounds-table tbody,
  .trainers-table tr,
  .greyhounds-table tr,
  .trainers-table th,
  .greyhounds-table th,
  .trainers-table td {
    min-width: 0;
    display: block;
  }

  .greyhounds-table td {
    min-width: 0;
    display: block;
  }

  .trainers-table,
  .greyhounds-table {
    min-width: 0;
  }

  .trainers-table thead,
  .greyhounds-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .trainers-table tr,
  .greyhounds-table tr {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(216, 200, 170, 0.72);
  }

  .trainers-table tbody tr:last-child,
  .greyhounds-table tbody tr:last-child {
    border-bottom: 0;
  }

  .trainers-table th,
  .trainers-table td,
  .greyhounds-table th,
  .greyhounds-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .trainers-table td::before,
  .greyhounds-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .racecard-track-toggle,
  .result-track-toggle,
  .mover-track-toggle {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px;
    padding: 10px 11px;
  }

  .racecard-track-title,
  .result-track-title,
  .mover-track-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .racecard-row {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 8px 11px;
  }

  .racecard-row-no-time {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .racecard-details,
  .result-details {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .result-row {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 11px;
  }

  .result-row-no-time {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .result-outcome {
    grid-column: 2 / 3;
  }

  .result-row-no-time .result-outcome {
    grid-column: 1 / 2;
  }

  .result-arrow {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
  }

  .result-row-no-time .result-arrow {
    grid-column: 2 / 3;
  }

  .mover-row {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 11px;
  }

  .mover-row-no-time {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .mover-runner {
    align-items: flex-start;
  }

  .mover-race,
  .mover-prices {
    grid-column: 2 / 3;
  }

  .mover-row-no-time .mover-race,
  .mover-row-no-time .mover-prices {
    grid-column: 1 / 2;
  }

  .mover-arrow {
    grid-column: 3 / 4;
    grid-row: 1 / span 3;
  }

  .mover-row-no-time .mover-arrow {
    grid-column: 2 / 3;
  }

  .track-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .race-detail-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .race-detail-heading-meta {
    align-items: flex-start;
  }

  .race-summary {
    grid-template-columns: 1fr 1fr;
    margin: 12px 11px 0;
  }

  .race-summary div {
    border-bottom: 1px solid rgba(216, 200, 170, 0.78);
  }

  .race-summary div:nth-child(2n) {
    border-right: 0;
  }

  .race-summary div:last-child {
    border-bottom: 0;
  }

  .race-detail-notice {
    margin: 12px 11px 0;
  }

  .race-detail-meta {
    grid-template-columns: 1fr 1fr;
  }

  .race-detail-meta div:nth-child(2n) {
    border-right: 0;
  }

  .runner-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: flex-start;
    gap: 9px;
    padding: 10px 11px;
  }

  .runner-list-header {
    display: none;
  }

  .runner-row-no-trap {
    grid-template-columns: minmax(0, 1fr);
  }

  .runner-trap {
    width: 28px;
    height: 28px;
  }

  .runner-odds,
  .runner-result {
    grid-column: 2 / 3;
  }

  .runner-row-no-trap .runner-odds,
  .runner-row-no-trap .runner-result {
    grid-column: 1 / 2;
  }

  .runner-price,
  .runner-sp,
  .runner-odds-state {
    border-radius: 8px;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

