/*
 * Homepage design version 2. Loaded only on pages that render version 2
 * (slms/services/hub_design.py), after the version 1 layers.
 *
 * Colors: the server writes nine tokens into <style id="hub-v2-tokens">, all
 * derived from two Site Settings colors (theme_colors.derive_hub_palette).
 * Text tokens are contrast-checked there; this file only mixes fills.
 *
 * Rules: no !important, hex colors only as custom-property values, every
 * selector scoped to html.hub-v2. The release gate keeps this file under 56 KB.
 */

/* ---------- Kit fonts (self-hosted, OFL licences beside them) ---------- */

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-condensed-latin-600.woff2') format('woff2');
}
/* Also serves the heavier weights version 1's hero asks for, instead of faux bold. */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url('../fonts/barlow-condensed-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Big Shoulders Display';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/big-shoulders-display-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/archivo-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/rubik-latin.woff2') format('woff2');
}

/* ---------- Kits ---------- */

/* Clubhouse (default): condensed athletic headlines, friendly body, 6px corners. */
html.hub-v2 {
    --hub2-f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --hub2-f-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --hub2-f-num: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --hub2-d-weight: 700;
    --hub2-d-case: none;
    --hub2-d-track: 0em;
    --hub2-d-lh: 0.94;
    --hub2-e-case: uppercase;
    --hub2-e-track: 0.09em;
    --hub2-r: 6px;
    --hub2-r-lg: 10px;
    --hub2-r-btn: 6px;

    /* Surfaces a light kit paints. */
    --hub2-page: var(--hub2-paper);
    --hub2-card: #ffffff;
    --hub2-text: var(--hub2-dark);
    --hub2-text-muted: var(--hub2-muted);
    --hub2-rule: var(--hub2-line);
    --hub2-accent-text: var(--hub2-brand-text);
    --hub2-deep: var(--hub2-dark);
    --hub2-on-dark: #ffffff;
    --hub2-live: #d92d20;
    --hub2-mono-bg: color-mix(in oklab, var(--hub2-dark) 10%, #ffffff);
    --hub2-mono-fg: var(--hub2-dark);
    --hub2-crest-chip: var(--hub2-paper);
}

/* Floodlight: night-game dark page, tall uppercase type, square corners. */
html.hub-v2[data-hub-kit="floodlight"] {
    --hub2-f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --hub2-f-body: 'Archivo', 'Segoe UI', system-ui, sans-serif;
    --hub2-f-num: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --hub2-d-weight: 800;
    --hub2-d-case: uppercase;
    --hub2-d-track: 0.005em;
    --hub2-d-lh: 0.9;
    --hub2-r: 3px;
    --hub2-r-lg: 4px;
    --hub2-r-btn: 3px;

    --hub2-page: color-mix(in oklab, var(--hub2-dark) 62%, #000000);
    --hub2-card: color-mix(in oklab, #ffffff 6%, var(--hub2-page));
    --hub2-text: #f1f3f7;
    --hub2-text-muted: color-mix(in oklab, #ffffff 66%, var(--hub2-page));
    --hub2-rule: color-mix(in oklab, #ffffff 13%, var(--hub2-page));
    --hub2-accent-text: var(--hub2-brand-text-on-dark);
    --hub2-deep: color-mix(in oklab, var(--hub2-brand) 14%, #05070b);
    --hub2-live: #ff6b5e;
    --hub2-mono-bg: color-mix(in oklab, #ffffff 14%, var(--hub2-page));
    --hub2-mono-fg: #ffffff;
}

/* Community: rounded and warm, sentence-case labels, pill buttons. */
html.hub-v2[data-hub-kit="community"] {
    --hub2-f-display: 'Rubik', 'Segoe UI', system-ui, sans-serif;
    --hub2-f-body: 'Rubik', 'Segoe UI', system-ui, sans-serif;
    --hub2-f-num: 'Rubik', 'Segoe UI', system-ui, sans-serif;
    --hub2-d-weight: 700;
    --hub2-d-track: -0.015em;
    --hub2-d-lh: 1.04;
    --hub2-e-case: none;
    --hub2-e-track: 0em;
    --hub2-r: 14px;
    --hub2-r-lg: 20px;
    --hub2-r-btn: 999px;

    --hub2-page: #ffffff;
    --hub2-card: color-mix(in oklab, var(--hub2-brand) 4%, #ffffff);
}

/* ---------- Page ---------- */

/* Version 1 components read --font-display, so this carries the kit's body
   face into blocks that haven't moved to version 2 markup yet. */
html.hub-v2.hub-page {
    --font-display: var(--hub2-f-body);
    --slms-font-base: var(--hub2-f-body);
}

html.hub-v2.hub-page body.public-page,
html.hub-v2.hub-page body.public-page .public-main-container,
html.hub-v2.hub-page .hub-page-wrapper {
    background-color: var(--hub2-page);
}

html.hub-v2.hub-page .hub-page-wrapper {
    font-family: var(--hub2-f-body);
}

/* The kit's type, shared: display faces take its case and tracking, and the
   small labels above titles and numbers take its label face. */
html.hub-v2 :where(.hub2-title, .hub2-hero-title, .hub2-hero-big, .hub2-award-name, .hub2-board-h b, .hub2-race-who b, .hub2-mu-side b, .hub2-champ b, .hub2-md--fact b) {
    letter-spacing: var(--hub2-d-track);
    text-transform: var(--hub2-d-case);
}
html.hub-v2 :where(.hub2-eyebrow, .hub2-hero-eyebrow, .hub2-hero-label, .hub2-race-title, .hub2-award-title, .hub2-champ small) {
    font: 700 0.75rem/1.2 var(--hub2-f-body);
    letter-spacing: var(--hub2-e-track);
    text-transform: var(--hub2-e-case);
}

html.hub-v2 :where(:is(.hub2-mu-score, .hub2-mu-time), .hub2-sbox, .hub2-table, .hub2-race-num, .hub2-race-val, .hub2-facts dd, .hub2-statline dd, :is(.hub2-tile-meta, .hub2-tile-facts), .hub2-count b) {
    font-variant-numeric: tabular-nums;
}
html.hub-v2 :where(.hub2-table th, .hub2-statline dt, .hub2-count span, .hub2-md--fact small) {
    font: 700 0.6875rem/1.1 var(--hub2-f-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Hero (public/includes/hub_v2_hero.html) ---------- */

/* The hero, like a band, paints its color and photo to the window's edges.
   On a photo: white type over the kit's dark color at the admin's strength. */
html.hub-v2 {
    overflow-x: clip;
}
html.hub-v2 .hub2-hero {
    --h-bg: var(--hub2-dark);
    --h-text: #ffffff;
    --h-muted: color-mix(in oklab, #ffffff 84%, var(--hub2-dark));
    --h-live: #ff7d70;
    --s-text: var(--h-text);
    --s-accent: var(--h-text);
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: var(--hub-refined-width, 1240px);
    margin-inline: auto;
    background: var(--h-bg);
    box-shadow: 0 0 0 100vmax var(--h-bg);
    clip-path: inset(0 -100vmax);
    color: var(--h-text);
}
/* No photo: the kit's dark band, or the brand color while registration leads. */
html.hub-v2 .hub2-hero:not([data-media="photo"], [data-media="video"]) {
    --h-bg: var(--hub2-deep);
}
html.hub-v2 .hub2-hero[data-media="none"][data-phase="pre"] {
    --h-bg: var(--hub2-brand);
    --h-text: var(--hub2-on-brand);
    --h-muted: color-mix(in oklab, var(--hub2-on-brand) 84%, var(--hub2-brand));
}
html.hub-v2 .hub2-hero[data-media="none"][data-phase="pre"] .hub2-btn--primary {
    background: var(--hub2-dark);
    color: var(--hub2-on-dark);
}
html.hub-v2 :is(.hub2-hero-photo, .hub2-hero-scrim) {
    position: absolute;
    inset: 0 calc(50% - 50vw);
}
html.hub-v2 .hub2-hero-photo {
    z-index: -2;
    width: 100vw;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: var(--hub2-hero-focus);
}
html.hub-v2 div.hub2-hero-photo :is(iframe, video) {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78cqh);
    min-width: 100%;
    height: max(100%, 56.25vw);
    border: 0;
    object-fit: cover;
    pointer-events: none;
    transform: translate(-50%, -50%);
}
html.hub-v2 .hub2-hero-scrim {
    z-index: -1;
    background: color-mix(in oklab, var(--hub2-dark) var(--hub2-hero-scrim), transparent);
}
html.hub-v2 .hub2-hero-art {
    display: block;
    width: 100%;
    max-width: var(--hub-refined-width, 1240px);
    height: auto;
    margin-inline: auto;
}

html.hub-v2 .hub2-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    max-width: var(--hub-refined-width, 1240px);
    margin-inline: auto;
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.75rem, 3vw, 2.5rem);
}
html.hub-v2 .hub2-hero:is([data-media="photo"], [data-media="video"]) .hub2-hero-inner {
    min-height: var(--hub2-hero-min);
    padding-top: clamp(3.25rem, 9vw, 7rem);
}
html.hub-v2 .hub2-hero-inner:has(> .hub2-hero-feature, > .hub2-hero-side) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
html.hub-v2 .hub2-hero-id {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}
html.hub-v2 .hub2-hero-logo {
    width: clamp(3rem, 6vw, 4.25rem);
    height: clamp(3rem, 6vw, 4.25rem);
    object-fit: contain;
}
html.hub-v2 :is(.hub2-hero-eyebrow, .hub2-hero-label) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
html.hub-v2 .hub2-hero-eyebrow {
    font-size: 0.8125rem;
}
html.hub-v2 .hub2-hero-label {
    color: var(--h-muted);
}
html.hub-v2 :is(.hub2-hero-label, .hub2-dock-head, .hub2-hero-liveline) .hub2-live {
    color: var(--h-live);
}
/* A live game as one line above the title, on phones only: there the dock and
   the matchup card are past the first screen. */
html.hub-v2 .hub2-hero-liveline {
    display: none;
}
@media (max-width: 47.99rem) {
    html.hub-v2 .hub2-hero-liveline:not([hidden]) {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        min-height: 2.75rem;
        margin: 0 0 1.25rem;
        padding: 0.4rem 0.75rem;
        border: 1px solid color-mix(in oklab, var(--h-text) 22%, transparent);
        border-radius: var(--hub2-r-lg);
        background: color-mix(in oklab, var(--h-bg) 72%, transparent);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        color: var(--h-text);
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
    }
    html.hub-v2 .hub2-hero-liveline:focus-visible {
        outline: 2px solid var(--h-text);
        outline-offset: 2px;
    }
    html.hub-v2 .hub2-ll-team {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        min-width: 0;
    }
    html.hub-v2 .hub2-ll-team--away {
        justify-content: flex-end;
        text-align: right;
    }
    /* Two lines before a name is cut: "Riverside / Wanderers", not "Riverside …". */
    html.hub-v2 .hub2-ll-team > span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow-wrap: anywhere;
    }
    html.hub-v2 .hub2-ll-team .hub2-crest {
        --cs: 20px;
    }
    html.hub-v2 .hub2-ll-score {
        display: inline-flex;
        gap: 0.3rem;
        font: 700 1.05rem/1 var(--hub2-f-num);
        font-variant-numeric: tabular-nums;
    }
    html.hub-v2 .hub2-ll-clock {
        color: var(--h-muted);
        font-size: 0.75rem;
        white-space: nowrap;
    }
    html.hub-v2 .hub2-ll-clock:empty {
        display: none;
    }
}
html.hub-v2 .hub2-hero-title {
    max-width: 13ch;
    margin: 0;
    font: var(--hub2-d-weight) clamp(2.6rem, 7.2vw, 6rem)/var(--hub2-d-lh) var(--hub2-f-display);
    text-wrap: balance;
    color: var(--h-text);
}
html.hub-v2 .hub2-hero:not([data-media="photo"], [data-media="video"]) .hub2-hero-title {
    font-size: clamp(2.5rem, 5.6vw, 4.75rem);
}
html.hub-v2[data-hub-kit="community"] .hub2-hero-title {
    max-width: 15ch;
}
html.hub-v2 .hub2-hero-sub {
    max-width: 44ch;
    margin: 0.9rem 0 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.5;
    color: var(--h-muted);
}
html.hub-v2 .hub2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}
/* Centered or right-aligned copy, as the admin set it, over a photo. */
html.hub-v2 .hub2-hero:is([data-media="photo"], [data-media="video"], [data-media="art"]):is([data-hero-alignment="center"], [data-hero-alignment="right"]) .hub2-hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
}
html.hub-v2 .hub2-hero[data-hero-alignment="right"]:is([data-media="photo"], [data-media="video"], [data-media="art"]) .hub2-hero-copy {
    justify-items: end;
    text-align: right;
}
html.hub-v2 .hub2-hero-side img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--hub2-r-lg);
    object-fit: cover;
    object-position: var(--hub2-hero-focus);
}
html.hub-v2 .hub2-hero-feature {
    display: grid;
    gap: 0.75rem;
}

/* The next kickoff, or the live game, as two sides on the teams' colors. */
html.hub-v2 .hub2-mu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--hub2-r-lg);
    background: var(--hub2-card);
    color: var(--hub2-text);
    text-decoration: none;
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--h-text) 16%, transparent);
}
html.hub-v2 .hub2-mu-side {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.45rem;
    min-width: 0;
    padding: clamp(1rem, 2.4vw, 1.5rem) 0.75rem;
    text-align: center;
}
html.hub-v2 :is(.hub2-mu-side, .hub2-champ).is-team {
    background: var(--tc);
    color: var(--tc-on);
}
/* Initials on a team's own color ring themselves instead of a second circle. */
html.hub-v2 :is(.hub2-mu-side, .hub2-champ).is-team .hub2-mono {
    background: transparent;
    box-shadow: inset 0 0 0 2px currentColor;
    color: inherit;
}
html.hub-v2 .hub2-mu-side .hub2-crest--lg {
    --cs: clamp(3rem, 6vw, 4.5rem);
}
html.hub-v2 .hub2-mu-side b {
    font: var(--hub2-d-weight) clamp(1.05rem, 2vw, 1.4rem)/1.05 var(--hub2-f-display);
    text-wrap: balance;
}
html.hub-v2 .hub2-mu-side small {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
}
html.hub-v2 :is(.hub2-mu-score, .hub2-mu-time) {
    font: 700 clamp(1.9rem, 4vw, 2.75rem)/1 var(--hub2-f-num);
}
html.hub-v2 .hub2-mu-mid {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.25rem;
    padding: 0 clamp(0.6rem, 2vw, 1.4rem);
    border-inline: 1px solid var(--hub2-rule);
    text-align: center;
}
html.hub-v2 .hub2-mu-day {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hub2-text-muted);
}
html.hub-v2 .hub2-mu-foot {
    grid-column: 1 / -1;
    padding: 0.6rem 0.9rem;
    border-top: 1px solid var(--hub2-rule);
    font-size: 0.8rem;
    text-align: center;
    color: var(--hub2-text-muted);
}

