/* BADYSFEST — Main CSS
   Dark, bold, authentic Czech rock festival design
   Mobile-first
   ========================================= */

/* ========================
   CUSTOM PROPERTIES
   ======================== */
:root {
    --color-bg: #0d0d0d;
    --color-bg-alt: #111411;
    --color-bg-card: #161a16;
    --color-surface: #1e241e;
    --color-border: #2a322a;

    --color-text: #e8e8e8;
    --color-text-muted: #8a9e8a;
    --color-text-faint: #4a5a4a;

    /* BADYSFEST brand: green primary, amber accent */
    --color-accent: #48B273;
    --color-accent-hover: #5dcc88;
    --color-accent-dark: #36875a;
    --color-accent-glow: rgba(72, 178, 115, 0.22);

    --color-amber: #FFAA00;
    --color-amber-hover: #ffc233;
    --color-amber-dark: #cc8800;
    --color-amber-glow: rgba(255, 170, 0, 0.22);

    --color-white: #ffffff;
    --color-black: #000000;

    --font-display: 'Space Grotesk', 'Arial Black', 'Impact', system-ui, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

    --fs-xs: clamp(0.7rem, 1.8vw, 0.8rem);
    --fs-sm: clamp(0.8rem, 2vw, 0.9rem);
    --fs-base: clamp(0.95rem, 2.2vw, 1rem);
    --fs-md: clamp(1rem, 2.5vw, 1.1rem);
    --fs-lg: clamp(1.1rem, 3vw, 1.3rem);
    --fs-xl: clamp(1.3rem, 4vw, 1.75rem);
    --fs-2xl: clamp(1.6rem, 5vw, 2.25rem);
    --fs-3xl: clamp(2rem, 6vw, 3rem);
    --fs-4xl: clamp(2.5rem, 8vw, 4.5rem);
    --fs-5xl: clamp(3rem, 12vw, 6.5rem);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 8px;

    --transition: 200ms ease;
    --transition-slow: 400ms ease;

    --header-height: 70px;
    --container-max: 1280px;
    --container-pad: clamp(1rem, 5vw, 2.5rem);
}

/* ========================
   FONTS
   Space Grotesk loaded via Google Fonts <link> in layout head
   ======================== */

/* ========================
   RESET & BASE
   ======================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

img, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
    text-transform: uppercase;
}

p { max-width: 70ch; }

ul, ol { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

/* ========================
   SKIP LINK
   ======================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: var(--space-2) var(--space-4);
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    z-index: 9999;
    border-radius: var(--radius);
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
}

/* ========================
   CONTAINER
   ======================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--fs-sm);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    min-height: 44px;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--color-accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    color: var(--color-white);
    border-color: var(--color-text-muted);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-xs);
    min-height: 36px;
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-md);
    min-height: 52px;
}

/* ========================
   HEADER / NAV
   ======================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.97);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.site-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.site-logo {
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    width: auto;
    height: 44px;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.99);
    overflow-y: auto;
    padding: var(--space-8) var(--container-pad);
    z-index: 999;
}

.site-nav.is-open {
    display: block;
}

.site-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.site-nav__link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--fs-xl);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: color var(--transition);
    border-left: 3px solid transparent;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--color-white);
    border-left-color: var(--color-accent);
}

.site-nav__has-dropdown > .site-nav__link::after {
    content: none;
}

.site-nav__dropdown {
    padding-left: var(--space-6);
    margin-top: var(--space-1);
}

.site-nav__dropdown a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

.site-nav__dropdown a:hover {
    color: var(--color-accent);
}

.site-nav__cta {
    margin-top: var(--space-4);
}

@media (min-width: 1024px) {
    .site-header {
        backdrop-filter: blur(10px);
    }

    .nav-toggle { display: none; }

    .site-nav {
        display: flex !important;
        position: static;
        background: none;
        overflow: visible;
        padding: 0;
        flex: 1;
        justify-content: flex-end;
    }

    .site-nav__list {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .site-nav__link {
        font-size: var(--fs-xs);
        padding: var(--space-2);
        border-left: none;
        border-bottom: 2px solid transparent;
        color: var(--color-text-muted);
        white-space: nowrap;
    }

    .site-nav__link:hover,
    .site-nav__link.is-active {
        color: var(--color-white);
        border-bottom-color: var(--color-accent);
        border-left-color: transparent;
    }

    .site-nav__has-dropdown {
        position: relative;
    }

    .site-nav__has-dropdown:hover .site-nav__dropdown {
        display: block;
    }

    .site-nav__dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        padding: var(--space-2) 0;
        z-index: 200;
        margin-top: 0;
    }

    .site-nav__dropdown a {
        padding: var(--space-2) var(--space-4);
        font-size: var(--fs-xs);
    }

    .site-nav__cta {
        margin-top: 0;
        margin-left: var(--space-3);
        flex-shrink: 0;
    }

    .site-nav__cta .btn {
        padding: var(--space-2) var(--space-3);
        white-space: nowrap;
    }

    /* Smaller logo + tighter gaps at desktop widths only — the horizontal
       nav + ticket CTA need the extra room to avoid wrapping when tickets
       are on. */
    .site-header__inner {
        gap: var(--space-3);
    }

    .site-logo img {
        height: 28px;
    }
}

