:root {
    --bg: #edf3fa;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: #ffffff;
    --ink: #10233d;
    --muted: #5d6b7f;
    --navy: #123761;
    --navy-deep: #091d37;
    --gold: #a11f38;
    --gold-soft: rgba(161, 31, 56, 0.16);
    --red-clay: #7a1429;
    --line: rgba(18, 55, 97, 0.12);
    --shadow: 0 20px 48px rgba(9, 29, 55, 0.1);
    --accent-red: #a11f38;
    --accent-red-deep: #7a1429;
    --accent-red-soft: rgba(161, 31, 56, 0.14);
    --radius-xl: 2rem;
    --radius-lg: 1.35rem;
    --radius-md: 0.95rem;
    --page-gutter: clamp(1.15rem, 2vw, 3.25rem);
    --section-gap: clamp(1.15rem, 1.4vw, 2.35rem);
    --panel-pad: clamp(1.15rem, 1.1vw + 0.9rem, 2.2rem);
    --card-min: clamp(16rem, 18vw, 26rem);
    --card-min-tight: clamp(12.5rem, 13vw, 19rem);
    --viewer-width: 100vw;
    --viewer-height: 100vh;
    --desktop-scale: 1;
    --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    font-size: clamp(16px, calc(17px * var(--desktop-scale)), 48px);
    margin: 0;
    max-width: 100%;
    min-height: 100%;
    width: 100%;
    overflow-x: clip;
}

body {
    background:
        radial-gradient(circle at top left, rgba(18, 55, 97, 0.16), transparent 24rem),
        radial-gradient(circle at top right, rgba(163, 38, 63, 0.14), transparent 24rem),
        linear-gradient(180deg, #f5f8fd 0%, #eef3fa 50%, #e8eef7 100%);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: var(--viewer-height);
    min-width: 0;
    overflow-x: clip;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 180ms ease;
}

a:hover {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 400;
    line-height: 1;
}

p {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: max(100vh, var(--viewer-height));
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    width: 100%;
}

.site-main {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    padding: 0 var(--page-gutter) 4.5rem;
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(20px);
    background: linear-gradient(180deg, rgba(9, 29, 55, 0.97), rgba(15, 41, 74, 0.92));
    border-bottom: 1px solid rgba(163, 38, 63, 0.22);
    box-shadow: 0 14px 30px rgba(9, 29, 55, 0.22);
    width: 100%;
}

.site-header__bar {
    align-items: center;
    display: flex;
    gap: clamp(0.75rem, 1vw, 1.5rem);
    justify-content: space-between;
    margin: 0 auto;
    max-width: none;
    padding: 1.1rem var(--page-gutter) 0.9rem;
    width: 100%;
}

.brandmark {
    color: #fff6e7;
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.brandmark__image {
    display: none;
}

.brandmark__eyebrow,
.eyebrow,
.site-footer__eyebrow {
    color: var(--accent-red);
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.25vw + 0.92rem, 1.3rem);
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.brandmark__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.4rem + 2vw, 4.6rem);
    letter-spacing: 0.04rem;
    line-height: 0.95;
    text-shadow: 0 6px 18px rgba(7, 20, 40, 0.2);
    text-transform: uppercase;
}

.page-intro h1,
.hero-panel h1,
.team-hero h1,
.auth-shell h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 5.8rem);
    letter-spacing: 0.04rem;
    line-height: 0.95;
    text-transform: uppercase;
}

.site-header__actions {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: flex-end;
    min-width: 0;
}

.inline-form {
    margin: 0;
}

.mobile-menu {
    display: none;
    position: relative;
    z-index: 210;
}

.menu-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff6e7;
    box-shadow: inset 0 0 0 1px rgba(163, 38, 63, 0.18);
    cursor: pointer;
    display: none;
    font-family: var(--font-display);
    justify-content: center;
    letter-spacing: 0.08rem;
    list-style: none;
    min-height: 2.8rem;
    padding: 0.7rem 1.15rem;
    text-transform: uppercase;
}

.menu-toggle::-webkit-details-marker {
    display: none;
}

.primary-nav {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 auto;
    max-width: none;
    padding: 0 var(--page-gutter) 1rem;
    width: 100%;
}

.primary-nav__link,
.primary-nav__group summary {
    color: #fff4dc;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 0.3vw + 1.02rem, 1.5rem);
    letter-spacing: 0.08rem;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-nav__group {
    position: relative;
}

.primary-nav__group summary {
    list-style: none;
}

.primary-nav__group summary::-webkit-details-marker {
    display: none;
}

.mobile-menu__panel {
    background: #ffffff;
    border: 1px solid rgba(161, 31, 56, 0.14);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    display: none;
    gap: 0.5rem;
    isolation: isolate;
    max-height: min(70svh, 32rem);
    overflow-y: auto;
    padding: 0.75rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    width: min(24rem, calc(100vw - 2rem));
    z-index: 220;
}

.mobile-menu[open] .mobile-menu__panel,
.primary-nav__group[open] .primary-nav__menu {
    display: grid;
}

.primary-nav__menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(161, 31, 56, 0.14);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    display: none;
    min-width: 17rem;
    padding: 0.5rem;
    position: absolute;
    top: calc(100% + 0.45rem);
}

.mobile-menu__link,
.mobile-menu__item,
.mobile-menu__group summary {
    border-radius: 0.8rem;
    color: var(--navy);
    display: block;
    padding: 0.75rem 0.9rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.mobile-menu__group {
    border-top: 1px solid var(--line);
    padding-top: 0.5rem;
}

.mobile-menu__group:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.mobile-menu__group summary {
    cursor: pointer;
    font-family: var(--font-display);
    letter-spacing: 0.06rem;
    list-style: none;
    text-transform: uppercase;
}

.mobile-menu__group summary::-webkit-details-marker {
    display: none;
}

.mobile-menu__items {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.35rem;
}

.mobile-menu__auth {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.25rem;
    margin-top: 0.35rem;
    padding-top: 0.55rem;
}

.mobile-menu__logout {
    margin: 0;
}

.mobile-menu__button {
    background: transparent;
    border: 0;
    border-radius: 0.8rem;
    color: var(--navy);
    cursor: pointer;
    display: block;
    padding: 0.75rem 0.9rem;
    text-align: left;
    transition: background-color 180ms ease, color 180ms ease;
    width: 100%;
}

.primary-nav__item {
    border-radius: 0.8rem;
    color: var(--navy);
    padding: 0.75rem 0.9rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.primary-nav__link:hover,
.primary-nav__group summary:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(163, 38, 63, 0.34);
}

.mobile-menu__link:hover,
.mobile-menu__item:hover,
.mobile-menu__group summary:hover,
.mobile-menu__button:hover,
.primary-nav__item:hover {
    background: var(--accent-red-soft);
    color: var(--navy-deep);
}

.site-header .button--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f3f8ff;
}

.site-header .button--ghost:hover,
.site-header .button--primary:hover {
    box-shadow: 0 14px 28px rgba(7, 20, 40, 0.2);
}

.page-title {
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center (optional) */
    text-align: center;
}

.page-section {

    margin: 0 auto;
    max-width: none;
    padding-top: 2.2rem;
    width: 100%;
}

.page-section--compact {
    padding-top: 1rem;
}

.page-section--grid {
    display: grid;
    gap: var(--section-gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-section--grid > * {
    min-width: 0;
}

.panel,
.metric-card,
.team-card,
.resource-card,
.auth-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98));
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    vertical-align:top;

}

.panel {
    padding: var(--panel-pad);
}

