@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
/* Stockville JNL Oblique is a licensed font: used if it's installed on the viewer's computer,
   or if its file is on the server (public/fonts/brand/ or data/fonts/). Otherwise the fallback below is used. */
@font-face {
  font-family: "Stockville Oblique";
  src: local("Stockville JNL Oblique"), local("StockvilleJNL-Oblique"), local("Stockville Oblique"), local("StockvilleOblique"),
       url("fonts/brand/stockville-oblique.woff2");
  font-display: swap;
}
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Lander athletics: brand blue, the wordmark's gold drop shadow, and its yellow. */
:root {
  --blue: #003599;
  --blue-deep: #002a7a;
  --gold: #cf9718;
  --yellow: #fddb32;
  --paper: #f3f5fa;
  --card: #ffffff;
  --ink: #0d1a3a;
  --muted: #5b678a;
  --faint: #8d97b3;
  --rule: #dfe4f0;
  --rule-strong: #c6cee2;
  --tick: #d3daeb;
  --tick-q: #9fb0d8;
  --win: #11804a;
  --loss: #c0392b;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slant: skewX(-9deg);
  --max: 1480px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.4 var(--body); font-variant-numeric: tabular-nums; }
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

/* ---------- header band (dark blue: the only place the outlined Bearcat and white wordmark go) ---------- */
.band {
  background: var(--blue);
  color: #fff;
  border-bottom: 6px solid var(--gold);
  box-shadow: 0 3px 0 var(--yellow);
  margin-bottom: 3px;
}
.band-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px clamp(14px, 3vw, 32px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.crest { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.bearcat { height: 74px; width: auto; }
.brand-name {
  font: 400 44px/1 "Stockville Oblique", var(--display); color: #fff; white-space: nowrap;
  text-shadow: 3px 3px 0 var(--gold); letter-spacing: 0.01em;
}
/* Without the licensed font, fake the oblique with the athletic fallback face. */
.no-brand-font .brand-name { font-weight: 800; text-transform: uppercase; transform: var(--slant); font-size: 46px; }
.band-title { flex: 1 1 auto; min-width: 220px; }
.band-title h1 {
  font: 800 clamp(30px, 3.6vw, 46px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  transform: var(--slant); transform-origin: left bottom; text-shadow: 3px 3px 0 var(--gold);
}
.band-meta { margin-top: 6px; font-size: 13px; color: #c9d6ff; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.sources { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.src { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.src i { width: 7px; height: 7px; border-radius: 50%; background: #7cf0b0; }
.src.bad { color: #fff; }
.src.bad i { background: #ffb35c; }
.band-actions { display: flex; gap: 8px; }
.btn { border: 2px solid rgba(255,255,255,.7); background: transparent; color: #fff; padding: 6px 12px; border-radius: 3px; cursor: pointer; font-weight: 700; font-size: 14px; }
.btn:hover, .btn[aria-expanded="true"] { background: #fff; color: var(--blue); border-color: #fff; }
.btn-gold { border-color: var(--yellow); }
.btn-gold:hover { background: var(--yellow); color: var(--blue-deep); border-color: var(--yellow); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- upcoming matches (hidden until asked for) ---------- */
.schedule { max-width: var(--max); margin: 0 auto; padding: 16px clamp(14px, 3vw, 32px) 0; }
.schedule[hidden] { display: none; }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.day-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: start; }
.day { font: 800 19px/1 var(--display); color: var(--blue); text-transform: uppercase; transform: var(--slant); transform-origin: left; padding-top: 9px; }
.games-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 6px; }
.game { background: var(--card); border-left: 5px solid var(--team, var(--blue)); padding: 7px 10px; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline; box-shadow: 0 1px 0 var(--rule); }
.game .time { font: 800 17px/1 var(--display); color: var(--blue); }
.game .who { font-weight: 700; }
.game .vs { grid-column: 2; color: var(--muted); font-size: 13px; }
.game .soon { color: var(--gold); font-weight: 700; }
.empty { color: var(--muted); }

/* ---------- the board ---------- */
.board { max-width: var(--max); margin: 0 auto; padding: 18px clamp(14px, 3vw, 32px) 10px; display: flex; gap: 18px; align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.loading { color: var(--muted); }

.team { background: var(--card); box-shadow: 0 1px 0 var(--rule-strong), 0 0 0 1px var(--rule); }
.team-bar {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 14px 6px 0;
  background: var(--blue); color: #fff; position: relative;
}
.team-bar::before { content: ""; align-self: stretch; width: 10px; background: var(--team, var(--yellow)); box-shadow: inset -2px 0 0 rgba(0,0,0,.15); }
.team-name {
  flex: 1; font: 800 25px/1 var(--display); text-transform: uppercase; letter-spacing: 0.015em;
  transform: var(--slant); transform-origin: left; text-shadow: 2px 2px 0 var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px;
}
.team-rec { text-align: right; line-height: 1; white-space: nowrap; }
.team-rec b { font: 800 26px/1 var(--display); color: var(--yellow); transform: var(--slant); display: inline-block; }
.team-rec small { display: block; font-size: 11px; color: #c9d6ff; margin-top: 2px; }

/* table-like rows */
.cols, .row {
  display: grid; align-items: center;
  grid-template-columns: 80px minmax(0, 1fr) 84px 84px 54px 14px;
  gap: 0 10px; padding: 0 12px;
}
.cols { font-size: 11.5px; color: var(--faint); padding-top: 6px; padding-bottom: 3px; border-bottom: 1px solid var(--rule); }
.cols span:nth-child(4), .cols span:nth-child(5) { text-align: right; }
.row { width: 100%; min-height: 36px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.row:hover { background: #f6f8fd; }
.row[aria-expanded="true"] { background: #eef2fb; }
.lg { font: 800 17px/1 var(--display); color: var(--blue); text-transform: uppercase; transform: var(--slant); white-space: nowrap; }
.lg.cont { visibility: hidden; }
.lg-short { display: none; }
.league-start { border-top: 2px solid var(--rule-strong); }
.stage { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.stage small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.row.done .stage, .row.done .place, .row.done .rec { color: var(--faint); }
.row.done .stage small { color: var(--faint); }
.row.done .ladder i.us { background: #e6c766; }
.place { text-align: right; white-space: nowrap; font: 800 22px/1 var(--display); color: var(--ink); }
.place sup { font-size: 12px; vertical-align: 8px; margin-left: 1px; }
.place small { font: 400 12px/1 var(--body); color: var(--muted); margin-left: 3px; }
.place.word { font-size: 17px; }
.place .tie { font-size: 15px; margin-right: 1px; }
.place .up, .place .down { font: 700 11px/1 var(--body); margin-left: 4px; vertical-align: 6px; }
.place .up { color: var(--win); } .place .down { color: var(--loss); }
.rec { text-align: right; font: 800 21px/1 var(--display); white-space: nowrap; }
.rec.site { text-decoration: underline dashed 1.5px; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.rec .flag { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); vertical-align: 9px; margin-left: 3px; }
.caret { width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); justify-self: end; margin-top: -4px; }
.row[aria-expanded="true"] .caret { transform: rotate(-135deg); margin-top: 4px; }

/* ladder: one tick per team in the table, ours in yellow */
.ladder { display: flex; align-items: flex-end; gap: 1px; height: 18px; }
.ladder i { flex: 1 1 0; min-width: 1px; height: 50%; background: var(--tick); }
.ladder.dense { gap: 0; }
.ladder.dense i { min-width: 0; box-shadow: inset -1px 0 0 var(--card); }
.ladder.dense i.us { box-shadow: none; flex-grow: 4; }
.ladder i.q { background: var(--tick-q); }
.ladder i.mate { height: 75%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }
.ladder i.us { height: 100%; background: var(--yellow); box-shadow: inset 0 0 0 1px var(--gold); flex-grow: 2.4; }
.ladder-word { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* expanded detail */
.detail { padding: 10px 12px 14px; background: #f8f9fd; border-bottom: 1px solid var(--rule-strong); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.detail[hidden] { display: none; }
.detail h3 { font: 800 15px/1 var(--display); color: var(--blue); text-transform: uppercase; margin-bottom: 6px; }
.standings { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings th { text-align: left; font-weight: 700; color: var(--faint); font-size: 11.5px; padding: 3px 5px; border-bottom: 1px solid var(--rule-strong); }
.standings td { padding: 4px 5px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.standings .n { text-align: right; }
.standings tr.us td { background: #fff6cf; font-weight: 700; }
.standings tr.us td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.standings .sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.matches { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.matches li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 0 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.matches .vs { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matches .score { white-space: nowrap; }
.chip { width: 20px; height: 20px; display: grid; place-items: center; font: 800 13px/1 var(--display); color: #fff; border-radius: 2px; }
.chip.W { background: var(--win); } .chip.L { background: var(--loss); } .chip.T { background: var(--muted); }
.chip.next { background: none; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--rule-strong); font-size: 10px; }
.matches .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.detail-notes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.detail-notes .warn { color: #8a5a00; }

.foot { max-width: var(--max); margin: 0 auto; padding: 6px clamp(14px, 3vw, 32px) 28px; font-size: 12.5px; color: var(--muted); }
.foot p { max-width: 110ch; }
.foot .flag { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }

@media (min-width: 1800px) { :root { --max: 1880px; } }
@media (max-width: 760px) {
  .day-group { grid-template-columns: 1fr; gap: 4px; }
  .band-inner { gap: 10px 16px; }
  .bearcat { height: 56px; } .brand-name { font-size: 32px; } .no-brand-font .brand-name { font-size: 34px; }
  .board { padding: 12px; }
  .cols { display: none; }
  .row, .cols { grid-template-columns: 56px minmax(0, 1fr) 58px 46px 12px; gap: 0 8px; padding: 0 10px; }
  .ladder, .ladder-word { display: none; }
  .lg-full { display: none; } .lg-short { display: inline; }
  .detail { grid-template-columns: 1fr; overflow-x: auto; }
  .team-name { font-size: 22px; }
}
@media print {
  .band-actions, .schedule { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
