/* =========================================================
   Jowybean Accessibility - Appearance
   ========================================================= */


/* ---------- Option Group ---------- */

.accessibility-appearance-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}


/* ---------- Option Buttons ---------- */

.accessibility-appearance-option {
    min-width: 0;
    padding: 10px 8px;

    border: 2px solid #9146ff;
    border-radius: 8px;

    background: #ffffff;
    color: #3d245f;

    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.accessibility-appearance-option:hover {
    background: #f4edff;
}


/* ---------- Selected Option ---------- */

.accessibility-appearance-option[aria-pressed="true"] {
    background: #9146ff;
    color: #ffffff;
    border-color: #9146ff;
}


/* ---------- Keyboard Focus ---------- */

.accessibility-appearance-option:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* =========================================================
   Dark Theme
   ========================================================= */

/*
 * Dark Mode is a visual theme, NOT High Contrast.
 * Preserve Jowybean's purple identity while using
 * comfortable dark surfaces and light text.
 */

html.a11y-theme-dark {
    color-scheme: dark;

    --color-text: #ece8f0;
    --color-text-dark: #ffffff;
    --color-text-muted: #bdb4c5;
    --color-text-soft: #aaa1b1;

    --color-surface: #2b2432;
    --color-surface-soft: #332a3c;
    --color-surface-purple: #392b49;

    --color-border: rgba(199, 167, 255, 0.18);
    --color-border-strong: rgba(199, 167, 255, 0.34);
}

/* =========================================================
   Dark Theme - Public Component Compatibility
   ========================================================= */


/* ---------- Shared / Common Surfaces ---------- */

html.a11y-theme-dark
:is(
    .ui-card,
    .fact-card,
    .cta-card,
    .BannerContent,
    .home-section-header,
    .whats-new-card,
    .app-info-card,
    .app-beta-card,
    .personal-link-card,
    .race-stat-card,
    .contact-form-card,
    .newsletter-card,
    .contact-form-wrapper,
    .link-form-wrapper,
    .inventory-form-wrapper,
    .tracker,
    .cure-info-card,
    .category-jump-nav,
    .seller-spotlight,
    .directory-stat-card,
    .seller-card,
    .directory-category-header,
    .media-video-card,
    .media-tip-card,
    .media-future-card,
    .inventory-product-card,
    .inventory-toolbar,
    .beanbin-product-card,
    .storefront-product-card,
    .beanbin-empty-state,
    .update-card,
    .badge-recipient-card,
    .raid-welcome-card,
    .rules-container,
    .raid-schedule-card,
    .raid-signup-card,
    .raid-hof-card
) {
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
}


/* ---------- Text Overrides ---------- */

html.a11y-theme-dark
:is(
    .update-content p,
    .update-content small,
    .beanbin-filter-field label,
    .storefront-product-quantity,
    .storefront-product-details,
    .beanbin-empty-state p,
    .explore-card p,
    .explore-card-stat small,
    .badge-recipient-card p,
    .badge-recipient-card small,
    .community-spotlight-category,
    .community-spotlight-reason,
    .storefront-section-heading p,
    .raid-time-local
) {
    color: var(--color-text-muted) !important;
}


html.a11y-theme-dark
:is(
    .storefront-mode-beanbin .storefront-product-content h3,
    .update-content h3,
    .beanbin-empty-state h2,
    .badge-recipient-card h3,
    .community-spotlight-feature h2,
    .community-spotlight-feature h3,
    .storefront-section-heading h2,
    .raid-time-central
) {
    color: var(--color-text-dark) !important;
}


/* ---------- Navigation ---------- */

html.a11y-theme-dark .BannerNav a {
    background: #30273a;
    color: #e8ddf3;
    border-color: rgba(255,255,255,0.16);
}

html.a11y-theme-dark .BannerNav a:hover {
    background: #3a2d47;
    color: #ffffff;
}

html.a11y-theme-dark .BannerNav a.active {
    color: #ffffff;
}


/* ---------- Explore Cards ---------- */

html.a11y-theme-dark .explore-card {
    background:
        radial-gradient(
            circle at top right,
            color-mix(
                in srgb,
                var(--explore-accent) 18%,
                transparent
            ),
            transparent 43%
        ),
        var(--color-surface);

    color: var(--color-text);
}

html.a11y-theme-dark .explore-card-icon {
    background:
        color-mix(
            in srgb,
            var(--explore-accent) 22%,
            #2b2432
        );
}

html.a11y-theme-dark .explore-card-stat {
    background:
        color-mix(
            in srgb,
            var(--explore-accent) 12%,
            #2b2432
        );
}


/* ---------- What's New ---------- */

html.a11y-theme-dark .update-icon {
    background: var(--color-surface-purple);
}


/* ---------- Bean Bin / Storefront ---------- */

html.a11y-theme-dark .storefront-product-image-wrap {
    background:
        radial-gradient(
            circle at center,
            rgba(145, 70, 255, 0.14),
            transparent 66%
        ),
        #241e2b;
}

html.a11y-theme-dark
.hero-beanbin .hero__media-image {
    background: var(--color-surface);
}

html.a11y-theme-dark
.hero-beanbin .inventory-toolbar {
    background: rgba(43, 36, 50, 0.92);
}

html.a11y-theme-dark
.storefront-product-btn-secondary {
    background: var(--color-surface-purple);
    color: #d8c0ff;
}


/* ---------- Community Spotlight ---------- */

html.a11y-theme-dark .community-spotlight-feature {
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 208, 76, 0.13),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #30291f,
            #27232c
        );

    border-color: rgba(229, 173, 39, 0.38);
}

