/**
 * ST Suspensions Brand Skin Stylesheet
 *
 * Target: child-storefront-v2-2
 * Palette: Audited official ST Suspensions identity
 */

:root {
    --st-primary: #FADC19;
    --st-primary-hover: #EFC920;

    --st-logo-yellow: #FADC18;
    --st-logo-dark: #0F0915;

    --st-dark: #1A1A1A;
    --st-dark-hover: #454545;
    --st-dark-pressed: #5D5D5D;

    --st-text: #1A1A1A;
    --st-text-muted: #6D6D6D;
    --st-text-on-dark: #F6F6F6;

    --st-bg: #FFFFFF;
    --st-bg-subtle: #F6F6F6;
    --st-bg-component: #E7E7E7;
    --st-border: #D1D1D1;

    --st-focus: #3863D8;
}

/* === FOCUS INDICATORS (WCAG AA COMPLIANT, >= 3:1 / 5.32:1 CONTRAST) === */
a:focus,
button:focus,
.button:focus,
input:focus,
select:focus,
textarea:focus,
.custom-logo-link:focus,
.aps-sub-header__link:focus,
.aps-sub-header__cart:focus,
.storefront-breadcrumb a:focus {
    outline: 2px solid var(--st-focus) !important;
    outline-offset: 1px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--st-focus) !important;
    outline-offset: 1px;
}

/* === MAIN HEADER (DARK BACKGROUND REFINE) === */
.site-header {
    background-color: var(--st-dark) !important;
}

.aps-search-label {
    color: var(--st-text-on-dark) !important;
}

/* === TOP BAR === */
.aps-topbar__contact:hover {
    color: var(--st-primary);
}

/* === SUB-HEADER (NAVIGATION ROW) === */
.aps-sub-header__link:hover,
.aps-sub-header__link:focus {
    color: var(--st-dark);
    text-decoration: underline;
    text-decoration-color: var(--st-primary);
}

.aps-sub-header__cart:hover,
.aps-sub-header__cart:focus {
    color: var(--st-dark);
}

/* === HEADER SEARCH === */
.site-header .site-search .widget_product_search button[type="submit"] {
    background: var(--st-primary) !important;
    color: var(--st-dark) !important;
}

.site-header .site-search .widget_product_search button[type="submit"]:hover,
.site-header .site-search .widget_product_search button[type="submit"]:focus {
    background: var(--st-primary-hover) !important;
    color: var(--st-dark) !important;
}

.site-header .site-search .widget_product_search button[type="submit"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") !important;
}

.site-header .site-search .widget_product_search .search-field:focus {
    border-color: var(--st-focus) !important;
}

/* === CATEGORY HERO BANNER === */
.mipo-hero {
    background: var(--st-dark) !important;
}

.mipo-hero-title {
    color: #ffffff;
}

.mipo-hero-subtitle {
    color: var(--st-text-on-dark);
}

/* === BREADCRUMBS === */
.storefront-breadcrumb a {
    color: var(--st-text);
}

.storefront-breadcrumb a:hover,
.storefront-breadcrumb a:focus {
    color: var(--st-dark-hover);
    text-decoration: underline;
    text-decoration-color: var(--st-primary);
}

/* === PRIMARY CONTROLS / WOOCOMMERCE CTAS === */
/* Positively scoped to actual purchase/add-to-cart/checkout actions */
.single_add_to_cart_button,
button[name="add-to-cart"],
.woocommerce-loop-product__link + .add_to_cart_button,
ul.products li.product .add_to_cart_button,
.button.add_to_cart_button,
.checkout-button,
a.checkout-button,
#place_order,
.wc-block-components-checkout-place-order-button,
button.alt,
input[type="button"].alt,
input[type="reset"].alt,
input[type="submit"].alt,
.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--st-primary) !important;
    color: var(--st-dark) !important;
    border-color: var(--st-primary) !important;
}

