:root {
  color-scheme: light;

  --fg:          #0b1215;   /* ink: text AND borders */
  --bg:          #ffffff;
  --bg-2:        #f4f7f7;
  --bg-3:        #eaf0f0;

  --mint:        #6dccc8;
  --mint-soft:   #d7efed;
  --pink:        #f6a5c9;
  --teal-deep:   #296163;

  --muted:       #55666b;
  --muted-2:     #7f9095;
  --rule:        rgba(11, 18, 21, 0.14);

  --win:         #14795a;
  --loss:        #c0392b;

  --shadow-hard:    4px 4px 0 var(--fg);
  --shadow-hard-sm: 3px 3px 0 var(--fg);
}

:root {
  --radius:      14px;
  --radius-sm:   10px;
  --maxw:        1180px;

  --display: Sora, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font:    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* nycpha.org sets -0.06em at every display size */
  --tight: -0.06em;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .18s ease, color .18s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* --- Typography ---------------------------------------------------------- */

.display,
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: var(--tight);
  line-height: 1.08;
  margin: 0;
}

/* The marker highlight from nycpha.org: an inline span so the block breaks
   with the line rather than boxing the whole heading. */
.mark {
  background: var(--mint);
  color: #0b1215;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 .08em;
}
.mark-pink { background: var(--pink); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
}
.section-head a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid var(--mint);
  padding-bottom: 1px;
}
.section-head a:hover { background: var(--mint); color: #0b1215; }
/* Team names in a heading are part of the title, not one of these small
   header links: keep the heading's own type. */
.section-head .team-link { font: inherit; border-bottom: 0; padding: 0; white-space: normal; }
.section-head .team-link:hover { background: none; color: inherit; }

.head-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* --- Header / nav -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--fg);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 50px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

.nav { display: flex; gap: 10px; }
.nav a {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid transparent;
  transition: background .14s, border-color .14s, color .14s;
}
.nav a:hover { background: var(--mint-soft); }
.nav a[aria-current="page"] {
  background: var(--mint);
  color: #0b1215;
  border-color: var(--fg);
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--fg);
}

.nav-toggle {
  display: none;
  background: var(--bg);
  border: 2px solid var(--fg);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--fg);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 52px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px 20px 8px;
    background: var(--bg);
    border-bottom: 2px solid var(--fg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; border-radius: var(--radius-sm); }
}

/* --- Row links ------------------------------------------------------------ */
/* A row that opens one thing (a game) but also names teams with their own
   links. A link can't contain links, so the row's link (.row-link) is an
   empty one stretched over the whole row, and the team links sit above it.
   Hosts: .game-head (schedule rows), .rrow (results). The ticker's cards
   are plain links: their team names aren't linked. */

.game-head, .rrow { position: relative; }
.row-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.row-link:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: -3px; }
.team-link {
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: none;
}
/* Team and player names share one hover: an underline that says "link". */
.team-link:hover, .player-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* --- Site switcher ------------------------------------------------------ */
/* The brand links home; the arrow beside it opens a menu of every site (the
   Rec League and each team). Desktop only — on a phone the brand is a plain
   link, and the same list opens from the top of the nav panel instead. */

.site-switch { position: relative; margin-right: auto; display: flex; align-items: center; }
.site-switch .brand { margin-right: 0; padding: 4px 0; }
.site-caret-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted-2);
  cursor: pointer;
  transition: background .14s, color .14s;
}
.site-caret-btn:hover { background: var(--bg-2); color: var(--fg); }
.site-caret-btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.site-caret { transition: transform .14s; }
.site-caret-btn[aria-expanded="true"] .site-caret { transform: rotate(180deg); }
.site-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg);
  border: 2px solid var(--fg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
}
.site-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
}
.site-menu a:hover { background: var(--mint-soft); }
.site-menu a[aria-current="true"] { background: var(--mint); color: #0b1215; }

.brand-mobile { display: none; }
.nav-links { display: flex; gap: 10px; }
.nav-site, .nav-sites { display: none; }

@media (max-width: 860px) {
  .site-switch { display: none; }
  .brand-mobile { display: flex; }
  .nav-links, .nav-sites:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
  .nav-links[hidden] { display: none; }
  .nav-site, .nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: none;
    color: inherit;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
  }
  .nav-site {
    justify-content: space-between;
    font-weight: 800;
    border-bottom: 2px solid var(--rule);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: 4px;
  }
  .nav-back { font-weight: 700; color: var(--muted); }
  .nav-site:hover, .nav-back:hover { background: var(--mint-soft); }
  .nav a[aria-current="true"] {
    background: var(--mint);
    color: #0b1215;
    border-color: var(--fg);
    font-weight: 700;
  }
}

