/**
 * Premium theme — compatibility overrides (loads after style-2.1.1 and scheme CSS)
 */

html {
    background-color: var(--premium-bg);
}

body.premium .header-mobile-container.premium-mobile-shell {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: auto;
    min-height: 70px;
    transform: none !important;
    will-change: auto !important;
}

@media (max-width: 991.98px) {
    body.premium .header-mobile-container.premium-mobile-shell {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: #0f1014 !important;
    }
}

body.premium .header-mobile-container .fixed-top,
body.premium .premium-mobile-shell .fixed-top {
    position: static !important;
    transform: none !important;
}

body.premium .header-mobile.premium-mobile-bar,
body.premium .premium-mobile-bar.header-mobile,
body.premium .header-mobile-container .header-mobile {
    position: relative;
    background-color: #0f1014 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    transform: none !important;
    will-change: auto !important;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

@media (max-width: 991.98px) {
    body.premium #header {
        margin-bottom: 0 !important;
        min-height: 0 !important;
        background: #0f1014 !important;
    }

    body.premium .header-mobile-container,
    body.premium .header-mobile-container.premium-mobile-shell {
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }
}

body.premium .header-mobile .mobile-logo,
body.premium .header-mobile .mobile-logo img,
body.premium .premium-mobile-bar .mobile-logo img {
    transform: none !important;
    will-change: auto !important;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    filter: none !important;
}