.single_add_to_cart_button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
button[name="add-to-cart"]:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-loop-product__link + .add_to_cart_button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
ul.products li.product .add_to_cart_button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.button.add_to_cart_button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.checkout-button:hover,
a.checkout-button:hover,
#place_order:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.wc-block-components-checkout-place-order-button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
button.alt:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
input[type="button"].alt:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
input[type="reset"].alt:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
input[type="submit"].alt:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.button.alt:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce a.button.alt:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce button.button.alt:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce input.button.alt:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
    background-color: var(--st-primary-hover) !important;
    color: var(--st-dark) !important;
    border-color: var(--st-primary-hover) !important;
}

/* === SECONDARY CONTROLS (POSITIVELY SCOPED) === */
/* Scoped to specific cart, login, registration, account forms, and post-add View Cart */
.woocommerce-cart-form button[name="update_cart"],
.woocommerce-cart-form .coupon button,
.woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-form-register .woocommerce-form-register__submit,
.woocommerce-ResetPassword .button,
.woocommerce-EditAccountForm .button,
.woocommerce-address-fields .button,
.added_to_cart {
    background-color: var(--st-dark) !important;
    color: var(--st-text-on-dark) !important;
    border-color: var(--st-dark) !important;
}

.woocommerce-cart-form button[name="update_cart"]:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-cart-form .coupon button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-form-login .woocommerce-form-login__submit:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-form-register .woocommerce-form-register__submit:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-ResetPassword .button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-EditAccountForm .button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-address-fields .button:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.added_to_cart:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
    background-color: var(--st-dark-hover) !important;
    color: var(--st-text-on-dark) !important;
    border-color: var(--st-dark-hover) !important;
}

.woocommerce-cart-form button[name="update_cart"]:active:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-cart-form .coupon button:active:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-form-login .woocommerce-form-login__submit:active:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-form-register .woocommerce-form-register__submit:active:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-ResetPassword .button:active:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-EditAccountForm .button:active:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.woocommerce-address-fields .button:active:not(:disabled):not(.disabled):not([aria-disabled="true"]),
.added_to_cart:active:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
    background-color: var(--st-dark-pressed) !important;
    color: var(--st-text-on-dark) !important;
    border-color: var(--st-dark-pressed) !important;
}

/* === PHOTOSWIPE & GALLERY PROTECTION === */
/* Explicitly preserve PhotoSwipe transparent controls without CTA recoloring */
.pswp__button,
.pswp__button--close,
.pswp__button--share,
.pswp__button--fs,
.pswp__button--zoom,
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    background-color: transparent !important;
}

/* === DISABLED STATES (COLOR TOKENS ONLY) === */
.single_add_to_cart_button:disabled,
.single_add_to_cart_button.disabled,
button[name="add-to-cart"]:disabled,
.add_to_cart_button:disabled,
.add_to_cart_button.disabled,
.checkout-button:disabled,
.checkout-button.disabled,
#place_order:disabled,
#place_order.disabled,
.wc-block-components-checkout-place-order-button:disabled,
.wc-block-components-checkout-place-order-button.disabled,
.wc-block-components-checkout-place-order-button[aria-disabled="true"],
.button.alt:disabled,
.button.alt.disabled,
.button.alt[aria-disabled="true"],
.woocommerce a.button.alt:disabled,
.woocommerce a.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt.disabled,
.woocommerce-cart-form button[name="update_cart"]:disabled,
.woocommerce-cart-form button[name="update_cart"].disabled,
.woocommerce-form-login .woocommerce-form-login__submit:disabled,
.woocommerce-form-login .woocommerce-form-login__submit.disabled {
    background-color: var(--st-border) !important;
    color: var(--st-text-muted) !important;
    border-color: var(--st-border) !important;
}

/* === PAGINATION === */
.woocommerce-pagination ul.page-numbers li span.current,
.site-main nav.navigation .page-numbers.current {
    background-color: var(--st-primary) !important;
    color: var(--st-dark) !important;
    border-color: var(--st-primary) !important;
}

.woocommerce-pagination ul.page-numbers li a:hover,
.woocommerce-pagination ul.page-numbers li a:focus,
.site-main nav.navigation a.page-numbers:hover,
.site-main nav.navigation a.page-numbers:focus {
    background-color: var(--st-bg-component);
    color: var(--st-dark);
}