html.a11y-theme-dark .community-spotlight-feature h2,
html.a11y-theme-dark .community-spotlight-feature h3 {
    color: #fff4d0 !important;
}


/* ---------- Badge Detail ---------- */

html.a11y-theme-dark .badge-recipient-note {
    background: var(--color-surface-purple);
    color: var(--color-text);
}


/* ---------- Raid Train ---------- */

html.a11y-theme-dark .raid-hero-stat {
    background: var(--color-surface-soft);
}

html.a11y-theme-dark .rules-list p {
    background: var(--color-surface-soft);
}

html.a11y-theme-dark .rules-section h3 {
    border-bottom-color: var(--color-border);
}

html.a11y-theme-dark .raid-schedule-table {
    background: var(--color-surface);
}

html.a11y-theme-dark
.raid-schedule-table tbody tr:nth-child(odd) {
    background: #2b2432;
}

html.a11y-theme-dark
.raid-schedule-table tbody tr:nth-child(even) {
    background: #332a3c;
}

html.a11y-theme-dark
.raid-schedule-table tbody tr:hover {
    background: #423151;
}

html.a11y-theme-dark .raid-time-central {
    color: #ffffff;
}

html.a11y-theme-dark .raid-time-local {
    color: var(--color-text-muted);
}

html.a11y-theme-dark .raid-available-slot {
    background: var(--color-surface);
    color: var(--color-text);
}

html.a11y-theme-dark .raid-available-slot:hover {
    background: var(--color-surface-purple);
}

html.a11y-theme-dark .raid-available-central {
    color: #d7baff;
}

html.a11y-theme-dark .raid-available-local {
    color: var(--color-text-muted);
}


/* ---------- Current Raid Slot ---------- */

html.a11y-theme-dark
.raid-schedule-table tbody tr.raid-slot-current {
    background: #4a401f !important;
}


/* ---------- Footer ---------- */

html.a11y-theme-dark .footer {
    background-color: rgba(74, 53, 99, 0.95);
}

/* ---------- Page ---------- */

html.a11y-theme-dark body {
    background:
        linear-gradient(
            to bottom,
            #21182d,
            #16251d
        ) !important;

    color: #ece8f0 !important;
}


/* ---------- Common Surfaces ---------- */

html.a11y-theme-dark
:is(
    .content,
    .container,
    .card
) {
    background-color: #2b2432 !important;
    color: #ece8f0 !important;
}


