/* chalunch web - one page: today's lunch lectures + a large month calendar.
   Black on white, light Open Sans + uppercase Archivo Narrow.
   The only colour comes from the student division that posted a lecture: each card and
   calendar entry gets a .div-N class whose --c1/--c2 (one or two division colours),
   --on-c1 (readable text on --c1) and --c1-edge (outline for very light colours) are
   generated by the server from config.yaml at /divisions.css. */

@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("fonts/archivo-narrow-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface-2: #f5f5f5;
  --line: #e6e6e6;
  --line-strong: #cccccc;
  --text: #000000;
  --muted: #555555;
  --label: #6b6b6b;
  --hover: #f0f0f0;
  --radius: 4px;
  --sans: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --narrow: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  color-scheme: light;
}

/* Lectures from accounts that are not in any configured division: neutral grey */
.div-none { --c1: #9D9FA2; --c2: #9D9FA2; --on-c1: #000000; --c1-edge: #9D9FA2; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 3px; font-size: .9em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* narrow uppercase "label" voice */
.brand, .kicker, .cal-weekday, .month-nav a, .time-badge, .facts dt, button, .button, .map-link, .card-footer a, .pop-link {
  font-family: var(--narrow); text-transform: uppercase; letter-spacing: 1px;
}

button, .button {
  font-size: .95rem; font-weight: 700; cursor: pointer; border: 0; border-radius: var(--radius);
  padding: .7rem 1.2rem; background: var(--text); color: var(--bg); display: inline-block;
}
button:hover, .button:hover { opacity: .85; text-decoration: none; }
button.ghost { background: none; color: var(--muted); padding: .4rem .7rem; }
button.ghost:hover { color: var(--text); background: var(--surface-2); }

/* --- Login / error: plain black and white, nothing that reveals what the site is ----- */
.login-page { --ink: #000; --paper: #fff; min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--paper); color: var(--ink); }
.login-box { width: 100%; max-width: 280px; }
.login-box form { display: grid; gap: .5rem; }
.login-box label { font-size: .9rem; }
.login-box input {
  font: inherit; padding: .6rem .7rem; width: 100%; border-radius: 0;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
}
.login-box input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.login-box button {
  font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 600;
  margin-top: .5rem; border-radius: 0; background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
}
.login-box button:hover { background: var(--paper); color: var(--ink); }
.login-box :focus-visible { outline-color: var(--ink); }
.login-box a { color: var(--ink); text-decoration: underline; }
.login-box p { margin: 0 0 .5rem; }
.error-title { font-weight: 600; }
.form-error { font-size: .9rem; }

/* --- Header -------------------------------------------------------------------------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; font-size: 1.35rem; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: .9rem; }
.brand:hover { text-decoration: none; }

.page { max-width: 1280px; margin: 0 auto; padding: 2rem 16px 4rem; }

/* --- Today --------------------------------------------------------------------------- */
.today { margin-bottom: 3rem; }
.kicker { color: var(--label); font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.today h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 300; }

/* One row: today's headline + full card(s) on the left, simpler cards for the upcoming
   lectures to the right, bottoms aligned. The upcoming area is a grid whose extra rows have
   zero height and are clipped, so only the upcoming cards that fit on this row are shown. */
.today h1 { margin-bottom: 1.25rem; }
.today-row { --card-w: 312px; --mini-w: 200px; display: flex; align-items: flex-end; gap: 1.5rem; }
.today-col { flex: 0 1 auto; min-width: min(100%, var(--card-w)); }
.today-cards { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.today-cards .card { width: var(--card-w); max-width: 100%; }
.today-col .none-today { max-width: 40rem; }

.upcoming {
  flex: 1 1 0; min-width: 0; container-type: inline-size;
  display: grid; grid-template-columns: repeat(auto-fill, var(--mini-w));
  grid-template-rows: auto; grid-auto-rows: 0; column-gap: 1.25rem; row-gap: 0;
  overflow: hidden;            /* rows after the first have zero height -> clipped */
}
@container (max-width: 199px) { .up { display: none; } }   /* not even one fits */
/* Bottom-align each card within the first row. An auto margin (unlike align-items: end)
   collapses to 0 when there is no room, so cards in the zero-height rows hang downwards into
   the clipped area instead of overlapping the visible row. */
.up { min-width: 0; display: flex; flex-direction: column; }
.up-day { margin-top: auto; }
.up-day { font-size: .92rem; margin-bottom: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* compact card: same look as the main card, fewer details, and always the same size */
.card-compact { width: var(--mini-w); }
.card.card-compact::before { height: 6px; }
.card-compact .time-badge { bottom: 10px; font-size: .8rem; padding: .2rem .55rem .2rem .65rem; }
/* flex: none - otherwise the card's flex layout (flex: 1 on .card-body) shrinks the body to its
   content and cards without place/food come out shorter */
.card-compact .card-body { flex: none; height: 126px; padding: .6rem .75rem .65rem; gap: .25rem; overflow: hidden; }
/* .card.card-compact: must beat the general `.card h3` rule further down (same specificity otherwise) */
.card.card-compact h3 { font-size: 1rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-compact .card-body > * { flex-shrink: 0; }   /* never squeeze the title/facts/footer */
.card-compact .facts { margin-top: 0; gap: .15rem; font-size: .82rem; }
.card-compact .facts div { grid-template-columns: 44px 1fr; gap: .35rem; }
.card-compact .facts dt { font-size: .7rem; }
.card-compact .facts dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-compact .map-link { font-size: .65rem; margin-left: .25rem; }
.card-compact .card-footer { padding-top: .45rem; }
.card-compact .card-footer a { font-size: .75rem; }
.card-compact .photo-placeholder { font-size: 2.5rem; }

.none-today { font-size: 1.05rem; color: var(--muted); padding: 1rem 1.25rem; border-left: 3px solid var(--line-strong); background: var(--surface-2); }
.none-today strong { color: var(--text); font-weight: 600; }

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card::before {
  content: ""; display: block; height: 10px; flex: none;
  background: linear-gradient(90deg, var(--c1) 0 70%, var(--c2) 70% 100%);
  box-shadow: inset 0 -1px 0 var(--c1-edge);
}
.division { display: flex; align-items: center; gap: .45rem; font-family: var(--narrow); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; font-weight: 700; color: var(--label); }
.swatch {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50% 100%);
  box-shadow: 0 0 0 1px var(--c1-edge);
}
.photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.photo img, .photo-placeholder { position: absolute; inset: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--narrow); font-weight: 700; font-size: 4rem; color: var(--line-strong); }
.time-badge { position: absolute; left: 0; bottom: 14px; padding: .3rem .75rem .3rem .9rem; background: var(--c1); color: var(--on-c1); box-shadow: inset 0 0 0 1px var(--c1-edge); font-weight: 700; font-variant-numeric: tabular-nums; }
.card-body { padding: 1rem 1.15rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { font-size: 1.3rem; font-weight: 400; overflow-wrap: anywhere; }
.subtitle { color: var(--muted); font-size: .93rem; }
.card-footer { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); }
.card-footer a { font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }

.facts { margin: .25rem 0 0; display: grid; gap: .45rem; font-size: .92rem; }
.facts div { display: grid; grid-template-columns: 62px 1fr; gap: .5rem; }
.facts dt { color: var(--label); font-weight: 700; font-size: .8rem; padding-top: .12rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.note { display: block; color: var(--muted); font-size: .86rem; }
.map-link { display: inline-block; margin-left: .35rem; font-size: .75rem; font-weight: 700; padding: 0 .45rem; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--text); }
.map-link:hover { background: var(--hover); text-decoration: none; }

/* --- Calendar ------------------------------------------------------------------------ */
.cal-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 300; }
.month-nav { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.month-nav a { padding: .4rem .9rem; color: var(--text); font-weight: 700; font-size: .9rem; }
.month-nav a + a { border-left: 1px solid var(--line-strong); }
.month-nav a:hover { background: var(--surface-2); text-decoration: none; }
.month-nav a[aria-current="page"] { background: var(--text); color: var(--bg); }

.calendar { border: 1px solid var(--line); border-radius: var(--radius); }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-row + .cal-row { border-top: 1px solid var(--line); }
.cal-weekday { padding: .6rem .75rem; font-size: .85rem; font-weight: 700; color: var(--label); background: var(--surface-2); }
.cal-day { position: relative; min-height: 130px; padding: .5rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cal-day:first-child { border-left: 0; }
.cal-day.weekend { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.cal-day.out { background: var(--surface-2); }
.cal-day.out .cal-num { opacity: .35; }
.cal-day.past .cal-event summary { opacity: .6; }
.cal-num { font-size: .9rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.cal-day.today .cal-num { background: var(--text); color: var(--bg); font-weight: 700; }
.cal-full { display: none; }

/* each lecture: a chip that opens a small pop-up (native <details>, no JS needed) */
.cal-event summary {
  list-style: none; cursor: pointer; display: grid; gap: .1rem;
  padding: .4rem .5rem .4rem .65rem; border-radius: 3px; font-size: .84rem; line-height: 1.3;
  background: var(--c1); color: var(--on-c1);
  box-shadow: inset 5px 0 0 var(--c2), inset 0 0 0 1px var(--c1-edge);
}
.cal-event summary::-webkit-details-marker { display: none; }
.cal-event summary:hover, .cal-event[open] summary { filter: brightness(.9); }
.cal-line { display: flex; flex-wrap: wrap; column-gap: .4rem; align-items: baseline; min-width: 0; }
.cal-time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal-host { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-detail { font-size: .78rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cal-event { position: relative; }
.cal-event[open] { z-index: 20; }
.pop {
  position: absolute; z-index: 20; top: 100%; left: 0; width: 300px; max-width: 80vw; margin-top: 4px;
  background: var(--bg); border: 1px solid var(--line-strong); border-top: 6px solid var(--c1);
  border-radius: var(--radius); padding: .9rem 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  display: grid; gap: .4rem;
}
.cal-row > .cal-day:nth-child(n+5) .pop { left: auto; right: 0; }   /* open leftwards near the edge */
.pop-title { font-size: 1.15rem; font-weight: 400; }
.pop-when { color: var(--muted); font-size: .9rem; }
.pop-link { font-weight: 700; font-size: .85rem; margin-top: .3rem; text-decoration: underline; text-underline-offset: 3px; }
.pop-subtitle { color: var(--muted); font-size: .9rem; margin-top: -.2rem; }

/* Upcoming cards are clickable and open the same pop-up as a <dialog>, which is drawn in
   the browser's top layer and so is not clipped by the upcoming row. app.js places it right
   under the clicked card; without JS positioning it is centred. */
.card[data-dialog] { cursor: pointer; transition: box-shadow .15s ease, transform .1s ease; }
.card[data-dialog]:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.pop-dialog { padding: 0; border: 0; background: none; overflow: visible; max-width: none; }
.pop-dialog.anchored { position: fixed; margin: 0; inset: auto; }
.pop-dialog::backdrop { background: transparent; }
.pop-dialog .pop { position: static; margin: 0; width: 320px; max-width: calc(100vw - 32px); }
.pop-close-form { position: absolute; top: .35rem; right: .4rem; margin: 0; }
.pop-dialog .pop { position: relative; }
.pop-close {
  background: none; color: var(--muted); padding: .1rem .45rem; font-size: 1.3rem; line-height: 1;
  font-family: var(--sans); text-transform: none; letter-spacing: 0;
}
.pop-close:hover { color: var(--text); background: var(--hover); opacity: 1; }
.pop-dialog .pop-title { padding-right: 1.75rem; }

.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty h2 { color: var(--text); font-weight: 300; font-size: 1.8rem; margin-bottom: .4rem; }

.upcoming-title { display: none; }

/* --- Phones: app-like layout ---------------------------------------------------------
   Sticky compact header, today's lectures as horizontal rows (thumbnail + text), upcoming
   lectures as a swipeable strip of small cards, details in a bottom sheet, and the calendar
   as an agenda of the days that have lectures. */
@media (max-width: 720px) {
  body { font-size: 15px; }

  /* header */
  .topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); }
  .topbar-inner { padding: .45rem 12px; gap: .5rem; }
  .brand { font-size: 1.05rem; white-space: nowrap; }
  .topbar-right { gap: .35rem; min-width: 0; }
  .topbar button.ghost { font-size: .8rem; padding: .45rem .5rem; white-space: nowrap; }

  .page { padding: 1rem 12px 2rem; }

  /* today */
  .today { margin-bottom: 1.75rem; }
  .kicker { font-size: .75rem; margin-bottom: 0; }
  .today h1 { font-size: 1.55rem; margin-bottom: .75rem; }
  .today-row { flex-direction: column; align-items: stretch; gap: 1rem; }
  .today-col { min-width: 0; }
  .today-cards { flex-direction: column; flex-wrap: nowrap; gap: .6rem; }
  .none-today { font-size: .95rem; padding: .75rem .9rem; }

  /* today's card: thumbnail left, text right */
  .today-cards .card {
    width: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr;
  }
  .today-cards .card::before { grid-column: 1 / -1; height: 5px; }
  .today-cards .photo { aspect-ratio: auto; min-height: 124px; height: 100%; }
  .today-cards .photo-placeholder { font-size: 2.2rem; }
  .today-cards .time-badge { bottom: 8px; font-size: .78rem; padding: .15rem .5rem .15rem .55rem; }
  .today-cards .card-body { padding: .6rem .75rem .65rem; gap: .25rem; min-width: 0; }
  .today-cards .card h3 { font-size: 1.08rem; line-height: 1.25; }
  .today-cards .subtitle { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .today-cards .division { font-size: .68rem; }
  .today-cards .swatch { width: 10px; height: 10px; }
  .today-cards .facts { font-size: .84rem; gap: .2rem; margin-top: .1rem; }
  .today-cards .facts div { grid-template-columns: 50px 1fr; gap: .35rem; }
  .today-cards .facts dt { font-size: .7rem; }
  .today-cards .card-footer { padding-top: .4rem; }
  .today-cards .card-footer a { font-size: .75rem; }

  /* upcoming: a horizontal strip you swipe through; all cards are shown */
  .upcoming-title { display: block; margin: .25rem 0 -.5rem; }
  .upcoming {
    flex: none;                     /* desktop's flex: 1 1 0 would collapse it to 0 height in a column */
    display: flex; gap: .6rem; overflow-x: auto; overflow-y: hidden; container-type: normal;
    scroll-snap-type: x mandatory; scroll-padding: 0 12px; overscroll-behavior-x: contain;
    margin: 0 -12px; padding: 0 12px .35rem; scrollbar-width: none;
  }
  .upcoming::-webkit-scrollbar { display: none; }
  .up { flex: 0 0 140px; scroll-snap-align: start; }
  .up-day { margin-top: 0; font-size: .78rem; margin-bottom: .25rem; color: var(--muted); }
  .card-compact { width: 140px; }
  .card.card-compact::before { height: 4px; }
  .card-compact .photo { aspect-ratio: 1 / 1; }
  .card-compact .photo-placeholder { font-size: 2rem; }
  .card-compact .time-badge { bottom: 6px; font-size: .72rem; padding: .1rem .45rem .1rem .5rem; }
  .card-compact .card-body { height: 92px; padding: .45rem .55rem .5rem; gap: .15rem; }
  .card.card-compact h3 { font-size: .88rem; }
  .card-compact .facts { font-size: .74rem; gap: .05rem; }
  .card-compact .facts div { grid-template-columns: 1fr; }
  .card-compact .facts dt { display: none; }       /* no room for labels; the sheet has them */
  .card-compact .map-link { display: none; }
  .card-compact .card-footer { padding-top: .3rem; }
  .card-compact .card-footer a { font-size: .68rem; }

  /* details: a bottom sheet instead of a pop-over next to the card */
  .pop-dialog, .pop-dialog.anchored {
    position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 85vh;
  }
  .pop-dialog::backdrop { background: rgba(0, 0, 0, .35); }
  .pop-dialog .pop {
    width: 100%; max-width: none; max-height: 85vh; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 14px 14px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 1.1rem 16px calc(1.4rem + env(safe-area-inset-bottom)); gap: .5rem;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .2);
  }
  .pop-close { font-size: 1.7rem; padding: .2rem .6rem; }
  .pop-dialog .pop-title { font-size: 1.25rem; padding-right: 2.5rem; }
  .pop .facts div { grid-template-columns: 62px 1fr; }
  .pop .map-link, .pop-link { padding-top: .15rem; padding-bottom: .15rem; }

  /* calendar: agenda of the days that have lectures */
  .cal-header { margin-bottom: .6rem; align-items: center; }
  .cal-header h2 { font-size: 1.4rem; }
  .month-nav a { padding: .45rem .8rem; font-size: .82rem; }
  .calendar { border: 0; }
  .cal-head { display: none; }
  .cal-row { grid-template-columns: 1fr; }
  .cal-row + .cal-row { border-top: 0; }
  .cal-day { min-height: 0; border-left: 0; padding: .7rem 0 .2rem; gap: .4rem; background: none !important; }
  .cal-day + .cal-day, .cal-row + .cal-row .cal-day { border-top: 1px solid var(--line); }
  .cal-day.empty-day, .cal-day.out { display: none; }
  .cal-num { display: none; }
  .cal-full {
    display: block; font-family: var(--narrow); text-transform: uppercase; letter-spacing: 1px;
    font-size: .78rem; font-weight: 700; color: var(--label);
  }
  .cal-day.today .cal-full { color: var(--text); }
  .cal-day.today .cal-full::after { content: " · Today"; }
  .cal-event summary { min-height: 46px; align-content: center; padding: .55rem .7rem .55rem .85rem; font-size: .92rem; border-radius: 6px; }
  .cal-detail { font-size: .8rem; }
  .pop { position: static; width: auto; max-width: none; margin: .4rem 0 .2rem; box-shadow: none; padding: .8rem .9rem; }

  /* footer + statistics page */
  .footer-inner { padding: .8rem 12px calc(1rem + env(safe-area-inset-bottom)); }
  .last-updated { font-size: .74rem; }
  .stats-page h1 { font-size: 1.55rem; margin-bottom: 1rem; }
  .stats { grid-template-columns: 1fr; gap: .9rem; }
}

@media (max-width: 370px) {
  .brand { font-size: .9rem; letter-spacing: .5px; }
  .topbar button.ghost { padding: .45rem .3rem; }
}

/* touch: no sticky hover shadows, quick press feedback instead */
@media (hover: none) {
  .card[data-dialog]:hover { box-shadow: none; }
  .card[data-dialog] { -webkit-tap-highlight-color: transparent; }
  .card[data-dialog]:active { transform: scale(.985); }
}

/* --- Footer: last update on the left, statistics link on the right ------------------ */
.site-footer { border-top: 1px solid var(--line); margin-top: 1rem; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 1rem 16px 1.5rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.last-updated { font-size: .8rem; color: var(--label); font-variant-numeric: tabular-nums; }
.footer-link { font-family: var(--narrow); text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  font-size: .8rem; color: var(--muted); padding: .3rem 0; }
.footer-link:hover { color: var(--text); }

/* --- Statistics page --------------------------------------------------------------------- */
.stats-page h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 300; margin-bottom: 1.75rem; }
.stats-page .kicker a { color: var(--label); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem 2.5rem; max-width: 960px; }
.stats div { border-top: 1px solid var(--line); padding-top: .6rem; }
.stats dt { font-family: var(--narrow); text-transform: uppercase; letter-spacing: 1px;
  font-size: .75rem; font-weight: 700; color: var(--label); margin-bottom: .2rem; }
.stats dd { margin: 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