/* === CSX SIDEBAR FAST CATEGORIES WIDGET === */
.widget_csx_fast_categories .cat-item a:hover {
    color: var(--st-dark) !important;
    border-bottom-color: var(--st-primary) !important;
}

.widget_csx_fast_categories .cat-item.current-cat > a {
    color: var(--st-dark) !important;
}

.widget_csx_fast_categories .cat-item.current-cat .count {
    background: var(--st-primary) !important;
    color: var(--st-dark) !important;
}

.widget_csx_fast_categories .current-category-title {
    border-bottom: 2px solid var(--st-primary) !important;
}

/* === CSX IMAGE SLIDER === */
.csx-slider-dot.active {
    background: var(--st-primary) !important;
}

/* === CSX DISPLAY PRODUCT TABS === */
.woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid var(--st-primary) !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--st-dark) !important;
}

/* === STAR RATINGS, PAYMENT & PRICE FILTER (WCAG NON-TEXT CONTRAST >= 3:1) === */
/* Use high-contrast dark #1A1A1A for active rating stars, payment radio, and range bar */
.star-rating span::before,
p.stars.selected a.active::before,
p.stars.selected a:not(.active)::before,
p.stars:hover a::before,
p.stars a:hover::before {
    color: var(--st-dark) !important;
}

#payment .payment_methods li input[type="radio"]:first-child:checked + label::before {
    color: var(--st-dark) !important;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--st-dark) !important;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--st-primary) !important;
    border: 1px solid var(--st-dark) !important;
}

/* === ORDINARY CONTENT & ACCOUNT LINKS (REPLACING STOREFRONT PURPLE) === */
.entry-content a:not(.button):not(.components-button),
.woocommerce-Tabs-panel a:not(.button),
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button),
.woocommerce-LostPassword a {
    color: var(--st-text);
    text-decoration: underline;
}

.entry-content a:not(.button):not(.components-button):hover,
.woocommerce-Tabs-panel a:not(.button):hover,
.woocommerce-message a:not(.button):hover,
.woocommerce-info a:not(.button):hover,
.woocommerce-error a:not(.button):hover,
.woocommerce-LostPassword a:hover,
.woocommerce-LostPassword a:focus {
    color: var(--st-dark-hover);
}

/* === FOOTER === */
.csx-footer {
    background: var(--st-logo-dark) !important;
}

.csx-footer-heading {
    border-bottom: 2px solid var(--st-primary) !important;
}

.csx-footer-links a:hover,
.csx-footer-links a:focus {
    color: var(--st-primary) !important;
}

.csx-contact-icon {
    color: var(--st-primary) !important;
}

.csx-contact-item a:hover,
.csx-contact-item a:focus {
    color: var(--st-primary) !important;
}

.csx-contact-map a {
    color: var(--st-primary) !important;
}

.csx-footer-logo {
    filter: none !important;
}

/* === FOOTER BRAND BLOCK === */
.csx-footer-brand-block {
    max-width: 270px;
}

.csx-footer-brand-accent {
    display: block;
    width: 36px;
    height: 3px;
    background-color: var(--st-primary, #FADC19);
    margin-bottom: 11px;
}

.csx-footer-brand-primary {
    color: var(--st-text-on-dark, #FFFFFF) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px 0 !important;
}

.csx-footer-brand-secondary {
    color: #AAAAAA !important;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 !important;
}

/* === FOOTER FIVE-COLUMN & RESPONSIVE GRID === */
.csx-footer-main > .csx-footer-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
}

@media (max-width: 1180px) and (min-width: 721px) {
    .csx-footer-main > .csx-footer-inner {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 28px;
    }

    .csx-footer-main > .csx-footer-inner > .csx-footer-col:nth-child(1),
    .csx-footer-main > .csx-footer-inner > .csx-footer-col:nth-child(2),
    .csx-footer-main > .csx-footer-inner > .csx-footer-col:nth-child(3) {
        grid-column: span 2;
    }

    .csx-footer-main > .csx-footer-inner > .csx-footer-col:nth-child(4),
    .csx-footer-main > .csx-footer-inner > .csx-footer-col:nth-child(5) {
        grid-column: span 3;
    }
}

@media (max-width: 720px) {
    .csx-footer-main > .csx-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .csx-footer-main > .csx-footer-inner > .csx-footer-col {
        grid-column: auto;
    }
}

@media (max-width: 540px) {
    .csx-footer-main > .csx-footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .csx-footer-main > .csx-footer-inner > .csx-footer-col {
        grid-column: auto;
    }
}

/* === DELIVERY NOTICE === */
p.dodacia-doba {
    border-left: 3px solid var(--st-primary) !important;
}

/* === COOKIE BANNER === */
#cookie-banner {
    background: var(--st-dark) !important;
}