/* Champions: the season's winner on their color. */
html.hub-v2 .hub2-champ {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.1rem;
    padding: clamp(1.1rem, 3vw, 1.75rem);
    border-radius: var(--hub2-r-lg);
    background: var(--hub2-card);
    color: var(--hub2-text);
}
html.hub-v2 .hub2-champ small {
    opacity: 0.85;
}
html.hub-v2 .hub2-champ b {
    display: block;
    margin: 0.35rem 0;
    font: var(--hub2-d-weight) clamp(1.75rem, 4vw, 2.9rem)/1 var(--hub2-f-display);
}
html.hub-v2 .hub2-champ a {
    color: inherit;
    text-decoration: none;
}
html.hub-v2 .hub2-champ p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}
html.hub-v2 .hub2-champ--docked {
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
}
html.hub-v2 .hub2-champ--docked b {
    margin: 0.2rem 0;
    font-size: 1.35rem;
}

/* Registration, before a season: the deadline big, then the divisions. */
html.hub-v2 .hub2-hero-card {
    display: grid;
    gap: 0.9rem;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    border: 1.5px solid color-mix(in oklab, var(--h-text) 24%, transparent);
    border-radius: var(--hub2-r-lg);
    background: color-mix(in oklab, var(--h-text) 10%, transparent);
}
html.hub-v2 .hub2-hero-big {
    margin: 0;
    font: var(--hub2-d-weight) clamp(2.1rem, 5vw, 3.5rem)/0.95 var(--hub2-f-num);
}
html.hub-v2 .hub2-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
html.hub-v2 .hub2-hero-chips li {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--h-text) 14%, transparent);
    font-size: 0.8rem;
    font-weight: 600;
}
html.hub-v2 .hub2-hero-champ {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.875rem;
}