/* ---------- General Text ---------- */

html.a11y-theme-dark
:is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    label
) {
    color: #ece8f0;
}


/* ---------- Links ---------- */

html.a11y-theme-dark a {
    color: #c7a7ff;
}


/* ---------- Form Fields ---------- */

html.a11y-theme-dark
:is(
    input[type="text"],
    input[type="password"],
    input[type="date"],
    input[type="number"],
    input[type="url"],
    input[type="email"],
    textarea,
    select
) {
    background: #211c27 !important;
    color: #ffffff !important;
    border-color: #665b70 !important;
}


/* ---------- Tables ---------- */

html.a11y-theme-dark
:is(
    table,
    .styled-table
) {
    color: #ece8f0;
}

html.a11y-theme-dark
:is(
    th,
    .styled-table th
) {
    background: #352d3d;
    color: #ffffff;
}

html.a11y-theme-dark
:is(
    td,
    .styled-table td
) {
    border-color: #665b70;
}


/* ---------- Horizontal Rules ---------- */

html.a11y-theme-dark hr {
    border-top-color: #665b70;
}

/* =========================================================
   Dark Theme - Compatibility Pass #2
   ========================================================= */


/* ---------- Configurable Hero ---------- */

html.a11y-theme-dark .hero {
    background:
        radial-gradient(
            circle at top right,
            rgba(145, 70, 255, 0.16),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #2b2432 0%,
            #241d2c 100%
        );

    border-color: var(--color-border);
}


html.a11y-theme-dark .hero__tagline {
    color: var(--color-text-muted);
}

html.a11y-theme-dark .hero__description {
    color: var(--color-text);
}


html.a11y-theme-dark .hero__stat {
    background: #332a3c;
    border-color: var(--color-border);
    color: var(--color-text);
}

html.a11y-theme-dark .hero__stat:hover {
    background: #3d3049;
    border-color: var(--color-border-strong);
}

html.a11y-theme-dark .hero__stat-value {
    color: #ffffff;
}


/* ---------- Bean Bin Contact / Request ---------- */

html.a11y-theme-dark .beanbin-contact-card {
    background:
        radial-gradient(
            circle at top left,
            rgba(145, 70, 255, 0.13),
            transparent 34%
        ),
        var(--color-surface);
}


html.a11y-theme-dark
:is(
    .beanbin-contact-copy h2,
    .beanbin-cta-copy h2
) {
    color: #ffffff;
}

html.a11y-theme-dark
:is(
    .beanbin-contact-copy > p,
    .beanbin-cta-copy > p
) {
    color: var(--color-text-muted);
}


html.a11y-theme-dark .beanbin-contact-benefit {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
}

html.a11y-theme-dark .beanbin-benefit-icon {
    background: var(--color-surface-purple);
}

html.a11y-theme-dark .beanbin-contact-benefit strong {
    color: var(--color-text-dark);
}

html.a11y-theme-dark .beanbin-contact-benefit small {
    color: var(--color-text-muted);
}


html.a11y-theme-dark .beanbin-request-form {
    background: #302738;
    border-color: var(--color-border);
}

html.a11y-theme-dark .beanbin-form-field label {
    color: var(--color-text);
}

html.a11y-theme-dark
.beanbin-request-form
:is(
    input,
    select,
    textarea
) {
    background: #211c27;
    color: #ffffff;
    border-color: var(--color-border-strong);
}


/* ---------- Bean Bin Product Details ---------- */

html.a11y-theme-dark .storefront-product-details {
    color: var(--color-text-muted);
    border-top-color: var(--color-border);
}

html.a11y-theme-dark .storefront-product-details summary {
    color: #d8c0ff;
}


/* ---------- Directory Achievement Filter ---------- */

html.a11y-theme-dark .directory-badge-filter {
    background: var(--color-surface);
    border-color: var(--color-border);
}

html.a11y-theme-dark
.directory-badge-filter-heading h2 {
    color: #ffffff;
}

