*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    color: #f1f5f9;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* —— Fullscreen slideshow —— */
.slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0a0a0c;
}

.slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    opacity: 0;
    transform: scale(1);

    transition:
        opacity 1.5s ease,
        transform 8s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1.06);
    z-index: 1;
}

.slide:not(.active) {
    z-index: 0;
}

video.slide {
    background: #0a0a0c;
    transition: opacity 1.5s ease;
}

video.slide.active {
    transform: none;
}

/* —— Desaturate + dim overlay on top of slides —— */
.slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(30, 41, 59, 0.55) 45%,
        rgba(15, 23, 42, 0.68) 100%
    );
    backdrop-filter: saturate(0.65);
}

/* —— Scroll column: více panelů stejného stylu —— */
.content-wrap {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1rem, 2.5vw, 1.35rem);
    padding:
        clamp(2rem, 6vw, 3.25rem)
        clamp(1.25rem, 5vw, 3.5rem)
        clamp(2.5rem, 7vw, 4rem);
}

.content-card {
    width: min(56rem, 100%);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 1.25rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 20px 50px rgba(0, 0, 0, 0.25);
}

.content-card.content-hero {
    margin-top: clamp(0.5rem, 3vh, 1.5rem);
}

.content-card h1 {
    margin: 0 0 0.35em;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.85rem, 4.5vw, 2.35rem);
    font-weight: 700;
    font-optical-sizing: auto;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #f8fafc;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.9),
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 8px rgba(0, 0, 0, 0.65),
        0 4px 24px rgba(0, 0, 0, 0.45);
}

.content-card .lead {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: #e2e8f0;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 3px rgba(0, 0, 0, 0.75),
        0 2px 14px rgba(0, 0, 0, 0.5);
}

.content-card h2 {
    margin: 0 0 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.28rem, 3.2vw, 1.55rem);
    font-weight: 600;
    font-optical-sizing: auto;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: #f8fafc;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.9),
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 12px rgba(0, 0, 0, 0.5);
}

.section-intro {
    margin: 0 0 1.1rem;
    color: #e2e8f0;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.75),
        0 2px 10px rgba(0, 0, 0, 0.45);
}

.map-wrap {
    margin: 0;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.25);
}

.map-wrap #map-zona {
    width: 100%;
    height: min(240px, 52vw);
    background: #0f172a;
}

.map-wrap .leaflet-container {
    font-family: "Source Sans 3", system-ui, sans-serif;
}

.map-wrap .leaflet-control-attribution {
    max-width: 100%;
    padding: 4px 8px !important;
    font-size: 0.7rem;
    line-height: 1.35;
    white-space: normal;
    color: #cbd5e1 !important;
    background: rgba(15, 23, 42, 0.88) !important;
}

.map-wrap .leaflet-control-attribution a {
    color: #e2e8f0 !important;
}

@media (min-width: 900px) {
    .map-wrap #map-zona {
        height: min(380px, 42vw);
    }
}

.deadline + .section-intro {
    margin-top: 0.75rem;
}

.deadline + .deadline {
    margin-top: 0.65rem;
}

.map-caption {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #cbd5e1;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.65);
}

.content-card h2 + .info-list {
    margin-top: 0.85rem;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #e2e8f0;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.75),
        0 2px 10px rgba(0, 0, 0, 0.45);
}

.info-list li {
    position: relative;
    margin: 0;
    padding: 0.7rem 0.25rem 0.7rem 2.3rem;
    line-height: 1.5;
}

.info-list li:first-child {
    padding-top: 0.45rem;
}

.info-list li:last-child {
    padding-bottom: 0.2rem;
}

.info-list li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: calc(0.7rem + 0.75em);
    width: 1.25rem;
    height: 1.55rem;
    background-color: rgba(248, 250, 252, 0.7);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c-4.4 0-8 3.6-8 8 0 5.4 7 11.4 7.3 11.7.4.3 1 .3 1.4 0C13 21.4 20 15.4 20 10c0-4.4-3.6-8-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c-4.4 0-8 3.6-8 8 0 5.4 7 11.4 7.3 11.7.4.3 1 .3 1.4 0C13 21.4 20 15.4 20 10c0-4.4-3.6-8-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/></svg>") no-repeat center / contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
    transform: translateY(-50%);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.info-list li:first-child::before {
    top: calc(0.45rem + 0.75em);
}

.info-list li:hover::before {
    background-color: rgba(147, 197, 253, 0.95);
    transform: translateY(calc(-50% - 1px));
}

.deadline {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fefce8;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 14px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 1.75rem;
    padding: 0.95rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fafaf9;
    text-decoration: none;
    cursor: pointer;
    background: rgba(8, 10, 14, 0.42);
    backdrop-filter: blur(10px) saturate(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 10px 28px rgba(0, 0, 0, 0.22);
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.55);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 1px 0 rgba(0, 0, 0, 0.3),
        0 14px 36px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}

@media (min-width: 640px) {
    .btn {
        display: flex;
        width: min(100%, 32rem);
        margin-left: auto;
        margin-right: auto;
        padding: 0.9rem 2.25rem;
    }
}

