:root {
  color-scheme: light;
  --page: #eef0f2;
  --paper: #ffffff;
  --ink: #1a1d21;
  --secondary: #59626d;
  --line: #d9dde2;
  --quiet: #f5f6f8;
  --accent: #b5152b;
  --accent-ink: #ffffff;
  --masthead: #1a1d22;
  --success: #176b49;
  --hover: #f9fafb;
  --shadow: 0 2px 8px rgb(15 23 35 / 4%);
  --page-gutter: clamp(14px, 2.5vw, 32px);
}
/* Each comparison carries its own type variables, independent of the live page. */
[data-header-font="reference"] {
  --type-family: "Barlow Condensed", sans-serif;
  --type-stretch: 100%; --brand-style: italic; --brand-weight: 800;
  --brand-size: 33px; --brand-spacing: -.025em; --brand-case: uppercase;
  --headline-family: "Barlow Condensed", sans-serif;
  --headline-weight: 800; --section-weight: 700;
  --headline-scale: 1; --headline-spacing: -.018em; --headline-stretch: 100%;
}
[data-header-font="broadcast"] {
  --type-family: "Archivo", sans-serif;
  --type-stretch: 112.5%; --brand-style: normal; --brand-weight: 900;
  --brand-size: 26px; --brand-spacing: -.05em; --brand-case: uppercase;
  --headline-family: "Archivo", sans-serif;
  --headline-weight: 900; --section-weight: 900;
  --headline-scale: .84; --headline-spacing: -.045em; --headline-stretch: 112.5%;
}
[data-header-font="editorial"] {
  --type-family: "Newsreader", Georgia, serif;
  --type-stretch: 100%; --brand-style: normal; --brand-weight: 700;
  --brand-size: 34px; --brand-spacing: -.035em; --brand-case: none;
  --headline-family: "Newsreader", Georgia, serif;
  --headline-weight: 700; --section-weight: 700;
  --headline-scale: 1.08; --headline-spacing: -.035em; --headline-stretch: 100%;
}
[data-header-font="collegiate"] {
  --type-family: "Graduate", Georgia, serif;
  --type-stretch: 100%; --brand-style: normal; --brand-weight: 400;
  --brand-size: 26px; --brand-spacing: -.01em; --brand-case: uppercase;
  --headline-family: "Graduate", Georgia, serif;
  --headline-weight: 400; --section-weight: 400;
  --headline-scale: .82; --headline-spacing: -.02em; --headline-stretch: 100%;
}
[data-header-font="scoreboard"] {
  --type-family: "Rajdhani", sans-serif;
  --type-stretch: 100%; --brand-style: normal; --brand-weight: 700;
  --brand-size: 34px; --brand-spacing: -.01em; --brand-case: uppercase;
  --headline-family: "Rajdhani", sans-serif;
  --headline-weight: 700; --section-weight: 700;
  --headline-scale: 1; --headline-spacing: -.01em; --headline-stretch: 100%;
}
[data-header-font="slab"] {
  --type-family: "Zilla Slab", Georgia, serif;
  --type-stretch: 100%; --brand-style: normal; --brand-weight: 700;
  --brand-size: 32px; --brand-spacing: -.025em; --brand-case: none;
  --headline-family: "Zilla Slab", Georgia, serif;
  --headline-weight: 700; --section-weight: 700;
  --headline-scale: 1; --headline-spacing: -.025em; --headline-stretch: 100%;
}
[data-header-font="industrial"] {
  --type-family: "Saira", sans-serif;
  --type-stretch: 100%; --brand-style: normal; --brand-weight: 800;
  --brand-size: 27px; --brand-spacing: -.025em; --brand-case: uppercase;
  --headline-family: "Saira", sans-serif;
  --headline-weight: 800; --section-weight: 800;
  --headline-scale: .9; --headline-spacing: -.025em; --headline-stretch: 100%;
}
[data-header-font="press"] {
  --type-family: "Chivo", sans-serif;
  --type-stretch: 100%; --brand-style: normal; --brand-weight: 900;
  --brand-size: 28px; --brand-spacing: -.035em; --brand-case: none;
  --headline-family: "Chivo", sans-serif;
  --headline-weight: 900; --section-weight: 900;
  --headline-scale: .94; --headline-spacing: -.035em; --headline-stretch: 100%;
}
[data-header-font="recordbook"] {
  --type-family: "IBM Plex Sans Condensed", sans-serif;
  --type-stretch: 100%; --brand-style: normal; --brand-weight: 700;
  --brand-size: 31px; --brand-spacing: -.015em; --brand-case: none;
  --headline-family: "IBM Plex Sans Condensed", sans-serif;
  --headline-weight: 700; --section-weight: 700;
  --headline-scale: 1; --headline-spacing: -.015em; --headline-stretch: 100%;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101317;
  --paper: #1c2127;
  --ink: #f1f3f6;
  --secondary: #aeb8c4;
  --line: #343d47;
  --quiet: #252d36;
  --accent: #fa7886;
  --accent-ink: #15181c;
  --masthead: #1a1d22;
  --success: #8bd8b5;
  --hover: #222a33;
  --shadow: 0 2px 8px rgb(0 0 0 / 14%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #101317; --paper: #1c2127; --ink: #f1f3f6;
    --secondary: #aeb8c4; --line: #343d47; --quiet: #252d36;
    --accent: #fa7886; --accent-ink: #15181c; --masthead: #1a1d22;
    --success: #8bd8b5; --hover: #222a33; --shadow: 0 2px 8px rgb(0 0 0 / 14%);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.4 "Source Sans 3", sans-serif; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
svg.lucide { width: 16px; height: 16px; stroke-width: 1.8; flex-shrink: 0; }
.wrap { width: min(1220px, calc(100% - var(--page-gutter) - var(--page-gutter))); margin-inline: auto; }
section, aside, .columns > div, .review-controls-panel, .review-controls label { min-width: 0; }
#current-games, #standings { scroll-margin-top: 20px; }
.sample { color: var(--secondary); font-size: 12px; }
.review { border-bottom: 1px solid var(--line); background: var(--quiet); }
.review-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 8px; }
.review-name, .review-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.review-controls { justify-content: flex-end; }
.review-controls-panel { max-width: 100%; }
.review-controls-panel summary { display: none; list-style: none; cursor: pointer; }
.review-controls-panel summary::-webkit-details-marker { display: none; }
.review-controls-panel[open] summary svg { transform: rotate(180deg); }
.review-name strong { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.review-controls label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--secondary); }
.review-controls select { padding: 4px 23px 4px 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); font-size: 12px; color: var(--ink); }
.review-button { border: 1px solid var(--line); border-radius: 3px; padding: 4px 9px; background: var(--paper); font-size: 12px; font-weight: 600; }
.review-button:hover { background: var(--hover); }
.masthead { color: #fff; background: var(--masthead); }
.brand-row { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { display: block; width: 240px; max-width: 100%; height: auto; aspect-ratio: 80 / 19; object-fit: cover; object-position: center 45%; }
.brand-wordmark { font: var(--brand-style) var(--brand-weight) var(--brand-size)/1 var(--type-family); font-stretch: var(--type-stretch); letter-spacing: var(--brand-spacing); text-transform: var(--brand-case); white-space: nowrap; font-synthesis: none; }
.brand-wordmark span { color: #ed4057; }
.brand-caption { padding-left: 12px; border-left: 1px solid #444950; color: #adb4bf; font-size: 10px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.global-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #c7ccd4; }
.global-links :is(a, span) { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; white-space: nowrap; }
.global-links a:hover { color: #fff; text-decoration: none; }
.global-links .current { color: #fff; }
.score-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: 115px repeat(6, minmax(0, 1fr)); }
.strip-inner:focus-visible { outline-offset: -3px; }
.score-strip-hint { display: none; }
.strip-title { padding: 15px 14px 15px 0; display: flex; flex-direction: column; justify-content: center; text-transform: uppercase; font-size: 10px; letter-spacing: .13em; color: var(--secondary); }
.strip-title b { font: 700 25px/1 "Barlow Condensed", sans-serif; color: var(--ink); margin-block: 4px; letter-spacing: 0; }
.strip-game { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 11px 22px; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 16px; color: var(--secondary); font-size: 12px; scroll-snap-align: start; }
.strip-game:hover { background: var(--hover); }
.strip-game:focus-visible { outline-offset: -3px; }
.strip-game .game-state { grid-column: 1 / -1; margin-bottom: 3px; font-size: 12px; font-weight: 600; }
.strip-team { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.strip-game b { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 500; }
.strip-game b.winner { color: var(--ink); font-weight: 800; }
.logo-wrap { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; }
.team-logo { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback { font: 700 16px/1 "Barlow Condensed", sans-serif; color: var(--ink); }
.logo-wrap.mini { width: 20px; height: 20px; }
.logo-wrap.small { width: 25px; height: 25px; }
.logo-wrap.featured { width: 95px; height: 95px; padding: 12px; border-radius: 50%; background: #f6f7f9; box-shadow: 0 0 0 1px rgb(0 0 0 / 4%); }
.logo-wrap.detail { width: 42px; height: 42px; padding: 5px; background: #f6f7f9; border-radius: 5px; }
.logo-wrap.featured .logo-fallback, .logo-wrap.detail .logo-fallback { color: #1a1d21; }
main { padding-block: 27px 46px; }
.league-hero { position: relative; isolation: isolate; overflow: hidden; padding: 32px 36px 27px; min-height: 205px; display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #fff; background: #18222d; border-radius: 4px 4px 0 0; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 59%; filter: saturate(.68); }
.league-hero::before { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 14 22 / 94%) 0%, rgb(8 14 22 / 79%) 42%, rgb(8 14 22 / 48%) 76%, rgb(8 14 22 / 73%) 100%); }
.hero-main { min-width: 0; flex: 1; }
h1 { font: var(--headline-weight) calc(57px * var(--headline-scale))/1.06 var(--headline-family); font-stretch: var(--headline-stretch); letter-spacing: var(--headline-spacing); margin: 0 0 8px; overflow-wrap: anywhere; font-synthesis: none; }
.league-context { margin-bottom: 12px; color: #d0d6de; font-size: 12px; }
.payment-access-notice { padding: 20px 22px; margin-bottom: 24px; border: 1px solid var(--line); border-left: 3px solid var(--secondary); border-radius: 0 4px 4px 0; background: var(--paper); }
.payment-access-notice h2 { font-size: 26px; margin-bottom: 8px; }
.payment-access-notice p { font-size: 14px; color: var(--secondary); margin-bottom: 14px; }
#private-message .plain-button { margin-top: 20px; }
.league-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 21px; color: #d0d6de; font-size: 12px; }
.league-meta > span { display: inline-flex; gap: 6px; align-items: center; }
.league-meta svg.lucide { width: 14px; height: 14px; }
.owner-actions { margin-top: 19px; display: flex; flex-wrap: wrap; gap: 8px; }
.plain-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; border: 1px solid var(--line); padding: 8px 12px; border-radius: 3px; font-size: 13px; font-weight: 600; background: var(--paper); }
.plain-button:hover { background: var(--quiet); }
.hero-button { color: #fff; border-color: #78818e; background: rgb(15 20 29 / 35%); }
.hero-button:hover { background: rgb(75 85 101 / 55%); }
.hero-button.discord-button { color: #181b20; border-color: #fff; background: #fff; }
.hero-button.discord-button:hover { background: #e8edf2; }
.week-marker { display: flex; flex-direction: column; align-items: center; min-width: 132px; flex-shrink: 0; padding-left: 28px; border-left: 1px solid rgb(255 255 255 / 25%); }
.week-marker span:first-child { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: #d0d6de; }
.week-marker b { font: 700 89px/.95 "Barlow Condensed", sans-serif; letter-spacing: -.04em; }
.week-marker span:last-child { font-size: 11px; color: #d0d6de; margin-top: 5px; }
.league-nav { background: var(--paper); display: flex; gap: 28px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; padding-inline: 26px; margin-bottom: 28px; box-shadow: var(--shadow); }
.league-nav a { display: flex; align-items: center; gap: 7px; min-height: 48px; padding: 15px 3px 13px; border-bottom: 3px solid transparent; color: var(--secondary); font-size: 13px; font-weight: 600; }
.league-nav .active { color: var(--ink); border-bottom-color: var(--accent); }
.league-nav a:hover { color: var(--ink); text-decoration: none; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 28px; align-items: start; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
h2 { font: var(--section-weight) calc(29px * var(--headline-scale))/1.08 var(--headline-family); font-stretch: var(--headline-stretch); letter-spacing: var(--headline-spacing); font-synthesis: none; }
.section-heading .context { color: var(--secondary); font-size: 12px; }
.matchup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.matchup { position: relative; width: 100%; display: block; overflow: hidden; padding: 0; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.matchup::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--away-color) 0 50%, var(--home-color) 50% 100%); }
.matchup:hover { transform: translateY(-2px); border-color: var(--secondary); }
.matchup-stage { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; padding: 24px 15px 22px; gap: 3px; }
.matchup-team { display: flex; align-items: center; flex-direction: column; gap: 9px; text-align: center; min-width: 0; }
.matchup-team strong { font: 700 26px/1.05 "Barlow Condensed", sans-serif; overflow-wrap: anywhere; }
.matchup-team small { color: var(--secondary); font-size: 12px; }
.versus { color: var(--secondary); font: italic 600 16px/1 "Barlow Condensed", sans-serif; text-align: center; margin-top: -39px; }
.matchup-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--secondary); background: var(--quiet); }
.matchup-foot .details { display: inline-flex; gap: 4px; align-items: center; color: var(--ink); font-weight: 600; }
.matchup-foot svg.lucide { width: 13px; height: 13px; }
.schedule-section { margin-top: 29px; }
.filters { display: flex; flex-wrap: wrap; gap: 2px; }
.filter { border: 0; background: transparent; min-height: 44px; min-width: 44px; padding: 7px 9px; border-radius: 3px; font-size: 13px; color: var(--secondary); font-weight: 600; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.table-shell { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; max-width: 100%; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--quiet); color: var(--secondary); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.team-link { display: flex; flex-direction: column; gap: 4px; width: 100%; background: none; padding: 0; border: 0; text-align: left; }
.schedule-team { display: flex; align-items: center; gap: 9px; min-height: 25px; color: var(--ink); font-weight: 600; }
.schedule-team > span:last-child { overflow-wrap: anywhere; }
.schedule-team .at { color: var(--secondary); font-size: 11px; font-weight: 400; }
.type-label { color: var(--secondary); font-size: 10px; }
.status-label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 3px; }
.status-label.upcoming { color: var(--secondary); }
.table-score { display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; font-size: 16px; color: var(--secondary); }
.table-score span { min-height: 25px; line-height: 25px; }
.table-score .winner { color: var(--ink); font-weight: 800; }
.schedule-count { margin-top: 9px; }
.mobile-schedule { display: none; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.mobile-schedule li + li { border-top: 1px solid var(--line); }
.mobile-game { display: grid; gap: 9px; width: 100%; padding: 16px; border: 0; background: transparent; text-align: left; }
.mobile-game:hover { background: var(--hover); }
.mobile-game:focus-visible { outline-offset: -3px; }
.mobile-game-team { display: grid; grid-template-columns: 25px minmax(0, 1fr) 36px; gap: 9px; align-items: center; min-height: 29px; }
.mobile-game-name { color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.mobile-game-name .at { color: var(--secondary); font-weight: 400; }
.mobile-game-score { text-align: right; color: var(--secondary); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mobile-game-score.winner { color: var(--ink); font-weight: 800; }
.mobile-game-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 3px; color: var(--secondary); font-size: 12px; }
.standings table { table-layout: fixed; }
.standings th:nth-child(3) { width: 52px; }
.standings th:nth-child(4) { width: 64px; }
.standings select { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 6px 23px 6px 8px; max-width: 110px; font-size: 12px; }
.standings th, .standings td { padding: 12px 10px; }
.standing-position { width: 21px; color: var(--secondary); font-size: 11px; padding-right: 0 !important; font-variant-numeric: tabular-nums; }
.standing-team { display: flex; gap: 8px; align-items: center; min-width: 0; }
.standing-name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.standing-name small { font-size: 11px; color: var(--secondary); font-weight: 400; }
.standings-note { border-top: 1px solid var(--line); padding: 12px; color: var(--secondary); font-size: 11px; }
.sync-status { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: grid; gap: 15px; box-shadow: var(--shadow); }
.status-item { display: flex; align-items: center; gap: 10px; color: var(--secondary); font-size: 11px; }
.status-item svg.lucide { width: 18px; height: 18px; }
.status-item div { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.status-item strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.discord-state svg.lucide { color: var(--success); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 18px 0 26px; color: var(--secondary); font-size: 11px; }
.footer-credit { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog { width: min(540px, calc(100% - 32px)); max-height: 85vh; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); padding: 0; border-radius: 5px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / 65%); }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dialog-header h2 { font-size: 26px; min-width: 0; overflow-wrap: anywhere; }
.close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; min-height: 44px; background: transparent; border: 0; border-radius: 3px; }
.close:hover { background: var(--quiet); }
.dialog-body { padding: 22px; }
.dialog-body p { font-size: 14px; color: var(--secondary); margin-bottom: 18px; }
.settings-field { display: grid; gap: 7px; margin-bottom: 20px; }
.settings-field label { font-size: 14px; font-weight: 600; }
.settings-field select { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--quiet); }
.settings-field small { font-size: 12px; color: var(--secondary); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 16px 22px; }
.primary-button { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.primary-button:hover { background: var(--accent); filter: brightness(.94); }
.alert-preview { border-left: 3px solid #7d83ef; background: var(--quiet); padding: 18px; border-radius: 0 4px 4px 0; }
.alert-preview h3 { font-size: 18px; margin-bottom: 10px; }
.alert-preview p { color: var(--ink); margin-bottom: 5px; }
.alert-preview .schedule-link { margin-top: 12px; color: var(--accent); }
.detail-rows { display: grid; gap: 13px; }
.detail-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-variant-numeric: tabular-nums; }
.detail-rows > div:last-child { border-bottom: 0; }
.detail-team { display: flex; align-items: center; gap: 11px; min-width: 0; }
.detail-team strong { min-width: 0; overflow-wrap: anywhere; }
.detail-score { font: 700 29px/1 "Barlow Condensed", sans-serif; }
#font-dialog { width: min(1040px, calc(100% - 32px)); }
#font-dialog .dialog-header h2 { font: 700 23px/1.2 "Source Sans 3", sans-serif; letter-spacing: -.02em; }
.font-filter { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 12px; }
.font-filter select { padding: 7px 23px 7px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.font-dialog-body .font-selection-note { font-size: 12px; margin-bottom: 20px; }
.type-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.type-option { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; min-width: 0; background: var(--paper); }
.type-option.is-selected { box-shadow: 0 0 0 2px var(--accent); }
.type-option-label { padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.type-option-label h3 { font: 700 14px/1.3 "Source Sans 3", sans-serif; }
.type-option-label a { font-size: 12px; color: var(--secondary); text-decoration: underline; }
.type-masthead { background: var(--masthead); color: #fff; padding: 24px 18px; }
.type-masthead .brand-wordmark { font-size: clamp(18px, 3.6vw, var(--brand-size)); }
.type-hero { padding: 25px 18px; color: #fff; background: linear-gradient(90deg, rgb(8 14 22 / 92%), rgb(8 14 22 / 65%)), url("assets/stadium.jpg") center / cover; }
.type-hero-meta { margin-top: 6px; font-size: 12px; color: #c0c7d0; }
.type-hero h4 { font: var(--headline-weight) calc(38px * var(--headline-scale))/1.1 var(--headline-family); font-stretch: var(--headline-stretch); letter-spacing: var(--headline-spacing); margin: 0; font-synthesis: none; overflow-wrap: anywhere; }
.type-section { padding: 20px 18px 0; }
.type-section strong { display: block; font: var(--section-weight) calc(25px * var(--headline-scale))/1.1 var(--headline-family); font-stretch: var(--headline-stretch); letter-spacing: var(--headline-spacing); padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-synthesis: none; }
.type-description { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.type-description p { font-size: 13px; margin: 0; }
.type-description button { align-self: flex-start; }
[hidden] { display: none !important; }
@media (max-width: 1120px) {
  .columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .columns > aside { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
  .sync-status { margin-top: 0; }
  .brand-caption { display: none; }
  .strip-inner { width: 100%; max-width: none; overflow-x: auto; grid-template-columns: 100px repeat(6, minmax(170px, 1fr)); padding-inline: var(--page-gutter); scrollbar-width: thin; scroll-snap-type: x proximity; scroll-padding-inline: var(--page-gutter); overscroll-behavior-x: contain; }
  .strip-game { padding-inline: 14px; }
  .score-strip-hint { display: flex; align-items: center; gap: 7px; padding-block: 7px; color: var(--secondary); font-size: 12px; }
  .score-strip-hint svg { width: 14px; height: 14px; }
  .league-hero { padding: 28px; }
  h1 { font-size: calc(53px * var(--headline-scale)); }
}
@media (max-width: 820px) {
  .type-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .brand-row { flex-direction: column; gap: 0; padding-block: 8px 0; }
  .brand { width: min(224px, 100%); }
  .global-links { width: 100%; justify-content: space-between; gap: 8px; border-top: 1px solid #444950; margin-top: 7px; }
  .columns > aside { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sync-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-marker { min-width: 105px; padding-left: 20px; }
  .week-marker b { font-size: 76px; }
}
@media (max-width: 640px) {
  .review-inner { display: block; }
  .review-name { justify-content: space-between; gap: 8px; }
  .review-controls-panel { margin-top: 5px; }
  .review-controls-panel summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 13px; font-weight: 600; }
  .review-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 5px 12px; }
  .review-controls label { display: grid; gap: 5px; }
  .review-controls label[for="header-font-select"], .review-button { grid-column: 1 / -1; }
  .review-controls select { width: 100%; min-width: 0; }
  .review-controls select, .standings select, .settings-field select, .font-filter select { font-size: 16px; min-height: 44px; }
  .review-button { min-height: 44px; font-size: 14px; }
  .brand { width: min(208px, 100%); }
  .global-links { font-size: 13px; }
  .strip-inner { grid-template-columns: 85px repeat(6, 160px); }
  .strip-game { padding: 11px 12px; font-size: 13px; }
  .strip-title b { font-size: 24px; }
  main { padding-block: 20px 32px; }
  .league-hero { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; min-height: 0; }
  .week-marker { order: -1; flex-direction: row; justify-content: flex-start; gap: 10px; min-width: 0; padding: 0 0 12px; border-left: 0; border-bottom: 1px solid rgb(255 255 255 / 25%); }
  .week-marker b { font-size: 42px; }
  .week-marker span:first-child { font-size: 10px; }
  .week-marker span:last-child { margin: 0 0 0 auto; font-size: 12px; }
  h1 { font-size: calc(clamp(32px, 8vw, 45px) * var(--headline-scale)); }
  .league-meta { gap: 8px 16px; font-size: 12px; }
  .owner-actions { gap: 8px; margin-top: 18px; }
  .owner-actions button { flex: 1; font-size: 13px; }
  .league-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 8px; gap: 4px; margin-bottom: 26px; }
  .league-nav a { justify-content: center; gap: 6px; font-size: 13px; padding-inline: 0; }
  .league-nav svg { width: 14px; height: 14px; }
  .section-heading { margin-bottom: 14px; padding-bottom: 11px; }
  h2 { font-size: calc(26px * var(--headline-scale)); }
  .section-heading .context { font-size: 12px; }
  .matchup-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .matchup-stage { padding: 24px 18px 22px; }
  .logo-wrap.featured { width: 90px; height: 90px; padding: 10px; }
  .matchup-team strong { font-size: 29px; }
  .filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 4px; }
  .filter { padding-inline: 6px; }
  .schedule-section .section-heading { gap: 12px; }
  .desktop-schedule { display: none; }
  .mobile-schedule { display: block; }
  .standings th, .standings td { padding: 12px 8px; }
  .standings td { font-size: 14px; }
  .standings th { font-size: 11px; }
  .standings .standing-position { width: 28px; }
  .standings select { max-width: 120px; }
  .sync-status { grid-template-columns: minmax(0, 1fr); }
  .status-item { font-size: 12px; }
  .status-item strong { font-size: 14px; }
  dialog, #font-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .dialog-header { padding: 12px 16px; }
  .dialog-body, .dialog-actions { padding-inline: 16px; }
  .dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .font-filter { flex-wrap: wrap; }
  .font-filter select { max-width: 100%; }
  .type-masthead .brand-wordmark { font-size: min(var(--brand-size), 6vw); }
  .type-hero h4 { font-size: calc(34px * var(--headline-scale)); }
  .type-description button { width: 100%; }
}
@media (max-width: 380px) {
  .league-hero { padding-inline: 16px; }
  .global-links { font-size: 12px; }
  .global-links :is(a, span) { gap: 5px; }
  .league-nav a { font-size: 12px; gap: 4px; }
  .mobile-game { padding: 14px; }
}
@media (pointer: coarse) {
  button, select { min-height: 44px; min-width: 44px; }
  .review-controls select, .standings select, .settings-field select, .font-filter select { font-size: 16px; }
  .team-link { min-height: 56px; }
}
@media (hover: none) {
  .matchup:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .matchup { transition: none; }
  .matchup:hover { transform: none; }
}
