.awards-grid-card .awards-week-label {
    color: var(--award-ink-soft);
}

.awards-grid-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--award-line);
    flex-shrink: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--hub-text) 24%, transparent);
}

.awards-grid-photo--logo {
    object-fit: contain;
    padding: 0.45rem;
    background: var(--award-panel);
}

.awards-grid-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid var(--award-line);
    flex-shrink: 0;
    background: var(--award-panel) !important;
    color: var(--award-ink-muted) !important;
}

.awards-grid-card .awards-team-logo {
    width: 20px;
    height: 20px;
}

/* Stacked layout for multi-column featured cards */
.awards-featured-stacked {
    text-align: left;
    padding: 1.35rem 1.2rem;
}

.awards-featured-stacked .awards-team-info {
    justify-content: flex-start;
}

.awards-featured-stacked .awards-stat-row {
    justify-content: flex-start;
}

.awards-featured-stacked .awards-player-name .last-name {
    font-size: 1.5rem;
}

.awards-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    background: color-mix(in srgb, var(--slms-accent) 10%, transparent);
    color: var(--slms-accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.awards-link:hover {
    background: color-mix(in srgb, var(--slms-accent) 16%, transparent);
    color: var(--slms-accent);
}

@media (max-width: 768px) {
    .awards-featured-body {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 1.5rem 1.25rem;
    }

    .awards-featured-main {
        align-items: center;
    }

    .awards-featured-photo img,
    .awards-avatar {
        width: 96px;
        height: 96px;
    }

    .awards-team-info {
        justify-content: flex-start;
    }

    .awards-stat-stack {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .awards-stat-stack:has(.awards-stat-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .awards-player-name .last-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 520px) {
    .awards-featured-main {
        align-items: flex-start;
    }

    .awards-featured-photo img,
    .awards-avatar,
    .awards-featured-photo--logo {
        width: 72px;
        height: 72px;
    }

    .awards-featured-photo--logo img {
        width: 52px;
        height: 52px;
    }

    .awards-stat-stack,
    .awards-stat-stack:has(.awards-stat-card:nth-child(2):last-child) {
        grid-template-columns: 1fr;
    }
}

/* Container-query fallbacks: when a featured award card is physically narrow
   (3-up columns, builder preview canvas) the viewport media queries above do
   not fire because the window is still desktop-width. Adapt to the card's own
   inline size so the player name/team never collapse to one-letter-per-line. */
@container (max-width: 400px) {
    .awards-featured-body {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 1.35rem 1.25rem;
    }

    .awards-featured-info {
        min-width: 0;
    }
}

@container (max-width: 240px) {
    .awards-featured-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .awards-featured-photo img,
    .awards-avatar,
    .awards-featured-photo--logo {
        width: 64px;
        height: 64px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MATCH CARDS - Schedule Display
   ───────────────────────────────────────────────────────────────────────────── */

.match-item {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--hub-border);
    margin-bottom: 0.5rem;
    background: var(--hub-surface);
    transition: all var(--transition-smooth);
    position: relative;
}

.match-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--hub-emerald);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.match-item:hover {
    border-color: var(--hub-border-strong);
    box-shadow: var(--hub-shadow-sm);
}

.match-item:hover::before {
    opacity: 1;
}

.match-item:last-child {
    margin-bottom: 0;
}

.match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.match-team-home {
    justify-content: flex-start;
}

.match-team-away {
    justify-content: flex-end;
}

.match-team-away .match-team-info {
    text-align: right;
    order: 1;
}

.match-team-away .match-team-logo,
.match-team-away .match-team-logo-placeholder {
    order: 2;
}

.match-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    min-width: 160px;
}

.match-center .match-vs {
    font-size: 0.75rem;
}

.match-center .badge {
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.match-time {
    font-size: 0.8rem;
    color: var(--hub-text-muted);
    font-weight: 500;
}

.match-venue {
    font-size: 0.75rem;
    color: var(--hub-text-muted);
}

.match-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.match-team-logo-placeholder {
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--hub-accent, var(--slms-accent)) 14%, var(--hub-surface));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    /* Readable accent shade on its tint, like the team monograms. */
    color: var(--hub-accent-text, var(--slms-accent-text));
    flex-shrink: 0;
}

.match-team-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.match-team-name {
    font-weight: 700;
    color: var(--hub-text);
    font-size: 0.95rem;
    line-height: 1.2;
}

.match-team-record {
    font-size: 0.75rem;
    color: var(--hub-text-muted);
    font-weight: 500;
}

.match-vs {
    color: var(--hub-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    /* Mobile Match Cards - Stacked Layout */
    .match-item {
        padding: 1rem;
        border-radius: 12px;
    }

    .match-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .match-team {
        width: 100%;
        justify-content: flex-start !important;
        gap: 0.75rem;
    }

    .match-team-home,
    .match-team-away {
        justify-content: flex-start !important;
    }

    .match-team-away .match-team-info {
        text-align: left;
        order: 2;
    }

    .match-team-away .match-team-logo,
    .match-team-away .match-team-logo-placeholder {
        order: 1;
    }

    .match-center {
        order: -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-width: auto;
        padding: 0.5rem 0.75rem;
        background: var(--hub-surface-alt);
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }

    .match-center .match-vs,
    .match-center .badge {
        order: 2;
    }

    .match-center .match-time {
        order: 1;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--hub-text);
    }

    .match-center .match-venue {
        order: 3;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .match-team-logo,
    .match-team-logo-placeholder {
        width: 44px;
        height: 44px;
        font-size: 0.8rem;
    }

    .match-team-name {
        font-size: 1rem;
        font-weight: 700;
    }

    .match-team-record {
        font-size: 0.8rem;
    }

    .match-team-info {
        flex: 1;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   STANDINGS TABLE - League Rankings
   ───────────────────────────────────────────────────────────────────────────── */

.hub-block-card .table {
    margin-bottom: 0;
}

.hub-block-card .table thead th {
    background: var(--hub-surface-alt);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hub-text-muted);
    padding: 1rem;
    border-bottom: 2px solid var(--hub-border-strong);
}

.hub-block-card .table tbody tr {
    transition: all var(--transition-smooth);
}

.hub-block-card .table tbody tr:hover {
    background: var(--hub-surface-alt);
}

.hub-block-card .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--hub-border);
}

.hub-block-card .table tbody tr:first-child td {
    font-weight: 700;
}

/* Position indicator for top 3 */
.hub-block-card .table tbody tr:nth-child(1) td:first-child,
.hub-block-card .table tbody tr:nth-child(2) td:first-child,
.hub-block-card .table tbody tr:nth-child(3) td:first-child {
    position: relative;
}

.hub-block-card .table tbody tr:nth-child(1) td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #fbbf24;
    border-radius: 0 2px 2px 0;
}

