@import url("/weather.css");
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #eaf0f6;
  background: #0b1017;
  color-scheme: dark;
  font-synthesis: none;
  --muted: #93a5b8;
  --line: #273341;
  --accent: #b7ef52;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
a,
summary {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button,
input,
select {
  border: 1px solid #354353;
  border-radius: 8px;
  padding: 11px 13px;
  background: #101924;
  color: inherit;
  min-width: 0;
  max-width: 100%;
}
button:hover,
a.card:hover {
  border-color: var(--accent);
}
button.primary {
  background: var(--accent);
  color: #13210b;
  border-color: var(--accent);
  font-weight: 750;
}
button.primary span {
  margin-left: 20px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
[hidden] {
  display: none !important;
}
.masthead {
  max-width: 1440px;
  margin: auto;
  padding: 23px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.logo img {
  width: 185px;
  height: 52px;
  object-fit: contain;
}
.edition {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.live-label {
  margin-left: auto;
  color: #c2d3bd;
  font-size: 12px;
  white-space: nowrap;
}
.live-label:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 25px 40px 70px;
}
#breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  min-height: 25px;
}
#breadcrumbs a:hover {
  color: var(--accent);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 27px 0 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(29px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 0 0 14px;
}
#subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.quiet-link {
  font-size: 13px;
  border-bottom: 1px solid #617d42;
  padding: 8px 0;
  color: var(--accent);
  white-space: nowrap;
}
#filters {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr auto;
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  background: #121b26;
  padding: 22px;
  border-radius: 12px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--muted);
}
label input,
label select {
  font-size: 14px;
  color: #eaf0f6;
  letter-spacing: normal;
  width: 100%;
}
#notice {
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
  margin: 15px 0 25px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin: 28px 0 17px;
}
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 6px;
}
#weather-updated {
  font-size: 11px;
  color: var(--muted);
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #18232e, #101922);
  padding: 25px;
  display: block;
}
.card h2,
.card h3 {
  margin: 12px 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.card .arrow {
  color: var(--accent);
  font-size: 20px;
  float: right;
}
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 8px;
  border-radius: 4px;
  background: #273a20;
  color: #c6ed9a;
}
.date-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.date-links a,
#races a {
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  background: #131d28;
}
.date-links a:hover,
#races a:hover,
#races a.active {
  color: var(--accent);
  border-color: #739d38;
}
#races {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 0 10px;
  margin-top: 20px;
}
#races a {
  white-space: nowrap;
}
.race {
  margin: 20px 0 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111922;
  overflow: hidden;
}
.race-heading {
  padding: 23px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #151f2b;
}
.race-heading h2 {
  font-size: 23px;
  margin: 9px 0;
  letter-spacing: -0.03em;
}
.race-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0;
}
.official-time {
  text-align: right;
  white-space: nowrap;
}
.official-time strong {
  display: block;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  letter-spacing: -0.03em;
}
.official-time small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #22303d;
}
th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: #0e1620;
}
td {
  font-variant-numeric: tabular-nums;
}
tbody tr:hover {
  background: #192431;
}
.runner-name {
  font-weight: 700;
}
.place {
  font-weight: 750;
}
.place.winner {
  color: var(--accent);
}
.bib {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 30px;
  border-radius: 4px;
  font-weight: 850;
  color: white;
  background: #354654;
}
.bib-1 {
  background: #d9363c;
}
.bib-2 {
  background: #eee;
  color: #111;
}
.bib-3 {
  background: #222;
  color: #eee;
  border: 1px solid #777;
}
.bib-4 {
  background: #156fc6;
}
.bib-5 {
  background: #e8c724;
  color: #171717;
}
.bib-6 {
  background: #219344;
}
.bib-7 {
  background: #222;
  border: 3px solid #eee;
}
.bib-8 {
  background: #e87cb2;
  color: #351d2b;
}
.race-detail {
  padding: 22px;
  border-top: 1px solid var(--line);
}
.race-detail h3 {
  margin: 0 0 16px;
  font-size: 17px;
}
.race-detail p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
details {
  border-top: 1px solid var(--line);
}
summary {
  font-size: 13px;
  padding: 17px 22px;
  color: #becddb;
}
details .scroll {
  padding: 0 6px 12px;
}
.key-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 0 22px 22px;
}
.key-values small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.key-values strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.empty {
  border: 1px dashed #344455;
  border-radius: 12px;
  padding: 35px;
  color: var(--muted);
  line-height: 1.6;
}
.photo-frame {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  max-height: 650px;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-frame.zoomed img {
  width: auto;
  max-width: none;
}
.photo-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.odds-chart {
  height: 260px;
  min-width: 260px;
}
.provider-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.provider-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.odds-empty {
  color: var(--muted);
  font-size: 12px;
}
footer {
  max-width: 1280px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 27px 0;
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
}
footer img {
  width: 135px;
}
footer p {
  line-height: 1.9;
}
footer small {
  font-size: 10px;
}
footer a {
  margin-left: auto;
  color: var(--accent);
}