/* ========================
   HERO
   ======================== */
.hero {
    position: relative;
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero__carousel {
    position: absolute;
    inset: 0;
}

.hero__carousel .hero__bg {
    opacity: 0;
    transition: opacity 2s ease;
    will-change: opacity;
}

.hero__carousel .hero__bg.is-active {
    opacity: 1;
}

.hero__bg--default {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0800 50%, #0a0a0a 100%);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(72,178,115,0.04) 40px,
            rgba(72,178,115,0.04) 41px
        );
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.85) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-8) var(--container-pad);
    max-width: 900px;
}

.hero__year {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-3);
}

.hero__title {
    font-size: var(--fs-5xl);
    letter-spacing: -0.03em;
    color: var(--color-white);
    text-shadow: 0 2px 40px rgba(0,0,0,0.8);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-6);
    max-width: 100%;
}

.hero__date {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.hero__live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: var(--space-3);
}

.hero__live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-amber);
    animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 var(--color-amber-glow); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 170, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 170, 0, 0); }
}

.hero__ticket-info {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto var(--space-6);
}

.lineup-poster-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.lineup-poster-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.lineup-poster-row__social {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.lineup-poster-row__social-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-faint);
}

.lineup-poster-row__link {
    display: block;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    border: 1px solid var(--color-border);
    transition: transform var(--transition);
}

.lineup-poster-row__link:hover,
.lineup-poster-row__link:focus-visible {
    transform: translateY(-3px);
}

.lineup-poster-row__link img {
    display: block;
    width: 160px;
    max-width: 40vw;
    height: auto;
}

.lineup-poster-row__link--lg img {
    width: 220px;
}

.lineup-poster-row__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    flex: 1 1 260px;
}

.lineup-poster-row__label {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.lineup-poster-row__meta {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    margin: 0;
}

.lineup-poster-row__address {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.poster-share-note {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.poster-share-note strong {
    color: var(--color-white);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: var(--fs-xs);
}

.countdown--compact {
    margin: 0;
    justify-content: flex-start;
}

.countdown--compact .countdown__item {
    min-width: 48px;
    padding: var(--space-2);
}

.countdown--compact .countdown__value {
    font-size: var(--fs-lg);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-6);
}

.countdown--done {
    opacity: 0.6;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: var(--space-2) var(--space-1);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
}

.countdown__value {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown__label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-1);
}

.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-text-faint);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================
   SECTIONS
   ======================== */
.section {
    padding: var(--space-16) 0;
}

.section--dark {
    background: var(--color-bg-alt);
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.section-title {
    font-size: var(--fs-3xl);
    color: var(--color-white);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin-top: var(--space-3);
}

.section-header__more {
    font-size: var(--fs-sm);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 900;
    text-decoration: none;
    color: var(--color-accent);
}

.section-header__more:hover {
    color: var(--color-accent-hover);
}

.section-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-10);
    justify-content: center;
}

/* ========================
   LINEUP NOTICE
   ======================== */