@media (max-width: 991.98px) {
    body.premium.premium-scheme-light .premium-mobile-shell,
    body.premium.premium-scheme-light .header-mobile-container.premium-mobile-shell {
        background: #0f1014 !important;
    }

    body.premium.premium-scheme-light .header-mobile.premium-mobile-bar,
    body.premium.premium-scheme-light .premium-mobile-bar.header-mobile {
        background-color: #0f1014 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    body.premium.premium-scheme-light .header-mobile .mobile-search-form,
    body.premium.premium-scheme-light .premium-mobile-bar .mobile-search-form {
        background-color: #0f1014 !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

    body.premium.premium-scheme-light .header-mobile.premium-mobile-bar .menu-button,
    body.premium.premium-scheme-light .premium-mobile-bar .menu-button,
    body.premium.premium-scheme-light .header-mobile.premium-mobile-bar .menu-button svg {
        color: #f4f4f5 !important;
        stroke: #f4f4f5 !important;
        background-color: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }

    body.premium.premium-scheme-light .premium-mobile-bar .mobile-logo img,
    body.premium.premium-scheme-light .header-mobile .mobile-logo img {
        opacity: 1 !important;
        filter: none !important;
    }

    body.premium.premium-scheme-light .header-mobile .mobile-search-button,
    body.premium.premium-scheme-light .premium-mobile-bar .mobile-search-button,
    body.premium.premium-scheme-light .header-mobile .mobile-search-button svg,
    body.premium.premium-scheme-light .premium-mobile-bar .mobile-search-button svg {
        color: #f4f4f5 !important;
        stroke: #f4f4f5 !important;
    }
}

@media (min-width: 992px) {
    body.premium.premium-scheme-light .header-mobile.premium-mobile-bar,
    body.premium.premium-scheme-light .premium-mobile-bar.header-mobile {
        background-color: #ffffff !important;
        border-bottom: 1px solid rgba(15, 18, 28, 0.1) !important;
    }

    body.premium.premium-scheme-light .header-mobile.premium-mobile-bar .menu-button,
    body.premium.premium-scheme-light .premium-mobile-bar .menu-button,
    body.premium.premium-scheme-light .header-mobile.premium-mobile-bar .menu-button svg {
        color: #12131a !important;
        stroke: #12131a !important;
        background-color: rgba(15, 18, 28, 0.04) !important;
        border-color: rgba(15, 18, 28, 0.12) !important;
    }

    body.premium.premium-scheme-light .header-mobile .mobile-search-form,
    body.premium.premium-scheme-light .premium-mobile-bar .mobile-search-form {
        background-color: #ffffff !important;
        border-bottom-color: rgba(15, 18, 28, 0.1) !important;
    }
}

body.premium .header-mobile.premium-mobile-bar .menu-button,
body.premium .premium-mobile-bar .menu-button,
body.premium .header-mobile.premium-mobile-bar .menu-button svg {
    color: #f4f4f5 !important;
    stroke: #f4f4f5 !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.premium .header-mobile .mobile-search-form,
body.premium .premium-mobile-bar .mobile-search-form {
    background-color: #0f1014 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* ── Hero breaking-news strip: opaque dark bar, immune to legacy newsticker rules ── */
#premium-home .premium-hero__strip-wrap.premium-newsticker-exempt,
#premium-home .premium-hero__strip-wrap {
    position: static !important;
    z-index: auto !important;
    isolation: auto !important;
    contain: none !important;
    transform: none !important;
    will-change: auto !important;
}

#premium-home .premium-hero__strip-wrap.premium-newsticker-exempt .premium-hero__strip,
#premium-home .premium-newsticker-exempt .premium-hero__strip,
.premium-newsticker-exempt.premium-hero__strip,
.premium-newsticker-exempt .premium-hero__strip {
    background-color: #121218 !important;
    background: #121218 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    will-change: auto !important;
}

#premium-home .premium-newsticker-exempt .newsticker-title,
#premium-home .premium-newsticker-exempt .premium-hero__strip-label.newsticker-title,
.premium-newsticker-exempt .newsticker-title,
.premium-newsticker-exempt .premium-hero__strip-label.newsticker-title {
    color: #f4f4f5 !important;
    background-color: #1c1c24 !important;
    background: #1c1c24 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

#premium-home .premium-newsticker-exempt .newsticker li a,
.premium-newsticker-exempt .newsticker li a {
    color: #c4c4cc !important;
}

#premium-home .premium-newsticker-exempt .newsticker li a:hover,
.premium-newsticker-exempt .newsticker li a:hover {
    color: #ececf0 !important;
}

.premium-newsticker-exempt.newsticker-container,
.premium-newsticker-exempt .newsticker-container {
    justify-content: flex-start !important;
    align-items: center !important;
    position: static !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.premium-newsticker-exempt .newsticker-title,
.premium-newsticker-exempt .premium-hero__strip-label.newsticker-title {
    color: #f4f4f5 !important;
    font-size: 0.625rem !important;
    font-weight: 650 !important;
    padding: 0.28rem 0.62rem !important;
    border-radius: var(--premium-radius-pill) !important;
    background-color: #1c1c24 !important;
    background: #1c1c24 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    display: inline-flex !important;
    white-space: nowrap !important;
}

.premium-newsticker-exempt .newsticker-title span,
.premium-newsticker-exempt .premium-hero__strip-label span:not(.premium-hero__strip-dot) {
    display: inline !important;
}

.premium-newsticker-exempt .newsticker {
    height: 1.25rem !important;
    line-height: 1.25rem !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.premium-newsticker-exempt .newsticker li {
    max-width: none !important;
}

.premium-newsticker-exempt .newsticker li a {
    color: #c4c4cc !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    max-width: none !important;
}

.premium-newsticker-exempt .newsticker li a:hover {
    color: #ececf0 !important;
}

.premium-newsticker-exempt .nav-sm-buttons,
.premium-newsticker-exempt .premium-hero__strip-nav .nav-sm-buttons {
    position: static !important;
    right: auto !important;
    top: auto !important;
    display: inline-flex !important;
    gap: 0.25rem !important;
}

.premium-newsticker-exempt .nav-sm-buttons button,
.premium-newsticker-exempt .nav-sm-buttons .prev,
.premium-newsticker-exempt .nav-sm-buttons .next {
    position: static !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    padding: 0 !important;
    border-radius: var(--premium-radius-sm) !important;
    background-color: #1a1a22 !important;
    background: #1a1a22 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #d4d4dc !important;
}

.premium-newsticker-exempt .nav-sm-buttons button:hover,
.premium-newsticker-exempt .nav-sm-buttons .prev:hover,
.premium-newsticker-exempt .nav-sm-buttons .next:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--premium-strip-text) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Prevent style-2.1.1 body/link defaults from overriding premium shell */
body.premium {
    background: var(--premium-bg) !important;
    color: var(--premium-text) !important;
}

body.premium a {
    color: inherit;
}

body.premium .post-meta,
body.premium .small-post-meta {
    color: var(--premium-text-muted);
}

body.premium .post-meta a,
body.premium .small-post-meta a {
    color: var(--premium-text-muted);
}

body.premium .post-meta a:hover,
body.premium .small-post-meta a:hover {
    color: var(--premium-text);
}

body.premium .section-title .title,
body.premium .page-title {
    color: var(--premium-text);
}

/* Footer — locked dark in both site schemes (overrides premium-scheme-light body tokens) */
body.premium .premium-footer-shell,
body.premium.premium-scheme-light .premium-footer-shell {
    background: var(--premium-footer-bg) !important;
    border-top-color: var(--premium-footer-border) !important;
}

body.premium #footer.premium-footer,
body.premium.premium-scheme-light #footer.premium-footer {
    background: transparent !important;
    color: var(--premium-footer-muted) !important;
    border-top-color: transparent !important;
}

body.premium #footer.premium-footer .widget-title,
body.premium.premium-scheme-light #footer.premium-footer .widget-title {
    color: var(--premium-footer-text) !important;
}

body.premium #footer.premium-footer .footer-about,
body.premium #footer.premium-footer .copyright,
body.premium #footer.premium-footer .nav-footer a,
body.premium #footer.premium-footer .footer-posts .post-item-small .title a,
body.premium #footer.premium-footer .footer-social-links ul li a,
body.premium.premium-scheme-light #footer.premium-footer .footer-about,
body.premium.premium-scheme-light #footer.premium-footer .copyright,
body.premium.premium-scheme-light #footer.premium-footer .nav-footer a {
    color: var(--premium-footer-muted) !important;
}

body.premium #footer.premium-footer .footer-copyright,
body.premium.premium-scheme-light #footer.premium-footer .footer-copyright {
    border-top-color: var(--premium-footer-border) !important;
}

body.premium #footer.premium-footer .footer-contact-input,
body.premium.premium-scheme-light #footer.premium-footer .footer-contact-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--premium-footer-border) !important;
    color: var(--premium-footer-text) !important;
    color-scheme: dark;
}

body.premium #footer.premium-footer a,
body.premium.premium-scheme-light #footer.premium-footer a {
    color: inherit;
}

@media (max-width: 767.98px) {
    #premium-home .premium-hero__strip-wrap.premium-newsticker-exempt .premium-hero__strip,
    #premium-home .premium-newsticker-exempt .premium-hero__strip {
        background-color: #121218 !important;
        background: #121218 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .premium-newsticker-exempt .newsticker-title span,
    .premium-newsticker-exempt .premium-hero__strip-label span:not(.premium-hero__strip-dot) {
        display: inline !important;
    }

    .premium-newsticker-exempt .newsticker li a {
        max-width: 100% !important;
        white-space: nowrap !important;
        color: #c4c4cc !important;
    }

    .premium-newsticker-exempt .newsticker-container .nav-sm-buttons {
        position: static !important;
        right: auto !important;
        top: auto !important;
    }
}