.page-section > .panel,
.page-section--grid > .panel {
    box-shadow:
        0 14px 30px rgba(9, 29, 55, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.panel--span-2 {
    grid-column: span 2;
}

.hero-panel {
    color: #fff6e7;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: none;
    overflow: visible;
    width: 100%;
}

.hero-panel__banner {
    background:
        linear-gradient(120deg, rgba(9, 29, 55, 0.04) 5%, rgba(9, 29, 55, 0.16) 46%, rgba(161, 31, 56, 0.1) 100%),
        url("/images/home-banner-pano-2.jpg?v=20260529-banner2026") center center/contain no-repeat;
    aspect-ratio: 1910 / 810;
    background-color: #0b1f3b;
    border: 1px solid rgba(161, 31, 56, 0.22);
    border-radius: var(--radius-xl);
    box-shadow: 0 26px 58px rgba(9, 29, 55, 0.18);
    min-height: 0;
    width: 100%;
}

.hero-panel__body {
    background: linear-gradient(140deg, rgba(9, 29, 55, 0.94), rgba(18, 55, 97, 0.86));
    border: 1px solid rgba(161, 31, 56, 0.22);
    border-radius: var(--radius-xl);
    box-shadow: 0 26px 58px rgba(9, 29, 55, 0.18);
    display: grid;
    gap: clamp(1rem, 1.3vw, 1.7rem);
    grid-template-columns: minmax(0, 1.65fr) minmax(clamp(15rem, 18vw, 22rem), 0.95fr);
    padding: clamp(1.35rem, 2.4vw, 2.15rem) var(--page-gutter) clamp(1.35rem, 2.4vw, 2rem);
}

.hero-panel h1 {
    font-size: clamp(1.4rem, 2vw, 2.45rem);
}

.hero-panel__content {
    align-self: end;
    display: grid;
    gap: 0.65rem;
    max-width: min(100%, 60ch);
}

.hero-panel__lead,
.page-intro p,
.auth-shell__intro p {
    color: rgba(243, 247, 252, 0.88);
    font-size: 1.1rem;
    max-width: min(100%, 100ch);
}

.hero-panel__lead {
    font-size: clamp(0.92rem, 0.16vw + 0.88rem, 1rem);
    max-width: min(100%, 58ch);
}

.hero-panel__actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.65rem, 0.7vw, 1rem);
}

.hero-panel__aside,
.admin-kpis,
.admin-link-grid,
.venue-grid,
.resource-grid,
.team-grid,
.sponsor-grid,
.admin-summary-grid,
.team-stat-grid,
.admin-photo-grid {
    display: grid;
    gap: var(--section-gap);
}

.hero-panel__aside {
    align-self: end;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-tight)), 1fr));
}

.hero-panel .button {
    min-height: 2.6rem;
    padding: 0.58rem 0.95rem;
}

.hero-panel .metric-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 32px rgba(7, 20, 40, 0.18);
    color: #f6f9fc;
    padding: clamp(0.72rem, 0.42vw + 0.62rem, 0.95rem);
}

.hero-panel .metric-card span {
    color: rgba(232, 239, 247, 0.76);
    font-size: 0.82rem;
}

.hero-panel .metric-card strong {
    font-size: clamp(1.55rem, 0.45vw + 1.3rem, 2rem);
}

.metric-card {
    color: var(--ink);
    display: grid;
    gap: 0.3rem;
    padding: clamp(0.95rem, 0.8vw + 0.65rem, 1.35rem);
}

.metric-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.metric-card strong {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 0.8vw + 1.7rem, 3rem);
    letter-spacing: 0.03rem;
}

.section-heading,
.page-intro,
.page-intro--split,
.auth-shell,
.admin-toolbar {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.page-intro > *,
.page-intro--split > *,
.section-heading > * {
    min-width: 0;
}

.page-intro--split > :first-child {
    flex: 2 1 min(100%, 56rem);
}

.page-intro--split > :last-child {
    flex: 1 1 min(100%, 24rem);
}

.section-heading {
    margin-bottom: 1.1rem;
}

.section-heading h2,
.panel h2,
.timeline__day h2,
.schedule-day h2 {
    color: var(--navy-deep);
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 0.9vw + 1.7rem, 3.1rem);
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.headline-list,
.stack-list {
    display: grid;
    gap: 0.75rem;
}

.headline-list__item,
.stack-list__item,
.resource-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 1rem;
    display: grid;
    gap: 0.25rem;
    max-width: 100%;
    min-width: 0;
    padding: 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.headline-list__item:hover,
.stack-list__item:hover,
.resource-card:hover {
    border-color: rgba(161, 31, 56, 0.2);
    box-shadow: 0 12px 28px rgba(9, 29, 55, 0.08);
    transform: translateY(-1px);
}

.headline-list__item span:last-child,
.stack-list__item span,
.team-card__meta,
.empty-state,
.prose,
.plain-list,
.info-list dd,
.status-banner,
.table-detail,
.submission-details dd,
.form-note,
.album-photo figcaption span,
.admin-photo-card__body span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.scoreboard-summary-card {
    display: grid;
    gap: 0.65rem;
}

.scoreboard-summary-card__label {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.scoreboard-summary-card strong {
    color: var(--accent-red-deep);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 0.7vw + 1.4rem, 2.4rem);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.scoreboard-summary-card__meta,
.scoreboard-panel__note {
    color: var(--muted);
}

.scoreboard-panel {
    display: grid;
    gap: 1.25rem;
}

.scoreboard-panel__header {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: space-between;
}

.scoreboard-widget-shell {
    background:
        radial-gradient(circle at top left, rgba(18, 55, 97, 0.08), transparent 18rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 252, 0.96));
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 1.2rem;
    min-height: 36rem;
    overflow: hidden;
    padding: clamp(0.75rem, 1vw, 1.2rem);
}

.scoreboard-widget-shell--compact {
    min-height: 16rem;
}

.scoreboard-widget-shell--stacked {
    height: min(1359px, 100%);
    margin-inline: auto;
    max-height: 1359px;
    max-width: 711px;
    min-height: 48rem;
    width: 100%;
}

.schedule-board,
.timeline,
.timeline__month,
.timeline__day,
.schedule-day,
.schedule-board__day {
    display: grid;
    gap: 0.9rem;
}

.schedule-board__game,
.schedule-day__game,
.timeline__game {
    align-items: center;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.timeline__game-link {
    color: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.timeline__game-link:hover {
    border-color: rgba(161, 31, 56, 0.2);
    box-shadow: 0 12px 28px rgba(9, 29, 55, 0.08);
    transform: translateY(-1px);
}

.news-showcase,
.news-archive,
.news-article-shell,
.news-list {
    display: grid;
    gap: var(--section-gap);
}

.news-showcase {
    align-items: start;
    grid-template-columns: minmax(0, 1.25fr) minmax(min(100%, 20rem), 0.95fr);
}

.news-lead,
.news-list__item,
.news-archive__item {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    color: inherit;
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    padding: clamp(1rem, 0.8vw + 0.8rem, 1.4rem);
}

.news-lead__image,
.news-card__image {
    border-radius: 1rem;
    object-fit: cover;
    width: 100%;
}

.news-lead__image {
    aspect-ratio: 16 / 8;
}

.news-card__image {
    aspect-ratio: 16 / 9;
}

.news-thumbnail {
    aspect-ratio: 4 / 3;
    justify-self: start;
    max-width: clamp(5.5rem, 18vw, 8.5rem);
}

.news-thumbnail--lead {
    max-width: clamp(7rem, 20vw, 10rem);
}

.news-article__image {
    border-radius: 1rem;
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: min(32rem, 70vh);
    max-width: min(100%, 42rem);
    object-fit: contain;
    width: auto;
}

.news-lead {
    background:
        linear-gradient(180deg, rgba(18, 55, 97, 0.06), rgba(255, 255, 255, 0.78)),
        linear-gradient(180deg, rgba(163, 38, 63, 0.05), rgba(248, 251, 255, 0.98));
}

.news-lead h3,
.news-archive__item h2,
.news-article h1 {
    color: var(--navy);
    font-family: var(--font-display);
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.news-lead h3 {
    font-size: clamp(2.2rem, 0.9vw + 1.7rem, 3.15rem);
}

.news-meta,
.news-list__date,
.news-archive__meta span,
.news-archive__cta {
    color: var(--muted);
    font-family: var(--font-display);
    letter-spacing: 0.07rem;
    text-transform: uppercase;
}

.news-list__item strong,
.news-archive__item h2 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 0.45vw + 1.3rem, 2.15rem);
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.news-list__item p,
.news-archive__item p,
.news-article__summary {
    color: var(--muted);
}

.news-archive {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.news-archive__item {
    text-decoration: none;
}

.news-archive__item:hover,
.news-list__item:hover {
    border-color: rgba(163, 38, 63, 0.24);
    box-shadow:
        0 14px 30px rgba(9, 29, 55, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.news-archive__cta {
    color: var(--navy);
}

.player-interest-banner {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(18, 55, 97, 0.94), rgba(11, 30, 54, 0.96)),
        linear-gradient(135deg, rgba(163, 38, 63, 0.18), rgba(217, 177, 77, 0.08));
    border: 1px solid rgba(217, 177, 77, 0.3);
    border-radius: 1.4rem;
    box-shadow: 0 18px 40px rgba(9, 29, 55, 0.16);
    color: #f8fbff;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.4rem 1.6rem;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.player-interest-banner__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 0.55rem;
    padding: 1.35rem 1.45rem;
}

.player-interest-banner:hover {
    border-color: rgba(217, 177, 77, 0.48);
    box-shadow: 0 22px 48px rgba(9, 29, 55, 0.22);
    transform: translateY(-2px);
}

.player-interest-banner .eyebrow,
.player-interest-banner h2,
.player-interest-banner p {
    color: #f8fbff;
}

.player-interest-banner h2 {
    font-size: clamp(2rem, 0.9vw + 1.55rem, 2.85rem);
    margin-bottom: 0.35rem;
}

.player-interest-banner .eyebrow {
    margin-bottom: 0.15rem;
}

.player-interest-banner p:last-child {
    margin-bottom: 0;
    max-width: 52rem;
    padding-right: 0.4rem;
}

.player-interest-banner .button {
    justify-self: end;
    white-space: nowrap;
}

.news-article-shell {
    align-items: start;
    grid-template-columns: minmax(0, 1.8fr) minmax(min(100%, 20rem), 0.95fr);
}

.news-article {
    display: grid;
    gap: 1.25rem;
}

.news-article__header {
    display: grid;
    gap: 0.75rem;
}

.news-article__body {
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.news-article__sidebar {
    align-self: start;
}

.news-editor__body {
    min-height: 18rem;
}

.news-template-panel {
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.news-editor__preview {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
    margin-top: 0.85rem;
    max-width: min(100%, 24rem);
}

.news-editor__preview img {
    border-radius: 1rem;
    height: auto;
    max-height: min(18rem, 50vh);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.data-table {
    border-collapse: collapse;
    table-layout: auto;
    width: 100%;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
    padding: 0.9rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 0.22vw + 0.95rem, 1.35rem);
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip-grid a {
    background: rgba(13, 47, 79, 0.08);
    border-radius: 999px;
    color: var(--navy);
    padding: 0.75rem 1rem;
}

.sponsor-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-tight)), 1fr));
}

.sponsor-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(18, 55, 97, 0.09);
    border-radius: 1.25rem;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    min-height: clamp(10rem, 12vw, 14rem);
    padding: clamp(0.85rem, 0.7vw + 0.65rem, 1.25rem);
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sponsor-card img {
    max-height: 4.5rem;
    object-fit: contain;
}

.sponsor-card:hover {
    border-color: rgba(163, 38, 63, 0.24);
    box-shadow: 0 18px 38px rgba(9, 29, 55, 0.12);
    transform: translateY(-0.2rem);
}

.sponsor-editor__preview img {
    background: rgba(255, 255, 255, 0.8);
    max-height: 10rem;
    object-fit: contain;
    padding: 0.75rem;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr));
}

.team-card {
    align-content: end;
    color: #fff7ea;
    display: grid;
    gap: 0.65rem;
    min-height: clamp(15rem, 18vw, 19rem);
    overflow: hidden;
    padding: clamp(1.1rem, 1vw + 0.8rem, 1.5rem);
    position: relative;
    isolation: isolate;
}

.team-card::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
        linear-gradient(155deg, color-mix(in srgb, var(--team-primary) 96%, black), var(--team-primary));
    content: "";
    inset: 0;
    position: absolute;
    z-index: -2;
}

