/* XClub Fantasy, "Matchday almanac". Mobile first, 360 to 1440.
   Paper and ink with one sporting red, used for meaning: live, losses, urgency.
   Team identity appears only as small marks. Display type is Barlow Condensed,
   text is DM Sans, long-form reading is Georgia. Spacing follows an 8 px rhythm,
   rules replace shadows, and every figure is tabular.
   The Night Edition is its own palette on <html data-theme="dark">, not an inversion. */
:root {
  --paper: #f5f3ee;
  --paper-2: #efece4;
  --white: #fff;
  --ink: #181c21;
  --muted: #62676d;
  --line: #d9d8d2;
  --line-2: #c4c1b8;
  --red: #b62b25;
  --soft: #e9e6de;
  --green: #287046;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  /* rhythm, radii, motion */
  --r1: 2px;
  --r2: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 180ms;
  --stick-top: 59px;
  /* component tokens (day edition) */
  --focus: #3268af;
  --focus-inv: #9cc3ff;
  --mast-cap: #b7bbbf;
  --dek: #4e5359;
  --notice-bg: #fff0cf;
  --notice-line: #a5710a;
  --art-bg: #e8e5dc;
  --art-ghost: #7f7a71;
  --art-label: #676153;
  --art-shadow: #e8e5dc;
  --follow-eyebrow: #e99d92;
  --poster-kicker: #f0a399;
  --cheap-bg: #e9e5dc;
  --sev-o: #b3261e;
  --sev-d: #9a5a0c;
  --sev-q: #6a7076;
  --win: #14691b;
  --loss: #b3261e;
  --win-tint: #e2eee4;
  --loss-tint: #f6e1df;
  --red-tint: #f6e3e1;
  --hover: #f3f1eb;
  --chip-bg: #ebe8e0;
  --form-w: #2f7d43;
  --form-l: #b3402a;
  --gold: #f2c14e;
  --final-bg: #d7dde4;
  --followed-row: #fff6e8;
  --field-border: #8d8c86;
  --field-bg: #fff;
  --injury-text: #ad332b;
  --backdrop: rgba(16, 20, 25, 0.78);
  --mast-bg: #181c21;
  --mast-text: #fff;
  --mast-line: transparent;
  --follow-border: #62676d;
  --follow-select-bg: #272c32;
  --follow-select-text: #fff;
  --follow-note: #c3c6ca;
  --follow-line: #474b51;
  --quote-text: #5d5c56;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2362676d' stroke-width='1.8'/%3E%3C/svg%3E");
  --glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%2362676d' stroke-width='1.8'/%3E%3Cpath d='M11 11l4 4' stroke='%2362676d' stroke-width='1.8'/%3E%3C/svg%3E");
  --chev-inv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b7bbbf' stroke-width='1.8'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --paper: #12151a;
  --paper-2: #1a1f26;
  --white: #1e242c;
  --ink: #e9e6df;
  --muted: #9aa1ab;
  --line: #323a45;
  --line-2: #3f4855;
  --red: #e9695d;
  --soft: #242b34;
  --green: #55a874;
  /* component tokens (night edition) */
  --focus: #7ba3e8;
  --focus-inv: #9cc3ff;
  --mast-cap: #9aa1ab;
  --dek: #a9aeb5;
  --notice-bg: #33290f;
  --notice-line: #d8a13a;
  --art-bg: #1a1f26;
  --art-ghost: #5d6b7c;
  --art-label: #8b93a0;
  --art-shadow: #12151a;
  --follow-eyebrow: #a5372e;
  --poster-kicker: #f0a399;
  --cheap-bg: #242b34;
  --sev-o: #c23a2f;
  --sev-d: #c58a2a;
  --sev-q: #5b626c;
  --win: #57b374;
  --loss: #e9695d;
  --win-tint: #1c3024;
  --loss-tint: #301c1e;
  --red-tint: #301c1e;
  --hover: #252c35;
  --chip-bg: #2a313b;
  --form-w: #57b374;
  --form-l: #e9695d;
  --gold: #7a5708;
  --final-bg: #2c333d;
  --followed-row: #2d2412;
  --field-border: #6b7684;
  --field-bg: #1e242c;
  --injury-text: #e9695d;
  --backdrop: rgba(0, 0, 0, 0.75);
  --mast-bg: #1e242c;
  --mast-text: #e9e6df;
  --mast-line: #323a45;
  --follow-border: #46505c;
  --follow-select-bg: #242b34;
  --follow-select-text: #e9e6df;
  --follow-note: #9aa1ab;
  --follow-line: #3a424e;
  --quote-text: #a9aeb5;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa1ab' stroke-width='1.8'/%3E%3C/svg%3E");
  --glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%239aa1ab' stroke-width='1.8'/%3E%3Cpath d='M11 11l4 4' stroke='%239aa1ab' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* ============ Base ============ */
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
html[data-theme="dark"] {
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
  overflow-wrap: break-word;
}
p {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
a,
button {
  overflow-wrap: break-word;
}
h1 {
  font: 800 clamp(40px, 11vw, 64px)/0.94 var(--cond);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
h2 {
  font: 800 28px/1.05 var(--cond);
  text-transform: uppercase;
}
h3 {
  font: 700 22px/1.08 var(--cond);
}
.wrap {
  max-width: 1320px;
  margin: auto;
  padding-inline: 16px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.55;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.eyebrow {
  display: block;
  font: 700 11px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 99;
  padding: 12px 16px;
  background: var(--white);
  font-weight: 700;
}
.skip-link:focus {
  top: 8px;
}

/* ============ Masthead ============ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 35;
  background: var(--mast-bg);
  color: var(--mast-text);
  border-bottom: 3px solid var(--red);
}
.masthead :focus-visible,
.poster :focus-visible,
.follow-box :focus-visible,
.feat-card :focus-visible,
.archive-lead :focus-visible {
  outline-color: var(--focus-inv);
}
.mast-inner {
  max-width: 1320px;
  margin: auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 26px/0.8 var(--cond);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.wordmark:hover {
  text-decoration: none;
}
.brand-x {
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font: 800 32px/1 var(--cond);
  height: 36px;
  width: 29px;
  transform: skew(-7deg);
}
[data-theme="dark"] .brand-x {
  background: #b62b25;
}
.brand-small {
  display: block;
  font: 600 9px/1 var(--sans);
  letter-spacing: 0.32em;
  margin-top: 6px;
}
.mast-caption {
  display: none;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font: 600 10px/1.6 var(--sans);
  letter-spacing: 0.18em;
  color: var(--mast-cap);
}
.mast-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.theme-btn,
.sleeper-link,
.refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r1);
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}
.theme-btn:hover,
.sleeper-link:hover,
.refresh:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
}
.theme-label {
  display: none;
}
.refresh {
  font-size: 22px;
  padding: 0;
}

/* ============ Desk rail (navigation) ============ */
.main-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-brand {
  display: none;
}
.nav-inner {
  display: flex;
  max-width: 1320px;
  margin: auto;
}
.nav-inner > a {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 8px 2px;
  font: 600 11px/1.1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.nav-inner > a:hover {
  text-decoration: none;
  color: var(--ink);
}
.nav-inner > a[aria-current="page"] {
  color: var(--red);
  background: var(--paper);
  font-weight: 700;
}
.nav-inner > a[aria-current="page"] svg {
  stroke-width: 2.2;
}
.nav-inner > a[aria-current="page"]:before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  background: var(--red);
}
.nav-season {
  display: none;
}
/* Phone and small-tablet width: the ten routes sit in one horizontally scrollable rail.
   Each item is at least 68 px wide, so a label never clips, and the sixth item is cut
   at the edge, which signals that the row scrolls. The desktop rail (1000 px+) is separate. */
@media (max-width: 999px) {
  /* Scroll cue: a soft shade on whichever edge still has routes. The white covers are
     "local" (they scroll with the row), so each shade hides once the row reaches that end.
     The shades sit behind the labels and only in the outer 12 px. */
  .nav-inner {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    background:
      linear-gradient(to right, var(--white), transparent) left / 16px 100% no-repeat local,
      linear-gradient(to left, var(--white), transparent) right / 16px 100% no-repeat local,
      linear-gradient(to right, var(--muted), transparent) left / 12px 100% no-repeat scroll,
      linear-gradient(to left, var(--muted), transparent) right / 12px 100% no-repeat scroll;
  }
  .nav-inner::-webkit-scrollbar {
    display: none;
  }
  .nav-inner > a {
    flex: 1 0 4.25rem;
    min-width: 4.25rem;
    scroll-snap-align: center;
  }
  /* Inset the focus ring: an outside ring would be clipped by the scrolling row. */
  .nav-inner > a:focus-visible {
    outline-offset: -4px;
  }
}
.edition-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#edition::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
}
.edition-line > span:last-child {
  text-align: right;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ============ States ============ */
.loading,
.error-state {
  padding: 48px 0;
  min-height: 52vh;
}
.loading p,
.error-state p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 52ch;
}
.loading-line {
  width: 56px;
  height: 4px;
  background: var(--red);
  margin-bottom: 24px;
}
.skeleton {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  max-width: 760px;
}
.skeleton span,
.skeleton i {
  display: block;
  height: 14px;
  border-radius: var(--r1);
  background: var(--soft);
}
.skeleton .sk-board {
  height: 72px;
  margin-bottom: 16px;
}
.skeleton .sk-kicker {
  width: 120px;
  height: 11px;
}
.skeleton .sk-head {
  height: 40px;
}
.skeleton .short {
  width: 62%;
}
.skeleton .sk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: auto;
  margin-top: 16px;
  background: none;
}
.skeleton .sk-cards i {
  height: 112px;
}
.error-state {
  border-top: 4px solid var(--red);
  margin-top: 24px;
}
.notice {
  font-size: 13px;
  background: var(--notice-bg);
  padding: 12px 16px;
  margin-top: 16px;
  border-left: 3px solid var(--notice-line);
}
.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r2);
  background: var(--paper);
}
.empty::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 46%, var(--line-2) 46% 54%, transparent 54%);
}
.table-wrap .empty {
  border: 0;
  border-radius: 0;
}