#cookie-banner a {
    color: var(--st-primary) !important;
    text-decoration: underline !important;
}

#cookie-banner button[onclick*="accept"] {
    background: var(--st-primary) !important;
    color: var(--st-dark) !important;
    border: none !important;
}

#cookie-banner button[onclick*="accept"]:hover {
    background: var(--st-primary-hover) !important;
    color: var(--st-dark) !important;
}

#cookie-banner button[onclick*="reject"] {
    background: transparent !important;
    color: var(--st-text-on-dark) !important;
    border: 1px solid var(--st-border) !important;
}

#cookie-banner button[onclick*="reject"]:hover {
    background: var(--st-dark-hover) !important;
    color: var(--st-text-on-dark) !important;
}

/* === NOTICES === */
.woocommerce-info {
    border-top-color: var(--st-focus);
}

.woocommerce-info::before {
    color: var(--st-focus);
}

/* =====================================================================
   CSX ST EDITORIAL SINGLE UI
   ===================================================================== */

/* 1. Layout & Centered Reading Container */
body.csx-st-editorial-single #secondary.widget-area {
    display: none !important;
}

body.csx-st-editorial-single #primary.content-area {
    width: 100% !important;
    max-width: 1000px !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. Header & Divider Removal */
body.csx-st-editorial-single .hentry .entry-header.csx-st-editorial-header {
    border-bottom: none !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0 !important;
}

/* 3. Category Eyebrow & ST Yellow Accent */
body.csx-st-editorial-single .csx-st-editorial-kicker {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--st-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

body.csx-st-editorial-single .csx-st-editorial-kicker::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    background-color: var(--st-primary);
    border-radius: 2px;
    margin-top: 6px;
}

/* 4. Editorial H1 Typography */
body.csx-st-editorial-single .csx-st-editorial-header .entry-title {
    font-size: clamp(34px, 3vw, 46px) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.015em !important;
    color: var(--st-dark) !important;
    margin: 0 0 0.5rem 0 !important;
    word-wrap: break-word;
}

/* 5. Clean Metadata (Date + ST suspensions) */
body.csx-st-editorial-single .csx-st-editorial-meta {
    font-size: 0.875rem;
    color: var(--st-text-muted);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

body.csx-st-editorial-single .csx-st-editorial-meta-separator {
    margin: 0 0.35rem;
    color: var(--st-border);
}

body.csx-st-editorial-single .csx-st-editorial-brand {
    font-weight: 600;
    color: var(--st-dark);
}

/* 6. Featured Image Presentation */
body.csx-st-editorial-single .hentry .wp-post-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 3px;
    margin-top: 0;
    margin-bottom: 2rem;
    display: block;
}

/* 7. Responsive Rules */
@media (max-width: 568px) {
    body.csx-st-editorial-single .csx-st-editorial-header .entry-title {
        font-size: 28px !important;
        line-height: 1.18 !important;
    }
    body.csx-st-editorial-single .hentry .entry-header.csx-st-editorial-header {
        margin-bottom: 1.25rem !important;
    }
    body.csx-st-editorial-single .hentry .wp-post-image {
        margin-bottom: 1.5rem;
    }
}

/* =====================================================================
   CSX ST EDITORIAL CATEGORY ARCHIVE UI
   ===================================================================== */

