/* Kalendář akcí – Design | WebovkyKladno.cz
   Selektory jsou záměrně specifické (button.třída), aby je nepřepsala šablona (Hello / Elementor). */

.ecd-wrap,
.ecd-modal-root {
    --ecd-navy: #0b3d7a;
    --ecd-navy-2: #164f95;
    --ecd-ink: #0f2a4d;
    --ecd-muted: #4d6380;
    --ecd-line: #e3ecf6;
    --ecd-pill: #e9f2fc;
    --ecd-yellow: #f7c21b;
    --ecd-font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-family: var(--ecd-font);
    color: var(--ecd-ink);
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
}
.ecd-wrap *,
.ecd-wrap *::before,
.ecd-wrap *::after,
.ecd-modal-root *,
.ecd-modal-root *::before,
.ecd-modal-root *::after { box-sizing: border-box; }

/* reset tlačítek proti šabloně */
.ecd-wrap button,
.ecd-modal-root button,
.ecd-wrap button:hover,
.ecd-wrap button:focus,
.ecd-modal-root button:hover,
.ecd-modal-root button:focus {
    font-family: var(--ecd-font);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    padding: 0;
    margin: 0;
    min-height: 0;
    width: auto;
    height: auto;
    line-height: inherit;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.ecd-wrap button:focus-visible,
.ecd-modal-root button:focus-visible,
.ecd-wrap .ecd-ev:focus-visible,
.ecd-modal-root .ecd-ev:focus-visible,
.ecd-wrap .ecd-wheel:focus-visible {
    outline: 3px solid var(--ecd-yellow);
    outline-offset: 2px;
}
.ecd-i { width: 1em; height: 1em; display: inline-block; flex: none; vertical-align: middle; }

/* ------------------------------------------------------------------ */
/* Obal a pozadí                                                       */
/* ------------------------------------------------------------------ */
.ecd-wrap {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
}
.ecd-wrap .ecd-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 22% 38%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg,
            rgba(168, 203, 236, 0) 0%,
            rgba(168, 203, 236, .85) 14%,
            #c4dcf2 36%,
            #dceaf8 62%,
            rgba(236, 244, 252, .7) 84%,
            rgba(255, 255, 255, 0) 100%);
}
.ecd-wrap .ecd-skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6%;
    width: 100%;
    height: 200px;
    opacity: .9;
}
.ecd-wrap .ecd-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 72px 28px 72px;
}
.ecd-wrap:not(.ecd-has-bg) .ecd-inner { padding: 24px 0; }