/* --- Score ticker -------------------------------------------------------- */

/* Full width, with a paging arrow at each edge (see base.html's script) —
   the same bar as the nycpha.org ticker, full size at every window width. */
.ticker-rail {
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid var(--fg);
  background: var(--bg-2);
}
.ticker-arrow {
  flex: none;
  width: 45px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: background .14s, color .14s;
}
.ticker-arrow.prev { border-right: 2px solid var(--fg); }
.ticker-arrow.next { border-left: 2px solid var(--fg); }
.ticker-arrow:hover:not(:disabled) { background: var(--mint-soft); }
.ticker-arrow:disabled { color: var(--muted-2); opacity: .45; cursor: default; }
.ticker-arrow svg { width: 18px; height: 18px; }
.ticker {
  position: relative;  /* the cards' offsetParent, for paging */
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 20px 10px;
  scroll-padding: 0 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.ticker > .tcard { scroll-snap-align: start; }
.ticker-tail { flex: none; width: 0; margin-left: -12px; }
.ticker::-webkit-scrollbar { display: none; }

/* Fixed width, so every card is the same size: a team name too long to fit
   is cut to its last word by the script in base.html. */
.tcard {
  flex: 0 0 auto;
  width: 164px;
  padding: 10px 14px 11px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--fg);
  background: var(--bg);
  box-shadow: var(--shadow-hard-sm);
  transition: transform .12s, box-shadow .12s;
}
.tcard:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--fg); }
.tcard.played { background: var(--bg-3); }
/* The game whose detail page is open. After .played so it wins there too. */
.tcard.is-current { background: var(--mint-soft); }

.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 7px;
}
.tcard-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
}
.tcard-row + .tcard-row { margin-top: 3px; }
.tcard-team {
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  /* Only visible if even the last word doesn't fit, or without script. */
  text-overflow: ellipsis;
}
.tcard-row.won .tcard-team { font-weight: 800; }
.tcard-score { font-weight: 800; font-variant-numeric: tabular-nums; }
/* Scoreboard convention: loser dims, winner stays solid. */
.tcard-row.lost { opacity: .42; }



/* --- Recent results (mobile substitute for the ticker) ------------------- */

.mobile-only { display: none; }
@media (max-width: 860px) {
  .mobile-only { display: block; }
}