.lineup-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-amber);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.lineup-notice__icon { flex-shrink: 0; color: var(--color-amber); line-height: 1; font-size: var(--fs-lg); }

/* ========================
   LINEUP GRID
   ======================== */
.lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: var(--space-4);
}

.lineup-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}

.lineup-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
}

.lineup-card__img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.lineup-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.lineup-card:hover .lineup-card__img {
    transform: scale(1.04);
}

.lineup-card__info {
    padding: var(--space-4);
}

.lineup-card__time {
    display: inline-block;
    font-size: var(--fs-xs);
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-amber);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.lineup-card__name {
    font-size: var(--fs-md);
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: var(--space-1);
}

.lineup-card__link {
    color: var(--color-white);
    text-decoration: none;
}

.lineup-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.lineup-card__link:hover {
    color: var(--color-accent);
}

.lineup-card__country {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-weight: 700;
}

.lineup-card--now {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 1px var(--color-amber);
}

.lineup-card__now-badge {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-amber);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: var(--space-2);
}

/* ========================
   NEWS FEATURED
   ======================== */
.news-featured {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--space-8);
}

.news-featured__img-link {
    display: block;
    aspect-ratio: 5/3;
    overflow: hidden;
}

.news-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-featured__img-link:hover .news-featured__img {
    transform: scale(1.04);
}

.news-featured__body {
    padding: var(--space-6) var(--space-8) var(--space-6) 0;
}

.news-featured__title {
    font-size: var(--fs-2xl);
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.news-featured__title a {
    color: var(--color-white);
    text-decoration: none;
}

.news-featured__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.news-featured__title a:hover {
    color: var(--color-accent);
}

.news-featured__excerpt {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    text-transform: none;
    margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured__body {
        padding: 0 var(--space-4) var(--space-4);
    }
}

/* ========================
   NEWS GRID
   ======================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-6);
}

.news-grid:has(.news-card:only-child) {
    grid-template-columns: minmax(0, 420px);
}

.news-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), border-color var(--transition);
}

.news-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.news-card__img-link {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.news-card__img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card__img {
    transform: scale(1.04);
}

.news-card__body {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__date {
    display: inline-block;
    font-size: var(--fs-xs);
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-amber);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.news-card__title {
    font-size: var(--fs-md);
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.news-card__title a {
    color: var(--color-white);
    text-decoration: none;
}

.news-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.news-card__title a:hover { color: var(--color-accent); }

.news-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    text-transform: none;
    flex: 1;
}

.news-card__cta {
    display: inline-block;
    margin-top: var(--space-4);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.news-card:hover .news-card__cta {
    text-decoration: underline;
}

/* ========================
   INFO TEASERS
   ======================== */
.info-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: var(--space-4);
}

.info-teaser {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.info-teaser:hover {
    border-color: var(--color-accent);
    background: var(--color-surface);
    transform: translateY(-2px);
}

.info-teaser__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    color: var(--color-accent);
}

.info-teaser__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.info-teaser__text strong {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    color: var(--color-white);
    font-weight: 900;
}

.info-teaser__text span {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

/* ========================
   GALLERY PREVIEW (used on /galerie listing)
   ======================== */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: var(--space-4);
}

.gallery-preview-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    display: block;
    text-decoration: none;
    background: var(--color-surface);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-preview-item:hover img {
    transform: scale(1.06);
}

.gallery-preview-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-preview-item__title {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-white);
}

.gallery-preview-item__count {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.gallery-preview-item__placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}

/* ========================
   GALLERY MOSAIC (used on the homepage)
   ======================== */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    grid-auto-flow: dense;
    gap: var(--space-3);
}

.gallery-mosaic__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    display: block;
    background: var(--color-surface);
}

