:root {
  /* Kentucky blue and white. --ky is the brand; --ky-deep is its pressed state;
     --ky-tint is a wash for light surfaces. */
  --ky: #0033A0;
  --ky-deep: #002273;
  --ky-tint: #E9EFFA;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #14181f;
  --ink-2: #5b6673;
  --ink-3: #8b95a3;
  --line: #e2e7ee;
  --live: #d8232a;
  --win: #0033A0;
  --accent: #0033A0;
  --radius: 12px;
  --wrap: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --card: #171b22;
    --ink: #e8ecf1;
    --ink-2: #9aa5b2;
    --ink-3: #6d7887;
    --line: #262c36;
    --win: #7FB0FF;
    --accent: #7FB0FF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 14px; }

/* ---------------------------------------------------------- header */
.site-header {
  background: var(--ky);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 56px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.brand-text { min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  background: #fff; color: var(--ky); font-weight: 800; font-size: 14px;
  border-radius: 7px; padding: 5px 7px; letter-spacing: .5px;
}
.brand-text strong { display: block; font-size: 15px; line-height: 1.15; letter-spacing: -.2px; white-space: nowrap; }
.brand-text small { display: block; font-size: 11px; color: #a9c4e0; }
.nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.cta-short { display: none; }
.nav a {
  color: #cfe0f2; font-size: 14px; padding: 7px 10px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.nav a.on { color: #fff; background: rgba(255,255,255,.14); }
.nav a.cta { background: #fff; color: var(--ky); font-weight: 650; }
.nav a.cta:hover { background: #e8f0fa; }
@media (max-width: 620px) {
  .brand-text small { display: none; }
  .nav a { padding: 7px 6px; font-size: 12.5px; }
  .nav a.cta { padding: 7px 9px; }
}
@media (max-width: 540px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 430px) {
  .brand-mark { display: none; }
  .brand-text strong { font-size: 14px; }
  .nav { gap: 0; }
  .nav a { padding: 7px 5px; font-size: 12px; }
}

/* ---------------------------------------------------------- datebar */
.datebar {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 0 10px;
}
.datebar-mid { flex: 1; text-align: center; }
.datebar h1 {
  margin: 0; font-size: 20px; letter-spacing: -.35px; font-weight: 700;
}
.today-link { font-size: 12px; color: var(--ink-2); }
.datenav {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-size: 20px; color: var(--ink-2); flex: none;
}
.datenav:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------- controls */
.controls { margin-bottom: 10px; }
.chips {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 550;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--ky); border-color: var(--ky); color: #fff; }
.chip-n { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.controls-row { display: flex; gap: 8px; margin-top: 6px; }
#team-search, #class-filter {
  font: inherit; font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink);
}
#team-search { flex: 1; min-width: 0; }
#class-filter { flex: none; }

.live-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-2); padding: 4px 2px 10px;
}

/* ---------------------------------------------------------- games */
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.game {
  position: relative;
  display: flex; align-items: stretch; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 10px 9px 32px;
}
.game.is-live { border-color: rgba(216,35,42,.45); }
.game.pinned { box-shadow: inset 3px 0 0 var(--accent); }

.star {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 6px;
  font-size: 16px; line-height: 1; color: var(--line);
}
.star:hover { color: var(--ink-3); }
.star.on { color: #f0a500; }

.teams { flex: 1; min-width: 0; display: grid; gap: 3px; }
.row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tname {
  color: var(--ink); font-size: 15.5px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  /* Without these the long names (Christian Academy-Louisville) set the row's
     min-content width and push the whole card past the screen edge instead of
     ellipsising. Flex children don't shrink below min-content by default. */
  flex: 0 1 auto; min-width: 0;
}
.row.win .tname { font-weight: 700; color: var(--win); }
.tclass {
  font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 4px; flex: none; font-weight: 600;
}
.tscore {
  margin-left: auto; font-size: 19px; font-weight: 700; color: var(--ink-2);
  font-variant-numeric: tabular-nums; flex: none; min-width: 30px; text-align: right;
}
.row.win .tscore { color: var(--ink); }

.state {
  flex: none; width: 78px; display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center; gap: 3px; text-align: right;
}
.pill {
  font-size: 11px; font-weight: 750; letter-spacing: .4px;
  border-radius: 5px; padding: 3px 7px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.pill.live { background: var(--live); color: #fff; }
.pill.final { background: var(--line); color: var(--ink-2); }
.pill.sched { background: transparent; color: var(--ink-2); border: 1px solid var(--line); font-weight: 600; }
.pill.off { background: #8b95a3; color: #fff; }
.state .sub { font-size: 11px; color: var(--ink-3); }
.state .ago { font-size: 10.5px; color: var(--ink-3); }

.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  display: inline-block; flex: none; animation: pulse 1.6s infinite;
}
.pill.live .dot { background: #fff; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.no-match { text-align: center; color: var(--ink-2); padding: 30px 0; }

/* ---------------------------------------------------------- empty / cta */
.empty, .cta-band {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  margin: 16px 0;
}
.empty h2, .cta-band h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.3px; }
.empty p, .cta-band p { margin: 0 auto 16px; color: var(--ink-2); max-width: 44ch; font-size: 14.5px; }
/* The ask on an empty team page. It is the whole point of the page, so it gets
   to look like a note rather than more body copy. */
.empty-ask {
  background: var(--bg); border-left: 3px solid var(--ky);
  border-radius: 8px; padding: 12px 14px; text-align: left;
}
.empty-ask strong { color: var(--ink); display: block; margin-bottom: 4px; }
.empty .btn + .btn { margin-left: 8px; }
.empty-note { font-size: 13px !important; opacity: .78; margin-bottom: 0 !important; }
@media (max-width: 420px) {
  .empty .btn { display: block; margin: 0 auto 8px !important; }
}
.btn {
  display: inline-block; background: var(--ky); color: #fff;
  border-radius: 10px; padding: 10px 18px; font-weight: 650; font-size: 14.5px;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--ky-deep); text-decoration: none; }
.btn.big { padding: 13px 26px; font-size: 16px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

/* ---------------------------------------------------------- ads */
.ad { margin: 12px 0; text-align: center; min-height: 60px; }
.ad-label {
  display: block; font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.feed-ad { list-style: none; }

/* ---------------------------------------------------------- team page */
.team-head {
  background: var(--ky); color: #fff; border-radius: var(--radius);
  padding: 20px; margin: 18px 0 14px;
}
.team-head h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.5px; }
.team-meta { color: #a9c4e0; font-size: 14px; }
.record { display: flex; gap: 20px; margin-top: 14px; }
.record div { line-height: 1.2; }
.record b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.record span { font-size: 11px; color: #a9c4e0; text-transform: uppercase; letter-spacing: .6px; }

.sched-table { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sched-table td, .sched-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.sched-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); }
.sched-table tr:last-child td { border-bottom: 0; }
.res { font-weight: 750; font-variant-numeric: tabular-nums; }
.res.w { color: #1a7f37; }
.res.l { color: #b3261e; }

/* ---------------------------------------------------------- teams index */
.class-block { margin: 22px 0; }
.class-block > h2 { font-size: 17px; margin: 0 0 10px; letter-spacing: -.2px; }
.district { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; }
.district h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .7px; color: var(--ink-3); }
.district ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.district a { font-size: 14.5px; }

/* ---------------------------------------------------------- forms */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 16px 0;
}
.card h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.4px; }
.lede { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 5px; }
.field .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-pair { display: grid; grid-template-columns: 1fr 64px; gap: 10px; align-items: end; }
.notice { padding: 13px 15px; border-radius: 10px; margin-bottom: 16px; font-size: 14.5px; }
.notice.ok { background: #e7f6ec; color: #12572c; }
.notice.bad { background: #fdecea; color: #8b1a13; }
@media (prefers-color-scheme: dark) {
  .notice.ok { background: #10301c; color: #7fd6a0; }
  .notice.bad { background: #3a1512; color: #f3a49c; }
}

/* ---------------------------------------------------------- admin */
.admin-grid { display: grid; gap: 10px; }
.sub-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.sub-card .who { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.sub-actions { display: flex; gap: 8px; margin-top: 10px; }
.stat-row { display: flex; gap: 18px; margin: 14px 0; }
.stat-row div b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat-row div span { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); }
.code-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.code-table td, .code-table th { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 1px; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select {
  font: inherit; font-size: 14px; padding: 6px 8px; width: 62px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--ink);
}
.inline-form select { width: auto; }

/* ---------------------------------------------------------- footer */
.site-footer { margin-top: 40px; padding: 26px 0 34px; border-top: 1px solid var(--line); }
.sponsor-strip { text-align: center; margin-bottom: 18px; }
.sponsor-label { display: block; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .8px; color: var(--ink-3); margin-bottom: 8px; }
.sponsor-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sponsor { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 14px; font-size: 13.5px; color: var(--ink); font-weight: 550; }
.foot-links { text-align: center; font-size: 13.5px; color: var(--ink-2); margin: 0 0 8px; }
.fine { text-align: center; font-size: 12px; color: var(--ink-3); max-width: 54ch;
  margin: 0 auto; line-height: 1.5; }

/* Admin score rows: keep one line on desktop, stack cleanly on a phone. */
.inline-form { flex-wrap: nowrap; }
.inline-form input { width: 54px; }
@media (max-width: 640px) {
  .code-table td, .code-table th { padding: 6px 4px; font-size: 13px; }
  .code-table tr { display: grid; }
  .inline-form { flex-wrap: wrap; }
  .card { padding: 15px; }
  .team-head { padding: 16px; }
  .record b { font-size: 19px; }
}

/* Uppercase the typed code without shouting in the placeholder. */
.field input.upper { text-transform: uppercase; }
.field input.upper::placeholder { text-transform: none; }

/* ---------------------------------------------------------- game page */
.crumb { font-size: 13px; margin: 16px 0 0; }
.state { text-decoration: none; }
.state:hover { text-decoration: none; }
.game:hover { border-color: var(--ink-3); }

.matchup {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 12px 0 14px; display: grid; gap: 10px;
}
.matchup .side { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.mname { font-size: 18px; font-weight: 600; color: var(--ink); }
.side.win .mname { font-weight: 800; color: var(--win); }
.mmeta { grid-column: 1; font-size: 12px; color: var(--ink-3); }
.mscore {
  grid-row: 1 / span 2; grid-column: 2; font-size: 34px; font-weight: 800;
  color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1;
}
.side.win .mscore { color: var(--ink); }
.mstate {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 8px 0; margin: 2px 0;
}
.mstate .sub { font-size: 12px; color: var(--ink-3); }

.sec {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); margin: 22px 0 8px; font-weight: 700;
}
.sec .hint { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.line-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.line-table th, .line-table td {
  padding: 9px 10px; border-bottom: 1px solid var(--line);
  text-align: center; font-size: 14px; white-space: nowrap;
}
.line-table th {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 700;
}
.line-table tr:last-child td { border-bottom: 0; }
.line-table .lname { text-align: left; font-weight: 600; width: 100%; white-space: normal; }
.line-table .tot { font-weight: 800; color: var(--ink); }
.stat-table .lname { font-weight: 500; }
.stat-table .lname .tclass { margin-left: 5px; font-weight: 600; }

.stand-table .lname {
  display: flex; align-items: center; gap: 8px;
  /* Let the table scroll sideways rather than stacking school names two-high. */
  white-space: nowrap;
}
.stand-table .rank {
  display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none;
  border-radius: 5px; background: var(--bg); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; color: var(--ink-3);
}
.stand-table tbody tr:first-child .rank { background: var(--ky); border-color: var(--ky); color: #fff; }

/* ---------------------------------------------------------- box entry */
.line-table.entry td { padding: 6px; }
.line-table.entry input {
  width: 52px; text-align: center; font: inherit; font-size: 16px; padding: 7px 4px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.side-head {
  font-size: 15px; margin: 18px 0 8px; font-weight: 700; letter-spacing: -.2px;
}
.statline {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 11px; margin-bottom: 7px;
}
.statline-cat {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-3); font-weight: 700; margin-bottom: 5px;
}
.statline > input[type="text"] {
  width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; margin-bottom: 7px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
.statline-nums { display: flex; gap: 6px; flex-wrap: wrap; }
.statline-nums label {
  display: flex; align-items: center; gap: 4px; font-size: 11px;
  color: var(--ink-3); font-weight: 600;
}
.statline-nums input {
  width: 54px; font: inherit; font-size: 16px; padding: 6px 4px; text-align: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- legal pages */
.legal { max-width: 680px; padding-bottom: 10px; }
.legal h1 { font-size: 27px; letter-spacing: -.6px; margin: 26px 0 4px; }
.legal .legal-date {
  font-size: 12px; color: var(--ink-3); margin: 0 0 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.legal .legal-lede {
  font-size: 16.5px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--ky);
  border-radius: 10px; padding: 14px 16px; margin: 0 0 26px; line-height: 1.55;
}
.legal h2 {
  font-size: 19px; letter-spacing: -.3px; margin: 30px 0 8px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 15.5px; margin: 20px 0 6px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
}
.legal .legal-callout {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--live); border-radius: 10px;
  padding: 12px 15px; color: var(--ink); font-weight: 550;
}
.legal .legal-foot {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px;
}
.legal-links { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------------------------------------------------------- group pages */
.meta-link { color: #cfe0f2; text-decoration: underline; text-underline-offset: 2px; }
.meta-link:hover { color: #fff; }
.group-switch { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.group-switch a {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px; padding: 5px 11px; font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.group-switch a:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.group-switch a.on { background: #fff; color: var(--ky); border-color: #fff; }
.district h3 a { color: var(--ink-3); }
.district h3 a:hover { color: var(--accent); }

/* ---------------------------------------------------------- team identity */
/* Colour bars and chips carry the school's real colour. Text never does —
   half of these schools are gold or columbia blue, which is unreadable on
   white, and a scoreboard's whole job is being scannable. */
.tbar {
  width: 3px; align-self: stretch; min-height: 15px; border-radius: 2px;
  flex: none; margin-right: 1px;
}
.tchip {
  width: 9px; height: 9px; border-radius: 3px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.team-id { display: flex; align-items: center; gap: 13px; }
.team-mark {
  width: 64px; height: 64px; flex: none; border-radius: 12px;
  background: rgba(255,255,255,.14); padding: 4px; object-fit: contain;
}
.team-mascot {
  margin: 3px 0 0; font-size: 13px; color: rgba(255,255,255,.78);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
/* A school-coloured header gets a stripe of its secondary colour. */
.team-head[style*="background"] { position: relative; overflow: hidden; }
.team-head[style*="background"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--team2, #fff); opacity: .85;
}

.side-mark {
  width: 34px; height: 34px; flex: none; border-radius: 8px;
  object-fit: contain; margin-right: 2px;
}
.matchup .side { grid-template-columns: auto 1fr auto; }
.matchup .side .mname { grid-column: 2; }
.matchup .side .mmeta { grid-column: 2; }
.matchup .side .side-mark { grid-row: 1 / span 2; grid-column: 1; }
.matchup .side .mscore { grid-column: 3; }

@media (max-width: 480px) {
  .team-mark { width: 52px; height: 52px; }
}

/* A school colour used as text. The two custom properties are set inline per
   element by teamInk(); each has already been contrast-corrected for its
   theme, so neither can fall below 4.5:1. */
.inked { color: var(--team-ink); }
.row.win .inked, .side.win .inked { color: var(--team-ink); }
@media (prefers-color-scheme: dark) {
  .inked, .row.win .inked, .side.win .inked { color: var(--team-ink-dark); }
}