/* The dock: today's games under the hero, scrolling sideways on phones. */
html.hub-v2 .hub2-dock {
    max-width: var(--hub-refined-width, 1240px);
    margin-inline: auto;
    padding-bottom: clamp(1.1rem, 3vw, 1.9rem);
}
html.hub-v2 .hub2-dock-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}
html.hub-v2 .hub2-dock-head > span:not(.hub2-live) {
    color: var(--h-muted);
}
html.hub-v2 .hub2-dock-head .hub2-action {
    margin-left: auto;
}
html.hub-v2 .hub2-dock-track {
    display: grid;
    grid-auto-columns: minmax(14.5rem, 18rem);
    grid-auto-flow: column;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
html.hub-v2 .hub2-dock-track > * {
    scroll-snap-align: start;
}
html.hub-v2 .hub2-md {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.75rem 0.9rem 0.7rem;
    border-radius: var(--hub2-r-lg);
    background: var(--hub2-card);
    color: var(--hub2-text);
    text-decoration: none;
}
html.hub-v2 :is(.hub2-md, .hub2-mu):focus-visible {
    outline: 2px solid var(--h-text);
    outline-offset: 2px;
}
html.hub-v2 .hub2-md-status {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hub2-text-muted);
}
html.hub-v2 .hub2-md-team {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
}
html.hub-v2 .hub2-md-team.is-trailing {
    color: var(--hub2-text-muted);
}
html.hub-v2 :is(.hub2-md-name, .hub2-md-venue) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.hub-v2 .hub2-md-venue {
    padding-top: 0.45rem;
    border-top: 1px solid var(--hub2-rule);
    font-size: 0.75rem;
    color: var(--hub2-text-muted);
}
html.hub-v2 .hub2-md--fact small {
    color: var(--hub2-text-muted);
}
html.hub-v2 .hub2-md--fact b {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font: var(--hub2-d-weight) 1.5rem/1.05 var(--hub2-f-display);
}
/* On a photo or video the dock is dark glass, not white cards. */
html.hub-v2 .hub2-hero:is([data-media="photo"], [data-media="video"]) .hub2-md {
    --hub2-text-muted: color-mix(in oklab, var(--hub2-on-dark) 74%, transparent);
    --hub2-rule: color-mix(in oklab, var(--hub2-on-dark) 18%, transparent);
    background: color-mix(in oklab, var(--hub2-dark) 64%, transparent);
    box-shadow: inset 0 0 0 1px var(--hub2-rule);
    backdrop-filter: blur(10px);
    color: var(--hub2-on-dark);
}
html.hub-v2 .hub2-hero[data-hero-alignment="center"] .hub2-dock-track:has(> .hub2-md--fact) {
    justify-content: center;
}
@media (max-width: 900px) {
    html.hub-v2 .hub2-hero-inner:has(> .hub2-hero-feature, > .hub2-hero-side) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Surfaces (the rhythm rules assign these in Phase 2) ---------- */

html.hub-v2 .hub2-surf {
    background: var(--s-bg);
    color: var(--s-text);
}
html.hub-v2 .hub2-surf-paper {
    --s-bg: var(--hub2-page);
    --s-card: var(--hub2-card);
    --s-text: var(--hub2-text);
    --s-muted: var(--hub2-text-muted);
    --s-line: var(--hub2-rule);
    --s-accent: var(--hub2-accent-text);
}
html.hub-v2 .hub2-surf-white {
    --s-bg: var(--hub2-card);
    --s-card: var(--hub2-page);
    --s-text: var(--hub2-text);
    --s-muted: var(--hub2-text-muted);
    --s-line: var(--hub2-rule);
    --s-accent: var(--hub2-accent-text);
}
html.hub-v2 .hub2-surf-tint {
    --s-bg: var(--hub2-tint);
    --s-card: var(--hub2-card);
    --s-text: var(--hub2-text);
    --s-muted: var(--hub2-text-muted);
    --s-line: color-mix(in oklab, var(--hub2-brand) 22%, var(--hub2-tint));
    --s-accent: var(--hub2-accent-text);
}
html.hub-v2[data-hub-kit="floodlight"] .hub2-surf-tint {
    --s-bg: color-mix(in oklab, var(--hub2-brand) 17%, var(--hub2-page));
    --s-line: var(--hub2-rule);
}
html.hub-v2 .hub2-surf-deep {
    --s-bg: var(--hub2-deep);
    --s-card: color-mix(in oklab, #ffffff 7%, var(--hub2-deep));
    --s-text: #ffffff;
    --s-muted: color-mix(in oklab, #ffffff 70%, var(--hub2-deep));
    --s-line: color-mix(in oklab, #ffffff 15%, var(--hub2-deep));
    --s-accent: var(--hub2-brand-text-on-dark);
}
html.hub-v2 .hub2-surf-brand {
    --s-bg: var(--hub2-brand);
    --s-card: color-mix(in oklab, var(--hub2-on-brand) 12%, var(--hub2-brand));
    --s-text: var(--hub2-on-brand);
    --s-muted: color-mix(in oklab, var(--hub2-on-brand) 84%, var(--hub2-brand));
    --s-line: color-mix(in oklab, var(--hub2-on-brand) 26%, var(--hub2-brand));
    --s-accent: var(--hub2-on-brand);
}

/* ---------- Bands: each top-level section on one surface, edge to edge ---------- */

/* The bands space the page: sections meet edge to edge, the first right under
   the hero. Version 1's --hub-refined-gap (padding !important) is zeroed. */
html.hub-v2.hub-page.hub-design-refined .hub-page-wrapper > .container {
    --hub-refined-gap: 0px;
}

/* The band paints its surface across the whole window without widening the
   layout: a spread shadow, clipped to the band's own height. */
html.hub-v2 .hub2-band {
    position: relative;
    width: 100%;
    max-width: var(--hub-refined-width, 1240px);
    margin-inline: auto;
    --hub2-band-pad: clamp(2.25rem, 5vw, 4rem);
    padding-block: var(--hub2-band-pad);
    background: var(--s-bg);
    box-shadow: 0 0 0 100vmax var(--s-bg);
    clip-path: inset(0 -100vmax);
}
/* Two neighbours an admin put on the same background read as one band. */
html.hub-v2 .hub2-band[data-hub2-merge] {
    padding-top: 0;
}

/* Version 1 content sits on light bands as it sat on the page. On
   Floodlight's dark bands it keeps a light card and that card's colors. */
html.hub-v2[data-hub-kit="floodlight"] .hub2-band:not([data-hub2-rebuilt]) {
    --hub-refined-default-background: #ffffff;
    --hub-refined-default-section-padding: clamp(1.25rem, 3vw, 2rem);
}
html.hub-v2[data-hub-kit="floodlight"] .hub2-band:not([data-hub2-rebuilt]) > :is(.hub-block-card, .hub-container-block) {
    color: var(--slms-text);
    --s-bg: var(--slms-surface);
    --s-card: var(--slms-background);
    --s-text: var(--hub-heading, var(--slms-heading));
    --s-muted: var(--hub-muted, var(--slms-muted));
    --s-line: color-mix(in oklab, var(--slms-text) 12%, var(--slms-surface));
    --s-accent: var(--hub2-brand-text);
}

/* A section this phase hides, as the editor sees it. */
html.hub-v2 .hub2-phase-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    font: 600 0.8125rem/1.3 var(--hub2-f-body);
    color: var(--s-muted);
}
html.hub-v2 .hub2-band[data-hub2-hidden-now] > :not(.hub2-phase-note) {
    opacity: 0.5;
}

/* ---------- Section header: context line, title, one action ---------- */

/* The header uses its surface's --s-* colors, else version 1's card colors. */

html.hub-v2 .hub2-sh {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0 0 clamp(1rem, 2.4vw, 1.75rem);
}
html.hub-v2 .hub2-sh--with-action {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem 1.5rem;
}
html.hub-v2 .hub2-eyebrow {
    margin: 0;
    color: var(--s-accent, var(--hub2-brand-text));
}
html.hub-v2 .hub2-title {
    margin: 0;
    font-family: var(--hub2-f-display);
    font-weight: var(--hub2-d-weight);
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: var(--hub2-d-lh);
    text-wrap: balance;
    color: var(--s-text, var(--hub-heading, var(--slms-heading)));
}
/* Sections inside a two-column layout get a step smaller title. */
html.hub-v2 .hub2-sh--child .hub2-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}
html.hub-v2 .hub2-sub {
    margin: 0;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--s-muted, var(--hub-muted, var(--slms-muted)));
}
html.hub-v2 .hub2-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--s-accent, var(--hub2-brand-text));
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--s-text, var(--hub-heading, var(--slms-heading)));
    text-decoration: none;
}