/* ============ Buttons, links, controls ============ */
.solid-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 0 20px;
  border-radius: var(--r1);
  font: 700 15px/1 var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 20px;
}
.solid-button:hover {
  background: var(--red);
  text-decoration: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover {
  color: var(--red);
}
.context-note {
  margin-block: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 78ch;
}
.context-note a {
  text-decoration: underline;
  color: var(--ink);
}
label {
  cursor: pointer;
}
select,
input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: var(--r1);
  padding: 8px 36px 8px 12px;
  background: var(--field-bg) var(--chev) no-repeat right 12px center;
  color: var(--ink);
  font-size: 16px;
}
input[type="search"] {
  padding: 8px 12px 8px 38px;
  background: var(--field-bg) var(--glass) no-repeat 12px center;
}
select:hover,
input[type="search"]:hover {
  border-color: var(--ink);
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--r1);
}
.filters > div {
  min-width: 0;
}
.filters .search-field {
  grid-column: 1/-1;
}
.filters label,
.match-follow label {
  display: block;
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
/* Phones: a half-width Sort by select clips its selected "Week N projection" label
   (the native arrow takes space inside the field), so it takes a full row below 600 px. */
@media (max-width: 599px) {
  .filters > div:has(> #playerSort) {
    grid-column: 1 / -1;
  }
}
.match-follow {
  margin: 0 0 16px;
  max-width: 420px;
}
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.results-meta button {
  min-height: 44px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Segmented control: matchup week, archive layout. */
.tab-switch,
.seg {
  display: flex;
  margin: 0 0 24px;
  border: 1px solid var(--ink);
  border-radius: var(--r1);
  overflow: hidden;
}
.tab-switch button,
.seg button {
  flex: 1 1 0;
  min-height: 44px;
  padding: 6px 14px;
  font: 700 15px/1.1 var(--cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.tab-switch button + button,
.seg button + button {
  border-left: 1px solid var(--ink);
}
.tab-switch button:hover,
.seg button:hover {
  background: var(--hover);
}
.tab-switch button[aria-pressed="true"],
.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.tab-switch button:focus-visible,
.seg button:focus-visible {
  outline-offset: -5px;
}
.jump-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
}
.jump-links .eyebrow {
  flex-basis: 100%;
  color: var(--muted);
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r1);
  background: var(--white);
  font: 700 15px/1 var(--cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.jump-links a::after {
  content: "↓";
  color: var(--red);
}
.jump-links a:hover {
  text-decoration: none;
  border-color: var(--ink);
}

/* ============ Chips & marks ============ */
.status-chip,
.streak,
.pos-chip,
.close-badge,
.live-badge,
.final-badge,
.injury-sev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: var(--r1);
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-final,
.final-badge {
  background: var(--final-bg);
  color: var(--ink);
}
.status-live,
.live-badge,
.close-badge {
  background: var(--red);
  color: var(--white);
}
.status-live::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-preview {
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.streak {
  background: var(--chip-bg);
  color: var(--muted);
}
.streak-w {
  background: var(--win-tint);
  color: var(--win);
}
.streak-l {
  background: var(--loss-tint);
  color: var(--loss);
}
.pos-chip {
  min-width: 30px;
  min-height: 18px;
  padding: 0 4px;
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 11px;
}
.form-chips {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}
.fc {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: var(--r1);
  font: 700 11px/1 var(--cond);
  background: var(--chip-bg);
  color: var(--muted);
}
.fc-W {
  background: var(--win-tint);
  color: var(--win);
}
.fc-L {
  background: var(--loss-tint);
  color: var(--loss);
}
.move {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  font: 700 13px/1 var(--cond);
  color: var(--muted);
  white-space: nowrap;
}
.move span[aria-hidden] {
  font-size: 9px;
}
.move.up {
  color: var(--win);
}
.move.down {
  color: var(--loss);
}
.avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--soft);
  box-shadow: 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font: 700 13px/1 var(--cond);
  text-transform: uppercase;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.headshot {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--r1);
  display: grid;
  place-items: center;
  background: var(--soft);
  overflow: hidden;
  font: 700 12px/1 var(--cond);
  color: var(--muted);
}
.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.team-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team-link:hover {
  text-decoration: none;
}
.team-link:hover .team-title,
.team-link:hover > span:last-child {
  color: var(--red);
}
.injury {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 4px;
  border-radius: var(--r1);
  background: var(--red-tint);
  color: var(--injury-text);
  font: 700 11px/1.2 var(--cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* ============ Page structure ============ */
.view {
  padding-top: 24px;
  min-width: 0;
}
/* Programmatic focus targets (views, History sections, #main) are landing spots, not controls. */
#view-home {
  padding-top: 16px;
}
.view:focus,
.jump-target:focus,
#main:focus {
  outline: none;
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}
.section-heading h2 {
  font: 800 24px/1.05 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.section-heading .small {
  margin-left: auto;
  text-align: right;
}
.page-intro {
  padding: 8px 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.page-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-intro .eyebrow::before {
  content: "";
  flex: 0 0 24px;
  height: 3px;
  background: var(--red);
}
.page-intro h1 {
  margin-top: 12px;
}
.page-intro p {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dek);
}
.page-intro p:empty {
  display: none;
}
.feature-row,
.form-table,
.awards-strip,
.slate-desk,
.home-hype,
.tnf-feature,
.median-proj {
  margin-top: 40px;
}
#view-teams > section,
#view-history > section,
#view-weekend > section,
#view-players > section {
  margin-top: 40px;
}

/* ============ Home: the front page ============ */
.scoreboard {
  margin: 0 -16px 24px;
  background: var(--white);
  border-block: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}
.score-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.board-kicker {
  margin-right: 8px;
  font: 800 15px/1 var(--cond);
  letter-spacing: 0.04em;
  color: var(--red);
}
.score-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  white-space: nowrap;
}
.score-scroll {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.score-tile {
  flex: 0 0 168px;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
}
.score-tile:last-child {
  border-right: 0;
}
.score-tile:hover {
  background: var(--hover);
  text-decoration: none;
}
.score-tile:focus-visible {
  outline-offset: -4px;
}
.score-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.3;
  min-height: 28px;
  color: var(--muted);
}
.score-mini-row span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.score-mini-row strong {
  font: 700 20px/1 var(--cond);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score-mini-row.winner {
  color: var(--ink);
  font-weight: 700;
}
.home-layout {
  display: grid;
  gap: 40px;
}
.home-main {
  min-width: 0;
}
.lead {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
/* The opinion-column lead: a red spine and a slightly larger dek. */
.lead-column {
  border-top: 4px solid var(--red);
  padding-top: 16px;
}
.lead-column .lead-dek {
  font-size: 18px;
  color: var(--ink);
}
.lead-copy .eyebrow {
  margin-bottom: 12px;
}
.lead h1 {
  max-width: 18ch;
  font: 800 clamp(36px, 9.4vw, 58px)/0.96 var(--cond);
  text-transform: none;
  letter-spacing: -0.01em;
}
.lead h1 a:hover {
  text-decoration: none;
  color: var(--red);
}
.lead-dek {
  margin-top: 16px;
  color: var(--dek);
  font-size: 17px;
  line-height: 1.55;
  max-width: 56ch;
}
.lead-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 20px;
  min-height: 232px;
  display: flex;
  align-items: flex-end;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(127, 122, 113, 0.08) 14px 15px),
    var(--art-bg);
  border-bottom: 4px solid var(--red);
}
.feature-art .big-score {
  position: absolute;
  left: 14px;
  top: 6px;
  font: 800 96px/0.95 var(--cond);
  letter-spacing: -0.03em;
  color: var(--art-ghost);
  opacity: 0.55;
  z-index: -1;
}
.feature-art .art-label {
  position: absolute;
  left: 18px;
  top: 100px;
  font: 700 11px/1.3 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--art-label);
}
.feature-art img {
  width: 72%;
  max-height: 260px;
  object-fit: contain;
  object-position: bottom;
  align-self: end;
  margin-left: auto;
}
.art-credit {
  position: absolute;
  bottom: 14px;
  left: 16px;
  max-width: 50%;
  font: 800 26px/0.92 var(--cond);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--art-shadow);
}
.art-credit small {
  display: block;
  font: 600 11px/1.3 var(--sans);
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.feature-art.no-photo {
  min-height: 160px;
}
.feature-art.no-photo .art-credit {
  display: none;
}
.story-grid {
  display: grid;
  column-gap: 32px;
  margin-top: 24px;
}
.story-card {
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.story-card .eyebrow {
  margin-bottom: 8px;
}
.story-card h3 {
  font: 700 24px/1.04 var(--cond);
}
.story-card h3 a:hover {
  color: var(--red);
  text-decoration: none;
}
.story-card p {
  font-size: 14px;
  color: var(--dek);
  line-height: 1.6;
  margin-top: 8px;
}
.story-card .text-link {
  font-size: 12px;
  margin-top: 4px;
}
.awards-strip .award-grid,
.award-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.award {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 12px;
  min-width: 0;
}
a.award:hover {
  text-decoration: none;
  border-top-color: var(--red);
}
.award .award-label {
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.award strong {
  font: 700 18px/1.1 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.award .award-detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.home-hype > .section-heading {
  margin-bottom: 12px;
}
.home-hype .feat {
  margin: 0 0 16px;
}
.home-hype-cards {
  display: grid;
  gap: 12px;
}
.home-hype-cards .nc-card {
  margin-top: 0;
}
.home-hype-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.players-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.performer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  min-width: 0;
}
.performer .performer-info {
  flex: 1;
  min-width: 0;
}
.performer h3 {
  font: 700 13px/1.3 var(--sans);
  text-wrap: wrap;
}
.performer .pts {
  font: 800 26px/1.1 var(--cond);
}
.performer .small {
  font-size: 11px;
  line-height: 1.4;
}
.performer .headshot {
  width: 40px;
  height: 46px;
  flex-basis: 40px;
}
.injury-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.injury-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
a.injury-row:hover {
  text-decoration: none;
  background: var(--hover);
}
.injury-row strong {
  font-size: 14px;
}
.injury-row .small {
  line-height: 1.4;
}
.cheap-seats {
  position: relative;
  background: var(--cheap-bg);
  padding: 24px 20px 24px 56px;
  border-left: 3px solid var(--red);
}
.cheap-seats::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 4px;
  font: 800 72px/1 var(--serif);
  color: var(--red);
}
.cheap-seats h3 {
  margin: 8px 0;
  font: 700 24px/1.08 var(--cond);
}
.cheap-seats p {
  font-size: 14px;
  color: var(--quote-text);
  line-height: 1.6;
}
.home-aside {
  display: grid;
  gap: 32px;
  align-content: start;
  min-width: 0;
}
.home-aside .section-heading h2 {
  font-size: 20px;
}
.home-aside h3 {
  font-size: 22px;
}
.follow-box {
  background: var(--mast-bg);
  color: var(--mast-text);
  padding: 20px;
  border-top: 3px solid var(--red);
}
.follow-box .eyebrow {
  color: var(--poster-kicker);
}
.follow-box label {
  display: block;
  font: 800 26px/1 var(--cond);
  text-transform: uppercase;
  margin: 8px 0 16px;
}
.follow-box select {
  border-color: var(--mast-cap);
  color: var(--follow-select-text);
  background-color: var(--follow-select-bg);
  background-image: var(--chev-inv);
  font-size: 16px;
}
.follow-note {
  font-size: 12px;
  color: var(--follow-note);
  margin-top: 12px;
  line-height: 1.6;
}
.follow-summary {
  border-top: 1px solid var(--follow-line);
  margin-top: 16px;
  padding-top: 16px;
  font-size: 14px;
}
.follow-summary p + p {
  margin-top: 6px;
}
.follow-summary strong {
  font: 800 24px/1.05 var(--cond);
}
.follow-summary .text-link {
  color: inherit;
}
.rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rail-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px;
  min-width: 0;
}
.rail-list .rail-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
}
.rail-list .rank {
  width: 18px;
  font: 800 20px/1 var(--cond);
  color: var(--muted);
  text-align: center;
}
.rail-list .record {
  min-width: 44px;
  text-align: right;
  white-space: nowrap;
  font: 700 17px/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
.rail-list .avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}
.rail-transaction {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.rail-transaction .eyebrow {
  font-size: 10px;
  margin-bottom: 4px;
  color: var(--muted);
}
.rail-transaction p + p {
  margin-top: 2px;
}

/* ============ Matchups ============ */
.games-grid {
  display: grid;
  gap: 16px;
}
.game {
  container-type: inline-size;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  min-width: 0;
}
.game-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  min-height: 48px;
}
.game-week {
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.game-top .close-label {
  margin-left: auto;
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.game-top .close-label:empty {
  display: none;
}
.game-preview .game-top .status-chip,
.game-top .close-label:empty + .share-game {
  margin-left: auto;
}
.share-game {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r1);
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-game:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.game-sides {
  padding: 4px 16px;
}
.game-side {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  min-height: 72px;
}
.game-side:hover {
  text-decoration: none;
}
.game-side + .game-side {
  border-top: 1px solid var(--line);
}
.game-side .avatar {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
.game-side .team-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}
a.game-side:hover .team-name {
  color: var(--red);
}
.game-side .small {
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
}
.side-rec {
  color: var(--ink);
  font-weight: 700;
}
.game-side .score {
  text-align: right;
  font: 800 40px/0.9 var(--cond);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.game-side .score .small {
  font: 600 11px/1.3 var(--sans);
  margin-top: 6px;
}
.is-decided .game-side:not(.winner) .score,
.is-decided .game-side:not(.winner) .team-name {
  color: var(--muted);
}
.game-side.winner .team-name::after {
  content: "◂" / "";
  margin-left: 6px;
  color: var(--red);
  font-size: 12px;
}
.split-bar {
  display: flex;
  height: 4px;
  margin: 0 16px 8px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}
.split-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
}
.game-live .split-bar span {
  background: var(--red);
}
.game-preview .split-bar span {
  background: var(--muted);
}
.game-story {
  border-top: 1px solid var(--line);
  margin: 8px 16px 0;
  padding: 12px 0 4px;
}
.game-story ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.game-story li {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 4px;
}
.game-story li::marker {
  color: var(--red);
}
.game-story .small {
  font-size: 11px;
  margin-top: 6px;
}
.game-foot {
  padding: 8px 16px 12px;
  color: var(--muted);
  font-size: 12px;
}
.lineup-details {
  border-top: 1px solid var(--line);
}
.lineup-details > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  font: 700 15px/1.1 var(--cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lineup-details > summary::-webkit-details-marker {
  display: none;
}
.lineup-details > summary:hover {
  background: var(--hover);
}
.lineup-details > summary:focus-visible {
  outline-offset: -4px;
}
.lineup-details > summary:after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lineup-details[open] > summary:after {
  transform: translateY(2px) rotate(-135deg);
}
.lineup-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 4px 16px 16px;
}
@container (min-width: 540px) {
  .lineup-columns {
    grid-template-columns: 1fr 1fr;
  }
}
.lineup-columns > div {
  min-width: 0;
}
.lineup-title {
  font: 800 18px/1.2 var(--cond);
  letter-spacing: 0.01em;
  padding: 8px 0 6px;
  border-bottom: 2px solid var(--ink);
}
.lineup-title:not(:first-child) {
  margin-top: 12px;
  color: var(--muted);
  border-bottom-color: var(--line-2);
}
.lineup-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.lineup-row .slot {
  display: grid;
  place-items: center;
  min-height: 20px;
  border-radius: var(--r1);
  background: var(--chip-bg);
  color: var(--muted);
  font: 700 11px/1 var(--cond);
  letter-spacing: 0.04em;
}
.lineup-row strong {
  font-weight: 600;
}
.lineup-row .num {
  font: 700 17px/1 var(--cond);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lineup-row .small {
  font-size: 11px;
  line-height: 1.4;
}

/* ============ Tables ============ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r1);
}
.table-wrap:focus-visible {
  outline-offset: -3px;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  padding: 12px;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
th {
  text-align: left;
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 8px;
  border-bottom: 1px solid var(--ink);
  background: var(--white);
  white-space: nowrap;
  vertical-align: bottom;
}
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
tbody tr:last-child > td {
  border-bottom: 0;
}
tbody tr:hover > td {
  background: var(--hover);
}
th.num,
td.num {
  text-align: right;
  white-space: nowrap;
}
td.team-cell {
  min-width: 140px;
}
td .team-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
td .small {
  display: block;
  font-size: 11px;
}
.team-cell .avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}
.standings-table .optional-col {
  display: none;
}
.standings-table td.num {
  font: 700 17px/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
.rank-col {
  width: 28px;
  text-align: center;
  font: 800 20px/1 var(--cond);
  color: var(--muted);
}
tr.followed > td,
tr.followed > th {
  background: var(--followed-row);
}
tr.cutoff td {
  border-bottom: 2px solid var(--red);
}
/* The playoff line is labelled where it is drawn; the note under the table says it is not a clinch. */
tr.cutoff td:first-child {
  position: relative;
}
tr.cutoff td:first-child::after {
  content: "Playoff line";
  position: absolute;
  left: 4px;
  bottom: -9px;
  z-index: 1;
  padding: 0 6px;
  background: var(--white);
  color: var(--red);
  font: 700 11px/16px var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.median-table-wrap {
  margin: 12px 0 18px;
  border: 1px solid var(--line);
}
.median-table-wrap:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.median-table {
  min-width: 760px;
}
.median-table th {
  vertical-align: bottom;
  padding: 10px 8px;
}
.median-table th:first-child {
  min-width: 200px;
}
.median-table th:first-child,
.median-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white);
  box-shadow: 1px 0 0 var(--line);
}
.median-table th .small {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}
.median-table .right {
  text-align: right;
}
.median-table td {
  padding: 10px 8px;
}
.median-table td.mb-cell {
  text-align: right;
  white-space: nowrap;
  font: 700 15px/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
.median-table td.mb-cell.above {
  color: var(--win);
}
.median-table td.mb-cell.below {
  color: var(--loss);
}
.median-table td.mb-cell.level,
.median-table td.mb-cell.empty-cell {
  color: var(--muted);
}
.median-table .position {
  display: inline-block;
  min-width: 18px;
  color: var(--muted);
  font: 800 18px/1 var(--cond);
}
.median-record {
  font: 800 22px/1 var(--cond);
}
.proj-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--red);
}
.proj-bar strong {
  font: 800 26px/1 var(--cond);
}
.proj-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.proj-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: var(--white);
  font-size: 12px;
}
.proj-verdict {
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.proj-row.above .proj-verdict {
  color: var(--win);
}
.proj-row.below .proj-verdict {
  color: var(--loss);
}
.proj-row.level .proj-verdict,
.proj-row.unknown .proj-verdict {
  color: var(--muted);
}
.proj-row > .num {
  font: 700 17px/1 var(--cond);
}

/* ============ Standings: scoring form ============ */
.form-rows {
  display: grid;
  border-top: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.form-row .position {
  font: 800 24px/1 var(--cond);
  color: var(--muted);
}
.form-row strong {
  font-size: 14px;
}
.form-row .right {
  text-align: right;
}
.form-row .ppg {
  font: 800 26px/1 var(--cond);
}
.form-row .small {
  font-size: 12px;
}

/* ============ Teams & team page ============ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 16px;
  min-width: 0;
}
.team-card:hover {
  text-decoration: none;
  border-color: var(--ink);
}
.team-card.followed {
  box-shadow: inset 4px 0 0 var(--red);
}
.team-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-card-head .avatar {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}
.team-card-id {
  min-width: 0;
}
.team-card-head strong {
  display: block;
  font: 800 20px/1.05 var(--cond);
  text-transform: uppercase;
}
.team-card:hover .team-card-head strong {
  color: var(--red);
}
.team-card-head .rank {
  margin-left: auto;
  font: 800 34px/1 var(--cond);
  color: var(--muted);
}
.team-card.in-playoffs .rank {
  color: var(--ink);
}
.team-card-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.team-card-record .rec {
  font: 800 24px/1 var(--cond);
  margin-right: 4px;
}
.team-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.team-card-stats b {
  color: var(--ink);
  font: 700 16px/1 var(--cond);
}
.injury-count {
  margin-left: auto;
  font: 700 12px/1.3 var(--cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sev-o);
  white-space: nowrap;
}
[data-theme="dark"] .injury-count { color: var(--injury-text); }
.team-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  overflow: hidden;
}
.team-banner > .avatar {
  width: 56px;
  height: 56px;
  margin-top: 30px;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line-2);
  font-size: 22px;
}
.team-banner .page-intro {
  position: relative;
  border: 0;
  margin: 0;
  padding-bottom: 8px;
}
.team-rank-mark {
  position: absolute;
  right: -4px;
  top: -12px;
  font: 800 150px/1 var(--cond);
  color: var(--soft);
  pointer-events: none;
}
.team-rank-mark::before {
  content: "#";
  font-size: 0.5em;
  vertical-align: 0.8em;
}
.team-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 8px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}
.team-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  padding: 12px 14px;
  min-width: 0;
}
.team-stat > span:first-child {
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-stat strong {
  font: 800 28px/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
.team-stat strong .streak {
  font-size: 15px;
  min-height: 26px;
  padding: 0 8px;
}
.result-card {
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  padding: 14px 16px;
  margin-bottom: 4px;
}
.result-card.preview {
  border-left-color: var(--line-2);
}
.result-card .result-score {
  font: 800 34px/1 var(--cond);
}
.result-card .win,
.result-card .loss,
.result-card .tie {
  font: 700 14px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--win);
}
.result-card .loss {
  color: var(--loss);
}
.result-card .tie {
  color: var(--muted);
}
.form-strip {
  display: flex;
  gap: 4px;
  align-items: stretch;
  height: 132px;
}
.form-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: var(--r1);
  background: var(--paper-2);
}
.form-cell:hover {
  text-decoration: none;
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.form-cell:focus-visible {
  outline-offset: 1px;
}
.form-wl {
  font: 800 13px/1 var(--cond);
}
.form-cell.W .form-wl {
  color: var(--win);
}
.form-cell.L .form-wl {
  color: var(--loss);
}
.form-cell.T .form-wl {
  color: var(--muted);
}
.form-bar {
  width: 56%;
  min-height: 12px;
  margin-top: auto;
  border-radius: 1px;
  background: var(--ink);
}
.form-cell.L .form-bar {
  background: var(--line-2);
}
.form-pts {
  font: 700 13px/1 var(--cond);
  color: var(--ink);
}
.score-rows {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.score-row .pick {
  flex: 0 0 20px;
  font: 800 18px/1 var(--cond);
  color: var(--muted);
}
.score-row .headshot {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}
.score-row .name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
}
.score-row .num {
  font: 800 20px/1 var(--cond);
}
.tx-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tx-item .tx-week {
  font: 800 13px/1 var(--cond);
  color: var(--muted);
}
.tx-item .tx-type {
  font: 700 13px/1 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.tx-item .small {
  flex: 1 1 auto;
  min-width: 0;
}
.tx-item .num {
  font: 700 15px/1 var(--cond);
}

/* ============ Players ============ */
.player-table th:first-child {
  width: 56%;
}
th[data-sort] {
  padding-block: 0;
}
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.sort-btn:hover {
  color: var(--ink);
}
.sort-btn::after {
  content: "";
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top: 5px solid var(--line-2);
  margin-top: 4px;
}
th[aria-sort] .sort-btn {
  color: var(--ink);
}
th[aria-sort="descending"] .sort-btn::after {
  border-top-color: var(--red);
}
th[aria-sort="ascending"] .sort-btn::after {
  border-top: 0;
  border-bottom: 5px solid var(--red);
  margin: 0 0 4px;
}
.player-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.player-cell .headshot {
  width: 40px;
  height: 44px;
  flex-basis: 40px;
}
.player-cell .name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.player-cell .small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.player-cell .free,
.avail.free {
  color: var(--win);
  font-weight: 700;
}
.avail {
  font-size: 13px;
  color: var(--muted);
}
.player-table td {
  padding: 10px 8px;
}
.player-table td.num {
  font: 700 18px/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
.player-table .owner-col {
  display: none;
}
.show-more {
  display: block;
  min-height: 48px;
  width: 100%;
  margin-top: -1px;
  background: var(--white);
  border: 1px solid var(--line);
  font: 700 15px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.show-more:hover {
  background: var(--hover);
}

/* ============ Injuries ============ */
.injury-sev {
  flex: 0 0 40px;
  min-width: 40px;
  min-height: 22px;
  color: var(--white);
  background: var(--muted);
}
.injury-sev.sev-o, .injury-sev.sev-ir, .injury-sev.sev-irr, .injury-sev.sev-sus, .injury-sev.sev-pup { background: var(--sev-o); }
.injury-sev.sev-d, .injury-sev.sev-sspd { background: var(--sev-d); }
.injury-sev.sev-q, .injury-sev.sev-dnp { background: var(--sev-q); }
/* Night Edition: the dark-theme severity reds and grey are too dark for the dark text,
   so their chips switch to white text, and the injury count uses the readable injury red. */
[data-theme="dark"] .injury-sev.sev-o, [data-theme="dark"] .injury-sev.sev-ir, [data-theme="dark"] .injury-sev.sev-irr,
[data-theme="dark"] .injury-sev.sev-sus, [data-theme="dark"] .injury-sev.sev-pup,
[data-theme="dark"] .injury-sev.sev-q, [data-theme="dark"] .injury-sev.sev-dnp { color: #fff; }
.sev-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  margin-bottom: 16px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}
.sev-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 12px;
  background: var(--white);
  font: 800 26px/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
.sev-pill .injury-sev {
  flex: none;
  min-width: 0;
}
.sev-pill .small {
  flex-basis: 100%;
  font: 600 12px/1.3 var(--sans);
}
.injury-filters {
  grid-template-columns: 1fr 1fr;
}
.injury-table .name-cell {
  min-width: 128px;
  font-size: 14px;
}
.injury-table .injury-sev {
  min-width: 40px;
}
.injury-table .team-link .avatar {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}
.group-row th {
  padding: 8px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 800 14px/1.2 var(--cond);
  letter-spacing: 0.08em;
}
tbody tr.group-row:hover > th {
  background: var(--paper-2);
}

/* ============ Waivers: the wire ============ */
.wire-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.deadline-card,
.faab-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  padding: 16px;
  min-width: 0;
}
.deadline-card .deadline-tag,
.faab-card .faab-tag {
  display: block;
  font: 700 11px/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.deadline-card strong,
.faab-card strong {
  display: block;
  font: 800 40px/0.95 var(--cond);
}
.deadline-card p,
.faab-card .context-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dek);
  margin: 8px 0 0;
}
.faab-card .context-note {
  padding: 0;
  border: 0;
}
.deadline-card.open strong {
  color: var(--win);
}
.deadline-card.closed strong {
  color: var(--loss);
}
.faab-card strong {
  margin-bottom: 12px;
}
.faab-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faab-bars > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 48px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.faab-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.faab-bar {
  height: 6px;
  background: var(--soft);
  border-radius: 1px;
  overflow: hidden;
}
.faab-fill {
  display: block;
  height: 100%;
  background: var(--ink);
}
.faab-num {
  text-align: right;
  font: 700 14px/1 var(--cond);
  color: var(--muted);
}
.wire-filters {
  margin-bottom: 4px;
}
.wire-list {
  position: relative;
}
.wire-week {
  position: sticky;
  top: var(--stick-top);
  z-index: 3;
  margin: 16px 0 0;
  padding: 8px 0;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font: 800 18px/1.1 var(--cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wire-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--line);
}
.wire-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.wire-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--muted);
}
.wire-item.won::after {
  box-shadow: inset 0 0 0 5px var(--ink);
}
.wire-item > .avatar {
  grid-column: 1;
  margin-top: 2px;
}
.wire-copy {
  grid-column: 2;
  min-width: 0;
}
.wire-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 4px;
}
.wire-type {
  font: 800 13px/1.2 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wire-type.waiver {
  color: var(--ink);
}
.wire-type.trade {
  color: var(--red);
}
.wire-type.fa {
  color: var(--muted);
}
.wire-copy p {
  margin: 2px 0;
  font-size: 14px;
}
.wire-bid {
  grid-column: 3;
  padding: 4px 8px;
  border-radius: var(--r1);
  background: var(--chip-bg);
  font: 800 16px/1.1 var(--cond);
  color: var(--ink);
}
.wire-item.won .wire-bid {
  background: var(--win-tint);
  color: var(--win);
}

/* ============ History ============ */
.champions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.champion {
  position: relative;
  background: var(--white);
  padding: 20px 16px 16px;
  box-shadow: inset 0 4px 0 var(--gold);
  min-width: 0;
}
.champion .year {
  margin-top: 4px;
  font: 800 52px/0.9 var(--cond);
}
.champion h3 {
  font: 700 16px/1.3 var(--sans);
  margin: 12px 0 2px;
  overflow-wrap: anywhere;
}
.champion .small {
  font-size: 12px;
}
.champion a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.h2h-wrap {
  max-height: min(78vh, 680px);
  margin-bottom: 24px;
  overflow: auto;
}
.h2h-table caption {
  text-align: left;
}
.h2h-table th,
.h2h-table td {
  padding: 8px 6px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.h2h-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 48px;
  font: 800 13px/1 var(--cond);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.h2h-table thead th:first-child,
.h2h-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  box-shadow: 1px 0 0 var(--line-2);
}
.h2h-table thead th:first-child {
  z-index: 3;
}
.h2h-table tbody th {
  min-width: 168px;
  max-width: 200px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font: 600 13px/1.25 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  white-space: normal;
}
.h2h-table .avatar {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}
.h2h-table td {
  font: 700 15px/1 var(--cond);
  white-space: nowrap;
}
.h2h-table tbody tr:hover > td.h2h-up,
.h2h-up {
  background: var(--win-tint);
  color: var(--win);
}
.h2h-table tbody tr:hover > td.h2h-down,
.h2h-down {
  background: var(--loss-tint);
  color: var(--loss);
}
.h2h-even,
.h2h-none {
  color: var(--muted);
}
.h2h-self {
  background: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 6px);
}
.rivalry-grid {
  display: grid;
  gap: 12px;
}
.rivalry {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  background: var(--white);
}
.rivalry.active {
  border-top-color: var(--red);
}
.rivalry .eyebrow {
  font-size: 10px;
  margin-bottom: 8px;
}
.rivalry-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0;
  justify-content: space-between;
}
.rivalry-row span {
  font-weight: 600;
  font-size: 14px;
}
.rivalry-row strong {
  font: 800 32px/1 var(--cond);
}
.rivalry .small {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
}
.grade-key {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 16px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  font-size: 13px;
  line-height: 1.5;
  color: var(--dek);
}
.grade-key strong {
  display: inline-block;
  min-width: 64px;
  margin-right: 6px;
  font: 800 15px/1.2 var(--cond);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.draft-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.draft-group h3 {
  font: 800 22px/1.05 var(--cond);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.draft-group > .small {
  display: block;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.draft-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.draft-row .pick {
  flex: 0 0 36px;
  font: 800 15px/1 var(--cond);
  color: var(--muted);
}
.draft-row .name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
}
.draft-row .num {
  font: 700 17px/1 var(--cond);
}
.draft-row .small {
  font-size: 12px;
}
/* Draft Notebook: grade chips and the current-value marker. Letters and arrows carry the meaning;
   colour only reinforces it. */
.grade-chip {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 30px;
  min-height: 28px;
  padding: 0 6px;
  border-radius: var(--r1);
  font: 800 17px/1 var(--cond);
  border: 1.5px solid currentColor;
  color: var(--muted);
}
.grade-chip.grade-A,
.grade-chip.grade-B {
  color: var(--win);
  background: var(--win-tint);
}
.grade-chip.grade-D {
  color: var(--sev-d);
}
.grade-chip.grade-F {
  color: var(--loss);
  background: var(--loss-tint);
}
.value-mark.value-ahead {
  color: var(--win);
}
.value-mark.value-behind {
  color: var(--loss);
}
.draft-notebook .draft-row .name .small + .small {
  margin-top: 2px;
}
/* Draft Notebook: each manager row opens into every pick with its grade chip and ROS comparison. */
.notebook-team {
  border-bottom: 1px solid var(--line);
}
.notebook-team > summary {
  list-style: none;
  border-bottom: 0;
}
.notebook-team > summary:hover {
  background: var(--hover);
}
.notebook-team > summary:focus-visible {
  outline-offset: -3px;
}
.notebook-team > summary::-webkit-details-marker {
  display: none;
}
.notebook-team > summary::after {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin: 0 6px 0 2px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
.notebook-team[open] > summary::after {
  transform: rotate(-135deg);
}
.notebook-team .notebook-picks {
  padding: 0 0 12px 48px;
}
.notebook-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.notebook-pick:last-child {
  border-bottom: 0;
}
.notebook-pick .pick {
  flex: 0 0 36px;
  font: 700 14px/1 var(--cond);
  color: var(--muted);
}
.notebook-pick .name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 0;
}
.notebook-pick .small {
  font-size: 12px;
}
.draft-notebook .notebook-pick .name .small + .small {
  margin-top: 2px;
}
.ros-mark.ros-ahead {
  color: var(--win);
}
.ros-mark.ros-behind {
  color: var(--loss);
}

/* ============ Archive ============ */
.archive-views {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.archive-views p {
  margin: 0;
}
.archive-layout {
  max-width: 240px;
}
.archive-week {
  margin-top: 32px;
}
.archive-week > .section-heading {
  position: sticky;
  top: var(--stick-top);
  z-index: 3;
  background: var(--paper);
  padding-bottom: 8px;
}
.archive-week .story-grid {
  margin-top: 8px;
  border-bottom: 3px solid var(--ink);
}
.archive-lead {
  display: grid;
  gap: 8px;
  background: var(--mast-bg);
  color: var(--mast-text);
  padding: 20px;
  border-left: 4px solid var(--red);
}
.archive-lead .eyebrow {
  color: var(--poster-kicker);
}
.archive-lead a {
  font: 800 26px/1.02 var(--cond);
  color: inherit;
}
.archive-lead a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
}
.archive-list .archive-week .story-grid {
  grid-template-columns: 1fr;
}
.archive-list .story-card {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 10px 0;
}
.archive-list .story-card .eyebrow {
  margin: 0;
}
.archive-list .story-card h3 {
  font-size: 19px;
}
.archive-list .story-card p,
.archive-list .story-card .text-link {
  display: none;
}

/* ============ Weekend: the hype poster ============ */
.poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: -24px -16px 24px;
  padding: 32px 16px 28px;
  background: var(--mast-bg);
  color: var(--mast-text);
  border-bottom: 4px solid var(--red);
}
.poster::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 22%;
  width: 18px;
  background: #b62b25;
  transform: skew(-14deg);
  z-index: -1;
  opacity: 0.85;
}
.poster::after {
  content: attr(data-week);
  position: absolute;
  right: -6px;
  bottom: -0.2em;
  z-index: -1;
  font: 800 clamp(180px, 48vw, 360px)/0.8 var(--cond);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.08);
}
.poster .page-intro {
  border: 0;
  margin: 0;
  padding: 0;
}
.poster .page-intro .eyebrow {
  color: var(--poster-kicker);
}
.poster h1 {
  max-width: 13ch;
  font-size: clamp(44px, 12vw, 88px);
}
.poster .solid-button {
  margin-top: 24px;
  background: var(--red);
  color: var(--white);
}
.poster .solid-button:hover {
  background: var(--mast-text);
  color: var(--mast-bg);
}
#view-weekend > .context-note {
  margin-top: 32px;
}
.feat {
  margin: 0 0 24px;
}
.feat-card {
  background: var(--mast-bg);
  color: var(--mast-text);
  padding: 20px 16px 16px;
  border-top: 4px solid var(--red);
}
.feat-scores {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.feat-side {
  min-width: 0;
  text-align: center;
}
.feat-side .feat-score {
  font: 800 44px/0.95 var(--cond);
  font-variant-numeric: tabular-nums;
}
.feat-side.winner .feat-score {
  color: var(--poster-kicker);
}
.feat-team {
  display: block;
  margin-top: 6px;
  font: 800 16px/1.1 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.feat-scores .small,
.feat-card .small {
  color: var(--mast-cap);
}
.feat-vs {
  align-self: center;
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mast-cap);
}
.feat-inj {
  margin-top: 4px;
}
.feat-card h3 {
  font: 800 28px/1.02 var(--cond);
  margin: 0 0 8px;
}
.feat-dek {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--mast-cap);
}
.feat-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 0;
  font-size: 13px;
}
.feat-fact span {
  flex: 0 0 auto;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mast-cap);
}
.feat-fact strong {
  text-align: right;
}
.feat-fact.decided {
  padding-inline: 8px;
  background: rgba(233, 105, 93, 0.14);
}
.feat-leaves {
  margin-top: 8px;
}
.feat-open {
  margin-top: 8px;
  color: inherit;
}
.nc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 14px 16px;
  margin-top: 12px;
}
.nc-card {
  container-type: inline-size;
}
@container (max-width: 439px) {
  .nc-sides {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .nc-side:last-child,
  .nc-vs {
    text-align: left;
  }
}
.nc-card.close {
  border-top-color: var(--red);
}
.nc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nc-sides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.nc-side:last-child {
  text-align: right;
}
.nc-side .nc-team {
  font: 800 19px/1.05 var(--cond);
  text-transform: uppercase;
}
a.nc-team:hover {
  color: var(--red);
  text-decoration: none;
}
.nc-meta {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 4px;
}
.nc-vs {
  text-align: center;
  min-width: 64px;
}
.nc-score {
  font: 800 22px/1 var(--cond);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nc-fav {
  font: 700 14px/1.2 var(--cond);
  color: var(--ink);
}
.nc-fav.muted {
  color: var(--muted);
}
.nc-h2h {
  margin-top: 12px;
  padding: 6px 10px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-size: 12px;
}
.nc-copy {
  margin: 12px 0 0;
  font: 400 15px/1.6 var(--serif);
}
.nc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.hype-edge {
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Thursday Night Football feature card */
.tnf-feature {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 16px;
}
.tnf-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--r1);
  background: var(--red);
  color: var(--white);
  font: 800 13px/1 var(--cond);
  letter-spacing: 0.08em;
}
.tnf-headline {
  margin: 10px 0 14px;
  font: 800 24px/1.05 var(--cond);
  text-transform: uppercase;
}
.tnf-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.tnf-side {
  min-width: 0;
  text-align: center;
}
.tnf-pts {
  font: 800 44px/0.95 var(--cond);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.tnf-fav .tnf-pts {
  color: var(--ink);
}
.tnf-vs {
  align-self: center;
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tnf-team {
  display: block;
  margin-top: 6px;
  font: 700 15px/1.2 var(--sans);
}
.tnf-team:hover {
  color: var(--red);
}
.tnf-meta {
  min-height: 1.4em;
  margin-top: 4px;
  font: 700 12px/1.3 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.tnf-copy {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.tnf-foot {
  margin-top: 4px;
}

/* ============ Article reader ============ */
dialog {
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  inset: 0;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: var(--backdrop);
}
.article-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 6px 12px 6px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.toolbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.14em;
}
.toolbar-brand .brand-x {
  width: 20px;
  height: 26px;
  font-size: 22px;
}
.article-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r1);
  background: var(--ink);
  color: var(--paper);
  font: 700 15px/1 var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-toolbar button:hover {
  background: var(--red);
}
.article-toolbar button span {
  font: 400 22px/1 var(--sans);
}
.article-progress {
  display: none;
}
@supports (animation-timeline: scroll()) {
  .article-progress {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--red);
    transform-origin: left;
    animation: read-progress linear both;
    animation-timeline: scroll(nearest block);
  }
}
@keyframes read-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.article-content {
  max-width: 760px;
  margin: auto;
  padding: 24px 20px 64px;
}
.article-head {
  padding-bottom: 4px;
}
.article-content h1 {
  margin-top: 12px;
  font: 800 clamp(36px, 9vw, 56px)/0.98 var(--cond);
  text-transform: none;
  letter-spacing: -0.01em;
}
/* Meme banner for opinion-column leads: a self-contained block above the headline. */
.article-hero {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--red);
  background: var(--art-bg);
}
.article-content .article-dek {
  margin-top: 16px;
  font: 400 19px/1.5 var(--sans);
  color: var(--dek);
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 20px;
  padding-block: 12px;
  border-block: 1px solid var(--line);
  font: 600 11px/1.5 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-byline > span:not(:last-child)::after {
  content: "·" / "";
  margin: 0 8px;
}
.article-byline .byline-name {
  color: var(--ink);
  font-weight: 700;
}
.article-body {
  max-width: 68ch;
  margin-top: 28px;
  font: 18px/1.7 var(--serif);
}
.article-body > p + p {
  margin-top: 1.1em;
}
.article-body > p:first-child::first-letter {
  float: left;
  margin: 0.04em 0.1em 0 0;
  font: 800 4.4em/0.78 var(--cond);
  color: var(--red);
}
.pull-quote {
  margin: 32px 0;
  padding: 16px 0 16px;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  font: 700 26px/1.12 var(--cond);
  color: var(--ink);
}
.pull-quote::before {
  content: "“";
  color: var(--red);
}
.pull-quote::after {
  content: "”";
  color: var(--red);
}
.article-source {
  margin-top: 32px;
  padding: 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--line-2);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.article-source a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  text-decoration: underline;
  color: var(--ink);
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 24px;
}
.article-actions button,
.article-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 13px;
}
.article-actions button {
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--r1);
  font: 700 15px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-actions button:hover {
  background: var(--ink);
  color: var(--paper);
}
.article-actions a {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.share-status {
  font-size: 12px;
  color: var(--green);
}

/* ============ Footer ============ */
.site-footer {
  margin: 64px 0 24px;
  padding-top: 24px;
  border-top: 3px solid var(--ink);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  font: 800 28px/1 var(--cond);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.footer-brand:hover {
  text-decoration: none;
  color: var(--red);
}
.site-footer p + p {
  margin-top: 4px;
}
.site-footer a:not(.footer-brand) {
  text-decoration: underline;
}
.methodology {
  margin-top: 16px;
  max-width: 80ch;
  border-block: 1px solid var(--line);
}
.methodology summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink);
}
.methodology p {
  margin: 10px 0;
}
.site-footer #buildInfo {
  font-size: 11px;
  margin-top: 16px;
}

