/* vstrbe.sk – hand-written CSS, no build step. Design tokens first. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url("../fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-display: swap;
    font-weight: 300 700;
    src: url("../fonts/cormorant-garamond-latin-ext-wght-italic.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-display: swap;
    font-weight: 300 700;
    src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    --paper: #f7f5f0;
    --surface: #ffffff;
    --stone: #e5e0d6;
    --stone-soft: #efebe3;
    --ink: #1e2a2b;
    --ink-muted: #5a6665;
    --pine: #1f4d3f;
    --pine-dark: #163a2f;
    --lake: #2f6f8f;
    --accent: #b86b2f;
    --accent-strong: #9c5522;

    --font-display: "Cormorant Garamond", "Georgia", serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
    --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
    --step-4: clamp(2.8rem, 2rem + 4vw, 5rem);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgb(30 42 43 / 0.06), 0 8px 24px -12px rgb(30 42 43 / 0.18);
    --shadow-lift: 0 2px 4px rgb(30 42 43 / 0.06), 0 18px 40px -16px rgb(30 42 43 / 0.28);

    --gutter: clamp(1rem, 4vw, 2rem);
    --container: 1200px;
    --header-h: 72px;
    --bottom-nav-h: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bottom-nav-h);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }
a { color: var(--lake); text-underline-offset: 0.18em; }
a:hover { color: var(--pine); }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; border-radius: 4px; }

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -100px;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--pine);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1rem;
    background: var(--pine-dark);
    color: #e9efe9;
    font-size: var(--step--1);
    padding: 0.35rem var(--gutter);
}
.notice__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.notice__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.2rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.notice__btn .icon { width: 1em; height: 1em; }
.notice__btn:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.notice__btn--edit { background: var(--accent-strong); border-color: var(--accent-strong); }
.notice__btn--edit:hover { background: #864818; }

/* ---------- Logo ---------- */
.logo {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo__mark { color: var(--accent); font-style: italic; font-weight: 700; }

/* ---------- Buttons, chips, links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 44px;
    padding: 0.6rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--pine); color: #fff; }
.btn--primary:hover { background: var(--pine-dark); color: #fff; }
.btn--accent { background: var(--accent-strong); color: #fff; }
.btn--accent:hover { background: #864818; color: #fff; }
.btn--ghost { border-color: var(--stone); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 52px; padding: 0.8rem 1.6rem; font-size: 1rem; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--stone);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.75);
    border: 1px solid rgb(30 42 43 / 0.08);
    backdrop-filter: blur(6px);
    color: var(--ink);
    font-size: var(--step--1);
    font-weight: 500;
    text-decoration: none;
}
.chip:hover { background: #fff; color: var(--pine); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--pine);
    text-decoration: none;
    white-space: nowrap;
}
.link-arrow .icon { transition: transform 0.15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.kicker {
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-strong);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    font-size: var(--step--1);
    color: var(--ink-muted);
    font-weight: 500;
}
.meta span { display: inline-flex; align-items: center; gap: 0.35em; }

/* ---------- Header & navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(247 245 240 / 0.9);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid rgb(30 42 43 / 0.07);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.main-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.main-nav__list { display: flex; gap: 0.15rem; }
.main-nav__item { position: relative; display: flex; align-items: center; }
.main-nav__link {
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.has-dropdown > .main-nav__link { padding-right: 0.15rem; }
.main-nav__link:hover { color: var(--pine); background: var(--stone-soft); }
.main-nav__link[aria-current="page"] { color: var(--pine); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.main-nav__caret {
    display: inline-grid; place-items: center;
    width: 22px; height: 30px; padding: 0;
    border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--ink-muted); cursor: pointer;
}
.main-nav__caret .icon { width: 15px; height: 15px; transition: transform 0.15s; }
.main-nav__caret:hover { color: var(--pine); background: var(--stone-soft); }
.main-nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.avatar {
    display: inline-grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 999px; border: 0; padding: 0;
    background: var(--pine); color: #fff; text-decoration: none; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
    transition: background 0.15s, box-shadow 0.15s;
}
.avatar:hover, .avatar:focus-visible, .avatar[aria-expanded="true"] { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px rgb(31 77 63 / 0.2); }

/* Dropdowns: category links under menu items and the account menu (JS toggles .is-open, hover opens on desktop) */
.account-menu { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 70;
    min-width: 230px;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid rgb(30 42 43 / 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
}
/* Invisible bridge so the pointer can travel from the item into the panel */
.dropdown::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; }
.dropdown--end { left: auto; right: 0; }
.is-open > .dropdown { visibility: visible; opacity: 1; transform: none; transition: opacity 0.15s, transform 0.15s; }
.is-open > .main-nav__caret .icon { transform: rotate(180deg); }
.dropdown__list { display: grid; }
.dropdown__link {
    display: flex; align-items: center; gap: 0.6rem; width: 100%;
    padding: 0.5rem 0.7rem;
    border: 0; border-radius: var(--radius-sm);
    background: none; color: var(--ink);
    font: inherit; font-size: 0.95rem; text-align: left; text-decoration: none; cursor: pointer;
}
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--stone-soft); color: var(--pine); }
.dropdown__link .icon { width: 18px; height: 18px; color: var(--pine); }
.dropdown__count { margin-left: auto; padding-left: 1rem; font-size: 0.8rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dropdown__all {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    margin-top: 0.3rem; padding: 0.6rem 0.7rem 0.4rem;
    border-top: 1px solid var(--stone);
    font-size: 0.9rem; font-weight: 600; color: var(--pine); text-decoration: none;
}
.dropdown__all .icon { width: 16px; height: 16px; }
.dropdown__all:hover { color: var(--accent); }
.dropdown__head { display: grid; gap: 0.1rem; margin: 0 0 0.3rem; padding: 0.5rem 0.7rem 0.6rem; border-bottom: 1px solid var(--stone); font-size: 0.95rem; }
.dropdown__head span { font-size: 0.8rem; color: var(--ink-muted); overflow-wrap: anywhere; }

@media (min-width: 1101px) and (hover: hover) {
    .has-dropdown:hover > .dropdown { visibility: visible; opacity: 1; transform: none; transition: opacity 0.15s 0.08s, transform 0.15s 0.08s; }
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1100px) {
    /* backdrop-filter would make the header the containing block of the fixed drawer */
    .site-header { backdrop-filter: none; background: var(--paper); }
    .nav-toggle, .site-header .logo { position: relative; z-index: 60; }
    .nav-toggle { display: inline-grid; }
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 55;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2rem;
        margin: 0;
        padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
        background: var(--paper);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
    }
    .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s; }
    .main-nav__list { flex-direction: column; gap: 0; }
    .main-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--stone); }
    .main-nav__link { flex: 1; font-size: 2rem; padding: 0.55rem 0; border-radius: 0; }
    .main-nav__link:hover { background: none; }
    .main-nav__caret { width: 44px; height: 44px; }
    .main-nav__caret .icon { width: 22px; height: 22px; }
    /* In the drawer the panels open in place under their item */
    .dropdown { position: static; display: none; min-width: 0; width: 100%; margin-bottom: 0.75rem; box-shadow: none; transform: none; visibility: visible; opacity: 1; transition: none; }
    .is-open > .dropdown { display: block; }
    .main-nav__item .dropdown { padding: 0.25rem 0 0.25rem 0.75rem; border: 0; border-left: 2px solid var(--stone); border-radius: 0; background: none; }
    .main-nav__actions { flex-direction: column; align-items: stretch; }
    .account-menu { display: grid; justify-items: center; }
    .account-menu .dropdown { width: min(100%, 360px); margin-top: 0.75rem; }
    .main-nav__actions .btn { justify-content: center; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    min-height: min(78vh, 680px);
    display: flex;
    align-items: flex-start;
    padding-block: clamp(3rem, 8vw, 6.5rem) clamp(9rem, 22vw, 15rem);
    overflow: hidden;
}
.hero__art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__art [data-depth] { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.hero__content { display: grid; gap: 1.25rem; justify-items: start; }
.hero__title { font-size: var(--step-4); font-weight: 600; max-width: none; min-height: 1.2em; }
.hero__title em { font-style: italic; color: var(--pine); }
/* Retyped verb: blinking caret after it while the effect runs */
.hero__verb.is-typing::after { content: ""; display: inline-block; width: 0.06em; height: 0.85em; margin-left: 0.04em; vertical-align: -0.05em; background: var(--accent-strong); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__lead { max-width: 46ch; font-size: var(--step-1); line-height: 1.45; color: #34413f; }
.hero__chips { margin-top: 0.25rem; }

.search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(100%, 620px);
    margin-top: 0.5rem;
    padding: 0.4rem 0.4rem 0.4rem 1.1rem;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-lift);
}
.search__icon { color: var(--ink-muted); }
.search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--ink);
    padding: 0.55rem 0;
}
.search__input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--lake); outline-offset: 2px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--stone-soft); }
.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.section__head--stack { flex-direction: column; align-items: flex-start; }
.section__title { font-size: var(--step-3); }
.section__lead { color: var(--ink-muted); max-width: 60ch; font-size: var(--step-0); }
.section__tools { display: flex; align-items: center; gap: 0.5rem; }
.section__tools .link-arrow { margin-left: 0.75rem; }