.team-card::after {
    background-image: var(--team-logo-image, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(74%, 18rem);
    content: "";
    filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.25));
    inset: 0;
    opacity: 0.18;
    position: absolute;
    transform: scale(1.05);
    z-index: -1;
}

.team-card__name {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 0.9vw + 1.75rem, 3.2rem);
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.team-card__meta {
    color: rgba(255, 247, 234, 0.82);
}

.team-card__address {
    line-height: 1.5;
}

.team-page {
    color: color-mix(in srgb, var(--team-primary) 18%, var(--ink));
}

.team-page .panel,
.team-page .metric-card {
    border-color: color-mix(in srgb, var(--team-primary) 16%, white);
    box-shadow:
        0 18px 45px color-mix(in srgb, var(--team-primary) 14%, transparent),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.team-page .panel {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--team-secondary) 10%, white), rgba(248, 251, 255, 0.98)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.98));
}

.team-page .metric-card {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--team-secondary) 16%, white), rgba(248, 251, 255, 0.98)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.98));
}

.team-page .eyebrow,
.team-page .field-label,
.team-page .info-list dt,
.team-page .submission-details dt,
.team-page .data-table th {
    color: color-mix(in srgb, var(--team-primary) 78%, var(--team-secondary));
}

.team-page .stack-list__item,
.team-page .headline-list__item {
    border-color: color-mix(in srgb, var(--team-primary) 14%, white);
}

.stats-block {
    margin-top: 1.5rem;
}

.team-page__content {
    display: grid;
    gap: 0;
    margin: 0 auto;
    max-width: min(100%, 108rem);
    min-width: 0;
    width: 100%;
}

.team-page__section {
    width: 100%;
}

.team-page .panel .button--primary {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--team-secondary) 86%, white),
        color-mix(in srgb, var(--team-primary) 18%, var(--team-secondary))
    );
    color: color-mix(in srgb, var(--team-primary) 82%, black);
}

.team-page .panel .button--ghost {
    background: color-mix(in srgb, var(--team-primary) 6%, white);
    border-color: color-mix(in srgb, var(--team-primary) 18%, white);
    color: color-mix(in srgb, var(--team-primary) 80%, black);
}

.team-hero {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--team-secondary) 38%, transparent), transparent 15rem),
        linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 90%, black), var(--team-primary));
    border-radius: var(--radius-xl);
    color: #fff6e8;
    display: grid;
    gap: clamp(1rem, 1.8vw, 2.5rem);
    grid-template-columns: minmax(0, 2fr) minmax(clamp(18rem, 24vw, 30rem), 1fr);
    overflow: hidden;
    padding: clamp(1.25rem, 1.2vw + 1rem, 2rem);
    position: relative;
    isolation: isolate;
}

.team-hero::after {
    background-image: var(--team-logo-image, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(34rem, 66%);
    content: "";
    inset: 0;
    opacity: 0.12;
    position: absolute;
    right: -8%;
    z-index: -1;
}

.team-hero__aside {
    display: grid;
    gap: 1rem;
}

.team-hero__details {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.25rem;
    display: grid;
    gap: 0.9rem;
    max-width: 100%;
    margin-top: 1rem;
    min-width: 0;
    padding: 1rem 1.1rem;
}

.team-hero__details .section-heading {
    margin-bottom: 0;
}

.team-hero__details .info-list {
    grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr);
}

.team-hero__details .eyebrow,
.team-hero__details .info-list dt {
    color: color-mix(in srgb, var(--team-secondary) 78%, white);
}

.team-hero__details .info-list dd,
.team-hero__details .info-list a,
.team-hero__details .section-heading h2 {
    color: #fff6e8;
}

.team-hero__logo-shell {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.25rem;
    display: grid;
    min-height: clamp(12rem, 15vw, 16rem);
    padding: 1rem;
    place-items: center;
}

.team-hero__logo {
    max-height: clamp(9rem, 12vw, 13rem);
    object-fit: contain;
    width: 100%;
}

.team-hero__stats {
    display: grid;
    gap: var(--section-gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-tight)), 1fr));
}

.team-hero__stats div {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
}

.team-hero__stats strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 0.7vw + 1.6rem, 2.8rem);
}

.team-sponsor-grid {
    display: grid;
    gap: var(--section-gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-tight)), 1fr));
}

.team-sponsor-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid color-mix(in srgb, var(--team-primary) 14%, white);
    border-radius: 1rem;
    color: color-mix(in srgb, var(--team-primary) 78%, black);
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    min-height: 10rem;
    padding: 1rem;
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.team-sponsor-card img {
    max-height: 5rem;
    max-width: 100%;
    object-fit: contain;
}

a.team-sponsor-card:hover {
    border-color: color-mix(in srgb, var(--team-secondary) 38%, var(--team-primary));
    box-shadow: 0 16px 34px color-mix(in srgb, var(--team-primary) 13%, transparent);
    transform: translateY(-0.18rem);
}