/* ============ 600 px and up ============ */
@media (min-width: 600px) {
  .wrap,
  .mast-inner {
    padding-inline: 24px;
  }
  .theme-label {
    display: inline;
  }
  .mast-caption {
    display: block;
  }
  .scoreboard {
    margin-inline: 0;
  }
  .poster {
    margin-inline: 0;
    padding: 48px 32px 36px;
  }
  .lead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
  }
  .feature-art {
    margin-top: 0;
    min-height: 300px;
    height: 100%;
  }
  .feature-art .big-score {
    font-size: 116px;
  }
  .feature-art .art-label {
    top: 124px;
  }
  .feature-art img {
    width: 100%;
    max-height: 330px;
  }
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-hype-cards,
  .rivalry-grid,
  .wire-cards,
  .team-grid,
  .grade-key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab-switch,
  .seg {
    display: inline-flex;
  }
  .players-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-table .owner-col {
    display: table-cell;
  }
  .player-table th:first-child {
    width: 44%;
  }
  .player-cell .mobile-owner {
    display: none;
  }
  .standings-table .optional-col {
    display: table-cell;
  }
  .form-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
  .filters {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .filters .search-field {
    grid-column: auto;
  }
  .filters .owner-filter {
    grid-column: 1/-1;
  }
  .injury-filters {
    grid-template-columns: 1fr 1fr;
  }
  .injury-filters .owner-filter {
    grid-column: auto;
  }
  .champions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .draft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-banner > .avatar {
    width: 72px;
    height: 72px;
  }
  .team-rank-mark {
    font-size: 200px;
  }
  .article-content {
    padding: 32px 40px 72px;
  }
  .article-body {
    font-size: 19px;
  }
  .pull-quote {
    font-size: 30px;
  }
  dialog {
    width: min(880px, 94vw);
    height: auto;
    max-height: 92dvh;
    margin: auto;
    border-radius: var(--r2);
    border-top: 4px solid var(--red);
  }
}