/* 1. Layout & Full Width Container */
body.csx-st-editorial-archive #secondary.widget-area {
    display: none !important;
}

body.csx-st-editorial-archive #primary.content-area {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. Archive Header */
body.csx-st-editorial-archive .csx-st-archive-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--st-border);
}

body.csx-st-editorial-archive .csx-st-archive-kicker {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--st-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

body.csx-st-editorial-archive .csx-st-archive-kicker::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    background-color: var(--st-primary);
    border-radius: 2px;
    margin-top: 6px;
}

body.csx-st-editorial-archive .csx-st-archive-title {
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--st-dark);
    margin: 0 0 0.75rem 0;
    word-wrap: break-word;
}

body.csx-st-editorial-archive .csx-st-archive-description {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--st-text-muted);
    max-width: 800px;
    margin-top: 0.5rem;
}

body.csx-st-editorial-archive .csx-st-archive-description p:last-child {
    margin-bottom: 0;
}

/* 3. Staging Preview Notice */
body.csx-st-editorial-archive .csx-st-preview-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--st-bg-subtle);
    border: 1px solid var(--st-border);
    border-left: 3px solid var(--st-primary);
    border-radius: 3px;
    padding: 0.625rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--st-dark);
}

body.csx-st-editorial-archive .csx-st-preview-notice-icon {
    font-size: 1rem;
    color: var(--st-dark);
    line-height: 1;
}

body.csx-st-editorial-archive .csx-st-preview-notice-text {
    font-weight: 500;
}

/* 4. Branded Empty State */
body.csx-st-editorial-archive .csx-st-archive-empty {
    background-color: var(--st-bg-subtle);
    border: 1px solid var(--st-border);
    border-radius: 4px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin: 2rem 0 3rem 0;
}

body.csx-st-editorial-archive .csx-st-archive-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--st-dark);
    margin: 0 0 0.75rem 0;
}

body.csx-st-editorial-archive .csx-st-archive-empty-text {
    font-size: 1rem;
    color: var(--st-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 5. Article Grid */
body.csx-st-editorial-archive .csx-st-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 6. Editorial Cards */
body.csx-st-editorial-archive .csx-st-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.csx-st-editorial-archive .csx-st-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

body.csx-st-editorial-archive .csx-st-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--st-bg-subtle);
}

body.csx-st-editorial-archive .csx-st-card-media a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

body.csx-st-editorial-archive .csx-st-card-image {
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

body.csx-st-editorial-archive .csx-st-card:hover .csx-st-card-image {
    transform: scale(1.02);
}

body.csx-st-editorial-archive .csx-st-card-image--cover {
    object-fit: cover;
}

body.csx-st-editorial-archive .csx-st-card-image--contain {
    object-fit: contain;
    background-color: #FFFFFF;
    padding: 0.75rem;
}

/* Decorative No-Image Placeholder */
body.csx-st-editorial-archive .csx-st-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--st-dark) 0%, #2A2A2A 100%);
    color: var(--st-text-on-dark);
    user-select: none;
    padding: 1.5rem;
    box-sizing: border-box;
}

body.csx-st-editorial-archive .csx-st-card-placeholder-accent {
    width: 38px;
    height: 3px;
    background-color: var(--st-primary);
    border-radius: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

body.csx-st-editorial-archive .csx-st-card-placeholder-brand {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-text-on-dark);
    opacity: 0.9;
}

/* Card Content Body */
body.csx-st-editorial-archive .csx-st-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
}

body.csx-st-editorial-archive .csx-st-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
}

body.csx-st-editorial-archive .csx-st-card-date {
    color: var(--st-text-muted);
}

body.csx-st-editorial-archive .csx-st-badge-draft {
    display: inline-block;
    background-color: var(--st-primary);
    color: var(--st-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 2px;
    line-height: 1.3;
}

body.csx-st-editorial-archive .csx-st-card-title {
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.625rem 0;
    letter-spacing: -0.01em;
    word-wrap: break-word;
}

body.csx-st-editorial-archive .csx-st-card-title a {
    color: var(--st-dark);
    text-decoration: none;
}

body.csx-st-editorial-archive .csx-st-card-title a:hover {
    color: var(--st-dark-hover);
    text-decoration: underline;
}

body.csx-st-editorial-archive .csx-st-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--st-text-muted);
    margin: 0;
    flex-grow: 1;
}