html.a11y-theme-dark
.directory-badge-filter-heading p {
    color: var(--color-text-muted);
}

html.a11y-theme-dark .directory-all-badges {
    background: var(--color-surface-purple);
    color: #d8c0ff;
}


/* ---------- Directory Search / Jump Tools ---------- */

html.a11y-theme-dark .links-sticky-tools {
    background: rgba(43, 36, 50, 0.96);
}

html.a11y-theme-dark
.links-sticky-tools .category-jump-nav {
    background: #302738 !important;
}


/* ---------- Seller Cards ---------- */

html.a11y-theme-dark .seller-card {
    background: var(--color-surface) !important;
    color: var(--color-text);
}


/* ---------- Mailjet Embed Container ---------- */

html.a11y-theme-dark .newsletter-card {
    background: var(--color-surface) !important;
    color: var(--color-text);
}

/* =========================================================
   Dark Theme - Accessibility Widget
   ========================================================= */

html.a11y-theme-dark .accessibility-panel {
    background: #2b2432;
    color: #ece8f0;
}

html.a11y-theme-dark .accessibility-panel-header {
    border-bottom-color: rgba(199, 167, 255, 0.22);
}

html.a11y-theme-dark .accessibility-panel-header h2 {
    color: #ffffff;
}

html.a11y-theme-dark .accessibility-close {
    color: #ffffff;
}

html.a11y-theme-dark .accessibility-close:focus-visible {
    outline-color: #c7a7ff;
}

/* =========================================================
   Dark Theme - Compatibility Pass #3
   ========================================================= */


/* ---------- Bean Bin Product Image Area ---------- */

html.a11y-theme-dark .product-image-wrapper {
    background:
        linear-gradient(
            145deg,
            #241e2b,
            #302738
        );
}


/* ---------- Bean Bin Quick Facts ---------- */

html.a11y-theme-dark .product-quick-facts > span {
    background: var(--color-surface-soft);
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

html.a11y-theme-dark .product-quick-facts strong {
    color: #ffffff;
}


/* ---------- Bean Bin Secondary Action ---------- */

html.a11y-theme-dark .product-secondary-action {
    background: #2c3441;
    color: #a9ccff;
    border-color: rgba(107, 164, 238, 0.38);
}

html.a11y-theme-dark .product-secondary-action:hover {
    background: #365274;
    color: #ffffff;
}

html.a11y-theme-dark
.product-secondary-action.is-disabled {
    background: #302d33;
    color: #8d8792;
    border-color: rgba(255,255,255,0.12);
}


/* ---------- Bean Bin Product Details ---------- */

html.a11y-theme-dark .product-details {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
}

html.a11y-theme-dark .product-details summary {
    color: #d8c0ff;
}

html.a11y-theme-dark .product-details-content {
    border-top-color: var(--color-border);
}

html.a11y-theme-dark .product-details-content p {
    color: var(--color-text-muted);
}


/* ---------- Bean Bin Final CTA ---------- */

html.a11y-theme-dark .beanbin-cta-card {
    background:
        linear-gradient(
            135deg,
            rgba(145, 70, 255, 0.14),
            rgba(43, 36, 50, 0.96) 55%
        ),
        var(--color-surface);
}

html.a11y-theme-dark .beanbin-cta-icon {
    background:
        linear-gradient(
            135deg,
            #392b49,
            #2b2432
        );
}

html.a11y-theme-dark .beanbin-cta-secondary {
    background: var(--color-surface-purple);
    color: #d8c0ff;
    border-color: var(--color-border-strong);
}

html.a11y-theme-dark .beanbin-cta-secondary:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
}


/* ---------- Community Achievement Badges ---------- */