.team-sponsor-editor {
    border-top: 1px solid color-mix(in srgb, var(--team-primary) 14%, white);
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.stats-viewer {
    display: grid;
    gap: 1rem;
}

.stats-viewer__toolbar,
.stats-viewer__tabs,
.stats-admin-grid,
.game-scoreboard {
    display: grid;
    gap: 1rem;
}

.stats-viewer__toolbar {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.stats-viewer__tabs {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), max-content));
}

.stats-tab,
.stats-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-family: var(--font-display);
    justify-content: center;
    letter-spacing: 0.06rem;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    text-transform: uppercase;
}

.stats-tab {
    background: rgba(13, 47, 79, 0.06);
    border: 1px solid rgba(13, 47, 79, 0.12);
    color: var(--navy);
}

.stats-tab--active {
    background: linear-gradient(135deg, var(--navy), #1f5a8d);
    border-color: transparent;
    color: #fff7ea;
}

.stats-pill {
    background: rgba(161, 31, 56, 0.12);
    color: var(--navy);
}

.stats-viewer__meta {
    color: var(--muted);
    font-family: var(--font-display);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.stats-table-wrap {
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.stats-table {
    min-width: max-content;
}

.stats-table td,
.stats-table th,
.stats-link-table td,
.stats-link-table th {
    white-space: nowrap;
}

.stats-table td:first-child,
.stats-table th:first-child {
    left: 0;
    position: sticky;
    z-index: 1;
}

.stats-table td:first-child,
.stats-table tfoot td:first-child {
    background: rgba(248, 251, 255, 0.98);
}

.stats-table th:first-child {
    background: rgba(236, 243, 251, 0.98);
}

.stats-table__totals td {
    background: rgba(13, 47, 79, 0.06);
    font-weight: 700;
}

.history-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.history-table {
    min-width: max-content;
}

.history-table td,
.history-table th {
    overflow-wrap: normal;
    word-break: normal;
}

.history-table th,
.history-detail-list__item {
    white-space: nowrap;
}

.stats-admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    margin-top: 1.5rem;
}

.stats-admin-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    display: grid;
    gap: 0.9rem;
    max-width: 100%;
    min-width: 0;
    padding: 1rem;
}

.stats-admin-card--inline {
    margin-top: 1.25rem;
}

.stats-manual-surface {
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.stats-manual-editor,
.stats-manual-editor__intro,
.stats-manual-editor__toolbar {
    display: grid;
    gap: 1rem;
}

.stats-manual-editor__intro,
.stats-manual-editor__toolbar {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.stats-table--editable td {
    vertical-align: middle;
}

.stats-cell-input {
    min-width: 4.75rem;
    padding: 0.45rem 0.55rem;
}

.stats-cell-input--number {
    min-width: 3.5rem;
}

.stats-cell-input--wide {
    min-width: 12rem;
}

.stats-admin-card h3,
.game-scoreboard__team h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 0.5vw + 1.45rem, 2.5rem);
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.table-link {
    color: inherit;
    font-weight: 700;
}

.game-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.game-scoreboard__team {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    max-width: 100%;
    min-width: 0;
    padding: 1rem;
}

.game-scoreboard__team img {
    height: clamp(4rem, 5vw, 6rem);
    object-fit: contain;
    width: clamp(4rem, 5vw, 6rem);
}

.game-scoreboard__team strong {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 1.2vw + 1.8rem, 4rem);
    letter-spacing: 0.04rem;
}

.game-stats-grid {
    align-items: start;
}

.info-list {
    align-items: start;
    display: grid;
    gap: 0.5rem 1rem;
    grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr);
    margin: 0;
}

.submission-details {
    display: grid;
    gap: 0.4rem 1rem;
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
    margin: 0;
}

.submission-details dt {
    color: var(--navy);
    font-family: var(--font-display);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.submission-details dd {
    margin: 0;
    white-space: pre-wrap;
}

.info-list dt {
    color: var(--navy);
    font-family: var(--font-display);
    letter-spacing: 0.05rem;
    margin: 0;
    text-transform: uppercase;
}

.info-list dd {
    margin: 0;
    min-width: 0;
}

.filter-card,
.status-banner {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 1rem;
    color: var(--ink);
    padding: var(--panel-pad);
}

.filter-card {
    margin-left: auto;
    max-width: min(100%, 26rem);
    width: 100%;
}

.filter-card__meta {
    color: var(--muted);
    margin-top: 0.75rem;
}

.admin-page-dock {
    align-items: center;
    background:
        linear-gradient(140deg, rgba(9, 29, 55, 0.97), rgba(18, 55, 97, 0.92) 55%, rgba(127, 22, 45, 0.92));
    border: 1px solid rgba(163, 38, 63, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: #fff7ea;
    display: flex;
    gap: var(--section-gap);
    justify-content: space-between;
    padding: clamp(1rem, 1vw + 0.8rem, 1.5rem);
}

.admin-page-dock p {
    color: rgba(255, 247, 234, 0.8);
    max-width: min(100%, 88ch);
}

.admin-page-dock .eyebrow {
    color: rgba(255, 207, 216, 0.94);
}

.admin-page-dock h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.04rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.admin-page-dock .button--ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff7ea;
}

.schedule-tools {
    margin-top: 1rem;
}

.schedule-table-wrap {
    overflow-x: auto;
}

.schedule-table {
    min-width: 0;
    width: 100%;
}

.schedule-table td,
.schedule-table th {
    white-space: normal;
}

.schedule-table td:nth-child(1),
.schedule-table th:nth-child(1) {
    white-space: nowrap;
    width: 4.25rem;
    min-width: 4.25rem;
}

.schedule-table td:nth-child(2),
.schedule-table th:nth-child(2) {
    white-space: nowrap;
    width: 7.5rem;
    min-width: 7.5rem;
}

.schedule-table td:nth-child(3),
.schedule-table th:nth-child(3) {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    width: 6.5rem;
    min-width: 6.5rem;
}

.schedule-table td:nth-child(4),
.schedule-table th:nth-child(4) {
    white-space: nowrap;
    width: 6rem;
    min-width: 6rem;
}

.schedule-table td:nth-child(5),
.schedule-table th:nth-child(5) {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    width: 6.25rem;
    min-width: 6.25rem;
}

.schedule-table td:nth-child(6),
.schedule-table th:nth-child(6),
.schedule-table td:nth-child(7),
.schedule-table th:nth-child(7) {
    min-width: clamp(10rem, 14vw, 16rem);
}

.schedule-table td:nth-child(8),
.schedule-table th:nth-child(8) {
    white-space: normal;
    min-width: clamp(12rem, 16vw, 20rem);
}

.schedule-table td:nth-child(9),
.schedule-table th:nth-child(9) {
    min-width: clamp(10rem, 12vw, 16rem);
}

.timeline {
    gap: 1.5rem;
}

.timeline__month,
.schedule-day {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    padding: var(--panel-pad);
}

.venue-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr));
}

.resource-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr));
}

.resource-card h2,
.venue-card h2,
.admin-link-card h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.venue-card__address,
.team-address {
    display: grid;
    gap: 0.15rem;
    font-style: normal;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

.photo-grid {
    display: grid;
    gap: var(--section-gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 22rem));
    justify-content: start;
}

.photo-grid--featured {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 18rem));
}

.photo-grid__item {
    margin: 0;
}

