/*
 * ZEN REG - Public Theme V1
 * Registration pages only.
 * Light mode remains unchanged.
 */

html[data-zen-theme="dark"] {
    color-scheme: dark;

    --bg: #101418;
    --white: #1b2128;
    --border: #303943;

    --text: #edf1f5;
    --text-mid: #bac4cf;
    --text-dim: #8995a3;

    --green: #45c5ba !important;
    --green-light: #133632 !important;

    --zen-brand: #007870;
    --zen-brand-hover: #00665f;

    --zen-surface-raised: #242c34;
    --zen-surface-hover: #29323b;
    --zen-border-hover: #465461;

    --zen-danger: #f87171;
    --zen-danger-bg: #3b2026;

    --zen-warning: #fbbf24;
    --zen-warning-bg: #382e19;

    --zen-info: #93b4ff;
    --zen-info-bg: #202e48;

    --zen-shadow: rgba(0, 0, 0, .28);
}

/* Shared public header */

html[data-zen-theme="dark"] .topbar {
    background: rgba(27, 33, 40, .94);
    box-shadow: 0 1px 8px rgba(0, 0, 0, .24);
}

html[data-zen-theme="dark"] .brand-link::before {
    background: var(--green);
}

html[data-zen-theme="dark"] .lang-toggle:hover {
    background: var(--zen-surface-hover);
}

html[data-zen-theme="dark"] input:focus,
html[data-zen-theme="dark"] textarea:focus,
html[data-zen-theme="dark"] select:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(69,197,186,.14) !important;
}

html[data-zen-theme="dark"] ::selection {
    background: #007870;
    color: #ffffff;
}

/* ZEN_DARK_PREVIEW_V2 */

/* HEADER */

html[data-zen-theme="dark"] .topbar {
    background: #1b2128 !important;
    border-color: #303943 !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.24) !important;
}

html[data-zen-theme="dark"] .topbar-search,
html[data-zen-theme="dark"] .lang-toggle {
    background: #242c34 !important;
    border-color: #38434e !important;
    color: #edf1f5 !important;
    box-shadow: none !important;
}

html[data-zen-theme="dark"] .topbar-search input {
    color: #edf1f5 !important;
    background: transparent !important;
}

html[data-zen-theme="dark"] .topbar-search input::placeholder {
    color: #8995a3 !important;
}

html[data-zen-theme="dark"] .brand-link::before {
    background: #45c5ba !important;
}

/* NAVIGATION */

html[data-zen-theme="dark"] .home-quick-actions .ev-nav-btn {
    background: linear-gradient(
        180deg,#29333d 0%,#1e262e 100%
    ) !important;
    color: #edf1f5 !important;
    border-color: #394550 !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 5px 13px rgba(0,0,0,.18) !important;
}

html[data-zen-theme="dark"] .home-quick-actions .ev-nav-btn:hover {
    background: #303c47 !important;
    border-color: #52616e !important;
}

html[data-zen-theme="dark"] .home-quick-actions .ev-nav-btn i {
    color: #45c5ba !important;
}

/* SECTION HEADERS */

html[data-zen-theme="dark"] .home-section-finished,
html[data-zen-theme="dark"] .home-section-finished + .last-finished-strip {
    background: #1b2128 !important;
    border-color: #303943 !important;
    color: #edf1f5 !important;
    box-shadow: none !important;
}

html[data-zen-theme="dark"] .last-finished-name {
    color: #edf1f5 !important;
}

html[data-zen-theme="dark"] .home-section-upcoming {
    background: linear-gradient(
        180deg,#29333d 0%,#1e262e 100%
    ) !important;
    color: #edf1f5 !important;
    border-color: #303943 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

html[data-zen-theme="dark"] .home-section-upcoming > span:first-child {
    color: #edf1f5 !important;
}

html[data-zen-theme="dark"] .home-section-upcoming > span:first-child::before {
    color: #45c5ba !important;
}

html[data-zen-theme="dark"] .home-section-finished > span:first-child::before {
    color: #e48c9a !important;
}

html[data-zen-theme="dark"] .home-section-count {
    background: #263d3b !important;
    color: #45c5ba !important;
    border-color: #34504d !important;
    box-shadow: none !important;
}

/* EVENT CARDS - RESTING STATE */

html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) {
    background: #1b2128 !important;
    border-color: #303943 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
}