html.a11y-theme-dark .community-badge {
    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--badge-custom-color, var(--badge-accent)) 20%,
                #332a3c
            ),
            #2b2432
        );

    color: #ece8f0;

    box-shadow:
        0 4px 11px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.a11y-theme-dark a.community-badge:hover {
    box-shadow:
        0 8px 17px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* ---------- Directory Badge Filter Count ---------- */

html.a11y-theme-dark
.directory-badge-filter-item > small {
    border-color: var(--color-surface);
}


/* ---------- Community Spotlight Secondary Action ---------- */

html.a11y-theme-dark
.community-spotlight-actions
:is(
    .btn--secondary,
    .beanbin-cta-secondary
) {
    background: var(--color-surface-purple);
    color: #d8c0ff;
    border-color: var(--color-border-strong);
}


/* ---------- Seller Buttons ---------- */

html.a11y-theme-dark .seller-card-btn {
    color: #ffffff;
}

/* =========================================================
   Dark Theme - Compatibility Pass #4
   Exact Remaining Outliers
   ========================================================= */


/* ---------- Shared Storefront / Spotlight CTA ---------- */

html.a11y-theme-dark .storefront-view-all {
    background: var(--color-surface-purple) !important;
    color: #d8c0ff !important;
    border-color: var(--color-border-strong) !important;
}

html.a11y-theme-dark .storefront-view-all:hover {
    background: #49345d !important;
    color: #ffffff !important;
    border-color: #9d6de0 !important;
}


/* ---------- Product Category Pill ---------- */

html.a11y-theme-dark .product-category {
    background: var(--color-surface-purple) !important;
    color: #d8c0ff !important;
    border-color: var(--color-border-strong) !important;
}


/* ---------- Raid Train Event Dashboard ---------- */

html.a11y-theme-dark .raid-event-dashboard {
    background:
        linear-gradient(
            125deg,
            #281d35,
            #332242,
            #402651,
            #2b1d38
        ) !important;

    border-color: rgba(199, 167, 255, 0.28);
}


/* ---------- Raid Countdown Units ---------- */

html.a11y-theme-dark .raid-countdown-unit {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}


/* ---------- Raid Dashboard Stats ---------- */

html.a11y-theme-dark .raid-dashboard-stats {
    background: rgba(0, 0, 0, 0.12);
}


/* ---------- Raid Schedule Header ---------- */

html.a11y-theme-dark
.raid-schedule-table thead th {
    background:
        linear-gradient(
            135deg,
            #352542,
            #49305e
        );
}


/* ---------- Raid Schedule Rows ---------- */

html.a11y-theme-dark
.raid-schedule-table tbody tr:nth-child(odd) {
    background: #2b2432 !important;
}

html.a11y-theme-dark
.raid-schedule-table tbody tr:nth-child(even) {
    background: #332a3c !important;
}

html.a11y-theme-dark
.raid-schedule-table tbody tr:hover {
    background: #423151 !important;
}


/* ---------- Raid Time Text ---------- */

html.a11y-theme-dark
.raid-time-central,
html.a11y-theme-dark
.raid-time-central span {
    color: #ffffff !important;
}

html.a11y-theme-dark
.raid-time-local {
    color: var(--color-text-muted) !important;
}

/* =========================================================
   Dark Theme - Live HQ
   ========================================================= */


/* ---------- Main Live HQ Surfaces ---------- */

html.a11y-theme-dark
:is(
    .livehq-broadcast-shell,
    .livehq-card,
    .livehq-current-seller,
    .livehq-mission
) {
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border) !important;
}


/* ---------- Live HQ Hero ---------- */

html.a11y-theme-dark .livehq-hero {
    background:
        linear-gradient(
            135deg,
            #392b49,
            #263b33
        ) !important;

    color: #ffffff !important;

    border-color: var(--color-border);
}

html.a11y-theme-dark .livehq-hero::after {
    background:
        radial-gradient(
            circle at top right,
            rgba(199, 167, 255, 0.12),
            transparent 38%
        );
}

html.a11y-theme-dark .livehq-hero-eyebrow,
html.a11y-theme-dark .livehq-tagline {
    color: #ffffff !important;
}


/* ---------- Event Description ---------- */

html.a11y-theme-dark .livehq-description {
    color: var(--color-text-muted) !important;
}


/* ---------- Status Badge ---------- */

html.a11y-theme-dark .livehq-status-badge {
    border: 1px solid var(--color-border);
}