.hub-block-card .table tbody tr:nth-child(2) td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #9ca3af;
    border-radius: 0 2px 2px 0;
}

.hub-block-card .table tbody tr:nth-child(3) td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #d97706;
    border-radius: 0 2px 2px 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STAT LEADERS - Leaderboards
   ───────────────────────────────────────────────────────────────────────────── */

.leaders-card {
    background: var(--hub-surface);
    border-radius: 16px;
    border: 1px solid var(--hub-border);
    overflow: hidden;
    height: 100%;
}

.leaders-card-header {
    background: linear-gradient(135deg, var(--hub-surface-alt) 0%, var(--hub-surface) 100%);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--hub-border);
}

.leaders-category-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--hub-text);
}

.leaders-category-abbr {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hub-text-muted);
    background: var(--hub-surface-alt);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.leaders-card-body {
    padding: 0;
}

.leader-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--hub-border);
    transition: background var(--transition-smooth);
}

.leader-row:last-child {
    border-bottom: none;
}

.leader-row:hover {
    background: var(--hub-surface-alt);
}

.leader-top {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 100%);
}

.leader-top .leader-rank {
    background: #fbbf24;
    color: #78350f;
}

.leader-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hub-text-muted);
    background: var(--hub-surface-alt);
    border-radius: 50%;
    flex-shrink: 0;
}