.rrow {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  transition: background .12s;
}
.rrow:last-child { border-bottom: 0; }
/* League result: no W/L pill, since neither side is "us". */
.rrow.league { grid-template-columns: 56px 1fr auto; }
.rrow:hover, .rrow:active { background: var(--mint-soft); }
.rrow-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  line-height: 1.3;
}
.rrow-opp {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rrow-opp .venue {
  font-family: var(--font);
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0;
}
.rrow-score {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* --- Cards / surfaces ---------------------------------------------------- */

.card {
  background: var(--bg);
  border: 2px solid var(--fg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.card-pad { padding: 22px; }

section { margin: 32px 0; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 40px;
  align-items: center;
  margin: 48px 0 8px;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--mint);
  border: 2px solid var(--fg);
  color: #0b1215;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-hard-sm);
}

.hero h1 {
  font-size: clamp(72px, 8.4vw, 92px);
  line-height: 1.06;
  margin: 20px 0 10px;
}
.hero .tagline {
  font-size: clamp(17px, 1.9vw, 18px);
  line-height: 1.32;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 40ch;
}
/* Once the carousel drops below the text (900px and narrower), the title
   goes to one line: the break is switched off, and the size follows the
   screen so "Rec League" fits on one line even on a phone. */
@media (max-width: 900px) {
  .hero.rec-hero { gap: 0px; }   /* no extra space between the text and the carousel below it */
  .hero-title-break { display: none; }
  .hero h1.hero-title { white-space: nowrap; font-size: clamp(40px, 11.5vw, 92px); }
}
/* The champions line: the size and weight of a team profile's standings
   line (.profile-team), in the tagline's own grey. */
.hero .tagline.champions { margin-top: 36px; font-size: 15px; font-weight: 500; }

/* Rec League home carousel: the photos stacked in one 3:2 frame, only the
   current one showing. The next one slides in over it from the right
   (index.html) — the frame's overflow:hidden keeps it inside the border. */
.hero-carousel { position: relative; aspect-ratio: 3 / 2; }
.hero-carousel img {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.hero-carousel img.is-active { visibility: visible; z-index: 1; }
.hero-carousel img.is-entering { visibility: visible; z-index: 2; }

.record-strip { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; }
.record-block {
  border: 2px solid var(--fg);
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-hard-sm);
  padding: 12px 20px;
}
.record-block.accent { background: var(--mint); color: #0b1215; }
.record-big {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: var(--tight);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.record-big .sep { opacity: .4; font-weight: 400; margin: 0 1px; }
.record-meta {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 7px;
  color: var(--muted-2);
}
.record-block.accent .record-meta { color: #29494a; }

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--fg);
  box-shadow: var(--shadow-hard);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Stat tiles ---------------------------------------------------------- */

.leader-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;   /* each card only as tall as its own rows */
}
.lb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
}
.lb-row:last-child { border-bottom: 0; }
.lb-name { font-size: 14px; font-weight: 600; }
.lb-value { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
}
/* A profile's stat line (team and player profiles): one card holding every
   figure, with hairlines between the cells. The lines are the card's own
   background showing through a 1px grid gap, so they also run between the
   rows when it wraps. --cols / --cols-sm: cells per row, wide / narrow. */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  gap: 1px;
  background: var(--rule);
  border: 2px solid var(--fg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
}
.stat-strip .tile {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg);
  padding: 15px 16px;
}
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(var(--cols-sm, 3), 1fr); }
}

.tile {
  background: var(--bg);
  border: 2px solid var(--fg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 17px 19px;
}
.tile-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 9px;
}
.tile-value {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: var(--tight);
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
}
.tile-note { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.tile-value.pos { color: var(--win); }
.tile-value.neg { color: var(--loss); }

/* League standings. Header abbreviations explain themselves on hover, so
   they don't need the browser's dotted underline. */
.standings abbr { text-decoration: none; cursor: help; }
.standings td.pos { color: var(--win); font-weight: 700; }
.standings td.neg { color: var(--loss); font-weight: 700; }
.tile-value.teal { color: var(--teal-deep); }

/* --- Tables -------------------------------------------------------------- */

.table-scroll { overflow-x: auto; border-radius: var(--radius); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td {
  padding: 12px 13px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg-2);
  border-bottom: 2px solid var(--fg);
  position: sticky;
  top: 0;
  z-index: 1;
}
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--mint-soft); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.name { font-weight: 600; }
table.data td strong { font-weight: 800; }

