/* Apple HIG-inspired system: system colors, grouped lists, generous spacing, light + dark. */
:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --label: #1C1C1E;
  --label-2: #3C3C43CC;
  --label-3: #3C3C4399;
  --separator: #3C3C4333;
  --fill: #7878801F;
  --fill-2: #78788014;
  --green: #248A3D;
  --red: #D70015;
  --blue: #007AFF;
  --orange: #C24F00;
  --accent: #34C759;
  --radius: 1rem;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 0.25rem 1rem rgba(0,0,0,.04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1C1C1E; --label: #FFFFFF;
    --label-2: #EBEBF5CC; --label-3: #EBEBF599; --separator: #54545899;
    --fill: #7878805C; --fill-2: #78788029;
    --green: #30D158; --red: #FF453A; --blue: #0A84FF; --orange: #FF9F0A; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --label: #FFFFFF;
  --label-2: #EBEBF5CC; --label-3: #EBEBF599; --separator: #54545899;
  --fill: #7878805C; --fill-2: #78788029;
  --green: #30D158; --red: #FF453A; --blue: #0A84FF; --orange: #FF9F0A; --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Elements given display:flex/grid/block would otherwise ignore the hidden attribute. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 400 1.0625rem/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", sans-serif;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif; margin: 0; }

/* Logo swap */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(1.25rem);
  -webkit-backdrop-filter: saturate(180%) blur(1.25rem);
  border-bottom: 0.5px solid var(--separator);
}
.nav-inner { max-width: 67.5rem; margin: 0 auto; padding: 0.625rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

.segmented { display: inline-flex; background: var(--fill); border-radius: 0.5625rem; padding: 2px; }
.segmented button {
  border: 0; background: transparent; color: var(--label); font-family: inherit; font-weight: 500; font-size: 0.8125rem; line-height: 1; letter-spacing: -0.01em;
  padding: 0.4375rem 0.75rem; border-radius: 0.4375rem; cursor: pointer;
}
.segmented button[aria-checked="true"] { background: var(--card); box-shadow: 0 1px 0.1875rem rgba(0,0,0,.12); }
:root[data-theme="dark"] .segmented button[aria-checked="true"] { background: #636366; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button[aria-checked="true"] { background: #636366; } }

main { max-width: 67.5rem; margin: 0 auto; padding: 0 1rem; }

.hero { padding: 2.25rem 0 1.5rem; max-width: 45rem; }
.hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; max-width: 42rem; }
.lede { font-size: clamp(1.0625rem, 2.2vw, 1.3125rem); color: var(--label-2); margin: 1rem 0 0; }
.meta { font-size: 0.8125rem; color: var(--label-3); margin: 1rem 0 0; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.card h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.hint, .sub { font-size: 0.8125rem; color: var(--label-3); margin: 0; }
.side { display: grid; gap: 1.25rem; }
.list-card { padding: 1.25rem 0 0.5rem; }
.list-card .card-head { padding: 0 1.25rem; }
.list-card .card-head { align-items: center; }
.list-legend { padding: 0 1.25rem 0.5rem; line-height: 1.4; }
.list-legend b { font-weight: 600; color: var(--label); }
@media (max-width: 520px) { .list-legend { padding: 0 1rem 0.5rem; } }
.week-label { min-width: 4rem; text-align: center; font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.week-nav { display: flex; align-items: center; gap: 0.375rem; }
.week-nav button {
  width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: var(--fill-2); color: var(--blue);
  font-family: inherit; font-weight: 600; font-size: 1.25rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px;
}
.week-nav button:disabled { color: var(--label-3); opacity: .4; cursor: default; }
.week-nav button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Grouped ranking list */
.rank-list { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 2rem 2.25rem minmax(0,1fr) 3.25rem 5.5rem; align-items: center; gap: 0.75rem;
  padding: 0.625rem 1.25rem; position: relative;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 6.25rem; right: 0; border-top: 0.5px solid var(--separator); }
.rank { font-size: 1.0625rem; font-weight: 600; color: var(--label-3); text-align: right; font-variant-numeric: tabular-nums; }
#rankings .row:nth-child(-n+4) .rank { color: var(--label); }
.team-logo { width: 2rem; height: 2rem; object-fit: contain; }
.team-logo.placeholder { border-radius: 0.5rem; background: var(--fill-2); }
.team-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-sub { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--label-3); white-space: normal; }
.rating { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tip-target { position: relative; z-index: 2; cursor: help; }
.team-sub .tip-target, .rating.tip-target small { text-decoration: underline dotted; text-underline-offset: 0.1875rem; }
.tip-target:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 0.25rem; }
.hovertip {
  position: fixed; z-index: 100; max-width: min(17.5rem, calc(100vw - 1rem)); pointer-events: none;
  background: var(--card); color: var(--label); border: 0.5px solid var(--separator); border-radius: 0.625rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,.15); padding: 0.5rem 0.625rem; font-size: 0.8125rem; line-height: 1.4;
}
.rating small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--label-3); text-transform: uppercase; letter-spacing: .02em; }
.ap { justify-self: stretch; box-sizing: border-box; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 0.375rem; padding: 0.1875rem 0.4375rem; background: var(--fill-2); color: var(--label-2); text-align: center; white-space: nowrap; }
.up { color: var(--green); }
.down { color: var(--red); }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0; font-size: 0.9375rem; }
.mini-list li + li { border-top: 0.5px solid var(--separator); }
.mini-list img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.mini-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .detail { font-size: 0.8125rem; color: var(--label-3); font-variant-numeric: tabular-nums; }
.empty { color: var(--label-3); font-size: 0.9375rem; }

