:root {
  --ink: #0b1220;
  --ink-2: #101a2c;
  --ink-3: #16223a;
  --turf: #17301f;
  --turf-2: #1f3d28;
  --turf-line: #3f6b52;
  --chalk: #f3f1e7;
  --chalk-dim: #97a59c;
  --chalk-faint: #5d6b70;
  --amber: #e8a33d;
  --amber-strong: #f4bd63;
  --amber-dim: #6b5325;
  --flag: #d1554a;
  --flag-dim: #4a2622;
  --taxi: #6fa3d8;
  --line: rgba(243, 241, 231, 0.1);
  --line-strong: rgba(243, 241, 231, 0.16);

  --font-display: "Barlow Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 760px;
  --maxw-wide: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }

/* Author rules like `.loading-block { display: flex }` share specificity with the
   UA default `[hidden] { display: none }`, so without this the hidden attribute
   can silently lose the cascade and the element stays visible. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .view, .app { animation: fade-up 0.5s ease both; }
  .league-card { animation: fade-up 0.4s ease both; }
  .depth-row { animation: fade-up 0.35s ease both; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font-body);
  min-height: 100%;
}

body {
  background-image:
    repeating-linear-gradient(
      transparent,
      transparent 119px,
      rgba(243, 241, 231, 0.028) 119px,
      rgba(243, 241, 231, 0.028) 120px
    );
  background-attachment: fixed;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); }

p { margin: 0; }

button, input, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- shell ---------- */

.topbar { position: relative; border-bottom: 1px solid var(--line); }

.topbar__inner {
  max-width: calc(var(--maxw-wide) + 2 * var(--gutter));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.topbar__mark { display: block; width: 32px; height: 32px; }

.topbar__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 19px;
  color: var(--chalk);
  text-transform: uppercase;
}

.app-nav { display: flex; gap: 20px; }

/* Hamburger toggle, only below the width where all nav links fit (see the 900px breakpoint). */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--amber-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  width: 16px;
  height: 2px;
  background: var(--chalk);
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }

/* Open: the three bars become an X. */
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.app-nav__link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--chalk-dim);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.app-nav__link:hover { color: var(--chalk); }

/* Pick'em leaves the app for Beat Oraclez: only its arrow is accented, so it never
   looks like the current page. */
.app-nav__link--external [aria-hidden] { color: var(--amber-strong); }

.app-nav__link[aria-current="page"] {
  color: var(--amber-strong);
  border-bottom-color: var(--amber);
}

main {
  max-width: calc(var(--maxw-wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) var(--gutter) 80px;
}

.app--narrow { max-width: var(--maxw); margin: 0 auto; }

.page-footer {
  max-width: calc(var(--maxw-wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  color: var(--chalk-faint);
  font-size: 12px;
  line-height: 1.6;
}

.page-footer strong { color: var(--chalk-dim); font-weight: 500; }

.page-footer__more { margin-top: 10px; }
.page-footer a { color: var(--amber-strong); text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }
.page-footer .link-btn { padding: 0; font-size: inherit; color: var(--amber-strong); }
.page-footer .link-btn:hover { text-decoration: underline; }

/* Analytics consent banner (built by analytics.js). Both choices get the same size. */
.consent {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.consent[hidden] { display: none; }
.consent__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--chalk-dim); }
.consent__text a { color: var(--amber-strong); }
.consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent .consent__btn { padding: 10px 18px; font-size: 14px; min-width: 96px; }
.consent__btn:not(.btn--primary) { background: transparent; color: var(--chalk); border: 1px solid var(--line-strong); }
.consent__btn:not(.btn--primary):hover { border-color: var(--chalk-dim); }

@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent__actions .consent__btn { flex: 1; }
}

/* ---------- shared type & components ---------- */

.view--hero { padding-top: clamp(24px, 8vh, 80px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-strong);
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--chalk);
}

.hero-title em { font-style: normal; color: var(--amber-strong); }