th.sortable { cursor: pointer; user-select: none; }
th.sortable[aria-sort]:not([aria-sort="none"]) { background: var(--mint); color: #0b1215; }
th.sortable .arrow { opacity: .5; margin-left: 3px; font-size: 9px; }

.jersey {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 23px;
  padding: 0 6px;
  margin-right: 10px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1.5px solid var(--fg);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rank {
  display: inline-block;
  min-width: 20px;
  color: var(--muted-2);
  font-weight: 700;
  font-size: 13px;
}
.rank.top { color: var(--teal-deep); }
.team-cell { white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.profile-number { color: var(--muted-2); margin-right: .2em; }
.profile-team { margin: -10px 0 22px; font-size: 15px; font-weight: 700; color: var(--teal-deep); }
.other-profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; }
.other-profiles-label {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2);
}

.record-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 2px solid var(--fg);
  background: var(--mint);
  color: #0b1215;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: var(--shadow-hard-sm);
}
.record-chip .chip-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2c4e4f;
}
.record-chip .chip-detail { font-size: 12px; font-weight: 600; color: #2c4e4f; }

/* --- Pills / results ----------------------------------------------------- */

.pill {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border-radius: 7px;
  border: 2px solid var(--fg);
  font-size: 11px;
  font-weight: 800;
  background: var(--bg);
}
.pill.w { background: var(--mint); color: #0b1215; }
.pill.l { background: var(--bg-3); color: var(--muted); }
.pill.t { background: var(--bg-2); color: var(--muted); }


/* --- Game rows (schedule) ------------------------------------------------ */

.game { border-bottom: 1px solid var(--rule); }
.game:last-child { border-bottom: 0; }

/* The whole row is a link to the game's boxscore. */
.game-head {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  color: inherit;
  transition: background .12s;
}
.game-head:hover { background: var(--mint-soft); }

/* League schedule row: both sides stacked, each with its score, so neither
   team reads as "us". */
.game-head.league { grid-template-columns: 58px 1fr; }
.game-no { font-family: var(--display); font-size: 12px; font-weight: 800; color: var(--fg); white-space: nowrap; }
.league-match {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 2px;
  min-width: 0;
  font-size: 16px;
}
.league-match .opp { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
/* The score's bigger font would otherwise make each team line taller than
   the name alone does, so a played row came out 9px taller than an upcoming
   one (whose score cells are empty). A tight line-height keeps the name in
   charge of the line height either way. */
.league-match .game-score { line-height: 1; }
.league-match .lost { color: var(--muted-2); font-weight: 600; }
.league-match .venue { grid-column: 1 / -1; margin-top: 3px; color: var(--muted-2); font-weight: 500; font-size: 12.5px; }
/* The game page's scoreboard: the schedule row's layout, scaled up. */
.game-board { font-size: 22px; row-gap: 4px; }
.game-board .game-score { font-size: 28px; }
/* Upcoming games are shaded so they read as not-yet-played at a glance. */
.game.upcoming { background: var(--bg-2); }
/* Keeps a shaded first/last row inside the card's rounded corners. */
.card-clip { overflow: hidden; }

.game-date { font-size: 11px; font-weight: 700; color: var(--muted-2); line-height: 1.35; }
.game-match { font-size: 16px; font-weight: 600; }
.game-match .opp { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.game-match .venue { color: var(--muted-2); font-weight: 500; font-size: 12.5px; margin-left: 2px; }
.game-score {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.linescore { width: auto; min-width: 280px; margin-bottom: 22px; }
/* Goals and shots side by side, sharing the section's full width equally,
   stacking (each full width) when there's no room for both. */
.period-tables { display: flex; flex-wrap: wrap; gap: 0 22px; }
.period-tables > .table-scroll { flex: 1 1 320px; min-width: 0; }
.period-tables .linescore { width: 100%; table-layout: fixed; }
/* Number columns are 60px, and only give way when the table gets too
   narrow for the longer team name on one line (--name-chars, its length,
   from the macro; ~0.62em a character plus the cell's padding) — sized
   from the table's own width (a container query), not the window's.
   Never under 34px; only then does a long name wrap. Both tables are the
   same width with the same teams, so they stay aligned. */
.period-table { container-type: inline-size; }
.linescore .period-col {
  width: clamp(34px, calc((100cqw - (var(--name-chars) * 0.62em + 30px)) / var(--num-cols)), 60px);
}
.period-tables .linescore th:first-child,
.period-tables .linescore td.name { white-space: normal; overflow-wrap: anywhere; }
@container (max-width: 400px) {
  .linescore th, .linescore td { padding-inline: 8px; }
}

/* Game page: the eyebrow and the matchup link share one line. */
.game-head-bar { align-items: center; }

/* Lineups: the two teams side by side, stacked on a phone. */
/* align-items: start — each team's card is only as tall as its own list;
   grid items otherwise stretch to the taller one. */
.lineups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 700px) { .lineups { grid-template-columns: minmax(0, 1fr); } }
.lineup-team { padding: 14px 16px 10px; margin: 0; }
.lineup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
}
.lineup-name { font-weight: 600; overflow-wrap: anywhere; }
.lineup-who { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.lineup-who .lineup-tag { display: inline-block; margin-left: 4px; white-space: nowrap; line-height: 1.3; vertical-align: 1px; }
.lineups.show-log .lineup-who { flex: none; }
/* Game logs: hidden until "Show Game Logs"; a fixed column per stat at the
   right of each row, under a header row. */
.lineups .log-only { display: none; }
.lineups.show-log .log-only { display: flex; }
.lineup-stats { margin-left: auto; }
/* With the logs on, a row never wraps or grows: the list scrolls sideways
   and the stat columns stick to the right edge on the card's own white,
   so a long name or a C/ALT badge slides under them. */
.lineups.show-log .lineup-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
/* As wide as the widest row (and at least the card), so every row is too. */
.lineups.show-log .lineup-rows { width: max-content; min-width: 100%; }
.lineups.show-log .lineup-row { white-space: nowrap; }
.lineups.show-log .lineup-row > :not(.lineup-stats) { flex: none; }
.lineups.show-log .lineup-stats {
  position: sticky;
  right: 0;
  z-index: 1;
  flex: none;
  margin-right: -16px;           /* to the card's edge, covering the row's padding */
  padding: 0 16px 0 6px;
  background: var(--bg);
}
.lineups.show-log .lineup-log-head .lineup-stats { background: var(--bg-2); }
.lineup-stats > span { width: 38px; text-align: right; }
/* G, the first column, narrower: the 38px keeps the stats apart from each
   other, not from the name before them. */
.lineup-stats > span:first-child { width: 20px; }
.lineup-log-head { padding-block: 6px; background: var(--bg-2); }
.lineup-log-head .lineup-stats {
  display: flex;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted-2);
}
.lineup-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px; border: 1.5px solid var(--fg);
  background: var(--bg-2); color: var(--muted);
}

/* Season series: the two teams' records against each other. */
.series-record { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 8px; }
@media (max-width: 560px) { .series-record { grid-template-columns: 1fr; } }
.series-team-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.series-team-record { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -0.04em; margin: 6px 0 2px; }
.series-team-record .sep { color: var(--muted-2); margin: 0 .08em; }
.linescore th, .linescore td { padding: 8px 14px; }
.linescore tbody tr.us td { font-weight: 700; }
.linescore td.total { font-weight: 800; }
.linescore tbody tr.us td.total { color: var(--teal-deep); }

.evt-group + .evt-group { margin-top: 22px; }
.evt-title {
  font-size: 11px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 7px;
  border: 2px solid var(--fg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.role-pill.goal { background: var(--mint); color: #0b1215; }
.role-pill.assist { background: var(--bg-2); color: var(--muted); }

.evt {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--fg);
  background: var(--bg);
}
.evt + .evt { margin-top: 8px; }
.evt.us { background: var(--mint-soft); }
.evt.them { border-color: var(--rule); }
/* League view: neither side is "us", so both get the same neutral row and
   the team label says whose event it is. */
.evt.home, .evt.away { border-color: var(--rule); }
/* A list of events as one card — a player profile's Points, a game's
   Scoring and Penalty Summaries: rows flush against each other with a hairline between
   them, like the stat strip's cells, instead of separate rounded rows
   with gaps. */
.evt-list { overflow: hidden; }
.evt-list .evt { border: 0; border-radius: 0; margin: 0; padding: 14px 16px; }
.evt-list .evt + .evt { border-top: 1px solid var(--rule); }
/* A profile's points are all the player's own, so a team site's own-team
   tint (.us) would turn the whole card mint: white instead, like the stat
   strip above it. (On a game page the tint stays — there it tells the
   team's goals from the opponent's.) */
.points-list .evt.us { background: var(--bg); }

/* Games Played: one card, a row per game, hairlines between — each row
   one link to that game. */
.attended { overflow: hidden; }
.attended-row {
  display: block;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  transition: background .12s;
}
.attended-row + .attended-row { border-top: 1px solid var(--rule); }
.attended-row:hover { background: var(--mint-soft); }
/* Game logs: hidden until "Show Game Logs"; then each row is the game plus
   a fixed-width column per stat, under a header row. */
.attended .log-only { display: none; }
/* Team profile roster: names and numbers only until "Show Stats". */
/* The roster's captain badge: centered on the name, a little apart from it. */
.captain-tag { display: inline-block; margin-left: 8px; vertical-align: middle; line-height: 1.3; position: relative; top: -1px; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.roster:not(.show-stats) .stat-col { display: none; }
.attended.show-log .attended-row {
  display: grid;
  grid-template-columns: 1fr repeat(var(--log-cols), 44px);
  align-items: center;
  gap: 8px;
}
.attended.show-log .log-only { display: block; }
.attended.show-log .attended-head { display: grid; }
.attended-head {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2);
  background: var(--bg-2);
}
.attended-head:hover { background: var(--bg-2); }
.log-stat { text-align: right; }
@media (max-width: 500px) {
  .attended.show-log .attended-row { grid-template-columns: 1fr repeat(var(--log-cols), 32px); gap: 4px; font-size: 14px; }
}
.evt-team {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-deep);
}
.evt-team .team-mark { padding: 1px 4px; }   /* a little room around small capitals */
.evt-type {   /* a goal's type, under its time: "Power Play" */
  display: block; margin-top: 3px;
  font-weight: 600; color: var(--muted); font-variant-numeric: normal;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}
.evt-tag.shot-scored { color: var(--fg); }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail-label { font-size: 13px; color: var(--muted); }
.evt-when { font-size: 11px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.evt-who { font-size: 15px; font-weight: 700; }
.evt-assist { font-size: 12.5px; color: var(--muted); }
.evt-tag { font-size: 11px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.watch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--fg);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--fg);
  transition: transform .1s, box-shadow .1s, background .14s;
}
.watch:hover { background: var(--mint); color: #0b1215; }
.watch:active { transform: translate(2px, 2px); box-shadow: none; }

/* The inline clip drawer on the player page. .evt is a 3-column grid, so
   spanning every column drops this onto its own row directly under the
   event it belongs to. */
.evt-video { grid-column: 1 / -1; display: none; margin-top: 12px; }
.evt-video.open { display: block; }
.evt-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--fg);
  border-radius: var(--radius-sm);
  background: #000;
}

/* --- Video grid ---------------------------------------------------------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.vcard {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--fg);
  background: var(--bg);
  box-shadow: var(--shadow-hard-sm);
  transition: transform .12s, box-shadow .12s;
}
.vcard:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fg); }
.vthumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  overflow: hidden;
  border-bottom: 2px solid var(--fg);
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
/* The thumbnail is the play button (a link only for a clip that can't be
   embedded); once clicked, base.html swaps it for the player in place. */
button.vthumb, a.vthumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--fg);
  cursor: pointer;
}
.vthumb.playing { background: #000; }
.vthumb.playing::after { display: none; }
.vthumb.playing iframe { display: block; width: 100%; height: 100%; border: 0; }
/* A playing card spans its whole row (base.html places it) and takes the
   same look as an open Watch drawer (.evt-video iframe): the video in a
   2px rounded frame, no card around it. */
.vcard.playing {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.vcard.playing:hover { transform: none; box-shadow: none; }
.vcard.playing .vthumb {
  border: 2px solid var(--fg);
  border-radius: var(--radius-sm);
}
.vcard.playing .vmeta { padding: 10px 2px 0; }
/* A bordered mint disc rather than a bare glyph: legible over pale rink ice,
   and it carries the same hard-edged treatment as the buttons. */
.vthumb::after {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding-left: 3px;
  border-radius: 50%;
  border: 2px solid #0b1215;
  background: var(--mint);
  color: #0b1215;
  font-size: 15px;
  box-shadow: 3px 3px 0 #0b1215;
  transition: transform .12s, box-shadow .12s;
}
.vcard:hover .vthumb::after {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 4px 4px 0 #0b1215;
}
.vmeta { padding: 12px 14px; }
.vmeta .who { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.vmeta .ctx { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* --- Line creator -------------------------------------------------------- */

.lines-layout { display: grid; grid-template-columns: 276px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .lines-layout { grid-template-columns: 1fr; } }

.pool { position: sticky; top: 86px; }
@media (max-width: 900px) { .pool { position: static; } }
.pool-list { max-height: 62vh; overflow-y: auto; padding: 4px; }

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--fg);
  background: var(--bg);
  cursor: grab;
  font-size: 14.5px;
  transition: background .13s, transform .1s, box-shadow .1s;
  touch-action: none;
}
.chip:hover { background: var(--mint-soft); }
.chip:active { cursor: grabbing; }
.chip.dragging { opacity: .4; }
.chip.selected { background: var(--mint); color: #0b1215; box-shadow: var(--shadow-hard-sm); }
.chip .cnum {
  min-width: 26px; height: 21px;
  display: grid; place-items: center;
  border-radius: 5px;
  border: 1.5px solid var(--fg);
  background: var(--bg-2);
  font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.chip .cname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .cpts { margin-left: auto; font-size: 11px; color: var(--muted-2); font-weight: 700; }

.unit + .unit { margin-top: 16px; }
.unit-title {
  font-size: 11px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px;
}
.slots { display: grid; gap: 10px; }
.slots.fwd { grid-template-columns: repeat(3, 1fr); }
.slots.def { grid-template-columns: repeat(2, 1fr); }
.slots.gk  { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) {
  .slots.fwd, .slots.def, .slots.gk { grid-template-columns: 1fr; }
}

.slot {
  min-height: 56px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--rule);
  background: var(--bg-2);
  display: grid;
  place-items: center;
  padding: 7px;
  transition: border-color .13s, background .13s;
}
.slot.over { border-color: var(--fg); border-style: solid; background: var(--mint-soft); }
.slot.filled { border-style: solid; border-color: var(--fg); background: var(--bg); place-items: stretch; }
.slot-hint {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2);
}
.slot .chip { margin: 0; width: 100%; background: transparent; border: 0; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 3px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: transform .11s, box-shadow .11s, background .14s;
}
.btn:hover { background: var(--mint); color: #0b1215; }
/* Press the button into its own shadow, the way nycpha.org's CTA behaves. */
.btn:active { transform: translate(4px, 4px); box-shadow: none; }

.btn-primary { background: var(--mint); color: #0b1215; }
.btn-primary:hover { background: var(--fg); color: var(--bg); }

/* Long filter rows: same idiom, dialled down so 19 of them don't shout. */
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-width: 2px;
  box-shadow: var(--shadow-hard-sm);
}
.btn-sm:active { transform: translate(3px, 3px); box-shadow: none; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.seg {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  border-radius: 999px;
  border: 2px solid var(--fg);
  background: var(--bg);
}
.seg button {
  padding: 6px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--mint); color: #0b1215; }
/* Many long options (one per team): wrap onto extra lines instead of
   overflowing the viewport on a phone. */
.seg-wrap { flex-wrap: wrap; border-radius: 22px; margin: 0 0 20px; }

/* --- States -------------------------------------------------------------- */

.skeleton {
  background: var(--bg-2);
  border: 2px solid var(--rule);
  border-radius: var(--radius-sm);
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; } }

/* Screen-reader-only label text. The search input carries a placeholder,
   but a placeholder is not an accessible name. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Skater table filter -------------------------------------------------- */

.table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.search { position: relative; display: inline-flex; align-items: center; }
.search input {
  width: 260px;
  max-width: 100%;
  padding: 9px 34px 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--fg);
  background: var(--bg);
  font: inherit;
  font-size: 14px;
  color: var(--fg);
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
/* Hide the native clear affordance — we ship our own so it is styled and
   keyboard-reachable in every browser, not just WebKit. */
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.search-clear:hover { background: var(--mint); color: #0b1215; }
.search-count { font-size: 12.5px; color: var(--muted-2); }

/* Under the skater table: "Show [20] entries", the range shown, the pages. */
.table-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.pager-size { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pager-size select {
  padding: 6px 30px 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--fg);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1215' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 10px;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
}
.pager-size select:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.pager-range { font-size: 12.5px; color: var(--muted-2); }
.pager-pages { margin-left: auto; flex-wrap: wrap; }
.pager-pages[hidden] { display: none; }   /* .seg's display would override hidden */
.pager-pages button { min-width: 34px; padding: 6px 10px; }
.pager-pages button[aria-current="page"] { background: var(--mint); color: #0b1215; }
.pager-pages button:disabled { opacity: .35; cursor: default; }
.pager-pages button:disabled:hover { color: var(--muted); }

.empty { padding: 32px; text-align: center; color: var(--muted); font-size: 14.5px; }

.error-note {
  padding: 17px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--loss);
  background: var(--bg);
  box-shadow: 4px 4px 0 var(--loss);
  color: var(--fg);
  font-size: 14.5px;
}

/* --- Footer -------------------------------------------------------------- */

/* nycpha.org's footer, matched to its theme's styles (sizes, the
   92.5vw container, the 768px and 1050px breakpoints) — but topped with
   the nav bar's black rule instead of its green one. */
.site-footer {
  --footer-copy: #0b1215;
  --footer-text: 0.875rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  margin: 72px auto 16px;
  border-top: 2px solid var(--fg);   /* the nav bar's rule, not nycpha.org's green */
  color: var(--footer-copy);
}
.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-sizing: border-box;
  margin: 0 auto;
  width: 92.5vw;
  max-width: 1400px;
  padding: 32px 0;
}
@media (max-width: 1050px) {
  .footer-container { width: calc(100% - 40px); }
}
@media (min-width: 768px) {
  .site-footer { --footer-text: 1rem; }
  .footer-container { flex-direction: row; padding: 64px 32px; }
}
.footer-navigation,
.footer-content {
  width: 100%;
  max-width: 200px;
  position: relative;
}
.footer-heading {
  margin: 0 0 16px;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
  color: var(--footer-copy);
}
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer p,
.footer-menu li {
  margin: 0;
  font-size: var(--footer-text);
  font-weight: 400;
  line-height: 1.3;
  color: var(--footer-copy);
}
.site-footer a { color: inherit; text-decoration: underline; }
.footer-menu a { text-decoration: none; }
@media (hover: hover) {
  .site-footer a:hover { text-decoration: none; }
  .footer-menu a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
}
/* The logo's column, with the stats freshness line under the logo. */
.footer-end {
  flex: 0 0 200px;
  width: 200px;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo, .footer-logo img { display: block; width: 100%; }
.footer-end .freshness { display: block; color: var(--muted); text-align: center; }
.footer-end .freshness .dot { display: inline-block; margin-right: 4px; vertical-align: -1px; }
.footer-end .freshness time { display: block; }   /* the date on its own line */

.freshness { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.freshness .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  border: 1.5px solid var(--fg);
}

/* --- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