.photo-grid__item img {
    border-radius: 1rem;
    box-shadow: var(--shadow);
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.photo-grid__item figcaption,
.album-photo figcaption {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.home-page .page-section {
    padding-top: 1.4rem;
}

.home-page .panel {
    padding: clamp(0.82rem, 0.68vw + 0.6rem, 1.45rem);
}

.home-page .section-heading {
    margin-bottom: 0.7rem;
}

.home-page .section-heading h2 {
    font-size: clamp(1.65rem, 0.68vw + 1.35rem, 2.25rem);
}

.home-page .hero-panel {
    gap: 0.7rem;
}

.home-page .hero-panel__body {
    gap: clamp(0.72rem, 0.85vw, 1.1rem);
    padding: clamp(0.9rem, 1.55vw, 1.4rem) calc(var(--page-gutter) * 0.86) clamp(0.9rem, 1.55vw, 1.28rem);
}

.home-page .hero-panel h1 {
    font-size: clamp(1.08rem, 1.5vw, 1.75rem);
}

.home-page .hero-panel__content {
    gap: 0.4rem;
}

.home-page .hero-panel__lead {
    font-size: clamp(0.78rem, 0.12vw + 0.75rem, 0.86rem);
    max-width: min(100%, 48ch);
}

.home-page .hero-panel .metric-card {
    padding: clamp(0.56rem, 0.28vw + 0.5rem, 0.72rem);
}

.home-page .hero-panel .metric-card span {
    font-size: 0.72rem;
}

.home-page .hero-panel .metric-card strong {
    font-size: clamp(1.18rem, 0.28vw + 1.05rem, 1.48rem);
}

.home-page .news-showcase,
.home-page .news-list,
.home-page .schedule-board,
.home-page .photo-grid,
.home-page .stack-list,
.home-page .sponsor-grid {
    gap: calc(var(--section-gap) * 0.68);
}

.home-page .news-lead,
.home-page .news-list__item,
.home-page .stack-list__item,
.home-page .schedule-board__game,
.home-page .sponsor-card {
    padding: clamp(0.68rem, 0.52vw + 0.56rem, 0.92rem);
}

.home-page .news-lead h3 {
    font-size: clamp(1.62rem, 0.58vw + 1.35rem, 2.1rem);
}

.home-page .news-list__item strong {
    font-size: clamp(1.16rem, 0.28vw + 1.02rem, 1.5rem);
}

.home-page .news-thumbnail {
    max-width: clamp(4.2rem, 12vw, 6.1rem);
}

.home-page .news-thumbnail--lead {
    max-width: clamp(5.2rem, 15vw, 7.2rem);
}

.home-page .schedule-board__game {
    gap: 0.65rem;
}

.home-page .player-interest-banner {
    gap: 0.85rem;
    padding: 1rem 1.15rem;
}

.home-page .player-interest-banner__card {
    padding: 0.92rem 1rem;
}

.home-page .player-interest-banner h2 {
    font-size: clamp(1.5rem, 0.58vw + 1.25rem, 2rem);
}

.home-page .scoreboard-panel {
    gap: 0.82rem;
}

.home-page .scoreboard-widget-shell--compact {
    min-height: 12rem;
}

.home-page .photo-grid--featured {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.8rem), 1fr));
}

.home-page .photo-grid__item figcaption {
    gap: 0.18rem;
    margin-top: 0.32rem;
}

.home-page .sponsor-card {
    gap: 0.42rem;
    min-height: clamp(7rem, 8.5vw, 9.4rem);
}

.home-page .sponsor-card img {
    max-height: 3rem;
}

.album-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.album-nav a {
    background: rgba(13, 47, 79, 0.08);
    border-radius: 999px;
    color: var(--navy);
    padding: 0.75rem 1rem;
}

.album-shell {
    display: grid;
    gap: 1.25rem;
}

.album-header {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.album-meta {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.album-gallery {
    display: grid;
    gap: var(--section-gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 20rem));
    justify-content: start;
}

.album-photo,
.admin-photo-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(18, 55, 97, 0.09);
    border-radius: 1.25rem;
}

.album-photo {
    margin: 0;
    overflow: hidden;
    padding: 0.85rem;
}

.album-photo__open {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

.album-photo img,
.admin-photo-card img {
    aspect-ratio: 4 / 3;
    border-radius: 0.9rem;
    object-fit: cover;
    width: 100%;
}

.admin-photo-card {
    display: grid;
    overflow: hidden;
}

.admin-photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 20rem));
    justify-content: start;
}

.admin-photo-card__body {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1rem 0;
}

.admin-photo-card .button-row {
    padding: 0 1rem 1rem;
}

.photo-lightbox {
    align-items: center;
    background: rgba(5, 13, 24, 0.86);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem);
    position: fixed;
    z-index: 20;
}

.photo-lightbox__figure {
    color: #fff7ea;
    display: grid;
    gap: 0.75rem;
    margin: 0;
    max-height: 92vh;
    max-width: min(96vw, 72rem);
}

.photo-lightbox__figure img {
    border-radius: 0.75rem;
    max-height: 80vh;
    object-fit: contain;
    width: 100%;
}

.photo-lightbox__figure figcaption {
    display: grid;
    gap: 0.25rem;
}

.photo-lightbox__figure span {
    color: rgba(255, 247, 234, 0.78);
}

.photo-lightbox__close {
    background: #fff7ea;
    border: 0;
    border-radius: 999px;
    color: var(--navy);
    cursor: pointer;
    font-family: var(--font-display);
    height: 2.5rem;
    position: fixed;
    right: 1rem;
    top: 1rem;
    width: 2.5rem;
}

.prose {
    display: grid;
    gap: 1rem;
}

.plain-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.2rem;
}

.auth-shell {
    align-items: stretch;
    display: grid;
    gap: var(--section-gap);
    grid-template-columns: minmax(0, 1.15fr) minmax(clamp(20rem, 30vw, 32rem), 0.95fr);
}

.auth-shell__intro {
    background:
        linear-gradient(150deg, rgba(9, 29, 55, 0.94), rgba(127, 22, 45, 0.78)),
        url("/images/home-banner-pano-2.jpg?v=20260529-banner2026") center/contain no-repeat;
    background-color: #0b1f3b;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    color: #fff7ea;
    display: grid;
    gap: 1rem;
    min-height: 20rem;
    padding: 2rem;
}

.auth-panel {
    padding: var(--panel-pad);
}

.field,
.form-control {
    background: var(--surface-strong);
    border: 1px solid rgba(13, 47, 79, 0.18);
    border-radius: 0.9rem;
    color: var(--ink);
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
    width: 100%;
}

.field--textarea {
    min-height: 7rem;
    resize: vertical;
}

.field:focus,
.form-control:focus,
.form-check-input:focus,
.darker-border-checkbox:focus {
    border-color: var(--accent-red);
    outline: 2px solid rgba(161, 31, 56, 0.18);
    outline-offset: 2px;
}

.field-label {
    color: var(--navy);
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 0.22vw + 0.95rem, 1.3rem);
    letter-spacing: 0.06rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.checkbox-field {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    gap: 0.65rem;
    line-height: 1.4;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    margin-bottom: 1rem;
}

.form-grid--tight {
    margin-bottom: 0;
}

.form-grid__full {
    grid-column: 1 / -1;
}

.form-note {
    margin-top: 0.5rem;
}

.player-interest-intro,
.player-interest-note {
    color: var(--muted);
}

.player-interest-intro {
    margin-bottom: 1.25rem;
    max-width: 78ch;
}

.player-interest-aside {
    display: grid;
    gap: 1.25rem;
}

.team-interest-picker {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.team-interest-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.team-interest-option {
    align-items: start;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 1rem;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.team-interest-option:hover {
    border-color: rgba(161, 31, 56, 0.2);
    box-shadow: 0 12px 28px rgba(9, 29, 55, 0.08);
    transform: translateY(-1px);
}

.team-interest-option__meta {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.team-interest-option__meta span {
    color: var(--muted);
    font-size: 0.95rem;
}

.button {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.82rem 1.3rem;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button--primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-deep));
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(127, 22, 45, 0.24);
    color: #fff9fb;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: inherit;
}

.panel .button--ghost,
.site-main .button--ghost {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(18, 55, 97, 0.12);
    box-shadow: 0 10px 24px rgba(9, 29, 55, 0.06);
    color: var(--navy);
}

.button--danger {
    background: rgba(163, 38, 63, 0.1);
    border-color: rgba(163, 38, 63, 0.18);
    color: var(--red-clay);
}

.checkbox-row {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.admin-kpis,
.admin-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-tight)), 1fr));
}