.hero-sub {
  margin-top: 20px;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--chalk-dim);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-head--compact { align-items: baseline; margin-bottom: 18px; }
.section-head--compact .eyebrow { margin: 0; }

.section-head__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--chalk-faint);
  padding-bottom: 4px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.input {
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--chalk);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.input::placeholder { color: var(--chalk-faint); }

.input:focus-visible {
  border-color: var(--amber);
  background: var(--ink-3);
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.btn {
  border: none;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-strong); }

.link-btn {
  background: none;
  border: none;
  color: var(--chalk-dim);
  font-size: 14px;
  padding: 4px 0;
}

.link-btn:hover { color: var(--chalk); }

/* "How it works →" link from each tool to its guide page. */
.guide-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-strong);
  text-decoration: none;
}
.guide-link:hover { text-decoration: underline; }
.lineup-bar__title .guide-link { margin-top: 6px; }

.form-error {
  margin-top: 16px;
  color: var(--flag);
  background: var(--flag-dim);
  border: 1px solid rgba(209, 85, 74, 0.4);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  max-width: 460px;
}

.form-hint {
  margin-top: 16px;
  color: var(--chalk-dim);
  font-size: 14px;
}

.loading-block {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--chalk-dim);
  padding: 40px 0;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(232, 163, 61, 0.25);
  border-top-color: var(--amber);
  animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.6s; }
  .view, .app, .league-card, .depth-row { animation: none; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Underlined tabs (lineup modes). */
.mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.mode-tab {
  background: none;
  border: none;
  color: var(--chalk-dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 4px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mode-tab + .mode-tab { margin-left: 14px; }

.mode-tab:hover { color: var(--chalk); }

.mode-tab[aria-selected="true"] {
  color: var(--amber-strong);
  border-bottom-color: var(--amber);
}

/* Filter chips (matchup categories, teams, time frames). */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.chips > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--chalk-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chips > button:hover { color: var(--chalk); border-color: var(--turf-line); }

.chips > button.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.chips--segmented {
  gap: 3px;
  padding: 3px;
  overflow: visible;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.chips--segmented > button { border: 0; border-radius: 6px; padding: 6px 9px; font-size: 11px; }

/* ---------- Best Lineup ---------- */

.search-form {
  margin-top: 32px;
  display: flex;
  gap: 10px;
  max-width: 460px;
}

.search-form .input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  padding: 14px 16px;
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.league-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: var(--chalk);
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.league-card:hover {
  border-color: var(--turf-line);
  background: var(--ink-3);
  transform: translateY(-2px);
}

.league-card__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--turf-2);
  color: var(--chalk);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  overflow: hidden;
}

.league-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.league-card__body { min-width: 0; display: flex; flex-direction: column; }

.league-card__name {
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-card__meta {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--chalk-dim);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.league-card__meta + .league-card__meta { margin-top: 1px; }

.lineup-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.lineup-bar__title { margin-top: 8px; }

.week-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chalk-dim);
}

.week-select select {
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.matchup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.matchup-panel__side { display: flex; flex-direction: column; gap: 2px; }

.matchup-panel__name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--chalk-dim);
}

.matchup-panel__score {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
}

.matchup-panel__side--me .matchup-panel__score { color: var(--amber-strong); }

.matchup-panel__margin {
  font-size: 13px;
  color: var(--chalk-dim);
  text-align: center;
  white-space: nowrap;
}

.matchup-panel__margin strong { color: var(--chalk); }

.matchup-panel:has(.matchup-panel__note) { display: block; }

.matchup-panel__note {
  font-size: 12.5px;
  color: var(--chalk-dim);
  line-height: 1.5;
}

.lineup-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--turf);
  border: 1px solid var(--turf-line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.lineup-total__label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chalk-dim);
  margin-right: auto;
}

.lineup-total__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--amber-strong);
}

.lineup-total__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--chalk-dim);
}