.matchup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3125rem; margin-top: 0.5rem; }
.side-label {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.5rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label-3);
}
.home-edge { font-size: 0.75rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--green); }
.neutral-toggle { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.8125rem; color: var(--label-2); cursor: pointer; }
.neutral-toggle input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--blue); }
.matchup-note { text-align: center; margin-top: 0.25rem; }
.matchup-note a { color: var(--blue); text-decoration: none; }
.matchup-market { margin: 0.75rem 0 0; padding-top: 0.75rem; border-top: 0.5px solid var(--separator); text-align: center; font-size: 0.8125rem; color: var(--label-2); }
.matchup-market b { color: var(--label); font-weight: 600; }
.matchup-market .src { color: var(--label-3); }
.line-val small.early { color: var(--orange); text-transform: none; letter-spacing: 0; white-space: nowrap; }
/* Team picker: logo + name + chevron, with the native select laid invisibly on top so taps open the system picker. */
.picker {
  position: relative; display: flex; align-items: center; gap: 0.5rem; min-width: 0;
  border-radius: 0.625rem; background: var(--fill-2); color: var(--label); padding: 0.5rem 0.625rem; cursor: pointer;
}
.picker:hover { background: var(--fill); }
.picker:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.picker-logo { flex: none; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; }
.picker-logo img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.picker-name { flex: 1; min-width: 0; font-family: inherit; font-weight: 500; font-size: 0.9375rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .chev { flex: none; width: 0.75rem; height: 0.5rem; fill: none; stroke: var(--label-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.matchup-result { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0.875rem 0 0; text-align: center; }

.how { margin: 1.25rem 0 0; padding: 1.75rem; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1.25rem; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how-grid { grid-template-columns: 1fr; } }
.how h4 { font-size: 1.0625rem; font-weight: 600; margin: 0.625rem 0 0.25rem; }
.how p { margin: 0; color: var(--label-2); font-size: 0.9375rem; }
.step { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--label); color: var(--card); font-size: 0.875rem; font-weight: 700; }

.footer { max-width: 67.5rem; margin: 0 auto; padding: 2.5rem 1rem 3.5rem; font-size: 0.75rem; color: var(--label-3); }

@media (max-width: 520px) {
  .row { grid-template-columns: 1.5rem 1.75rem minmax(0,1fr) 3rem 5.25rem; gap: 0.625rem; padding: 0.625rem 1rem; }
  .row + .row::before { left: 4.875rem; }
  .team-logo { width: 1.75rem; height: 1.75rem; }
  .list-card .card-head { padding: 0 1rem; }
  .segmented button { padding: 0.4375rem 0.5625rem; }
}

/* Links from the ranking list */
.row-link { position: absolute; inset: 0; z-index: 1; border-radius: 0; }
.row-link:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.row { transition: background-color .15s; }
.row:hover { background: var(--fill-2); }
.mini-list a { color: inherit; text-decoration: none; display: contents; }

/* Team page */
.back { display: inline-block; margin: 1.25rem 0 0; color: var(--blue); text-decoration: none; font-size: 1.0625rem; }
.team-hero { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 0 1.75rem; }
.team-hero img { width: 5.5rem; height: 5.5rem; object-fit: contain; }
.team-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stats { display: flex; gap: 1.75rem; margin-top: 0.625rem; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.8125rem; color: var(--label-3); }
main > .card + .card { margin-top: 1.25rem; }
.games-card { margin-bottom: 0; }
.games-card .hint { font-variant-numeric: tabular-nums; }

.link-btn { border: 0; background: none; color: var(--blue); font-family: inherit; font-weight: 500; font-size: 0.9375rem; cursor: pointer; padding: 0; }
.chart { position: relative; margin-top: 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--separator); stroke-width: 1; }
.chart .axis text { fill: var(--label-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--blue); stroke: var(--card); stroke-width: 2; }
.chart .dot.active { r: 6; }
.chart .crosshair { stroke: var(--label-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .band { fill: var(--fill-2); }
.chart .dot-labels text { fill: var(--label); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
#rank-summary a { color: var(--blue); text-decoration: none; }
#rank-summary b { color: var(--label); font-variant-numeric: tabular-nums; }
.same { color: var(--label-3); }
.tooltip {
  position: absolute; pointer-events: none; background: var(--card); color: var(--label);
  border-radius: 0.625rem; padding: 0.5rem 0.625rem; font-size: 0.8125rem; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,.15); border: 0.5px solid var(--separator); transform: translate(-50%, calc(-100% - 0.75rem));
}
.tooltip b { font-variant-numeric: tabular-nums; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { text-align: left; padding: 0.5rem 0; border-bottom: 0.5px solid var(--separator); }
.data-table th { font-size: 0.8125rem; color: var(--label-3); font-weight: 500; }

.game { grid-template-columns: 3.5rem 2rem minmax(0,1fr) auto auto; }
.game-date { font-size: 0.8125rem; color: var(--label-3); text-align: right; line-height: 1.25; }
.line-val { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.line-val small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--label-3); text-transform: uppercase; letter-spacing: .02em; }
.result { font-size: 0.8125rem; font-weight: 600; border-radius: 0.375rem; padding: 0.1875rem 0.4375rem; background: var(--fill-2); white-space: nowrap; min-width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.result .ats { font-weight: 500; color: var(--label-3); }
.result:has(.pill) { display: flex; gap: 0.25rem; padding: 0; background: none; min-width: 0; }
.result .pill { border-radius: 0.375rem; padding: 0.1875rem 0.4375rem; background: var(--fill-2); color: var(--label-3); }
.result .pill:first-child { min-width: 4rem; }
.result .pill:last-child { min-width: 4rem; font-weight: 500; }
.result .pill.good { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.result .pill.bad { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
@media (max-width: 520px) {
  .game { grid-template-columns: 2.75rem 1.75rem minmax(0,1fr) auto auto; }
  .team-hero img { width: 4rem; height: 4rem; }
  .result { min-width: 0; }
  .result:has(.pill) { flex-direction: column; gap: 0.1875rem; }
  .result .pill { font-size: 0.75rem; padding: 2px 0.375rem; }
}

.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); gap: 0.75rem 1.75rem; margin: -0.5rem 0 1.5rem; }
.explain h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.25rem; }
.explain p { font-size: 0.9375rem; line-height: 1.45; color: var(--label-2); margin: 0; }
.explain b { color: var(--label); }
.stat .pm { font-size: 0.9375rem; font-weight: 500; color: var(--label-3); }
.bubble { margin-top: 0.75rem; padding-top: 1rem; border-top: 0.5px solid var(--separator); }
.bubble h3, .bubble .sub { padding: 0 1.25rem; }
.bubble h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 2px; }
.bubble .sub { margin-bottom: 0.25rem; }
@media (max-width: 520px) { .bubble h3, .bubble .sub { padding: 0 1rem; } }
/* Compact on larger screens: everything sized in rem scales with this. */
@media (min-width: 861px) { html { font-size: 70%; } }

/* Header links */
.nav-tools { display: flex; align-items: center; gap: 1rem; }
.nav-link { color: var(--blue); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav-link[aria-current="page"] { color: var(--label); }
.how-more { margin: 1.25rem 0 0; font-size: 0.9375rem; }
.how-more a { color: var(--blue); text-decoration: none; }

/* FAQ */
.faq .hero { padding-bottom: 1.5rem; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.faq-toc a { font-size: 0.875rem; font-weight: 500; color: var(--blue); text-decoration: none; background: var(--fill-2); border-radius: 999px; padding: 0.375rem 0.75rem; }
.faq-section { max-width: 47.5rem; padding: 1.75rem; scroll-margin-top: 5rem; }
main.faq > .card + .card { margin-top: 1.25rem; }
.faq-section h2 { margin-bottom: 0.25rem; }
.faq-section h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 0.375rem; }
.faq-section h3[id] { scroll-margin-top: 4.5rem; }
.faq-section p, .faq-section li { font-size: 0.9375rem; line-height: 1.55; color: var(--label-2); }
.faq-section p { margin: 0 0 0.625rem; }
.faq-section ul { margin: 0 0 0.625rem; padding-left: 1.25rem; }
.faq-section li { margin-bottom: 0.5rem; }
.faq-section b { color: var(--label); font-weight: 600; }
.faq-table { margin: 0.25rem 0 1rem; }
.faq-table th, .faq-table td { text-align: center; }
.faq-table th:first-child, .faq-table td:first-child { text-align: left; }
@media (max-width: 520px) { .faq-section { padding: 1.25rem 1rem; } .faq-table { font-size: 0.8125rem; } }

/* Sport switcher: pill links in the header. Below 760px it takes its own full-width row. */
.sport-nav { display: flex; gap: 0.25rem; background: var(--fill); border-radius: 0.5625rem; padding: 2px; }
.sport-nav a {
  color: var(--label); text-decoration: none; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 0.4375rem 0.75rem; border-radius: 0.4375rem; white-space: nowrap;
}
.sport-nav a:hover { background: var(--fill-2); }
.sport-nav a[aria-current="page"] { background: var(--card); box-shadow: 0 1px 0.1875rem rgba(0,0,0,.12); color: var(--blue); }
:root[data-theme="dark"] .sport-nav a[aria-current="page"] { background: #636366; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sport-nav a[aria-current="page"] { background: #636366; color: #fff; } }
.sport-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; row-gap: 0.5rem; }
  .sport-nav { order: 3; flex: 1 0 100%; justify-content: space-between; }
  .sport-nav a { flex: 1; text-align: center; padding: 0.4375rem 0.25rem; }
}

/* Pro leagues: the comparison badge holds a record ("92–70 ▲3"), which runs longer than "AP 12 ▲3". */
.ap.rec { font-size: 0.75rem; padding-left: 0.25rem; padding-right: 0.25rem; }

.preseason { margin-top: 0.5rem; max-width: 45rem; padding: 2rem 1.75rem; }
.preseason p { margin: 0.75rem 0 0; color: var(--label-2); font-size: 0.9375rem; line-height: 1.5; }
.preseason b { color: var(--label); }
.soon-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); border-radius: 999px; padding: 0.3125rem 0.75rem;
}
.countdown { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 1rem; }
.countdown-note { font-size: 1.0625rem !important; color: var(--label) !important; }
.countdown b { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 1.0625rem; color: var(--label-2); }
.soon-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 1.25rem; margin-top: 1.25rem !important; border-top: 0.5px solid var(--separator); }
.soon-links a { color: var(--blue); text-decoration: none; font-weight: 600; background: var(--fill-2); border-radius: 999px; padding: 0.3125rem 0.75rem; }