.gallery-mosaic__item--lg {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-mosaic__item:hover img {
    transform: scale(1.06);
}

.gallery-mosaic__more {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-align: center;
    padding: var(--space-2);
    transition: border-color var(--transition), color var(--transition);
}

.gallery-mosaic__more:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

@media (max-width: 600px) {
    .gallery-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-mosaic__item--lg {
        grid-column: span 2;
    }
}

/* ========================
   PARTNERS
   ======================== */
.partners-cta {
    margin-top: var(--space-10);
    padding: var(--space-8);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.partners-cta__text {
    flex: 1 1 320px;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.partners-cta__text strong {
    display: block;
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--fs-lg);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-2);
}

.partners-cta__contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.partners-cta__person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.partners-cta__person-name {
    font-size: var(--fs-sm);
    color: var(--color-white);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    align-items: center;
    justify-content: center;
}

.partner-item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(0.7);
    transition: filter var(--transition), transform var(--transition);
}

.partner-item:hover img {
    filter: none;
}

/* Homepage partner grid: logos shown bigger than the compact default. */
.partners-section .partner-item img {
    max-height: 140px;
}

.partners-section .partner-item:hover img {
    transform: scale(1.05);
}

/* Dedicated /partneri page: bigger, full-color logos (no hover needed) */
.partners-page-group .partner-item img {
    max-height: 110px;
    filter: none;
}

.partners-page-group .partner-item--main img {
    max-height: 140px;
}

.partners-page-group {
    margin-bottom: var(--space-12);
}

.partners-page-group .partners-grid {
    gap: var(--space-10);
}

.partner-item span {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* ========================
   MAP
   ======================== */
.map-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .map-wrapper {
        grid-template-columns: 280px 1fr;
        align-items: center;
    }
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.map-location {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-white);
    max-width: none;
}

.map-location svg {
    flex-shrink: 0;
    margin-top: 0.2em;
}

.map-location__name {
    display: block;
}

.map-location__sub {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-muted);
}

.map-coords {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* Generic responsive 16:9 iframe wrapper — also used for band YouTube embeds. */
.map-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.map-embed {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    border: 0;
}

.map-leaflet {
    position: relative;
    z-index: 0;
    height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

@media (max-width: 767px) {
    .map-leaflet {
        height: 280px;
    }
}

/* [mapa] shortcode dropped into a rich-text body */
.shortcode-map {
    margin: var(--space-6) 0;
    max-width: 720px;
}

/* [plakat] / [poster] shortcode dropped into a rich-text body */
.shortcode-poster {
    margin: var(--space-6) 0;
}

.festival-map-marker span {
    display: block;
    width: 26px;
    height: 26px;
    background: var(--color-accent);
    border: 2px solid var(--color-white);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--color-bg-card);
    color: var(--color-white);
}

.leaflet-popup-content {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    margin: var(--space-3);
}

.leaflet-popup-close-button {
    color: var(--color-text-muted) !important;
}

.leaflet-control-zoom a {
    background: var(--color-bg-card) !important;
    color: var(--color-white) !important;
    border-color: var(--color-border) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--color-surface) !important;
}

.leaflet-control-attribution {
    background: rgba(0,0,0,0.55) !important;
    color: var(--color-text-muted) !important;
}

.leaflet-control-attribution a {
    color: var(--color-text-muted) !important;
}

/* ========================
   SCHEDULE PAGE
   ======================== */
.schedule-section {
    padding: var(--space-12) 0;
}

.schedule-day {
    margin-bottom: var(--space-10);
}

.schedule-day__header {
    font-size: var(--fs-xl);
    color: var(--color-accent);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-accent);
    text-transform: uppercase;
}

.schedule-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    transition: background var(--transition);
}

.schedule-item:hover {
    background: var(--color-bg-card);
}

.schedule-item__time {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 900;
    color: var(--color-amber);
}

.schedule-item__band {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-item__band a {
    color: var(--color-white);
    text-decoration: none;
}

.schedule-item__band a:hover { color: var(--color-accent); }

.schedule-item__stage {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-item__country {
    font-size: var(--fs-xs);
    color: var(--color-text-faint);
    margin-left: var(--space-2);
}

/* ========================
   LINEUP PAGE
   ======================== */
.lineup-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: var(--space-4);
}

.page-hero {
    padding: var(--space-16) 0 var(--space-12);
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.archive-hero--with-poster {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    gap: var(--space-10);
}

.archive-hero__text {
    flex: 1 1 320px;
}

.archive-hero__poster {
    display: block;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    border: 1px solid var(--color-border);
    transition: transform var(--transition);
}

.archive-hero__poster:hover,
.archive-hero__poster:focus-visible {
    transform: translateY(-4px);
}

.archive-hero__poster img {
    display: block;
    width: 220px;
    max-width: 60vw;
    height: auto;
}

.page-hero__title {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-4);
}

.page-hero__subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    max-width: 60ch;
}

