/* Zelená brána – vzhled webu (verze 2) */
:root {
    --bg: #ffffff;
    --surface: #f4f4f1;
    --ink: #111412;
    --ink-2: #454b48;
    --ink-3: #737a76;
    --line: #e4e5e1;
    --green: #0f5a3e;
    --green-dark: #0a3a29;
    --green-deep: #0b1f17;
    --green-soft: #e6f1eb;
    --green-bright: #1d7a55;
    --accent: #c8f169;
    --blue: #1f5f8b;
    --blue-dark: #174a6d;
    --blue-soft: #e7f0f7;
    --danger: #b3261e;
    --radius: 10px;
    --radius-sm: 6px;
    --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1240px;
}

/* Barevné varianty: v app/config.php nastavte 'theme' => 'les' | 'smaragd' | 'patina' | 'salvej' | 'oliva' */
[data-theme="smaragd"] { --green: #047857; --green-dark: #065f46; --green-deep: #022c22; --green-soft: #e3f6ee; --green-bright: #10b981; --accent: #6ee7b7; --bg: #ffffff; --surface: #f1f7f4; }
[data-theme="patina"] { --green: #2b7a6f; --green-dark: #1f5c54; --green-deep: #0f2a27; --green-soft: #e2f1ee; --green-bright: #4fb3a2; --accent: #9fe0d2; --bg: #fbfcfb; --surface: #eef4f2; --line: #dde7e4; }
[data-theme="salvej"] { --green: #4f6b57; --green-dark: #3c5443; --green-deep: #26332b; --green-soft: #e9efe8; --green-bright: #8aa592; --accent: #d9e6c9; --bg: #f8f7f2; --surface: #efeee6; --line: #e2e0d5; --ink: #1e231f; }
[data-theme="oliva"] { --green: #55692b; --green-dark: #435322; --green-deep: #23290f; --green-soft: #eef1e0; --green-bright: #8a9b48; --accent: #e3c769; --bg: #fbfaf5; --surface: #f2f0e5; --line: #e5e2d4; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { background: var(--surface); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 32px; }
.wrap-article { max-width: 940px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.label, .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .8em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead-p, .lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 44em; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.2em; border-radius: 999px; border: 1px solid transparent;
    font: 600 .94rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-lg { padding: .9em 1.5em; font-size: 1rem; }
.btn-sm { padding: .45em .95em; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-copper { background: var(--ink); color: #fff; }
.btn-copper:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--accent); color: var(--green-deep); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost-dark:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(179,38,30,.3); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }

/* Horní lišta a hlavička */
.topbar { background: var(--green-deep); color: rgba(255,255,255,.7); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar::first-letter { text-transform: uppercase; }
.topbar-links { display: flex; gap: 18px; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.6) blur(12px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--green); }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; color: var(--ink); display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-weight: 800; }
.brand-text small { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 3px; }
.brand-light { color: #fff; --logo-ink: var(--green-deep); }
.brand-light .brand-text { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 22px 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .94rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.main-nav ul a:hover { color: var(--ink); }
.main-nav ul a[aria-current] { color: var(--ink); border-bottom-color: var(--green); }
/* Podrubriky v menu: rozbalí se pod mateřskou rubrikou */
.main-nav li.has-sub { position: relative; }
.main-nav .sub-nav { display: none; position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 220px; flex-direction: column; gap: 0; padding: 6px 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.main-nav li.has-sub:hover > .sub-nav, .main-nav li.has-sub:focus-within > .sub-nav { display: flex; }
.main-nav .sub-nav a { padding: 10px 16px; border-bottom: 0; margin: 0; font-weight: 500; white-space: nowrap; }
.main-nav .sub-nav a:hover { background: var(--green-soft); }
.main-nav .sub-nav a[aria-current] { color: var(--green); }
.subsections { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.chip:hover { border-color: var(--green); color: var(--green); }
.kicker-row { margin: 0 0 6px; }
.kicker-row .kicker { display: inline; }
.kicker-sep { color: var(--ink-3); margin: 0 4px; }
.eyebrow a { color: inherit; }
.section-form-child { margin-left: 32px; border-left: 3px solid var(--green-soft); }
.nav-account { margin-left: auto; display: flex; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; padding: 11px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

.flashes { margin-top: 20px; }
.flash { padding: .8em 1.1em; border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--green-soft); color: var(--green-dark); }
.flash-error { background: #fbeceb; color: #7d1b15; }
.flash-info { background: #f3f0e6; color: #5a4a1e; }

/* Obálky bez fotografie */
.cover-fallback { position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
    background: radial-gradient(120% 90% at 85% 0%, var(--green-bright) 0%, transparent 55%), linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%); }
.cover-fallback::after { content: attr(data-label); position: absolute; left: 7%; bottom: 4%; right: 7%;
    font: 800 clamp(1.4rem, 3.2vw, 2.4rem)/1 var(--display); letter-spacing: -.03em; color: rgba(255,255,255,.14); white-space: nowrap; overflow: hidden; }
.cover-historie { background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--green-bright) 45%, #b08a4f) 0%, transparent 60%), linear-gradient(150deg, var(--green-dark) 0%, var(--green-deep) 100%); }

/* Hlavní zprávy */
.lead-area { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 32px; padding-bottom: 8px; }
.lead-story { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; background: var(--green-deep); isolation: isolate; }
.lead-media { position: absolute; inset: 0; z-index: -1; }
.lead-media img, .lead-media .cover-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.lead-story:hover .lead-media img { transform: scale(1.02); }
.lead-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(5,15,10,.82) 100%); }
.lead-media .cover-fallback::after { display: none; }
.lead-text { padding: 40px; color: rgba(255,255,255,.86); max-width: 760px; }
.lead-text h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: .35em; }
.lead-text h1 a { color: #fff; text-decoration: none; }
.lead-text h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lead-text p { font-size: 1.1rem; max-width: 40em; }
.kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); text-decoration: none; margin-bottom: 8px; }
.kicker-light { color: var(--accent); }
.meta { color: var(--ink-3); font-size: .84rem; margin: auto 0 0; }
.meta-light { color: rgba(255,255,255,.6); margin: 0; }

.lead-list { border-top: 3px solid var(--ink); padding-top: 14px; }
.lead-list ol { list-style: none; margin: 0; padding: 0; }
.lead-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lead-list li:last-child { border-bottom: 0; }
.lead-list .num { font: 800 1.9rem/1 var(--display); color: var(--line); min-width: 28px; letter-spacing: -.04em; }
.lead-list .kicker { margin-bottom: 4px; font-size: .7rem; }
.lead-list-title { display: block; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.01em; }
.lead-list-title:hover { color: var(--green); }

/* Titulní strana – mřížka */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
.block { padding-top: 48px; padding-bottom: 48px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 24px; }
.block-head h2 { margin: 0; font-size: 1.35rem; }
.block-head-light { border-color: #fff; }
.block-head-light h2 { color: #fff; }
.more { font-weight: 600; text-decoration: none; font-size: .9rem; white-space: nowrap; color: var(--ink-2); }
.more::after { content: " →"; }
.more:hover { color: var(--green); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 28px; }
.home-main .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.28rem; line-height: 1.22; margin-bottom: 8px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); }
.card-perex { color: var(--ink-2); font-size: .98rem; line-height: 1.55; margin-bottom: 12px; }
.card-small .card-title { font-size: 1.1rem; }

.home-side { display: flex; flex-direction: column; gap: 40px; }
.short-list { list-style: none; margin: 0; padding: 0; }
.short-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.short-list li:first-child { padding-top: 0; }
.short-list time { font-weight: 700; font-size: .9rem; color: var(--green); font-variant-numeric: tabular-nums; }
.short-list a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.short-list a:hover { color: var(--green); }
.side-cta { background: var(--green); color: rgba(255,255,255,.82); border-radius: var(--radius); padding: 28px; }
.side-cta .label { color: var(--accent); }
.side-cta h2 { color: #fff; font-size: 1.5rem; }

.band { padding: 56px 0 64px; }
.band-dark { background: var(--green-deep); color: rgba(255,255,255,.8); }
.band-dark .card-title a { color: #fff; }
.band-dark .card-title a:hover { color: var(--accent); }
.band-dark .card-perex { color: rgba(255,255,255,.7); }
.band-dark .kicker { color: var(--accent); }
.band-dark .meta { color: rgba(255,255,255,.5); }
.band-dark .more { color: rgba(255,255,255,.8); }

.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.soon-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 48px; border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink-2); transition: background .2s; }
.soon-card:hover { background: var(--green-soft); color: var(--ink-2); }
.soon-card strong { font: 800 1.25rem/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.soon-arrow { position: absolute; left: 26px; bottom: 18px; font-weight: 700; color: var(--green); transition: transform .2s; }
.soon-card:hover .soon-arrow { transform: translateX(4px); }

.empty { background: var(--surface); border-radius: var(--radius); padding: 48px 32px; text-align: center; color: var(--ink-2); }

/* Rubriky a články */
.page-head { border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-head h1 { margin-bottom: .25em; }
.page-head-compact { padding: 36px 0 28px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head-row h1 { margin: 0; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.article { padding: 56px 0 24px; }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.article-head .lead { font-size: 1.28rem; color: var(--ink-2); }
.article-head .meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
/* Titulní fotka se zobrazí celá, bez ořezu; vysoké fotky se zmenší na výšku okna. */
.article-cover { margin: 36px auto; text-align: center; }
.article-cover img { display: inline-block; width: auto; max-width: 100%; max-height: 85vh; border-radius: var(--radius); }
.article-cover figcaption { max-width: 876px; margin: 10px auto 0; color: var(--ink-3); font-size: .92rem; line-height: 1.5; text-align: left; }
.prose { font-size: 1.14rem; line-height: 1.75; margin-top: 32px; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 1.2em; border-left: 3px solid var(--green); font-size: 1.35rem; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose figure { margin: 2.2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { color: var(--ink-3); font-size: .9rem; margin-top: 8px; }
.prose ul { padding-left: 1.2em; }
.source { color: var(--ink-3); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 36px; }
.report-problem { color: var(--ink-3); font-size: .9rem; margin-top: 28px; }
.source + .report-problem { margin-top: 10px; }
.pagination { display: flex; justify-content: center; gap: 20px; align-items: center; margin-top: 48px; color: var(--ink-3); }
.pagination a { font-weight: 600; }
.error-page { text-align: center; padding-top: 96px; padding-bottom: 96px; }

/* Formuláře */
.auth { padding: 72px 16px; display: flex; justify-content: center; background: var(--surface); }
.auth-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 40px; width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; }
.form-subhead { font-size: 1.15rem; margin: 18px 0 0; }
.auth-alt { text-align: center; margin: 20px 0 0; color: var(--ink-3); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.form .hint { font-weight: 400; color: var(--ink-3); font-size: .84rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=datetime-local], input[type=date], select, textarea {
    font: 400 1rem/1.45 var(--sans); color: var(--ink); background: #fff; border: 1px solid #d3d5cf; border-radius: var(--radius-sm); padding: .62em .75em; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
textarea.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .94rem; line-height: 1.6; }
input[type=file] { font-size: .9rem; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { margin-top: 5px; accent-color: var(--green); }
.check-inline { align-self: end; padding-bottom: .6em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-error { color: var(--danger); font-size: .86rem; margin: -6px 0 0; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.format-help { font-size: .9rem; color: var(--ink-2); }
.format-help summary { cursor: pointer; color: var(--green); font-weight: 600; }
.cover-preview { display: flex; gap: 14px; align-items: center; }
.cover-preview img { width: 160px; border-radius: var(--radius-sm); }

/* Tabulky */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 700; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td a { text-decoration: none; }
.table .actions { white-space: nowrap; }
.table .actions > * { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.badge { display: inline-block; padding: .22em .65em; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: #eee; color: #444; }
.badge-published { background: var(--green-soft); color: var(--green-dark); }
.badge-pending { background: #fdf0d5; color: #7a5300; }
.badge-draft { background: #efefec; color: #5b5d58; }
.badge-rejected { background: #fbeceb; color: #8f1f18; }
.badge-featured { background: var(--ink); color: #fff; }
.inline-actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-actions select { width: auto; padding: .35em .5em; font-size: .86rem; }

/* Patička */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.65); padding: 64px 0 28px; }
.site-footer h3 { color: #fff; font: 700 .74rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a, .site-footer .linklike { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; }
.footer-about { max-width: 30em; margin-top: 18px; }
.site-footer li { padding: 4px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font-size: .84rem; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal mark { background: #fff3c4; padding: 0 .25em; border-radius: 3px; }
.legal table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: .98rem; margin: 1em 0 1.5em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

/* Administrace */
.admin { background: var(--surface); }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--green-deep) 248px, transparent 248px); }
.admin-side { background: var(--green-deep); padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { padding: 0 8px; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { color: rgba(255,255,255,.72); text-decoration: none; padding: .6em .8em; border-radius: 8px; font-weight: 600; font-size: .94rem; }
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side nav a[aria-current] { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: rgba(255,255,255,.55); padding: 0 .8em; }
.admin-side-foot a, .admin-side-foot .linklike { color: rgba(255,255,255,.85); text-decoration: none; text-align: left; }
.admin-main { padding: 36px 44px 64px; max-width: 1300px; width: 100%; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-head h1 { font-size: 2rem; margin: 0; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.15rem; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px 20px; text-decoration: none; color: var(--ink-3); display: flex; flex-direction: column; font-size: .9rem; transition: border-color .15s; }
.stat:hover { border-color: var(--ink); color: var(--ink-3); }
.stat strong { font: 800 2.2rem/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.stat-alert { border-color: #f1c66b; background: #fffaf0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li > div { display: flex; flex-direction: column; min-width: 0; }
.list .muted { font-size: .84rem; }
.list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.list a:hover { color: var(--green); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.editor-side { position: sticky; top: 24px; }
.media-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.media-insert { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--surface); }
.media-insert:hover { border-color: var(--green); }
.media-insert img { width: 100%; height: 100%; object-fit: cover; }
.media-pick-item { position: relative; }
.media-pick-item .media-insert { width: 100%; }
.media-to-gallery { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.media-to-gallery:hover { filter: brightness(1.1); }
.gallery-fields { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 16px; }
.gallery-fields legend { font-weight: 600; padding: 0 6px; }
.gallery-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }

/* Fotogalerie u článku */
.gallery { margin: 40px 0 8px; }
.gallery-title { font-size: 1.35rem; margin: 0 0 14px; }
.gallery-title .muted { font-weight: 400; font-size: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.prose .gallery-item, .gallery-item { margin: 0; }
.gallery-item a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--surface); }
.prose .gallery-item img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; margin: 0; border-radius: 0; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption { font-size: .82rem; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 18, 14, .94); display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #e6efe9; font-size: .92rem; margin-top: 12px; text-align: center; max-width: 900px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lightbox { padding: 56px 8px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; } }
body.lightbox-open { overflow: hidden; }
.upload-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dropzone { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1.5px dashed #c9cbc4; border-radius: var(--radius); cursor: pointer; }
.dropzone span { color: var(--ink-3); font-size: .9rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.media-item { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-item figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.media-item figcaption > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sections-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.section-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.section-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.section-form .check { flex-direction: row; align-items: center; gap: 8px; }
.section-form .btn { align-self: flex-start; }

/* Menší obrazovky */
@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 32px 20px; gap: 12px; box-shadow: 0 16px 32px rgba(0,0,0,.08); }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); margin: 0; }
    .main-nav ul a[aria-current] { border-bottom-color: var(--line); color: var(--green); }
    .main-nav .sub-nav { display: flex; position: static; min-width: 0; padding: 0 0 0 18px; border: 0; box-shadow: none; background: none; }
    .main-nav .sub-nav a { padding: 12px 0; font-size: .98rem; border-bottom: 1px solid var(--line); }
    .nav-account { margin-left: 0; }
    .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .lead-area, .home-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .editor-grid { grid-template-columns: 1fr; }
    .editor-side { position: static; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap, .wrap-narrow, .wrap-article { padding: 0 16px; }
    .main-nav { padding: 8px 16px 20px; }
    .topbar-inner > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lead-area { padding-top: 16px; gap: 28px; }
    .lead-story { min-height: 440px; border-radius: var(--radius-sm); }
    .lead-text { padding: 24px; }
    .home-main .cards, .cards-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .field-row, .field-row-3 { grid-template-columns: 1fr; }
    .auth-card { padding: 24px; }
    .admin-shell { grid-template-columns: 1fr; background: none; }
    .admin-side { position: static; height: auto; gap: 12px; padding: 16px; }
    .admin-side nav { flex-direction: row; flex-wrap: wrap; }
    .admin-side nav a { padding: .4em .7em; font-size: .86rem; }
    .admin-side-foot { flex-direction: row; flex-wrap: wrap; gap: 14px; padding: 0; margin: 0; }
    .admin-main { padding: 20px 16px 48px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sections-list { grid-template-columns: 1fr; }
    .list li { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
@media (max-width: 760px) {
    .legal table, .legal tbody, .legal tr, .legal td { display: block; overflow: visible; }
    .legal thead { display: none; }
    .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
    .legal td { border: 0; padding: 3px 0; }
    .legal td:first-child { font-weight: 700; }
    .footer-bottom { flex-direction: column; }
}
.prose.legal { margin-top: 0; }
.legal > h2:first-child { margin-top: 0; }

/* Mapa míst */
.map-full { height: min(70vh, 620px); min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); z-index: 0; }
.map-list-title { margin-top: 40px; }
.map-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 32px; }
.map-list > li { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.map-list > li:target { background: var(--green-soft); margin: 0 -12px; padding: 14px 12px; border-radius: var(--radius-sm); }
.map-list-name { font-weight: 700; color: var(--ink); text-align: left; display: block; }
.map-list-name:hover { color: var(--green); }
.map-list-articles { margin-top: 6px; font-size: .95rem; }
.map-list-articles li { margin: 2px 0; }
.map-credit { margin-top: 24px; }
.map-pin { background: none; border: 0; }
.map-pin span { display: block; width: 26px; height: 26px; margin: -2px 0 0 -1px; border-radius: 50% 50% 50% 0; background: var(--green); border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.map-pin-shop span { background: #ea580c; }
.map-legend { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-3); }
.map-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-left: 8px; }
.map-legend-dot:first-child { margin-left: 0; }
.map-legend-shop { background: #ea580c; }
.section-map-wrap { margin-top: 28px; }
.section-map { position: relative; height: 240px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); z-index: 0; cursor: zoom-in; transition: height .25s ease; }
.section-map.is-expanded { height: min(75vh, 640px); cursor: grab; }
.section-map-toggle { position: absolute; z-index: 500; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font: 600 .9rem/1 var(--sans); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.section-map-toggle:hover { color: var(--green); }
.section-map-wrap .map-credit { margin-top: 8px; }
.map-popup-name { font: 700 1rem/1.3 var(--sans); margin: 0 0 2px; color: var(--ink); }
.map-popup-address { color: var(--ink-3); font-size: .85rem; margin: 0 0 8px; }
.map-popup ul { margin: 0; padding: 0 0 0 1.1em; font-size: .9rem; }
.map-popup li { margin: 3px 0; }
.leaflet-container { font-family: var(--sans); }
.leaflet-container a { color: var(--green); }

.place-box { margin-top: 8px; margin-bottom: 48px; }
.place-box-inner { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 16px; }
.place-mini { height: 160px; border-radius: var(--radius-sm); z-index: 0; background: var(--line); }
.place-box-text p { margin: 0 0 .3em; }
.place-box-name { font-weight: 700; font-size: 1.1rem; }
.place-box-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: .6em !important; font-size: .95rem; }

.place-fields { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; margin: 8px 0 0; display: grid; gap: 14px; min-width: 0; }
.place-fields legend { font-weight: 600; padding: 0 6px; }
.place-picker { height: 240px; border-radius: var(--radius-sm); border: 1px solid var(--line); z-index: 0; }
.place-picker-help .linklike { color: var(--green); text-decoration: underline; }
@media (max-width: 640px) {
    .place-box-inner { grid-template-columns: 1fr; }
    .map-full { height: 60vh; }
}

/* Verze 19: Vše o Zelené bráně */
.lead-list { border-top: 0; padding-top: 0; }
.zb-btn { margin-bottom: 16px; }
.lead-list-label { border-top: 3px solid var(--ink); padding-top: 14px; }
.site-footer a.footer-zb { color: #fff; margin-top: 6px; }
.site-footer a.footer-zb:hover { color: #fff; }
.zb-tag { display: inline-block; margin-left: 10px; padding: .15em .7em; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; vertical-align: middle; }
.zb-tag:hover { background: var(--green); color: #fff; }
.badge-zb { background: var(--green-soft); color: var(--green-dark); }
.filters .check { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Verze 20: hledání v článcích */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-form { display: flex; gap: 8px; align-items: stretch; }
.search-form input[type=search] { flex: 1 1 auto; min-width: 0; margin: 0; }
.search-form .btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.search-form-side { margin: -4px 0 18px; }
.search-form-side .btn { padding-left: 14px; padding-right: 14px; }
.search-form-page { max-width: 640px; margin-top: 18px; }
.search-count { margin: 12px 0 0; color: var(--ink-2); }
.search-results { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.search-hit { padding: 20px 0; border-bottom: 1px solid var(--line); }
.search-hit:first-child { padding-top: 0; }
.search-hit-meta { margin: 0 0 4px; font-size: .85rem; color: var(--ink-3); display: flex; gap: 12px; align-items: baseline; }
.search-hit-meta .kicker { margin: 0; }
.search-hit-title { font-size: 1.35rem; margin: 0 0 .3em; }
.search-hit-title a { color: var(--ink); text-decoration: none; }
.search-hit-title a:hover { color: var(--green); }
.search-hit-snippet { margin: 0; color: var(--ink-2); }
.search-results mark { background: var(--green-soft); color: var(--green-dark); padding: 0 .1em; border-radius: 3px; font-weight: 600; }
.search-form input[type=search] { border-radius: 999px; padding-left: 1em; }

/* Návštěvnost (administrace) */
.period { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-on { background: var(--green); border-color: var(--green); color: #fff; }
.chip-on:hover { color: #fff; }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-change { font: 700 .8rem/1 var(--sans); letter-spacing: 0; vertical-align: middle; padding: .25em .5em; border-radius: 999px; }
.stat-change.up { background: var(--green-soft); color: var(--green-dark); }
.stat-change.down { background: #fbeceb; color: #8f1f18; }
.stat-chart { overflow-x: auto; }
.stat-chart svg { display: block; width: 100%; min-width: 560px; height: auto; }
.stat-chart .grid { stroke: var(--line); stroke-width: 1; }
.stat-chart .baseline { stroke: var(--ink-3); stroke-width: 1; }
.stat-chart .axis { fill: var(--ink-3); font: 500 11px var(--sans); }
.stat-chart .bar path { fill: var(--green); }
.stat-chart .bar .hit { fill: transparent; }
.stat-chart .bar:hover .hit { fill: var(--green-soft); }
.stat-chart .bar:hover path { fill: var(--green-dark); }
.stat-table { margin-top: 14px; }
.stat-table summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: .9rem; }
.stat-table .table-wrap { margin-top: 10px; max-height: 360px; overflow-y: auto; }
.stat-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-plain td:first-child, .table-plain th:first-child { padding-left: 0; }
.table-plain td:last-child, .table-plain th:last-child { padding-right: 0; }
.meter { display: grid; grid-template-columns: 5.5em 1fr 3.5em; align-items: center; gap: 12px; padding: 6px 0; font-size: .93rem; }
.meter .num { text-align: right; font-variant-numeric: tabular-nums; }
.meter-track { height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.meter-track span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
@media (max-width: 1100px) { .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-cols { grid-template-columns: minmax(0, 1fr); } }
.admin-main:has(.stat-chart) { min-width: 0; }

/* Verze 24: Akce v Pardubicích (modrá ladí se zelenou, jako voda Chrudimky u brány) */
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.events-btn { margin: -6px 0 16px; }
.events-btn svg { flex: none; }
.events-btn-count { margin-left: .3em; padding: .1em .6em; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .78rem; font-weight: 700; }
.main-nav .nav-events a { color: var(--blue); }
.main-nav .nav-events a[aria-current="page"] { color: var(--blue-dark); }
.site-footer a.footer-zb.btn-blue { margin-top: 2px; }
.page-head-blue { background: linear-gradient(180deg, var(--blue-soft), transparent); }
.page-head-blue .eyebrow { color: var(--blue); }
.events-page { max-width: 900px; }
.event-day { margin-bottom: 36px; }
.event-day-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.event-day-today .event-day-head { border-bottom-color: var(--blue); }
.event-day-head h2 { margin: 0; font-size: 1.45rem; }
.event-day-head h2 time::first-letter { text-transform: uppercase; }
.event-day-rel { display: inline-block; margin-right: 10px; padding: .12em .65em; border-radius: 999px; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: .25em; }
.event-day-rel + time::first-letter { text-transform: none; }
.weather { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-size: .95rem; }
.weather-icon { font-size: 1.35rem; line-height: 1; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--blue); padding-top: 2px; }
.event-time .muted { font-weight: 500; }
.event-until { font-weight: 600; font-size: .9rem; }
.event-title { margin: 0 0 4px; font-size: 1.12rem; line-height: 1.35; }
.event-title a { color: var(--ink); text-decoration: none; }
.event-title a:hover { color: var(--blue); text-decoration: underline; }
.event-tag { display: inline-block; margin-left: 8px; padding: .12em .6em; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: .15em; }
.event-meta { margin: 0 0 4px; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.event-desc { margin: 0 0 4px; color: var(--ink-2); }
.event-links { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.event-links a { color: var(--blue); }
.event-none { padding: 14px 0; margin: 0; }
.event-ongoing-label { margin-top: 18px; color: var(--blue); }
.event-list-ongoing .event { padding: 10px 0; }
.event-list-ongoing .event-title { font-size: 1rem; }
.events-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 8px 0 24px; }
.events-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.event-box { margin-bottom: 32px; border-left: 4px solid var(--blue); background: var(--blue-soft); border-radius: var(--radius-sm); padding: 14px 18px; }
.event-box .label { color: var(--blue-dark); margin-bottom: .4em; }
.event-box ul { margin-bottom: 8px; }
.event-box a { color: var(--blue); font-weight: 600; }
.badge-hidden { background: var(--surface); color: var(--ink-3); }
@media (max-width: 640px) {
    .event { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
    .event-day-head h2 { font-size: 1.2rem; }
}

/* Verze 25: mapa akcí (modré body) */
.map-pin-event span { background: var(--blue); }
.map-legend-event { background: var(--blue); }
.map-credit .map-legend-dot { margin: 0 4px 0 0; vertical-align: -1px; }
.events-map-wrap { margin-top: 28px; max-width: 900px; }
.map-popup-event a { color: var(--blue); font-weight: 600; }
.map-popup-event span { display: block; color: var(--ink-3); font-size: .82rem; }
.map-list-event .event-tag { margin-left: 0; }

/* Verze 26: Vtip dne a Pardubické vtipy */
.joke-box { margin: 0 0 18px; padding: 14px 16px 12px; border-radius: 12px; background: #fdf4e3; border: 1px solid #f0dcb4; color: #3b2a12; }
.joke-box-label { display: flex; align-items: center; gap: .4em; margin: 0 0 .5em; font: 700 .75rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #9a5b13; }
.joke-text p { margin: 0 0 .5em; }
.joke-box .joke-text { font-size: .98rem; line-height: 1.5; }
.joke-more { display: inline-block; margin-top: 2px; font-size: .88rem; font-weight: 700; color: #9a5b13; }
.joke-more:hover { color: #6e400c; }
.page-head-joke { background: linear-gradient(180deg, #fdf4e3, transparent); }
.page-head-joke .eyebrow { color: #9a5b13; }
.jokes-page { max-width: 760px; }
.joke-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.joke-item-today { padding: 18px 20px; border: 1px solid #f0dcb4; border-radius: 12px; background: #fdf4e3; }
.joke-date { margin: 0 0 .4em; font-size: .85rem; color: var(--ink-3); }
.joke-today { display: inline-block; padding: .05em .55em; border-radius: 999px; background: #9a5b13; color: #fff; font-weight: 700; font-size: .78rem; }
.joke-admin-today .joke-text { padding: 12px 14px; border-radius: 10px; background: #fdf4e3; margin-bottom: 8px; }

/* Verze 27: článek do kalendáře akcí */
.badge-event { background: var(--blue-soft); color: var(--blue-dark); }
.check-event input { accent-color: var(--blue); }
.event-fields { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 14px 16px 16px; margin: 4px 0 0; display: flex; flex-direction: column; gap: 14px; }
.event-fields[hidden] { display: none; }
.event-fields legend { font-weight: 700; color: var(--blue-dark); padding: 0 6px; }
.event-fields .flash, .event-fields > p { margin: 0; }