/* 7. Pagination */
body.csx-st-editorial-archive .navigation.pagination {
    margin: 2.5rem 0 1rem 0;
    text-align: center;
}

body.csx-st-editorial-archive .navigation.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

body.csx-st-editorial-archive .navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--st-dark);
    background-color: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.csx-st-editorial-archive .navigation.pagination .page-numbers:hover {
    background-color: var(--st-bg-subtle);
    border-color: var(--st-dark);
}

body.csx-st-editorial-archive .navigation.pagination .page-numbers.current {
    background-color: var(--st-primary);
    border-color: var(--st-primary);
    color: var(--st-dark);
}

body.csx-st-editorial-archive .navigation.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--st-text-muted);
}

/* 8. Responsive & Accessibility Breakpoints */
@media (max-width: 920px) {
    body.csx-st-editorial-archive .csx-st-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 568px) {
    body.csx-st-editorial-archive .csx-st-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    body.csx-st-editorial-archive .csx-st-archive-title {
        font-size: 26px;
        line-height: 1.2;
    }

    body.csx-st-editorial-archive .csx-st-archive-header {
        margin-bottom: 1.75rem;
        padding-bottom: 1rem;
    }

    body.csx-st-editorial-archive .csx-st-card-title {
        font-size: 1.125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.csx-st-editorial-archive .csx-st-card,
    body.csx-st-editorial-archive .csx-st-card-image,
    body.csx-st-editorial-archive .navigation.pagination .page-numbers {
        transition: none !important;
        transform: none !important;
    }
}

/* ============================================================
 * CSX ST HOMEPAGE EDITORIAL UI
 * ============================================================ */

/* Scope: Homepage template only */
body.home.page-template-template-homepage-csx .csx-st-home-editorial {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 2.5rem 0;
}

/* Staging Preview Notice */
body.home.page-template-template-homepage-csx .csx-st-home-preview-notice {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    background-color: #FFFDF0;
    border-left: 4px solid var(--st-primary);
    border-radius: 2px;
    font-size: 0.875rem;
    color: var(--st-dark);
}

body.home.page-template-template-homepage-csx .csx-st-home-preview-notice-icon {
    font-weight: 700;
    color: var(--st-dark);
}

body.home.page-template-template-homepage-csx .csx-st-home-preview-notice-text {
    line-height: 1.4;
}

/* Branded Empty State */
body.home.page-template-template-homepage-csx .csx-st-home-empty-state {
    margin-bottom: 2rem;
}

body.home.page-template-template-homepage-csx .csx-st-home-empty-card {
    padding: 3.5rem 2rem;
    background-color: var(--st-bg-subtle);
    border: 1px solid var(--st-border);
    border-radius: 4px;
    text-align: center;
}

body.home.page-template-template-homepage-csx .csx-st-home-empty-accent {
    width: 48px;
    height: 4px;
    background-color: var(--st-primary);
    border-radius: 2px;
    margin: 0 auto 1.25rem auto;
    display: block;
}

body.home.page-template-template-homepage-csx .csx-st-home-empty-heading {
    font-size: 1.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem 0;
    color: var(--st-dark);
}

body.home.page-template-template-homepage-csx .csx-st-home-empty-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--st-text-muted);
    margin: 0;
}

/* Editorial Sections */
body.home.page-template-template-homepage-csx .csx-st-home-section {
    margin-bottom: 3.25rem;
}

body.home.page-template-template-homepage-csx .csx-st-home-section:last-child {
    margin-bottom: 0;
}

body.home.page-template-template-homepage-csx .csx-st-home-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 0.875rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--st-dark);
}

body.home.page-template-template-homepage-csx .csx-st-home-title {
    font-size: 1.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
    color: var(--st-dark);
}

body.home.page-template-template-homepage-csx .csx-st-home-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