.depth-chart {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.depth-row {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--ink-2);
  border: 1px solid rgba(243, 241, 231, 0.08);
  border-radius: var(--radius);
  padding: 10px 16px 10px 10px;
  overflow: hidden;
}

.depth-row__bar {
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, rgba(63, 107, 82, 0.55), rgba(63, 107, 82, 0.12));
  z-index: 0;
  transition: width 0.6s ease;
}

.depth-row__slot,
.depth-row__player,
.depth-row__score {
  position: relative;
  z-index: 1;
}

.depth-row__slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 4px;
  border-radius: 5px;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.depth-row--empty .depth-row__slot { background: var(--ink-3); color: var(--chalk-faint); }

.depth-row__player { min-width: 0; }

.depth-row__name {
  font-weight: 700;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.depth-row--empty .depth-row__name { color: var(--chalk-faint); font-weight: 500; }

.depth-row__sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--chalk-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.depth-row__sub .tag--flag { color: var(--flag); }
.depth-row__sub .tag--warn,
.bench-row__sub .tag--warn { color: var(--amber-strong); }
.bench-row__sub .tag--taxi { color: var(--taxi); }

.row-stats {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chalk-dim);
}

.row-stats strong {
  color: var(--chalk);
  font-weight: 700;
}

.depth-row--misplaced { border-color: rgba(232, 163, 61, 0.45); }
.depth-row--misplaced::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--amber);
  z-index: 1;
}

.bench-row--misplaced {
  background: var(--amber-dim);
  color: var(--chalk);
  position: relative;
}
.bench-row--misplaced::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--amber);
  border-radius: 8px 0 0 8px;
}

.bench-row--taxi {
  background: rgba(111, 163, 216, 0.08);
  position: relative;
}
.bench-row--taxi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--taxi);
  border-radius: 8px 0 0 8px;
}

.depth-row__score {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--amber-strong);
  text-align: right;
  white-space: nowrap;
}

.depth-row--empty .depth-row__score { color: var(--chalk-faint); }

.bench-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  color: var(--chalk-dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 4px 8px;
}

.bench-toggle:hover { color: var(--chalk); }

.bench-toggle__chev { transition: transform 0.2s ease; margin-left: auto; }
.bench-toggle[aria-expanded="true"] .bench-toggle__chev { transform: rotate(180deg); }

.bench-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bench-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(243, 241, 231, 0.03);
  color: var(--chalk-dim);
}

.bench-row__name { font-size: 13.5px; color: var(--chalk); }

.bench-row__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--chalk-faint);
}

.bench-row__score {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- Matchup Lab ---------- */

.selection-card { margin-top: 40px; padding: 22px 24px 24px; }

.selection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.team-picker {
  position: relative;
  min-width: 0;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow: hidden;
}

/* Team color strip; JS sets --team-color from ESPN. */
.team-picker::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--team-color, var(--amber));
}

.picker-top, .period-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.picker-label, .picker-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.picker-label { color: var(--amber-strong); }
.picker-role { color: var(--chalk-faint); }

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 14px;
}

.picker-logo { flex: none; width: 50px; height: 50px; object-fit: contain; }

/* Keep the native team menu compact while showing the large selected name over it. */
.select-wrap select {
  appearance: none;
  min-width: 0;
  width: 100%;
  height: 50px;
  padding: 4px 22px 4px 0;
  background: transparent;
  border: 0;
  color: transparent;
  font-size: 16px;
}

.select-wrap select option { background: var(--ink-3); color: var(--chalk); }

.selected-team-name {
  position: absolute;
  left: 64px;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
}

.select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-65%);
  font-size: 20px;
  pointer-events: none;
  color: var(--amber-strong);
}

.period-row { border-top: 1px solid var(--line); padding-top: 12px; }

.versus-button {
  justify-self: center;
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 0.8;
  transform: rotate(-8deg);
  transition: background 0.15s ease;
}