/* ------------------------------------------------------------------ */
/* Kolo                                                                */
/* ------------------------------------------------------------------ */
.ecd-wrap .ecd-left { position: sticky; top: 24px; }
.ecd-wrap .ecd-wheel-box { position: relative; padding: 0 12px; }
.ecd-wrap .ecd-wheel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}
.ecd-wrap .ecd-wheel.is-switch { animation: ecdSwitch .45s ease; }
@keyframes ecdSwitch { from { opacity: .35; transform: scale(.97) rotate(-4deg); } to { opacity: 1; transform: none; } }
.ecd-wrap .ecd-wheel.is-drag { cursor: grabbing; }
.ecd-wrap .ecd-wheel-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ecd-wrap .ecd-w-lines line { stroke: #e5eef7; stroke-width: 1.3; }
.ecd-wrap .ecd-w-num { cursor: pointer; }
.ecd-wrap .ecd-w-num text {
    font-family: var(--ecd-font);
    fill: var(--ecd-ink);
    transition: fill .2s;
}
.ecd-wrap .ecd-w-num text.ecd-w-d { font-size: 25px; font-weight: 800; }
.ecd-wrap .ecd-w-num text.ecd-w-wd { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; fill: #6c819b; }
.ecd-wrap .ecd-w-num:hover text.ecd-w-d { fill: var(--ecd-navy-2); }
.ecd-wrap .ecd-w-wknd path { fill: #fdecee; }
.ecd-wrap .ecd-w-num.is-wknd text.ecd-w-d,
.ecd-wrap .ecd-w-num.is-wknd text.ecd-w-wd { fill: #d8343d; }
.ecd-wrap .ecd-w-num.is-past text.ecd-w-d,
.ecd-wrap .ecd-w-num.is-past text.ecd-w-wd { fill: #a9bbcf; }
.ecd-wrap .ecd-w-num.is-wknd.is-past text.ecd-w-d,
.ecd-wrap .ecd-w-num.is-wknd.is-past text.ecd-w-wd { fill: #eba7ab; }
.ecd-wrap .ecd-w-num.is-today text.ecd-w-wd { fill: var(--ecd-navy-2); font-weight: 900; }
.ecd-wrap .ecd-w-num.is-sel text.ecd-w-d { fill: #0a2a57; font-size: 28px; font-weight: 900; }
.ecd-wrap .ecd-w-num.is-sel text.ecd-w-wd { fill: #0a2a57; }
.ecd-wrap .ecd-w-dots circle { fill: var(--ecd-yellow); pointer-events: none; transition: opacity .2s; }
.ecd-wrap .ecd-w-dots circle.is-sel { opacity: 0; }
.ecd-wrap .ecd-w-wedge { filter: drop-shadow(0 4px 8px rgba(247, 180, 0, .35)); pointer-events: none; }
.ecd-wrap .ecd-w-center { cursor: pointer; }
.ecd-wrap .ecd-w-center:focus { outline: none; }
.ecd-wrap .ecd-w-month,
.ecd-wrap .ecd-w-year {
    font-family: var(--ecd-font);
    fill: #fff;
    font-weight: 800;
}
.ecd-wrap .ecd-w-month { font-size: 37px; }
.ecd-wrap .ecd-w-year { font-size: 39px; }

.ecd-wrap button.ecd-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    border-radius: 50%;
    background: #fff;
    color: var(--ecd-navy);
    box-shadow: 0 8px 22px rgba(11, 61, 122, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: transform .2s, box-shadow .2s;
}
.ecd-wrap button.ecd-nav:hover,
.ecd-wrap button.ecd-nav:focus { background: #fff; color: var(--ecd-navy); transform: scale(1.07); box-shadow: 0 10px 26px rgba(11, 61, 122, .24); }
.ecd-wrap button.ecd-nav-prev { left: -30px; }
.ecd-wrap button.ecd-nav-next { right: -30px; }

/* hledání */
.ecd-wrap .ecd-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 64px 0 0;
    height: 56px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(11, 61, 122, .12);
    padding: 0 18px 0 22px;
    cursor: text;
}
.ecd-wrap .ecd-search-ico { color: var(--ecd-navy); font-size: 22px; display: flex; margin-right: 12px; }
.ecd-wrap input.ecd-search-input,
.ecd-wrap input.ecd-search-input:focus {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-family: var(--ecd-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--ecd-ink);
    border-radius: 0;
}
.ecd-wrap input.ecd-search-input::placeholder { color: #6a7f98; opacity: 1; }
.ecd-wrap input.ecd-search-input::-webkit-search-cancel-button { display: none; }
.ecd-wrap .ecd-search:focus-within { box-shadow: 0 0 0 3px rgba(247, 194, 27, .7), 0 8px 24px rgba(11, 61, 122, .12); }
.ecd-wrap button.ecd-search-clear {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ecd-muted); font-size: 18px; background: #f0f5fb;
}
.ecd-wrap button.ecd-search-clear[hidden] { display: none; }
.ecd-wrap button.ecd-search-clear:hover { background: #e2ecf7; color: var(--ecd-navy); }

/* ------------------------------------------------------------------ */
/* Panel                                                               */
/* ------------------------------------------------------------------ */
.ecd-wrap .ecd-panel {
    position: relative;
    background: rgba(255, 255, 255, .97);
    border-radius: 30px;
    padding: 22px 22px 22px;
    box-shadow: 0 24px 60px rgba(11, 61, 122, .14), 0 2px 6px rgba(11, 61, 122, .05);
    min-width: 0;
    transition: opacity .2s;
}
.ecd-wrap.is-loading .ecd-panel { opacity: .55; pointer-events: none; }

.ecd-wrap .ecd-head {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 66px;
    margin-right: 16px;
    padding: 10px 34px 10px 24px;
    color: #fff;
    background: linear-gradient(100deg, #0a3672 0%, #11498f 100%);
    border-radius: 18px 999px 999px 18px;
    box-shadow: 16px 0 0 0 var(--ecd-yellow);
}
.ecd-wrap .ecd-head-cal { font-size: 30px; display: flex; flex: none; }
.ecd-wrap .ecd-head-cal .ecd-i { stroke-width: 1.7; }
.ecd-wrap .ecd-head-date {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.01em;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ecd-wrap .ecd-head-sep { width: 1px; align-self: stretch; margin: 8px 0; background: rgba(255, 255, 255, .25); flex: none; }
.ecd-wrap .ecd-head-count { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; flex: none; white-space: nowrap; }
.ecd-wrap .ecd-head-count .ecd-i { font-size: 26px; stroke-width: 1.7; }

/* kategorie */
.ecd-wrap .ecd-cats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(86px, 1fr);
    gap: 10px;
    margin: 16px 0 18px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cfdcea transparent;
}
.ecd-wrap .ecd-cats::-webkit-scrollbar { height: 6px; }
.ecd-wrap .ecd-cats::-webkit-scrollbar-thumb { background: #cfdcea; border-radius: 6px; }
.ecd-wrap button.ecd-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 82px;
    padding: 10px 8px;
    border-radius: 16px;
    background: #fff;
    color: var(--ecd-ink);
    border: 1px solid #edf2f8;
    box-shadow: 0 4px 14px rgba(11, 61, 122, .08);
    text-align: center;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.ecd-wrap button.ecd-cat:hover,
.ecd-wrap button.ecd-cat:focus { background: #fff; color: var(--ecd-ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11, 61, 122, .14); }
.ecd-wrap button.ecd-cat .ecd-cat-ico { color: var(--c); font-size: 32px; display: flex; }
.ecd-wrap button.ecd-cat .ecd-cat-ico .ecd-i { stroke-width: 1.8; }
.ecd-wrap button.ecd-cat .ecd-cat-name { font-size: 15px; font-weight: 800; line-height: 1.1; }
.ecd-wrap button.ecd-cat.is-active,
.ecd-wrap button.ecd-cat.is-active:hover,
.ecd-wrap button.ecd-cat.is-active:focus {
    background: var(--c);
    border-color: var(--c);
    color: #fff;
    box-shadow: 0 8px 20px rgba(11, 61, 122, .22);
}
.ecd-wrap button.ecd-cat.is-active .ecd-cat-ico { color: #fff; }

/* řádky akcí */
.ecd-wrap .ecd-list,
.ecd-modal-root .ecd-list { display: flex; flex-direction: column; gap: 9px; }
.ecd-wrap .ecd-ev,
.ecd-modal-root .ecd-ev {
    position: relative;
    display: grid;
    grid-template-columns: 46px 86px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 8px 18px 8px 26px;
    background: #fff;
    border: 1px solid #e8eff7;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(11, 61, 122, .06);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, border-color .2s;
    animation: ecdIn .35s ease both;
}
.ecd-wrap .ecd-ev::before,
.ecd-modal-root .ecd-ev::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    width: 7px;
    border-radius: 14px 0 0 14px;
    background: var(--c);
}
.ecd-wrap .ecd-ev:hover,
.ecd-modal-root .ecd-ev:hover { transform: translateX(3px); box-shadow: 0 8px 20px rgba(11, 61, 122, .12); border-color: #d7e4f2; }
.ecd-wrap .ecd-ev.is-hidden { display: none; }
.ecd-wrap .ecd-ev:nth-child(2) { animation-delay: .03s; }
.ecd-wrap .ecd-ev:nth-child(3) { animation-delay: .06s; }
.ecd-wrap .ecd-ev:nth-child(4) { animation-delay: .09s; }
.ecd-wrap .ecd-ev:nth-child(5) { animation-delay: .12s; }
.ecd-wrap .ecd-ev:nth-child(6) { animation-delay: .15s; }
.ecd-wrap .ecd-ev:nth-child(7) { animation-delay: .18s; }
.ecd-wrap .ecd-ev:nth-child(8) { animation-delay: .21s; }
@keyframes ecdIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ecd-wrap .ecd-ev-ico,
.ecd-modal-root .ecd-ev-ico { color: var(--c); font-size: 32px; display: flex; justify-content: center; }
.ecd-wrap .ecd-ev-ico .ecd-i,
.ecd-modal-root .ecd-ev-ico .ecd-i { stroke-width: 1.8; }
.ecd-wrap .ecd-ev-time,
.ecd-modal-root .ecd-ev-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 4px 6px;
    background: var(--ecd-pill);
    border-radius: 11px;
    color: var(--ecd-ink);
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    line-height: 1.1;
}
.ecd-wrap .ecd-ev-time small,
.ecd-modal-root .ecd-ev-time small { font-size: 11.5px; font-weight: 800; color: var(--ecd-navy-2); text-transform: uppercase; letter-spacing: .02em; }
.ecd-wrap .ecd-ev-main,
.ecd-modal-root .ecd-ev-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ecd-wrap .ecd-ev-title,
.ecd-modal-root .ecd-ev-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--ecd-ink);
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ecd-wrap button.ecd-ev-venue,
.ecd-modal-root button.ecd-ev-venue {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    align-self: flex-start;
    color: #2b405a;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 6px;
    text-align: left;
}
.ecd-wrap button.ecd-ev-venue span,
.ecd-modal-root button.ecd-ev-venue span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecd-wrap button.ecd-ev-venue .ecd-i,
.ecd-modal-root button.ecd-ev-venue .ecd-i { color: var(--ecd-ink); font-size: 15px; }
.ecd-wrap button.ecd-ev-venue:hover,
.ecd-wrap button.ecd-ev-venue:focus,
.ecd-modal-root button.ecd-ev-venue:hover,
.ecd-modal-root button.ecd-ev-venue:focus { color: var(--ecd-navy-2); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.ecd-wrap .ecd-ev-go,
.ecd-modal-root .ecd-ev-go { grid-column: 5; color: var(--ecd-ink); font-size: 24px; display: flex; transition: transform .2s; }
.ecd-wrap .ecd-ev:hover .ecd-ev-go,
.ecd-modal-root .ecd-ev:hover .ecd-ev-go { transform: translateX(3px); }
.ecd-wrap .ecd-ev-badge,
.ecd-modal-root .ecd-ev-badge {
    grid-column: 4;
    font-size: 12px;
    font-weight: 800;
    color: #6c7f96;
    background: #eef2f7;
    padding: 3px 9px;
    border-radius: 999px;
}
.ecd-wrap .ecd-ev.is-past { opacity: .62; }

.ecd-wrap button.ecd-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px auto 0;
    padding: 10px 14px 10px 20px;
    border-radius: 999px;
    color: var(--ecd-navy);
    background: var(--ecd-pill);
    font-size: 15px;
    font-weight: 800;
    transition: background .2s;
}
.ecd-wrap button.ecd-more:hover,
.ecd-wrap button.ecd-more:focus { background: #dbe9f8; color: var(--ecd-navy); }
.ecd-wrap button.ecd-more .ecd-more-arrow {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ecd-navy); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    animation: ecdBob 1.8s ease-in-out infinite;
}
.ecd-wrap button.ecd-more.is-open .ecd-more-arrow { animation: none; }
@keyframes ecdBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.ecd-wrap .ecd-empty,
.ecd-modal-root .ecd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 46px 20px;
    color: var(--ecd-muted);
    border: 2px dashed #dbe6f2;
    border-radius: 18px;
}
.ecd-wrap .ecd-empty > .ecd-i,
.ecd-modal-root .ecd-empty > .ecd-i { font-size: 40px; color: #9db6d1; }
.ecd-wrap .ecd-empty p,
.ecd-modal-root .ecd-empty p { margin: 0; font-size: 17px; font-weight: 700; }
.ecd-modal-root .ecd-empty.is-small { padding: 26px 16px; }
.ecd-wrap button.ecd-empty-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 6px; padding: 10px 18px; border-radius: 999px;
    background: var(--ecd-navy); color: #fff; font-weight: 800; font-size: 15px;
}
.ecd-wrap button.ecd-empty-btn:hover,
.ecd-wrap button.ecd-empty-btn:focus { background: var(--ecd-navy-2); color: #fff; }

/* ------------------------------------------------------------------ */
/* Modální okno                                                         */
/* ------------------------------------------------------------------ */
html.ecd-lock { overflow: hidden; }
.ecd-modal-root {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    pointer-events: none;
}
.ecd-modal-root.is-open { visibility: visible; pointer-events: auto; }
.ecd-modal-root .ecd-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 28, 58, .55);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .25s;
}
.ecd-modal-root.is-open .ecd-modal-overlay { opacity: 1; }
.ecd-modal-root .ecd-modal {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(6, 28, 58, .35);
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.ecd-modal-root.is-open .ecd-modal { transform: none; opacity: 1; }
.ecd-modal-root .ecd-modal-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.ecd-modal-root button.ecd-modal-close,
.ecd-modal-root button.ecd-modal-back {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ecd-navy);
    box-shadow: 0 4px 14px rgba(6, 28, 58, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.ecd-modal-root button.ecd-modal-close { margin-left: auto; }
.ecd-modal-root button.ecd-modal-back[hidden] { display: none; }
.ecd-modal-root button.ecd-modal-close:hover,
.ecd-modal-root button.ecd-modal-back:hover,
.ecd-modal-root button.ecd-modal-close:focus,
.ecd-modal-root button.ecd-modal-back:focus { background: #fff; color: var(--ecd-navy-2); transform: scale(1.06); }
.ecd-modal-root .ecd-modal-body { overflow-y: auto; overscroll-behavior: contain; }
.ecd-modal-root .ecd-modal-loading { display: flex; justify-content: center; padding: 90px 0; }
.ecd-modal-root .ecd-spin {
    width: 42px; height: 42px; border-radius: 50%;
    border: 4px solid #dfeaf6; border-top-color: var(--ecd-navy);
    animation: ecdSpin .8s linear infinite;
}
@keyframes ecdSpin { to { transform: rotate(360deg); } }
.ecd-modal-root .ecd-modal-err { padding: 80px 30px; text-align: center; font-weight: 700; color: var(--ecd-muted); }

.ecd-modal-root .ecd-det-hero {
    position: relative;
    aspect-ratio: 16 / 7.5;
    background: #e9f1fa;
    overflow: hidden;
}
.ecd-modal-root .ecd-det-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecd-modal-root .ecd-det-hero.is-plain {
    aspect-ratio: auto;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(80% 120% at 85% 0%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%),
        linear-gradient(120deg, var(--c), #0b3d7a);
    color: #fff;
    font-size: 64px;
}
.ecd-modal-root .ecd-det-hero.is-plain .ecd-i { stroke-width: 1.5; opacity: .95; }
.ecd-modal-root .ecd-venue .ecd-det-hero { aspect-ratio: 16 / 6; }
.ecd-modal-root .ecd-det-body { padding: 26px 32px 32px; }
.ecd-modal-root .ecd-venue .ecd-det-body { padding-top: 70px; }
.ecd-modal-root .ecd-venue .ecd-det-hero + .ecd-det-body { padding-top: 26px; }
.ecd-modal-root .ecd-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: var(--c);
    background: #eef4fb;
    background: color-mix(in srgb, var(--c) 12%, #fff);
}
.ecd-modal-root .ecd-badge .ecd-i { font-size: 17px; }
.ecd-modal-root h2.ecd-det-title {
    margin: 12px 0 18px;
    padding: 0;
    font-family: var(--ecd-font);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--ecd-ink);
    letter-spacing: -.015em;
    text-transform: none;
}
.ecd-modal-root .ecd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.ecd-modal-root .ecd-fact {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    background: #f4f8fd;
    border-radius: 14px;
}
.ecd-modal-root .ecd-fact > .ecd-i {
    font-size: 20px;
    color: var(--c);
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    width: 38px;
    height: 38px;
    box-shadow: 0 2px 8px rgba(11, 61, 122, .08);
}
.ecd-modal-root .ecd-fact > div { display: flex; flex-direction: column; min-width: 0; }
.ecd-modal-root .ecd-fact small { font-size: 12px; font-weight: 800; color: #6a7f98; text-transform: uppercase; letter-spacing: .05em; }
.ecd-modal-root .ecd-fact strong { font-size: 16.5px; font-weight: 800; color: var(--ecd-ink); }
.ecd-modal-root button.ecd-link {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ecd-navy-2);
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(22, 79, 149, .35);
    text-underline-offset: 3px;
}
.ecd-modal-root button.ecd-link:hover,
.ecd-modal-root button.ecd-link:focus { color: var(--ecd-navy); text-decoration: underline; text-decoration-color: currentColor; background: transparent; }
.ecd-modal-root .ecd-addr { font-size: 14px; color: var(--ecd-muted); font-weight: 600; }

.ecd-modal-root .ecd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ecd-modal-root a.ecd-btn,
.ecd-modal-root button.ecd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid #d6e3f1;
    background: #fff;
    color: var(--ecd-navy);
    font-family: var(--ecd-font);
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    transition: background .2s, border-color .2s;
}
.ecd-modal-root a.ecd-btn:hover,
.ecd-modal-root button.ecd-btn:hover,
.ecd-modal-root a.ecd-btn:focus,
.ecd-modal-root button.ecd-btn:focus { background: var(--ecd-pill); border-color: #bcd2ea; color: var(--ecd-navy); text-decoration: none; }
.ecd-modal-root .ecd-btn .ecd-i { font-size: 17px; }

.ecd-modal-root .ecd-det-desc { font-size: 16.5px; line-height: 1.65; color: #23364f; }
.ecd-modal-root .ecd-det-desc > *:first-child { margin-top: 0; }
.ecd-modal-root .ecd-det-desc p { margin: 0 0 1em; }
.ecd-modal-root .ecd-det-desc img { max-width: 100%; height: auto; border-radius: 12px; }
.ecd-modal-root .ecd-det-desc a { color: var(--ecd-navy-2); }
.ecd-modal-root .ecd-yt { position: relative; aspect-ratio: 16 / 9; margin: 18px 0 6px; border-radius: 16px; overflow: hidden; background: #000; }
.ecd-modal-root .ecd-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ecd-modal-root h3.ecd-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 12px;
    padding: 0;
    font-family: var(--ecd-font);
    font-size: 19px;
    font-weight: 900;
    color: var(--ecd-ink);
    text-transform: none;
    letter-spacing: 0;
}
.ecd-modal-root .ecd-sub-count {
    font-size: 13px; font-weight: 800; color: #fff;
    background: var(--ecd-navy); padding: 2px 9px; border-radius: 999px;
}
.ecd-modal-root .ecd-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.ecd-modal-root button.ecd-date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--ecd-pill);
    color: var(--ecd-ink);
    line-height: 1.2;
}
.ecd-modal-root button.ecd-date-chip strong { font-size: 14px; font-weight: 800; }
.ecd-modal-root button.ecd-date-chip span { font-size: 13px; font-weight: 700; color: var(--ecd-muted); }
.ecd-modal-root button.ecd-date-chip:hover,
.ecd-modal-root button.ecd-date-chip:focus { background: #dbe9f8; color: var(--ecd-ink); }

.ecd-modal-root .ecd-venue-addr { display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; font-size: 16px; font-weight: 600; color: var(--ecd-muted); }
.ecd-modal-root .ecd-venue-addr .ecd-i { color: var(--ecd-navy); }
.ecd-modal-root .ecd-day-label {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 900;
    color: var(--ecd-navy-2);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ecd-modal-root .ecd-day-label:first-child { margin-top: 0; }
.ecd-modal-root .ecd-venue-list .ecd-ev { grid-template-columns: 40px 78px minmax(0, 1fr) auto 22px; padding-left: 22px; }
.ecd-modal-root .ecd-venue-list .ecd-ev-title { font-size: 17px; }

.ecd-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1000000;
    transform: translate(-50%, 20px);
    opacity: 0;
    padding: 12px 20px;
    border-radius: 999px;
    background: #0b3d7a;
    color: #fff;
    font: 700 15px/1.2 'Nunito', system-ui, sans-serif;
    box-shadow: 0 10px 30px rgba(6, 28, 58, .3);
    transition: opacity .25s, transform .25s;
}
.ecd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ */
/* Responzivita                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 1200px) {
    .ecd-wrap .ecd-inner { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 32px; }
    .ecd-wrap .ecd-head-date { font-size: 21px; }
    .ecd-wrap .ecd-head-count { font-size: 17px; }
    .ecd-wrap .ecd-ev-title { font-size: 17px; }
}

@media (max-width: 960px) {
    .ecd-wrap .ecd-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px 48px; }
    .ecd-wrap .ecd-left { position: static; max-width: 460px; width: 100%; margin: 0 auto; }
    .ecd-wrap .ecd-search { margin-top: 28px; }
    .ecd-wrap .ecd-skyline { bottom: auto; top: 260px; }
}

@media (max-width: 640px) {
    .ecd-wrap .ecd-inner { padding: 28px 16px 40px; }
    .ecd-wrap .ecd-left { max-width: 380px; }
    .ecd-wrap .ecd-wheel-box { padding: 0 30px; }
    .ecd-wrap .ecd-w-num text.ecd-w-wd { font-size: 15px; }
    .ecd-wrap .ecd-w-num text.ecd-w-d { font-size: 27px; }
    .ecd-wrap button.ecd-nav { width: 42px; height: 42px; margin-top: -21px; font-size: 22px; }
    .ecd-wrap button.ecd-nav-prev { left: -4px; }
    .ecd-wrap button.ecd-nav-next { right: -4px; }
    .ecd-wrap .ecd-search { height: 50px; }
    .ecd-wrap input.ecd-search-input { font-size: 16px; }

    .ecd-wrap .ecd-panel { padding: 14px 12px 16px; border-radius: 22px; }
    .ecd-wrap .ecd-head { gap: 10px; min-height: 0; padding: 12px 18px 12px 14px; margin-right: 10px; flex-wrap: wrap; border-radius: 16px 999px 999px 16px; }
    .ecd-wrap .ecd-head { box-shadow: 10px 0 0 0 var(--ecd-yellow); }
    .ecd-wrap .ecd-head-cal { font-size: 22px; }
    .ecd-wrap .ecd-head-date { font-size: 17px; white-space: normal; flex-basis: calc(100% - 40px); }
    .ecd-wrap .ecd-head-sep { display: none; }
    .ecd-wrap .ecd-head-count { font-size: 14px; margin-left: 32px; }
    .ecd-wrap .ecd-head-count .ecd-i { font-size: 18px; }

    .ecd-wrap .ecd-cats { grid-auto-columns: 84px; gap: 8px; margin: 12px -12px 12px; padding: 2px 12px 8px; }
    .ecd-wrap button.ecd-cat { min-height: 72px; border-radius: 14px; }
    .ecd-wrap button.ecd-cat .ecd-cat-ico { font-size: 26px; }
    .ecd-wrap button.ecd-cat .ecd-cat-name { font-size: 13px; }

    .ecd-wrap .ecd-ev,
    .ecd-modal-root .ecd-ev,
    .ecd-modal-root .ecd-venue-list .ecd-ev {
        grid-template-columns: 64px minmax(0, 1fr) 18px;
        gap: 4px 12px;
        padding: 10px 12px 10px 18px;
    }
    .ecd-wrap .ecd-ev-ico,
    .ecd-modal-root .ecd-ev-ico { display: none; }
    .ecd-wrap .ecd-ev-time,
    .ecd-modal-root .ecd-ev-time { font-size: 16px; grid-row: 1 / span 2; align-self: center; }
    .ecd-wrap .ecd-ev-main,
    .ecd-modal-root .ecd-ev-main { grid-column: 2; }
    .ecd-wrap .ecd-ev-title,
    .ecd-modal-root .ecd-ev-title,
    .ecd-modal-root .ecd-venue-list .ecd-ev-title {
        font-size: 16px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .ecd-wrap button.ecd-ev-venue,
    .ecd-modal-root button.ecd-ev-venue { font-size: 13.5px; }
    .ecd-wrap .ecd-ev-badge,
    .ecd-modal-root .ecd-ev-badge { grid-column: 2; grid-row: 2; justify-self: start; }
    .ecd-wrap .ecd-ev-go,
    .ecd-modal-root .ecd-ev-go { grid-column: 3; grid-row: 1 / span 2; font-size: 20px; }

    .ecd-modal-root { padding: 0; align-items: flex-end; }
    .ecd-modal-root .ecd-modal { max-height: 94vh; max-height: 94dvh; border-radius: 24px 24px 0 0; }
    .ecd-modal-root .ecd-det-body { padding: 20px 18px 28px; }
    .ecd-modal-root h2.ecd-det-title { font-size: 24px; }
    .ecd-modal-root .ecd-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ecd-wrap *, .ecd-modal-root * { animation: none !important; transition: none !important; }
}