html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) .event-naziv {
    color: #edf1f5 !important;
}

html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) .event-datum,
html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) .event-org,
html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) .event-org a,
html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) .counter {
    color: #aab5c0 !important;
}

html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) .event-price {
    color: #93c9df !important;
}

html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) .event-footer {
    border-color: #303943 !important;
}

/* SECONDARY BUTTONS */

html[data-zen-theme="dark"] .event-card:not(:hover) .event-link-ghost {
    background: #242c34 !important;
    color: #cbd5df !important;
    border-color: #394550 !important;
    box-shadow: none !important;
}

html[data-zen-theme="dark"] .event-card .event-link-green {
    background: #007870 !important;
    color: #ffffff !important;
}

/* REGISTRATION STATUS */

html[data-zen-theme="dark"] .event-card:not(:hover) .badge-open:not(.is-closed):not(.is-today) {
    background: #163c40 !important;
    color: #8ad9de !important;
    border-color: #29575c !important;
    box-shadow: none !important;
}

html[data-zen-theme="dark"] .event-card:not(:hover) .badge-closed,
html[data-zen-theme="dark"] .event-card:not(:hover) .badge-finished,
html[data-zen-theme="dark"] .event-card:not(:hover) .badge-open.is-closed {
    background: #303943 !important;
    color: #aab5c0 !important;
    border-color: #465461 !important;
    box-shadow: none !important;
}

/* CARD ICONS AND TOOLTIPS */

html[data-zen-theme="dark"] .events-list > .event-card:not(:hover) .zen-ec-meta-item > summary {
    background: #242c34 !important;
    color: #bac4cf !important;
    border-color: #394550 !important;
}

html[data-zen-theme="dark"] .events-list > .event-card .zen-ec-tooltip {
    background: #29333d !important;
    color: #edf1f5 !important;
    border-color: #465461 !important;
}

/* FOOTER */

html[data-zen-theme="dark"] .footer-service-card {
    background: #1b2128 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.16) !important;
}

html[data-zen-theme="dark"] .footer-service-card p {
    color: #edf1f5 !important;
}

html[data-zen-theme="dark"] .footer-service-card i,
html[data-zen-theme="dark"] .footer-service-card svg {
    color: #45c5ba !important;
}

/* ZEN_DARK_FIRST_CARD_FIX_V1 */

html[data-zen-theme="dark"]
.home-section-upcoming
+ .events-list
> .event-card:first-child:not(:hover) {
    border-left-color: var(--border) !important;
    border-right-color: var(--border) !important;
    border-bottom-color: var(--border) !important;
}

/* ZEN_DARK_HOVER_TUNE_V1 */

/* Info / Prijavljeni */
html[data-zen-theme="dark"] .event-card .event-link-ghost:hover,
html[data-zen-theme="dark"] .event-card .event-link-ghost:focus-visible {
    background: #2b3440 !important;
    color: #edf1f5 !important;
    border-color: #465461 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.16) !important;
}

/* Otvorene prijave badge */
html[data-zen-theme="dark"] .event-card .badge-open:not(.is-closed):not(.is-today):hover,
html[data-zen-theme="dark"] .event-card .badge-open:not(.is-closed):not(.is-today):focus-visible {
    background: #1c4a4f !important;
    color: #b6f3f0 !important;
    border-color: #2f6b70 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.14) !important;
}

/* Dodatna zaštita da nijedno generičko light hover pravilo ne probije */
html[data-zen-theme="dark"] .event-card .event-link-ghost,
html[data-zen-theme="dark"] .event-card .badge-open:not(.is-closed):not(.is-today) {
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease !important;
}