/* ---------- Placeholder media (until real photos exist) ---------- */
.ph {
    position: relative;
    display: grid;
    place-items: center;
    color: rgb(255 255 255 / 0.85);
    background:
        radial-gradient(120% 90% at 85% 0%, rgb(255 255 255 / 0.22), transparent 60%),
        linear-gradient(160deg, var(--ph-a), var(--ph-b));
}
.ph--pine { --ph-a: #3d7464; --ph-b: #1f4d3f; }
.ph--lake { --ph-a: #5d93ab; --ph-b: #2f6f8f; }
.ph--amber { --ph-a: #d9a36e; --ph-b: #a95f27; }
.ph--stone { --ph-a: #c9c1b1; --ph-b: #8f8676; }
.ph--granite { --ph-a: #5d6b6a; --ph-b: #2b3837; }
.ph__icon {
    width: 46px; height: 46px;
    fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
    opacity: 0.7;
}

/* ---------- Cards ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card__media { aspect-ratio: 16 / 10; }
.card__body { display: grid; gap: 0.5rem; padding: 1.1rem 1.25rem 1.35rem; }
.card__title { font-size: var(--step-1); }
.card__text { color: var(--ink-muted); font-size: 0.95rem; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:hover { color: var(--pine); }
.card:focus-within { outline: 3px solid var(--lake); outline-offset: 2px; }
.card__link:focus-visible { outline: none; }

.date-badge {
    position: absolute;
    left: 0.9rem; bottom: 0.9rem;
    display: grid;
    justify-items: center;
    min-width: 3.4rem;
    padding: 0.4rem 0.5rem 0.35rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    line-height: 1;
}
.date-badge__day { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; }
.date-badge__month { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong); margin-top: 0.15rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge--featured { background: var(--surface); color: var(--accent-strong); }
.badge--featured .icon { width: 0.95em; height: 0.95em; fill: currentColor; }

/* ---------- Horizontal rail ---------- */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.25rem 0.25rem 1rem;
    margin: -0.25rem -0.25rem 0;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); } }

/* ---------- Discover tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.tile {
    display: grid;
    align-content: space-between;
    gap: 2.5rem;
    min-height: 170px;
    padding: 1.25rem;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    place-items: start;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tile:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile__icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile__label { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.tile__count {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.2);
}

/* ---------- Map teaser ---------- */
.map-teaser { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.map-teaser__text { display: grid; gap: 1rem; justify-items: start; }
.map-teaser__art { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.map-teaser__art svg { width: 100%; height: auto; transition: transform 0.4s; }
.map-teaser__art:hover svg { transform: scale(1.02); }
@media (min-width: 860px) { .map-teaser { grid-template-columns: 5fr 7fr; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--articles { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--articles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
    .grid--articles { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
    .grid--articles > li:first-child { grid-row: span 2; }
    .card--lead .card__media { aspect-ratio: auto; flex: 1; min-height: 260px; }
    .card--lead .card__title { font-size: var(--step-2); }
    .grid--articles > li:not(:first-child) .card { flex-direction: row; }
    .grid--articles > li:not(:first-child) .card__media { aspect-ratio: auto; width: 38%; flex: none; }
}

/* ---------- Call to action ---------- */
.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding: clamp(1.75rem, 5vw, 3.5rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(80% 140% at 100% 0%, rgb(255 255 255 / 0.12), transparent 60%),
        var(--pine);
    color: #e6eee9;
}
.cta__title { font-size: var(--step-3); color: #fff; margin-bottom: 0.5rem; }
.cta p { max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d1cf; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.95rem; }
.site-footer a { color: #e7ecea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; }
.site-footer .logo__mark { color: #e0a06a; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 2.5rem; }
.site-footer__brand { display: grid; gap: 1rem; align-content: start; max-width: 34ch; }
.site-footer__title {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8fa09d;
    margin-bottom: 0.9rem;
}
.site-footer ul { display: grid; gap: 0.45rem; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    font-size: var(--step--1);
    color: #8fa09d;
}

/* ---------- Mobile bottom navigation ---------- */
.bottom-nav { display: none; }
@media (max-width: 767px) {
    :root { --bottom-nav-h: 64px; --header-h: 62px; }
    .logo { font-size: 1.6rem; }
    .bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgb(255 255 255 / 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--stone);
    }
    .bottom-nav a {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 0.2rem;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--ink-muted);
        text-decoration: none;
    }
    .bottom-nav a:hover, .bottom-nav a:focus-visible { color: var(--pine); }
    .bottom-nav .icon { width: 22px; height: 22px; }
    .bottom-nav__add .icon {
        width: 40px; height: 40px;
        padding: 9px;
        margin-top: -14px;
        border-radius: 50%;
        background: var(--accent-strong);
        color: #fff;
        box-shadow: var(--shadow-lift);
    }
    .section__tools .icon-btn { display: none; }
    .section__tools .link-arrow { margin-left: 0; }
    .search .btn { padding-inline: 0.9rem; }
}

/* ---------- Error page ---------- */
.error-page { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.error-page .container { display: grid; justify-items: center; gap: 1rem; }
.error-page__icon { width: 64px; height: 64px; fill: none; stroke: var(--pine); stroke-width: 1.4; stroke-linejoin: round; }

/* ---------- Listings ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem); background: linear-gradient(180deg, #e3ece9 0%, var(--paper) 100%); }
.page-head .container { display: grid; gap: 0.6rem; justify-items: start; }
.page-head__title { font-size: var(--step-4); font-weight: 600; }
.section--tight { padding-block: 1.5rem clamp(3rem, 6vw, 4.5rem); }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.filter-bar__fields { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-bar__fields .field__input { width: auto; min-height: 44px; min-width: 10rem; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__count { font-size: 0.78em; opacity: 0.65; }
.chips--scroll { margin-bottom: 1.25rem; }
.card__category { color: var(--accent-strong); font-weight: 700; }
button.chip { font: inherit; cursor: pointer; }
.result-count { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.empty-state { display: grid; justify-items: center; gap: 1rem; padding: 3rem 1rem; text-align: center; border: 1px dashed var(--stone); border-radius: var(--radius); color: var(--ink-muted); }
.month-title { font-size: var(--step-2); margin: 2rem 0 1rem; text-transform: capitalize; }
.month-title:first-of-type { margin-top: 0.5rem; }
.pager { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; margin-top: 2rem; }
.pager__link { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--stone); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pager__link.is-active, .pager__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.card__media { position: relative; overflow: hidden; }
.card__media .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media .badge--featured { position: absolute; top: 0.75rem; right: 0.75rem; }
.poster-fill { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(20px) saturate(1.15); opacity: 0.9; }
.poster-fit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card__media .date-badge, .card__media .badge--featured { z-index: 1; }
.rail__item--empty { color: var(--ink-muted); padding: 2rem 0; }
.search--page { margin-top: 0.75rem; width: min(100%, 640px); }

/* ---------- Detail ---------- */
.detail-hero { position: relative; isolation: isolate; padding-block: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(180deg, #e3ece9 0%, var(--paper) 100%); }
.detail-hero__inner { display: grid; gap: 0.6rem; justify-items: start; }
.detail-hero__title { font-size: var(--step-4); font-weight: 600; max-width: 22ch; }
.detail-hero__meta { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); }
.detail-hero--image { min-height: clamp(280px, 48vh, 460px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); }
.detail-hero--image .detail-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.detail-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0.05) 30%, rgb(15 25 25 / 0.75) 100%); }
.detail-hero--image .detail-hero__title, .detail-hero--image .detail-hero__meta, .detail-hero--image .kicker, .detail-hero--image .link-arrow { color: #fff; }
.link-arrow--back { margin-bottom: 0.5rem; }
.link-arrow--back:hover .icon { transform: translateX(-3px); }
.detail__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem); }
.detail__main { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.detail__aside { display: grid; gap: 1rem; align-content: start; }
.detail__narrow { width: min(100% - 2 * var(--gutter), 760px); display: grid; gap: 1.25rem; padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem); }
.detail__lead { font-size: var(--step-1); line-height: 1.5; color: #34413f; }
.detail__h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.detail__section { margin-top: 1rem; }
.detail__grid--single { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.detail__report { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 900px) {
    .detail__grid { grid-template-columns: minmax(0, 1fr) 340px; }
    .detail__grid--single { grid-template-columns: minmax(0, 1fr); }
    .detail__aside { position: sticky; top: 90px; }
}
.prose { line-height: 1.7; max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose a { color: var(--lake); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--ink-muted); }
.prose img { border-radius: var(--radius-sm); }
.detail__narrow > *, .detail__main > * { min-width: 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.prose th, .prose td { padding: 0.55rem 0.7rem; border: 1px solid var(--stone); text-align: left; vertical-align: top; min-width: 9rem; }
.prose th { background: var(--stone-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.facts div { padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--stone); border-radius: var(--radius-sm); min-width: 8rem; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.info-box, .hours-box { display: grid; gap: 0.7rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--stone); border-radius: var(--radius); }
.info-box__row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; overflow-wrap: anywhere; }
.info-box__row .icon { flex: none; margin-top: 0.2em; color: var(--pine); }
.info-box .btn { justify-content: center; }
.hours-box { padding: 0; border: 0; margin-top: 0.5rem; }
.hours-box__title { font-family: var(--font-body, inherit); font-size: 0.95rem; font-weight: 700; }
.hours-box dl { display: grid; gap: 0.2rem; margin: 0; }
.hours-box dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; padding: 0.15rem 0.4rem; border-radius: 6px; }
.hours-box dl div.is-today { background: var(--stone-soft); font-weight: 700; }
.hours-box dd { margin: 0; text-align: right; }
.mini-map { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone); z-index: 0; }
.mini-map__links { font-size: 0.88rem; margin: 0; }
.owner-box { display: grid; gap: 0.5rem; justify-items: start; }
.small { font-size: 0.88rem; }
.small-link { font-size: 0.88rem; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.notice-inline { padding: 0.75rem 1rem; background: var(--stone-soft); border-radius: var(--radius-sm); font-weight: 600; }
.related ul { display: grid; gap: 0.4rem; list-style: disc; padding-left: 1.2em; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.5rem; width: 100%; border: 0; background: radial-gradient(circle, #2b3837, #1e2a2b); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.video__play .icon { width: 56px; height: 56px; fill: #fff; }
.video__play small { font-weight: 400; opacity: 0.75; max-width: 40ch; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.gallery small { font-size: 0.78rem; color: var(--ink-muted); }

/* ---------- Map ---------- */
.page-map main { display: flex; flex-direction: column; }
.map-page { display: flex; flex-direction: column; height: calc(100vh - var(--header-h, 72px)); height: calc(100dvh - var(--header-h, 72px)); min-height: 420px; }
.map-page__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.75rem; }
.map-page__title { font-size: var(--step-2); }
.map-page__map { flex: 1; z-index: 0; }
.map-pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--pin); border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 2px 6px rgb(0 0 0 / 0.35); }
.map-logo img { display: block; }
.leaflet-popup-content { font-family: inherit; font-size: 0.92rem; }
.leaflet-popup-content a { color: var(--pine); }
@media (max-width: 767px) { .map-page { height: calc(100dvh - 140px); } }

/* ---------- Forms (public) ---------- */
.form--page { gap: 1.1rem; }
.field__help { font-size: 0.82rem; color: var(--ink-muted); }
.field__error { font-size: 0.85rem; color: #a33a1c; font-weight: 600; }
.field.is-invalid .field__input { border-color: #a33a1c; }
.req { color: var(--accent-strong); }
textarea.field__input { resize: vertical; line-height: 1.5; }
select.field__input { appearance: auto; }
.check { display: inline-flex; align-items: flex-start; gap: 0.55rem; font-weight: 500; cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin-top: 0.1em; flex: none; accent-color: var(--pine); }
.notice-inline--ok { background: #e3f1e8; color: #1f5137; }
.site-footer__credit { font-size: 0.8rem; opacity: 0.8; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-section { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 1.5rem); background: var(--surface); border: 1px solid var(--stone); border-radius: var(--radius); }
.form-section__title { font-size: var(--step-1); }
fieldset.form-section { margin: 0; min-width: 0; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.grid-fields--main { grid-template-columns: 1fr; }
.field--textarea, .field--markdown, .field--geojson, .field--hours, .field--categories { grid-column: 1 / -1; }
.field__input--tall { min-height: 12rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.4rem 1rem; }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.hours label { display: grid; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; }
.hours__note { grid-column: 1 / -1; }
.contribute-rules { margin-top: 2rem; }

/* ---------- Auth & account ---------- */
.btn--google { justify-content: center; width: 100%; background: #fff; border-color: var(--stone); color: var(--ink); }
.btn--google:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 34px; padding: 0.35rem 0.8rem; font-size: 0.85rem; }
.divider { display: flex; align-items: center; gap: 0.75rem; width: 100%; color: var(--ink-muted); font-size: 0.85rem; margin: 0.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--stone); }
.panel__links { font-size: 0.9rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.account { display: grid; gap: 1.25rem; padding-block: 1.5rem clamp(3rem, 6vw, 4.5rem); }
.account__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.account__verify { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.contrib-list { display: grid; gap: 0.5rem; }
.contrib-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--stone-soft); }
.badge--draft { background: #ecebe7; color: #55605e; }
.badge--pending { background: #fbecd9; color: #8a4b12; }
.badge--published { background: #e3f1e8; color: #1f5137; }
.badge--rejected { background: #fbe9e4; color: #8a2c12; }
.badge--archived { background: #e6e9ec; color: #4a5560; }

/* ---------- Minimal pages (maintenance, login) ---------- */
.page-minimal { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.page-minimal main { flex: 1; display: flex; }
.hero--full { flex: 1; min-height: 0; align-items: center; padding-block: clamp(2rem, 6vw, 4rem) clamp(8rem, 18vw, 12rem); }
.panel-wrap { display: grid; place-items: center; }
.panel {
    width: min(100%, 440px);
    display: grid;
    gap: 1.1rem;
    justify-items: center;
    text-align: center;
    padding: clamp(1.75rem, 5vw, 2.5rem);
    background: rgb(255 255 255 / 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgb(255 255 255 / 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
}
.panel__logo .logo { font-size: 2.4rem; }
.panel__title { font-size: var(--step-3); }
.panel__lead { color: var(--ink-muted); }
.panel__back { margin-top: 0.25rem; }
.minimal-footer { padding: 1rem var(--gutter); background: var(--pine-dark); color: #c9d1cf; font-size: 0.8rem; line-height: 1.7; text-align: center; }
.minimal-footer a { color: #e7ecea; }
.minimal-footer a:hover { color: #fff; }

.form { display: grid; gap: 1rem; width: 100%; text-align: left; }
.form .btn { justify-content: center; }
.field { display: grid; gap: 0.35rem; }
.field__label { font-weight: 600; font-size: 0.9rem; }
.field__input {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--stone);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.field__input:focus { outline: 2px solid var(--lake); outline-offset: 1px; border-color: var(--lake); }
.form-error {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: #fbe9e4;
    color: #8a2c12;
    font-size: 0.92rem;
    text-align: left;
}
.cf-turnstile { min-height: 65px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Event detail: plain header, poster column from the header level ---------- */
.event-detail {
    display: grid;
    gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
    grid-template-areas: "head" "aside" "main";
    padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
}
.event-detail__head { grid-area: head; display: grid; gap: 0.6rem; justify-items: start; }
.event-detail__title { font-size: var(--step-4); font-weight: 600; max-width: 22ch; }
.event-detail__aside { grid-area: aside; min-width: 0; }
.event-detail__main { grid-area: main; display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.event-detail__main > * { min-width: 0; }
@media (min-width: 900px) {
    .event-detail {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        grid-template-areas: "head aside" "main aside";
        grid-template-rows: auto 1fr;
    }
    .event-detail--single { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main"; max-width: 860px; }
    .event-detail__aside { position: sticky; top: 90px; align-self: start; }
}
.event-poster { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--stone-soft); }
.event-poster img { display: block; width: 100%; height: auto; }
.event-facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--surface); }
.event-facts > div { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; gap: 1rem; padding: 0.8rem 1.1rem; border-top: 1px solid var(--stone-soft); }
.event-facts > div:first-child { border-top: 0; }
.event-facts dt { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink-muted); font-size: 0.92rem; }
.event-facts dt .icon { color: var(--pine); flex: none; }
.event-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .event-facts > div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Searchable select (combobox.js) ---------- */
.combobox { position: relative; }
.combobox .field__input { padding-right: 2.4rem; }
.combobox__clear { position: absolute; top: 50%; right: 0.4rem; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 999px; background: none; color: var(--ink-muted); cursor: pointer; }
.combobox__clear:hover { background: var(--stone-soft, #efebe3); color: var(--ink); }
.combobox__clear .icon { width: 15px; height: 15px; }
.combobox__list {
    position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
    max-height: 18rem; overflow-y: auto;
    margin: 0; padding: 0.3rem; list-style: none;
    background: var(--surface, #fff); border: 1px solid var(--stone); border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
}
.combobox__list li { padding: 0.5rem 0.65rem; border-radius: 6px; cursor: pointer; font-size: 0.93rem; }
.combobox__list li:hover, .combobox__list li.is-active { background: #eef4f1; }
.combobox__list li.is-current { font-weight: 600; }
.combobox__list .combobox__empty { color: var(--ink-muted); cursor: default; }
.combobox__list .combobox__empty:hover { background: none; }

/* ---------- Football: program and results (activity „Futbalové zápasy“, football.js) ---------- */
.football { padding-block: 0 clamp(3rem, 6vw, 4.5rem); }
.football:has(+ .detail__report) { padding-bottom: 1.5rem; }
.football__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 1rem; }
.football__note { font-size: var(--step--1); color: var(--ink-muted); }
.football__filters { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.football__filters .chip:disabled { opacity: 0.4; cursor: default; }
.football__filters .chip.is-active .chip__count { opacity: 0.8; }
.football__grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 960px) { .football__grid { grid-template-columns: 1fr 1fr; } }
.football__card { background: var(--surface); border: 1px solid var(--stone); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.football__card-title { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0; padding: 1rem 1.25rem; border-bottom: 1px solid var(--stone); font-size: var(--step-1, 1.25rem); }
.football__count { min-width: 2em; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--stone-soft); font-family: inherit; font-size: 0.85rem; font-weight: 700; text-align: center; }
.football__empty { padding: 1.5rem 1.25rem; color: var(--ink-muted); }
.matches { margin: 0; padding: 0; list-style: none; }
.match { display: grid; gap: 0.45rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--stone-soft); }
.match:last-child { border-bottom: 0; }
.match[hidden] { display: none; }
.match--stale { opacity: 0.5; }
.match__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.match__team { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--ink); font-weight: 400; }
.match__team--away { flex-direction: row-reverse; text-align: right; }
.match__team.is-ours { font-weight: 700; }
.match__team.is-win { color: #16803c; font-weight: 700; }
.match__team.is-loss { opacity: 0.65; font-weight: 300; }
.match__name { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; overflow-wrap: anywhere; }
.match__logo { flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; }
.match__logo--empty { display: inline-block; background: var(--stone-soft); }
.match__center { display: grid; justify-items: center; gap: 0.15rem; min-width: 5.5rem; text-align: center; }
.match__score { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1; letter-spacing: 0.04em; color: var(--ink); }
.match__score .is-win { color: #16803c; }
.match__vs { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-muted); }
.match__time { font-size: 0.8rem; color: var(--ink-muted); white-space: nowrap; }
.match__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin: 0; font-size: 0.78rem; color: var(--ink-muted); }
.match__tag { padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--stone-soft); color: var(--ink); font-weight: 600; }
.match__tag--home { background: #e3f1e8; color: #1f5137; }
.match__tag--away { background: #e6eef3; color: #24506a; }
.match__tag--state { background: #fbecd9; color: #8a4b12; }
.match__competition { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.is-category-filtered [data-tag="category"], .is-venue-filtered [data-tag="venue"] { display: none; }
@media (max-width: 480px) {
    .match { padding-inline: 0.85rem; }
    .match__logo { width: 28px; height: 28px; }
    .match__center { min-width: 4.5rem; }
    .match__score { font-size: 1.45rem; }
}

/* ---------- Lightbox (posters, gallery) ---------- */
a[data-lightbox] { cursor: zoom-in; }
.lightbox {
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: rgb(12 18 18 / 0.94); color: #fff;
    overflow: hidden;
}
.lightbox::backdrop { background: rgb(12 18 18 / 0.6); }
body.lightbox-open { overflow: hidden; }
.lightbox__stage {
    position: relative; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 3.5rem 4rem; box-sizing: border-box;
    overflow: hidden; touch-action: none; user-select: none;
}
.lightbox__img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    transform-origin: 0 0; transition: transform 0.08s ease-out;
    cursor: zoom-in; box-shadow: 0 10px 40px rgb(0 0 0 / 0.4);
}
.lightbox__stage.is-zoomed .lightbox__img { cursor: grab; }
.lightbox__stage.is-dragging .lightbox__img { cursor: grabbing; transition: none; }
.lightbox__caption {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
    max-width: min(90vw, 760px); margin: 0; padding: 0.4rem 0.9rem;
    border-radius: 999px; background: rgb(0 0 0 / 0.55);
    font-size: 0.9rem; text-align: center;
}
.lightbox__bar { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; gap: 0.4rem; }
.lightbox__btn, .lightbox__nav {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: rgb(255 255 255 / 0.12); color: #fff;
    font: 600 1.4rem/1 var(--font-body, sans-serif); text-decoration: none; cursor: pointer;
}
.lightbox__btn:hover, .lightbox__nav:hover, .lightbox__btn:focus-visible, .lightbox__nav:focus-visible { background: rgb(255 255 255 / 0.25); color: #fff; }
.lightbox__btn .icon, .lightbox__nav .icon { width: 20px; height: 20px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 0.75rem; }
.lightbox__nav--next { right: 0.75rem; }
.lightbox.is-single .lightbox__nav { display: none; }
@media (max-width: 640px) {
    .lightbox__stage { padding: 3.5rem 0.5rem; }
    .lightbox__nav { top: auto; bottom: 0.75rem; transform: none; }
}

/* ---------- Events: view switch, list, calendar, map ---------- */
.view-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--stone); border-radius: 999px; background: var(--surface, #fff); }
.view-switch__item {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.9rem; border-radius: 999px;
    color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 600;
}
.view-switch__item .icon { width: 16px; height: 16px; }
.view-switch__item:hover { background: var(--stone-soft, #efebe3); color: var(--ink); }
.view-switch__item.is-active { background: var(--ink); color: #fff; }
@media (max-width: 560px) {
    .view-switch { width: 100%; }
    .view-switch__item { flex: 1; justify-content: center; flex-direction: column; gap: 0.15rem; padding: 0.4rem 0.25rem; font-size: 0.72rem; border-radius: 14px; }
}

.event-list { display: grid; gap: 0.5rem; }
.event-row {
    position: relative; display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 1rem; border: 1px solid var(--stone); border-radius: var(--radius);
    background: var(--surface, #fff); transition: border-color 0.15s, box-shadow 0.15s;
}
.event-row:hover { border-color: var(--pine); box-shadow: var(--shadow); }
.event-row__date { display: grid; justify-items: center; flex: none; width: 3.6rem; line-height: 1.05; }
.event-row__weekday, .event-row__month { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.event-row__month { color: var(--accent-strong); }
.event-row__day { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.event-row__body { min-width: 0; flex: 1; display: grid; gap: 0.2rem; }
.event-row__title { font-size: var(--step-1); line-height: 1.25; }
.event-row .meta { margin: 0; }
.event-row .badge--featured { flex: none; }
@media (max-width: 560px) { .event-row .badge--featured { display: none; } }

.calendar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.calendar-head__title { font-size: var(--step-2); min-width: 9.5em; text-align: center; text-transform: capitalize; }
.calendar-head__count { margin-left: auto; font-size: var(--step--1); color: var(--ink-muted); }
.calendar { border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; background: var(--surface, #fff); }
.calendar__weekdays, .calendar__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar__weekdays span { padding: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); text-align: center; border-bottom: 1px solid var(--stone); }
.calendar__day { min-height: 7.5rem; padding: 0.4rem; border-right: 1px solid var(--stone-soft, #efebe3); border-bottom: 1px solid var(--stone-soft, #efebe3); display: grid; align-content: start; gap: 0.3rem; min-width: 0; }
.calendar__week .calendar__day:nth-child(7n) { border-right: 0; }
.calendar__week:last-child .calendar__day { border-bottom: 0; }
.calendar__day:nth-child(n+6) { background: #fbfaf7; }
.calendar__day.is-outside { background: #f6f4ef; }
.calendar__day.is-outside .calendar__date { opacity: 0.45; }
.calendar__day.is-past .calendar__events { opacity: 0.6; }
.calendar__date { font-weight: 700; font-size: 0.9rem; }
.calendar__weekday, .calendar__month { display: none; }
.calendar__day.is-today .calendar__date { display: inline-grid; place-items: center; justify-self: start; min-width: 1.8rem; height: 1.8rem; padding: 0 0.35rem; border-radius: 999px; background: var(--accent-strong); color: #fff; }
.calendar__events { display: grid; gap: 0.25rem; }
.calendar__event {
    display: block; padding: 0.25rem 0.4rem; border-left: 3px solid var(--pine); border-radius: 4px;
    background: #eef4f1; color: var(--ink); text-decoration: none;
    font-size: 0.78rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.calendar__event:hover { background: #dfeae5; color: var(--ink); }
.calendar__event.is-continued { border-left-style: dashed; opacity: 0.8; }
.calendar__time { font-weight: 700; margin-right: 0.2rem; }
.calendar__event--culture { border-left-color: #8a4fb0; background: #f3ecf7; }
.calendar__event--sport, .calendar__event--football { border-left-color: #2f6f8f; background: #e9f1f6; }
.calendar__event--education { border-left-color: #b8892f; background: #f8f1e3; }
.calendar__event--community { border-left-color: #c27a3a; background: #fbefe4; }
.calendar__event--health { border-left-color: #b03a3a; background: #f8e9e9; }
.calendar__event--memorial { border-left-color: #55605e; background: #eeefee; }
.calendar__event--municipality { border-left-color: #1f4d3f; background: #e6efeb; }

/* Phones: agenda of days that have events */
@media (max-width: 700px) {
    .calendar { border: 0; background: none; overflow: visible; }
    .calendar__weekdays { display: none; }
    .calendar__week { display: contents; }
    .calendar__day { min-height: 0; grid-template-columns: 3.6rem minmax(0, 1fr); align-items: start; gap: 0.75rem; padding: 0.6rem 0; border: 0; border-bottom: 1px solid var(--stone); background: none !important; }
    .calendar__day.is-empty, .calendar__day.is-outside { display: none; }
    .calendar { display: grid; }
    .calendar__date { display: grid; justify-items: center; line-height: 1.1; font-size: 1.5rem; font-family: var(--font-display); }
    .calendar__weekday, .calendar__month { display: block; font-family: var(--font-body, inherit); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
    .calendar__month { color: var(--accent-strong); }
    .calendar__day.is-today .calendar__date { height: auto; padding: 0.25rem; border-radius: var(--radius-sm); }
    .calendar__day.is-today .calendar__weekday, .calendar__day.is-today .calendar__month { color: #fff; }
    .calendar__event { font-size: 0.92rem; -webkit-line-clamp: 3; padding: 0.45rem 0.6rem; }
    .calendar-head__title { min-width: 0; flex: 1; }
    .calendar-head__count { margin-left: 0; width: 100%; }
}

.events-map { height: min(70vh, 640px); min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone); z-index: 0; }

/* ---------- Places: category board ---------- */
.cat-board { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.cat-pill {
    display: inline-flex; align-items: center; gap: 0.45em;
    padding: 0.42rem 0.85rem; border-radius: 999px;
    border: 1px solid var(--stone); background: var(--surface, #fff);
    color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 500; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.cat-pill:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-1px); }
.cat-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-pill__count {
    min-width: 1.5em; padding: 0.05em 0.45em; border-radius: 999px;
    background: var(--stone-soft, #efebe3); color: var(--ink-muted);
    font-size: 0.78em; font-weight: 700; text-align: center;
}
.cat-pill.is-active .cat-pill__count { background: rgb(255 255 255 / 0.2); color: #fff; }

/* Type pills (sections with more place types) and the full-width panel with the chosen type's categories */
.cat-group--attraction { --tone: #2f6f8f; --tone-soft: #e9f1f6; }
.cat-group--gastro { --tone: #c27a3a; --tone-soft: #fbefe4; }
.cat-group--other { --tone: #55605e; --tone-soft: #eeefee; }
.cat-group--accommodation { --tone: #8a4fb0; --tone-soft: #f3ecf7; }
.cat-type .icon { width: 16px; height: 16px; color: var(--tone); }
.cat-type:hover { border-color: var(--tone); color: var(--tone); }
.cat-type.is-active { background: var(--tone); border-color: var(--tone); color: #fff; }
.cat-type.is-active .icon { color: #fff; }
.cat-group {
    --tone: var(--pine); --tone-soft: #eef4f1;
    flex: 1 0 100%;
    padding: 0.9rem; border: 1px solid var(--stone); border-radius: var(--radius);
    background: var(--tone-soft);
    border-top: 3px solid var(--tone);
    animation: cat-open 0.2s ease-out;
}
@keyframes cat-open { from { opacity: 0; transform: translateY(-4px); } }
.cat-group__pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cat-group .cat-pill:hover { border-color: var(--tone); color: var(--tone); }
.cat-group .cat-pill.is-active { background: var(--tone); border-color: var(--tone); color: #fff; }

/* Phones: a single-type section's pills scroll sideways; the opened type panel wraps so every category is visible */
@media (max-width: 640px) {
    .cat-board:not(.cat-board--groups) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); scroll-padding-inline: var(--gutter, 16px); }
    .cat-board:not(.cat-board--groups)::-webkit-scrollbar { display: none; }
    .cat-group { padding: 0.75rem; }
}