/* ============ 1000 px and up: desk rail ============ */
@media (min-width: 1000px) {
  :root {
    --stick-top: 53px;
  }
  html {
    scroll-padding-top: 72px;
  }
  body {
    padding-bottom: 0;
  }
  .wrap,
  .mast-inner {
    padding-inline: 32px;
  }
  .masthead {
    position: relative;
  }
  .mast-inner {
    padding-block: 16px;
    min-height: 92px;
  }
  .wordmark {
    font-size: 40px;
  }
  .brand-x {
    height: 52px;
    width: 42px;
    font-size: 46px;
  }
  .brand-small {
    font-size: 11px;
    letter-spacing: 0.55em;
    margin-top: 9px;
  }
  .mast-caption {
    font-size: 11px;
    margin-left: 8px;
  }
  .main-nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0 max(32px, calc((100% - 1320px) / 2 + 32px));
    background: var(--paper);
    border-top: 0;
    border-bottom: 1px solid var(--ink);
  }
  .nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 0;
    margin-right: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    font: 800 24px/1 var(--cond);
    white-space: nowrap;
  }
  .nav-brand:hover {
    text-decoration: none;
  }
  .nav-brand .brand-x {
    width: 24px;
    height: 30px;
    font-size: 26px;
    margin-left: 4px;
  }
  .nav-stuck .nav-brand {
    max-width: 160px;
    margin-right: 28px;
    opacity: 1;
    visibility: visible;
  }
  .nav-inner {
    flex: 1;
    max-width: none;
    margin: 0;
    gap: clamp(16px, 2vw, 28px);
  }
  .nav-inner > a {
    flex: none;
    padding: 0;
    min-height: 52px;
    background: none;
    font: 700 15px/1 var(--cond);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-inner > a[aria-current="page"] {
    color: var(--ink);
    background: none;
  }
  .nav-inner svg {
    display: none;
  }
  .nav-inner > a[aria-current="page"]:before {
    top: auto;
    bottom: -1px;
    left: 0;
    right: 0;
  }
  .edition-line {
    padding-block: 12px;
  }
  .view {
    padding-top: 32px;
  }
  .poster {
    margin-top: -32px;
    padding: 64px 48px 48px;
  }
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }
  .home-aside {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
    padding-left: 32px;
  }
  .lead {
    gap: 32px;
  }
  .feature-art {
    min-height: 340px;
  }
  .feature-art .big-score {
    font-size: 128px;
    top: 14px;
  }
  .feature-art .art-label {
    top: 140px;
  }
  .art-credit {
    font-size: 30px;
  }
  .score-scroll {
    overflow: visible;
  }
  .score-tile {
    flex: 1;
    min-width: 0;
  }
  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .archive-week .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .players-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  td {
    padding: 14px 12px;
    font-size: 14px;
  }
  th {
    padding-inline: 12px;
  }
  .standings-table .team-title {
    font-size: 15px;
  }
  #view-players .filters {
    position: sticky;
    top: var(--stick-top);
    z-index: 20;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1.4fr;
  }
  .filters .owner-filter {
    grid-column: auto;
  }
  .wire-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .wire-cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .faab-bars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .draft-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .rivalry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .awards-strip .award-grid,
  .award-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .injury-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-hero {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 48px;
    margin-top: 80px;
  }
  .site-footer > * {
    grid-column: 2;
  }
  .site-footer > .footer-brand {
    grid-column: 1;
    grid-row: 1 / span 4;
  }
}
@media (min-width: 1200px) {
  .nav-season {
    display: block;
    margin-left: auto;
    align-self: center;
    font: 600 11px/1 var(--sans);
    letter-spacing: 0.1em;
    color: var(--muted);
  }
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============ Motion: hover and reveal only, 150 to 220 ms ============ */
@media (prefers-reduced-motion: no-preference) {
  a,
  button,
  .team-card,
  .score-tile,
  .form-cell,
  tbody tr > td,
  select,
  input {
    transition:
      color var(--t) var(--ease),
      background-color var(--t) var(--ease),
      border-color var(--t) var(--ease),
      box-shadow var(--t) var(--ease);
  }
  .nav-brand {
    transition:
      max-width 220ms var(--ease),
      margin-right 220ms var(--ease),
      opacity 220ms var(--ease),
      visibility 220ms;
  }
  .view:not([hidden]) {
    animation: view-in 200ms var(--ease);
  }
  .lineup-details[open] .lineup-columns,
  .notebook-team[open] .notebook-picks {
    animation: view-in 180ms var(--ease);
  }
  .lineup-details > summary:after,
  .notebook-team > summary::after {
    transition: transform var(--t) var(--ease);
  }
  .refresh:not(:disabled):hover {
    transform: rotate(30deg);
    transition: transform 0.15s ease;
  }
  .status-live::before {
    animation: live-pulse 1.6s ease-in-out infinite;
  }
  .skeleton span,
  .skeleton i {
    background: linear-gradient(90deg, var(--soft) 0 40%, var(--paper-2) 50%, var(--soft) 60% 100%) 0 0 / 300% 100%;
    animation: shimmer 1.4s linear infinite;
  }
  .skeleton .sk-cards {
    background: none;
    animation: none;
  }
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes live-pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .article-progress {
    display: none;
  }
}

/* ============ Print ============ */
@media print {
  :root,
  :root[data-theme="dark"] {
    --paper: #fff;
    --paper-2: #f3f3f3;
    --white: #fff;
    --ink: #111;
    --muted: #555;
    --line: #ccc;
    --line-2: #aaa;
    --red: #b62b25;
    --dek: #333;
    --mast-bg: #fff;
    --mast-text: #111;
    --mast-cap: #555;
    --hover: #fff;
  }
  html {
    color-scheme: light;
  }
  .mast-tools,
  .main-nav,
  .filters,
  .site-footer,
  .scoreboard,
  .article-toolbar,
  .article-actions,
  .seg,
  .tab-switch,
  .skeleton {
    display: none !important;
  }
  body {
    padding: 0;
    background: white;
  }
  .masthead {
    position: static;
  }
  .view[hidden] {
    display: none !important;
  }
  dialog[open] {
    position: static;
    height: auto;
    max-height: none;
    width: 100%;
    overflow: visible;
  }
  .modal-open > main,
  .modal-open > header,
  .modal-open > .edition-line {
    display: none;
  }
  .article-content {
    max-width: none;
    padding: 10px;
  }
  .home-layout {
    display: block;
  }
  .home-aside {
    display: none;
  }
}