html.a11y-theme-dark .livehq-status-off {
    background: #37323b !important;
    color: #ece8f0 !important;
}

html.a11y-theme-dark .livehq-status-on {
    background: #4a252c !important;
    color: #ffb8c0 !important;
}

html.a11y-theme-dark .livehq-status-intermission {
    background: #493f25 !important;
    color: #ffe59a !important;
}

html.a11y-theme-dark .livehq-status-complete {
    background: #273b52 !important;
    color: #b9d8ff !important;
}


/* ---------- Current Seller ---------- */

html.a11y-theme-dark .livehq-current-seller h2,
html.a11y-theme-dark .livehq-current-seller .livehq-label {
    color: var(--color-text-muted) !important;
}

html.a11y-theme-dark .livehq-current-seller h3 {
    color: #ffffff !important;
}

html.a11y-theme-dark #livehq-seller-username {
    color: #d8c0ff !important;
}

html.a11y-theme-dark #livehq-seller-segment,
html.a11y-theme-dark #livehq-seller-description {
    color: var(--color-text) !important;
}


/* ---------- Mission ---------- */

html.a11y-theme-dark .livehq-mission h2 {
    color: var(--color-text-muted) !important;
}

html.a11y-theme-dark .livehq-mission h3 {
    color: #ffffff !important;
}

html.a11y-theme-dark #livehq-mission-description {
    color: var(--color-text) !important;
}


/* ---------- Mission Progress ---------- */

html.a11y-theme-dark .livehq-progress-label {
    color: var(--color-text-muted) !important;
    opacity: 1;
}

html.a11y-theme-dark #livehq-progress-raised,
html.a11y-theme-dark #livehq-progress-percent,
html.a11y-theme-dark #livehq-progress-text {
    color: var(--color-text) !important;
}

html.a11y-theme-dark
#livehq-progress-bar::-webkit-progress-bar {
    background: #211c26;
}

html.a11y-theme-dark
#livehq-progress-bar::-moz-progress-bar {
    background:
        linear-gradient(
            90deg,
            #9c72e4,
            #6ed3a0
        );
}


/* ---------- Live HQ Action Links ---------- */

html.a11y-theme-dark #livehq-donation-link {
    background: #4fae79 !important;
    color: #101713 !important;
}

html.a11y-theme-dark
:is(
    #livehq-mission-link,
    #livehq-seller-link
) {
    background: #62409b !important;
    color: #ffffff !important;
}


/* ---------- Announcement ---------- */

html.a11y-theme-dark .livehq-announcement-content {
    background: var(--color-surface-soft) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border-strong) !important;
}

html.a11y-theme-dark
.livehq-announcement-content[data-type="INFO"] {
    background: #222f42 !important;
    border-color: #5d8fd8 !important;
}

html.a11y-theme-dark
.livehq-announcement-content[data-type="INFO"]
.livehq-announcement-label {
    color: #9fc7ff !important;
}

html.a11y-theme-dark
.livehq-announcement-content[data-type="IMPORTANT"] {
    background: #332943 !important;
    border-color: #9b75d9 !important;
}

html.a11y-theme-dark
.livehq-announcement-content[data-type="IMPORTANT"]
.livehq-announcement-label {
    color: #d8c0ff !important;
}

html.a11y-theme-dark
.livehq-announcement-content[data-type="SUCCESS"] {
    background: #20382a !important;
    border-color: #57b979 !important;
}

html.a11y-theme-dark
.livehq-announcement-content[data-type="SUCCESS"]
.livehq-announcement-label {
    color: #8ee0a8 !important;
}

html.a11y-theme-dark
.livehq-announcement-content[data-type="WARNING"] {
    background: #3d3420 !important;
    border-color: #d69a34 !important;
}

html.a11y-theme-dark
.livehq-announcement-content[data-type="WARNING"]
.livehq-announcement-label {
    color: #ffd58b !important;
}

html.a11y-theme-dark #livehq-announcement-message {
    color: var(--color-text) !important;
}