/* ---------- Buttons ---------- */

html.hub-v2 .hub2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--hub2-r-btn);
    font: 700 0.9375rem/1 var(--hub2-f-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
html.hub-v2 .hub2-btn--primary {
    background: var(--hub2-brand);
    color: var(--hub2-on-brand);
}
html.hub-v2 .hub2-btn--ink {
    background: var(--hub2-dark);
    color: var(--hub2-on-dark);
}
/* The band's own text color: version 1's card around a section is dark ink. */
html.hub-v2 .hub2-btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--s-text);
}
html.hub-v2 .hub2-btn:focus-visible,
html.hub-v2 .hub2-action:focus-visible {
    outline: 2px solid var(--s-accent, var(--hub2-brand-text));
    outline-offset: 2px;
}

/* ---------- Crests, monograms and score boxes ---------- */

html.hub-v2 .hub2-crest {
    --cs: 24px;
    display: inline-block;
    flex: none;
    width: var(--cs);
    height: var(--cs);
    object-fit: contain;
}
html.hub-v2 .hub2-crest--md { --cs: 36px; }
html.hub-v2 .hub2-crest--lg { --cs: 52px; }
/* A logo on a dark background (Floodlight, deep and brand bands, the hero, a
   team's own color) sits on a light round chip, so a crest drawn in black or
   navy stays visible instead of melting into the band. Initials keep their
   own circle. */
html.hub-v2 :is(.hub2-surf-deep, .hub2-surf-brand, .hub2-hero, .is-team) img.hub2-crest,
html.hub-v2[data-hub-kit="floodlight"] img.hub2-crest {
    box-sizing: border-box;
    padding: calc(var(--cs) * 0.13);
    border-radius: 50%;
    background: var(--hub2-crest-chip);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.28);
}

/* No logo: initials on its color (--tc, --tc-on from the server), else a tint. */
html.hub-v2 .hub2-mono {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tc, var(--hub2-mono-bg));
    color: var(--tc-on, var(--hub2-mono-fg));
    font: 800 calc(var(--cs) * 0.38)/1 var(--hub2-f-body);
    letter-spacing: -0.02em;
}
html.hub-v2 .hub2-mono--ring {
    background: transparent;
    color: inherit;
    box-shadow: inset 0 0 0 2px currentColor;
}

html.hub-v2 .hub2-sbox {
    display: inline-grid;
    place-items: center;
    justify-self: end;
    min-width: 30px;
    height: 28px;
    padding: 0 6px;
    border-radius: var(--hub2-r);
    font: 700 1.25rem/1 var(--hub2-f-num);
}
html.hub-v2 .hub2-sbox--team {
    background: var(--tc);
    color: var(--tc-on);
}

html.hub-v2 .hub2-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub2-live);
}
html.hub-v2 .hub2-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: hub2-pulse 1.6s ease-in-out infinite;
}
@keyframes hub2-pulse {
    50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
    html.hub-v2 .hub2-live::before { animation: none; }
}

/* ---------- Rebuilt blocks (hub_design.REBUILT) ---------- */

/* A rebuilt block sits straight on its band, without version 1's card. */
html.hub-v2 .hub2-band[data-hub2-rebuilt] > :is(.hub-block-card, .hub-container-block) {
    --hub-refined-background: transparent;
    --hub-refined-section-padding: 0;
    --hub-refined-block-border: 0;
}

html.hub-v2 .hub2-sh-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem 1.5rem;
    margin-bottom: clamp(1rem, 2.4vw, 1.75rem);
}
html.hub-v2 .hub2-sh-row .hub2-sh {
    margin-bottom: 0;
}
html.hub-v2 .hub2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
}
html.hub-v2 .hub2-empty {
    margin: 0;
    color: var(--s-muted);
}

/* Schedule & Results: scoreboard rows, live games and results first. */
html.hub-v2 .hub2-boards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: clamp(1rem, 2.4vw, 1.75rem);
}
html.hub-v2 .hub2-board {
    overflow: hidden;
    background: var(--s-card);
    border: 1px solid var(--s-line);
    border-radius: var(--hub2-r-lg);
}
html.hub-v2 .hub2-board-h {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem 0.7rem;
}
/* A later day in the same board: a quiet strip with its date. */
html.hub-v2 .hub2-board-h:not(:first-child) {
    padding-block: 0.5rem;
    border-top: 1px solid var(--s-line);
    background: color-mix(in oklab, var(--s-text) 4%, transparent);
}
html.hub-v2 .hub2-board-h:not(:first-child) > span {
    margin-left: 0;
}
html.hub-v2 .hub2-board-h b {
    font: var(--hub2-d-weight) 1.25rem/1 var(--hub2-f-display);
    color: var(--s-text);
}
html.hub-v2 .hub2-board-h > span {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--s-muted);
}
/* Each game rules its own bottom edge; the last one tucks under the board's border. */
html.hub-v2 .hub2-games {
    list-style: none;
    margin: 0 0 -1px;
    padding: 0;
    border-top: 1px solid var(--s-line);
}
html.hub-v2 .hub2-games li {
    border-bottom: 1px solid var(--s-line);
}
/* One board across a wide band lays its games out in columns. */
/* One board, or live games over results and next up: games side by side. */
html.hub-v2 .hub2-boards[data-boards="3"] > .hub2-board--live {
    grid-column: 1 / -1;
}
html.hub-v2 :is(.hub2-boards[data-boards="1"], .hub2-boards[data-boards="3"] > .hub2-board--live) .hub2-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr));
}
html.hub-v2 :is(.hub2-boards[data-boards="1"], .hub2-boards[data-boards="3"] > .hub2-board--live) .hub2-games li {
    box-shadow: -1px 0 0 var(--s-line);
}
html.hub-v2 .hub2-game {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.75rem 1.1rem;
    color: inherit;
    text-decoration: none;
}
html.hub-v2 .hub2-game:hover {
    background: color-mix(in oklab, var(--s-text) 4%, transparent);
}
html.hub-v2 .hub2-game:focus-visible {
    outline: 2px solid var(--s-accent);
    outline-offset: -2px;
}
html.hub-v2 .hub2-game-meta {
    display: grid;
    gap: 2px;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--s-muted);
}
html.hub-v2 .hub2-game-meta b {
    font-size: 0.8125rem;
    color: var(--s-text);
}
html.hub-v2 .hub2-game-venue > span {
    display: block;
}
html.hub-v2 .hub2-game-teams {
    display: grid;
    gap: 0.35rem;
}
html.hub-v2 .hub2-gt {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--s-muted);
}
html.hub-v2 .hub2-gt.is-strong {
    font-weight: 700;
    color: var(--s-text);
}

