/* v236 site performance pass
   Lightweight rendering improvements that apply safely across every public page. */
:root {
    --kisure-contain-offset: 900px;
}

img,
picture,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

.news-card,
.story-tile,
.hero-story,
.site-panel,
.surface-card,
.football-section,
.football-side-panel,
.football-match-card,
.football-compact-hero,
.article-content-card,
.article-body-card,
.article-related-card,
.video-feature,
.gallery-card,
.latest-post-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 460px;
}

.hero-grid,
.article-hero,
.football-hero,
.football-compact-hero,
.kisure-home-feature-hero {
    content-visibility: visible;
}

.news-card__media,
.story-tile__media,
.hero-story__media,
.article-hero__media,
.video-feature__media,
.gallery-card__media,
.latest-post-card__media,
.football-card-media,
.football-match-card__team img,
.football-table-team img {
    background-color: rgba(148, 163, 184, .12);
}

.news-card__media img,
.story-tile__media img,
.hero-story__media img,
.article-hero__media img,
.video-feature__media img,
.gallery-card__media img,
.latest-post-card__media img,
.football-page img {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* Keep animations elegant but cheaper, especially on long archive pages. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

@media (max-width: 767.98px) {
    .site-main {
        padding-top: 1rem;
    }

    .site-panel,
    .surface-card {
        backdrop-filter: none !important;
    }
}

.legacy-sidebar-panel {
    background: var(--bg-elevated, #fff);
    border: 1px solid var(--border, rgba(15, 23, 42, .1));
    border-radius: var(--radius-md, 22px);
    box-shadow: var(--shadow-sm, 0 18px 40px rgba(15, 23, 42, .08));
    padding: 1rem;
}

.legacy-sidebar-story {
    border-bottom: 1px solid var(--border, rgba(15, 23, 42, .1));
    padding-bottom: .75rem;
}

.legacy-sidebar-story:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legacy-sidebar-panel--ad {
    min-height: 120px;
}