.prose p {
    margin: 0 0 1em;
    color: #e2e8f0;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.9),
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.55);
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose p.prose-callout {
    margin: 0;
    padding: 1.05rem 1.25rem 1.15rem 1.35rem;
    border-radius: 0.85rem;
    font-size: 1.06rem;
    font-weight: 500;
    line-height: 1.62;
    color: #f8fafc;
    background: rgba(8, 10, 14, 0.5);
    backdrop-filter: blur(12px) saturate(1.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 4px 0 0 0 rgba(251, 191, 36, 0.88),
        0 10px 32px rgba(0, 0, 0, 0.28);
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.92),
        0 1px 3px rgba(0, 0, 0, 0.82),
        0 2px 14px rgba(0, 0, 0, 0.45);
}

.prose p.prose-callout .prose-callout-kicker {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fde68a;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.75);
}

.prose p.prose-callout a {
    margin-top: 0.35rem;
    display: inline-block;
}

/* —— Pull-quote (sporná citace z oficiálních dokumentů) —— */
.prose-quote {
    position: relative;
    margin: 1.25rem 0;
    padding: 1.4rem 1.4rem 1.25rem 1.55rem;
    border-radius: 0.85rem;
    color: #fef2f2;
    background: rgba(8, 10, 14, 0.5);
    backdrop-filter: blur(12px) saturate(1.06);
    border: 1px solid rgba(248, 113, 113, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 4px 0 0 0 rgba(248, 113, 113, 0.85),
        0 10px 32px rgba(0, 0, 0, 0.32);
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.92),
        0 1px 3px rgba(0, 0, 0, 0.78),
        0 2px 14px rgba(0, 0, 0, 0.45);
}

.prose-quote::before {
    content: "\201C";
    position: absolute;
    top: -0.6rem;
    left: 0.85rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(252, 165, 165, 0.55);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.prose-quote .prose-quote-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fca5a5;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.75);
}

.prose-quote p {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-style: italic;
    font-size: 1.02rem;
    font-weight: 500;
    font-optical-sizing: auto;
    line-height: 1.55;
    color: #fee2e2;
}

.prose-quote cite {
    display: block;
    margin-top: 0.85rem;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-style: normal;
    font-size: 0.88rem;
    color: #fecaca;
    opacity: 0.9;
}

.prose-quote cite::before {
    content: "— ";
}

/* —— Textové odkazy (slate / sklo, bez zásahu do .btn a Leafletu) —— */
.content-wrap a:not(.btn):not(.leaflet-container a) {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(147, 197, 253, 0.42);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    text-decoration-skip-ink: auto;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.88),
        0 1px 2px rgba(0, 0, 0, 0.72);
    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.content-wrap a:not(.btn):not(.leaflet-container a):hover {
    color: #bfdbfe;
    text-decoration-color: rgba(191, 219, 254, 0.65);
}

.content-wrap a:not(.btn):not(.leaflet-container a):visited {
    color: #a5b4fc;
    text-decoration-color: rgba(165, 180, 252, 0.45);
}

.content-wrap a:not(.btn):not(.leaflet-container a):visited:hover {
    color: #c4d4fd;
    text-decoration-color: rgba(196, 212, 253, 0.55);
}

.content-wrap a:not(.btn):not(.leaflet-container a):focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.75);
    outline-offset: 3px;
    border-radius: 0.2em;
}

/* Leaflet ovládací prvky a odkazy v popupech si řídí styly samy */
.content-wrap .leaflet-container a {
    font-weight: inherit;
    text-shadow: none;
}

/* —— Argumentační karty (swajpovatelné) —— */
.arguments-card {
    overflow: hidden;
}

.arg-carousel {
    position: relative;
    margin: 0 calc(clamp(1.75rem, 4vw, 2.75rem) * -1);
}

.arg-track {
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding: 0.4rem clamp(1.75rem, 4vw, 2.75rem) 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.arg-track::-webkit-scrollbar {
    display: none;
}

.arg-track:focus {
    outline: none;
}

.arg-track:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: -4px;
    border-radius: 0.5rem;
}

.arg-slide {
    flex: 0 0 min(calc(100% - 3rem), 22rem);
    scroll-snap-align: center;
    padding: 1.3rem 1.4rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(8, 10, 14, 0.42);
    backdrop-filter: blur(8px) saturate(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 10px 26px rgba(0, 0, 0, 0.28);
    opacity: 0.6;
    transform: scale(0.97);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.arg-slide.is-active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(8, 10, 14, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.22),
        0 16px 38px rgba(0, 0, 0, 0.36);
}

@media (prefers-reduced-motion: reduce) {
    .arg-slide {
        transition: opacity 0.2s ease;
        transform: none;
    }
    .arg-slide.is-active {
        transform: none;
    }
}

.arg-slide h3 {
    margin: 0 0 0.45rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.18rem;
    font-weight: 600;
    font-optical-sizing: auto;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #f8fafc;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.75),
        0 2px 10px rgba(0, 0, 0, 0.45);
}

.arg-slide p {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.55;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.65);
}

.arg-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: 0.9rem 0 0;
}

.arg-nav {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(8, 10, 14, 0.42);
    color: #f8fafc;
    font-family: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.18s ease;
}

.arg-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
}

.arg-nav:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}

.arg-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.arg-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.arg-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.arg-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.arg-dot.active {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.25);
}

.arg-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}