/* ========================
   BAND DETAIL
   ======================== */
.band-hero {
    position: relative;
    padding: var(--space-16) 0;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.band-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .band-hero__inner {
        grid-template-columns: 320px 1fr;
        align-items: center;
    }
}

.band-hero__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.band-hero__title {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-3);
}

.band-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.band-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.band-social-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.band-social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: all var(--transition);
    text-transform: uppercase;
}

.band-social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.band-bio {
    padding: var(--space-12) 0;
}

.band-spotify {
    padding: 0 0 var(--space-12);
}

.band-bio p {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.band-appearances {
    padding: var(--space-12) 0;
    background: var(--color-bg-alt);
}

.appearances-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 220px));
    gap: var(--space-4);
}

.appearance-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.appearance-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.appearance-card__year {
    font-size: var(--fs-2xl);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
    border-bottom: 1px dashed var(--color-border);
}

.appearance-card__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.appearance-card__stage {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.appearance-card__time {
    font-size: var(--fs-sm);
    color: var(--color-amber);
    font-weight: 700;
    font-family: var(--font-display);
}

.appearance-card__link {
    margin-top: auto;
    padding-top: var(--space-3);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-faint);
    transition: color var(--transition);
}

.appearance-card:hover .appearance-card__link {
    color: var(--color-accent);
}

/* ========================
   NEWS
   ======================== */
.article-hero {
    padding: var(--space-16) 0 var(--space-8);
}

.article-hero__img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--space-8);
}