/* Header: sports without a ranking yet get a small "Soon" tag. */
.sport-nav a.soon { color: var(--label-3); }
.sport-nav a.soon[aria-current="page"] { color: var(--label); }
.soon-tag {
  display: inline-block; vertical-align: 0.125rem; margin-left: 0.3125rem; font-size: 0.5625rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent);
  border-radius: 999px; padding: 0.125rem 0.3125rem;
}
@media (max-width: 760px) {
  .sport-nav a { line-height: 1.1; }
  .soon-tag { display: block; width: max-content; margin: 0.1875rem auto 0; }
}

.games-hint { padding: 0 1.25rem; margin-top: -0.25rem; }
.games-more { display: block; margin: 0.5rem 1.25rem 0.75rem; }
@media (max-width: 520px) { .games-hint { padding: 0 1rem; } .games-more { margin: 0.5rem 1rem 0.75rem; } }

/* Team page: schedule beside the charts on wide screens, stacked on phones. */
.team-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 1.25rem; align-items: start; }
.team-side { display: grid; gap: 1.25rem; min-width: 0; }
/* Beside the schedule the chart sidebar is narrow (~30%): tighter cards, smaller headings, header controls allowed to wrap. */
@media (min-width: 861px) {
  .team-side .card { padding: 1rem; }
  .team-side .card-head { flex-wrap: wrap; gap: 0.25rem 0.75rem; }
  .team-side h2 { font-size: 1.0625rem; }
  .team-side .sub { font-size: 0.75rem; line-height: 1.4; }
  .team-side .chart { margin-top: 0.5rem; }
  .team-side .data-table { font-size: 0.8125rem; }
}
@media (max-width: 860px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }

/* Latest news */
.news-card { margin-top: 1.25rem; }
.news-list { list-style: none; margin: 0.25rem 0 0; padding: 0; }
.news-item a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 0.875rem 0; color: inherit; text-decoration: none; }
.news-item + .news-item a { border-top: 0.5px solid var(--separator); }
.news-item h3 { font-size: 1rem; font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.news-item a:hover h3 { color: var(--blue); }
.news-item a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 0.375rem; }
.news-item p {
  margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--label-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.375rem; font-size: 0.75rem; color: var(--label-3); }
.news-kind { font-weight: 600; color: var(--label-2); background: var(--fill-2); border-radius: 0.3125rem; padding: 0.0625rem 0.375rem; }
.news-thumb { width: 7.5rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.5rem; background: var(--fill-2); }
@media (max-width: 520px) { .news-thumb { width: 5.5rem; } .news-item h3 { font-size: 0.9375rem; } }

/* Masthead: the v25 mark with the name and slogan beside it (live text, so the slogan stays readable), plus FAQ
   and appearance. It scrolls away; the sport bar under it stays pinned to the top. */
.masthead { background: var(--card); border-bottom: 0.5px solid var(--separator); }
.masthead-inner {
  max-width: 67.5rem; margin: 0 auto; padding: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.875rem; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark { width: 4rem; height: 4rem; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
/* The name matches the logo's wordmark: Inter Bold with tight tracking (-1.2 at size 40). */
.brand-name { font-family: Inter, -apple-system, "Helvetica Neue", sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--label); white-space: nowrap; }
.brand-tagline { margin-top: 0.125rem; font-family: Inter, -apple-system, "Helvetica Neue", sans-serif; font-size: 1.3125rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; color: #8E8E93; white-space: nowrap; }
.masthead .nav-tools { flex: none; }
.sport-bar .nav-inner { min-height: 2.5rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.footer-appearance { display: none; }
@media (max-width: 860px) {
  .brand-mark { width: 3.25rem; height: 3.25rem; }
  .brand-name { font-size: 1.625rem; }
  .brand-tagline { font-size: 1.0625rem; }
}
@media (max-width: 600px) {
  .masthead-inner { padding: 0.75rem 1rem; }
  .brand { gap: 0.625rem; }
  .brand-mark { width: 3rem; height: 3rem; }
  .brand-name { font-size: 1.375rem; }
  .brand-tagline { font-size: min(0.875rem, 3.6vw); margin-top: 0.0625rem; }
  .masthead .segmented { display: none; }
  .footer-appearance { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
}