.versus-button:hover { background: var(--amber-strong); }
.versus-button span { font-family: var(--font-body); font-size: 13px; line-height: 1.2; }

/* Game picker: the week's games in kickoff order; picking one fills both teams. */
.game-week {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--chalk-dim);
}

.game-week select { width: auto; border-radius: 8px; padding: 8px 10px; font-family: var(--font-mono); font-size: 14px; }

.game-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -4px 0 16px;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.game-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-height: 58px;
  padding: 9px 14px;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--chalk);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.game-chip:hover { border-color: var(--turf-line); }
.game-chip[aria-pressed="true"] { background: rgba(232, 163, 61, 0.12); border-color: var(--amber); }

.game-chip__teams {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.game-chip__teams img { width: 20px; height: 20px; object-fit: contain; }
.game-chip__at { color: var(--chalk-faint); font-family: var(--font-body); font-size: 12px; font-weight: 400; }

.game-chip__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--chalk-dim);
  white-space: nowrap;
}

.game-chip[aria-pressed="true"] .game-chip__meta { color: var(--amber-strong); }
.game-chip__meta--live { color: var(--flag); }

.game-hint { margin: 14px 0 0; font-size: 13px; color: var(--chalk-dim); }

.status {
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--chalk-dim);
  font-size: 14px;
}

.status--error {
  color: var(--flag);
  background: var(--flag-dim);
  border-color: rgba(209, 85, 74, 0.4);
}

.report { margin-top: 56px; }

.matchup-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 10px 0 16px;
  overflow: hidden;
}

.matchup-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  list-style: none;
  cursor: pointer;
}

.matchup-head::-webkit-details-marker { display: none; }
.matchup-head:hover { background: var(--ink-3); }
.matchup-head:focus-visible { outline-offset: -4px; }
.matchup-card:not([open]) > .matchup-head { border-bottom: 0; }

.matchup-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.matchup-name.defense { justify-content: flex-end; text-align: right; }
.matchup-name img { flex: none; width: 38px; height: 38px; object-fit: contain; }

.matchup-name strong {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  text-transform: uppercase;
  line-height: 1;
}

.matchup-name small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chalk-dim);
}

.matchup-vs {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--amber-strong);
}

.accordion-indicator {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  font-size: 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.matchup-card[open] .accordion-indicator { transform: rotate(225deg); }

.metric-group { padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.metric-group:first-child { border-top: 0; }

.metric-group h3 {
  margin-bottom: 12px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber-strong);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* The shadow draws the 1px dividers, so a short last row leaves no filled gap. */
.metric { min-width: 0; background: var(--ink-3); box-shadow: 0 0 0 1px var(--line); padding: 12px 16px; }
.metric-label { min-height: 30px; font-size: 12px; color: var(--chalk-dim); }
.metric-values { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; }

.metric-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-value.allowed { color: var(--chalk-dim); }
.metric-divider { font-size: 11px; color: var(--chalk-faint); }

.metric-key {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 22px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chalk-faint);
}

.metric-key strong { color: var(--amber-strong); font-weight: 600; }

.players-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.player-team-tabs img { width: 22px; height: 22px; object-fit: contain; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
  margin-bottom: 10px;
  padding: 0 13px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--amber-strong);
}

.search-box:focus-within { border-color: var(--amber); }
.search-box span { font-size: 20px; }

.search-box input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--chalk);
  font-size: 14px;
}

.search-box input::placeholder { color: var(--chalk-faint); }

.player-table-wrap {
  overflow: auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.player-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.player-table thead { background: var(--ink-3); color: var(--chalk-dim); }
.player-table th { padding: 0; font-weight: 700; letter-spacing: 0.06em; }
.player-table th:first-child, .player-table td:first-child { text-align: left; }
.player-table td { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--chalk); }
.player-table tr:hover td { background: var(--ink-3); }

.sort-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  white-space: nowrap;
  text-align: right;
}

