/* =========================================================================
   Public site design system (no build step; hand-written CSS).
   Brand colour comes from the organiser: <body style="--brand: #xxxxxx">.
   ========================================================================= */

:root {
    --brand: #b23333;
    --brand-ink: #ffffff;               /* text on brand background */
    --ink: #1d2130;
    --ink-2: #4a5065;
    --ink-3: #767c90;
    --line: #e4e6ec;
    --bg: #f6f7f9;
    --card: #ffffff;
    --ok: #1f8a4c;
    --ok-bg: #e6f5ec;
    --warn: #8a5a00;
    --warn-bg: #fff4dc;
    --err: #b42318;
    --err-bg: #fdecea;
    --info-bg: #eef3ff;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
    --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    /* footer at the bottom of the screen also on short pages (account, login, order...) */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .site-header, body > .site-footer { flex: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.row-between { justify-content: space-between; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.prose { max-width: 70ch; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--bg); color: var(--ink); }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
/* organiser pages have up to 4 menu links + languages + account + platform: tablets get the menu button too */
@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .nav .btn { margin: 6px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { filter: brightness(.95); color: var(--brand-ink); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-pad-lg { padding: 30px; }
.card h3 { margin-bottom: 6px; }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }

/* Event card */
.event-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.event-card .cover { aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--brand) 14%, #fff); position: relative; overflow: hidden; }
.event-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.event-card .cover .date-badge { position: absolute; left: 14px; top: 14px; }
.event-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card .org { font-size: .8rem; font-weight: 700; color: var(--card-brand, var(--brand)); text-transform: uppercase; letter-spacing: .05em; }
.event-card h3 { font-size: 1.15rem; margin: 0; }
.event-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); font-size: .9rem; }
.event-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 1.05rem; }
.date-badge { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 6px 10px; text-align: center; min-width: 58px; line-height: 1.1; }
.date-badge .d { font-size: 1.35rem; font-weight: 800; display: block; }
.date-badge .m { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--brand); }
.cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 55%, #fff); }
.cover-fallback svg { width: 54px; height: 54px; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-brand { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--ink-3); text-decoration: none; color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 92%, #000), color-mix(in srgb, var(--brand) 60%, #1d2130)); overflow: hidden; }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 20, .35), rgba(10, 12, 20, .72)); }
.hero .container { position: relative; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: rgba(255, 255, 255, .88); max-width: 60ch; }
.hero blockquote { margin: 18px 0 0; font-size: 1.15rem; font-style: italic; color: rgba(255, 255, 255, .9); max-width: 60ch; }
.hero blockquote cite { display: block; font-style: normal; font-size: .9rem; margin-top: 6px; opacity: .8; }
.hero .btn-secondary { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 26px; }
.filters-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filters-toggle { display: none; } /* phones only, see the max-width: 640px block */
.filters .field { margin: 0; min-width: 160px; flex: 1 1 160px; }
.filters .field-search { flex: 2 1 260px; }
/* text input and selects render with different heights; equal heights keep the labels on one line */
.filters .input, .filters .select { height: 46px; padding-top: 0; padding-bottom: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--ink-3); margin-top: 5px; }
.req::after { content: " *"; color: var(--err); }
.input, .select, .textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1px solid #cfd3dc; border-radius: var(--radius-sm); padding: 11px 13px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.is-invalid { border-color: var(--err) !important; }
.error { color: var(--err); font-size: .85rem; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.options { display: grid; gap: 8px; }

/* Selectable option cards (payment method) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; gap: 12px; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.choice:hover { border-color: #c5c9d3; }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 3px; }
.choice strong { display: block; }
.choice small { color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, #fff); }

/* ---------- Alerts ---------- */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: #145c33; border-color: #bfe5cd; }
.alert-err { background: var(--err-bg); color: #8a1c13; border-color: #f6c8c2; }
.alert-warn { background: var(--warn-bg); color: #6b4600; border-color: #f2dba6; }
.alert-info { background: var(--info-bg); color: #263f86; border-color: #d3defb; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Event detail ---------- */
.event-hero { background: var(--card); border-bottom: 1px solid var(--line); }
.event-hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding-top: 36px; padding-bottom: 36px; align-items: center; }
.event-hero .poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--brand) 12%, #fff); }
.event-hero .poster img { width: 100%; height: 100%; object-fit: cover; }
.event-facts { display: grid; gap: 12px; margin: 18px 0 22px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .ico { width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); display: grid; place-items: center; flex: none; }
.fact .ico svg { width: 20px; height: 20px; }
.fact strong { display: block; }
.fact span { color: var(--ink-3); font-size: .92rem; }
/* Events without a photo: single column */
.event-hero.no-poster .container { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .event-hero .container { grid-template-columns: minmax(0, 1fr); } .event-hero .poster { order: -1; } }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.aside-sticky { position: sticky; top: 86px; }
@media (max-width: 960px) {
    .layout-aside { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .aside-sticky { position: static; }
    /* one column (event page): the registration box comes right after the event info, the question form last */
    .layout-aside > .stack { display: contents; }
    .layout-aside > aside { order: 1; }
    .layout-aside > .stack > #contact { order: 2; }
}

/* Ticket selector */
.ticket-list { display: grid; gap: 12px; }
.ticket-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ticket-row.is-off { opacity: .65; }
.ticket-row h4 { margin: 0 0 2px; font-size: 1rem; }
.ticket-row .desc { color: var(--ink-3); font-size: .88rem; }
.ticket-row .right { display: flex; align-items: center; gap: 14px; flex: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #cfd3dc; border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--bg); }
.stepper input { width: 42px; text-align: center; border: 0; font: inherit; font-weight: 700; padding: 0; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 560px) { .ticket-row { flex-direction: column; align-items: stretch; } .ticket-row .right { justify-content: space-between; } }

/* Summary box */
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.1rem; }

/* Steps */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; counter-reset: step; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.steps li::before { counter-increment: step; content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: .8rem; }
.steps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.steps li.current { color: var(--ink); }
.steps li.current::before { background: var(--brand); color: var(--brand-ink); }
.steps li + li::after { content: none; }
.steps li:not(:last-child) { padding-right: 14px; border-right: 1px solid var(--line); }

.attendee-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 4px; margin-bottom: 14px; background: #fff; }
.attendee-block h4 { margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.attendee-block h4 .badge { font-weight: 600; }

.countdown { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 6px 12px; border-radius: 999px; font-size: .88rem; }

/* Payment box (QR) */
.pay-panel { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.pay-panel .qr { background: #fff; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.pay-panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.pay-panel dt { color: var(--ink-3); }
.pay-panel dd { margin: 0; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.copy { border: 0; background: var(--bg); border-radius: 8px; padding: 2px 8px; font-size: .75rem; cursor: pointer; color: var(--ink-2); }
.copy:hover { background: var(--line); }
@media (max-width: 600px) { .pay-panel { grid-template-columns: minmax(0, 1fr); } }

/* Confirmation */
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin-bottom: 16px; }
.success-icon svg { width: 34px; height: 34px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; }
/* totals row: normal case ("Kč", not "KČ"), as strong as the rows above */
.table tfoot th { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.table .num { text-align: right; white-space: nowrap; }

/* Articles / projects */
.article-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.article-card .img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.article-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .img img { transform: scale(1.04); }
.article-card .body { padding: 18px 20px 22px; }
.article-card .kicker { color: var(--brand); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.article-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 28px; max-height: 480px; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Team */
.person { text-align: center; padding: 26px 20px; }
.person .avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; background: var(--bg); border: 4px solid #fff; box-shadow: var(--shadow); }
.person .motto { font-style: italic; color: var(--ink-2); font-size: .95rem; }
.person .role { color: var(--ink-3); font-size: .9rem; }
.avatar-fallback { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); font-weight: 800; font-size: 2rem; }

/* Organisers list */
.org-card { display: flex; gap: 16px; align-items: center; }
.org-card img, .org-card .brand-mark { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; font-size: 1.3rem; }
.org-card .brand-mark { border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-item { display: flex; gap: 12px; }
.contact-item .ico { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-item .ico svg { width: 20px; height: 20px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doc-list a { display: inline-flex; gap: 8px; align-items: center; }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 12px; opacity: .6; }

/* Footer */
.site-footer { background: #151824; color: #8b90a3; padding: 18px 0; margin-top: 64px; font-size: .85rem; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a, .site-footer .link-button { color: #d6d9e4; text-decoration: none; }
.site-footer a:hover, .site-footer .link-button:hover { color: #fff; text-decoration: underline; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Cookie consent (only where an organiser uses Google Analytics) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; color: var(--ink-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* Utility */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 28px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.ico-inline { width: 18px; height: 18px; flex: none; }

/* ----- Photo galleries ----- */
.gallery-card .cover .gallery-open { position: absolute; inset: auto 12px 12px auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: .82rem; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.gallery-card:hover .gallery-open, .gallery-card .cover:focus-visible .gallery-open { opacity: 1; transform: none; }
.gallery-card .cover img { transition: transform .3s; }
.gallery-card:hover .cover img { transform: scale(1.04); }
.gallery-card .foot .muted { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.pager [aria-disabled] { opacity: .45; pointer-events: none; }
.pager-pages { display: flex; align-items: center; gap: 4px; }
.pager-page { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 600; color: var(--ink-2, #3b4152); text-decoration: none; }
a.pager-page:hover { background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); }
.pager-page.is-current { background: var(--brand); color: #fff; }
.pager-gap { color: var(--ink-3); padding: 0 2px; }
.pager-compact { display: none; }
@media (max-width: 560px) {
    .pager { gap: 10px; }
    .pager-pages { display: none; }
    .pager-compact { display: inline; }
    .pager-label { display: none; }
}
@media (hover: none) { .gallery-card .cover .gallery-open { opacity: 1; transform: none; } }
/* Event icon (Material Symbols SVG stored locally, coloured with the organiser brand via mask) */
.ev-icon { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; vertical-align: -0.15em; }
.cover-fallback .ev-icon { width: 64px; height: 64px; color: color-mix(in srgb, var(--brand) 70%, #fff); }
.event-card .cover .icon-badge { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand); }
.event-card .cover .icon-badge .ev-icon { width: 26px; height: 26px; }
.event-title-icon { color: var(--brand); margin-right: .25em; }
/* Language switcher (CS · SK · EN) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line, #e4e6ec); border-radius: 999px; background: #fff; }
.lang-switch a { padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-3, #767c90); text-decoration: none; }
.lang-switch a:hover { color: var(--ink, #1d2130); }
.lang-switch a.active { background: var(--brand); color: #fff; }
/* Home hero with photo: text on the brand colour (left), photo fading in from the right */
.hero-split .hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background-size: cover; background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 22%, #000 48%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 22%, #000 48%); }
.hero-split .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--brand) 30%, transparent), transparent 55%), linear-gradient(to top, rgba(10, 12, 20, .25), transparent 40%); }
.hero-split .container { z-index: 1; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) {
    /* phones / narrow screens: photo behind the text with a brand-coloured veil */
    .hero-split .hero-photo { width: 100%; -webkit-mask-image: none; mask-image: none; }
    .hero-split .hero-photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 78%, transparent), color-mix(in srgb, var(--brand) 92%, #1d2130)); }
    .hero-split .container { min-height: 0; }
}
@media (max-width: 640px) {
    /* phones: a low banner so the event list starts on the first screen; the buttons are in the ☰ menu
       and only jump to the sections right below; the photo shows through a light shade instead of the brand veil */
    .hero .container { padding-top: 30px; padding-bottom: 30px; }
    .hero h1 { font-size: 1.6rem; margin-bottom: .2em; }
    .hero .lead, .hero blockquote { font-size: 1rem; margin-top: 8px; }
    .hero-actions { display: none; }
    .hero + .section { padding-top: 28px; }
    /* filters folded behind a button; the checkbox before them keeps the state (works without JS) */
    .filters-toggle { display: inline-flex; margin-bottom: 14px; cursor: pointer; }
    .filters-toggle-input:not(:checked) ~ .filters { display: none; }
    .filters-toggle-input:focus-visible + .filters-toggle { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
    .hero-split .hero-photo::after { background: linear-gradient(180deg, rgba(10, 12, 20, .25), rgba(10, 12, 20, .62)), color-mix(in srgb, var(--brand) 22%, transparent); }
    .hero-split h1, .hero-split .lead, .hero-split blockquote, .hero-split .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
}
/* Hero photo: scaled to the banner height, never cropped (see home_hero_ratio). */
@media (min-width: 861px) {
    /* the banner keeps its height; the photo is scaled to that height (width from its proportions), never cut */
    .hero-split .hero-photo { width: auto; aspect-ratio: var(--hero-ratio, 1.6); max-width: 100%; background-size: cover; }
}
/* Photo aligned to the content column: its right edge = right edge of the page content */
.hero-photo-frame { position: absolute; inset: 0; pointer-events: none; }
.hero-photo-frame .container { height: 100%; }
.hero-photo-box { position: relative; height: 100%; }
@media (max-width: 860px) {
    .hero-photo-frame .container { max-width: none; padding: 0; } /* phones: photo behind the whole banner */
}
/* the frame's column must not take the text column's vertical padding: photo = full banner height */
.hero .hero-photo-frame .container { padding-top: 0; padding-bottom: 0; min-height: 0; display: block; }

/* Platform logo mark in the header (same SVG as the favicon) */
.brand img.brand-logo { height: 46px; width: 46px; margin: -6px -2px -6px -6px; }

/* right edge: crisp, framed by a thin light line (see .hero-photo box-shadow below) */
@media (min-width: 861px) {
    .hero-split .hero-photo { -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 22%, #000 48%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 22%, #000 48%); }
}
@media (min-width: 861px) {
    .hero-split .hero-photo { box-shadow: inset -1px 0 0 rgba(255, 255, 255, .7); }
}

/* elements toggled with the hidden attribute stay hidden even when a class sets display (e.g. .form-grid) */
[hidden] { display: none !important; }

/* organiser pages: link back to the platform, a button like "Můj účet" with the platform logo mark */
.nav a.nav-platform { gap: 6px; }
.nav a.nav-platform img { width: 24px; height: 24px; margin: -5px -2px -5px -6px; flex: none; }
/* Newsletter sign-up bar (home + organiser page, one line) and the confirm / unsubscribe pages */
.nl-band { padding: 18px 0; }
.nl-signup { display: flex; align-items: center; gap: 12px 16px; padding: 12px 14px 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm, 12px); background: var(--card, #fff); }
.nl-signup .ico { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); display: grid; place-items: center; flex: none; }
.nl-signup .ico svg { width: 18px; height: 18px; }
.nl-signup-text { flex: 1; min-width: 0; margin: 0; font-size: .95rem; color: var(--ink-3); }
.nl-signup-text strong { color: var(--ink); margin-right: 6px; }
.nl-signup-form { display: flex; gap: 8px; flex: 0 1 380px; }
.nl-signup-form .input { flex: 1; min-width: 0; height: 38px; padding-top: 0; padding-bottom: 0; }
.nl-signup-done { margin: 0; color: #145c33; font-weight: 600; font-size: .92rem; }
.nl-signup-error { margin-top: 6px; }
@media (max-width: 760px) {
    .nl-signup { flex-wrap: wrap; }
    .nl-signup-text { flex-basis: calc(100% - 50px); }
    .nl-signup-form { flex-basis: 100%; }
}
.nl-result-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display: grid; place-items: center; }
.nl-result-icon svg { width: 28px; height: 28px; }
.nl-prefs { display: grid; gap: 10px; margin: 14px 0; }
.nl-prefs .check { padding: 12px 14px; border: 1px solid var(--line, #e8e4df); border-radius: 10px; }
.nl-prefs .check small { display: block; color: var(--ink-3); font-weight: 400; }

/* Customer account: upcoming registrations (date | event | status + buttons); buttons go under the text on phones */
.acc-ticket { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
@media (max-width: 640px) {
    .acc-ticket { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
    .acc-ticket-actions { grid-column: 1 / -1; text-align: left; }
    .acc-ticket-actions .row { justify-content: flex-start !important; flex-wrap: wrap; }
}

/* Tables that turn into one card per row on phones: <table class="table table-stack">, cells with data-label, the title cell .ts-head */
@media (max-width: 640px) {
    .table-wrap:has(> .table-stack) { overflow: visible; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack thead { display: none; }
    .table-stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .table-stack tr:last-child { border-bottom: 0; }
    .table-stack td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0 !important; border: 0 !important; text-align: right; }
    .table-stack td::before { content: attr(data-label); color: var(--ink-3); font-size: .85rem; text-align: left; flex: none; }
    .table-stack td.ts-head { display: block; text-align: left; font-weight: 600; padding-bottom: 6px !important; }
    .table-stack td.ts-head::before { content: none; }
}

/* Public equipment rental (site/equipment/*) */
.eq-card.is-taken { opacity: .6; }
.eq-qty .input { width: 76px; padding: 8px 10px; }
.eq-photo { width: 100%; border-radius: var(--radius); margin-top: 12px; }
.eq-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; margin: 10px 0; }
.eq-days span { position: relative; padding: 14px 0 6px; text-align: center; font-size: .82rem; font-weight: 600; border-radius: 8px; background: color-mix(in srgb, var(--ok, #1f9d55) 12%, #fff); color: var(--ink-2); }
.eq-days span.is-weekend { background: color-mix(in srgb, var(--ok, #1f9d55) 20%, #fff); }
.eq-days span.is-busy { background: color-mix(in srgb, var(--err, #c0392b) 16%, #fff); color: var(--err, #c0392b); text-decoration: line-through; }
.eq-days b { position: absolute; top: 2px; left: 0; right: 0; font-size: .62rem; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.eq-legend { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; background: color-mix(in srgb, var(--ok, #1f9d55) 12%, #fff); }
.eq-legend.is-busy { background: color-mix(in srgb, var(--err, #c0392b) 16%, #fff); }
.eq-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.eq-facts dt { color: var(--ink-3); }
.eq-facts dd { margin: 0; }.aside-sticky .form-grid { grid-template-columns: minmax(0, 1fr); }

/* Season event sessions (site/event) */
.session-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.session-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: var(--bg); }
.session-list li span:first-child { font-weight: 650; min-width: 110px; }
.session-list li.is-cancelled { color: var(--ink-3); text-decoration: line-through; }
.session-list li.is-cancelled .badge, .session-list li.is-cancelled .muted { text-decoration: none; }
.session-list li.is-past { opacity: .6; }