.home-page .hero-section {
    display: grid;
    min-height: 360px;
    border-radius: 12px;
    overflow: hidden;
}

.home-page .hero-section__content {
    padding: 3rem 2rem;
}

.home-page .hero-section h1 {
    max-width: 920px;
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.2;
    text-wrap: balance;
}

.home-page .hero-section .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-wrap: balance;
}

.home-page .row > *,
.home-page .card,
.home-page .tab-content,
.home-page .standings-groups {
    min-width: 0;
}

.home-page .card-body,
.home-page .list-group-item,
.home-page .home-section-title span {
    overflow-wrap: anywhere;
}

.home-page .badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
}

.home-page .home-live-games iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.home-page .home-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
}

.home-page .home-tabs .nav-item {
    flex: 0 0 auto;
}

.home-page .home-tabs .nav-link {
    min-height: 44px;
    white-space: nowrap;
}

.home-page .home-leader-row {
    padding: 0.65rem 0;
    align-items: baseline;
}

.home-page .home-leader-row > :first-child {
    min-width: 0;
}

.home-page .home-leader-row > :last-child {
    flex: 0 0 auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.home-page .home-birthday-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--bs-card-inner-border-radius, 0.375rem) var(--bs-card-inner-border-radius, 0.375rem) 0 0;
}

.home-page .home-birthday-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.home-page .home-birthday-date {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0.35rem;
}

.home-page .home-calendar__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-page .home-calendar__controls {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.home-page .home-calendar__controls .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.5rem;
}

.home-page .home-calendar__slider {
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}

.home-page .home-calendar__date {
    width: 180px;
    scroll-snap-align: start;
    text-decoration: none;
}

.home-page :is(.home-tabs, .standings-table-wrap, .home-calendar__slider):focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .home-page .hero-section {
        width: min(1600px, calc(100vw - 48px));
        min-height: clamp(640px, 50vw, 800px);
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .home-page .ratio-21x9 {
        --bs-aspect-ratio: 56.25%;
    }

    .home-page {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .home-page .hero-section {
        min-height: 240px;
        margin-bottom: 1.5rem !important;
    }

    .home-page .hero-section__content {
        padding: 2rem 1rem;
    }

    .home-page .mb-5 {
        margin-bottom: 2rem !important;
    }

    .home-page .mt-5 {
        margin-top: 2rem !important;
    }

    .home-page .home-card-heading,
    .home-page .home-leaders > div > .card > .card-body {
        padding: 0.85rem;
    }

    .home-page .home-overview .list-group-item,
    .home-page .btn {
        min-height: 44px;
    }

    .home-page .standings-table {
        min-width: 560px;
    }

    .home-page .standings-table th,
    .home-page .standings-table td {
        padding: 10px 8px;
    }

    .home-page .standings-table th:first-child,
    .home-page .standings-team-cell {
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: #f7fafc;
    }

    .home-page .standings-team {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
        padding: 8px 10px;
        background-color: #101820;
    }

    .home-page .standings-team span {
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 0.8rem;
    }

    .home-page .home-calendar__heading {
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .home-page .home-calendar__heading .home-section-title {
        flex: 1 1 100%;
        margin-bottom: 0;
    }

    .home-page .home-calendar__controls {
        margin-left: auto;
    }

    .home-page .home-calendar__date {
        width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
