/* Final responsive layer. Keep mobile navigation and typography owned here. */
/* Content visibility is never allowed to depend on a scroll observer. Large
 * structural sections stay paintable across every page and browser. */
body.pa12-theme section.pa12-scroll-reveal,
body.pa12-theme main.pa12-scroll-reveal,
body.pa12-theme .pa12-page-section.pa12-scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Draw north-east arrows in CSS so iOS cannot substitute blue emoji glyphs. */
body.pa12-theme .gsp-button > span:last-child,
body.pa12-theme .gsp-arrow-link > span:last-child,
body.pa12-theme .gsp-section-bar > a > span:last-child,
body.pa12-theme .gsp-category-list__item > i,
body.pa12-theme .pa12-category-card__arrow,
body.pa12-theme .gsp-juror-card__arrow,
body.pa12-theme .gsp-photographer-year-card__link,
body.pa12-theme .pa12-css-arrow,
body.pa12-theme .pa12-winner-modal__profile-link > span[aria-hidden="true"] {
    overflow: visible !important; font-size: 0 !important; line-height: 0 !important;
    text-indent: -9999px !important; text-shadow: none !important;
}
body.pa12-theme .gsp-button > span:last-child,
body.pa12-theme .gsp-arrow-link > span:last-child,
body.pa12-theme .gsp-section-bar > a > span:last-child,
body.pa12-theme .pa12-css-arrow,
body.pa12-theme .pa12-winner-modal__profile-link > span[aria-hidden="true"] {
    position: relative !important; display: inline-block !important;
    flex: 0 0 18px !important; width: 18px !important; height: 18px !important;
}
body.pa12-theme .gsp-category-list__item > i {
    position: absolute !important; display: block !important;
    top: auto !important; right: 16px !important; bottom: 17px !important; left: auto !important;
    width: 18px !important; height: 18px !important;
}
body.pa12-theme .pa12-category-card__arrow {
    position: absolute !important; right: 17px !important; bottom: 15px !important;
    top: auto !important; left: auto !important; z-index: 5 !important;
}
body.pa12-theme .gsp-juror-card__arrow {
    position: absolute !important; right: 20px !important; bottom: 20px !important;
    top: auto !important; left: auto !important;
}
body.pa12-theme .gsp-photographer-year-card__link {
    position: absolute !important; right: 18px !important; bottom: 16px !important;
    top: auto !important; left: auto !important;
}

/* Keep category cards paint-stable in Safari/WebKit. */
body.pa12-theme .pa12-categories-page .pa12-categories-clean.pa12-scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
body.pa12-theme .pa12-categories-page .pa12-category-card {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    will-change: auto !important;
    content-visibility: visible !important;
    contain: none !important;
    background: #111 !important;
}
body.pa12-theme .pa12-categories-page .pa12-category-card__media,
body.pa12-theme .pa12-categories-page .pa12-category-card__body,
body.pa12-theme .pa12-categories-page .pa12-category-card img,
body.pa12-theme .pa12-categories-page .pa12-category-card__number,
body.pa12-theme .pa12-categories-page .pa12-category-card__arrow {
    opacity: 1 !important;
    visibility: visible !important;
}
body.pa12-theme .pa12-categories-page .pa12-category-card__media { z-index: 1 !important; }
body.pa12-theme .pa12-categories-page .pa12-category-card__body { z-index: 2 !important; }
body.pa12-theme .pa12-categories-page .pa12-category-card__number { z-index: 4 !important; }

/* Category numbering was removed from the final card design. Older bundled
 * styles generated it again with CSS counters, so suppress both variants. */
body.pa12-theme .pa12-categories-page .pa12-category-card::before,
body.pa12-theme .pa12-home-category-card::before {
    content: none !important;
    display: none !important;
}
body.pa12-theme .pa12-categories-page .pa12-category-card__arrow { z-index: 5 !important; }