/* ZEN_DARK_CARD_HOVER_V2 */

html[data-zen-theme="dark"]
.events-list > .event-card:hover .event-link-ghost {
    background: rgba(18,26,34,.88) !important;
    color: #edf1f5 !important;
    border-color: rgba(255,255,255,.20) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html[data-zen-theme="dark"]
.events-list > .event-card:hover .event-link-ghost:hover {
    background: #394550 !important;
    color: #ffffff !important;
    border-color: #687786 !important;
}

html[data-zen-theme="dark"]
.events-list > .event-card:hover
.badge-open:not(.is-closed):not(.is-today) {
    background: rgba(16,54,57,.92) !important;
    color: #a4e4e0 !important;
    border-color: #417477 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html[data-zen-theme="dark"]
.events-list > .event-card:hover
.zen-ec-meta-item > summary {
    background: rgba(18,26,34,.88) !important;
    color: #edf1f5 !important;
    border-color: rgba(255,255,255,.20) !important;
}

/* ZEN_DARK_PODIUM_V1 */

html[data-zen-theme="dark"] .last-finished-name::before {
    background-image:
        url("data:image/svg+xml,%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20%20%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20%20%20%20fill%3D%22none%22%0A%20%20%20%20%20stroke%3D%22%23BAC4CF%22%0A%20%20%20%20%20stroke-width%3D%221.65%22%0A%20%20%20%20%20stroke-linecap%3D%22round%22%0A%20%20%20%20%20stroke-linejoin%3D%22round%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M2%2021h20%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M9%2010h6v11H9z%22%20fill%3D%22%23C6A45E%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M2%2014h7v7H2z%22%20fill%3D%22%2384919F%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M15%2016h7v5h-7z%22%20fill%3D%22%23AB7958%22%2F%3E%0A%3C%2Fsvg%3E%0A"),
        linear-gradient(
            180deg,#29333d 0%,#242c34 100%
        ) !important;

    border-color: #394550 !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05)
        !important;
}

/* ZEN_DARK_HOVER_BORDER_V1 */

html[data-zen-theme="dark"]
.events-list > .event-card:hover,

html[data-zen-theme="dark"]
.home-section-upcoming
+ .events-list
> .event-card:first-child:hover {
    border-color: #394550 !important;
    box-shadow:
        0 6px 20px rgba(0,0,0,.24) !important;
}

/* ZEN_DARK_EVERYSECOND_PALETTE_V1 */

html[data-zen-theme="dark"] {
    --bg: #0f1319;
    --zen-event-card: #1b2b2a;
    --zen-event-border: #427369;
    --zen-event-divider: #38534e;
}

/* Event cards - resting state */

html[data-zen-theme="dark"]
.events-list > .event-card:not(:hover) {
    --white: var(--zen-event-card);
    background: var(--zen-event-card) !important;
    border-color: var(--zen-event-border) !important;
}

/* First card connected to section header */

html[data-zen-theme="dark"]
.home-section-upcoming
+ .events-list
> .event-card:first-child:not(:hover) {
    border-left-color: var(--zen-event-border) !important;
    border-right-color: var(--zen-event-border) !important;
    border-bottom-color: var(--zen-event-border) !important;
}

/* Card header */

html[data-zen-theme="dark"] .home-section-upcoming {
    background: linear-gradient(
        180deg,#233a36 0%,#1b2b2a 100%
    ) !important;
    border-color: var(--zen-event-border) !important;
}

/* Secondary buttons */

html[data-zen-theme="dark"]
.event-card:not(:hover) .event-link-ghost {
    background: #243b37 !important;
    border-color: #3b5550 !important;
    color: #d8e6e2 !important;
}

/* Secondary text */

html[data-zen-theme="dark"]
.events-list > .event-card:not(:hover) .event-datum,
html[data-zen-theme="dark"]
.events-list > .event-card:not(:hover) .event-org,
html[data-zen-theme="dark"]
.events-list > .event-card:not(:hover) .event-org a,
html[data-zen-theme="dark"]
.events-list > .event-card:not(:hover) .counter {
    color: #aabdb9 !important;
}

/* Card footer divider */

html[data-zen-theme="dark"]
.events-list > .event-card:not(:hover) .event-footer {
    border-color: var(--zen-event-divider) !important;
}

/* Card metadata icons */

html[data-zen-theme="dark"]
.events-list > .event-card:not(:hover)
.zen-ec-meta-item > summary {
    background: #243b37 !important;
    border-color: #3b5550 !important;
}

/* Preserve thematic hover effects */

html[data-zen-theme="dark"]
.events-list > .event-card:hover,

html[data-zen-theme="dark"]
.home-section-upcoming
+ .events-list
> .event-card:first-child:hover {
    border-color: #427369 !important;
}


/* ZEN_DARK_EVENT_DETAIL_V1 */

html[data-zen-theme="dark"] .race-block,
html[data-zen-theme="dark"] .info-card {
    background: #1b2b2a;
    border-color: #427369;
    box-shadow: 0 3px 14px rgba(0,0,0,.18);
}

html[data-zen-theme="dark"] .race-block:has(> .race-actions):hover {
    border-color: #56877c;
    box-shadow: 0 6px 20px rgba(0,0,0,.24);
}

html[data-zen-theme="dark"] .race-meta-footer {
    border-color: #38534e;
}

html[data-zen-theme="dark"] .race-price {
    color: #93c9df;
}

html[data-zen-theme="dark"] .race-actions .btn-green {
    background: #007870;
    color: #ffffff;
}

html[data-zen-theme="dark"] .race-actions .btn-green:hover {
    background: #00665f;
}

html[data-zen-theme="dark"] .race-actions .btn-gpx {
    background: #243b37;
    border-color: #3b5550;
    color: #d8e6e2;
}

html[data-zen-theme="dark"] .race-actions .btn-gpx:hover {
    background: #304941;
    border-color: #56877c;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .event-header .badge-info {
    background: rgba(18,26,34,.88) !important;
    color: #edf1f5 !important;
    border-color: #465461 !important;
}

html[data-zen-theme="dark"] .event-header .badge-open {
    background: #163c40 !important;
    color: #8ad9de !important;
    border-color: #29575c !important;
}

html[data-zen-theme="dark"] .event-header .badge-closed,
html[data-zen-theme="dark"] .event-header .badge-finished {
    background: #303943 !important;
    color: #bac4cf !important;
}

html[data-zen-theme="dark"] .event-header .badge-hidden {
    background: #202e48 !important;
    color: #93b4ff !important;
}

html[data-zen-theme="dark"] .event-header {
    border-color: #427369;
}

/* ZEN_DARK_DETAIL_TUNE_V1 */

html[data-zen-theme="dark"] .event-header.theme-static
.event-organizer-details summary {
    color: #edf1f5 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.65);
}

html[data-zen-theme="dark"] .event-header.theme-static
.event-organizer-body {
    color: #edf1f5 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.65);
}

html[data-zen-theme="dark"] .race-date,
html[data-zen-theme="dark"] .race-counter {
    color: #aabdb9;
}

html[data-zen-theme="dark"] .info-card hr {
    border-color: #427369 !important;
    background-color: #427369 !important;
}

/* ZEN_DARK_REGISTRATION_V1 */

html[data-zen-theme="dark"] #reg-form {
    color: var(--text);
}

html[data-zen-theme="dark"] .price-card,
html[data-zen-theme="dark"] .consent-row {
    background: #1b2b2a;
    border-color: #427369;
}

html[data-zen-theme="dark"] .price-total {
    border-color: #38534e;
}

html[data-zen-theme="dark"]
#reg-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
html[data-zen-theme="dark"] #reg-form select,
html[data-zen-theme="dark"] #reg-form textarea {
    background: #1b2b2a !important;
    border-color: #427369 !important;
    color: #edf1f5 !important;
}