.player-table th:first-child .sort-button { justify-content: flex-start; text-align: left; }
.sort-button:hover, .sort-button.active { color: var(--amber-strong); }
.sort-button span { font-size: 10px; color: var(--chalk-faint); }
.sort-button.active span { color: var(--amber-strong); }

.player-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
}

.player-identity img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--ink-3);
}

.empty-state {
  padding: 24px;
  color: var(--chalk-dim);
  font-size: 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.data-note {
  margin: 11px 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--chalk-faint);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .period-row { flex-direction: column; align-items: stretch; gap: 9px; }
  .chips--segmented > button { flex: 1; padding: 6px 4px; }
}

@media (max-width: 900px) {
  .selection-grid { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 10px; }
  .team-picker { padding: 14px; }
  .versus-button { width: 44px; height: 44px; font-size: 20px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Seven nav links stop fitting next to the brand around 900px: collapse into the hamburger. */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .app-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 12px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
  }

  .app-nav.is-open { display: flex; }

  .app-nav__link { padding: 14px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
  .app-nav__link:last-child { border-bottom: 0; }
  .app-nav__link[aria-current="page"] { border-bottom-color: var(--line); }
}

@media (max-width: 640px) {
  .selection-card { padding: 16px; }
  .game-week { margin-top: 10px; }
  .selection-grid { display: flex; flex-direction: column; gap: 9px; }
  .team-picker { width: 100%; }
  .versus-button { width: 40px; height: 40px; transform: none; }
  .section-head { display: block; }
  .section-head__note { margin-top: 8px; }
  .matchup-head { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 6px; padding: 14px 12px; }
  .matchup-name { gap: 6px; }
  .matchup-name img { width: 25px; height: 25px; }
  .matchup-name strong { font-size: 18px; }
  .matchup-name small { font-size: 9.5px; }
  .matchup-vs { font-size: 18px; }
  .accordion-indicator { width: 7px; height: 7px; }
  .metric-group { padding: 14px 12px; }
  .metric { padding: 11px; }
  .metric-value { font-size: 25px; }
  .metric-key { margin: 0 12px 14px; }
  .players-toolbar { flex-wrap: wrap; }
  .search-box { width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
  .depth-row { grid-template-columns: 58px 1fr auto; padding-right: 10px; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .matchup-panel { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Start / Sit ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ss-form { margin-top: 40px; padding: 22px 24px 24px; }

.ss-pickers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ss-picker { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.ss-picker .input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  background: var(--ink-3);
}

.ss-picker .input:disabled { opacity: 0.5; }

.ss-options {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ss-option { display: flex; flex-direction: column; gap: 6px; }
.ss-options .btn { margin-left: auto; }

.ss-verdict {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--turf);
  border-color: var(--turf-line);
}

.ss-verdict--close { background: var(--ink-2); border-color: rgba(232, 163, 61, 0.45); }
.ss-verdict .eyebrow { margin-bottom: 8px; }

.ss-verdict__title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.ss-verdict__title em { font-style: normal; color: var(--amber-strong); }

.ss-verdict__sub { margin-top: 8px; color: var(--chalk-dim); font-size: 14.5px; line-height: 1.5; }

.ss-photo {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink-3);
}

.ss-photo--lg { width: 76px; height: 76px; border: 2px solid var(--amber); }

.ss-row--sit .depth-row__slot { background: var(--ink-3); color: var(--chalk-dim); }
.ss-row--sit .depth-row__score { color: var(--chalk); }

.ss-id { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.ss-id > span { display: flex; flex-direction: column; min-width: 0; }

.ss-id__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--chalk);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-id__sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--chalk-dim);
}

.ss-id__sub .tag--flag { color: var(--flag); }

.ss-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.ss-table th, .ss-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ss-table thead th { border-top: 0; background: var(--ink-3); min-width: 170px; }
.ss-table thead th:first-child { min-width: 0; }

.ss-table tbody th {
  font-weight: 400;
  color: var(--chalk-dim);
  white-space: nowrap;
}

/* Keep row labels visible while the player columns scroll sideways on small screens. */
.ss-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--ink-2); }
.ss-table thead tr > :first-child { background: var(--ink-3); }