.leader-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.leader-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hub-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hub-text-muted);
    flex-shrink: 0;
}

.leader-photo-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.leader-photo-placeholder-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hub-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--hub-text-muted);
}

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hub-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-team {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--hub-text-muted);
    margin-top: 0.125rem;
}

.leader-team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.leader-stat {
    text-align: right;
    flex-shrink: 0;
}

.leader-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hub-text);
    line-height: 1;
}

.leader-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--hub-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Leaders Table Layout */
.leaders-table-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--hub-text);
}

.leaders-table {
    font-size: 0.9rem;
}

.leaders-table thead th {
    background: var(--hub-surface-alt);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hub-text-muted);
    padding: 0.75rem;
    border-bottom: 2px solid var(--hub-border-strong);
}

.leaders-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Leaders Compact Layout */
.leaders-compact {
    background: var(--hub-surface);
    border-radius: 12px;
    border: 1px solid var(--hub-border);
    overflow: hidden;
}

.leaders-compact-header {
    background: var(--hub-surface-alt);
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--hub-text);
    border-bottom: 1px solid var(--hub-border);
}

.leaders-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: leader-counter;
}

.leaders-compact-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--hub-border);
    counter-increment: leader-counter;
}

.leaders-compact-list li:last-child {
    border-bottom: none;
}

.leaders-compact-list li::before {
    content: counter(leader-counter) ".";
    font-weight: 600;
    color: var(--hub-text-muted);
    margin-right: 0.5rem;
    min-width: 1.5rem;
}

.leaders-compact-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--hub-text);
}

.leaders-compact-stat {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--hub-text);
}