body.pa12-theme .gsp-button > span:last-child::before,
body.pa12-theme .gsp-arrow-link > span:last-child::before,
body.pa12-theme .gsp-section-bar > a > span:last-child::before,
body.pa12-theme .gsp-category-list__item > i::before,
body.pa12-theme .pa12-category-card__arrow::before,
body.pa12-theme .gsp-juror-card__arrow::before,
body.pa12-theme .gsp-photographer-year-card__link::before,
body.pa12-theme .pa12-css-arrow::before,
body.pa12-theme .pa12-winner-modal__profile-link > span[aria-hidden="true"]::before {
    content: "" !important; position: absolute !important;
    top: 50% !important; right: auto !important; bottom: auto !important; left: 50% !important;
    width: 9px !important; height: 9px !important; border: 0 !important;
    border-top: 2px solid currentColor !important; border-right: 2px solid currentColor !important;
    background: transparent !important; transform: translate(-20%, -80%) !important;
}
body.pa12-theme .gsp-button > span:last-child::after,
body.pa12-theme .gsp-arrow-link > span:last-child::after,
body.pa12-theme .gsp-section-bar > a > span:last-child::after,
body.pa12-theme .gsp-category-list__item > i::after,
body.pa12-theme .pa12-category-card__arrow::after,
body.pa12-theme .gsp-juror-card__arrow::after,
body.pa12-theme .gsp-photographer-year-card__link::after,
body.pa12-theme .pa12-css-arrow::after,
body.pa12-theme .pa12-winner-modal__profile-link > span[aria-hidden="true"]::after {
    content: "" !important; position: absolute !important;
    top: 50% !important; right: auto !important; bottom: auto !important; left: 50% !important;
    width: 14px !important; height: 2px !important; border: 0 !important;
    background: currentColor !important; transform: translate(-50%, -50%) rotate(-45deg) !important;
    transform-origin: center !important;
}

body.pa12-theme.pa12-theme .gsp-juror-card__arrow {
    display: grid !important; place-items: center !important;
    border-color: #d9b56d !important; background: transparent !important;
    color: #df9400 !important; -webkit-text-fill-color: #df9400 !important;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease !important;
}
body.pa12-theme.pa12-theme .gsp-juror-card:hover .gsp-juror-card__arrow,
body.pa12-theme.pa12-theme .gsp-juror-card:focus-visible .gsp-juror-card__arrow,
body.pa12-theme.pa12-theme .gsp-juror-card:focus-within .gsp-juror-card__arrow {
    border-color: #df9400 !important; background: #df9400 !important;
    color: #17120b !important; -webkit-text-fill-color: #17120b !important;
    transform: translate(3px, -3px) !important;
}

/* Category arrows use the same deliberate hover language on the homepage and
 * category archive. The old rotation made the CSS-drawn arrow feel detached. */
body.pa12-theme .pa12-category-card__arrow,
body.pa12-theme .gsp-category-list__item > i {
    transition: transform 180ms ease, background-color 180ms ease,
        color 180ms ease, border-color 180ms ease !important;
}

body.pa12-theme .pa12-category-card:hover .pa12-category-card__arrow,
body.pa12-theme .pa12-category-card:focus-within .pa12-category-card__arrow,
body.pa12-theme .pa12-category-card:active .pa12-category-card__arrow {
    border-color: #df9400 !important;
    background: #df9400 !important;
    color: #17120b !important;
    -webkit-text-fill-color: #17120b !important;
    transform: translate(4px, -4px) !important;
}

body.pa12-theme .gsp-category-list__item:hover > i,
body.pa12-theme .gsp-category-list__item:focus-within > i,
body.pa12-theme .gsp-category-list__item:active > i {
    color: #f2b83e !important;
    -webkit-text-fill-color: #f2b83e !important;
    transform: translate(4px, -4px) !important;
}

