/*
 * Sports League Management by TreyBraid – Hoops
 * Basketball League Management
 * Copyright (C) 2026 Sports League Management by TreyBraid
 * Sports League Management by TreyBraid – Hoops - GNU General Public License version 2; see LICENSE.txt
 */
/**
 * Hoops 2.0.0 frontend Bootstrap 5 modernization.
 * Applied to legacy data tables at runtime by hoops-modern.js.
 */
.hoops-data-card {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .75rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .125rem .35rem rgba(0, 0, 0, .06);
}

.hoops-data-card .table-responsive {
    margin: 0;
}

.hoops-modern-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: collapse;
    vertical-align: middle;
}

.hoops-modern-table > :not(caption) > * > * {
    padding: .7rem .75rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.hoops-modern-table thead th,
.hoops-modern-table tr:first-child th,
.hoops-modern-table tr.sectiontableheader td {
    font-weight: 700;
    white-space: nowrap;
    background: var(--bs-tertiary-bg, #f3f4f6);
}

.hoops-modern-table tbody tr:last-child > * {
    border-bottom: 0;
}

.hoops-modern-table tbody tr:hover > * {
    background-color: rgba(0, 0, 0, .035);
}

.hoops-modern-table img {
    max-width: 100%;
    height: auto;
}

.hoops-modern-table .btn,
.hoops-modern-table select,
.hoops-modern-table input {
    max-width: 100%;
}

.hoops-modern-table.vcalendar {
    min-width: 720px;
}

.hoops-modern-table.vcalendar td,
.hoops-modern-table.vcalendar th {
    min-width: 92px;
    vertical-align: top;
}

.hoops-section-card {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .75rem;
    background: var(--bs-body-bg, #fff);
}

@media (max-width: 767.98px) {
    .hoops-data-card {
        border-radius: .5rem;
    }

    .hoops-modern-table {
        min-width: 640px;
        font-size: .925rem;
    }

    .hoops-modern-table > :not(caption) > * > * {
        padding: .6rem;
    }
}

@media print {
    .hoops-data-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .hoops-data-card .table-responsive {
        overflow: visible !important;
    }

    .hoops-modern-table {
        min-width: 0 !important;
        font-size: 10pt;
    }
}

/* Hoops 2.0.0: responsive roster colgroup and utility classes */
.hoops-roster-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hoops-roster-table {
    width: 100%;
    min-width: 920px;
    table-layout: auto;
}

.hoops-roster-table th,
.hoops-roster-table td {
    vertical-align: middle;
}

/* Content-aware column utilities: no fixed percentage widths. */
.hoops-roster-table col.hoops-col-photo { width: 1%; }
.hoops-roster-table col.hoops-col-number { width: 1%; }
.hoops-roster-table col.hoops-col-name { width: auto; }
.hoops-roster-table col.hoops-col-position { width: 1%; }
.hoops-roster-table col.hoops-col-measure { width: 1%; }
.hoops-roster-table col.hoops-col-age { width: 1%; }
.hoops-roster-table col.hoops-col-school { width: auto; }
.hoops-roster-table col.hoops-col-experience { width: auto; }

.hoops-roster-photo,
.hoops-roster-no,
.hoops-roster-position,
.hoops-roster-height,
.hoops-roster-weight,
.hoops-roster-age {
    white-space: nowrap;
}

.hoops-roster-photo { min-width: 68px; }
.hoops-roster-no { min-width: 52px; text-align: center; font-weight: 700; }
.hoops-roster-first-name { min-width: 105px; }
.hoops-roster-last-name { min-width: 115px; }
.hoops-roster-position { min-width: 74px; }
.hoops-roster-height { min-width: 70px; text-align: center; }
.hoops-roster-weight { min-width: 76px; text-align: center; }
.hoops-roster-age { min-width: 50px; text-align: center; }
.hoops-roster-school { min-width: 190px; }
.hoops-roster-experience { min-width: 140px; }

@media (max-width: 991.98px) {
    .hoops-roster-table { min-width: 860px; }
}

@media (max-width: 767.98px) {
    .hoops-roster-table { min-width: 820px; }
    .hoops-roster-table th,
    .hoops-roster-table td { padding: .55rem .65rem; }
}

@media print {
    .hoops-roster-responsive { overflow: visible !important; }
    .hoops-roster-table {
        min-width: 0 !important;
        table-layout: auto;
        font-size: 9pt;
    }
    .hoops-roster-table th,
    .hoops-roster-table td {
        padding: .25rem .35rem;
    }
}


/* Configurable frontend table headers: roster, schedule, and standings. */
.hoops-roster-table thead th,
.hoops-roster-table > tbody > tr:first-child > th,
.hoops-schedule-table thead th,
.hoops-schedule-table > tbody > tr:first-child > th,
.hoops-standings-table thead th,
.hoops-standings-table > tbody > tr:first-child > th {
    background-color: var(--hoops-table-header-bg, #212529) !important;
    color: var(--hoops-table-header-color, #fff) !important;
    font-size: var(--hoops-table-header-size, 14px) !important;
}

.hoops-roster-table th a,
.hoops-schedule-table th a,
.hoops-standings-table th a {
    color: inherit !important;
}

/* Hoops 2.0.0: responsive team page, original-resolution logo and navigation card. */
.hoops-team-page {
    width: 100%;
    max-width: 100%;
}

.hoops-team-title {
    overflow-wrap: anywhere;
}

.hoops-team-heading-row {
    width: 100%;
}

.hoops-team-header-actions {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.hoops-team-map-section {
    width: 100%;
    max-width: 100%;
}

.hoops-team-map-wrap {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .85rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.hoops-team-map {
    display: block;
    width: 100%;
    height: clamp(420px, 52vw, 620px);
    min-height: 420px;
    border: 0;
}

.hoops-team-overview {
    display: grid;
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.hoops-team-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: clamp(1rem, 2.5vw, 2rem);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .85rem;
    background: var(--bs-body-bg, #fff);
}

.hoops-team-logo {
    display: block;
    width: 100%;
    max-width: 360px;
    max-height: 360px;
    object-fit: contain;
}

.hoops-team-details {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.hoops-team-contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hoops-team-contact-card,
.hoops-team-arena,
.hoops-team-navigation-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hoops-team-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .7rem;
    padding: 0;
}

.hoops-team-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    font-weight: 600;
    text-decoration: none;
}

.hoops-team-content {
    display: grid;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.hoops-team-photo {
    display: block;
    width: 100%;
    height: auto;
}

.hoops-team-accomplishments {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hoops-team-accomplishments img,
.hoops-team-accomplishments iframe,
.hoops-team-accomplishments video {
    max-width: 100%;
}

/* Team profile navigation and biographies share the details column. */
.hoops-team-details:only-child {
    grid-column: 1 / -1;
}

.hoops-team-navigation-group {
    display: grid;
    gap: .5rem;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}

/* Team profile staff biographies: reuse editor markup and size only its images. */
.hoops-team-staff-content {
    display: flow-root;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hoops-team-staff-content img {
    float: left !important;
    width: 280px !important;
    max-width: calc(100% - 10px) !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 10px 10px 0 !important;
}

@media (max-width: 767.98px) {
    .hoops-team-overview,
    .hoops-team-content {
        grid-template-columns: 1fr;
    }

    .hoops-team-logo-wrap {
        min-height: 0;
    }

    .hoops-team-logo {
        max-width: min(82vw, 340px);
    }

    .hoops-team-contacts {
        grid-template-columns: 1fr;
    }

    .hoops-team-heading-row {
        align-items: flex-start !important;
    }

    .hoops-team-header-actions {
        width: 100%;
    }

    .hoops-team-header-actions .hoops-action-button {
        margin-left: auto;
    }

    .hoops-team-map {
        height: 420px;
    }

    .hoops-team-links {
        align-items: stretch;
        gap: .5rem;
    }

    .hoops-team-links a {
        flex: 1 1 calc(50% - .5rem);
        justify-content: center;
        padding: .5rem .7rem;
        border: 1px solid var(--bs-border-color, #dee2e6);
        border-radius: .4rem;
        background: var(--bs-body-bg, #fff);
        text-align: center;
    }

    .hoops-team-link-separator {
        display: none;
    }
}

@media (max-width: 420px) {
    .hoops-team-links a {
        flex-basis: 100%;
    }
}


/* Hoops 2.0.0: responsive frontend standings data grid. */
.hoops-standings-page {
    width: 100%;
    max-width: 100%;
}

.hoops-standings-page.card {
    overflow: hidden;
}

.hoops-standings-page > .card-header {
    background: var(--hoops-table-header-bg, #212529);
    color: var(--hoops-table-header-color, #fff);
}

.hoops-standings-page > .card-header .hoops-page-title {
    font-size: var(--hoops-table-header-size, 20px);
    font-weight: var(--hoops-table-header-weight, 700);
}

.hoops-standings-division {
    margin-block: 1.25rem 2rem;
}

.hoops-standings-division h3 {
    font-size: var(--hoops-standings-section-size, 1.05rem);
    font-weight: var(--hoops-standings-section-weight, 700);
}

.hoops-standings-grid {
    --hoops-standings-columns: 70px minmax(220px, 2fr) repeat(7, minmax(55px, 1fr));
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .75rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .125rem .35rem rgba(0, 0, 0, .06);
}

.hoops-standings-grid.no-ties {
    --hoops-standings-columns: 70px minmax(220px, 2fr) repeat(6, minmax(55px, 1fr));
}

.hoops-standings-header,
.hoops-standings-row {
    display: grid;
    grid-template-columns: var(--hoops-standings-columns);
    align-items: stretch;
}

.hoops-standings-header {
    background: var(--hoops-table-header-bg, #212529);
    color: var(--hoops-table-header-color, #fff);
    font-size: var(--hoops-table-header-size, 14px);
    font-weight: var(--hoops-table-header-weight, 700);
    line-height: 1.25;
}

.hoops-standings-header > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px .65rem;
    text-align: center;
}

.hoops-standings-header > div:nth-child(2) {
    justify-content: flex-start;
    text-align: left;
}

.hoops-standings-row {
    min-width: 0;
    font-size: var(--hoops-table-row-size, 14px);
    font-weight: var(--hoops-table-row-weight, 400);
    line-height: 1.45;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.hoops-standings-row:nth-child(even) {
    background: rgba(0, 0, 0, .025);
}

.hoops-standings-row:hover {
    background: rgba(13, 110, 253, .07);
    box-shadow: inset 4px 0 0 rgba(13, 110, 253, .45);
}

.hoops-standings-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 10px .65rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.hoops-standings-logo {
    justify-content: center;
}

.hoops-standings-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hoops-standings-logo img,
.hoops-standings-logo-placeholder {
    display: block;
    width: 56px;
    height: 56px;
    max-width: 100%;
    object-fit: contain;
}

.hoops-standings-logo-placeholder {
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
}

.hoops-standings-team {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hoops-standings-team-name {
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hoops-standings-team-location {
    margin-top: .18rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .86em;
    line-height: 1.25;
}

.hoops-standings-stat {
    justify-content: center;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 991.98px) {
    .hoops-standings-header {
        display: none;
    }

    .hoops-standings-body {
        display: grid;
        gap: .9rem;
        padding: .9rem;
    }

    .hoops-standings-grid {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .hoops-standings-row,
    .hoops-standings-grid.no-ties .hoops-standings-row {
        grid-template-columns: 70px minmax(0, 1fr) repeat(4, minmax(54px, auto));
        border: 1px solid var(--bs-border-color, #dee2e6);
        border-radius: .75rem;
        background: var(--bs-body-bg, #fff);
        box-shadow: 0 .125rem .3rem rgba(0, 0, 0, .05);
        overflow: hidden;
    }

    .hoops-standings-cell {
        border-top: 0;
    }

    .hoops-standings-logo {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .hoops-standings-team {
        grid-column: 2 / -1;
        grid-row: 1;
        border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    }

    .hoops-standings-stat {
        position: relative;
        flex-direction: column;
        gap: .12rem;
        padding-top: .45rem;
        padding-bottom: .6rem;
    }

    .hoops-standings-stat::before {
        content: attr(data-label);
        color: var(--bs-secondary-color, #6c757d);
        font-size: .72em;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
    }
}

@media (max-width: 575.98px) {
    .hoops-standings-body {
        gap: .8rem;
        padding: 0;
    }

    .hoops-standings-row,
    .hoops-standings-grid.no-ties .hoops-standings-row {
        grid-template-columns: 68px repeat(4, minmax(0, 1fr));
    }

    .hoops-standings-logo {
        grid-column: 1;
        grid-row: 1;
        padding: .75rem .4rem;
        border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    }

    .hoops-standings-logo img,
    .hoops-standings-logo-placeholder {
        width: 48px;
        height: 48px;
    }

    .hoops-standings-team {
        grid-column: 2 / -1;
        grid-row: 1;
        min-height: 72px;
    }

    .hoops-standings-stat {
        min-width: 0;
        border-top: 1px solid var(--bs-border-color, #dee2e6);
    }
}

/* Hoops 2.0.0: table-free responsive schedule and roster data grids. */
.hoops-schedule-page,.hoops-roster-page{width:100%;max-width:100%}
.hoops-schedule-nav{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;margin:0 0 1rem}
.hoops-schedule-nav>a,.hoops-schedule-nav>button{display:inline-flex;align-items:center;justify-content:center;min-height:2.25rem;padding:.4rem .75rem;border:1px solid var(--bs-border-color,#dee2e6);border-radius:.4rem;background:var(--bs-body-bg,#fff);text-decoration:none;font-weight:600}
.hoops-schedule-grid{--hoops-schedule-columns:minmax(110px,.85fr) minmax(150px,1.15fr) minmax(150px,1.2fr) minmax(80px,.6fr) minmax(90px,.65fr) minmax(300px,2.15fr);width:100%;overflow:hidden;border:1px solid var(--bs-border-color,#dee2e6);border-radius:.75rem;background:var(--bs-body-bg,#fff);box-shadow:0 .125rem .35rem rgba(0,0,0,.06)}
.hoops-schedule-grid.hoops-schedule-league{--hoops-schedule-columns:minmax(110px,.8fr) minmax(130px,1fr) minmax(130px,1fr) minmax(145px,1.05fr) minmax(80px,.55fr) minmax(90px,.6fr) minmax(300px,2.15fr)}
.hoops-schedule-print.hoops-schedule-team{--hoops-schedule-columns:minmax(125px,1fr) minmax(180px,1.35fr) minmax(180px,1.45fr) minmax(90px,.7fr) minmax(100px,.8fr)}
.hoops-schedule-print.hoops-schedule-league{--hoops-schedule-columns:minmax(125px,1fr) minmax(145px,1.2fr) minmax(145px,1.2fr) minmax(180px,1.45fr) minmax(90px,.7fr) minmax(100px,.8fr)}
.hoops-schedule-header,.hoops-schedule-row{display:grid;grid-template-columns:var(--hoops-schedule-columns);align-items:stretch}
.hoops-schedule-header{background:var(--hoops-schedule-header-bg,var(--hoops-table-header-bg,#212529));color:var(--hoops-schedule-header-color,var(--hoops-table-header-color,#fff));font-size:var(--hoops-schedule-header-size,var(--hoops-table-header-size,14px));font-weight:var(--hoops-schedule-header-weight,700)}
.hoops-schedule-header>div{display:flex;align-items:center;justify-content:flex-start;min-width:0;padding:12px .65rem;text-align:left}
.hoops-schedule-row{font-size:var(--hoops-schedule-content-size,var(--hoops-table-row-size,14px));font-weight:var(--hoops-schedule-content-weight,400);line-height:1.45;transition:background-color .16s ease,box-shadow .16s ease}
.hoops-schedule-row:nth-child(even){background:rgba(0,0,0,.025)}
.hoops-schedule-row:hover{background:rgba(13,110,253,.07);box-shadow:inset 4px 0 0 rgba(13,110,253,.45)}
.hoops-schedule-cell{display:flex;align-items:center;justify-content:center;min-width:0;padding:12px .65rem;border-top:1px solid var(--bs-border-color,#dee2e6);overflow-wrap:anywhere;text-align:center}
.hoops-schedule-date,.hoops-schedule-team-cell,.hoops-schedule-location{justify-content:flex-start;text-align:left}
.hoops-game-links{display:flex;flex-wrap:nowrap;align-items:center;gap:.45rem;justify-content:flex-start;white-space:nowrap}.hoops-game-links .btn{flex:0 0 auto;padding:.45rem .65rem;font-size:.78rem;font-weight:700;line-height:1.15}
.hoops-roster-topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.hoops-roster-brand{display:flex;align-items:center;gap:1rem;min-width:0}
.hoops-roster-team-logo{display:block;width:clamp(72px,10vw,140px);height:clamp(72px,10vw,140px);object-fit:contain;flex:0 0 auto}
.hoops-roster-media-links,.hoops-roster-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.4rem}
.hoops-roster-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}
.hoops-roster-contact-card{display:flex;flex-direction:column;gap:.25rem;padding:1rem;border:1px solid var(--bs-border-color,#dee2e6);border-radius:.7rem;background:var(--bs-body-bg,#fff)}
.hoops-roster-contact-card h2{margin:0 0 .35rem;font-size:1.1rem}
.hoops-roster-grid{width:100%;overflow:hidden;border:1px solid var(--bs-border-color,#dee2e6);border-radius:.75rem;background:var(--bs-body-bg,#fff);box-shadow:0 .125rem .35rem rgba(0,0,0,.06)}
.hoops-roster-header,.hoops-roster-row{display:grid;grid-template-columns:var(--hoops-roster-columns);align-items:stretch}
.hoops-roster-header{background:var(--hoops-table-header-bg,#212529);color:var(--hoops-table-header-color,#fff);font-size:var(--hoops-table-header-size,14px);font-weight:700}
.hoops-roster-header>div{display:flex;align-items:center;justify-content:flex-start;min-width:0;padding:12px .55rem;text-align:left}
.hoops-roster-row{font-size:var(--hoops-table-row-size,14px);line-height:1.4;transition:background-color .16s ease,box-shadow .16s ease}
.hoops-roster-row:nth-child(even){background:rgba(0,0,0,.025)}
.hoops-roster-row:hover{background:rgba(13,110,253,.07);box-shadow:inset 4px 0 0 rgba(13,110,253,.45)}
.hoops-roster-cell{display:flex;align-items:center;justify-content:center;min-width:0;padding:10px .55rem;border-top:1px solid var(--bs-border-color,#dee2e6);overflow-wrap:anywhere;text-align:center}
.hoops-roster-first,.hoops-roster-last,.hoops-roster-school,.hoops-roster-experience{justify-content:flex-start;text-align:left}
.hoops-roster-photo img{display:block;width:56px;height:56px;object-fit:cover;border-radius:.35rem}
.hoops-injured-reserve{margin-top:2rem}
.hoops-calendar{border:1px solid var(--bs-border-color,#dee2e6);border-radius:.75rem;overflow:hidden;background:var(--bs-body-bg,#fff)}
.hoops-calendar-caption{display:flex;align-items:center;justify-content:center;gap:1rem;padding:.85rem;background:var(--hoops-table-header-bg,#212529);color:var(--hoops-table-header-color,#fff);font-size:var(--hoops-table-header-size,14px)}
.hoops-calendar-caption a{color:inherit;font-size:1.35em;text-decoration:none}
.hoops-calendar-weekdays,.hoops-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.hoops-calendar-weekdays>div{padding:.6rem .35rem;background:rgba(0,0,0,.05);font-weight:700;text-align:center}
.hoops-calendar-day{display:flex;flex-direction:column;gap:.3rem;min-height:110px;padding:.55rem;border-top:1px solid var(--bs-border-color,#dee2e6);border-right:1px solid var(--bs-border-color,#dee2e6);color:inherit;text-decoration:none;overflow-wrap:anywhere}
.hoops-calendar-day:nth-child(7n){border-right:0}.hoops-calendar-day.is-empty{background:rgba(0,0,0,.025)}
.hoops-calendar-number{font-weight:700}.hoops-calendar-event{font-size:.82em;line-height:1.25}
@media(max-width:991.98px){
.hoops-schedule-header,.hoops-roster-header{display:none}
.hoops-schedule-grid,.hoops-roster-grid{overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.hoops-schedule-body,.hoops-roster-body{display:grid;gap:.9rem}
.hoops-schedule-row,.hoops-schedule-grid.hoops-schedule-league .hoops-schedule-row,.hoops-roster-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--bs-border-color,#dee2e6);border-radius:.75rem;background:var(--bs-body-bg,#fff);box-shadow:0 .125rem .3rem rgba(0,0,0,.05);overflow:hidden}
.hoops-schedule-cell,.hoops-roster-cell{position:relative;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.2rem;text-align:left;border-top:1px solid var(--bs-border-color,#dee2e6)}
.hoops-schedule-cell::before,.hoops-roster-cell::before{content:attr(data-label);color:var(--bs-secondary-color,#6c757d);font-size:.72em;font-weight:700;line-height:1;text-transform:uppercase}
.hoops-schedule-date,.hoops-schedule-team-cell{grid-column:span 1}.hoops-game-links{align-items:flex-start;flex-wrap:wrap;white-space:normal}
.hoops-roster-photo{grid-row:span 2;align-items:center;justify-content:center}.hoops-roster-photo::before{display:none}.hoops-roster-photo img{width:72px;height:72px}
}
@media(max-width:575.98px){
.hoops-schedule-row,.hoops-schedule-grid.hoops-schedule-league .hoops-schedule-row,.hoops-roster-row{grid-template-columns:1fr}
.hoops-roster-topbar,.hoops-roster-brand{align-items:flex-start}.hoops-roster-brand{width:100%}.hoops-roster-actions{width:100%}
.hoops-roster-contacts{grid-template-columns:1fr}
.hoops-roster-photo{grid-row:auto}.hoops-roster-photo img{width:64px;height:64px}
.hoops-calendar-weekdays{display:none}.hoops-calendar-days{grid-template-columns:1fr}.hoops-calendar-day.is-empty{display:none}.hoops-calendar-day{min-height:0;border-right:0}
}
@media print{
.hoops-schedule-nav,.hoops-schedule-actions,.hoops-roster-actions{display:none!important}
.hoops-schedule-header,.hoops-roster-header{display:grid!important}
.hoops-schedule-body,.hoops-roster-body{display:block!important}
.hoops-schedule-row,.hoops-roster-row{display:grid!important;grid-template-columns:var(--hoops-schedule-columns);break-inside:avoid;border:0;border-radius:0;box-shadow:none}
.hoops-roster-row{grid-template-columns:var(--hoops-roster-columns)}
.hoops-schedule-cell,.hoops-roster-cell{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;border-top:1px solid #bbb!important;padding:6px!important;font-size:10px!important}
.hoops-schedule-cell::before,.hoops-roster-cell::before{display:none!important}
}

/* Hoops 2.0.0: responsive, table-free frontend data grids */
.hoops-responsive-grid {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.25rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .65rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
}
.hoops-grid-caption {
    padding: .8rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}
.hoops-grid-head,
.hoops-grid-body,
.hoops-grid-foot { display: block; width: 100%; }
.hoops-grid-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(90px, 1fr);
    align-items: stretch;
    width: 100%;
}
.hoops-grid-head .hoops-grid-row,
.hoops-grid-row:has(.hoops-grid-heading) {
    background: var(--hoops-header-bg, #212529);
    color: var(--hoops-header-color, #fff);
}
.hoops-grid-body .hoops-grid-row:nth-child(even) { background: rgba(0,0,0,.025); }
.hoops-grid-body .hoops-grid-row:hover { background: rgba(0,0,0,.055); }
.hoops-grid-cell {
    min-width: 0;
    padding: .7rem .75rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    overflow-wrap: anywhere;
    text-align: left;
    display: flex;
    align-items: center;
}
.hoops-grid-heading {
    border-top: 0;
    font-weight: 700;
    text-align: left;
    justify-content: flex-start;
}
.hoops-grid-cell img { max-width: 100%; height: auto; object-fit: contain; }
.hoops-grid-cell input,
.hoops-grid-cell select,
.hoops-grid-cell textarea { max-width: 100%; }

/* Keep schedule and roster content aligned with their headers. */
.hoops-schedule-cell,
.hoops-roster-cell {
    justify-content: flex-start !important;
    text-align: left !important;
}

@media (max-width: 991.98px) {
    .hoops-grid-head { display: none; }
    .hoops-responsive-grid { border: 0; background: transparent; overflow: visible; }
    .hoops-grid-body { display: grid; gap: .85rem; }
    .hoops-grid-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: auto;
        border: 1px solid var(--bs-border-color, #dee2e6);
        border-radius: .65rem;
        overflow: hidden;
        background: var(--bs-body-bg, #fff);
        box-shadow: 0 .125rem .35rem rgba(0,0,0,.06);
    }
    .hoops-grid-cell {
        border-top: 1px solid var(--bs-border-color, #dee2e6);
        min-height: 2.75rem;
    }
    .hoops-grid-heading { display: none; }
}
@media (max-width: 575.98px) {
    .hoops-grid-row { grid-template-columns: 1fr; }
    .hoops-grid-cell { width: 100%; }
}
@media print {
    .hoops-responsive-grid { border: 0; }
    .hoops-grid-row { break-inside: avoid; }
}


/* Hoops 2.0.0 frontend box-score layout and color correction. */
.hoops-frontend-boxscore .hoops-boxscore-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
    margin-block: 1rem 1.5rem;
}
.hoops-frontend-boxscore .hoops-boxscore-panel {
    min-width: 0;
    align-self: start;
}
.hoops-frontend-boxscore .hoops-boxscore-panel > .hoops-responsive-grid {
    margin: 0;
    height: auto;
}

/* Only genuine box-score headers receive the configured dark header treatment. */
.hoops-frontend-boxscore .hoops-boxscore-header,
.hoops-frontend-boxscore .hoops-boxscore-header *,
.hoops-frontend-boxscore .hoops-grid-head .hoops-grid-cell,
.hoops-frontend-boxscore .hoops-grid-head .hoops-grid-cell * {
    color: #fff !important;
}

/* Regular box-score content remains readable on a light background. */
.hoops-frontend-boxscore .hoops-grid-cell:not(.hoops-boxscore-header):not(.hoops-comparison-major) {
    color: #000;
}
.hoops-frontend-boxscore .hoops-grid-cell:not(.hoops-boxscore-header):not(.hoops-comparison-major) a {
    color: inherit;
}
.hoops-frontend-boxscore .hoops-grid-cell:not(.hoops-boxscore-header):not(.hoops-comparison-major) a:hover,
.hoops-frontend-boxscore .hoops-grid-cell:not(.hoops-boxscore-header):not(.hoops-comparison-major) a:focus {
    color: #b00000;
}

/* Major Team Stats Comparison rows are white, not dark header rows. */
.hoops-frontend-boxscore .hoops-comparison-major {
    background: #fff !important;
    color: #000 !important;
    font-weight: 700;
}
.hoops-frontend-boxscore .hoops-comparison-major * {
    color: #000 !important;
}

/* Keep comparison columns aligned and each section level with its neighbor. */
.hoops-frontend-boxscore .hoops-boxscore-comparison-panel .hoops-grid-row {
    grid-template-columns: minmax(180px, 2fr) minmax(70px, .75fr) minmax(70px, .75fr);
}
.hoops-frontend-boxscore .hoops-boxscore-summary-panel .hoops-grid-row {
    align-items: stretch;
}

@media (max-width: 991.98px) {
    .hoops-frontend-boxscore .hoops-boxscore-panels {
        grid-template-columns: 1fr;
    }
    .hoops-frontend-boxscore .hoops-boxscore-comparison-panel .hoops-grid-row {
        grid-template-columns: minmax(140px, 1.5fr) repeat(2, minmax(60px, .75fr));
    }
}


/* Hoops 2.0.0 box-score line score and team-stat headers. */
.hoops-linescore-card {
    margin: 1rem 0 1.5rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
}
.hoops-linescore-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    background: var(--hoops-header-bg, #212529);
    color: var(--hoops-header-color, #fff);
}
.hoops-linescore-meta h2 { margin: 0; color: inherit; font-size: 1.15rem; }
.hoops-linescore-date { display: flex; flex-direction: column; text-align: right; color: inherit; }
.hoops-linescore-grid { --line-cols: minmax(180px, 2fr) repeat(5, minmax(48px, .55fr)); }
.hoops-linescore-grid.has-overtime { --line-cols: minmax(180px, 2fr) repeat(6, minmax(48px, .55fr)); }
.hoops-linescore-row { display: grid; grid-template-columns: var(--line-cols); align-items: stretch; }
.hoops-linescore-cell { padding: .7rem .65rem; border-top: 1px solid rgba(0,0,0,.12); text-align: center; display: flex; align-items: center; justify-content: center; min-width: 0; }
.hoops-linescore-head .hoops-linescore-cell { background: var(--hoops-header-bg, #212529); color: #fff !important; font-weight: 700; border-top: 0; }
.hoops-linescore-team { justify-content: flex-start; text-align: left; }
.hoops-linescore-team a { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; min-width: 0; }
.hoops-linescore-logo img { width: 48px !important; height: 48px !important; max-width: 48px !important; object-fit: contain; }
.hoops-linescore-team-name { font-weight: 700; }
.hoops-linescore-final { font-weight: 800; }

/* Team Statistics headers must remain white regardless of template link styling. */
[id^="fb-"][id$="-stats"] .hoops-grid-heading,
[id^="fb-"][id$="-stats"] .hoops-grid-heading *,
.hoops-team-stats .hoops-grid-heading,
.hoops-team-stats .hoops-grid-heading * {
    color: #fff !important;
}

@media (max-width: 767.98px) {
    .hoops-linescore-meta { align-items: flex-start; flex-direction: column; }
    .hoops-linescore-date { text-align: left; }
    .hoops-linescore-row { grid-template-columns: 1fr; margin: .75rem; border: 1px solid rgba(0,0,0,.12); border-radius: .5rem; overflow: hidden; }
    .hoops-linescore-head { display: none; }
    .hoops-linescore-cell { justify-content: space-between; text-align: right; }
    .hoops-linescore-cell::before { font-weight: 700; margin-right: 1rem; }
    .hoops-linescore-team { justify-content: flex-start; }
    .hoops-linescore-team::before { content: 'Team'; }
    .hoops-linescore-row .hoops-linescore-cell:nth-child(2)::before { content: 'Q1'; }
    .hoops-linescore-row .hoops-linescore-cell:nth-child(3)::before { content: 'Q2'; }
    .hoops-linescore-row .hoops-linescore-cell:nth-child(4)::before { content: 'Q3'; }
    .hoops-linescore-row .hoops-linescore-cell:nth-child(5)::before { content: 'Q4'; }
    .hoops-linescore-grid:not(.has-overtime) .hoops-linescore-row .hoops-linescore-cell:nth-child(6)::before { content: 'Score'; }
    .hoops-linescore-grid.has-overtime .hoops-linescore-row .hoops-linescore-cell:nth-child(6)::before { content: 'OT'; }
    .hoops-linescore-grid.has-overtime .hoops-linescore-row .hoops-linescore-cell:nth-child(7)::before { content: 'Score'; }
}


/* Hoops 2.0.0 box-score alignment and schedule navigation reliability. */
.hoops-frontend-boxscore .hoops-linescore-team-heading {
    justify-content: flex-start !important;
    text-align: left !important;
}
.hoops-frontend-boxscore .hoops-boxscore-summary-panel .hoops-grid-row {
    grid-template-columns: minmax(150px, .9fr) minmax(120px, .8fr) minmax(240px, 2fr) minmax(72px, .55fr) minmax(72px, .55fr);
}
.hoops-frontend-boxscore .hoops-boxscore-summary-panel .hoops-summary-quarter-heading {
    grid-column: 1 / 4;
    justify-content: flex-start;
    text-align: left;
}
.hoops-frontend-boxscore .hoops-boxscore-summary-panel .hoops-summary-score-logo {
    justify-content: center;
    text-align: center;
}
.hoops-frontend-boxscore .hoops-boxscore-summary-panel .hoops-summary-score-logo img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .hoops-frontend-boxscore .hoops-boxscore-summary-panel .hoops-grid-row {
        grid-template-columns: 1fr;
    }
    .hoops-frontend-boxscore .hoops-boxscore-summary-panel .hoops-summary-quarter-heading {
        grid-column: auto;
    }
}


/* Hoops 2.0.0: expandable inline schedule box scores. */
.hoops-schedule-row > .hoops-schedule-boxscore-panel {
    grid-column: 1 / -1;
    width: 100%;
    padding: 1rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    background: #f8f9fa;
}
.hoops-schedule-boxscore-panel[hidden] { display: none !important; }
.hoops-schedule-boxscore-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
    padding: .65rem .8rem;
    border-radius: .5rem;
    background: #212529;
    color: #fff;
}
.hoops-schedule-boxscore-frame {
    display: block;
    width: 100%;
    min-height: 650px;
    border: 0;
    border-radius: .5rem;
    background: #fff;
}
.hoops-game-links .hoops-boxscore-toggle,
.hoops-game-links .btn {
    font-weight: 700;
    text-transform: uppercase;
}
@media (max-width: 575.98px) {
    .hoops-schedule-boxscore-toolbar { align-items: stretch; flex-direction: column; }
    .hoops-schedule-boxscore-toolbar .btn { width: 100%; }
    .hoops-schedule-row > .hoops-schedule-boxscore-panel { padding: .65rem; }
}


/* Hoops 2.0.0 player statistics leader grids. */
.hoops-scoring-leaders-grid .hoops-grid-row {
    grid-template-columns: 64px minmax(160px, 1.8fr) repeat(5, minmax(68px, .65fr)) minmax(130px, 1.25fr);
}
.hoops-rebounding-leaders-grid .hoops-grid-row {
    grid-template-columns: 64px minmax(160px, 1.8fr) repeat(3, minmax(68px, .65fr)) minmax(130px, 1.25fr);
}
.hoops-assists-leaders-grid .hoops-grid-row {
    grid-template-columns: 64px minmax(160px, 1.8fr) repeat(2, minmax(68px, .65fr)) minmax(130px, 1.25fr);
}
.hoops-statleaders-logo img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    object-fit: contain;
}
.hoops-scoring-leaders-grid .hoops-grid-cell:nth-child(n+3),
.hoops-rebounding-leaders-grid .hoops-grid-cell:nth-child(n+3),
.hoops-assists-leaders-grid .hoops-grid-cell:nth-child(n+3) {
    text-align: center;
    justify-content: center;
}
@media (max-width: 767.98px) {
    .hoops-scoring-leaders-grid .hoops-grid-row,
    .hoops-rebounding-leaders-grid .hoops-grid-row,
    .hoops-assists-leaders-grid .hoops-grid-row {
        grid-template-columns: 1fr 1fr;
    }
}


/* Hoops 2.0.0: per-menu schedule appearance and typography controls. */
.hoops-schedule-page .hoops-schedule-date{font-size:var(--hoops-schedule-date-size,14px);font-weight:var(--hoops-schedule-date-weight,600)}
.hoops-schedule-page .hoops-schedule-team-cell{font-size:var(--hoops-schedule-team-size,14px);font-weight:var(--hoops-schedule-team-weight,600)}
.hoops-schedule-page .hoops-schedule-location{font-size:var(--hoops-schedule-arena-size,14px);font-weight:var(--hoops-schedule-arena-weight,400)}
.hoops-schedule-page .hoops-schedule-time{font-size:var(--hoops-schedule-time-size,14px);font-weight:var(--hoops-schedule-time-weight,600)}
.hoops-schedule-page .hoops-schedule-result{font-size:var(--hoops-schedule-result-size,14px);font-weight:var(--hoops-schedule-result-weight,700)}
.hoops-schedule-theme-classic .hoops-schedule-grid{border-radius:0;box-shadow:none}
.hoops-schedule-theme-classic .hoops-schedule-row:nth-child(even){background:transparent}
.hoops-schedule-theme-modern .hoops-schedule-grid{border-radius:.75rem;box-shadow:0 .125rem .35rem rgba(0,0,0,.06)}
.hoops-schedule-theme-dark .hoops-schedule-grid{background:#15181c;color:#f8f9fa;border-color:#343a40}
.hoops-schedule-theme-dark .hoops-schedule-row:nth-child(even){background:#1e2328}
.hoops-schedule-theme-dark .hoops-schedule-row:hover{background:#252c33}
.hoops-schedule-theme-dark .hoops-schedule-cell{border-color:#343a40}
.hoops-schedule-theme-dark .hoops-schedule-cell a{color:#9ec5fe}
.hoops-schedule-theme-team .hoops-schedule-grid{border-color:var(--hoops-schedule-header-bg,#212529)}


/* Hoops 2.0.0: constrain league statistics leader team logos. */
.hoops-statleaders-logo {
    width: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.hoops-statleaders-logo img,
.hoops-statleaders-logo .hoops-statleaders-team-logo {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
}
@media (max-width: 767.98px) {
    .hoops-statleaders-logo { width: 56px; min-width: 56px; }
    .hoops-statleaders-logo img,
    .hoops-statleaders-logo .hoops-statleaders-team-logo {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }
}


/* Hoops 2.0.0: WCAG 2.2 keyboard, focus, motion and responsive safeguards. */
.hoops-team-page :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.hoops-player-page :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.hoops-roster :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.hoops-schedule-grid :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.hoops-standings :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.hoops-boxscore :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.com-hoops :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid currentColor !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px Canvas !important;
}
.hoops-team-links a,
.hoops-schedule-grid a,
.hoops-standings a {
    text-underline-offset: .18em;
}
.hoops-responsive-table,
.hoops-team-page .table-responsive,
.hoops-boxscore .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.hoops-visually-hidden {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
@media (pointer: coarse) {
    .hoops-team-links a, .hoops-schedule-grid a, .hoops-standings a,
    .com-hoops button, .com-hoops .btn { min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .com-hoops *, .hoops-team-page *, .hoops-player-page * {
        scroll-behavior: auto !important; animation-duration: .01ms !important;
        animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    }
}


/* Hoops 2.0.0 accessibility and browser certification */
.com-hoops :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.hoops-admin :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .com-hoops *,
    .com-hoops *::before,
    .com-hoops *::after,
    .hoops-admin *,
    .hoops-admin *::before,
    .hoops-admin *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Hoops 2.0.0: four-column responsive roster cards, reliable photos, and red view controls. */
.hoops-roster-view-panel[hidden]{display:none!important}
.hoops-roster-view-toggle .btn{white-space:nowrap;border-color:#c40000;color:#c40000;font-weight:700}
.hoops-roster-view-toggle .btn:hover,.hoops-roster-view-toggle .btn:focus-visible{border-color:#a80000;background:#a80000;color:#fff}
.hoops-roster-view-toggle .btn.active,.hoops-roster-view-toggle .btn[aria-pressed="true"]{border-color:#c40000;background:#c40000;color:#fff}
.hoops-roster-player-card{min-height:210px;overflow:hidden;border-color:var(--bs-border-color,#dee2e6);border-radius:.5rem;box-shadow:0 .15rem .5rem rgba(0,0,0,.08);transition:transform .18s ease,box-shadow .18s ease}
.hoops-roster-player-card:hover{transform:translateY(-2px);box-shadow:0 .4rem 1rem rgba(0,0,0,.13)}
.hoops-roster-card-photo-wrap{position:relative;flex:0 0 42%;max-width:150px;min-height:210px;overflow:hidden;background:var(--bs-tertiary-bg,#f1f3f5)}
.hoops-roster-card-photo-wrap>a{display:block;width:100%;height:100%}
.hoops-roster-card-photo{display:block;width:100%;height:100%;min-height:210px;object-fit:cover;object-position:center top}
.hoops-roster-card-body{min-width:0;padding:.8rem .75rem}
.hoops-roster-card-body .card-title{color:#233a73;font-size:1.05rem;font-weight:500}
.hoops-roster-card-body .card-title a{color:inherit}
.hoops-roster-card-number{position:absolute;left:.65rem;bottom:.65rem;font-size:.95rem;box-shadow:0 .15rem .4rem rgba(0,0,0,.3)}
.hoops-roster-card-position{color:var(--bs-secondary-color,#6c757d);font-weight:700;text-transform:uppercase;letter-spacing:.025em}
.hoops-roster-card-details{font-size:.78rem!important}
.hoops-roster-card-details dt,.hoops-roster-card-details dd{margin-bottom:.4rem}
.hoops-roster-card-details dt{color:var(--bs-secondary-color,#6c757d);font-weight:700}
.hoops-roster-team-logo{max-width:140px;max-height:140px}
@media (max-width:767.98px){.hoops-roster-player-card{min-height:220px}.hoops-roster-card-photo-wrap{flex-basis:44%;min-height:220px}.hoops-roster-card-photo{min-height:220px}.hoops-roster-card-body{padding:.85rem}.hoops-roster-card-body .card-title{font-size:1.1rem}}
@media (max-width:575.98px){.hoops-roster-view-toggle{width:100%}.hoops-roster-view-toggle .btn{flex:1 1 50%}.hoops-roster-team-logo{width:80px;height:80px}.hoops-roster-player-card{display:block!important}.hoops-roster-card-photo-wrap{max-width:none;width:100%;min-height:260px}.hoops-roster-card-photo{min-height:260px;max-height:340px}.hoops-roster-card-body{padding:1rem}}
@media print{.hoops-roster-view-toggle{display:none!important}.hoops-roster-view-panel[data-hoops-roster-panel="cards"]{display:none!important}.hoops-roster-view-panel[data-hoops-roster-panel="list"]{display:block!important}}

/* Hoops 2.0.0: solid-red roster view buttons and reference card proportions. */
.hoops-roster-view-toggle .btn,
.hoops-roster-view-toggle .btn.btn-primary,
.hoops-roster-view-toggle .btn.btn-outline-dark {
    background: #c40000;
    border-color: #c40000;
    color: #fff;
    font-weight: 700;
}
.hoops-roster-view-toggle .btn:hover,
.hoops-roster-view-toggle .btn:focus-visible,
.hoops-roster-view-toggle .btn.active,
.hoops-roster-view-toggle .btn[aria-pressed="true"] {
    background: #a80000;
    border-color: #a80000;
    color: #fff;
}
.hoops-roster-player-card { min-height: 240px; }
.hoops-roster-card-photo-wrap { flex: 0 0 46%; max-width: 220px; min-height: 240px; }
.hoops-roster-card-photo { min-height: 240px; object-fit: cover; object-position: center top; }

/* Hoops 2.0.0: padded, fluid roster-card images. */
.hoops-roster-card-photo-wrap {
    padding: 8px;
    box-sizing: border-box;
    background: var(--bs-body-bg, #fff);
}
.hoops-roster-card-photo-wrap > a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hoops-roster-card-photo {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: cover;
    object-position: center top;
}


/* Hoops 2.0.0: roster card border, black links, top-right jersey number, and readable details. */
.hoops-roster-player-card {
    position: relative;
    border: 1px solid #d6d9dd;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.035), 0 .15rem .5rem rgba(0,0,0,.08);
    background: var(--bs-body-bg, #fff);
}
.hoops-roster-card-photo-wrap {
    margin: 8px 0 8px 8px;
    padding: 0;
    border: 1px solid #cfd3d7;
    border-radius: .25rem;
    overflow: hidden;
}
.hoops-roster-card-photo-wrap > a,
.hoops-roster-card-photo {
    border-radius: calc(.25rem - 1px);
}
.hoops-roster-card-number {
    position: absolute;
    top: .45rem;
    right: .6rem;
    left: auto;
    bottom: auto;
    z-index: 2;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-size: clamp(1.5rem, 2.1vw, 2rem);
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}
.hoops-roster-card-body {
    padding-right: 3.2rem;
}
.hoops-roster-card-body .card-title,
.hoops-roster-card-body .card-title a,
.hoops-roster-first a,
.hoops-roster-last a {
    color: #000 !important;
}
.hoops-roster-card-details {
    font-size: 1rem !important;
}
@media (max-width: 575.98px) {
    .hoops-roster-card-photo-wrap {
        margin: 8px 8px 0;
    }
    .hoops-roster-card-body {
        padding-right: 1rem;
    }
}

/* Hoops 2.0.0: square roster-card media treatment. */
.hoops-roster-card-photo {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    min-height: 0;
    max-height: none;
}
.hoops-roster-card-photo-wrap {
    min-width: 0;
    align-self: start;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bs-secondary-bg, #e9ecef);
    min-height: 0;
}
.hoops-roster-card-photo-wrap > a {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}


/* Hoops 2.0.0: compact card text alignment and restored inner media border. */
.hoops-roster-player-card {
    position: relative;
    border: 1px solid var(--bs-border-color, #d6d9dd);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.045), 0 .15rem .5rem rgba(0,0,0,.08);
}
.hoops-roster-card-photo-wrap {
    margin: 8px 0 8px 8px;
    padding: 5px;
    border: 1px solid #cfd3d7;
    border-radius: .3rem;
    background: var(--bs-body-bg, #fff);
    box-sizing: border-box;
}
.hoops-roster-card-photo-wrap > a {
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .2rem;
}
.hoops-roster-card-photo {
    border-radius: calc(.2rem - 1px);
}
.hoops-roster-card-body {
    justify-content: flex-start;
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.hoops-roster-card-body .card-title {
    margin-bottom: .35rem !important;
    line-height: 1.2;
}
.hoops-roster-card-position {
    margin-bottom: .55rem !important;
    line-height: 1.25;
}
.hoops-roster-card-details {
    margin-top: 0 !important;
    font-size: 1rem !important;
    line-height: 1.25;
}
.hoops-roster-card-details dt,
.hoops-roster-card-details dd {
    margin-bottom: .32rem;
}
.hoops-roster-card-number {
    top: .45rem;
    right: .6rem;
}
@media (max-width: 575.98px) {
    .hoops-roster-card-photo-wrap {
        margin: 8px 8px 0;
    }
}


/* Hoops 2.0.0: roster card inner grid layout. */
.hoops-roster-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    min-height: 100%;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .35rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    position: relative;
    width: 100%;
}
.hoops-roster-player-card {
    border: 0;
    background: transparent;
    overflow: visible;
}
.hoops-roster-card-photo-wrap {
    margin: 8px 0 8px 8px;
}
.hoops-roster-card-body {
    min-width: 0;
    align-self: start;
}
@media (max-width: 575.98px) {
    .hoops-roster-card-inner {
        grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    }
}


/* Hoops 2.0.0: roster action controls — right aligned, black default, red pressed/selected. */
.hoops-roster-actions {
    margin-left: auto;
    justify-content: flex-end;
}
.hoops-roster-actions .btn,
.hoops-roster-actions .hoops-action-button,
.hoops-roster-view-toggle .btn,
.hoops-roster-view-toggle .btn.btn-dark,
.hoops-roster-view-toggle .btn.btn-outline-dark {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    font-weight: 700;
}
.hoops-roster-actions .btn:hover,
.hoops-roster-actions .hoops-action-button:hover,
.hoops-roster-view-toggle .btn:hover {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}
.hoops-roster-actions .btn:active,
.hoops-roster-actions .hoops-action-button:active,
.hoops-roster-view-toggle .btn:active,
.hoops-roster-view-toggle .btn.active,
.hoops-roster-view-toggle .btn[aria-pressed="true"] {
    background: #c40000 !important;
    border-color: #c40000 !important;
    color: #fff !important;
}
.hoops-roster-actions .btn:focus-visible,
.hoops-roster-actions .hoops-action-button:focus-visible,
.hoops-roster-view-toggle .btn:focus-visible {
    outline: 2px solid #c40000;
    outline-offset: 2px;
}
@media (max-width: 575.98px) {
    .hoops-roster-actions {
        justify-content: flex-end;
    }
}


/* Hoops 2.0.0: add separation between List View and Cards controls. */
.hoops-roster-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* Hoops 2.0.0: tighten roster card bottom spacing. */
.hoops-roster-card-photo-wrap {
    margin-bottom: 4px;
}
.hoops-roster-card-body {
    padding-bottom: .35rem;
}
.hoops-roster-card-details dt:last-of-type,
.hoops-roster-card-details dd:last-of-type {
    margin-bottom: 0;
}

/* Hoops 2.0.0: match compact roster card layout/padding reference. */
.hoops-roster-card-inner {
    min-height: 0;
    height: auto;
    align-items: start;
}
.hoops-roster-card-photo-wrap {
    margin: 8px 0 8px 8px;
}
.hoops-roster-card-body {
    align-self: start;
    padding: .5rem .65rem .3rem;
}
.hoops-roster-card-body .card-title {
    margin-bottom: .25rem !important;
    line-height: 1.15;
}
.hoops-roster-card-position {
    margin-bottom: .45rem !important;
    line-height: 1.2;
}
.hoops-roster-card-details {
    line-height: 1.2;
}
.hoops-roster-card-details dt,
.hoops-roster-card-details dd {
    margin-bottom: .26rem;
}
.hoops-roster-card-details dt:last-of-type,
.hoops-roster-card-details dd:last-of-type {
    margin-bottom: 0;
}
@media (max-width: 575.98px) {
    .hoops-roster-card-photo-wrap {
        margin: 8px 0 8px 8px;
    }
}

/* Hoops 2.0.0: prevent roster cards from stretching to the tallest card in each row. */
.hoops-roster-cards > .col {
    align-self: start;
}
.hoops-roster-player-card {
    height: auto !important;
    min-height: 0 !important;
}
.hoops-roster-card-inner {
    height: auto !important;
    min-height: 0 !important;
}
.hoops-roster-card-body {
    padding-bottom: .15rem;
}
.hoops-roster-card-details {
    margin-bottom: 0 !important;
}
.hoops-roster-card-details dt:last-of-type,
.hoops-roster-card-details dd:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Hoops 2.0.0: always show player photo column in the interactive frontend roster list. */
.hoops-roster-grid .hoops-roster-photo {
    padding: .35rem;
}
.hoops-roster-grid .hoops-roster-photo img {
    display: block;
    width: 64px;
    height: 64px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .25rem;
}


/* Hoops 2.0.0: featured #1 leader on frontend statistics pages with shaded stats panel. */
.hoops-statleader-featured {
    display: grid;
    grid-template-columns: clamp(150px, 18vw, 220px) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
    margin: 0 0 1.25rem;
    padding: .5rem 0 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
.hoops-statleader-featured__photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bs-secondary-bg, #e9ecef);
}
.hoops-statleader-featured__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hoops-statleader-featured__content { min-width: 0; }
.hoops-statleader-featured__identity {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.hoops-statleader-featured__rank {
    margin-bottom: .2rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--bs-secondary-color, #6c757d);
}
.hoops-statleader-featured__name {
    margin: 0 0 .3rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 800;
}
.hoops-statleader-featured__name a { color: inherit; text-decoration: none; }
.hoops-statleader-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.5rem;
    align-items: center;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 700;
}
.hoops-statleader-featured__meta a { color: inherit; }
.hoops-statleader-featured__team-logo {
    display: block;
    width: clamp(64px, 8vw, 96px);
    height: clamp(64px, 8vw, 96px);
    object-fit: contain;
    flex: 0 0 auto;
}
.hoops-statleader-featured__stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: .75rem 1.25rem;
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: var(--bs-secondary-bg, #e9ecef);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .35rem;
}
.hoops-statleader-featured__stat { min-width: 0; }
.hoops-statleader-featured__label {
    display: block;
    margin-bottom: .15rem;
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
}
.hoops-statleader-featured__stat strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}
.hoops-statleaders-title { margin-top: .25rem; }
@media (max-width: 991.98px) {
    .hoops-statleader-featured__stats { grid-template-columns: repeat(3, minmax(72px, 1fr)); }
}
@media (max-width: 575.98px) {
    .hoops-statleader-featured {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: .85rem;
        align-items: start;
    }
    .hoops-statleader-featured__name { font-size: 1.65rem; }
    .hoops-statleader-featured__team-logo { width: 52px; height: 52px; }
    .hoops-statleader-featured__meta { gap: .2rem .75rem; font-size: .95rem; }
    .hoops-statleader-featured__stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: .75rem;
    }
}

/* Hoops 2.0.0 production: frontend player profile image clarity + two-column info layout. */
.hoops-player-page .hoops-player-photo-card,
.hoops-player-page .hoops-player-info-card,
.hoops-player-page .hoops-player-profile-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    box-shadow: 0 .125rem .375rem rgba(0, 0, 0, .06);
    overflow: hidden;
}

.hoops-player-page .hoops-player-photo-card .card-body {
    padding: .75rem !important;
}

.hoops-player-page .hoops-player-profile-photo {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    border-radius: 50% !important;
    overflow: hidden;
    border: 2px solid var(--bs-border-color, #dee2e6);
}

.hoops-player-page .hoops-player-info-card .card-body {
    display: flex;
    align-items: center;
}

.hoops-player-page .hoops-player-personal-info {
    width: 100%;
    font-size: 1.15rem;
    line-height: 1.35;
}

.hoops-player-page .hoops-player-info-item {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .5rem;
    align-items: baseline;
    padding: .35rem 0;
}

.hoops-player-page .hoops-player-info-label {
    font-weight: 700;
}

.hoops-player-page .hoops-player-info-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hoops-player-page .hoops-player-profile-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .hoops-player-page .hoops-player-profile-photo {
        max-width: 260px;
    }

    .hoops-player-page .hoops-player-personal-info {
        font-size: 1.05rem;
    }
}


/* Hoops 2.0.0: shared menu-driven Style tab for Roster, Player and Boxscore. */
.hoops-styled-page {
    font-size: var(--hoops-page-content-size, 14px);
    font-weight: var(--hoops-page-content-weight, 400);
}

.hoops-styled-page h1,
.hoops-styled-page .hoops-page-title {
    font-size: var(--hoops-page-header-size, 14px) !important;
    font-weight: var(--hoops-page-header-weight, 700) !important;
}

.hoops-styled-page .hoops-player-info-label,
.hoops-styled-page [data-label]::before,
.hoops-styled-page .hoops-label {
    font-size: var(--hoops-page-label-size, 14px) !important;
    font-weight: var(--hoops-page-label-weight, 600) !important;
}

.hoops-styled-page .hoops-player-info-value,
.hoops-styled-page .hoops-value,
.hoops-styled-page .hoops-grid-cell:not(.hoops-grid-heading):not(.hoops-boxscore-header) {
    font-size: var(--hoops-page-value-size, 14px);
    font-weight: var(--hoops-page-value-weight, 400);
}

.hoops-styled-page h2,
.hoops-styled-page h3,
.hoops-styled-page .card-header,
.hoops-styled-page .hoops-grid-heading,
.hoops-styled-page .hoops-boxscore-header,
.hoops-styled-page .hoops-grid-head .hoops-grid-cell {
    font-size: var(--hoops-page-section-size, 14px);
    font-weight: var(--hoops-page-section-weight, 700);
}

.hoops-styled-page a:not(.btn) {
    font-size: var(--hoops-page-link-size, 14px);
    font-weight: var(--hoops-page-link-weight, 600);
}

.hoops-styled-page strong,
.hoops-styled-page .fw-bold,
.hoops-styled-page .hoops-emphasis,
.hoops-styled-page .hoops-boxscore-result {
    font-size: var(--hoops-page-emphasis-size, 14px);
    font-weight: var(--hoops-page-emphasis-weight, 700);
}

/* Header surfaces controlled by the Style tab. */
.hoops-roster-page.hoops-styled-page .hoops-roster-topbar,
.hoops-player-style-shell.hoops-styled-page > .hoops-responsive-grid:first-child,
.hoops-player-style-shell.hoops-styled-page .card-header,
.hoops-frontend-boxscore.hoops-styled-page > .hoops-responsive-grid:first-child,
.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-header,
.hoops-frontend-boxscore.hoops-styled-page .hoops-grid-head .hoops-grid-cell {
    background: var(--hoops-page-header-bg, #212529);
    color: var(--hoops-page-header-color, #fff);
}

.hoops-styled-page .hoops-roster-topbar a,
.hoops-styled-page .card-header a,
.hoops-styled-page .hoops-boxscore-header a,
.hoops-styled-page .hoops-grid-head .hoops-grid-cell a {
    color: inherit;
}

/* Theme variants mirror the Schedule Appearance behavior without changing data structure. */
.hoops-style-theme-classic .card,
.hoops-style-theme-classic .hoops-responsive-grid,
.hoops-style-theme-classic .hoops-roster-contact-card {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hoops-style-theme-modern .card,
.hoops-style-theme-modern .hoops-responsive-grid,
.hoops-style-theme-modern .hoops-roster-contact-card {
    border-radius: .5rem;
}

.hoops-style-theme-dark {
    background: #15181c;
    color: #f8f9fa;
}

.hoops-style-theme-dark .card,
.hoops-style-theme-dark .hoops-responsive-grid,
.hoops-style-theme-dark .hoops-roster-contact-card {
    background: #1e2328;
    color: #f8f9fa;
    border-color: #343a40;
}

.hoops-style-theme-dark a:not(.btn) {
    color: #9ec5fe;
}

.hoops-style-theme-team .card,
.hoops-style-theme-team .hoops-responsive-grid,
.hoops-style-theme-team .hoops-roster-contact-card {
    border-color: var(--hoops-page-header-bg, #212529);
}


/* Hoops 2.0.0: Player Profile GO BACK alignment */
.hoops-player-header-actions {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
}

.hoops-player-header-actions .hoops-action-button,
.hoops-player-header-actions .btn {
    margin-left: auto;
}


/* Hoops 2.0.0: authoritative menu Style bindings and boxscore alignment. */

/* Page/header titles and their nested links must inherit the configured header style. */
.hoops-roster-page.hoops-styled-page .hoops-roster-topbar h1,
.hoops-roster-page.hoops-styled-page .hoops-roster-topbar h1 a,
.hoops-player-style-shell.hoops-styled-page > .hoops-responsive-grid:first-child h1,
.hoops-player-style-shell.hoops-styled-page > .hoops-responsive-grid:first-child h1 a,
.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-page-title {
    font-size: var(--hoops-page-header-size, 14px) !important;
    font-weight: var(--hoops-page-header-weight, 700) !important;
    color: var(--hoops-page-header-color, #fff) !important;
}

/* Roster list and Cards: override legacy fixed font sizes/weights. */
.hoops-roster-page.hoops-styled-page .hoops-roster-cell,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-position,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-details,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-details dt,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-details dd {
    font-size: var(--hoops-page-content-size, 14px) !important;
}

.hoops-roster-page.hoops-styled-page .hoops-roster-card-position,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-details dt {
    font-weight: var(--hoops-page-label-weight, 600) !important;
}

.hoops-roster-page.hoops-styled-page .hoops-roster-card-details dd,
.hoops-roster-page.hoops-styled-page .hoops-roster-cell {
    font-weight: var(--hoops-page-content-weight, 400) !important;
}

/* Player profile labels/values: menu parameters must override old profile defaults. */
.hoops-player-style-shell.hoops-styled-page .hoops-player-personal-info,
.hoops-player-style-shell.hoops-styled-page .hoops-player-profile-content {
    font-size: var(--hoops-page-content-size, 14px) !important;
    font-weight: var(--hoops-page-content-weight, 400) !important;
}

.hoops-player-style-shell.hoops-styled-page .hoops-player-info-label {
    font-size: var(--hoops-page-label-size, 14px) !important;
    font-weight: var(--hoops-page-label-weight, 600) !important;
}

.hoops-player-style-shell.hoops-styled-page .hoops-player-info-value {
    font-size: var(--hoops-page-value-size, 14px) !important;
    font-weight: var(--hoops-page-value-weight, 400) !important;
}

/* Boxscore top bar. */
.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-topbar {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: .7rem .75rem;
    background: var(--hoops-page-header-bg, #212529);
    color: var(--hoops-page-header-color, #fff);
    border-radius: .65rem;
}

.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-page-title {
    margin: 0;
    line-height: 1.2;
}

.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-topbar-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    flex: 0 0 auto;
}

.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-topbar-actions .btn,
.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-topbar-actions .hoops-action-button {
    margin-left: auto;
}

/* Individual team stat tables: keep left and right teams aligned at the same top edge. */
.hoops-frontend-boxscore .bb_table_wide > .hoops-grid-row {
    align-items: start;
}

.hoops-frontend-boxscore .bb_table_wide > .hoops-grid-row > .hoops-grid-cell {
    align-items: flex-start;
    align-self: start;
}

.hoops-frontend-boxscore .bb_table_wide > .hoops-grid-row > .hoops-grid-cell > .bb_table_wide {
    width: 100%;
    margin-top: 0;
    align-self: start;
}

/* Configured section-header style also applies to each team/stat heading. */
.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-header,
.hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-header * {
    font-size: var(--hoops-page-section-size, 14px) !important;
    font-weight: var(--hoops-page-section-weight, 700) !important;
    color: var(--hoops-page-header-color, #fff) !important;
}

@media (max-width: 575.98px) {
    .hoops-frontend-boxscore.hoops-styled-page .hoops-boxscore-topbar {
        align-items: flex-start;
    }
}

/* ================================================================
   Hoops 2.0.0 — responsive frontend refinement
   ================================================================ */

/* Team Profile: compact semantic navigation labels are supplied by the template. */
.hoops-team-links { row-gap: .4rem; }

/* Standings: Team Name | Location on desktop and mobile. */
.hoops-standings-team {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    gap: .18rem .38rem;
}
.hoops-standings-team-location {
    margin-top: 0;
    font-size: .9em;
    line-height: 1.25;
}
.hoops-standings-team-separator {
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 600;
}

/* Filtered Standings: pair each filter label directly with its dropdown. */
.hoops-filtered-standings-form { margin-bottom: 1rem; }
.hoops-filtered-standings-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    align-items: end;
}
.hoops-filter-field {
    display: grid;
    gap: .3rem;
    min-width: 0;
}
.hoops-filter-field label {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}
.hoops-filter-field select { width: 100%; max-width: 100%; margin: 0; }

/* Boxscore Scoring Summary: Team | Score | How did they score. */
.hoops-scoring-summary-grid .hoops-summary-title-row,
.hoops-scoring-summary-grid .hoops-summary-quarter-row {
    grid-template-columns: 1fr !important;
}
.hoops-scoring-summary-grid .hoops-summary-column-headings,
.hoops-scoring-summary-grid .hoops-summary-score-row {
    grid-template-columns: minmax(64px, .55fr) minmax(92px, .75fr) minmax(0, 2.2fr) !important;
}
.hoops-scoring-summary-grid .hoops-summary-title-row .hoops-grid-cell,
.hoops-scoring-summary-grid .hoops-summary-quarter-row .hoops-grid-cell {
    grid-column: 1 / -1;
}
.hoops-scoring-summary-grid .hoops-summary-team { justify-content: center; text-align: center; }
.hoops-scoring-summary-grid .hoops-summary-team img {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    object-fit: contain;
}
.hoops-scoring-summary-grid .hoops-summary-score { font-weight: 700; white-space: nowrap; }
.hoops-scoring-summary-grid .hoops-summary-comment { min-width: 0; overflow-wrap: anywhere; }

/* Team Stats Comparison keeps its title, team headings and three data columns visible. */
.hoops-boxscore-comparison-panel .hoops-comparison-title-row {
    grid-template-columns: 1fr !important;
}
.hoops-boxscore-comparison-panel .hoops-comparison-title-row .hoops-comparison-title {
    grid-column: 1 / -1;
    width: 100%;
    font-size: clamp(.95rem, 2.2vw, 1.2rem) !important;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    /* Roster controls: List View | Cards | Print | Go Back on one compact line. */
    .hoops-roster-actions {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: .2rem !important;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .hoops-roster-view-toggle {
        width: auto !important;
        flex: 0 0 auto;
        gap: .2rem !important;
    }
    .hoops-roster-view-toggle .btn,
    .hoops-roster-actions > .btn,
    .hoops-roster-actions .hoops-action-button,
    .hoops-roster-actions a.btn {
        flex: 0 0 auto !important;
        min-height: 1.8rem !important;
        padding: .26rem .34rem !important;
        font-size: clamp(.62rem, 2.6vw, .72rem) !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    /* Roster cards: large full-width circular player image on phones. */
    .hoops-roster-card-inner { grid-template-columns: 1fr !important; }
    .hoops-roster-card-photo-wrap {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: .75rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: transparent !important;
        overflow: visible !important;
    }
    .hoops-roster-card-photo-wrap > a {
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        justify-content: center !important;
    }
    .hoops-roster-card-photo {
        width: min(88vw, 340px) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 50% !important;
        border: 2px solid var(--bs-border-color, #dee2e6) !important;
    }
    .hoops-roster-card-body { width: 100%; }
    .hoops-roster-card-details {
        display: grid !important;
        grid-template-columns: max-content minmax(0, 1fr) !important;
        gap: .28rem .55rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .hoops-roster-card-details dt,
    .hoops-roster-card-details dd {
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    /* Roster list: photo becomes a page-width circular feature; labels/values stay inline. */
    .hoops-roster-grid .hoops-roster-photo {
        width: 100% !important;
        padding: .75rem !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .hoops-roster-grid .hoops-roster-photo img {
        width: min(88vw, 340px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        border: 2px solid var(--bs-border-color, #dee2e6) !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    .hoops-roster-row .hoops-roster-cell:not(.hoops-roster-photo) {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: .38rem !important;
        white-space: nowrap;
        overflow-x: auto;
    }
    .hoops-roster-row .hoops-roster-cell:not(.hoops-roster-photo)::before {
        flex: 0 0 auto;
        margin: 0;
    }

    /* Player Profile information itself remains label + value on one line. */
    .hoops-player-page .hoops-player-info-item {
        display: flex !important;
        align-items: baseline !important;
        gap: .45rem !important;
        white-space: nowrap;
        overflow-x: auto;
    }
    .hoops-player-page .hoops-player-info-label { flex: 0 0 auto; }
    .hoops-player-page .hoops-player-info-value { flex: 0 1 auto; overflow-wrap: normal; }

    /* Player Profile + Team Stats: show each statistic as LABEL | VALUE. */
    .hoops-player-style-shell .hoops-mobile-labeled-grid .hoops-grid-row:not(:has(.hoops-grid-heading)),
    .hoops-stats-page .hoops-mobile-labeled-grid .hoops-grid-row:not(:has(.hoops-grid-heading)),
    .hoops-statleaders-page .hoops-statleaders-grid .hoops-grid-row:not(.hoops-grid-head) {
        grid-template-columns: 1fr !important;
    }
    .hoops-player-style-shell .hoops-mobile-labeled-grid .hoops-grid-cell[data-label],
    .hoops-stats-page .hoops-mobile-labeled-grid .hoops-grid-cell[data-label],
    .hoops-statleaders-page .hoops-statleaders-grid .hoops-grid-cell[data-label] {
        display: grid !important;
        grid-template-columns: minmax(82px, auto) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: .55rem !important;
        min-height: 2.25rem;
        white-space: nowrap;
        text-align: left !important;
        justify-content: stretch !important;
    }
    .hoops-player-style-shell .hoops-mobile-labeled-grid .hoops-grid-cell[data-label]::before,
    .hoops-stats-page .hoops-mobile-labeled-grid .hoops-grid-cell[data-label]::before,
    .hoops-statleaders-page .hoops-statleaders-grid .hoops-grid-cell[data-label]::before {
        content: attr(data-label);
        color: var(--bs-secondary-color, #6c757d);
        font-weight: 700;
        font-size: .8em;
        line-height: 1.1;
        text-transform: uppercase;
    }
    .hoops-statleader-featured__stats { grid-template-columns: 1fr !important; }
    .hoops-statleader-featured__stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        white-space: nowrap;
    }
    .hoops-statleader-featured__label { margin: 0; }

    /* Scoring Summary is always a responsive three-column list. */
    .hoops-scoring-summary-grid { overflow: hidden !important; border: 1px solid var(--bs-border-color, #dee2e6) !important; }
    .hoops-scoring-summary-grid .hoops-grid-row {
        display: grid !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    .hoops-scoring-summary-grid .hoops-grid-heading { display: flex !important; }
    .hoops-scoring-summary-grid .hoops-summary-column-headings,
    .hoops-scoring-summary-grid .hoops-summary-score-row {
        grid-template-columns: 58px minmax(76px, .8fr) minmax(0, 2.2fr) !important;
    }
    .hoops-scoring-summary-grid .hoops-grid-cell {
        min-height: 0;
        padding: .48rem .38rem;
        font-size: clamp(.7rem, 3vw, .88rem) !important;
    }
    .hoops-scoring-summary-grid .hoops-summary-title-row .hoops-grid-cell,
    .hoops-scoring-summary-grid .hoops-summary-quarter-row .hoops-grid-cell {
        font-size: clamp(.82rem, 3.8vw, 1rem) !important;
    }
    .hoops-scoring-summary-grid .hoops-summary-team img {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        border-radius: 50%;
    }

    /* Team Stats Comparison title/headers stay visible and values stay in columns. */
    .hoops-boxscore-comparison-panel .hoops-responsive-grid {
        overflow-x: auto !important;
        border: 1px solid var(--bs-border-color, #dee2e6) !important;
    }
    .hoops-boxscore-comparison-panel .hoops-grid-row {
        display: grid !important;
        grid-template-columns: minmax(118px, 1.55fr) repeat(2, minmax(56px, .72fr)) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-width: 0;
    }
    .hoops-boxscore-comparison-panel .hoops-comparison-title-row { grid-template-columns: 1fr !important; }
    .hoops-boxscore-comparison-panel .hoops-grid-heading { display: flex !important; }
    .hoops-boxscore-comparison-panel .hoops-grid-cell {
        min-height: 0;
        padding: .46rem .35rem;
        font-size: clamp(.68rem, 2.85vw, .86rem) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hoops-boxscore-comparison-panel .hoops-comparison-title {
        font-size: clamp(.9rem, 4.2vw, 1.12rem) !important;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    /* Individual Boxscore stats keep desktop-like headers/columns with horizontal scrolling. */
    .hoops-frontend-boxscore .hoops-boxscore-stat-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        border: 1px solid var(--bs-border-color, #dee2e6) !important;
        border-radius: .45rem !important;
        background: var(--bs-body-bg, #fff) !important;
    }
    .hoops-frontend-boxscore .hoops-boxscore-stat-grid > .hoops-grid-row {
        display: grid !important;
        grid-template-columns: var(--hoops-boxscore-stat-template) !important;
        min-width: var(--hoops-boxscore-stat-min-width) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .hoops-frontend-boxscore .hoops-boxscore-stat-grid > .hoops-boxscore-stat-title-row {
        grid-template-columns: 1fr !important;
    }
    .hoops-frontend-boxscore .hoops-boxscore-stat-grid .hoops-grid-heading {
        display: flex !important;
    }
    .hoops-frontend-boxscore .hoops-boxscore-stat-grid .hoops-grid-cell {
        min-height: 0;
        padding: .45rem .35rem;
        font-size: clamp(.66rem, 2.8vw, .82rem) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hoops-frontend-boxscore .hoops-boxscore-stat-grid .hoops-boxscore-stat-title-row .hoops-grid-cell {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    /* Schedule mobile syntax: LABEL - value, with Game Links and buttons on the same line. */
    .hoops-schedule-page .hoops-schedule-cell {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: .35rem !important;
        min-height: 2.35rem;
        padding: .5rem .55rem;
        font-size: clamp(.7rem, 3.05vw, .86rem) !important;
        text-align: left !important;
        overflow-wrap: normal;
    }
    .hoops-schedule-page .hoops-schedule-cell::before {
        content: attr(data-label) " -" !important;
        flex: 0 0 auto;
        margin: 0;
        font-size: .82em;
        line-height: 1;
        font-weight: 800;
        white-space: nowrap;
    }
    .hoops-schedule-page .hoops-schedule-date { white-space: nowrap; }
    .hoops-schedule-page .hoops-game-links {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow-x: auto;
        gap: .22rem !important;
    }
    .hoops-schedule-page .hoops-game-links .btn {
        flex: 0 0 auto;
        padding: .25rem .32rem !important;
        font-size: clamp(.58rem, 2.45vw, .68rem) !important;
        line-height: 1.05;
        white-space: nowrap;
    }
    .hoops-game-link-separator { flex: 0 0 auto; font-weight: 700; }

    /* Standings phone layout: identity row plus W | L | T | PCT | PF | PA | STK on one row. */
    .hoops-standings-grid.has-ties .hoops-standings-row {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }
    .hoops-standings-grid.no-ties .hoops-standings-row {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
    .hoops-standings-row .hoops-standings-logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    .hoops-standings-row .hoops-standings-team {
        grid-column: 2 / -1 !important;
        grid-row: 1 !important;
        min-height: 64px;
        padding: .55rem .35rem;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-content: center;
    }
    .hoops-standings-row .hoops-standings-stat {
        grid-row: 2 !important;
        min-width: 0;
        padding: .42rem .08rem !important;
        font-size: clamp(.65rem, 2.75vw, .78rem) !important;
        border-top: 1px solid var(--bs-border-color, #dee2e6) !important;
    }
    .hoops-standings-row .hoops-standings-stat::before {
        font-size: .82em !important;
    }
    .hoops-standings-team-name { font-size: clamp(.76rem, 3.3vw, .95rem); }
    .hoops-standings-team-location { font-size: clamp(.66rem, 2.8vw, .8rem); }

    /* Filtered Standings: no empty spacer rows; compact stacked controls. */
    .hoops-filtered-standings-filters {
        grid-template-columns: 1fr;
        gap: .38rem;
    }
    .hoops-filter-field { gap: .12rem; }
    .hoops-filter-field label { font-size: .78rem; }
    .hoops-filter-field select { min-height: 2rem; font-size: .82rem; padding-block: .25rem; }
}

@media (max-width: 420px) {
    .hoops-roster-actions .btn,
    .hoops-roster-actions .hoops-action-button,
    .hoops-roster-view-toggle .btn { font-size: .61rem !important; padding-inline: .28rem !important; }
    .hoops-schedule-page .hoops-schedule-cell { font-size: .72rem !important; }
    .hoops-schedule-page .hoops-game-links .btn { font-size: .58rem !important; }
}

/* Hoops 2.0.0: embedded Team Stats on the Team Profile page. */
.hoops-team-stats-section {
    width: 100%;
    min-width: 0;
}
.hoops-team-stats-groups {
    display: grid;
    gap: 1.25rem;
}
.hoops-team-stat-group {
    min-width: 0;
}
.hoops-team-stats-grid .hoops-grid-row {
    grid-template-columns: var(--hoops-team-stat-columns);
    grid-auto-flow: row;
    grid-auto-columns: auto;
}
.hoops-team-stats-grid .hoops-grid-cell {
    justify-content: flex-start;
    text-align: left;
}
.hoops-team-stats-grid .hoops-grid-cell:not(:first-child),
.hoops-team-stats-grid .hoops-grid-heading:not(:first-child) {
    justify-content: flex-end;
    text-align: right;
}
.hoops-team-stat-totals {
    background: rgba(0, 0, 0, .045);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .hoops-team-stats-section .hoops-team-stats-heading {
        align-items: center !important;
    }
    .hoops-team-stats-grid .hoops-grid-row {
        grid-template-columns: 1fr !important;
        grid-auto-flow: row;
    }
    .hoops-team-stats-grid .hoops-team-stat-header {
        display: none !important;
    }
    .hoops-team-stats-grid .hoops-grid-cell[data-label] {
        display: grid !important;
        grid-template-columns: minmax(86px, auto) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: .6rem !important;
        justify-content: stretch !important;
        text-align: left !important;
        white-space: nowrap;
        min-height: 2.3rem;
    }
    .hoops-team-stats-grid .hoops-grid-cell[data-label]::before {
        content: attr(data-label);
        color: var(--bs-secondary-color, #6c757d);
        font-weight: 700;
        font-size: .8em;
        line-height: 1.1;
        text-transform: uppercase;
    }
    .hoops-team-stats-grid .hoops-grid-cell[data-label] a {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hoops-team-stat-totals .hoops-grid-cell:first-child::before {
        content: '';
    }
}

/* Hoops 1.0.8: frontend Team Information / Add New Team Bootstrap card editor. */
.hoops-team-editor {
    --hoops-editor-card-radius: .85rem;
    --hoops-editor-card-border: var(--bs-border-color, #dee2e6);
    --hoops-editor-soft-bg: var(--bs-tertiary-bg, #f8f9fa);
    max-width: 1320px;
}

.hoops-team-editor .min-w-0 { min-width: 0; }

.hoops-team-editor-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hoops-editor-card-border);
}

.hoops-team-editor-card {
    overflow: hidden;
    border: 1px solid var(--hoops-editor-card-border);
    border-radius: var(--hoops-editor-card-radius);
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .2rem .7rem rgba(0, 0, 0, .055);
}

.hoops-team-editor-card > .card-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--hoops-editor-card-border);
    background: var(--hoops-editor-soft-bg);
}

.hoops-team-editor-card > .card-body {
    padding: 1.15rem;
}

.hoops-team-editor-field .control-group,
.hoops-team-editor-field .mb-3 {
    margin-bottom: 0 !important;
}

.hoops-team-editor-field .control-label,
.hoops-team-editor-field label {
    display: block;
    width: auto;
    margin: 0 0 .35rem;
    padding: 0;
    font-weight: 600;
    line-height: 1.25;
}

.hoops-team-editor-field .controls {
    margin: 0 !important;
}

.hoops-team-editor input[type="text"],
.hoops-team-editor input[type="email"],
.hoops-team-editor input[type="tel"],
.hoops-team-editor input[type="url"],
.hoops-team-editor input[type="file"],
.hoops-team-editor select,
.hoops-team-editor textarea {
    width: 100%;
    max-width: 100%;
}

.hoops-team-editor input[type="text"],
.hoops-team-editor input[type="email"],
.hoops-team-editor input[type="tel"],
.hoops-team-editor input[type="url"],
.hoops-team-editor select {
    min-height: 2.55rem;
}

.hoops-team-editor .form-control,
.hoops-team-editor .form-select,
.hoops-team-editor input[type="text"],
.hoops-team-editor input[type="email"],
.hoops-team-editor input[type="tel"] {
    border-radius: .5rem;
}

.hoops-team-editor .form-control:focus,
.hoops-team-editor .form-select:focus,
.hoops-team-editor input:focus,
.hoops-team-editor select:focus,
.hoops-team-editor textarea:focus {
    position: relative;
    z-index: 1;
}

.hoops-team-editor .form-text,
.hoops-team-editor .small.text-muted {
    line-height: 1.4;
}

.hoops-contact-block {
    padding: 1rem;
    border: 1px solid var(--hoops-editor-card-border);
    border-radius: .7rem;
    background: color-mix(in srgb, var(--hoops-editor-soft-bg) 56%, transparent);
}

.hoops-team-media-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .85rem;
    border: 1px dashed var(--hoops-editor-card-border);
    border-radius: .7rem;
    background: var(--hoops-editor-soft-bg);
}

.hoops-team-logo-preview {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.hoops-team-photo-preview {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.hoops-team-editor-media-card input[type="file"] {
    padding: .45rem;
    border: 1px solid var(--hoops-editor-card-border);
    border-radius: .5rem;
    background: var(--bs-body-bg, #fff);
}

.hoops-team-editor-media-card .form-check,
.hoops-team-editor-media-card .checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.hoops-team-editor-media-card input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.hoops-team-editor-accomplishments-card .control-label {
    display: none;
}

.hoops-team-editor-accomplishments-card .joomla-editor-tinymce,
.hoops-team-editor-accomplishments-card .tox,
.hoops-team-editor-accomplishments-card .mce-container,
.hoops-team-editor-accomplishments-card iframe {
    max-width: 100%;
}

.hoops-team-editor-actions {
    position: sticky;
    bottom: .75rem;
    z-index: 20;
    border: 1px solid var(--hoops-editor-card-border);
    border-radius: var(--hoops-editor-card-radius);
    background: color-mix(in srgb, var(--bs-body-bg, #fff) 94%, transparent);
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .12);
    backdrop-filter: blur(8px);
}

@media (max-width: 767.98px) {
    .hoops-team-editor {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .hoops-team-editor-header h1 {
        font-size: 1.55rem;
    }

    .hoops-team-editor-card > .card-header,
    .hoops-team-editor-card > .card-body {
        padding: .9rem;
    }

    .hoops-contact-block {
        padding: .85rem;
    }

    .hoops-team-editor-top-actions .btn,
    .hoops-team-editor-actions .btn {
        flex: 1 1 auto;
    }
}


/* Hoops 1.0.9: frontend management navigation and Game Results Bootstrap cards. */
.hoops-management-page {
    max-width: 1320px;
}

.hoops-management-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.hoops-management-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}

/*
 * These cards must not clip their content. The card previously used overflow:hidden purely to
 * keep the header background inside its rounded corners, but that also clipped anything a form
 * control opens outside the card box -- the Joomla date-picker on Team Administration >
 * Scheduled Game > Game Date & Time rendered only as far as the card edge and the rest of the
 * calendar was cut off. The corners are rounded explicitly on the first and last child instead,
 * which is what the clipping was there to achieve.
 */
.hoops-management-card {
    overflow: visible;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .85rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .2rem .7rem rgba(0, 0, 0, .055);
}

.hoops-management-card > .card-header {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.hoops-management-card > :first-child {
    border-top-left-radius: calc(.85rem - 1px);
    border-top-right-radius: calc(.85rem - 1px);
}

.hoops-management-card > :last-child {
    border-bottom-left-radius: calc(.85rem - 1px);
    border-bottom-right-radius: calc(.85rem - 1px);
}

/* Keep an open date picker above neighbouring cards and sticky page furniture. */
.hoops-management-card .js-calendar,
.hoops-management-card .calendar-container {
    z-index: 1060;
}

.hoops-game-result-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.hoops-game-result-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 .45rem 1rem rgba(0, 0, 0, .09);
}

.hoops-game-result-scoreboard {
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .7rem;
}

.hoops-game-result-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
    padding: .8rem 1rem;
    background: var(--bs-body-bg, #fff);
}

.hoops-game-result-team-row + .hoops-game-result-team-row {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.hoops-game-result-score {
    min-width: 2.5ch;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.hoops-game-result-datetime {
    color: var(--bs-body-color, #212529);
}

@media (max-width: 767.98px) {
    .hoops-management-page {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .hoops-management-header h1 {
        font-size: 1.55rem;
    }

    .hoops-game-result-team-row {
        min-height: 3.75rem;
        padding: .7rem .8rem;
    }
}


/* Hoops 2.0.0 frontend Team Administration Game Results editor. */
.hoops-boxscore-admin-page .hoops-boxscore-form {
    width: 100%;
    max-width: 100%;
}
.hoops-boxscore-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
}
.hoops-boxscore-team,
.hoops-boxscore-game-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    min-width: 0;
}
.hoops-boxscore-team strong {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}
.hoops-boxscore-form .hoops-matchup-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 128px !important;
    max-height: 96px !important;
    margin: 0 auto .35rem;
    object-fit: contain;
}
.hoops-boxscore-score-table {
    min-width: 680px;
}
.hoops-boxscore-score-table th,
.hoops-boxscore-score-table td {
    text-align: center;
    vertical-align: middle;
}
.hoops-boxscore-score-table th:first-child {
    min-width: 180px;
    text-align: left;
}
.hoops-score-input {
    width: 5.25rem;
    min-width: 4.5rem;
    margin-inline: auto;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.hoops-score-final {
    font-weight: 800;
    background: var(--bs-tertiary-bg, #f3f4f6);
}
.hoops-boxscore-subsection,
.hoops-boxscore-player-section,
.hoops-boxscore-stat-category {
    min-width: 0;
}
.hoops-boxscore-subsection {
    padding: 1rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .7rem;
    background: var(--bs-body-bg, #fff);
}
.hoops-boxscore-subform-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.hoops-boxscore-form .subform-repeatable-wrapper,
.hoops-boxscore-form .subform-repeatable,
.hoops-boxscore-form .table-responsive {
    width: 100%;
    max-width: 100%;
}
.hoops-boxscore-form .subform-repeatable-wrapper table,
.hoops-boxscore-form .subform-repeatable table {
    width: 100%;
    min-width: 680px;
}
.hoops-boxscore-form .control-group {
    display: block;
    width: 100%;
    margin-bottom: .75rem;
}
.hoops-boxscore-form .control-label {
    float: none;
    width: auto;
    padding: 0;
    margin: 0 0 .35rem;
    font-weight: 600;
}
.hoops-boxscore-form .controls {
    margin-left: 0;
}
.hoops-boxscore-form .controls input,
.hoops-boxscore-form .controls select,
.hoops-boxscore-form .controls textarea {
    max-width: 100%;
}
.hoops-comparison-editor-table {
    min-width: 620px;
}
.hoops-comparison-editor-table th:first-child {
    width: 46%;
}
.hoops-comparison-editor-table td {
    width: 27%;
}
.hoops-comparison-editor-table input {
    width: 100%;
    min-width: 5rem;
}
.hoops-boxscore-details {
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .7rem;
    background: var(--bs-body-bg, #fff);
}
.hoops-boxscore-details > summary {
    padding: .9rem 1rem;
    cursor: pointer;
    font-weight: 700;
    background: var(--bs-tertiary-bg, #f3f4f6);
    user-select: none;
}
.hoops-boxscore-details[open] > summary {
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
.hoops-boxscore-player-section + .hoops-boxscore-player-section {
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}
.hoops-boxscore-savebar {
    position: sticky;
    bottom: .75rem;
    z-index: 30;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .75rem;
    background: color-mix(in srgb, var(--bs-body-bg, #fff) 95%, transparent);
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.12);
    backdrop-filter: blur(8px);
}
@media (max-width: 767.98px) {
    .hoops-boxscore-admin-page {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }
    .hoops-boxscore-matchup {
        grid-template-columns: 1fr auto 1fr;
        gap: .65rem;
    }
    .hoops-boxscore-form .hoops-matchup-logo {
        max-width: 82px !important;
        max-height: 70px !important;
    }
    .hoops-boxscore-team strong,
    .hoops-boxscore-game-meta {
        font-size: .88rem;
    }
    .hoops-boxscore-savebar .btn {
        flex: 1 1 auto;
    }
}

/* ================================================================
   Hoops 2.0.0 — roster style bindings and transactions page
   ================================================================ */

/* Roster menu Style parameters: apply the configured font sizes and weights
   to list headers, rows, labels, links, cards, and section headings. */
.hoops-roster-page.hoops-styled-page .hoops-roster-header {
    background: var(--hoops-page-header-bg, #212529) !important;
    color: var(--hoops-page-header-color, #fff) !important;
    font-size: var(--hoops-page-header-size, 14px) !important;
    font-weight: var(--hoops-page-header-weight, 700) !important;
}
.hoops-roster-page.hoops-styled-page .hoops-roster-row,
.hoops-roster-page.hoops-styled-page .hoops-roster-cell,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-body,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-details {
    font-size: var(--hoops-page-content-size, 14px) !important;
    font-weight: var(--hoops-page-content-weight, 400) !important;
}
.hoops-roster-page.hoops-styled-page .hoops-roster-cell::before,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-details dt {
    font-size: var(--hoops-page-label-size, 14px) !important;
    font-weight: var(--hoops-page-label-weight, 600) !important;
}
.hoops-roster-page.hoops-styled-page .hoops-roster-card-details dd {
    font-size: var(--hoops-page-value-size, 14px) !important;
    font-weight: var(--hoops-page-value-weight, 400) !important;
}
.hoops-roster-page.hoops-styled-page .hoops-roster-cell a,
.hoops-roster-page.hoops-styled-page .hoops-roster-card-body a,
.hoops-roster-page.hoops-styled-page .hoops-roster-media-links a {
    font-size: var(--hoops-page-link-size, 14px) !important;
    font-weight: var(--hoops-page-link-weight, 600) !important;
}
.hoops-roster-page.hoops-styled-page .hoops-injured-reserve > h2,
.hoops-roster-page.hoops-styled-page .hoops-roster-contact-card > h2 {
    font-size: var(--hoops-page-section-size, 14px) !important;
    font-weight: var(--hoops-page-section-weight, 700) !important;
}
.hoops-roster-page.hoops-styled-page .hoops-roster-card-number {
    font-size: var(--hoops-page-emphasis-size, 14px) !important;
    font-weight: var(--hoops-page-emphasis-weight, 700) !important;
}

/* Transactions Page */
.hoops-transactions-page { width: 100%; max-width: 100%; }
.hoops-transactions-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hoops-transactions-heading h1 { margin: 0; }
.hoops-transactions-heading p { margin: .25rem 0 0; color: var(--bs-secondary-color, #6c757d); }
.hoops-transactions-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hoops-transactions-table { width: 100%; min-width: 1180px; margin-bottom: 0; }
.hoops-transactions-table thead th { background: var(--hoops-transactions-header-bg, #212529); color: var(--hoops-transactions-header-color, #fff); font-size: var(--hoops-transactions-header-size, 14px); font-weight: var(--hoops-transactions-header-weight, 700); white-space: nowrap; }
.hoops-transactions-table tbody td { font-size: var(--hoops-transactions-content-size, 14px); font-weight: var(--hoops-transactions-content-weight, 400); vertical-align: middle; }
.hoops-transactions-page .hoops-transaction-date { font-size: var(--hoops-transactions-date-size, 14px); font-weight: var(--hoops-transactions-date-weight, 600); }
.hoops-transactions-page .hoops-transaction-name { font-size: var(--hoops-transactions-name-size, 14px); font-weight: var(--hoops-transactions-name-weight, 600); }
.hoops-transactions-page .hoops-transaction-position { font-size: var(--hoops-transactions-position-size, 14px); font-weight: var(--hoops-transactions-position-weight, 600); }
.hoops-transactions-page .hoops-transaction-measurement { font-size: var(--hoops-transactions-measurement-size, 14px); font-weight: var(--hoops-transactions-measurement-weight, 400); }
.hoops-transactions-page .hoops-transaction-school { font-size: var(--hoops-transactions-school-size, 14px); font-weight: var(--hoops-transactions-school-weight, 400); }
.hoops-transactions-page .hoops-transaction-experience { font-size: var(--hoops-transactions-experience-size, 14px); font-weight: var(--hoops-transactions-experience-weight, 400); }
.hoops-transactions-page .hoops-transaction-team { font-size: var(--hoops-transactions-team-size, 14px); font-weight: var(--hoops-transactions-team-weight, 600); }
.hoops-transactions-page .hoops-transaction-status-cell { font-size: var(--hoops-transactions-status-size, 14px); font-weight: var(--hoops-transactions-status-weight, 700); }
.hoops-transaction-status { display: inline-block; padding: .32rem .50rem; border: 0; border-radius: .375rem; font-size: .78em; font-weight: inherit; line-height: 1; white-space: nowrap; }
.hoops-transaction-status-signed { background-color: #198754; color: #fff; }
.hoops-transaction-status-injured_reserve { background-color: #ffc107; color: #212529; }
.hoops-transaction-status-released { background-color: #dc3545; color: #fff; }
.hoops-transactions-theme-classic .hoops-transactions-table { border-collapse: collapse; }
.hoops-transactions-theme-classic .hoops-transactions-table > :not(caption) > * > * { border-radius: 0; }
.hoops-transactions-theme-modern .hoops-transactions-responsive { border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .75rem; box-shadow: 0 .125rem .35rem rgba(0,0,0,.06); }
.hoops-transactions-theme-modern .hoops-transactions-table { margin-bottom: 0; }
.hoops-transactions-theme-dark .hoops-transactions-responsive { background: #15181c; color: #f8f9fa; border: 1px solid #343a40; border-radius: .75rem; }
.hoops-transactions-theme-dark .hoops-transactions-table { --bs-table-bg: #15181c; --bs-table-striped-bg: #1e2328; --bs-table-hover-bg: #252c33; --bs-table-color: #f8f9fa; color: #f8f9fa; }
.hoops-transactions-theme-dark .hoops-transactions-table tbody td { border-color: #343a40; }
.hoops-transactions-theme-team .hoops-transactions-responsive { border: 1px solid var(--hoops-transactions-header-bg, #212529); border-radius: .75rem; overflow: hidden; }

@media (max-width: 767.98px) {
    .hoops-transactions-responsive { overflow: visible; }
    .hoops-transactions-table { min-width: 0; border-collapse: separate; border-spacing: 0 .75rem; }
    .hoops-transactions-table thead { display: none; }
    .hoops-transactions-table,
    .hoops-transactions-table tbody,
    .hoops-transactions-table tr,
    .hoops-transactions-table td { display: block; width: 100%; }
    .hoops-transactions-table tr { padding: .35rem .75rem; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .65rem; background: var(--bs-body-bg, #fff); }
    .hoops-transactions-table td { display: grid; grid-template-columns: minmax(125px, 42%) 1fr; gap: .75rem; padding: .42rem 0; border: 0; border-bottom: 1px solid var(--bs-border-color, #dee2e6); }
    .hoops-transactions-table td:last-child { border-bottom: 0; }
    .hoops-transactions-table td::before { content: attr(data-label); color: var(--hoops-transactions-header-color, var(--bs-secondary-color, #6c757d)); font-size: var(--hoops-transactions-header-size, 14px); font-weight: var(--hoops-transactions-header-weight, 700); }
}

/* Hoops 2.0.5: Team Administration roster/editor alignment. */
@media (min-width: 992px) {
    .hoops-admin-roster-grid .hoops-grid-row {
        grid-template-columns: 72px minmax(110px, .9fr) minmax(120px, 1fr) minmax(95px, .85fr) minmax(88px, .75fr) minmax(95px, .8fr) minmax(150px, 1.35fr) minmax(120px, 1fr);
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }
}
.hoops-player-editor .hoops-player-roster-summary > div {
    min-width: 0;
}
.hoops-player-editor .hoops-player-roster-summary .fw-semibold {
    overflow-wrap: anywhere;
}
.hoops-player-editor input[type="number"] {
    width: 100%;
    max-width: 100%;
    min-height: 2.55rem;
    border-radius: .5rem;
}
@media (max-width: 991.98px) {
    .hoops-admin-roster-grid .hoops-grid-cell[data-label] {
        display: grid;
        grid-template-columns: minmax(105px, 40%) 1fr;
        gap: .65rem;
        align-items: center;
    }
    .hoops-admin-roster-grid .hoops-grid-cell[data-label]::before {
        content: attr(data-label);
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.15;
        text-transform: uppercase;
        color: var(--bs-secondary-color, #6c757d);
    }
}

/* ---------------------------------------------------------------------------
 * Front Office / Coaching Staff directory
 *
 * A section panel per team holding a responsive grid of staff cards: circular
 * headshot on the left, name / title / contact stacked beside it.
 * ------------------------------------------------------------------------- */
.hoops-staff-heading {
    font-weight: 700;
    letter-spacing: -.01em;
}

.hoops-staff-section {
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .85rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .2rem .7rem rgba(0, 0, 0, .04);
}

/*
 * The section title is a coloured band across the top of each team's panel. Its colours and
 * type come from the menu item's Style tab as custom properties set on .hoops-staff-page;
 * the values below are the fallbacks used when a menu item has not set them.
 */
.hoops-staff-section-title {
    margin: 0;
    padding: .75rem 1.25rem;
    border-radius: calc(.85rem - 1px) calc(.85rem - 1px) 0 0;
    background: var(--hoops-staff-header-bg, #212529);
    color: var(--hoops-staff-header-color, #fff);
    font-size: var(--hoops-staff-header-size, 20px);
    font-weight: var(--hoops-staff-header-weight, 700);
    letter-spacing: -.01em;
}

.hoops-staff-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .6rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.hoops-staff-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 .3rem .8rem rgba(0, 0, 0, .07);
}

.hoops-staff-page .hoops-staff-photo {
    width: min(var(--hoops-staff-image-size, 96px), 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

/* Preserve side-by-side content when it fits; wrap on narrow cards or large portraits. */
.hoops-staff-page .hoops-staff-card-details {
    flex: 1 1 8rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hoops-staff-name {
    margin-bottom: .15rem;
    font-size: var(--hoops-staff-name-size, 16px);
    font-weight: var(--hoops-staff-name-weight, 700);
}

.hoops-staff-title {
    color: var(--bs-secondary-color, #6c757d);
    font-size: var(--hoops-staff-title-size, 14px);
    font-weight: var(--hoops-staff-title-weight, 500);
}

.hoops-staff-phone {
    font-size: var(--hoops-staff-phone-size, 14px);
    font-weight: var(--hoops-staff-phone-weight, 400);
}

.hoops-staff-email {
    font-size: var(--hoops-staff-email-size, 14px);
    font-weight: var(--hoops-staff-email-weight, 400);
}

/*
 * Go Back stays solid black in every state -- resting, hover, focus and pressed -- in every
 * template, light or dark. Only the focus ring is drawn separately, so keyboard users can
 * still see where they are without the button itself changing colour.
 */
.hoops-staff-page .hoops-staff-back,
.hoops-staff-page .hoops-staff-back:visited,
.hoops-staff-page .hoops-staff-back:hover,
.hoops-staff-page .hoops-staff-back:focus,
.hoops-staff-page .hoops-staff-back:active,
.hoops-staff-page .hoops-staff-back:focus-visible,
.hoops-staff-page .hoops-staff-back.active,
.hoops-staff-page .hoops-staff-back.show {
    /*
     * Bootstrap 5.3 draws .btn from custom properties, so the raw declarations below are not
     * enough on their own -- .btn { background-color: var(--bs-btn-bg) } would still win when
     * the site template's Bootstrap loads after this file. Setting both the variables and the
     * properties, under a selector one class more specific than .btn, makes the button black
     * regardless of stylesheet order or Bootstrap version.
     */
    --bs-btn-color: #fff;
    --bs-btn-bg: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-focus-shadow-rgb: 0, 0, 0;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #000;
    --bs-btn-disabled-border-color: #000;
    background-color: #000;
    border-color: #000;
    color: #fff;
    box-shadow: none;
    text-decoration: none;
}

.hoops-staff-page .hoops-staff-back:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.hoops-staff-contact a {
    text-decoration: none;
}

.hoops-staff-contact a:hover,
.hoops-staff-contact a:focus {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .hoops-staff-card .card-body {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
    }
}

/* Hoops 3.2.5 - Front End Teams page */
.hoops-front-teams {
    width: 100%;
}

.hoops-front-teams__row {
    align-items: stretch;
}

.hoops-front-teams__col {
    display: flex;
}

.hoops-front-teams__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: .5rem;
}

/*
 * Keep every uploaded logo inside the same centered display stage. The stage
 * uses the configured Team Logo Size as its uniform height and the full
 * Bootstrap column as its available width, so mixed source dimensions no
 * longer stagger the Team Name / Arena / City rows.
 */
.hoops-front-teams__logo-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--hoops-front-teams-logo-size, 200px);
    max-width: 100%;
    margin-inline: auto;
    overflow: hidden;
}

.hoops-front-teams__logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
}

.hoops-front-teams__details {
    width: 100%;
}

.hoops-front-teams__name {
    display: block;
    font-size: var(--hoops-front-teams-name-size, 20px);
    font-weight: var(--hoops-front-teams-name-weight, 700);
    line-height: 1.25;
}

.hoops-front-teams__arena {
    margin-top: .3rem;
    font-size: var(--hoops-front-teams-arena-size, 16px);
    font-weight: var(--hoops-front-teams-arena-weight, 500);
    line-height: 1.35;
}

.hoops-front-teams__city-state {
    margin-top: .15rem;
    font-size: var(--hoops-front-teams-city-size, 15px);
    font-weight: var(--hoops-front-teams-city-weight, 400);
    line-height: 1.35;
}

@media (min-width: 992px) {
    /* Match the Gridiron 7.2.5 Front End Teams benchmark: the Columns
       parameter controls the wide-screen Bootstrap column width. Logo size
       is constrained inside the column and never changes the column count. */
    .hoops-front-teams__col {
        flex: 0 0 var(--hoops-front-teams-column-basis, 25%) !important;
        width: var(--hoops-front-teams-column-basis, 25%) !important;
        max-width: var(--hoops-front-teams-column-basis, 25%) !important;
    }
}
