/* NYC Sports: the feed's card (js/sports.js) and the page (/sports,
   templates/sports.html). The canvas "Knicks card, simplified · NYC sports":
   a scoreboard band in the team's colour with its second colour as a stripe
   under it, the teams, the time or the score big, and two short lines. The
   band's colour is the team's, set per band (--team, --stripe, app/sports/
   teams.py), white type on all of them at 4.5:1 or better; everything else
   is the tokens', so the dark theme comes with them. Coral is only what you
   tap. */

.nys { color: var(--ink); font-family: var(--font-sans); }

/* ── The band ────────────────────────────────────────────────────────── */
.spb {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + 6px); box-sizing: border-box;
  background: var(--team, #17150f); color: #ffffff; text-decoration: none; overflow: hidden;
}
.spb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--stripe, #8c8476); }
a.spb:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.spb-kick { display: flex; justify-content: space-between; gap: var(--space-3); font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.spb-kick > span:first-child { display: inline-flex; align-items: center; gap: var(--space-2); }
/* The Live tag (components.css) on the band: white in both themes, as the band's type is. */
.spb .tag-live { background: #ffffff; color: #cc3518; }
.spb .tag-live::before { background: #e83d1a; }
.spb-match { display: flex; align-items: center; justify-content: center; gap: var(--space-5); }
.spb-side { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.spb-side b { font: 800 var(--text-3xl)/1 var(--font-head); letter-spacing: var(--track-tight); }
.spb-side span { font: 600 var(--text-meta)/1.3 var(--font-sans); }
.spb-vs { font: 700 var(--text-base)/1 var(--font-sans); opacity: .85; }
.spb-score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); text-align: center; }
.spb-score span { display: block; font: 700 var(--text-meta)/1.2 var(--font-sans); letter-spacing: var(--track-caps); }
.spb-score b { display: block; font: 800 var(--text-3xl)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.spb-score .is-them { opacity: .8; }
.spb-lead { position: relative; height: 8px; margin: 0 var(--space-2); border-radius: var(--r-xs); background: rgba(255, 255, 255, .22); }
.spb-lead::before { content: ""; position: absolute; left: 50%; top: -3px; width: 2px; height: 14px; background: #ffffff; }
.spb-lead i { position: absolute; top: 0; height: 8px; background: var(--stripe, #fff); }
.spb-lead-t { text-align: center; font: 700 var(--text-xs)/1 var(--font-sans); }
.spb-head { margin: 0; font: 800 var(--text-xl)/1.1 var(--font-head); }
.spb-final { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.spb-final b { font: 800 var(--text-3xl)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.spb-final .is-them { opacity: .8; }
.spb-final .spb-opp { margin-left: auto; font: 700 var(--text-sm)/1.2 var(--font-sans); }
.spb.is-lost { background: #3d3a33; }

/* ── The feed's card ─────────────────────────────────────────────────── */
.nys-card {
  margin: var(--space-4) 1rem; box-sizing: border-box; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.nys-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-1); }
.nys-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 28px; color: var(--ink-2); font: 400 var(--text-sm)/1.35 var(--font-sans); }
.nys-row b { color: var(--ink); font-weight: 700; }
.nys-last5 { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.nys-last5 > span { margin-right: 3px; color: var(--ink-3); font: 700 var(--text-xs)/1 var(--font-sans); }
.nys-last5 i { width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: var(--team, var(--ink-2)); }
.nys-last5 i.is-l { background: none; border: 2px solid var(--ink-3); }
.nys-last5 i.is-t { background: var(--ink-3); }
.nys-go { align-self: flex-start; }
/* Two or three games: the bands stacked, smaller, a line between. */
.nys-card.is-many .spb { padding-top: var(--space-3); padding-bottom: calc(var(--space-3) + 6px); gap: var(--space-2); }
.nys-card.is-many .spb-side b { font-size: var(--text-xl); }
.nys-card.is-many .spb-score b { font-size: var(--text-2xl); }
.nys-card.is-many .spb-final b { font-size: var(--text-xl); }
.nys-card.is-many .spb-head { font-size: var(--text-lg); }
.nys-card.is-many .spb-match { justify-content: flex-start; gap: var(--space-3); }
.nys-card.is-many .spb-side { flex-direction: row; align-items: baseline; gap: var(--space-2); }
.nys-more { margin: 0; padding: var(--space-2) var(--space-4) 0; color: var(--ink-2); font: 500 var(--text-sm)/1.35 var(--font-sans); }

/* ── The page ────────────────────────────────────────────────────────── */
/* In line with the feed and Issues (the user, 2 Nov): below 1000px their
   600px measure and 16px sides; from 1000px, below, their 16px in from the
   shell's column. */
.nys-page { max-width: 600px; margin: 0 auto; box-sizing: border-box; padding: 0 16px var(--space-7); display: flex; flex-direction: column; gap: var(--space-5); }
.nys-head { display: flex; flex-direction: column; gap: var(--space-2); }
/* A team's facts line (components.css .facts-line): its record, and Share,
   the page and its last final (sports_team.html; app/share). The head's own
   gap spaces it; the record reads at body size beside Share. */
.nys-head .facts-line { margin-top: 0; }
.nys-head .facts-line .nys-lede { font-size: var(--text-base); }
.nys-head h1 { margin: 0; font: 800 var(--text-2xl)/1.1 var(--font-head); letter-spacing: var(--track-tight); }
.nys-lede { margin: 0; max-width: 46rem; color: var(--ink-2); font: 400 var(--text-lg)/1.45 var(--font-sans); }
.nys-label { margin: 0 0 var(--space-3); color: var(--ink-3); font: 800 var(--text-xs)/1 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nys-today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-3); }
.nys-today-grid .spb { border-radius: var(--r-lg); }
.nys-today-grid .spb-side b { font-size: var(--text-xl); }
.nys-today-grid .spb-score b, .nys-today-grid .spb-final b { font-size: var(--text-2xl); }
.nys-today-grid .spb-head { font-size: var(--text-lg); }
.nys-today-grid .spb-match { justify-content: flex-start; gap: var(--space-3); }
.nys-today-grid .spb-side { flex-direction: row; align-items: baseline; gap: var(--space-2); }
.nys-today-sub { font: 600 var(--text-meta)/1.3 var(--font-sans); }
/* The stories, then the teams, each across the page: side by side, the teams'
   schedules ran a thousand pixels past the stories in a 296px column, and
   the stories' column stood empty beside them (the user, 2 Nov). */
.nys-cols { display: flex; flex-direction: column; gap: var(--space-6); }
.nys-stories { min-width: 0; }
.nys-stories h2, .nys-teams-h { margin: 0 0 var(--space-2); font: 800 var(--text-xl)/1.15 var(--font-head); }
.nys-story-grid { border-bottom: 1px solid var(--line); }
.nys-story { display: flex; flex-direction: column; gap: 4px; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
/* As the feed's story (feed-v2.css .v2-kicker, .v2-headline, .v2-meta): the
   newsroom in caps, no beat, the headline, then its time (the final design). */
.nys-story-kick { color: var(--ink); font: 800 var(--text-xs)/1.3 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nys-story-meta { color: var(--ink-3); font: 400 var(--text-sm)/1.3 var(--font-sans); }
.nys-story a { color: var(--ink); text-decoration: none; font: 700 var(--text-lg)/1.3 var(--font-head); }
.nys-story a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nys-story a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nys-more-stories summary { display: flex; align-items: center; min-height: var(--hit); cursor: pointer; color: var(--coral-strong); font: 700 var(--text-sm)/1.2 var(--font-sans); list-style: none; }
.nys-more-stories summary::-webkit-details-marker { display: none; }
.nys-more-stories summary::after { content: " →"; white-space: pre; }
.nys-more-stories[open] summary { display: none; }
.nys-more-stories summary:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nys-empty { color: var(--ink-2); font: 400 var(--text-base)/1.5 var(--font-sans); }
.nys-teams { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.nys-teams-h { margin-bottom: 0; }
.nys-team { scroll-margin-top: calc(var(--header-h, 60px) + var(--space-4)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.nys-team-head { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-3) var(--space-4) calc(var(--space-3) + 5px); background: var(--team); color: #ffffff; }
.nys-team-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--stripe); }
.nys-team-head h2 { margin: 0; font: 800 var(--text-lg)/1.15 var(--font-head); }
.nys-team-head span { font: 700 var(--text-sm)/1.2 var(--font-sans); text-align: right; }
.nys-games { list-style: none; margin: 0; padding: var(--space-1) var(--space-4) var(--space-2); }
.nys-games li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line); font: 400 var(--text-sm)/1.35 var(--font-sans); }
.nys-games .nys-o { display: block; color: var(--ink-2); }
.nys-games li:last-child { border-bottom: 0; }
.nys-games b { font-weight: 700; }
.nys-games .nys-t { color: var(--ink-2); text-align: right; }
.nys-team-last { margin: 0; padding: 0 var(--space-4) var(--space-3); color: var(--ink-2); font: 500 var(--text-meta)/1.35 var(--font-sans); }
.nys-resting { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--space-3) var(--space-4); }
.nys-resting h2 { margin: 0 0 var(--space-1); font: 800 var(--text-base)/1.2 var(--font-head); }
.nys-resting ul { list-style: none; margin: 0; padding: 0; }
.nys-resting li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); padding: 8px 0; border-top: 1px solid var(--line); font: 400 var(--text-sm)/1.35 var(--font-sans); scroll-margin-top: calc(var(--header-h, 60px) + var(--space-4)); }
.nys-resting li:first-child { border-top: 0; }
.nys-resting i { width: 12px; height: 12px; border-radius: 50%; background: var(--team); }
.nys-resting .nys-t { color: var(--ink-3); text-align: right; }
.nys-source { margin: 0; color: var(--ink-3); font: 400 var(--text-meta)/1.4 var(--font-sans); }

/* From 1000px the page sits on the New York feed's shell: the feed's grid
   of rail / column / right column, the page in the column, 16px in, and the
   weather card in the right-hand column, as on the feed and Issues (design
   system board 8: the shell stays; until 14 Nov the page ran across both). */
@media (min-width: 1000px) {
  .nys-page { position: relative; left: -1rem; max-width: 990px; padding-left: 1.25rem; padding-right: 1.25rem; display: grid; grid-template-columns: 0 minmax(0, 1fr) 296px; column-gap: 2rem; row-gap: 0; align-items: start; }
  .nys-page > * { grid-column: 2; min-width: 0; margin: 0 16px var(--space-5); }
  /* The weather card, the right-hand column's first, as on the feed and
     Issues (partials/page_weather.html .pw-side): the shell stays. */
  /* At the height it has on the feed and Issues (1.4rem under the switch
     band), not pushed down by Sports' teams' row (its real height, one line
     or two: --sp-row-h, partials/sports_row.html) and the page's top
     padding: the card does not move between views. */
  .nys-page > .pw-side { margin: calc(-1 * var(--sp-row-h, var(--nat-switch-h, 52px))) 0 0; }
}
/* From 1000px, in the shell's column: the teams' schedules two by two, a
   game on one line, the teams between seasons in one row; the stories one
   under another, as in the feed. */
@media (min-width: 1000px) {
  .nys-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); align-items: start; }
  .nys-teams-h, .nys-resting, .nys-teams .nys-source { grid-column: 1 / -1; }
  .nys-games li { grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
  .nys-games li > span:first-child { display: contents; }
  .nys-resting ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: var(--space-5); }
  .nys-resting li, .nys-resting li:first-child { border-top: 0; }
}

/* ── How it went, and who covered it (the canvas "NYC Sports: team pages
   and game cards", 3 Nov 2026) ───────────────────────────────────────── */
/* The line under a final's score: in the band on the hub, in white. */
.spb-line { font: 600 var(--text-sm)/1.4 var(--font-sans); }
/* On the feed's card and the team page, in the card's body. */
.nys-line { margin: 0; color: var(--ink); font: 600 var(--text-base)/1.45 var(--font-sans); }
.nys-card .nys-line.is-under { padding: var(--space-2) var(--space-4) 0; font-size: var(--text-sm); }
.nys-card .nys-met { margin: 0; color: var(--ink-2); font: 500 var(--text-sm)/1.35 var(--font-sans); }
.nys-cov-h, .nys-cov .nys-label { margin: var(--space-1) 0 0; color: var(--ink-3); font: 800 var(--text-xs)/1 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nys-card .nys-cov-a { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.nys-card .nys-cov-a b { font: 700 var(--text-meta)/1.3 var(--font-sans); }
.nys-card .nys-cov-a span { font: 700 var(--text-base)/1.25 var(--font-head); }
.nys-card .nys-cov-a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.nys-card .nys-cov-a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* ── The team pages ──────────────────────────────────────────────────── */
.nys-h2 { margin: 0 0 var(--space-2); font: 800 var(--text-xl)/1.15 var(--font-head); }
.nys-final { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.nys-final-body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
.nys-final .nys-line { font-size: var(--text-lg); }
.nys-periods-box { overflow-x: auto; }
.nys-periods { width: 100%; border-collapse: collapse; font: 400 var(--text-sm)/1.3 var(--font-sans); font-variant-numeric: tabular-nums; }
.nys-periods th, .nys-periods td { padding: 7px 0 7px var(--space-2); text-align: right; white-space: nowrap; }
.nys-periods th:first-child { padding-left: 0; text-align: left; }
.nys-periods thead th { color: var(--ink-3); font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps); }
.nys-periods thead th:first-child { text-transform: uppercase; }
.nys-periods tbody tr { border-top: 1px solid var(--line); }
.nys-periods tbody th { font-weight: 600; }
.nys-periods tr.is-us th, .nys-periods tr.is-us .is-total { font-weight: 800; }
.nys-cov { display: flex; flex-direction: column; }
.nys-cov .nys-label { margin: 0 0 var(--space-1); }
.nys-next .nys-games { padding: 0; border-top: 1px solid var(--line); }
.nys-results { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); font: 400 var(--text-sm)/1.35 var(--font-sans); font-variant-numeric: tabular-nums; }
.nys-results li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 1.5rem 4.5rem; gap: var(--space-2); padding: 9px 0; border-top: 1px solid var(--line); }
.nys-results b { font-weight: 800; color: var(--ink-3); }
.nys-results b.is-w { color: var(--team, var(--ink)); }
.nys-results .nys-score { text-align: right; }
.nys-promo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: var(--r-lg); background: var(--sunk); }
.nys-promo p { margin: 0; color: var(--ink); font: 400 var(--text-base)/1.45 var(--font-sans); }
.nys-promo-go { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 var(--space-4); border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font: 700 var(--text-sm)/1 var(--font-sans); }
.nys-promo-go:hover { border-color: var(--coral-strong); color: var(--coral-strong); }
.nys-promo-go:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* ── The hub: where each team stands ─────────────────────────────────── */
.nys-stand { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.nys-stand li { padding: var(--space-3) 0; border-top: 1px solid var(--line); font: 400 var(--text-base)/1.35 var(--font-sans); }
.nys-stand b { font-weight: 800; }
.nys-stand .nys-rec { color: var(--ink-2); }
.nys-stand .nys-sub { display: block; margin-top: 3px; color: var(--ink-2); font-size: var(--text-sm); }

@media (min-width: 1000px) {
  .nys-final-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4) var(--space-6); align-items: start; }
  .nys-final-body > .nys-line { grid-column: 1 / -1; }
  .nys-final-body > .nys-periods-box:last-child { grid-column: 1 / -1; }
  /* The next games and the season one under another in the column (two by two
     when the page ran across the right-hand column too, until 14 Nov). */
  .nys-stand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
}

/* ── NYC Sports, reimagined (the canvas, 12 Nov 2026): the hub, the game
   view and the feed's carousel ──────────────────────────────────────── */
.nys-eyebrow { margin: 0; color: var(--coral-strong); font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nys-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* A section's head: a 3px rule in ink, its label in caps, a note at right. */
.nys-sec { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-3); padding-top: 10px; border-top: 3px solid var(--ink); }
.nys-sec h2 { margin: 0; color: var(--ink); font: 800 var(--text-sm)/1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nys-sec > span { color: var(--ink-3); font: 600 var(--text-xs)/1.2 var(--font-sans); }
.nys-go { align-self: flex-start; display: inline-flex; align-items: center; min-height: var(--hit); color: var(--coral-strong); text-decoration: none; font: 800 var(--text-sm)/1 var(--font-sans); }
.nys-go:hover { color: var(--coral-press); }
.nys-go:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* The carousel: a card per game, swiped; arrows from 1000px. */
.nys-car-track { display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.nys-car-track::-webkit-scrollbar { display: none; }
/* On a phone the games stay in the column, at the text's margin, clear of
   the view's left and right lines (site-header.css html.is-view, 8px in):
   running to the screen's edge they crossed them (the user, 14 Nov 2026). */
@media (max-width: 635px) { html.is-view .nys-car-track { margin: 0; padding: 0 0 4px; } }
.nys-car-btns { display: none; gap: var(--space-1); }
.nys-car-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--hit); height: var(--hit); margin: -10px 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.nys-car-btn:hover { border-color: var(--coral); color: var(--coral-strong); }
.nys-car-btn:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nys-tile {
  position: relative; flex: none; width: 200px; min-height: 92px; box-sizing: border-box; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  padding: 10px 12px 15px; border-radius: var(--r-md); overflow: hidden;
  background: var(--team, var(--ink)); color: #ffffff; text-decoration: none;
}
.nys-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--stripe, #8c8476); }
.nys-tile.is-scheduled { width: 168px; }
.nys-tile.is-lost { background: #3d3a33; }
.nys-tile:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nys-tile:hover .nys-tile-n { text-decoration: underline; text-underline-offset: 3px; }
.nys-tile-k { display: inline-flex; align-items: center; gap: 6px; font: 800 var(--text-xs)/1.1 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; opacity: .92; }
.nys-tile .tag-live { background: #ffffff; color: #cc3518; }
.nys-tile .tag-live::before { background: #e83d1a; }
.nys-tile-n { font: 800 var(--text-base)/1.15 var(--font-head); font-variant-numeric: tabular-nums; }
.nys-tile-s { font: 600 var(--text-xs)/1.3 var(--font-sans); opacity: .95; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* The hub. */
.nys-hub-cols, .nys-hub-side { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.nys-lastnight { display: flex; flex-direction: column; gap: var(--space-4); }
.nys-ln { display: flex; flex-direction: column; gap: var(--space-2); }
.nys-ln .spb { border-radius: var(--r-md); }
.nys-ln.is-compact .spb { padding-top: var(--space-3); padding-bottom: calc(var(--space-3) + 6px); gap: var(--space-2); }
.nys-ln.is-compact .spb-final b { font-size: var(--text-xl); }
.nys-ln.is-compact .spb-head { font-size: var(--text-lg); }
.nys-most-list, .nys-coming-list { list-style: none; margin: 0; padding: 0; }
.nys-most-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nys-most-n { color: var(--coral-strong); font: 800 var(--text-lg)/1.25 var(--font-head); font-variant-numeric: tabular-nums; }
.nys-most-a { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink); text-decoration: none; }
.nys-most-a:hover .nys-most-hl { text-decoration: underline; text-underline-offset: 3px; }
.nys-most-a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nys-most-hl { font: 700 var(--text-lg)/1.25 var(--font-head); }
.nys-most-meta { color: var(--ink-3); font: 400 var(--text-meta)/1.35 var(--font-sans); }
.nys-issue { align-self: flex-start; padding: 3px 5px; border: 1px solid var(--ink); border-radius: var(--r-xs); color: var(--ink); font: 800 var(--text-xs)/1 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nys-most-c { text-align: right; color: var(--ink-3); font: 600 var(--text-xs)/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }
.nys-most-c b { display: block; color: var(--ink); font: 800 var(--text-base)/1.25 var(--font-sans); }
.nys-coming-list a { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; min-height: var(--hit); padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.nys-coming-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.nys-coming-list a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nys-coming-when { display: flex; flex-direction: column; gap: 2px; color: var(--ink-3); font: 600 var(--text-xs)/1.3 var(--font-sans); }
.nys-coming-when b { color: var(--ink); font: 800 var(--text-sm)/1.2 var(--font-head); white-space: nowrap; }
.nys-coming-g { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nys-coming-g b { font: 800 var(--text-base)/1.2 var(--font-head); }
.nys-coming-g span, .nys-coming-p { color: var(--ink-3); font: 400 var(--text-meta)/1.35 var(--font-sans); }
.nys-coming-p { text-align: right; font-variant-numeric: tabular-nums; }
a.nys-promo-a { flex-direction: row; justify-content: space-between; align-items: center; color: var(--ink); text-decoration: none; }
a.nys-promo-a > span:first-child { display: flex; flex-direction: column; gap: 2px; }
a.nys-promo-a b { font: 800 var(--text-base)/1.3 var(--font-sans); }
a.nys-promo-a > span:first-child > span { color: var(--ink-3); font: 400 var(--text-meta)/1.35 var(--font-sans); }
a.nys-promo-a:hover .nys-promo-go { border-color: var(--coral-strong); color: var(--coral-strong); }
a.nys-promo-a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* The game view: the split band, both teams' colours. */
.nys-game { display: flex; flex-direction: column; gap: var(--space-3); }
.nys-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-md); overflow: hidden; }
.nys-split-side { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 20px; background: var(--team); color: #ffffff; }
.nys-split-side:last-child { align-items: flex-end; text-align: right; }
.nys-split-side::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--stripe); }
.nys-split-k { display: inline-flex; align-items: center; gap: 6px; font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; opacity: .92; }
.nys-split .tag-live { background: #ffffff; color: #cc3518; }
.nys-split .tag-live::before { background: #e83d1a; }
.nys-split-n { font: 800 var(--text-3xl)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.nys-split-n.is-name { font-size: var(--text-xl); line-height: 1.1; }
.nys-split-side.is-lost .nys-split-n { opacity: .82; font-weight: 700; }
.nys-game-state { margin: 0; color: var(--ink-2); font: 600 var(--text-sm)/1.35 var(--font-sans); }
.nys-game-line { margin: 0; font: 700 var(--text-xl)/1.3 var(--font-head); }
.nys-nextbox { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: 6px var(--space-4); border: 1px solid var(--line); border-radius: var(--r-md); }
.nys-nextbox-a { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.nys-nextbox-a:hover .nys-nextbox-t { text-decoration: underline; text-underline-offset: 3px; }
.nys-nextbox-a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nys-nextbox-k { color: var(--ink-2); font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nys-nextbox-t { font: 800 var(--text-lg)/1.2 var(--font-head); }
.nys-share-game { align-self: stretch; justify-content: center; min-height: 48px; }
.nys-results a { display: contents; color: inherit; text-decoration: none; }
.nys-results li:hover span:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; }
.nys-games a.nys-o { color: var(--ink-2); text-decoration: none; }
.nys-games a.nys-o:hover { color: var(--coral-strong); text-decoration: underline; }

@media (min-width: 1000px) {
  .nys-car-btns { display: inline-flex; }
  .nys-car-track { margin: 0; padding: 0 0 4px; }
  .nys-tile { width: 232px; }
  .nys-tile.is-scheduled { width: 184px; }
  .nys-results li { position: relative; }
}

/* ── The feed's card, as a carousel (2+ games) or one wide game ─────── */
.nys-card .nys-card-h { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4) 0; }
.nys-card .nys-card-h h2 { margin: 0; color: var(--ink); font: 800 var(--text-sm)/1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nys-card .nys-car-track { margin: 0; padding: var(--space-3) var(--space-4) var(--space-4); }
.nys-card .nys-tile { width: 196px; }
.nys-card .nys-tile.is-scheduled { width: 156px; }
a.nys-card-one { display: block; color: inherit; text-decoration: none; }
a.nys-card-one:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
a.nys-card-one:hover .nys-line { text-decoration: underline; text-underline-offset: 3px; }

/* ── A game's pop-up (js/sports-pop.js; the user, 12 Nov 2026: a game's
   details in a pop-up, as the weather's once was) ─────────────────────── */
.nys-pop {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-sizing: border-box;
  margin: auto; padding: var(--space-5) var(--space-4) var(--space-4); overflow: auto;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
}
.nys-pop::backdrop { background: rgba(23, 21, 15, .45); }
.nys-pop-x { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: var(--hit); height: var(--hit); border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.nys-pop-x:hover { background: var(--sunk); }
.nys-pop-x:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nys-pop-body { display: flex; flex-direction: column; gap: var(--space-3); }
.nys-pop-body .nys-eyebrow { padding-right: var(--hit); }
.nys-pop-share { align-self: flex-start; }
@media (max-width: 480px) {
  .nys-pop { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}


/* Sports as one feed (canvas "NYC Sports, like Weather", 23 Nov): the scoreboard, Most covered, the latest. */
.nsb { margin-top: 0; }        /* the page's own gap (.nys-page) spaces the blocks; no extra blank under the opening */
.nsb-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-top: var(--space-2); border-top: 3px solid var(--ink); }
.nsb-ico { flex: none; margin-right: 8px; vertical-align: -3px; color: var(--coral-strong); }   /* the feed's label icon (MOST COVERED, the clock) */
.nsb-head h2 { margin: 0; font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink); }
.nsb-head span { color: var(--ink-3); font: 400 var(--text-xs)/1.2 var(--font-sans); }
.nsb-page:has(.ds-tabs) .nsb-head { border-top: 0; }   /* no black rules over sections in the one feed (board 1) */
.nsb-page:has(.ds-tabs) .nsb-rest, .nsb-page:has(.ds-tabs) .nsb-later, .nsb-page:has(.ds-tabs) #nsb-board.is-bare { display: none; }   /* the rail has the teams and the sidebar the week (board 3) */   /* the sidebar has the week and the resting teams (board 7) */
.nsb-row { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; min-height: 56px; padding: var(--space-2) 0; border-bottom: 1px solid var(--hr); color: var(--ink); text-decoration: none; }
.nsb-row:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nsb-bar { align-self: stretch; border-radius: 3px; background: var(--team, var(--ink)); }
.nsb-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nsb-name { font: 700 var(--text-base)/1.25 var(--font-head); font-variant-numeric: tabular-nums; }
.nsb-line { color: var(--ink-3); font: 400 var(--text-xs)/1.35 var(--font-sans); }
.nsb-row.is-final.is-lost .nsb-name { color: var(--ink-2); }
.nsb-tag { display: inline-flex; align-items: center; gap: 6px; font: 800 var(--text-xs)/1 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nsb-tag.is-live { color: var(--coral-strong); }
.nsb-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-strong); }
.nsb-rest, .nsb-empty { margin: 0; padding: var(--space-2) 0; border-bottom: 1px solid var(--hr); color: var(--ink-3); font: 400 var(--text-sm)/1.4 var(--font-sans); }
.nsb-later > summary { display: flex; justify-content: space-between; align-items: center; min-height: var(--hit); border-bottom: 1px solid var(--hr); cursor: pointer; list-style: none; font: 700 var(--text-sm)/1 var(--font-sans); }
.nsb-later > summary::-webkit-details-marker { display: none; }
.nsb-later > summary b { color: var(--coral-strong); font-weight: 700; }
.nsb-later[open] > summary b { display: none; }
.nsb-latest { list-style: none; margin: 0; padding: 0; }
.nsb-latest a { display: flex; flex-direction: column; padding: var(--space-3) 0; border-bottom: 1px solid var(--hr); color: var(--ink); text-decoration: none; }
.nsb-latest a:hover .nsb-t { text-decoration: underline; text-underline-offset: 3px; }
/* A news item is New York's card (feed-v2.css .v2-kicker, .v2-headline, .v2-meta, .v2-pic): the same sizes, colours and gaps. */
.nsb-k { margin-bottom: 4px; font: 800 var(--text-xs)/1.3 var(--font-sans); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--ink); }
.nsb-k span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.nsb-meta { margin-top: 4px; color: var(--ink-3); font: 400 var(--text-sm)/1.3 var(--font-sans); }
.nsb-t { font: 700 var(--text-lg)/1.3 var(--font-head); }      /* the feed's headline face (.v2-headline) */
.nsb-more { height: 1px; }
.nsb-page .nys-most-list { margin-top: 0; }

/* A story's picture on Sports: the feed's (feed-v2.css .v2-pic), wide, credited. */
.nsb-pic { margin: 0 0 var(--space-2); }
.nsb-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 2px; border-radius: var(--r-md); background: var(--sunk); }
.nsb-credit { color: var(--ink-3); font: 500 var(--text-xs)/1.3 var(--font-sans); text-align: right; }   /* the image carries the corners, as the feed's: no crescent where a rounded box met the credit row (25 Nov) */
.nys-most-a .nsb-pic { margin-bottom: var(--space-2); }

/* The Sports tab's personality (canvas "one feed", board 3): colour from the teams, never the page. */
.nsb-hero { overflow: hidden; border-radius: var(--r-lg); background: var(--door-subway); color: var(--on-door-subway);   /* black in both modes, so the yellow label reads */ margin-top: var(--space-3); }
.nsb-hero-pic { margin: 0; background: #2a2722; }
.nsb-hero-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.nsb-hero-pic .nsb-credit { padding: 4px 12px; background: #17150f; color: #cfc8bb; }
.nsb-hero-in { display: block; color: inherit; text-decoration: none; }
.nsb-hero-in:focus-visible { outline: var(--focus-ring); outline-offset: -3px; }
.nsb-hero-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nsb-hero-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; background: var(--team); }
.nsb-hero-side.is-them { align-items: flex-end; background: var(--opp); }
.nsb-hero-side b { font: 800 var(--text-xs)/1 var(--font-sans); letter-spacing: var(--track-caps); opacity: .85; }
.nsb-hero-n { font: 800 var(--text-4xl)/1 var(--font-sans); letter-spacing: var(--track-tight); }
.nsb-hero-side.is-dim .nsb-hero-n { opacity: .7; }
.nsb-hero-sides.is-next { display: flex; justify-content: space-between; align-items: flex-end; padding: 16px 16px 14px; background: var(--team); }
.nsb-hero-sides.is-next .nsb-hero-side { padding: 0; background: none; gap: 6px; }
.nsb-hero-vs, .nsb-hero-when { font: 800 var(--text-xl)/1.05 var(--font-sans); }
.nsb-hero-ft { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px; background: var(--door-subway); }
.nsb-hero-kick { font: 800 var(--text-xs)/1.3 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; color: #f5c400; }
.nsb-hero-kick.is-live { display: flex; align-items: center; gap: 7px; color: #ff7a5c; }
.nsb-hero-kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-strong); }
.nsb-hero-hd { font: 800 var(--text-lg)/1.25 var(--font-head); }
.nsb-hero-ln { font: 500 var(--text-sm)/1.4 var(--font-sans); opacity: .78; }
.nsb-hero-in:hover .nsb-hero-hd { text-decoration: underline; text-underline-offset: 3px; }
/* The colour rail: a row on a phone that scrolls sideways, the sidebar's list on a computer. */
.nsb-rail { display: flex; gap: var(--space-2); margin: var(--space-3) -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: 16px; }
.nsb-rail::-webkit-scrollbar { display: none; }
.nsb-rail.is-side { flex-direction: column; margin: var(--space-2) 0 0; padding: 0; overflow: visible; }
@media (min-width: 1024px) { .nsb-page > .nsb-rail { display: none; } }
.nsb-chip { flex: none; scroll-snap-align: start; box-sizing: border-box; width: 118px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--team); color: #fff; text-decoration: none; font-family: var(--font-sans); }
.is-side .nsb-chip { width: auto; display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); }
.nsb-chip b { font: 800 var(--text-xs)/1 var(--font-sans); letter-spacing: var(--track-caps); }
.nsb-chip span { font: 700 var(--text-sm)/1.2 var(--font-sans); }
.is-side .nsb-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a long opponent is cut, not wrapped (24 Nov) */
.nsb-chip i { font: 500 var(--text-xs)/1 var(--font-sans); font-style: normal; opacity: .85; }
.nsb-chip.is-live i { font-weight: 800; opacity: 1; }
.nsb-chip.is-rest { width: 150px; grid-template-columns: minmax(0, 1fr) auto; background: var(--oat); color: var(--ink-2); }
.nsb-chip.is-rest b { color: var(--ink); }
.is-side .nsb-chip.is-rest { width: auto; grid-template-columns: minmax(0, 1fr) auto; }   /* the sidebar's row: the teams left, the words right (board 7) */
.nsb-chip:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nsb-team { display: inline-block; margin-right: 8px; padding: 3px 7px; border-radius: 6px; color: #fff; font: 800 var(--text-xs)/1 var(--font-sans); font-style: normal; letter-spacing: var(--track-caps); vertical-align: 1px; }

/* ── The Sports tab, board 15 (24 Nov): size follows what is happening ─────────────────────
   A game on is the poster, today's games are cards, the finals of the last day are lines, the week is a swipe. */
.nsb [hidden] { display: none !important; }
.nsb-pills { display: flex; gap: var(--space-2); margin: var(--space-3) -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.nsb-pills::-webkit-scrollbar { display: none; }
.nsb-pill { flex: none; min-height: 36px; padding: 0 var(--space-3); border: 1.5px solid var(--line-oat); border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font: 700 var(--text-sm)/1 var(--font-sans); cursor: pointer; }
.nsb-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.nsb-pill:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nsb-blk { display: block; }
.nsb-blk + .nsb-blk { margin-top: var(--space-4); }
.nsb-none { margin: var(--space-4) 0 0; color: var(--ink-3); font: 500 var(--text-sm)/1.4 var(--font-sans); }

.nsb-card { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: var(--space-3); align-items: center; margin-top: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
.nsb-card:focus-visible, .nsb-fin:focus-visible, .nsb-wk-c:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nsb-card-n { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: var(--space-2); border-radius: var(--r-md); background: var(--team); color: #fff; text-align: center; }
.nsb-card-n b { font: 800 var(--text-xl)/1 var(--font-sans); letter-spacing: var(--track-tight); }
.nsb-card-n span { font: 700 var(--text-xs)/1 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; opacity: .85; }
.nsb-card-x { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.nsb-card-t { font: 800 var(--text-lg)/1.2 var(--font-head); }
.nsb-card-m { color: var(--ink-3); font: 500 var(--text-xs)/1.35 var(--font-sans); }
.nsb-card:hover .nsb-card-t, .nsb-fin:hover .nsb-card-t { text-decoration: underline; text-underline-offset: 3px; }
.nsb-card.is-live .nsb-card-n b { font-size: var(--text-lg); }
.nsb-form { display: inline-flex; gap: var(--space-1); }
.nsb-form i { display: block; width: 8px; height: 8px; border: 1.5px solid var(--coral-strong); border-radius: 50%; box-sizing: border-box; }
.nsb-form i.is-w { background: var(--coral-strong); }

.nsb-fin { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.nsb-fin-l { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--team); color: #fff; font: 800 var(--text-sm)/1 var(--font-sans); }
.nsb-fin.is-lost .nsb-fin-l { background: var(--oat); color: var(--ink-2); }
.nsb-fin-x { min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.nsb-fin .nsb-card-t { font-size: var(--text-base); }

.nsb-wk { display: flex; gap: var(--space-3); margin: var(--space-3) -16px 0; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.nsb-wk::-webkit-scrollbar { display: none; }
.nsb-wk-c { flex: none; width: min(250px, 72vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--r-lg); background: var(--team); color: #fff; text-decoration: none; }
.nsb-wk-d { font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; opacity: .85; }
.nsb-wk-t { font: 800 var(--text-lg)/1.2 var(--font-head); }
.nsb-wk-m { font: 500 var(--text-sm)/1.3 var(--font-sans); opacity: .85; }
@media (min-width: 1024px) { .nsb-pills, .nsb-wk { margin-inline: 0; } }   /* the column's own gutter is the opening's, not the page's */

/* The Sports news items are the feed's own cards (feed-v2.css .v2-card): only the team tag is Sports'. */
.nsb-feed { display: block; }
.nsb-feed .nsb-team { margin-right: 6px; }