@media (max-width: 768px) {
    .leader-row {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .leader-photo,
    .leader-photo-placeholder {
        width: 36px;
        height: 36px;
    }

    .leader-name {
        font-size: 0.85rem;
    }

    .leader-stat-value {
        font-size: 1.1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEWS CARDS - Articles
   ───────────────────────────────────────────────────────────────────────────── */

.news-card {
    background: var(--hub-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--hub-border);
    transition: all var(--transition-smooth);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hub-shadow-lg);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
}

.news-card-body {
    padding: 1.25rem;
}

.news-card h5 {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--hub-text);
}

.news-card .text-muted {
    font-size: 0.75rem;
    color: var(--hub-text-dim) !important;
}

.news-card p {
    color: var(--hub-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GALLERY GRID - Photo Display
   ───────────────────────────────────────────────────────────────────────────── */

.gallery-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-item {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--hub-surface-alt);
    aspect-ratio: 16 / 10;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: var(--gallery-image-fit, cover);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-grid[data-image-fit="contain"] .gallery-item img,
.gallery-carousel[data-image-fit="contain"] .gallery-item img {
    object-fit: contain !important;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-grid[data-image-fit="contain"] .gallery-item,
.gallery-carousel[data-image-fit="contain"] .gallery-item {
    background: color-mix(in srgb, var(--hub-surface-alt) 72%, var(--hub-background));
}

.gallery-grid[data-image-fit="contain"] .gallery-item:hover img,
.gallery-carousel[data-image-fit="contain"] .gallery-item:hover img {
    transform: none;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item--more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: color-mix(in srgb, var(--hub-text) 5%, var(--hub-surface-alt));
    border: 1px dashed var(--hub-border);
    color: var(--hub-text);
    font-weight: 700;
    font-size: 0.92rem;
}

.gallery-item--more:hover {
    background: color-mix(in srgb, var(--hub-text) 10%, var(--hub-surface-alt));
}

.gallery-item--more i {
    font-size: 1.25rem;
}

.gallery-item-caption {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 1;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--hub-text) 68%, transparent);
    color: var(--hub-surface);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    opacity: 1;
    transform: translateY(0);
}

/* Single image - make it larger */
.gallery-grid.single-image {
    grid-template-columns: 1fr;
    max-width: min(100%, 980px);
    margin-inline: auto;
}

.gallery-grid.single-image .gallery-item {
    aspect-ratio: 16 / 9;
}

.gallery-grid.single-image[data-image-fit="contain"] {
    max-width: min(100%, 720px);
}

.gallery-grid.single-image[data-image-fit="contain"] .gallery-item {
    aspect-ratio: auto !important;
    background: transparent;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
}

/* Natural-size photos stay bounded: a tall portrait can't push the rest of the
   page several viewports down, and small images don't upscale into blur. */
.gallery-grid.single-image[data-image-fit="contain"] .gallery-item img {
    display: block;
    height: auto;
    max-height: min(78vh, 720px);
    width: auto;
    max-width: 100%;
    margin-inline: auto;
}

.hub-page-wrapper .hub-block-card.hub-gallery-block--framed {
    background: transparent !important;
    border-color: transparent !important;
    padding: clamp(0.45rem, 1.1vw, 0.75rem) !important;
}

.hub-page-wrapper .hub-block-card.hub-gallery-block--framed .hub-section-title {
    width: 100%;
    max-width: min(100%, 720px);
    margin-inline: auto !important;
    margin-bottom: 0.6rem !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.hub-page-wrapper .hub-gallery-block--framed .gallery-grid.single-image[data-image-fit="contain"] {
    max-width: min(100%, 720px);
}

.hub-page-wrapper .hub-gallery-block--framed .gallery-grid.single-image[data-image-fit="contain"] .gallery-item {
    border: 2px solid color-mix(in srgb, var(--hub-surface) 88%, transparent) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--hub-border) 36%, transparent) !important;
}

/* Two images - equal sizing */
.gallery-grid.two-images {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid.two-images .gallery-item {
    aspect-ratio: 4 / 3;
}

.gallery-grid.two-images[data-image-fit="contain"] {
    grid-template-columns: repeat(2, minmax(220px, 520px));
    justify-content: center;
    align-items: start;
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.gallery-grid.two-images[data-image-fit="contain"] .gallery-item {
    aspect-ratio: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.gallery-grid.two-images[data-image-fit="contain"] .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}

/* Three or more images */
.gallery-grid--mosaic.trio-images {
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.gallery-grid--mosaic.trio-images .gallery-item:first-child {
    grid-row: 1 / span 2;
    min-height: 360px;
    aspect-ratio: auto;
}

.gallery-grid--mosaic.trio-images .gallery-item:not(:first-child) {
    min-height: 0;
}

.gallery-grid--mosaic.trio-images[data-image-fit="contain"] {
    grid-template-rows: auto auto;
    align-items: start;
}

.gallery-grid--mosaic.trio-images[data-image-fit="contain"] .gallery-item {
    aspect-ratio: auto !important;
    align-self: start;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.gallery-grid--mosaic.trio-images[data-image-fit="contain"] .gallery-item:first-child {
    min-height: 0;
}

.gallery-grid--mosaic.trio-images[data-image-fit="contain"] .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-position: 50% 50% !important;
}

.gallery-grid--row.trio-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid--mosaic.four-images,
.gallery-grid.four-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid--row.four-images {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-container-block .gallery-grid--split {
    gap: clamp(0.45rem, 1.1vw, 0.75rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.hub-container-block .gallery-grid--split.single-image {
    max-width: 100%;
}

.hub-container-block .gallery-grid--split.two-images {
    grid-template-columns: 1fr;
}

.hub-container-block .gallery-grid--split.trio-images {
    grid-template-columns: minmax(0, 1.7fr) minmax(108px, 0.85fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.hub-container-block .gallery-grid--split.trio-images .gallery-item {
    aspect-ratio: auto !important;
}

.hub-container-block .gallery-grid--split.trio-images .gallery-item:first-child {
    min-height: clamp(260px, 38vw, 620px);
}

.hub-container-block .gallery-grid--split.gallery-grid--mosaic.trio-images[data-image-fit="contain"] {
    grid-template-rows: auto auto;
    align-items: start;
}

.hub-container-block .gallery-grid--split.gallery-grid--mosaic.trio-images[data-image-fit="contain"] .gallery-item {
    aspect-ratio: auto !important;
    align-self: start;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.hub-container-block .gallery-grid--split.gallery-grid--mosaic.trio-images[data-image-fit="contain"] .gallery-item:first-child {
    min-height: 0;
}

.hub-container-block .gallery-grid--split.gallery-grid--mosaic.trio-images[data-image-fit="contain"] .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-position: 50% 50% !important;
}

.hub-container-block .gallery-grid--split.four-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-container-block .gallery-grid--split.gallery-grid--row.trio-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
}

.hub-container-block .gallery-grid--split.gallery-grid--row.four-images {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-container-block .gallery-grid--split.gallery-grid--row.trio-images .gallery-item,
.hub-container-block .gallery-grid--split.gallery-grid--row.four-images .gallery-item {
    aspect-ratio: var(--gallery-aspect-ratio, 16 / 10) !important;
}

.hub-container-block .gallery-grid--split.gallery-grid--row.trio-images .gallery-item:first-child {
    min-height: 0;
}

.hub-container-block .gallery-grid--split.multi-images {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}

.hub-container-block .hub-container-col.col-md-3 .gallery-grid--split.trio-images,
.hub-container-block .hub-container-col.col-md-4 .gallery-grid--split.trio-images {
    grid-template-columns: 1fr;
    grid-template-rows: none;
}

.hub-container-block .hub-container-col.col-md-3 .gallery-grid--split.trio-images .gallery-item:first-child,
.hub-container-block .hub-container-col.col-md-4 .gallery-grid--split.trio-images .gallery-item:first-child {
    min-height: 0;
    aspect-ratio: var(--gallery-aspect-ratio, 16 / 10) !important;
}

.gallery-grid.multi-images {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-carousel {
    --gallery-aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--hub-surface-alt);
}

.gallery-carousel .carousel-inner {
    border-radius: inherit;
}

.gallery-carousel .carousel-item {
    aspect-ratio: var(--gallery-aspect-ratio);
    background: var(--hub-surface-alt);
}

.gallery-carousel .gallery-item {
    width: 100%;
    height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
}

.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
    width: 3.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-carousel:hover .carousel-control-prev,
.gallery-carousel:hover .carousel-control-next,
.gallery-carousel:focus-within .carousel-control-prev,
.gallery-carousel:focus-within .carousel-control-next {
    opacity: 1;
}

.gallery-carousel .carousel-indicators {
    margin-bottom: 0.6rem;
}

.gallery-carousel .carousel-indicators [data-bs-target] {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background-color: var(--hub-surface);
    opacity: 0.55;
}

.gallery-carousel .carousel-indicators .active {
    opacity: 1;
}

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

    /* Five or more photos stacked full-width is thousands of pixels of scroll
       on a phone; pair them up instead. */
    .gallery-grid.multi-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid.two-images {
        grid-template-columns: 1fr;
    }

    .gallery-grid.two-images[data-image-fit="contain"] {
        grid-template-columns: minmax(0, min(100%, 520px));
        justify-content: center;
    }

    .gallery-grid--mosaic.trio-images {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .gallery-grid--row.trio-images,
    .gallery-grid--mosaic.four-images,
    .gallery-grid--row.four-images,
    .gallery-grid.four-images {
        grid-template-columns: 1fr;
    }

    .gallery-grid--mosaic.trio-images .gallery-item:first-child {
        grid-row: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .gallery-item {
        aspect-ratio: 16 / 9;
    }

    .gallery-grid.single-image[data-image-fit="contain"] .gallery-item {
        aspect-ratio: auto !important;
    }

    .gallery-carousel {
        --gallery-aspect-ratio: 16 / 9;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA BLOCKS - Call to Action
   ───────────────────────────────────────────────────────────────────────────── */

.hub-cta-block {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hub-cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

.hub-cta-block h3 {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
    position: relative;
}

.hub-cta-block p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.hub-cta-block .btn {
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    position: relative;
    transition: all var(--transition-smooth);
}

.hub-cta-block .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hub-cta-block--image-fit {
    padding: 0;
    background: transparent;
}

.hub-cta-block--image-fit .hub-cta-block__image {
    display: block;
    width: 100%;
    height: auto;
}

.hub-cta-block__content {
    position: relative;
    z-index: 1;
}

.hub-cta-block--image-fit .hub-cta-block__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hub-cta-block--image-fit .hub-cta-block__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ALERTS & EMPTY STATES
   ───────────────────────────────────────────────────────────────────────────── */

.hub-block-card .alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem 1.5rem;
}

.hub-block-card .alert-info {
    background: var(--hub-blue-light);
    color: var(--hub-blue);
}

.hub-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--hub-text-muted);
}

.hub-empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    color: var(--hub-emerald);
}

.hub-builder-manage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 36px;
    margin-top: 0.85rem;
    padding: 0 0.9rem;
    border: 1px solid color-mix(in srgb, var(--slms-primary) 36%, transparent);
    border-radius: var(--slms-button-radius, 8px);
    background: color-mix(in srgb, var(--slms-primary) 8%, transparent);
    color: var(--slms-primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.hub-builder-manage-link:hover {
    background: var(--slms-primary);
    color: var(--slms-button-color, var(--slms-surface));
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hub-block-card {
    animation: fadeInUp 0.5s ease-out;
}

.hub-block-card:nth-child(1) { animation-delay: 0.1s; }
.hub-block-card:nth-child(2) { animation-delay: 0.2s; }
.hub-block-card:nth-child(3) { animation-delay: 0.3s; }
.hub-block-card:nth-child(4) { animation-delay: 0.4s; }
.hub-block-card:nth-child(5) { animation-delay: 0.5s; }

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE - Mobile Optimizations
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Container & Spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hub-page-wrapper .container {
        padding-top: 1rem !important;
    }

    /* Block Cards */
    .hub-block-card {
        border-radius: 16px;
        padding: 1rem !important;
    }

    .hub-block-card + .hub-block-card,
    .hub-container-block + .hub-block-card,
    .hub-block-card + .hub-container-block,
    .hub-container-block + .hub-container-block {
        margin-top: 1rem;
    }

    /* Section Titles */
    .hub-section-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    /* Hero Section */
    .hub-hero {
        min-height: 380px;
        border-radius: 16px;
        margin-bottom: 0.5rem;
    }

    .hub-hero.hub-hero-fit-image {
        min-height: 0;
    }

    .hub-hero-content {
        padding: 1.25rem 1rem;
    }

    .hub-hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hub-hero-content .lead {
        font-size: 0.95rem;
    }

    .hub-hero-fullscreen-image {
        min-height: 70vh !important;
        border-radius: 0 !important;
    }

    .hub-hero-fullscreen-image .hub-hero-content {
        padding: 2rem 1.25rem;
        min-height: 70vh !important;
    }

    .hero-season-pill {
        margin-top: 1rem;
        padding: 0.75rem 1rem;
    }

    /* Stats Grid */
    .stat-pill {
        padding: 0.75rem;
    }

    .stat-pill .display-6 {
        font-size: 1.75rem;
    }

    .stat-pill .text-muted {
        font-size: 0.7rem;
    }

    /* Standings Table */
    .hub-block-card .table {
        font-size: 0.85rem;
    }

    .hub-block-card .table thead th {
        padding: 0.6rem 0.5rem;
        font-size: 0.6rem;
    }

    .hub-block-card .table tbody td {
        padding: 0.6rem 0.5rem;
    }

    .hub-block-card .table .team-name-cell {
        max-width: 100px;
    }

    /* Leaders Cards */
    .player-card {
        padding: 0.75rem;
    }

    .player-card-photo {
        width: 50px;
        height: 50px;
    }

    .player-card-name {
        font-size: 0.9rem;
    }

    .player-card-stat {
        font-size: 1.5rem;
    }

    /* News Cards */
    .hub-news-card {
        margin-bottom: 0.75rem;
    }

    .hub-news-card .hub-news-image {
        height: 140px;
    }

    .hub-news-card h4 {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-padding="none"] {
        padding: 0 !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-padding="small"] {
        padding: 0.75rem !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-padding="medium"] {
        padding: 1.5rem !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-padding="large"] {
        padding: 2rem !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-text-size="smaller"] {
        font-size: 85% !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-text-size="small"] {
        font-size: 90% !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-text-size="normal"] {
        font-size: 100% !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-text-size="large"] {
        font-size: 110% !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-text-align="left"] {
        text-align: left !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-text-align="center"] {
        text-align: center !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-text-align="right"] {
        text-align: right !important;
    }

    .hub-mobile-block[data-mobile-custom="true"][data-mobile-stack-columns="true"] .row > [class*='col-'] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Split Layouts */
    .hub-container-block[data-mobile-stack="true"] .row {
        flex-direction: column;
    }

    .hub-container-block[data-mobile-stack="true"][data-mobile-reverse="true"] .row {
        flex-direction: column-reverse;
    }

    .hub-container-block[data-mobile-stack="true"] .hub-container-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .hub-container-block[data-mobile-stack="false"] .row {
        flex-direction: row;
    }

    .hub-container-block[data-mobile-stack="false"][data-mobile-reverse="true"] .row {
        flex-direction: row-reverse;
    }

    .hub-container-block[data-mobile-stack="false"] .hub-container-col--left {
        width: var(--hub-mobile-left, 50%) !important;
        max-width: var(--hub-mobile-left, 50%) !important;
        flex: 0 0 var(--hub-mobile-left, 50%) !important;
    }

    .hub-container-block[data-mobile-stack="false"] .hub-container-col--right {
        width: var(--hub-mobile-right, 50%) !important;
        max-width: var(--hub-mobile-right, 50%) !important;
        flex: 0 0 var(--hub-mobile-right, 50%) !important;
    }

    .hub-container-block .hub-block-card {
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .hub-container-block .hub-container-col:last-child .hub-block-card {
        margin-bottom: 0;
    }

    .hub-container-block .hub-profiles-grid {
        grid-template-columns: 1fr;
    }

    /* Slideshow */
    .hub-slideshow .carousel-item img {
        max-height: 250px;
    }

    /* Countdown */
    .countdown-digit {
        font-size: 2rem;
        min-width: 50px;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    /* Sponsors Grid */
    .sponsor-logo-item {
        padding: 0.5rem;
    }

    .sponsor-logo-item img {
        max-height: 40px;
    }

    .hub-profiles-grid,
    .hub-download-grid,
    .hub-registration-grid,
    .hub-sponsor-spotlight-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .hub-profile-card,
    .hub-download-card,
    .hub-registration-card,
    .hub-sponsor-spotlight-card,
    .hub-lead-form-shell {
        background: var(--hub-surface-alt);
        border: 1px solid var(--hub-border);
        border-radius: 18px;
        padding: 1.25rem;
    }

    .hub-profile-media,
    .hub-sponsor-spotlight-card__media {
        width: 72px;
        height: 72px;
        min-width: 72px;
        max-width: 72px;
        min-height: 72px;
        max-height: 72px;
        border-radius: 50%;
        overflow: hidden;
        background: rgba(15, 23, 42, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .hub-profile-media img,
    .hub-sponsor-spotlight-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .hub-profile-card__meta,
    .hub-download-meta,
    .hub-registration-card__body,
    .hub-sponsor-spotlight-card__body {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .hub-profile-card__name,
    .hub-sponsor-spotlight-card__title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--hub-text);
        margin: 0;
    }

    .hub-profile-card__role,
    .hub-registration-card__badge,
    .hub-sponsor-spotlight-card__tier {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--slms-accent);
    }

    .hub-profile-card__chips,
    .hub-download-meta__chips,
    .hub-registration-card__actions,
    .hub-sponsor-spotlight-card__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .hub-profile-chip,
    .hub-download-chip,
    .hub-registration-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        border-radius: 999px;
        padding: 0.25rem 0.65rem;
        background: rgba(15, 23, 42, 0.06);
        color: var(--hub-text-muted);
        font-size: 0.76rem;
        font-weight: 600;
    }

    .hub-download-list {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .hub-download-card {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hub-event-list,
    .hub-faq-list {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .hub-event-card,
    .hub-faq-item {
        border: 1px solid var(--hub-border);
        border-radius: 18px;
        padding: 1rem 1.1rem;
        background: var(--hub-surface-alt);
    }

    .hub-event-card__top,
    .hub-profile-card__top,
    .hub-sponsor-spotlight-card__top {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .hub-event-card__date {
        min-width: 68px;
        border-radius: 16px;
        padding: 0.8rem 0.65rem;
        background: rgba(15, 23, 42, 0.06);
        text-align: center;
        flex-shrink: 0;
    }

    .hub-event-card__date-month {
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--slms-accent);
    }

    .hub-event-card__date-day {
        display: block;
        font-size: 1.45rem;
        font-weight: 800;
        line-height: 1;
        color: var(--hub-text);
    }

    .hub-faq-question {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        align-items: center;
        border: none;
        background: none;
        color: var(--hub-text);
        font-weight: 700;
        padding: 0;
        text-align: left;
        cursor: pointer;
        list-style: none;
    }

    .hub-faq-question::-webkit-details-marker { display: none; }
    .hub-faq-question .ph-plus { transition: transform 160ms ease; }
    .hub-faq-item[open] .hub-faq-question .ph-plus { transform: rotate(45deg); }

    .hub-faq-answer {
        margin-top: 0.75rem;
        color: var(--hub-text-muted);
        line-height: 1.65;
    }

    .hub-registration-card--highlight {
        border-color: color-mix(in srgb, var(--slms-accent) 45%, white);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    }

    .hub-lead-form-shell {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hub-lead-form-shell--inline {
        flex-direction: row;
        align-items: end;
        flex-wrap: wrap;
    }

    .hub-lead-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .hub-lead-form-grid .hub-lead-form-field--full {
        grid-column: 1 / -1;
    }

    .hub-lead-form-status {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .hub-lead-form-status.is-success {
        color: #059669;
    }

    .hub-lead-form-status.is-error {
        color: #dc2626;
    }

    @media (max-width: 767.98px) {
        .hub-profiles-grid,
        .hub-download-grid,
        .hub-registration-grid,
        .hub-sponsor-spotlight-grid,
        .hub-lead-form-grid {
            grid-template-columns: 1fr;
        }

        .hub-lead-form-shell--inline {
            align-items: stretch;
        }
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }

    .gallery-grid.gallery-grid--mosaic.trio-images {
        grid-template-columns: 1fr !important;
    }

    /* Testimonials */
    .testimonial-item {
        padding: 1rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    /* CTA Buttons */
    .cta-block .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .cta-block .btn:last-child {
        margin-bottom: 0;
    }
}

/* Extra small devices (phones in portrait, under 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hub-hero {
        min-height: 320px;
        border-radius: 12px;
    }

    .hub-hero-content h1 {
        font-size: 1.35rem;
    }

    .hub-block-card {
        border-radius: 12px;
    }

    .hub-section-title {
        font-size: 1.1rem;
    }

    /* Match cards extra small */
    .match-center {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .match-center .match-venue {
        width: 100%;
        max-width: none;
        text-align: center;
        margin-top: 0.25rem;
    }

    .match-team-logo,
    .match-team-logo-placeholder {
        width: 38px;
        height: 38px;
    }

    .match-team-name {
        font-size: 0.9rem;
    }

    /* Stats extra small */
    .stat-pill .display-6 {
        font-size: 1.5rem;
    }

    /* Standings extra small */
    .hub-block-card .table thead th {
        padding: 0.5rem 0.35rem;
        font-size: 0.55rem;
    }

    .hub-block-card .table tbody td {
        padding: 0.5rem 0.35rem;
        font-size: 0.8rem;
    }

    /* Leaders extra small */
    .player-card-photo {
        width: 42px;
        height: 42px;
    }

    .player-card-stat {
        font-size: 1.25rem;
    }

    /* Countdown extra small */
    .countdown-digit {
        font-size: 1.5rem;
        min-width: 40px;
        padding: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE DESIGN - Dynamic Customization Settings
   ═══════════════════════════════════════════════════════════════════════════ */