@media (max-width: 860px) {
    html { scroll-padding-top: 72px; }
    body.pa12-theme { overflow-x: clip; }
    body.pa12-theme.pa12-mobile-menu-open { overflow: hidden !important; }

    /* Mobile content must remain usable even when Safari delays or suspends
     * IntersectionObserver while restoring a tab. */
    body.pa12-theme .pa12-scroll-reveal,
    body.pa12-theme .pa12-scroll-reveal.is-visible {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    body.pa12-theme img {
        visibility: visible;
        content-visibility: visible;
    }

    body.pa12-theme .pa12-categories-page .pa12-category-card__body h2 {
        box-sizing: border-box !important;
        width: 100% !important;
        padding-right: 52px !important;
    }
    body.pa12-theme .pa12-categories-page .pa12-category-card {
        display: block !important;
        height: calc((100vw - 28px) * 1.25) !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        isolation: auto !important;
        -webkit-transform: none !important;
        transform: none !important;
    }
    body.pa12-theme .pa12-categories-page .pa12-category-card__media,
    body.pa12-theme .pa12-categories-page .pa12-category-card__body {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    body.pa12-theme .pa12-categories-page .pa12-category-card img {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    body.pa12-theme .pa12-categories-page .pa12-category-card__arrow {
        right: 14px !important;
        bottom: 8px !important;
    }
    body.pa12-theme .gsp-categories .gsp-category-list__item > i {
        right: 13px !important;
        bottom: 14px !important;
    }

    body.pa12-theme.pa12-theme .gsp-hero__footer,
    body.pa12-theme.pa12-theme .gsp-hero .gsp-slider-dots { display: none !important; }
    body.pa12-theme.pa12-theme .gsp-hero { min-height: 0 !important; }
    body.pa12-theme.pa12-theme .gsp-hero__content {
        min-height: 0 !important; padding: 76px 0 30px !important;
        justify-content: flex-start !important;
    }
    body.pa12-theme.pa12-theme .gsp-hero__actions {
        display: flex !important; flex-direction: column !important;
        align-items: stretch !important; gap: 8px !important; width: 100% !important;
    }
    body.pa12-theme.pa12-theme .gsp-hero__actions > a {
        justify-content: space-between !important; width: 100% !important;
        min-height: 48px !important;
    }

    body.pa12-theme .pa12-header {
        position: sticky !important; top: 0 !important; z-index: 1000 !important;
        width: 100% !important; border: 0 !important;
        border-bottom: 1px solid rgba(223, 148, 0, .42) !important;
        background: #0d0d0c !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .22) !important;
    }
    body.pa12-theme .pa12-header__inner {
        display: grid !important; grid-template-columns: minmax(0, 1fr) 48px !important;
        align-items: center !important; gap: 12px !important; width: 100% !important;
        min-height: 72px !important; margin: 0 !important; padding: 0 16px !important;
    }
    body.pa12-theme .pa12-brand {
        display: flex !important; align-items: center !important; align-self: stretch !important;
        min-width: 0 !important; width: auto !important; max-width: 180px !important;
        height: 72px !important; overflow: hidden !important;
    }
    body.pa12-theme .pa12-brand img {
        display: block !important; width: min(100%, 168px) !important; max-width: 168px !important;
        height: auto !important; max-height: 44px !important; object-fit: contain !important;
        object-position: left center !important;
    }

    body.pa12-theme .pa12-menu-toggle,
    body.pa12-theme .pa12-menu-toggle.pa12-button {
        position: relative !important; display: inline-grid !important; grid-column: 2 !important;
        place-items: center !important; justify-self: end !important;
        width: 48px !important; min-width: 48px !important; max-width: 48px !important;
        height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important;
        overflow: hidden !important; border: 1px solid rgba(255, 255, 255, .42) !important;
        border-radius: 3px !important; background: transparent !important; box-shadow: none !important;
        color: #fff !important; font-size: 0 !important; line-height: 1 !important;
        text-indent: 0 !important; transform: none !important; appearance: none !important;
    }
    body.pa12-theme .pa12-menu-toggle:hover,
    body.pa12-theme .pa12-menu-toggle:focus-visible,
    body.pa12-theme .pa12-menu-toggle[aria-expanded="true"] {
        border-color: #df9400 !important; background: #df9400 !important;
        color: #17120b !important; outline: 0 !important;
    }
    body.pa12-theme .pa12-menu-toggle::before,
    body.pa12-theme .pa12-menu-toggle::after { display: none !important; content: none !important; }
    body.pa12-theme .pa12-menu-toggle__icon {
        display: grid !important; width: 20px !important; height: 14px !important;
        align-content: space-between !important;
    }
    body.pa12-theme .pa12-menu-toggle__icon > span {
        display: block !important; width: 20px !important; height: 2px !important;
        border: 0 !important; border-radius: 0 !important; background: currentColor !important;
        transition: transform 180ms ease, opacity 140ms ease !important;
    }
    body.pa12-theme .pa12-menu-toggle[aria-expanded="true"] .pa12-menu-toggle__icon > span:first-child {
        transform: translateY(6px) rotate(45deg) !important;
    }
    body.pa12-theme .pa12-menu-toggle[aria-expanded="true"] .pa12-menu-toggle__icon > span:nth-child(2) { opacity: 0 !important; }
    body.pa12-theme .pa12-menu-toggle[aria-expanded="true"] .pa12-menu-toggle__icon > span:last-child {
        transform: translateY(-6px) rotate(-45deg) !important;
    }

    body.pa12-theme .pa12-nav {
        position: fixed !important; inset: 72px 0 0 !important; z-index: 999 !important;
        display: block !important; width: 100% !important; height: calc(100dvh - 72px) !important;
        margin: 0 !important; padding: 10px 18px max(24px, env(safe-area-inset-bottom)) !important;
        overflow-x: hidden !important; overflow-y: auto !important; border: 0 !important;
        border-radius: 0 !important; background: #0d0d0c !important; box-shadow: none !important;
        opacity: 0 !important; pointer-events: none !important; transform: translateY(-10px) !important;
        visibility: hidden !important; overscroll-behavior: contain !important;
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease !important;
    }
    body.pa12-theme .pa12-nav.is-open {
        opacity: 1 !important; pointer-events: auto !important;
        transform: translateY(0) !important; visibility: visible !important;
    }
    body.pa12-theme .pa12-menu {
        display: flex !important; flex-direction: column !important; align-items: stretch !important;
        gap: 0 !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
        border: 0 !important; background: transparent !important;
    }
    body.pa12-theme .pa12-menu > li {
        width: 100% !important; margin: 0 !important; border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .12) !important; background: transparent !important;
    }
    body.pa12-theme .pa12-menu > li > a,
    body.pa12-theme .pa12-menu .pa12-menu-link {
        position: relative !important; z-index: 2 !important;
        display: flex !important; align-items: center !important; width: 100% !important;
        height: 50px !important; min-height: 50px !important; padding: 0 10px !important;
        border: 0 !important; border-radius: 0 !important; background: transparent !important;
        color: #fff !important; font-size: 15px !important; font-weight: 650 !important;
        letter-spacing: .03em !important; line-height: 1.2 !important;
        text-decoration: none !important; text-transform: uppercase !important; transform: none !important;
        pointer-events: auto !important; touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(223, 148, 0, .22) !important;
    }
    body.pa12-theme .pa12-menu a::before,
    body.pa12-theme .pa12-menu a::after { pointer-events: none !important; }
    body.pa12-theme .pa12-menu > li > a:hover,
    body.pa12-theme .pa12-menu > li > a:focus-visible,
    body.pa12-theme .pa12-menu .pa12-menu-link:hover,
    body.pa12-theme .pa12-menu .pa12-menu-link:focus-visible {
        background: rgba(223, 148, 0, .12) !important; color: #f2b83e !important; outline: 0 !important;
    }

    body.pa12-theme .pa12-menu-parent__row {
        display: grid !important; grid-template-columns: minmax(0, 1fr) 50px !important;
        width: 100% !important; height: 50px !important; min-height: 50px !important;
        overflow: visible !important; border: 0 !important; border-radius: 0 !important;
        background: transparent !important;
    }
    body.pa12-theme .pa12-menu-parent__row .pa12-menu-link {
        height: 50px !important; min-height: 50px !important; border-radius: 0 !important;
    }
    body.pa12-theme .pa12-submenu-toggle,
    body.pa12-theme .pa12-submenu-toggle.pa12-button {
        position: relative !important; z-index: 3 !important; display: grid !important; place-items: center !important;
        width: 50px !important; min-width: 50px !important; max-width: 50px !important;
        height: 50px !important; min-height: 50px !important; margin: 0 !important; padding: 0 !important;
        border: 0 !important; border-left: 1px solid rgba(255, 255, 255, .12) !important;
        border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
        color: #fff !important; transform: none !important; appearance: none !important;
        pointer-events: auto !important; touch-action: manipulation !important;
    }
    body.pa12-theme .pa12-submenu-toggle::before,
    body.pa12-theme .pa12-submenu-toggle::after { display: none !important; content: none !important; }
    body.pa12-theme .pa12-submenu-toggle > span {
        display: block !important; width: 8px !important; height: 8px !important; border: 0 !important;
        border-right: 2px solid currentColor !important; border-bottom: 2px solid currentColor !important;
        background: transparent !important; transform: translateY(-2px) rotate(45deg) !important;
        transition: transform 180ms ease !important;
    }
    body.pa12-theme .pa12-menu-parent.is-submenu-open .pa12-submenu-toggle,
    body.pa12-theme .pa12-submenu-toggle:hover,
    body.pa12-theme .pa12-submenu-toggle:focus-visible {
        background: #df9400 !important; color: #17120b !important; outline: 0 !important;
    }
    body.pa12-theme .pa12-menu-parent.is-submenu-open .pa12-submenu-toggle > span,
    body.pa12-theme .pa12-submenu-toggle[aria-expanded="true"] > span {
        transform: translateY(2px) rotate(225deg) !important;
    }
    body.pa12-theme .pa12-menu > li > .sub-menu {
        position: static !important; display: none !important; min-width: 0 !important;
        width: calc(100% - 10px) !important; margin: 0 0 10px 10px !important;
        padding: 4px 0 6px 14px !important; overflow: hidden !important;
        border: 0 !important; border-left: 2px solid #df9400 !important; border-radius: 0 !important;
        background: #171715 !important; box-shadow: none !important; opacity: 1 !important;
        pointer-events: auto !important; transform: none !important; visibility: visible !important;
    }
    body.pa12-theme .pa12-menu-parent.is-submenu-open > .sub-menu { display: block !important; }
    body.pa12-theme .pa12-menu > li > .sub-menu::before,
    body.pa12-theme .pa12-menu > li > .sub-menu::after { display: none !important; content: none !important; }
    body.pa12-theme .pa12-menu > li > .sub-menu a {
        position: relative !important; z-index: 2 !important;
        display: flex !important; align-items: center !important; min-height: 44px !important;
        padding: 0 12px !important; border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08) !important; border-radius: 0 !important;
        background: transparent !important; color: rgba(255, 255, 255, .84) !important;
        font-size: 13px !important; font-weight: 550 !important; letter-spacing: .02em !important;
        line-height: 1.25 !important; white-space: normal !important;
        pointer-events: auto !important; touch-action: manipulation !important;
    }
    body.pa12-theme .pa12-menu > li > .sub-menu a:hover,
    body.pa12-theme .pa12-menu > li > .sub-menu a:focus-visible {
        padding-left: 12px !important; background: rgba(223, 148, 0, .13) !important;
        color: #f2b83e !important;
    }

    body.pa12-theme .pa12-auth { width: 100% !important; margin: 18px 0 0 !important; }
    body.pa12-theme .pa12-header-cta,
    body.pa12-theme .pa12-header-cta.pa12-button {
        display: flex !important; align-items: center !important; justify-content: center !important;
        width: 100% !important; min-height: 48px !important; margin: 0 !important;
        border: 1px solid #df9400 !important; border-radius: 2px !important;
        background: #df9400 !important; box-shadow: none !important; color: #17120b !important;
        font-size: 13px !important; font-weight: 800 !important; letter-spacing: .04em !important;
        text-transform: uppercase !important;
    }

    body.pa12-theme .gsp-hero h1 {
        max-width: 100% !important; font-size: clamp(52px, 16vw, 68px) !important;
        line-height: .88 !important;
    }
    body.pa12-theme .pa12-page-head,
    body.pa12-theme .pa12-inner-hero,
    body.pa12-theme .pa12-page-hero { padding-top: 36px !important; padding-bottom: 34px !important; }
    body.pa12-theme .pa12-page-head {
        width: calc(100% - 28px) !important; margin-bottom: 34px !important;
        padding-right: 18px !important; padding-left: 18px !important;
        box-shadow: 6px 6px 0 rgba(223, 148, 0, .12) !important;
    }
    body.pa12-theme .pa12-page-head h1,
    body.pa12-theme .pa12-inner-hero h1,
    body.pa12-theme .pa12-page-hero h1,
    body.pa12-theme .pa12-fee-redesign__hero h1,
    body.pa12-theme .photo-award-public-profile-hero h1 {
        max-width: 100% !important; font-size: clamp(34px, 11vw, 46px) !important;
        line-height: .98 !important; overflow-wrap: anywhere !important;
    }
    body.pa12-theme .gsp-section-bar { align-items: flex-start !important; gap: 14px !important; }
    body.pa12-theme .gsp-section-bar h2,
    body.pa12-theme .gsp-about h2,
    body.pa12-theme .pa12-section-title,
    body.pa12-theme .pa12-content-section h2 {
        max-width: 100% !important; font-size: clamp(30px, 9.5vw, 40px) !important;
        line-height: 1 !important; overflow-wrap: anywhere !important;
    }
    body.pa12-theme .gsp-button,
    body.pa12-theme .pa12-button:not(.pa12-menu-toggle):not(.pa12-submenu-toggle) {
        min-height: 46px !important; white-space: normal !important;
    }
    body.pa12-theme .gsp-button span,
    body.pa12-theme .gsp-arrow-link span,
    body.pa12-theme .gsp-section-bar > a span,
    body.pa12-theme .pa12-category-card__arrow,
    body.pa12-theme .gsp-juror-card__arrow,
    body.pa12-theme .gsp-category-list__item > i,
    body.pa12-theme .dashboard-action-card__arrow {
        color: #df9400 !important; -webkit-text-fill-color: #df9400 !important;
    }
    body.pa12-theme .gsp-button--gold span {
        color: #17120b !important; -webkit-text-fill-color: #17120b !important;
    }
}

@media (max-width: 420px) {
    body.pa12-theme .pa12-header__inner { padding-right: 14px !important; padding-left: 14px !important; }
    body.pa12-theme .pa12-brand { max-width: 165px !important; }
    body.pa12-theme .pa12-brand img { width: min(100%, 158px) !important; max-width: 158px !important; }
    body.pa12-theme .gsp-hero h1 { font-size: clamp(50px, 15.5vw, 62px) !important; }
}

/* Match the legacy mobile layer's doubled theme specificity. */
@media (max-width: 860px) {
    body.pa12-theme.pa12-theme .pa12-header {
        position: sticky !important; top: 0 !important; z-index: 1000 !important;
        border: 0 !important; border-bottom: 1px solid rgba(223, 148, 0, .42) !important;
        background: #0d0d0c !important;
    }
    body.pa12-theme.pa12-theme .pa12-header__inner {
        min-height: 72px !important; padding: 0 16px !important;
        grid-template-columns: minmax(0, 1fr) 48px !important;
    }
    body.pa12-theme.pa12-theme .pa12-brand {
        width: auto !important; max-width: 180px !important; height: 72px !important;
        overflow: hidden !important;
    }
    body.pa12-theme.pa12-theme .pa12-brand img {
        width: auto !important; max-width: 168px !important; max-height: 44px !important;
        object-fit: contain !important;
    }
    body.pa12-theme.pa12-theme .pa12-nav {
        inset: 72px 0 0 !important; width: 100% !important;
        height: calc(100dvh - 72px) !important; padding: 10px 18px max(24px, env(safe-area-inset-bottom)) !important;
        border: 0 !important; border-radius: 0 !important;
        background: #0d0d0c !important; box-shadow: none !important;
    }
    body.pa12-theme.pa12-theme .pa12-menu,
    body.pa12-theme.pa12-theme .pa12-menu > li,
    body.pa12-theme.pa12-theme .pa12-menu-parent__row {
        border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
    }
    body.pa12-theme.pa12-theme .pa12-menu > li > a,
    body.pa12-theme.pa12-theme .pa12-menu .pa12-menu-link {
        height: 50px !important; min-height: 50px !important; padding: 0 10px !important;
        border: 0 !important; border-radius: 0 !important; background: transparent !important;
        color: #fff !important; font-size: 15px !important;
    }
    body.pa12-theme.pa12-theme .pa12-menu > li > a:hover,
    body.pa12-theme.pa12-theme .pa12-menu > li > a:focus-visible,
    body.pa12-theme.pa12-theme .pa12-menu .pa12-menu-link:hover,
    body.pa12-theme.pa12-theme .pa12-menu .pa12-menu-link:focus-visible {
        background: rgba(223, 148, 0, .12) !important; color: #f2b83e !important;
    }
    body.pa12-theme.pa12-theme .pa12-submenu-toggle {
        width: 50px !important; min-width: 50px !important; height: 50px !important;
        border: 0 !important; border-left: 1px solid rgba(255, 255, 255, .12) !important;
        border-radius: 0 !important; background: transparent !important; color: #fff !important;
    }
    body.pa12-theme.pa12-theme .pa12-menu-parent.is-submenu-open .pa12-submenu-toggle,
    body.pa12-theme.pa12-theme .pa12-submenu-toggle:hover,
    body.pa12-theme.pa12-theme .pa12-submenu-toggle:focus-visible {
        background: #df9400 !important; color: #17120b !important;
    }
    body.pa12-theme.pa12-theme .pa12-menu > li > .sub-menu {
        border: 0 !important; border-left: 2px solid #df9400 !important;
        border-radius: 0 !important; background: #171715 !important; box-shadow: none !important;
    }
}

@media (max-width: 420px) {
    body.pa12-theme.pa12-theme .pa12-header__inner { padding-right: 14px !important; padding-left: 14px !important; }
    body.pa12-theme.pa12-theme .pa12-brand { max-width: 165px !important; }
    body.pa12-theme.pa12-theme .pa12-brand img { max-width: 158px !important; }
}

/* Explicit card heights avoid WebKit's aspect-ratio/isolation paint failure at
 * every breakpoint while preserving the intended portrait proportions. */
@media (min-width: 901px) {
    body.pa12-theme .pa12-categories-page .pa12-category-card {
        height: clamp(320px, 28vw, 440px) !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        isolation: auto !important;
    }
}

@media (min-width: 821px) and (max-width: 900px) {
    body.pa12-theme .pa12-categories-page .pa12-category-card {
        height: clamp(280px, 36vw, 340px) !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        isolation: auto !important;
    }
}

@media (min-width: 481px) and (max-width: 820px) {
    body.pa12-theme .pa12-categories-page .pa12-category-card {
        height: calc(((100vw - 64px) / 2) * 1.25) !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        isolation: auto !important;
    }
}

@media (max-width: 480px) {
    body.pa12-theme .pa12-categories-page .pa12-category-card {
        height: calc((100vw - 28px) * 1.25) !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        isolation: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pa12-theme .pa12-nav,
    body.pa12-theme .pa12-menu-toggle__icon > span,
    body.pa12-theme .pa12-submenu-toggle > span { transition: none !important; }
}