.ss-table td { color: var(--chalk); }
.ss-table td strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.ss-table small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--chalk-faint); }

.ss-table td.ss-best { color: var(--amber-strong); background: rgba(232, 163, 61, 0.07); }
.ss-table td.ss-best strong { color: var(--amber-strong); }

.ss-group th {
  padding-top: 18px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-strong) !important;
  background: var(--ink-2);
}

.ss-log th, .ss-log td { text-align: center; white-space: nowrap; }
.ss-log th:first-child { text-align: left; }
.ss-log tbody th { min-width: 190px; }
.ss-log td strong { font-size: 18px; }
.ss-log__off { color: var(--chalk-faint) !important; vertical-align: middle !important; }

.ss-method {
  margin-top: 32px;
  padding: 16px 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--chalk-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

.ss-method summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chalk);
}

.ss-method p { margin-top: 10px; max-width: 80ch; }

@media (max-width: 900px) {
  .ss-pickers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .ss-form { padding: 16px; }
  .ss-pickers { grid-template-columns: 1fr; }
  .ss-options .btn { width: 100%; margin-left: 0; }
  .ss-verdict { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .ss-photo--lg { width: 56px; height: 56px; }
  .ss-table thead th { min-width: 140px; }
}

/* ---------- League tools (Waivers / Trade / Byes) ---------- */

.tool { display: flex; flex-direction: column; gap: 14px; }

.tool-summary { padding: 18px 20px; font-size: 14.5px; line-height: 1.55; color: var(--chalk-dim); }
.tool-summary .eyebrow { margin-bottom: 8px; }
.tool-summary strong { color: var(--chalk); }
.tool-summary--warn { border-color: rgba(232, 163, 61, 0.45); }

.tool-muted { color: var(--chalk-faint); font-family: var(--font-mono); font-size: 12px; }

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  background: var(--ink-2);
  border: 1px solid rgba(243, 241, 231, 0.08);
  border-radius: var(--radius);
}

.tool-row--flat { opacity: 0.6; }

.tool-row__name { display: block; font-weight: 700; font-size: 14px; color: var(--chalk); }

.tool-row__sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--chalk-dim);
}

.tool-row__sub .tag--flag { color: var(--flag); }
.tool-row__sub .tag--warn { color: var(--amber-strong); text-transform: none; }

.tool-row__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-align: right;
  color: var(--amber-strong);
  font-variant-numeric: tabular-nums;
}

.tool-row--flat .tool-row__value { color: var(--chalk-faint); }

.tool-row__value small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--chalk-faint);
}

.tool-row__pts { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--chalk); }

.tool-up { color: var(--amber-strong) !important; }
.tool-down { color: var(--flag) !important; }

/* Waivers */
.waiver-horizon { align-self: flex-start; margin: 4px 0 12px; }
.waiver-rule { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.waiver-horizon, .waiver-rule .chips { width: fit-content; max-width: 100%; }

.tool-tag {
  display: inline-block;
  min-width: 42px;
  margin-right: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

.tool-tag--add { background: var(--turf-2); color: var(--chalk); }
.tool-tag--drop { background: var(--flag-dim); color: var(--flag); }

.tool-row__drop { margin-top: 8px; font-weight: 500; color: var(--chalk-dim); }
.tool-row__sub--inline { display: inline; margin-left: 4px; }

.tool-row__warn {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  background: rgba(232, 163, 61, 0.08);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--amber-strong);
}

.waiver-locks { padding: 14px 18px; }
.waiver-locks summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chalk);
}
.waiver-locks .data-note { margin: 10px 0 6px; }
.waiver-locks__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; }

[data-results] { display: flex; flex-direction: column; gap: 14px; }