.article-title {
    font-size: var(--fs-3xl);
    text-transform: none;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.article-meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.article-meta time, .article-meta span {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    font-weight: 700;
}

.article-body {
    max-width: 720px;
    padding-bottom: var(--space-12);
}

.article-body h2, .article-body h3 {
    font-size: var(--fs-xl);
    margin: var(--space-8) 0 var(--space-4);
    text-transform: none;
}

.article-body p {
    font-size: var(--fs-md);
    line-height: 1.8;
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.article-body a {
    color: var(--color-accent);
}

.article-body ul, .article-body ol {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.article-body li {
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.article-body blockquote,
.info-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: var(--space-6);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

/* ========================
   GALLERY
   ======================== */
.gallery-grid {
    columns: 2;
    column-gap: var(--space-3);
}

@media (min-width: 640px) {
    .gallery-grid { columns: 3; }
}

@media (min-width: 1024px) {
    .gallery-grid { columns: 4; }
}

.gallery-img-item {
    display: block;
    break-inside: avoid;
    margin-bottom: var(--space-3);
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    /* Placeholder tint while the (lazy) photo is still loading — the box
       itself is already the right size from the img width/height attrs. */
    background: var(--color-surface);
}

.gallery-img-item img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-img-item:hover img {
    transform: scale(1.04);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__inner {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox__caption {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    margin-top: var(--space-3);
    text-align: center;
}

.lightbox__close {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.lightbox__close:hover { color: var(--color-accent); }

.lightbox__prev, .lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 2rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.lightbox__prev { left: var(--space-4); }
.lightbox__next { right: var(--space-4); }

.lightbox__prev:hover, .lightbox__next:hover { color: var(--color-accent); }

/* ========================
   ARCHIVE
   ======================== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--space-6);
}

.archive-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
    text-decoration: none;
    display: block;
}

.archive-card:hover {
    border-color: var(--color-accent);
}

.archive-card__poster {
    display: block;
    width: 100%;
    height: auto;
}

.archive-card__poster-placeholder {
    aspect-ratio: 3/4;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-card__body {
    padding: var(--space-6);
}

.archive-card__year {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--fs-3xl);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.archive-card__title {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: var(--fs-md);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.archive-card__meta {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.archive-card__media {
    position: relative;
}

/* Year that didn't take place (covid) — greyed-out poster with a label. */
.archive-card--cancelled .archive-card__poster,
.archive-card--cancelled .archive-card__poster-placeholder,
.archive-hero__poster--cancelled img {
    filter: grayscale(1) brightness(0.55);
}

.archive-card--cancelled .archive-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(40, 40, 40, 0.35);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.archive-card--cancelled .archive-card__year {
    color: var(--color-text-muted);
}

.archive-card__cancelled-label {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%) rotate(-8deg);
    padding: var(--space-2) var(--space-4);
    border: 2px solid var(--color-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--fs-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.archive-cancelled-notice {
    margin-top: var(--space-6);
    max-width: 60ch;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-text-muted);
    border-radius: var(--radius);
    background: var(--color-surface);
    padding: var(--space-6);
}

.archive-cancelled-notice__title {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.archive-cancelled-notice p {
    margin: 0;
    color: var(--color-text-muted);
}

/* ========================
   INFO PAGES
   ======================== */
.info-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-12) 0;
}

@media (min-width: 768px) {
    .info-layout {
        grid-template-columns: 240px 1fr;
    }
}

/* On mobile, .info-sidebar is a <details> so it opens collapsed by default —
   otherwise the full list of info pages pushes the page's actual content
   below the fold, requiring a scroll before a visitor sees anything. */
.info-sidebar {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    margin-bottom: var(--space-6);
}

.info-sidebar__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-white);
    cursor: pointer;
    list-style: none;
}

.info-sidebar__summary::-webkit-details-marker {
    display: none;
}

.info-sidebar__summary::after {
    content: '\25BE';
    flex-shrink: 0;
    transition: transform var(--transition);
}

.info-sidebar[open] .info-sidebar__summary::after {
    transform: rotate(180deg);
}

.info-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: 0 0 var(--space-2);
}

@media (min-width: 768px) {
    .info-sidebar {
        border: none;
        background: none;
        margin-bottom: 0;
        position: sticky;
        top: calc(var(--header-height) + var(--space-6));
        align-self: start;
        max-height: calc(100vh - var(--header-height) - var(--space-12));
        overflow-y: auto;
    }

    /* Desktop always shows the full sidebar (main.js keeps [open] set at this
       width), so the mobile disclosure toggle is redundant here. */
    .info-sidebar__summary {
        display: none;
    }
}

.info-sidebar__link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--color-text-muted);
    border-left: 3px solid transparent;
    transition: all var(--transition);
}

.info-sidebar__link:hover, .info-sidebar__link.is-active {
    color: var(--color-white);
    border-left-color: var(--color-accent);
}

.info-content h1 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-6);
}

.info-attachments {
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.info-attachments__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-3);
}

.info-attachments__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.info-attachments__list a {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--fs-sm);
}

.info-attachments__list a:hover {
    color: var(--color-accent);
}

.info-attachments__size {
    color: var(--color-text-faint);
    font-size: var(--fs-xs);
}

.info-content h2 {
    font-size: var(--fs-xl);
    margin: var(--space-8) 0 var(--space-4);
}

.info-content p {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.info-content ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.info-content li {
    margin-bottom: var(--space-2);
}

/* ========================
   SEARCH
   ======================== */
.search-section {
    padding: var(--space-12) 0;
}

.search-form {
    display: flex;
    gap: var(--space-3);
    max-width: 600px;
    margin-bottom: var(--space-10);
}

.search-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: var(--fs-md);
    min-height: 44px;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.search-result {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color var(--transition);
}

.search-result:hover {
    border-color: var(--color-accent);
}

.search-result__type {
    flex-shrink: 0;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    writing-mode: horizontal-tb;
    width: 60px;
    display: flex;
    align-items: flex-start;
    padding-top: var(--space-1);
}

.search-result__body h3 {
    font-size: var(--fs-md);
    color: var(--color-white);
    margin-bottom: var(--space-1);
    text-transform: none;
}

.search-result__body p {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

/* ========================
   PAGINATION
   ======================== */
.pagination {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-10);
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--fs-sm);
    transition: all var(--transition);
}

.pagination__link:hover {
    border-color: var(--color-accent);
    color: var(--color-white);
}