/* Standings */
html.hub-v2 .hub2-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1rem;
    padding: 3px;
    border-radius: calc(var(--hub2-r) + 3px);
    background: color-mix(in oklab, var(--s-text) 7%, transparent);
}
html.hub-v2 .hub2-tabs [role="tab"] {
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: var(--hub2-r);
    background: transparent;
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--s-muted);
    cursor: pointer;
}
html.hub-v2 .hub2-tabs [role="tab"][aria-selected="true"] {
    background: var(--s-bg);
    color: var(--s-text);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.14);
}
html.hub-v2 .hub2-standings,
html.hub-v2 .hub2-board {
    container-type: inline-size;
}
html.hub-v2 .hub2-table-wrap {
    overflow-x: auto;
}
html.hub-v2 .hub2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--s-text);
}
html.hub-v2 .hub2-table th {
    padding: 0 0.4rem 0.65rem;
    border-bottom: 2px solid var(--s-text);
    text-align: center;
    white-space: nowrap;
    color: var(--s-muted);
}
html.hub-v2 .hub2-table td {
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid var(--s-line);
    text-align: center;
    white-space: nowrap;
}
html.hub-v2 .hub2-table .hub2-team {
    text-align: left;
}
html.hub-v2 .hub2-table td.hub2-pos {
    width: 2.2rem;
    font-weight: 700;
    color: var(--s-muted);
}
html.hub-v2 .hub2-table tbody tr:first-child td.hub2-pos {
    color: var(--s-accent);
}
html.hub-v2 .hub2-table .hub2-team > :is(a, span) {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}
html.hub-v2 .hub2-table .hub2-team a:hover .hub2-team-name {
    text-decoration: underline;
}
html.hub-v2 .hub2-table .hub2-col--points b {
    font: 700 1.1rem/1 var(--hub2-f-num);
}
html.hub-v2 .hub2-table tr.is-cut td {
    border-bottom: 2px dashed var(--s-accent);
}
html.hub-v2 .hub2-table-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-table-note i {
    width: 1.4rem;
    border-top: 2px dashed var(--s-accent);
}
html.hub-v2 .hub2-pips {
    display: inline-flex;
    gap: 3px;
}
html.hub-v2 .hub2-pip {
    width: 19px;
    height: 19px;
    border-radius: 4px;
    font: 700 0.625rem/19px var(--hub2-f-body);
    text-align: center;
}
html.hub-v2 .hub2-pip--w {
    background: var(--hub2-brand);
    color: var(--hub2-on-brand);
}
html.hub-v2 :is(.hub2-pip--d, .hub2-pip--t) {
    box-shadow: inset 0 0 0 1.5px var(--s-line);
    color: var(--s-muted);
}
html.hub-v2 :is(.hub2-pip--l, .hub2-pip--otl) {
    background: color-mix(in oklab, var(--s-text) 12%, transparent);
    color: var(--s-muted);
}
html.hub-v2[data-hub-kit="community"] .hub2-pip {
    border-radius: 50%;
}