.admin-summary-grid,
.team-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.admin-toolbar {
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-link-card {
    color: inherit;
    display: grid;
    gap: 0.5rem;
}

.table-actions,
.button-row {
    align-items: center;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-banner {
    margin-bottom: 1rem;
}

.status-banner--inline {
    margin-top: 1rem;
}

.status-banner--success,
.alert-success {
    color: #147a3d;
}

.status-banner--error,
.alert-danger {
    color: #b42318;
}

.adjustment-panel {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.venue-card--selected {
    border-color: rgba(13, 47, 79, 0.24);
    box-shadow:
        0 0 0 3px rgba(13, 47, 79, 0.08),
        var(--shadow);
}

.validation-message,
.text-danger {
    color: #b2392d;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.site-footer {
    align-items: center;
    background: linear-gradient(180deg, rgba(9, 29, 55, 0.98), rgba(12, 38, 71, 0.96));
    border-top: 1px solid rgba(163, 38, 63, 0.22);
    color: #fff6e7;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 3rem;
    width: 100%;
    padding: 1.5rem var(--page-gutter);
}

.site-footer__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 0.75vw + 1.45rem, 2.8rem);
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__links a {
    color: #fff6e7;
}

.site-footer__links a:hover {
    color: #ffd8df;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@media (max-width: 960px) {
    :root {
        --page-gutter: 1rem;
        --panel-pad: 1rem;
    }

    .site-header {
        position: relative;
        z-index: 200;
        isolation: isolate;
        backdrop-filter: none;
    }

    .site-header__bar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.85rem;
        padding: 0 0 0.95rem;
    }

    .brandmark {
        border-bottom: 1px solid rgba(163, 38, 63, 0.22);
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
        display: block;
        width: 100%;
    }

    .brandmark__image {
        display: block;
        height: auto;
        max-width: 100%;
        width: 100%;
    }

    .brandmark__eyebrow,
    .brandmark__title {
        display: none;
    }

    .site-header__actions {
        flex: none;
        gap: 0.75rem;
        justify-content: space-between;
        padding: 0 var(--page-gutter);
        width: 100%;
    }

    .site-header__quicklink,
    .site-header__session-action {
        display: none;
    }

    .primary-nav {
        display: none;
    }

    .primary-nav__menu {
        position: static;
    }

    .mobile-menu {
        display: block;
        margin-left: auto;
    }

    .mobile-menu__panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-header__admin-button,
    .menu-toggle {
        min-height: 2.7rem;
        padding: 0.68rem 1rem;
    }

    .hero-panel__banner {
        display: none;
    }

    .hero-panel__body {
        grid-template-columns: 1fr;
        padding-top: 1.35rem;
        padding-bottom: 2rem;
    }

    .page-section--grid,
    .auth-shell,
    .hero-panel__body,
    .team-hero,
    .admin-page-dock,
    .game-scoreboard,
    .stats-viewer__toolbar,
    .news-showcase,
    .news-article-shell {
        grid-template-columns: 1fr;
    }

    .team-hero::after {
        background-position: center top;
        background-size: min(20rem, 70%);
        opacity: 0.1;
        top: 1rem;
    }

    .admin-page-dock {
        align-items: flex-start;
        display: grid;
    }

    .album-header,
    .page-intro--split,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel--span-2 {
        grid-column: auto;
    }

    .panel,
    .metric-card,
    .team-card,
    .resource-card,
    .player-interest-banner,
    .auth-panel,
    .team-hero__details,
    .team-hero__logo-shell,
    .stats-admin-card,
    .game-scoreboard__team,
    .filter-card,
    .admin-page-dock,
    .timeline__month,
    .schedule-day,
    .album-photo,
    .admin-photo-card,
    .headline-list__item,
    .stack-list__item {
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible;
    }

    .player-interest-banner {
        grid-template-columns: 1fr;
    }

    .player-interest-banner__card {
        padding: 1.2rem 1.15rem;
    }

    .player-interest-banner .button {
        justify-self: start;
        white-space: normal;
    }

    .stats-manual-editor__intro,
    .stats-manual-editor__toolbar,
    .page-intro--split > *,
    .section-heading > *,
    .admin-page-dock > *,
    .team-hero > *,
    .game-scoreboard__team > *,
    .stats-admin-card > * {
        min-width: 0;
    }

    .info-list,
    .submission-details {
        grid-template-columns: 1fr;
    }

    .table-wrap,
    .schedule-table-wrap,
    .stats-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-gutter: stable both-edges;
    }

    .stats-viewer__tabs {
        display: flex;
        gap: 0.75rem;
        grid-template-columns: none;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 0.1rem;
    }

    .schedule-table,
    .stats-table,
    .stats-link-table {
        min-width: max-content;
    }

    .schedule-table th,
    .schedule-table td,
    .stats-table th,
    .stats-table td,
    .stats-link-table th,
    .stats-link-table td {
        font-size: 0.8rem;
        padding: 0.58rem 0.45rem;
    }

    .schedule-table th,
    .stats-table th,
    .stats-link-table th {
        font-size: 0.88rem;
        letter-spacing: 0.04rem;
    }

    .stats-viewer__meta,
    .stack-list__item span,
    .form-note {
        font-size: 0.88rem;
    }

    .stats-manual-editor__intro,
    .stats-manual-editor__toolbar {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 0.85rem;
    }

    .metric-card span {
        font-size: 0.82rem;
    }

    .metric-card strong,
    .team-hero__stats strong {
        font-size: clamp(1.55rem, 5vw, 2.1rem);
    }

    .stats-tab,
    .stats-pill {
        min-height: 2.65rem;
        padding: 0.55rem 0.85rem;
    }

    .team-hero__details,
    .stats-admin-card,
    .game-scoreboard__team,
    .stack-list__item,
    .headline-list__item,
    .panel {
        padding: min(var(--panel-pad), 1rem);
    }

    .stats-tab,
    .stats-pill {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .field,
    .form-control,
    .button,
    img {
        max-width: 100%;
    }
}

@media (min-width: 961px) {
    body[data-viewport-mode="desktop"] .mobile-menu,
    body[data-viewport-mode="desktop"] .menu-toggle {
        display: none !important;
    }

    body[data-viewport-mode="desktop"] .primary-nav {
        display: flex !important;
    }

    .site-header__actions {
        flex-wrap: nowrap;
    }

    .site-header__actions .button {
        display: inline-flex;
        white-space: nowrap;
    }

    .site-header__actions .inline-form {
        display: block;
    }
}

body[data-viewport-mode="mobile"] .primary-nav {
    display: none !important;
}

body[data-viewport-mode="mobile"] .mobile-menu {
    display: block !important;
}

body[data-viewport-mode="mobile"] .menu-toggle {
    display: inline-flex !important;
}

body[data-viewport-mode="mobile"],
body[data-viewport-mode="mobile"] .site-shell,
body[data-viewport-mode="mobile"] .site-main,
body[data-viewport-mode="mobile"] .page-section,
body[data-viewport-mode="mobile"] .team-page,
body[data-viewport-mode="mobile"] .team-page__content {
    max-width: 100vw;
    min-width: 0;
    overflow-x: clip;
}

body[data-viewport-mode="mobile"] .page-section > *,
body[data-viewport-mode="mobile"] .page-section--grid > *,
body[data-viewport-mode="mobile"] .team-page > *,
body[data-viewport-mode="mobile"] .team-page__content > * {
    max-width: 100%;
    min-width: 0;
}

body[data-viewport-mode="mobile"] .table-wrap,
body[data-viewport-mode="mobile"] .schedule-table-wrap,
body[data-viewport-mode="mobile"] .stats-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}

body[data-viewport-mode="mobile"] .data-table,
body[data-viewport-mode="mobile"] .schedule-table,
body[data-viewport-mode="mobile"] .stats-table,
body[data-viewport-mode="mobile"] .stats-link-table {
    min-width: 100%;
    width: max-content;
}

body[data-viewport-mode="mobile"] .panel,
body[data-viewport-mode="mobile"] .metric-card,
body[data-viewport-mode="mobile"] .team-card,
body[data-viewport-mode="mobile"] .resource-card,
body[data-viewport-mode="mobile"] .auth-panel,
body[data-viewport-mode="mobile"] .stats-admin-card,
body[data-viewport-mode="mobile"] .game-scoreboard__team,
body[data-viewport-mode="mobile"] .stack-list__item,
body[data-viewport-mode="mobile"] .headline-list__item {
    overflow-x: clip;
}

.history-document {
    display: grid;
    gap: 1.5rem;
}

.history-hero {
    display: grid;
    gap: 1rem;
    background:
        linear-gradient(135deg, rgba(11, 26, 56, 0.96), rgba(35, 67, 122, 0.9)),
        radial-gradient(circle at top right, rgba(255, 226, 163, 0.34), transparent 48%);
    color: #f8fbff;
}

.history-hero h1 {
    color: #fffaf0;
    margin: 0;
}

.history-hero .eyebrow {
    color: rgba(255, 236, 186, 0.9);
}

.history-hero__summary {
    color: rgba(241, 247, 255, 0.92);
    margin: 0;
    max-width: 72ch;
}