.pagination__link--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
    background: #080808;
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 0;
}

.site-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
}

@media (min-width: 640px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: 220px 1fr auto auto;
        align-items: start;
    }
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.site-footer__contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.site-footer__contact-name {
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.site-footer__contact a {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-decoration: none;
}

.site-footer__contact a:hover {
    color: var(--color-accent);
}

.site-footer__tagline {
    font-size: var(--fs-sm);
    color: var(--color-text-faint);
    margin-top: var(--space-3);
    max-width: 100%;
}

.site-footer__heading {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-faint);
    margin-bottom: var(--space-3);
}

.site-footer__nav ul {
    display: block;
    column-count: 2;
    column-gap: var(--space-6);
}

.site-footer__nav ul li {
    break-inside: avoid;
    margin-bottom: var(--space-2);
}

@media (min-width: 480px) {
    .site-footer__nav ul {
        column-count: 3;
    }
}

.site-footer__social-col {
    display: flex;
    flex-direction: column;
}

.site-footer__link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-text-faint);
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
}

.site-footer__link-btn:hover { color: var(--color-text-muted); }

.site-footer__nav a {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--transition);
}

.site-footer__nav a:hover { color: var(--color-accent); }

.site-footer__social {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.site-footer__bottom {
    margin-top: var(--space-12);
    border-top: 1px solid var(--color-border);
}

.site-footer__bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-4) var(--container-pad);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.site-footer__copyright {
    font-size: var(--fs-xs);
    color: var(--color-text-faint);
}

.site-footer__legal {
    font-size: var(--fs-xs);
    color: var(--color-text-faint);
    display: flex;
    gap: var(--space-4);
}

.site-footer__legal a {
    color: var(--color-text-faint);
    text-decoration: none;
}

.site-footer__legal a:hover { color: var(--color-text-muted); }

/* ========================
   COOKIE BANNER
   ======================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4);
}

.cookie-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.cookie-banner__main {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: space-between;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin: 0;
    max-width: 70ch;
}

.cookie-banner__panel {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cookie-banner__panel[hidden] {
    display: none;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    cursor: pointer;
}

.cookie-toggle input {
    margin-top: 0.2em;
    flex-shrink: 0;
}

.cookie-toggle strong {
    color: var(--color-text);
}

.embed-gate__placeholder {
    background: var(--color-bg-card);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
}

.embed-gate__placeholder p {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-3);
}

/* ========================
   ACCESSIBILITY
   ======================== */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================
   UTILITIES
   ======================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb__sep { color: var(--color-text-faint); }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--draft { background: var(--color-surface); color: var(--color-text-muted); }
.badge--published { background: #1a3320; color: #4ade80; }

.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    color: var(--color-text-muted);
}

.empty-state__icon { font-size: 3rem; margin-bottom: var(--space-4); }
.empty-state__title { font-size: var(--fs-xl); margin-bottom: var(--space-3); color: var(--color-text); }

/* ========================
   ERROR PAGES (404/403/410/429/500/503)
   full-screen, chrome-free — no nav, no footer (see layouts/error.php)
   ======================== */
.error-body {
    margin: 0;
}

.error-page {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.error-page__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: grayscale(40%) brightness(0.5) contrast(1.15) saturate(0.8);
}

.error-page__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.65) 50%,
        rgba(0,0,0,0.9) 100%
    );
    z-index: 1;
}

.error-page__inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    text-align: center;
    margin: 0 auto;
    padding: var(--space-8) var(--container-pad);
}

.error-page__code {
    font-family: var(--font-display);
    font-size: var(--fs-5xl);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-accent);
}

.error-page__code--warn { color: var(--color-amber); }
.error-page__code--danger { color: #e57373; }

/* The random "hláška" — large, bold, uppercase, directly under the code */
.error-page__hlaska {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-white);
    margin: var(--space-4) 0;
    line-height: 1.25;
}

/* "Whose fault" clarifier — a calm, readable line under the hláška */
.error-page__fault {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 46ch;
    margin: 0 auto var(--space-8);
}

.error-page__search {
    max-width: 480px;
    margin: 0 auto var(--space-8);
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}