/* Leaders: #1 with the big number, then ranks 2 to 5. */
html.hub-v2 .hub2-leaders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
}
html.hub-v2 .hub2-race-title {
    margin: 0 0 0.5rem;
    color: var(--s-accent);
}
html.hub-v2 :is(.hub2-race-top, .hub2-race-list button) {
    display: grid;
    align-items: center;
    width: 100%;
    border: 0;
    background: none;
    color: var(--s-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
html.hub-v2 :is(.hub2-race-top, .hub2-race-list button):focus-visible {
    outline: 2px solid var(--s-accent);
    outline-offset: 2px;
}
/* button.: the reset above outranks a bare class, which hid this rule. */
html.hub-v2 button.hub2-race-top {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 0.4rem 0 1rem;
    border-bottom: 2px solid var(--s-text);
}
html.hub-v2 .hub2-race-who b {
    display: block;
    font: var(--hub2-d-weight) 1.35rem/1.05 var(--hub2-f-display);
    color: var(--s-text);
}
html.hub-v2 .hub2-race-who span {
    font-size: 0.8rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-race-num {
    font: 700 3rem/0.9 var(--hub2-f-num);
    color: var(--s-accent);
}
html.hub-v2 .hub2-race-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
html.hub-v2 .hub2-race-list button {
    grid-template-columns: 1.2rem 24px minmax(0, 1fr) auto;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--s-line);
}
html.hub-v2 .hub2-race-rank {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--s-muted);
}
html.hub-v2 .hub2-race-list .hub2-race-who b {
    font: 600 0.9rem/1.2 var(--hub2-f-body);
    text-transform: none;
}
html.hub-v2 .hub2-race-val {
    font: 700 1.15rem/1 var(--hub2-f-num);
}
html.hub-v2 .hub2-headshot {
    border-radius: 50%;
    object-fit: cover;
}
/* Leaders across a full-width band: four races read two by two, then four
   across; one race puts its leader beside ranks 2 to 5 instead of a thin
   column with an empty page beside it. */
@media (min-width: 40rem) {
    html.hub-v2 .hub2-band > .hub-block-card .hub2-leaders[data-boards="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 56rem) {
    html.hub-v2 .hub2-band > .hub-block-card .hub2-leaders[data-boards="1"] .hub2-race {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(2rem, 5vw, 4rem);
        align-items: start;
    }
    html.hub-v2 .hub2-band > .hub-block-card .hub2-leaders[data-boards="1"] :is(.hub2-race-title, .hub2-table-note) {
        grid-column: 1 / -1;
    }
    html.hub-v2 .hub2-band > .hub-block-card .hub2-leaders[data-boards="1"] button.hub2-race-top {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 1.1rem;
        padding: 0.75rem 0 1.25rem;
    }
    html.hub-v2 .hub2-band > .hub-block-card .hub2-leaders[data-boards="1"] .hub2-race-top .hub2-crest--lg {
        --cs: 4.5rem;
    }
    html.hub-v2 .hub2-band > .hub-block-card .hub2-leaders[data-boards="1"] .hub2-race-top .hub2-race-who b {
        font-size: 1.75rem;
    }
    html.hub-v2 .hub2-band > .hub-block-card .hub2-leaders[data-boards="1"] .hub2-race-num {
        font-size: 4.25rem;
    }
}
@media (min-width: 75rem) {
    html.hub-v2 .hub2-band > .hub-block-card .hub2-leaders[data-boards="4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* League Highlights: the season's counts as big numbers. */
html.hub-v2 .hub2-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
    gap: 1.5rem clamp(1.25rem, 4vw, 3rem);
    margin: 0;
}
html.hub-v2 .hub2-facts > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.4rem;
    padding-top: 0.9rem;
    border-top: 2px solid var(--s-line);
}
html.hub-v2 .hub2-facts dd {
    margin: 0;
    font: 700 clamp(3rem, 7vw, 5.5rem)/0.85 var(--hub2-f-num);
    color: var(--s-text);
}
html.hub-v2 .hub2-facts dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--s-muted);
}
/* Phones: even rows, so four numbers never leave one alone on a row. */
@media (max-width: 640px) {
    html.hub-v2 .hub2-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html.hub-v2 .hub2-facts:has(> :nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Awards: the winner's crest or photo on their team's color, then the stats. */
html.hub-v2 .hub2-awards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
    container-type: inline-size;
}
html.hub-v2 .hub2-award {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: center;
}
html.hub-v2 .hub2-award-art {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(6.5rem, 14vw, 10rem);
    aspect-ratio: 1;
    border-radius: var(--hub2-r-lg);
    background: var(--s-card);
}
html.hub-v2 .hub2-award-art.is-team {
    background: var(--tc);
    color: var(--tc-on);
}
html.hub-v2 .hub2-crest--xl {
    --cs: clamp(3.5rem, 8vw, 6rem);
}
/* Initials on the team's own square need no second circle of that color. */
html.hub-v2 .hub2-award-art.is-team .hub2-mono {
    background: transparent;
}
/* No photo: the winner's number, as it reads on their shirt. */
html.hub-v2 .hub2-award-num {
    font: var(--hub2-d-weight) clamp(3.75rem, 9vw, 6.5rem)/1 var(--hub2-f-num);
    letter-spacing: -0.03em;
}
html.hub-v2 .hub2-award-photo {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
html.hub-v2 .hub2-award-chip {
    position: absolute;
    left: 0.6rem;
    bottom: -0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--hub2-r);
    background: var(--s-text);
    color: var(--s-bg);
    font: 700 0.75rem/1 var(--hub2-f-body);
    white-space: nowrap;
}
html.hub-v2 .hub2-award-title {
    margin: 0 0 0.4rem;
    color: var(--s-accent);
}
html.hub-v2 .hub2-award-name {
    margin: 0;
    font: var(--hub2-d-weight) clamp(1.9rem, 4vw, 3.25rem)/0.95 var(--hub2-f-display);
    text-wrap: balance;
    color: var(--s-text);
}
html.hub-v2 .hub2-awards[data-count="1"] .hub2-award-name {
    font-size: clamp(2.25rem, 5vw, 4rem);
}
html.hub-v2 .hub2-award-name a {
    color: inherit;
    text-decoration: none;
}
html.hub-v2 .hub2-award-name a:hover {
    text-decoration: underline;
}
html.hub-v2 .hub2-award-team {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-award-desc {
    max-width: 52ch;
    margin: 0.75rem 0 0;
    color: var(--s-text);
}
html.hub-v2 .hub2-statline {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    margin: 1rem 0 0;
    border-top: 1px solid var(--s-line);
}
html.hub-v2 .hub2-statline > div {
    padding: 0.75rem 1.1rem 0 0;
    margin-right: 1.1rem;
    border-right: 1px solid var(--s-line);
}
html.hub-v2 .hub2-statline > div:last-child {
    margin-right: 0;
    border-right: 0;
}
html.hub-v2 .hub2-statline dt {
    color: var(--s-muted);
}
html.hub-v2 .hub2-statline dd {
    margin: 0.35rem 0 0;
    font: 700 1.75rem/1.05 var(--hub2-f-num);
    white-space: nowrap;
    color: var(--s-text);
}
html.hub-v2 .hub2-statline span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--s-muted);
}
@container (max-width: 30rem) {
    /* Stacked, with room for the week chip that hangs below the art. */
    html.hub-v2 .hub2-award {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    html.hub-v2 .hub2-award-art {
        width: 7rem;
    }
}

/* Meet the Teams: a wall of crests, each tile tinted with its team's color. */
html.hub-v2 .hub2-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
html.hub-v2 .hub2-wall--detailed {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
/* A full-width wall divides its clubs into even rows (--wall-cols from the
   server: eight clubs read 4 + 4, never 6 + 2). A short wall keeps tiles to
   18rem instead of stretching three clubs across the page. */
@media (min-width: 48rem) {
    html.hub-v2 .hub2-band > .hub-block-card .hub2-wall:not(.hub2-wall--detailed) {
        --wall-n: var(--wall-cols-md, 4);
        grid-template-columns: repeat(var(--wall-n), minmax(0, 1fr));
        max-width: calc(var(--wall-n) * 18rem + (var(--wall-n) - 1) * 0.65rem);
    }
}
@media (min-width: 75rem) {
    html.hub-v2 .hub2-band > .hub-block-card .hub2-wall:not(.hub2-wall--detailed) {
        --wall-n: var(--wall-cols, 6);
    }
}
html.hub-v2 .hub2-wall-group + .hub2-wall-group {
    margin-top: 1.75rem;
}
html.hub-v2 .hub2-tile {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.45rem;
    padding: 1.25rem 0.75rem 1rem;
    border: 1px solid var(--s-line);
    border-radius: var(--hub2-r-lg);
    background: var(--s-card);
    text-align: center;
}
html.hub-v2 .hub2-wall--detailed .hub2-tile {
    justify-items: start;
    padding: 1.25rem;
    text-align: left;
}
html.hub-v2 .hub2-tile.is-team {
    border-color: color-mix(in oklab, var(--tc) 34%, var(--s-line));
    background: color-mix(in oklab, var(--tc) 14%, var(--s-card));
}
html.hub-v2 .hub2-tile:hover {
    border-color: var(--s-muted);
}
html.hub-v2 .hub2-tile-name {
    margin: 0.2rem 0 0;
    font: 700 0.9375rem/1.2 var(--hub2-f-body);
    text-wrap: balance;
}
/* The team's name links the whole tile; the team site link sits above it. */
html.hub-v2 .hub2-tile-name a {
    color: var(--s-text);
    text-decoration: none;
}
html.hub-v2 .hub2-tile-name a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
html.hub-v2 .hub2-tile-name a:focus-visible {
    outline: none;
}
html.hub-v2 .hub2-tile-name a:focus-visible::after {
    outline: 2px solid var(--s-accent);
    outline-offset: 2px;
}
html.hub-v2 :is(.hub2-tile-meta, .hub2-tile-facts) {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-tile-meta {
    font-weight: 600;
}
html.hub-v2 .hub2-tile-facts span {
    display: block;
}
html.hub-v2 .hub2-tile-bio {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--s-text);
}
html.hub-v2 .hub2-tile-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}
html.hub-v2 .hub2-tile-roster li {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--s-text) 8%, transparent);
    font-size: 0.75rem;
}
html.hub-v2 .hub2-tile-site {
    position: relative;
    z-index: 1;
    margin-top: 0.35rem;
}

/* Countdown: scoreboard digits beside the title and the moment in words. */
html.hub-v2 .hub2-count-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}
html.hub-v2 .hub2-count-row .hub2-sh {
    margin-bottom: 0;
}
html.hub-v2 .hub2-count-when {
    margin: 0.6rem 0 0;
    font-weight: 600;
    color: var(--s-text);
}
html.hub-v2 .hub2-count {
    display: flex;
    gap: 0.5rem;
}
html.hub-v2 .hub2-count > div {
    min-width: clamp(4.75rem, 10vw, 7rem);
    padding: 1rem 0.9rem 0.75rem;
    border: 1px solid var(--s-line);
    border-radius: var(--hub2-r-lg);
    background: var(--s-card);
    text-align: center;
}
html.hub-v2 .hub2-count b {
    display: block;
    font: 700 clamp(2.75rem, 6vw, 4.25rem)/0.9 var(--hub2-f-num);
    color: var(--s-text);
}
html.hub-v2 .hub2-count span {
    display: block;
    margin-top: 0.5rem;
    color: var(--s-muted);
}
@media (max-width: 640px) {
    html.hub-v2 .hub2-count {
        width: 100%;
    }
    html.hub-v2 .hub2-count > div {
        flex: 1;
        min-width: 0;
    }
}