body.home.page-template-template-homepage-csx .csx-st-home-nav-link,
body.home.page-template-template-homepage-csx .csx-st-home-view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--st-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

body.home.page-template-template-homepage-csx .csx-st-home-nav-link:hover,
body.home.page-template-template-homepage-csx .csx-st-home-view-all:hover {
    color: var(--st-dark-hover);
    text-decoration: underline;
    text-decoration-color: var(--st-primary);
}

/* Top-9 Grid */
body.home.page-template-template-homepage-csx .csx-st-home-grid-top9 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Card Base */
body.home.page-template-template-homepage-csx .csx-st-home-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--st-bg);
    border: 1px solid var(--st-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.home.page-template-template-homepage-csx .csx-st-home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

/* Card Media */
body.home.page-template-template-homepage-csx .csx-st-home-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--st-bg-subtle);
}

body.home.page-template-template-homepage-csx .csx-st-home-card-media a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-image {
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

body.home.page-template-template-homepage-csx .csx-st-home-card:hover .csx-st-home-card-image {
    transform: scale(1.02);
}

body.home.page-template-template-homepage-csx .csx-st-home-card-image--cover {
    object-fit: cover;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-image--contain {
    object-fit: contain;
    background-color: #FFFFFF;
    padding: 0.75rem;
}

/* Decorative No-Image Placeholder */
body.home.page-template-template-homepage-csx .csx-st-home-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--st-dark) 0%, #2A2A2A 100%);
    color: var(--st-text-on-dark);
    user-select: none;
    padding: 1.5rem;
    box-sizing: border-box;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-placeholder-accent {
    width: 38px;
    height: 3px;
    background-color: var(--st-primary);
    border-radius: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-placeholder-brand {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-text-on-dark);
    opacity: 0.9;
}

/* Card Body */
body.home.page-template-template-homepage-csx .csx-st-home-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.125rem 1.125rem 1.375rem 1.125rem;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-date {
    color: var(--st-text-muted);
}

body.home.page-template-template-homepage-csx .csx-st-home-card-kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--st-text-muted);
}

body.home.page-template-template-homepage-csx .csx-st-home-badge-draft {
    display: inline-block;
    background-color: var(--st-primary);
    color: var(--st-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 2px;
    line-height: 1.3;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    word-wrap: break-word;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-title a {
    color: var(--st-dark);
    text-decoration: none;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-title a:hover {
    color: var(--st-dark-hover);
    text-decoration: underline;
}

body.home.page-template-template-homepage-csx .csx-st-home-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--st-text-muted);
    margin: 0;
    flex-grow: 1;
}

/* Evergreen Grid & Horizontal Card */
body.home.page-template-template-homepage-csx .csx-st-home-grid-evergreen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal {
    display: grid;
    grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
    width: 100%;
    align-items: center;
}

body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal .csx-st-home-card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background-color: var(--st-bg-subtle);
}

body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal .csx-st-home-card-media a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal .csx-st-home-card-image {
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal .csx-st-home-card-body {
    width: 100%;
    min-width: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal .csx-st-home-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    word-wrap: break-word;
}

body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal .csx-st-home-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--st-text-muted);
    margin: 0;
}

/* Breakpoints */
@media (max-width: 1100px) {
    body.home.page-template-template-homepage-csx .csx-st-home-grid-top9 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    body.home.page-template-template-homepage-csx .csx-st-home-grid-evergreen {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 568px) {
    body.home.page-template-template-homepage-csx .csx-st-home-grid-top9 {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal {
        display: flex;
        flex-direction: column;
    }

    body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal .csx-st-home-card-media {
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: auto;
    }

    body.home.page-template-template-homepage-csx .csx-st-home-card--horizontal .csx-st-home-card-body {
        width: 100%;
        min-width: 0;
        padding: 1.125rem;
    }

    body.home.page-template-template-homepage-csx .csx-st-home-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    body.home.page-template-template-homepage-csx .csx-st-home-card,
    body.home.page-template-template-homepage-csx .csx-st-home-card-image {
        transition: none !important;
        transform: none !important;
    }
}