/* Trade */
.trade-partner { max-width: 320px; margin-top: 4px; }
.trade-partner select { font-family: var(--font-body); font-size: 15px; text-transform: none; letter-spacing: 0; }

.trade-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.trade-side {
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trade-side legend, .trade-side__title {
  padding: 0 4px;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-strong);
}

.trade-side [data-list] { max-height: 360px; overflow-y: auto; }

.trade-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.trade-player:hover { background: var(--ink-3); }
.trade-player:has(input:checked) { background: rgba(232, 163, 61, 0.12); }
.trade-player input { accent-color: var(--amber); width: 16px; height: 16px; flex: none; }

.trade-submit { align-self: flex-start; }

.trade-verdict { padding: 20px 22px; }
.trade-verdict--good { background: var(--turf); border-color: var(--turf-line); }
.trade-verdict--bad { border-color: rgba(209, 85, 74, 0.5); }
.trade-verdict .eyebrow { margin-bottom: 6px; }

.trade-verdict__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.trade-deltas { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }
.trade-deltas > div { display: flex; flex-direction: column; gap: 2px; }
.trade-deltas small { font-family: var(--font-mono); font-size: 11px; color: var(--chalk-faint); }

.trade-delta {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}

.trade-notes { margin-top: 12px; font-size: 13.5px; color: var(--amber-strong); }

.trade-totals { list-style: none; margin: 0; padding: 0; }

.trade-totals li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 4px;
  border-top: 1px solid var(--line);
}

.trade-totals li:first-child { border-top: 0; }

.trade-weeks td, .trade-weeks th { text-align: right; }
.trade-weeks tr > :first-child { text-align: left; }

/* Byes */
.bye-problems { margin: 8px 0 0; padding-left: 18px; }
.bye-problems li { margin-top: 4px; }

.bye-grid th, .bye-grid td { white-space: nowrap; }
.bye-grid tbody th { min-width: 180px; }
.bye-grid thead th { min-width: 0; text-align: center; }
.bye-grid thead th:first-child { text-align: left; }
.bye-grid th, .bye-grid td { padding: 9px 10px; }
.bye-cell { text-align: center !important; color: var(--chalk-dim); font-size: 11.5px; }
.bye-cell--bye { color: var(--ink) !important; background: var(--amber); font-weight: 700; }
.bye-row--out th, .bye-row--out td { opacity: 0.45; }
.bye-total th, .bye-total td { background: var(--ink-3); text-align: center; font-size: 11.5px; }
.bye-total th { text-align: left; }

@media (max-width: 520px) {
  .trade-sides { grid-template-columns: 1fr; }
  .trade-submit { width: 100%; }
}

/* ---------- content pages (guides, about, privacy) ---------- */

.prose { max-width: var(--maxw); margin: 0 auto; }
.prose .hero-title { font-size: clamp(40px, 7vw, 64px); }
.prose .btn { display: inline-block; margin-top: 28px; text-decoration: none; }
/* .prose p/ul rules outrank these shared components, so restate them. */
.prose .eyebrow { font-size: 12px; line-height: normal; color: var(--amber-strong); }
.prose h2 {
  margin: 48px 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--chalk);
}
.prose h3 { margin: 28px 0 6px; font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--chalk); }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--chalk-dim); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--chalk); font-weight: 600; }
.prose a:not(.btn) { color: var(--amber-strong); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; color: var(--chalk); }
.prose__back { margin-top: 48px; }

.prose .guide-list { list-style: none; display: grid; gap: 12px; margin: 36px 0 0; padding: 0; }
.prose .guide-list li + li { margin-top: 0; }
.guide-list a {
  display: block;
  padding: 16px 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.guide-list a:hover { border-color: var(--amber-dim); }
.guide-list strong { display: block; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; color: var(--chalk); }
.guide-list span { display: block; margin-top: 2px; font-size: 14px; color: var(--chalk-dim); }

.page-footer__links { margin-bottom: 10px; }