/* ---------- Countdown / Up Next ---------- */

html.a11y-theme-dark
:is(
    .livehq-countdown,
    .livehq-up-next
) {
    color: var(--color-text) !important;
}

html.a11y-theme-dark
:is(
    #livehq-countdown-segment,
    #livehq-next-empty
) {
    color: var(--color-text-muted) !important;
}

html.a11y-theme-dark #livehq-countdown-time,
html.a11y-theme-dark #livehq-next-name {
    color: #ffffff !important;
}

html.a11y-theme-dark #livehq-next-username {
    color: #d8c0ff !important;
}


/* ---------- Broadcast Player ---------- */

html.a11y-theme-dark .livehq-player-stage {
    border-color: var(--color-border) !important;
    background: #0f0d12 !important;
}

html.a11y-theme-dark .livehq-player-placeholder {
    background:
        radial-gradient(
            circle at top right,
            rgba(145, 70, 255, 0.12),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #18131e,
            #111713
        ) !important;

    color: #ffffff !important;
}

html.a11y-theme-dark .livehq-player-placeholder-content p {
    color: #c9c1cf !important;
}

/* =========================================================
   Live HQ - High Contrast Priority
   ========================================================= */

/*
 * LiveHQ has dark-mode compatibility rules in this file.
 * When High Contrast is also enabled, High Contrast must win.
 */

html.a11y-theme-dark.a11y-high-contrast
:is(
    .livehq-broadcast-shell,
    .livehq-card,
    .livehq-current-seller,
    .livehq-mission,
    .livehq-countdown,
    .livehq-up-next,
    .livehq-hero,
    .livehq-announcement-content,
    .livehq-player-stage,
    .livehq-player-placeholder
) {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html.a11y-theme-dark.a11y-high-contrast .livehq-hero::after {
    display: none !important;
}

html.a11y-theme-dark.a11y-high-contrast
:is(
    .livehq-hero-eyebrow,
    .livehq-tagline,
    .livehq-description,
    .livehq-label,
    .livehq-current-seller h2,
    .livehq-current-seller h3,
    .livehq-mission h2,
    .livehq-mission h3,
    #livehq-seller-username,
    #livehq-seller-segment,
    #livehq-seller-description,
    #livehq-mission-description,
    .livehq-progress-label,
    #livehq-progress-raised,
    #livehq-progress-percent,
    #livehq-progress-text,
    #livehq-countdown-segment,
    #livehq-countdown-time,
    #livehq-next-name,
    #livehq-next-username,
    #livehq-next-empty,
    .livehq-announcement-label,
    #livehq-announcement-message,
    .livehq-player-placeholder-content p
) {
    color: #ffffff !important;
}

html.a11y-theme-dark.a11y-high-contrast .livehq-status-badge {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

html.a11y-theme-dark.a11y-high-contrast
:is(
    .livehq-status-on,
    .livehq-status-intermission
) {
    color: #ffff00 !important;
}

html.a11y-theme-dark.a11y-high-contrast
:is(
    #livehq-donation-link,
    #livehq-mission-link,
    #livehq-seller-link,
    .livehq-start-broadcast
) {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffffff !important;
}

html.a11y-theme-dark.a11y-high-contrast
#livehq-progress-bar::-webkit-progress-bar {
    background: #000000 !important;
}

html.a11y-theme-dark.a11y-high-contrast
#livehq-progress-bar::-webkit-progress-value {
    background: #ffff00 !important;
}

html.a11y-theme-dark.a11y-high-contrast
#livehq-progress-bar::-moz-progress-bar {
    background: #ffff00 !important;
}

/* =========================================================
   Dark Theme - Skip Link
   ========================================================= */

html.a11y-theme-dark:not(.a11y-high-contrast) .skip-link {
    background: #2b2432 !important;
    color: #ffffff !important;
    border-color: #c7a7ff !important;
}

html.a11y-theme-dark:not(.a11y-high-contrast) .skip-link:focus {
    background: #332a3c !important;
    color: #ffffff !important;
}