html[data-zen-theme="dark"]
#reg-form input::placeholder,
html[data-zen-theme="dark"]
#reg-form textarea::placeholder {
    color: #899e9a !important;
}

html[data-zen-theme="dark"]
#reg-form input:focus,
html[data-zen-theme="dark"]
#reg-form select:focus,
html[data-zen-theme="dark"]
#reg-form textarea:focus {
    border-color: #53e0b5 !important;
    box-shadow: 0 0 0 3px rgba(83,224,181,.10) !important;
}

html[data-zen-theme="dark"] #reg-form option {
    background: #1b2b2a;
    color: #edf1f5;
}

html[data-zen-theme="dark"]
#reg-form input[type="checkbox"],
html[data-zen-theme="dark"]
#reg-form input[type="radio"],
html[data-zen-theme="dark"]
#reg-form input[type="range"] {
    accent-color: #53e0b5;
}

html[data-zen-theme="dark"] #reg-form fieldset {
    background: #1b2b2a;
    border-color: #427369 !important;
}

html[data-zen-theme="dark"] #reg-form legend {
    color: #edf1f5;
}

html[data-zen-theme="dark"] #reg-form .errorlist {
    color: #fca5a5;
}

html[data-zen-theme="dark"]
#reg-form div[style*="#f8d7da"] {
    background: #3b2026 !important;
    border-color: #80404c !important;
    color: #fca5a5 !important;
}