/* Registration and Call to Action: the big title on a loud band. */
html.hub-v2 .hub2-title--xl {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}
html.hub-v2 .hub2-reg {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
html.hub-v2 .hub2-reg:not(:has(> .hub2-reg-card, > .hub2-reg-media)) {
    grid-template-columns: minmax(0, 1fr);
}
html.hub-v2 .hub2-reg--image-left .hub2-reg-media {
    order: -1;
}
html.hub-v2 .hub2-reg-copy .hub2-eyebrow {
    margin-bottom: 0.6rem;
}
html.hub-v2 .hub2-reg-copy .hub2-sub {
    margin-top: 0.9rem;
}
html.hub-v2 .hub2-reg-info {
    margin: 0.6rem 0 0;
    color: var(--s-muted);
}
/* On the brand band the button turns dark, so it never matches the band. */
html.hub-v2 .hub2-surf-brand :is(.hub2-reg, .hub2-cta) .hub2-btn--primary {
    background: var(--hub2-dark);
    color: var(--hub2-on-dark);
}
html.hub-v2 .hub2-reg-card {
    --h-text: var(--s-text);
    --h-muted: var(--s-muted);
    display: grid;
    gap: 0.75rem;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    border: 1.5px solid color-mix(in oklab, var(--s-text) 24%, transparent);
    border-radius: var(--hub2-r-lg);
    background: color-mix(in oklab, var(--s-text) 8%, transparent);
    color: var(--s-text);
}
html.hub-v2 .hub2-reg-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
html.hub-v2 .hub2-reg-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid color-mix(in oklab, var(--s-text) 20%, transparent);
}
html.hub-v2 .hub2-reg-list a {
    font-weight: 700;
    color: inherit;
}
html.hub-v2 .hub2-reg-list span {
    font-size: 0.85rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-reg-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--hub2-r-lg);
    object-fit: cover;
}
/* Image & Text with only a photo: the photo is the section, whole unless set to fill. */
html.hub-v2 .hub2-reg--photo {
    grid-template-columns: minmax(0, 1fr);
}
html.hub-v2 .hub2-reg--photo > .hub2-reg-copy:not(:has([data-setting-key]:not([hidden]))) {
    display: none;
}
html.hub-v2 .hub2-reg--photo [data-fit="cover"] img {
    aspect-ratio: 16 / 9;
}
html.hub-v2 .hub2-reg--photo :not([data-fit="cover"]) > img {
    width: auto;
    max-width: 100%;
    max-height: 42rem;
    margin-inline: auto;
    aspect-ratio: auto;
}
html.hub-v2 .hub2-cta {
    display: grid;
    justify-items: center;
    text-align: center;
}
html.hub-v2 .hub2-cta[data-align="left"] {
    justify-items: start;
    text-align: left;
}
html.hub-v2 .hub2-cta[data-align="right"] {
    justify-items: end;
    text-align: right;
}
html.hub-v2 .hub2-cta .hub2-sub {
    margin-top: 0.9rem;
}
/* A photo behind the Call to Action fills its band, as the hero's does. */
html.hub-v2 .hub2-band {
    isolation: isolate;
}
html.hub-v2 .hub2-band:has(.hub2-cta-photo) > .hub-block-card {
    position: static;
}
html.hub-v2 .hub2-band:has(> .hub-block-card .hub2-cta-photo) {
    --s-text: #ffffff;
    --s-muted: color-mix(in oklab, #ffffff 84%, var(--hub2-dark));
}

/* News: the lead story with its photo, the rest stacked beside it. */
html.hub-v2 .hub2-news {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
html.hub-v2 .hub2-news[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
}
html.hub-v2 .hub2-news-side {
    display: grid;
    gap: 1.1rem;
}
html.hub-v2 .hub2-news-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--s-line);
}
html.hub-v2 .hub2-news-item .hub2-news-img {
    order: 1;
    width: 6.5rem;
}
html.hub-v2 .hub2-news-img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--hub2-r);
    object-fit: cover;
}
html.hub-v2 .hub2-news-lead .hub2-news-img img {
    border-radius: var(--hub2-r-lg);
}
html.hub-v2 .hub2-news-lead .hub2-news-img {
    display: block;
    margin-bottom: 1rem;
}
html.hub-v2 .hub2-dateline {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--s-accent);
}
html.hub-v2 .hub2-news-title {
    margin: 0;
    font: 700 1.05rem/1.3 var(--hub2-f-body);
    text-wrap: balance;
}
html.hub-v2 .hub2-news-lead .hub2-news-title {
    font: var(--hub2-d-weight) clamp(1.6rem, 3vw, 2.25rem)/1.02 var(--hub2-f-display);
    letter-spacing: var(--hub2-d-track);
    text-transform: var(--hub2-d-case);
}
html.hub-v2 :is(.hub2-news-title, .hub2-feat-title) a {
    color: var(--s-text);
    text-decoration: none;
}
html.hub-v2 :is(.hub2-news-title, .hub2-feat-title) a:hover {
    text-decoration: underline;
}
html.hub-v2 .hub2-news-dek {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-news-lead .hub2-news-dek {
    font-size: 1rem;
}

/* Feature Highlights: an icon tile or a big number beside each point. */
html.hub-v2 .hub2-feats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.5rem clamp(1.5rem, 4vw, 2.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
html.hub-v2 .hub2-feat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}
/* Four or eight points or profiles: four across on a wide page, else two by two. */
html.hub-v2 :is(.hub2-feats, .hub2-wall--detailed):is([data-count="4"], [data-count="8"]) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
@media (min-width: 75rem) {
    html.hub-v2 .hub2-band > .hub-block-card :is(.hub2-feats, .hub2-wall--detailed):is([data-count="4"], [data-count="8"]) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
html.hub-v2 .hub2-feat > div:only-child {
    grid-column: 1 / -1;
}
html.hub-v2 .hub2-feat-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--hub2-r);
    background: color-mix(in oklab, var(--s-accent) 14%, transparent);
    font-size: 1.4rem;
    color: var(--s-accent);
}
html.hub-v2 .hub2-feat-num {
    min-width: 2.75rem;
    font: 700 2.25rem/1 var(--hub2-f-num);
    color: var(--s-accent);
}
html.hub-v2 .hub2-feat-title {
    margin: 0.15rem 0 0.35rem;
    font: 700 1.05rem/1.25 var(--hub2-f-body);
    color: var(--s-text);
}
html.hub-v2 .hub2-feat p {
    margin: 0;
    font-size: 0.925rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-feat .hub2-eyebrow {
    font-size: 0.75rem;
    color: var(--s-accent);
}
/* The photo variant keeps the shared carousel; its legacy tokens read this band. */
html.hub-v2 .hub-fc {
    --hub-text: var(--s-text);
    --hub-text-muted: var(--s-muted);
    --hub-surface: var(--s-card);
    --hub-surface-alt: var(--s-bg);
    --hub-fc-accent: var(--s-accent);
    --hub-fc-line: var(--s-line);
    --hub-fc-radius: var(--hub2-r-lg);
    font-family: var(--hub2-f-body);
}
html.hub-v2 .hub-fc__title {
    font-family: var(--hub2-f-body);
}
html.hub-v2 .hub-fc__eyebrow {
    font: 700 0.75rem/1.2 var(--hub2-f-body);
    letter-spacing: var(--hub2-e-track);
    text-transform: var(--hub2-e-case);
}
html.hub-v2 .hub-fc__btn {
    border-radius: var(--hub2-r-btn);
}
/* Cards on a brand band keep the kit's checked text pair; controls use the band. */
html.hub-v2 .hub2-surf-brand .hub-fc__card {
    --hub-surface: var(--hub2-card);
    --hub-text: var(--hub2-text);
    --hub-text-muted: var(--hub2-text-muted);
    --hub-fc-accent: var(--hub2-accent-text);
    --hub-fc-line: var(--hub2-rule);
}

@media (max-width: 900px) {
    html.hub-v2 :is(.hub2-reg, .hub2-news) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Text, FAQ answers and Image & Text bodies: the admin's own words. */
html.hub-v2 .hub2-prose {
    max-width: 68ch;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--s-text);
}
html.hub-v2 .hub2-prose > :first-child {
    margin-top: 0;
}
html.hub-v2 .hub2-prose a {
    color: inherit;
    text-decoration-color: var(--s-accent);
    text-underline-offset: 3px;
}
html.hub-v2 .hub2-prose :is(h2, h3, h4) {
    margin: 1.5rem 0 0.5rem;
    font: 700 1.2rem/1.3 var(--hub2-f-body);
    color: var(--s-text);
}
/* Bullets are ticks in the accent color. */
html.hub-v2 .hub2-bullets {
    padding-left: 0;
    list-style: none;
}
html.hub-v2 .hub2-bullets li {
    position: relative;
    padding-left: 1.6rem;
}
html.hub-v2 .hub2-bullets li::before {
    content: "";
    position: absolute;
    top: 0.3em;
    left: 0.3rem;
    width: 0.4rem;
    height: 0.75rem;
    border: solid var(--s-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
html.hub-v2 :is(.hub2-text, .hub2-reg)[data-align="center"] :is(.hub2-reg-copy, .hub2-prose) {
    margin-inline: auto;
    text-align: center;
}
html.hub-v2 :is(.hub2-text, .hub2-reg)[data-align="right"] :is(.hub2-reg-copy, .hub2-prose) {
    margin-left: auto;
    text-align: right;
}
html.hub-v2 .hub2-reg[data-align="center"] .hub2-hero-actions {
    justify-content: center;
}
html.hub-v2 .hub2-reg-media--empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border: 1px dashed var(--s-line);
    border-radius: var(--hub2-r-lg);
    font-size: 2rem;
    color: var(--s-muted);
}

/* FAQ: questions that open in place, numbered down the left. */
html.hub-v2 .hub2-faq {
    border-top: 1px solid var(--s-line);
}
html.hub-v2 .hub2-faq details {
    border-bottom: 1px solid var(--s-line);
}
html.hub-v2 .hub2-faq summary {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.05rem 0;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--s-text);
    list-style: none;
    cursor: pointer;
}
html.hub-v2 .hub2-faq summary::-webkit-details-marker {
    display: none;
}
html.hub-v2 .hub2-faq summary::after {
    content: "+";
    margin-left: auto;
    font: 400 1.5rem/1 var(--hub2-f-body);
    color: var(--s-accent);
}
html.hub-v2 .hub2-faq details[open] summary::after {
    content: "\2212";
}
html.hub-v2 .hub2-faq summary:focus-visible {
    outline: 2px solid var(--s-accent);
    outline-offset: 2px;
}
html.hub-v2 .hub2-faq-n {
    min-width: 1.6rem;
    font: 700 0.9rem/1 var(--hub2-f-num);
    color: var(--s-muted);
}
html.hub-v2 .hub2-faq-a {
    padding: 0 0 1.1rem 2.6rem;
    font-size: 1rem;
}

/* Event Calendar: league events share the schedule's rows. */
html.hub-v2 :is(.hub2-event, .hub2-game-teams) {
    display: grid;
    gap: 0.35rem;
}
html.hub-v2 .hub2-event b {
    color: var(--s-text);
}
html.hub-v2 :is(.hub2-event-kind, .hub2-event-venue, .hub2-event > span:not(.hub2-event-kind), .hub2-gt small) {
    font-size: 0.8rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-event-kind {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}
html.hub-v2 .hub2-game.is-canceled b {
    text-decoration: line-through;
}

/* Announcement: a notice with a bar in its urgency's color. */
html.hub-v2 .hub2-notices {
    display: grid;
    gap: 0.75rem;
}
html.hub-v2 .hub2-notice {
    --s-accent: var(--n, var(--hub2-accent-text));
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--s-line);
    border-left: 4px solid var(--s-accent);
    border-radius: var(--hub2-r-lg);
    background: var(--s-card);
}
html.hub-v2 .hub2-notice[data-urgency="success"] {
    --n: #15803d;
}
html.hub-v2 .hub2-notice[data-urgency="warning"] {
    --n: #b45309;
}
html.hub-v2 .hub2-notice:is([data-urgency="alert"], [data-urgency="danger"]) {
    --n: var(--hub2-live);
}
html.hub-v2 .hub2-notice-title {
    margin: 0 0 0.3rem;
    font: 700 1.15rem/1.3 var(--hub2-f-body);
    color: var(--s-text);
}
html.hub-v2 .hub2-notice p {
    margin: 0 0 0.5rem;
    color: var(--s-muted);
}
html.hub-v2 .hub2-notice-img {
    width: 4.5rem;
    aspect-ratio: 1;
    border-radius: var(--hub2-r);
    object-fit: cover;
}

/* Sized by the space they get, so a half-width column reads like a phone. */
@container (max-width: 380px) {
    html.hub-v2 .hub2-game {
        grid-template-columns: 4.75rem minmax(0, 1fr);
        gap: 0.7rem;
        padding: 0.7rem 0.9rem;
    }
}
@container (max-width: 640px) {
    /* Narrow tables keep the record columns and drop the detail ones; names never break. */
    html.hub-v2 :is(.hub2-col--goals-for, .hub2-col--goals-against, .hub2-col--goal-difference, .hub2-col--form) {
        display: none;
    }
    html.hub-v2 .hub2-table :is(th, td) {
        padding-inline: 0.3rem;
    }
}

/* ---------- Motion: hover and press, tab changes, a score that just changed
   (hub-v2.js). Movement only without prefers-reduced-motion. ---------- */
html.hub-v2 .hub2-btn:hover {
    filter: brightness(1.08);
}
html.hub-v2 .hub2-btn--ghost:hover {
    background: color-mix(in oklab, currentColor 10%, transparent);
}
html.hub-v2 .hub2-action:hover {
    color: var(--s-accent);
}
html.hub-v2 .hub2-news-img {
    overflow: hidden;
    border-radius: var(--hub2-r);
}
html.hub-v2 .hub2-news-lead .hub2-news-img {
    border-radius: var(--hub2-r-lg);
}
html.hub-v2 [data-hub2-count] {
    font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: no-preference) {
    html.hub-v2 :is(.hub2-btn, .hub2-action, .hub2-tabs [role="tab"], .hub2-game, .hub2-tile, .hub2-news-img img) {
        transition: transform 0.25s var(--slms-ease-out), box-shadow 0.25s var(--slms-ease-out), background-color 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
    }
    html.hub-v2 .hub2-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px -12px color-mix(in oklab, var(--hub2-dark) 70%, transparent);
    }
    html.hub-v2 .hub2-btn:active {
        transform: translateY(1px);
        box-shadow: none;
    }
    html.hub-v2 .hub2-tile:has(.hub2-tile-name a):hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px -22px color-mix(in oklab, var(--hub2-dark) 60%, transparent);
    }
    html.hub-v2 :is(.hub2-news-lead, .hub2-news-item):hover .hub2-news-img img {
        transform: scale(1.04);
    }
    html.hub-v2 [role="tabpanel"]:not([hidden]) {
        animation: hub2-in 0.35s var(--slms-ease-out);
    }
    html.hub-v2 .is-hub2-new {
        animation: hub2-pop 0.9s var(--slms-ease-out);
    }
}
@keyframes hub2-in {
    from { opacity: 0; transform: translateY(6px); }
}
@keyframes hub2-pop {
    25% { transform: scale(1.35); }
}