.history-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.history-nav__link {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #f8fbff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.7rem 1rem;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.history-nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}

.history-section {
    margin-top: 0;
}

.history-panel {
    display: grid;
    gap: 1rem;
}

.history-panel h2,
.history-subheading,
.history-label {
    color: #102849;
    margin-bottom: 0;
}

.history-panel p {
    margin: 0;
}

.history-subheading {
    border-top: 1px solid rgba(15, 40, 73, 0.1);
    margin-top: 0.4rem;
    padding-top: 1rem;
}

.history-label {
    color: #3f5675;
    font-size: 1rem;
    font-weight: 800;
}

.history-note,
.history-ranking,
.history-contact,
.history-empty {
    background: #f7f2e5;
    border-left: 4px solid #c79f4f;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
}

.history-ranking {
    background: #f5f8fc;
    border-left-color: #365f97;
}

.history-contact a {
    color: inherit;
    font-weight: 700;
}

.history-year-group {
    display: grid;
    gap: 0.85rem;
}

.history-year-group + .history-year-group {
    border-top: 1px solid rgba(16, 40, 73, 0.1);
    margin-top: 0.6rem;
    padding-top: 1rem;
}

.history-year-group__title {
    color: #0f3a69;
    font-size: 1.35rem;
    margin: 0;
}

.history-profile {
    background: linear-gradient(180deg, #fbfdff, #f3f7fc);
    border: 1px solid rgba(16, 40, 73, 0.08);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(11, 32, 63, 0.05);
    padding: 1rem 1.1rem;
}

.history-profile__text {
    line-height: 1.72;
}

.history-table-wrap {
    margin: 0;
}

.history-table {
    table-layout: fixed;
    width: 100%;
}

.history-table th,
.history-table td {
    vertical-align: top;
}

.history-table__year {
    background: #eef4fb;
    color: #17385e;
    font-size: 0.98rem;
    font-weight: 800;
    white-space: nowrap;
    width: 8rem;
}

.history-table__details {
    width: auto;
}

.history-detail-list {
    display: grid;
    gap: 0.55rem;
}

.history-detail-list--single {
    gap: 0;
}

.history-detail-list__item {
    background: #f8fafc;
    border: 1px solid rgba(16, 40, 73, 0.08);
    border-radius: 0.9rem;
    display: block;
    line-height: 1.55;
    padding: 0.75rem 0.9rem;
}

.history-emphasis__lead {
    color: #102849;
    font-weight: 800;
}

.history-emphasis__sep,
.history-emphasis__meta {
    color: inherit;
}

.champion-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.champions-panel {
    display: grid;
    gap: 1.2rem;
}

.champions-panel__header {
    align-items: start;
    display: grid;
    gap: 1rem;
}

.champion-leader-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.champion-leader-pill {
    align-items: center;
    background: rgba(18, 55, 97, 0.08);
    border: 1px solid rgba(18, 55, 97, 0.1);
    border-radius: 999px;
    color: var(--navy);
    display: inline-flex;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
}

.champion-leader-pill strong {
    color: var(--accent-red-deep);
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.06rem;
}

.champion-records {
    min-width: 78rem;
    table-layout: auto;
    width: max-content;
}

.champion-records__scroll {
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 1rem;
    max-height: min(70vh, 56rem);
    overflow: auto;
    width: 100%;
}

.champion-records thead th {
    background: linear-gradient(180deg, #f5f8fd, #edf4fb);
    position: sticky;
    top: 0;
    z-index: 2;
}

.champion-records td,
.champion-records th {
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.champion-records th:first-child,
.champion-records td:first-child {
    left: 0;
    position: sticky;
    z-index: 1;
}

.champion-records td:first-child {
    background: #f9fbfe;
}

.champion-records thead th:first-child {
    z-index: 3;
}

.champion-records__year {
    color: #17385e;
    font-weight: 800;
    white-space: nowrap;
    width: 6.5rem;
}

.champion-records__empty {
    color: var(--muted);
}

.champion-records__note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
    margin-top: 0.45rem;
    overflow-wrap: normal;
    white-space: normal;
}

.champion-note-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.champion-note-card {
    display: grid;
    gap: 0.55rem;
}

.hall-panel {
    display: grid;
    gap: 1.2rem;
}

.hall-panel__header {
    align-items: start;
    display: grid;
    gap: 1rem;
}

.hall-class-list {
    display: grid;
    gap: 1rem;
}

.hall-class-card {
    background: linear-gradient(180deg, #fbfdff, #f2f7fc);
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 1.2rem;
    box-shadow: 0 12px 28px rgba(11, 32, 63, 0.06);
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.hall-class-card__header {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: space-between;
}

.hall-class-card__header h3 {
    color: #123761;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.3rem + 1.2vw, 3rem);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.hall-class-card__meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hall-note-stack {
    display: grid;
    gap: 0.75rem;
}

.hall-class-note {
    background: rgba(18, 55, 97, 0.05);
    border: 1px dashed rgba(18, 55, 97, 0.24);
    border-radius: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
}

.hall-member-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1fr);
}

.hall-member-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: clamp(9rem, 14vw, 11rem) minmax(0, 1fr);
    min-width: 0;
    align-items: start;
    padding: 1rem;
}

.hall-member-card__media {
    aspect-ratio: 3 / 4;
    align-self: start;
    background: #fff;
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 0.9rem;
    min-width: 0;
    overflow: hidden;
}

.hall-member-card__media img {
    height: 100%;
    object-fit: contain;
    object-position: center top;
    width: 100%;
}

.hall-member-card__placeholder {
    align-items: center;
    color: rgba(18, 55, 97, 0.72);
    display: flex;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 1rem + 2vw, 3.6rem);
    height: 100%;
    justify-content: center;
    letter-spacing: 0.05rem;
    width: 100%;
}

.hall-member-card__body {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.hall-member-card h4 {
    color: #102849;
    font-size: 1.35rem;
    line-height: 1.15;
}

.hall-member-card p,
.hall-class-note p {
    line-height: 1.62;
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .hall-member-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .hall-member-card__media {
        max-width: 12rem;
        width: min(100%, 12rem);
    }
}

.hall-admin-preview {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hall-admin-preview img,
.admin-hall-thumb {
    aspect-ratio: 1;
    border-radius: 0.7rem;
    object-fit: cover;
}

.hall-admin-preview img {
    height: 6rem;
    width: 6rem;
}

.hall-admin-preview span {
    color: var(--muted);
}

.admin-hall-thumb {
    height: 3.4rem;
    width: 3.4rem;
}

.mvps-panel {
    display: grid;
    gap: 1.2rem;
}

.mvps-panel__header {
    align-items: start;
    display: grid;
    gap: 1rem;
}

.mvps-panel__scroll {
    max-height: min(72vh, 58rem);
    overflow: auto;
    padding-right: 0.2rem;
}

.mvp-year-list {
    display: grid;
    gap: 1rem;
}

.mvp-year-card {
    background: linear-gradient(180deg, #fbfdff, #f2f7fc);
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 1.2rem;
    box-shadow: 0 12px 28px rgba(11, 32, 63, 0.06);
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.mvp-year-card__header {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: space-between;
}

.mvp-year-card__header h3 {
    color: #123761;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.3rem + 1.2vw, 3rem);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.mvp-year-card__meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mvp-year-card__sections {
    display: grid;
    gap: 1rem;
}

.mvp-year-card__section {
    display: grid;
    gap: 0.7rem;
}

.mvp-year-card__label {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.09rem;
    text-transform: uppercase;
}

.mvp-entry-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.mvp-entry-card {
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 1rem;
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
}

.mvp-entry-card--mvp {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    box-shadow: 0 12px 26px rgba(11, 32, 63, 0.05);
}

.mvp-entry-card--runnerup {
    background: rgba(255, 255, 255, 0.72);
}

.mvp-entry-card__badge {
    color: var(--accent-red-deep);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.09rem;
    text-transform: uppercase;
}

.mvp-entry-card h4 {
    color: #102849;
    font-size: 1.2rem;
    line-height: 1.15;
}

.mvp-entry-card__team {
    color: var(--muted);
    font-weight: 700;
}

.mvp-entry-card__stats {
    line-height: 1.6;
}

.mvp-placeholder-card {
    background: rgba(18, 55, 97, 0.05);
    border: 1px dashed rgba(18, 55, 97, 0.24);
    border-radius: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
}

.pitching-panel {
    display: grid;
    gap: 1.2rem;
}

.pitching-panel__header {
    align-items: start;
    display: grid;
    gap: 1rem;
}

.pitching-panel__scroll {
    max-height: min(72vh, 58rem);
    overflow: auto;
    padding-right: 0.2rem;
}

.pitching-year-list {
    display: grid;
    gap: 1rem;
}

.pitching-year-card {
    background: linear-gradient(180deg, #fbfdff, #eef5fc);
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 1.2rem;
    box-shadow: 0 12px 28px rgba(11, 32, 63, 0.06);
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.pitching-year-card__header {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: space-between;
}

.pitching-year-card__header h3 {
    color: #123761;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.3rem + 1.2vw, 3rem);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.pitching-year-card__meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pitching-entry-grid,
.pitching-placeholder-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.pitching-entry-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 1rem;
    box-shadow: 0 12px 26px rgba(11, 32, 63, 0.05);
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.pitching-entry-card__badge {
    color: var(--accent-red-deep);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.09rem;
    text-transform: uppercase;
}

.pitching-entry-card h4 {
    color: #102849;
    font-size: 1.2rem;
    line-height: 1.15;
}

.pitching-entry-card__team {
    color: var(--muted);
    font-weight: 700;
}

.pitching-entry-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.pitching-stat-pill {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(18, 55, 97, 0.1);
    border-radius: 999px;
    display: grid;
    gap: 0.15rem;
    min-width: 7.5rem;
    padding: 0.65rem 0.85rem;
}

.pitching-stat-pill span {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.pitching-stat-pill strong {
    color: var(--navy);
    font-size: 1rem;
}

.pitching-entry-card__runnerups {
    background: rgba(18, 55, 97, 0.05);
    border: 1px solid rgba(18, 55, 97, 0.08);
    border-radius: 0.95rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0.95rem;
}

.pitching-entry-card__runnerups span {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.07rem;
    text-transform: uppercase;
}

.pitching-entry-card__missing,
.pitching-entry-card__note,
.pitching-entry-card__runnerups p {
    line-height: 1.55;
}

.pitching-entry-card__missing,
.pitching-entry-card__note {
    color: var(--muted);
}

.pitching-placeholder-card {
    background: rgba(18, 55, 97, 0.05);
    border: 1px dashed rgba(18, 55, 97, 0.24);
    border-radius: 1rem;
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
}

.batting-panel {
    display: grid;
    gap: 1.2rem;
}

.batting-panel__header {
    align-items: start;
    display: grid;
    gap: 1rem;
}

.batting-panel__scroll {
    max-height: min(72vh, 58rem);
    overflow: auto;
    padding-right: 0.2rem;
}

.batting-year-list {
    display: grid;
    gap: 1rem;
}

.batting-year-card {
    background: linear-gradient(180deg, #fffdf7, #f7f0df);
    border: 1px solid rgba(55, 45, 20, 0.08);
    border-radius: 1.2rem;
    box-shadow: 0 12px 28px rgba(48, 35, 10, 0.08);
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.batting-year-card__header {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: space-between;
}

.batting-year-card__header h3 {
    color: #5a3515;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.3rem + 1.2vw, 3rem);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.batting-year-card__meta {
    color: #6a6558;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.batting-entry-grid,
.batting-placeholder-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.batting-entry-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 241, 0.98));
    border: 1px solid rgba(55, 45, 20, 0.08);
    border-radius: 1rem;
    box-shadow: 0 12px 26px rgba(48, 35, 10, 0.06);
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.batting-entry-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.batting-entry-card__badge,
.batting-entry-card__award {
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.08rem;
    padding: 0.3rem 0.7rem;
    text-transform: uppercase;
}

.batting-entry-card__badge {
    background: rgba(126, 48, 23, 0.1);
    color: #7e3017;
}

.batting-entry-card__award {
    background: rgba(198, 149, 49, 0.16);
    color: #7a5512;
}

.batting-entry-card h4 {
    color: #3c2411;
    font-size: 1.2rem;
    line-height: 1.15;
}

.batting-entry-card__team {
    color: #6a6558;
    font-weight: 700;
}

.batting-entry-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.batting-stat-pill {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(55, 45, 20, 0.1);
    border-radius: 999px;
    display: grid;
    gap: 0.15rem;
    min-width: 7rem;
    padding: 0.65rem 0.85rem;
}

.batting-stat-pill span {
    color: #6a6558;
    font-size: 0.72rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.batting-stat-pill strong {
    color: #5a3515;
    font-size: 1rem;
}

.batting-entry-card__runnerups {
    background: rgba(90, 53, 21, 0.05);
    border: 1px solid rgba(90, 53, 21, 0.08);
    border-radius: 0.95rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0.95rem;
}

.batting-entry-card__runnerups span {
    color: #5a3515;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.07rem;
    text-transform: uppercase;
}

.batting-entry-card__missing,
.batting-entry-card__runnerups p {
    line-height: 1.55;
}

.batting-entry-card__missing {
    color: #6a6558;
}

.batting-placeholder-card {
    background: rgba(90, 53, 21, 0.05);
    border: 1px dashed rgba(90, 53, 21, 0.24);
    border-radius: 1rem;
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
}

@media (max-width: 1280px) {
    .page-section--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .site-header__bar {
        gap: 0.85rem;
    }

    .brandmark__title {
        font-size: clamp(1.75rem, 3.5vw, 3rem);
    }

    .primary-nav {
        gap: 0.2rem;
    }

    .primary-nav__link,
    .primary-nav__group summary {
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
    }
}

@media (max-width: 720px) {
    .pickem-choice-row {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .schedule-board__game,
    .schedule-day__game,
    .timeline__game,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-section--grid,
    .team-hero__stats,
    .hero-panel__aside,
    .game-scoreboard {
        grid-template-columns: 1fr;
    }

    .submission-details {
        grid-template-columns: 1fr;
    }

    .stats-viewer__tabs {
        grid-template-columns: 1fr;
    }

    .game-scoreboard__team {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .game-scoreboard__team strong {
        grid-column: 1 / -1;
    }

    .history-table,
    .history-table thead,
    .history-table tbody,
    .history-table tr,
    .history-table th,
    .history-table td {
        display: block;
    }

    .history-table thead {
        display: none;
    }

    .history-table tr {
        border-bottom: 1px solid rgba(16, 40, 73, 0.1);
        padding: 0.9rem 0;
    }

    .history-table__year {
        border-radius: 0.75rem;
        margin-bottom: 0.6rem;
        width: fit-content;
    }

    .history-nav {
        flex-direction: column;
    }
}

.pickem-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pickem-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pickem-rules-list {
    margin: 0;
    padding-left: 1.2rem;
}

.pickem-rules-list li + li {
    margin-top: 0.45rem;
}

.pickem-meta {
    color: var(--muted-ink, #5a6475);
    margin: 0;
}

.pickem-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.pickem-table {
    min-width: 72rem;
}

.pickem-table th,
.pickem-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.pickem-table td {
    vertical-align: top;
}

.pickem-table__date,
.pickem-table__time,
.pickem-table__status {
    white-space: nowrap;
}

.pickem-table__venue,
.pickem-table__pick,
.pickem-table__result,
.pickem-matchup__teams,
.pickem-choice__label {
    overflow-wrap: normal;
    word-break: normal;
}

.pickem-matchup {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 16rem;
}

.pickem-matchup__teams {
    font-weight: 700;
    line-height: 1.4;
}

.pickem-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pickem-choice {
    align-items: center;
    display: inline-flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: center;
    min-width: 8.5rem;
    padding: 0.85rem 0.75rem;
    text-align: center;
    white-space: normal;
}

.pickem-choice--selected {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22) inset;
}

.pickem-choice__logo,
.pickem-choice__fallback {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 1rem;
    height: 4rem;
    object-fit: contain;
    padding: 0.35rem;
    width: 4rem;
}

.pickem-choice__fallback {
    align-items: center;
    color: var(--navy);
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 1.1rem;
    justify-content: center;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.pickem-choice__label {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 8rem;
    text-wrap: balance;
}

.pickem-clear {
    min-width: 6rem;
}

.pickem-save-row {
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (max-width: 1080px) {
    .pickem-grid {
        grid-template-columns: 1fr;
    }

    .pickem-header-actions {
        justify-content: flex-start;
    }
}