html[data-zen-theme="dark"] .zen-soon-preview-note {
    background: #202e48 !important;
    color: #b6ceff !important;
    border-color: #405575 !important;
}

/* Phone country picker */

html[data-zen-theme="dark"] .zen-mobile-picker-button,
html[data-zen-theme="dark"] .zen-mobile-picker-dropdown,
html[data-zen-theme="dark"] .zen-mobile-picker-option {
    background: #1b2b2a !important;
    border-color: #427369 !important;
    color: #edf1f5 !important;
}

html[data-zen-theme="dark"] .zen-mobile-picker-option:hover,
html[data-zen-theme="dark"] .zen-mobile-picker-option:focus-visible {
    background: #304941 !important;
}

html[data-zen-theme="dark"] .zen-mobile-picker-option .dial {
    color: #aabdb9 !important;
}

/* Legacy country dropdown */

html[data-zen-theme="dark"]
#reg-form select[name="cf_drzava"] + div > div {
    background: #1b2b2a !important;
    border-color: #427369 !important;
    color: #edf1f5 !important;
}

html[data-zen-theme="dark"]
#reg-form select[name="cf_drzava"] + div span {
    color: #d8e6e2 !important;
}

html[data-zen-theme="dark"]
#reg-form select[name="cf_drzava"] + div > div > div {
    border-color: #38534e !important;
}

html[data-zen-theme="dark"]
#reg-form select[name="cf_drzava"] + div > div > div:hover {
    background: #304941 !important;
}

/* Registration submit button */

html[data-zen-theme="dark"] #submit-btn {
    background: #007870 !important;
    border-color: #007870 !important;
    color: #ffffff !important;
}

html[data-zen-theme="dark"] #submit-btn:hover {
    background: #00665f !important;
}

/* Confirmation pages */

html[data-zen-theme="dark"] .thanks-card {
    background: #1b2b2a;
    border-color: #427369;
}

html[data-zen-theme="dark"] .btn-home {
    background: #007870;
    color: #ffffff;
}


/* ZEN_DARK_PARTICIPANTS_V1 */

html[data-zen-theme="dark"] .race-block,
html[data-zen-theme="dark"] .zen-summary-card,
html[data-zen-theme="dark"] .relay-card,
html[data-zen-theme="dark"] .krug-race {
    background: #1b2b2a;
    border-color: #427369;
}

html[data-zen-theme="dark"] .race-title,
html[data-zen-theme="dark"] .sex-filter,
html[data-zen-theme="dark"] .reg-row,
html[data-zen-theme="dark"] .relay-members,
html[data-zen-theme="dark"] .krug-row,
html[data-zen-theme="dark"] .krug-race-head {
    border-color: #38534e;
}

html[data-zen-theme="dark"] .reg-row:hover {
    background: #243b37;
}

html[data-zen-theme="dark"] .race-count,
html[data-zen-theme="dark"] .reg-team,
html[data-zen-theme="dark"] .event-meta,
html[data-zen-theme="dark"] .zen-summary-total {
    color: #aabdb9;
}

html[data-zen-theme="dark"] .zen-race-tabs button,
html[data-zen-theme="dark"] .sex-filter button {
    background: #243b37;
    border-color: #427369;
    color: #b9ccc7;
}

html[data-zen-theme="dark"] .zen-race-tabs button.active,
html[data-zen-theme="dark"] .sex-filter button.active {
    background: #007870;
    border-color: #45c5ba;
    color: #ffffff;
}

html[data-zen-theme="dark"] .sex-filter button:hover {
    border-color: #56877c;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .search-bar,
html[data-zen-theme="dark"] .krug-search {
    background: #1b2b2a;
    border-color: #427369;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .search-bar input {
    background: transparent;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .sex-m {
    background: #20354d;
    color: #a2c6ff;
}

html[data-zen-theme="dark"] .sex-f {
    background: #482c3c;
    color: #f0abc5;
}

html[data-zen-theme="dark"] .sex-q {
    background: #303943;
    color: #b8c2ce;
}

html[data-zen-theme="dark"] .country-flag-fallback {
    background: #20354d;
}

html[data-zen-theme="dark"] .zen-summary-icon.confirmed {
    background: #204a37;
    color: #81d9a8;
}

html[data-zen-theme="dark"] .zen-summary-icon.pending {
    background: #303943;
    color: #b5bec8;
}

html[data-zen-theme="dark"] .reg-row.pending .reg-name,
html[data-zen-theme="dark"] .reg-name.pending {
    color: #a0a9b3;
}

html[data-zen-theme="dark"] .zen-relay-pending-runtime {
    opacity: 1 !important;
}

html[data-zen-theme="dark"] .zen-relay-pending-runtime,
html[data-zen-theme="dark"] .zen-relay-pending-runtime * {
    color: #a0a9b3 !important;
}

/* KRUG — preserve FUN / PRO distinction */

html[data-zen-theme="dark"] .krug-race-head--fun {
    background: #204a37;
    color: #9ce5b9;
}

html[data-zen-theme="dark"] .krug-race-head--pro {
    background: #482733;
    color: #f3a5bd;
}

html[data-zen-theme="dark"] .krug-row:hover {
    background: #243b37;
}



/* ZEN_DARK_ARCHIVE_V1 */

html[data-zen-theme="dark"] .archive-card {
    background: #1b2b2a;
    border-color: #427369;
}

html[data-zen-theme="dark"] .archive-card:hover {
    border-color: #56877c;
    box-shadow: 0 4px 16px rgba(0,0,0,.24);
}

html[data-zen-theme="dark"] .archive-bottom {
    border-color: #38534e;
}

html[data-zen-theme="dark"] .archive-datum,
html[data-zen-theme="dark"] .archive-org,
html[data-zen-theme="dark"] .archive-contact,
html[data-zen-theme="dark"] .archive-bottom .counter {
    color: #aabdb9;
}

html[data-zen-theme="dark"] .archive-card .badge-finished {
    background: #303943;
    color: #bac4cf;
}

html[data-zen-theme="dark"] .archive-link:not(.archive-link-green),
html[data-zen-theme="dark"] .archive-card .event-link-ghost,
html[data-zen-theme="dark"] .btn-page {
    background: #243b37;
    border-color: #427369;
    color: #d8e6e2;
}

html[data-zen-theme="dark"] .archive-link:not(.archive-link-green):hover,
html[data-zen-theme="dark"] .archive-card .event-link-ghost:hover,
html[data-zen-theme="dark"] .btn-page:hover {
    background: #304941;
    border-color: #56877c;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .archive-card .event-link-green {
    background: #007870 !important;
    color: #fff !important;
}

html[data-zen-theme="dark"] .seg.years {
    background: #1b2b2a;
    border-color: #427369;
}

html[data-zen-theme="dark"] .seg.years a {
    color: #aabdb9;
}

html[data-zen-theme="dark"] .seg.years a.year.selected {
    background: #243b52;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .seg.years a.month.active {
    background: #007870;
    color: #fff;
}

html[data-zen-theme="dark"]
.seg.years a.month:not(:last-child) {
    border-color: #38534e;
}

html[data-zen-theme="dark"]
.archive-heading-row span[style*="color:#1C2B47"] {
    color: #edf1f5 !important;
}

html[data-zen-theme="dark"]
.archive-heading-row span[style*="background:#E6E6E6"] {
    background: #243b37 !important;
    color: #aabdb9 !important;
}

html[data-zen-theme="dark"]
.search-box:has(#archivePretraga) {
    background: #1b2b2a !important;
    border-color: #427369 !important;
}

html[data-zen-theme="dark"] #archivePretraga {
    background: transparent !important;
    color: #edf1f5 !important;
    box-shadow: none !important;
}



/* ZEN_DARK_REMAINING_V1 */

/* Contact dialog */

html[data-zen-theme="dark"] .zen-contact-dialog {
    background: #1b2128;
    color: #edf1f5;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

html[data-zen-theme="dark"] .zen-contact-dialog::backdrop {
    background: rgba(0,0,0,.70);
}

html[data-zen-theme="dark"] .zen-contact-subtitle,
html[data-zen-theme="dark"] .zen-contact-privacy {
    color: #aabdb9;
}

html[data-zen-theme="dark"] .zen-contact-close {
    background: #303943;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .zen-contact-field input,
html[data-zen-theme="dark"] .zen-contact-field select,
html[data-zen-theme="dark"] .zen-contact-field textarea {
    background: #1b2b2a;
    border-color: #427369;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .zen-contact-privacy a {
    color: #45c5ba;
}

html[data-zen-theme="dark"] .zen-contact-submit {
    background: #007870;
    color: #ffffff;
}

html[data-zen-theme="dark"]
.zen-contact-status[data-state="success"] {
    color: #81d9a8;
}

html[data-zen-theme="dark"]
.zen-contact-status[data-state="error"] {
    color: #fca5a5;
}

/* Guardian consent */

html[data-zen-theme="dark"] .gc-wrap form .gc-option {
    background: #1b2b2a !important;
    border-color: #427369 !important;
    color: #edf1f5;
}

html[data-zen-theme="dark"] .gc-wrap form .gc-option:hover {
    border-color: #56877c !important;
}

html[data-zen-theme="dark"]
.gc-wrap form .gc-option.gc-selected {
    background: #243b37 !important;
    border-color: #45c5ba !important;
    box-shadow: 0 0 0 2px rgba(69,197,186,.12) !important;
}

html[data-zen-theme="dark"]
.gc-wrap input[type="radio"],
html[data-zen-theme="dark"]
.gc-wrap input[type="checkbox"] {
    accent-color: #45c5ba;
}

html[data-zen-theme="dark"] .gc-wrap .alert-success {
    background: #204a37;
    color: #9ce5b9;
    border-color: #427369;
}

html[data-zen-theme="dark"] .gc-wrap .alert-danger {
    background: #3b2026;
    color: #fca5a5;
    border-color: #80404c;
}


/* ZEN_MOBILE_THEME_SWITCH_V1 */

@media (max-width: 600px) {
    .zen-theme-switch button {
        display: none;
    }

    .zen-theme-switch button[aria-pressed="true"] {
        display: inline-grid;
    }
}
