/* ===== Písma (lokálně, bez Google Fonts) ===== */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2");
  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: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2");
  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: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2");
  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: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2");
  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: "Barlow"; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-latin-ext-400-normal.woff2) format("woff2");
  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: "Barlow"; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-latin-400-normal.woff2) format("woff2");
  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: "Barlow"; font-weight: 400; font-style: italic; font-display: swap;
  src: url(fonts/barlow-latin-ext-400-italic.woff2) format("woff2");
  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: "Barlow"; font-weight: 400; font-style: italic; font-display: swap;
  src: url(fonts/barlow-latin-400-italic.woff2) format("woff2");
  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: "Barlow"; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-latin-ext-600-normal.woff2) format("woff2");
  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: "Barlow"; font-weight: 600; font-display: swap;
  src: url(fonts/barlow-latin-600-normal.woff2) format("woff2");
  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; }

/* ===== Základ ===== */
:root {
  --red: #b3121b;
  --red-dark: #8a0d14;
  --ink: #17212b;
  --steel: #56626d;
  --paper: #eef0f1;
  --white: #fff;
  --line: #d3d8db;
  --signal: #f2c200;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .15em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.45rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 99; background: var(--white); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
time, .nowrap { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== Hlavička ===== */
.editbar { background: var(--ink); color: #c9d0d6; font-size: .9rem; }
.editbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 6px; padding-bottom: 6px; }
.editbar a { color: var(--white); }
.editbar span { margin-right: auto; }

.masthead { background: var(--red); color: var(--white); }
.masthead-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-logo { width: auto; height: 92px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 700 clamp(2.4rem, 6vw, 4.2rem)/.9 var(--display); letter-spacing: -.005em; }
.brand-sub { font-size: 1rem; opacity: .9; margin-top: 4px; }

.mainnav { background: var(--red-dark); }
.mainnav .wrap { display: flex; flex-wrap: wrap; }
.mainnav a {
  color: var(--white); text-decoration: none; font: 600 1.3rem/1 var(--display);
  padding: 14px 18px 12px; border-bottom: 4px solid transparent;
}
.mainnav a:first-child { margin-left: -18px; }
.mainnav a:hover { background: rgba(0, 0, 0, .18); color: var(--white); }
.mainnav a[aria-current="page"] { border-bottom-color: var(--signal); }
.nav-toggle { display: none; }

/* reflexní pruh jako na zádi zásahového vozidla */
.reflex {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, var(--red) 14px 28px);
}

/* ===== Hlavní článek na úvodu ===== */
.lead { background: var(--white); border-bottom: 1px solid var(--line); }
.lead-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 0; padding: 0; }
.lead-media { display: block; background: var(--ink); aspect-ratio: 16 / 10; overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-text { padding: 36px 36px 36px 40px; align-self: center; }
.lead-text time { display: block; color: var(--steel); font-weight: 600; margin-bottom: 6px; }
.lead-text h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.lead-text h1 a { color: var(--ink); text-decoration: none; }
.lead-text h1 a:hover { color: var(--red); }
.lead-text p { margin: 0 0 22px; }

.media-empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ink); }
.media-empty img { width: 34%; max-width: 110px; opacity: .8; }

/* ===== Sloupce ===== */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.page { padding-top: 40px; padding-bottom: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--ink); margin-bottom: 18px; }
.section-head h2 { margin: 0 0 6px; }
.list-title { font-size: 1.75rem; border-bottom: 3px solid var(--ink); padding-bottom: 6px; margin-bottom: 8px; }
.strip { margin-bottom: 44px; }

/* ===== Výpis příspěvků ===== */
.post-row { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-row-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.post-row-img img { width: 100%; height: 100%; object-fit: cover; }
.post-row time { color: var(--steel); font-size: .95rem; font-weight: 600; }
.post-row h3 { margin: 2px 0 8px; }
.post-row h3 a { color: var(--ink); text-decoration: none; }
.post-row h3 a:hover { color: var(--red); text-decoration: underline; }
.post-row p { margin: 0; color: #36424d; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-weight: 600; }
.empty { color: var(--steel); padding: 18px 0; }

/* ===== Kalendář akcí ===== */
.ev-date {
  flex: none; width: 66px; display: flex; flex-direction: column; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-top: 0; text-align: center; line-height: 1;
}
.ev-mon { order: -1; align-self: stretch; background: var(--red); color: var(--white); font: 600 .95rem/1 var(--display); padding: 5px 0 4px; }
.ev-day { font: 700 2.1rem/1 var(--display); color: var(--ink); padding-top: 6px; }
.ev-wd { font-size: .8rem; color: var(--steel); padding: 2px 0 6px; }

.ev-list { list-style: none; margin: 0 0 48px; padding: 0; }
.ev-row { border-bottom: 1px solid var(--line); }
.ev-link { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; color: var(--ink); text-decoration: none; }
.ev-link:hover .ev-title { color: var(--red); text-decoration: underline; }
.ev-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-title { font: 700 1.5rem/1.1 var(--display); }
.ev-meta { color: #36424d; }
.ev-flag { align-self: flex-start; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--red); border: 1px solid currentColor; padding: 2px 7px; border-radius: 2px; }
.ev-thumb { flex: none; width: 150px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink); }

.ev-year { font-size: 1.6rem; color: var(--red); margin: 22px 0 6px; }
.ev-archive-list { list-style: none; margin: 0; padding: 0; }
.ev-archive-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ev-archive-list time { color: var(--steel); font-weight: 600; }
.ev-archive-list a { font-weight: 600; }
.ev-archive-list .muted { font-size: .92rem; text-align: right; }

.side-events { list-style: none; margin: 0 0 10px; padding: 0; }
.side-events li { border-bottom: 1px solid var(--line); }
.side-events a { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink); text-decoration: none; }
.side-events a:hover strong { color: var(--red); text-decoration: underline; }
.side-events .ev-date { width: 52px; }
.side-events .ev-day { font-size: 1.6rem; padding-top: 4px; }
.side-events .ev-wd { padding-bottom: 4px; }
.side-events strong { display: block; font: 700 1.15rem/1.1 var(--display); }
.side-events .muted { font-size: .9rem; }

.event h1 { margin-top: 6px; }
.ev-facts { margin: 0 0 20px; display: grid; gap: 8px; }
.ev-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; }
.ev-facts dt { font: 700 1.15rem/1.2 var(--display); color: var(--red); }
.ev-facts dd { margin: 0; font-size: 1.15rem; font-weight: 600; }
.ev-map { font-size: .95rem; font-weight: 400; margin-left: 6px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.ev-poster { margin: 28px 0 0; max-width: 640px; }
.ev-poster img { border: 1px solid var(--line); }
.badge-muted { background: var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }

/* ===== Galerie ===== */
.album-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; margin-bottom: 36px; }
.album-tile { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.album-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); margin-bottom: 8px; }
.album-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-tile:hover .album-img img { transform: scale(1.04); }
.album-title { font: 700 1.25rem/1.1 var(--display); }
.album-tile:hover .album-title { color: var(--red); }
.album-meta { display: flex; gap: 10px; color: var(--steel); font-size: .92rem; }
.year { font-size: 2.6rem; color: var(--red); border-bottom: 3px solid var(--ink); padding-bottom: 4px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 18px 0; }
.photo-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ink); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid a:hover img { opacity: .85; }

.crumbs { margin: 0 0 6px; font-weight: 600; }
.page-title { border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.album-desc { max-width: 70ch; }

/* ===== Článek ===== */
.article-head { padding-top: 40px; }
.article-head h1 { max-width: 20ch; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--steel); font-weight: 600; margin: 0 0 10px; }
.perex { font-size: 1.25rem; line-height: 1.5; color: #36424d; max-width: 60ch; }
.article-cover { margin-top: 12px; margin-bottom: 0; }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.article .columns { padding-top: 28px; }
.badge { display: inline-block; background: var(--signal); color: var(--ink); font: 600 .8rem/1 var(--text); padding: 4px 7px; border-radius: 2px; vertical-align: middle; }
.post-album { margin-top: 40px; }
.share { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }

/* ===== Text ===== */
.prose { max-width: 70ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--red); color: #36424d; font-style: italic; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { color: var(--steel); font-size: .92rem; margin-top: 6px; }
.prose img { margin: .6em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--display); font-size: 1.05rem; border-bottom: 2px solid var(--ink); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Boční panel ===== */
.sidebar { font-size: 1rem; }
.side-block { margin-bottom: 36px; }
.side-block h2 { font-size: 1.5rem; border-bottom: 3px solid var(--red); padding-bottom: 4px; }
.sidebar .prose { max-width: none; }
.sidebar .prose h2 { margin-top: 0; }
.sidebar .prose * + h2 { margin-top: 1.4em; }
.sidebar .prose table { font-size: .9rem; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links a { display: block; padding: 8px 0; font-weight: 600; text-decoration: none; }
.side-links a:hover { text-decoration: underline; }

/* ===== EU a sponzoři ===== */
.eu-strip { background: var(--white); border-top: 1px solid var(--line); }
.eu-strip-inner { display: flex; align-items: center; gap: 18px; padding-top: 16px; padding-bottom: 16px; color: #26489a; text-decoration: none; }
.eu-strip-inner:hover { color: #26489a; }
.eu-strip-inner:hover strong { text-decoration: underline; }
.eu-strip-text { display: flex; flex-direction: column; flex: 1; font-size: .95rem; line-height: 1.35; }
.eu-strip-text span { color: #333; }
.eu-strip img { flex: none; }
.eu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; }
.eu-logos { display: flex; gap: 20px; align-items: center; margin-top: 24px; }
.eu-poster { display: block; border: 1px solid var(--line); background: var(--white); }

.sponsors { margin-bottom: 32px; }
.sponsors h2 { color: var(--white); font-size: 1.5rem; }
.sponsors ul { list-style: none; margin: 0; padding: 0 0 32px; border-bottom: 1px solid #33404c; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.sponsors img { height: 56px; width: auto; max-width: 220px; object-fit: contain; opacity: .9; }
.sponsors a:hover img { opacity: 1; }

/* ===== Patička ===== */
.site-footer { background: var(--ink); color: #c9d0d6; padding: 40px 0 28px; font-size: .98rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-name { font: 700 2rem/1 var(--display); color: var(--white); margin: 0 0 6px; }
.footer-grid p { margin: 0 0 6px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: 6px; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid #33404c; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.login-link { opacity: .7; }

/* ===== Tlačítka, formuláře ===== */
.btn {
  display: inline-block; background: var(--red); color: var(--white); border: 0; cursor: pointer;
  font: 600 1.2rem/1 var(--display); padding: 12px 20px 11px; text-decoration: none; border-radius: 2px;
}
.btn:hover { background: var(--red-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn-ghost:hover { background: var(--red); }
.btn-danger { background: var(--ink); }
.btn-danger:hover { background: #000; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.linklike.danger { color: var(--red); }

.notice { padding: 12px 16px; margin: 16px 0; border-left: 5px solid; background: var(--white); }
.notice p { margin: 0; }
.notice.ok { border-color: #2e7d32; }
.notice.err { border-color: var(--red); }

.form { display: grid; gap: 16px; max-width: 560px; }
.form-wide { max-width: 980px; }
.form label, .field { display: grid; gap: 5px; font-weight: 600; }
.form .label { font-weight: 600; }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
input, select, textarea {
  font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--white);
  border: 1px solid #b7bec4; border-radius: 2px; padding: 9px 10px; width: 100%;
}
input[type=checkbox], input[type=radio] { width: auto; }
input[type=file] { border-style: dashed; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--signal); border-color: var(--ink); }
.form-actions { display: flex; align-items: center; gap: 18px; }
.help { font-weight: 400; font-size: .92rem; color: var(--steel); }
.help summary { cursor: pointer; }
code { background: #e3e7ea; padding: 1px 4px; border-radius: 2px; font-size: .9em; }

/* ===== Administrace ===== */
.admin-body { background: #f5f6f7; }
.admin-top { background: var(--ink); color: var(--white); border-bottom: 6px solid var(--red); }
.admin-top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.admin-brand { font: 700 1.5rem/1 var(--display); color: var(--white); text-decoration: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.admin-nav a, .admin-user a, .admin-user .linklike { color: #dfe4e8; font-weight: 600; text-decoration: none; }
.admin-nav a:hover, .admin-user a:hover { color: var(--white); text-decoration: underline; }
.admin-user { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.admin-user form { margin: 0; }
.admin-main { padding-top: 28px; padding-bottom: 80px; }
.admin-main h1 { font-size: 2.4rem; }
.admin-main h2 { margin-top: 1.6em; }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }
.muted { color: var(--steel); }
table.list { width: 100%; border-collapse: collapse; background: var(--white); margin-bottom: 18px; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: .9rem; color: var(--steel); }
.right { text-align: right !important; }
.thumb-cell { width: 76px; }
.thumb-cell img { width: 64px; height: 48px; object-fit: cover; }
.cover-preview { max-width: 260px; }
.logo-preview { max-width: 120px; background: var(--red); padding: 8px; }
.danger-zone { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); }

.editor { display: grid; gap: 0; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #e3e7ea; border: 1px solid #b7bec4; border-bottom: 0; }
.editor-bar button, .editor-img {
  font: 600 .95rem/1 var(--text); background: var(--white); border: 1px solid #b7bec4; border-radius: 2px;
  padding: 7px 10px; cursor: pointer; color: var(--ink);
}
.editor-bar button:hover, .editor-img:hover { border-color: var(--ink); }
.editor-preview-btn { margin-left: auto; }
.editor-preview-btn[aria-pressed="true"] { background: var(--ink) !important; color: var(--white) !important; }
.editor textarea { border-radius: 0; font-size: 1rem; line-height: 1.55; min-height: 220px; }
.editor-preview { background: var(--white); border: 1px solid #b7bec4; padding: 16px 20px; min-height: 220px; font-weight: 400; }
.editor .help { margin-top: 6px; }
.form .editor-img { display: inline-block; font-weight: 600; }

.upload-box { margin: 10px 0 28px; }
.drop { display: block; position: relative; padding: 28px; background: var(--white); border: 2px dashed #9aa4ad; cursor: pointer; text-align: center; }
.drop:hover, .drop.over { border-color: var(--red); background: #fff7f7; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-progress { margin-top: 12px; }
.bar { height: 10px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, var(--red) 10px 20px); transition: width .2s; }
.upload-status { margin: 6px 0 0; font-weight: 600; }

.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.admin-photo { background: var(--white); border: 1px solid var(--line); padding: 8px; display: grid; gap: 6px; min-width: 0; }
.admin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-photo input { padding: 6px 8px; font-size: .92rem; }
.admin-photo-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .9rem; }
.admin-photo-opts label { display: flex; align-items: center; gap: 4px; }
.sort-input { width: 64px !important; }
.admin-photo-opts .del { color: var(--red); margin-left: auto; }
.sticky-actions { position: sticky; bottom: 0; background: #f5f6f7; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 14px; }

.login-box { max-width: 420px; margin: 8vh auto; padding: 32px; background: var(--white); border-top: 8px solid var(--red); }
.login-box h1 { font-size: 2rem; }
.login-brand { display: flex; align-items: center; gap: 10px; font: 700 1.4rem/1 var(--display); color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.login-brand img { width: 44px; }

/* ===== Lightbox ===== */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 18, .96); display: grid; grid-template-rows: 1fr auto; }
.lb[hidden] { display: none; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 20px 64px 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #dfe4e8; padding: 12px 20px 16px; }
.lb-caption { flex: 1; }
.lb button { background: none; border: 0; color: var(--white); font: 600 1.1rem/1 var(--text); cursor: pointer; padding: 10px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.6rem !important; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }

/* ===== Mobil ===== */
@media (max-width: 960px) {
  .columns { grid-template-columns: 1fr; gap: 24px; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-grid { padding: 0; }
  .lead-text { padding: 22px 20px 28px; }
  .album-strip { grid-template-columns: repeat(2, 1fr); }
  .sidebar { border-top: 3px solid var(--ink); padding-top: 24px; }
  .eu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .brand-logo { height: 58px; }
  .masthead-top { padding-top: 14px; padding-bottom: 12px; }
  .nav-toggle {
    display: block; background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7);
    font: 600 1.15rem/1 var(--display); padding: 8px 12px; border-radius: 2px; cursor: pointer;
  }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav .wrap { flex-direction: column; padding: 0; }
  .mainnav a, .mainnav a:first-child { margin: 0; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.12); border-left: 5px solid transparent; }
  .mainnav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.12); border-left-color: var(--signal); }
  .post-row { grid-template-columns: 110px 1fr; gap: 14px; }
  .post-row p { display: none; }
  .post-row h3 { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .ev-thumb { width: 84px; }
  .ev-title { font-size: 1.3rem; }
  .ev-archive-list li { grid-template-columns: 52px minmax(0, 1fr); }
  .ev-archive-list .muted { grid-column: 2; text-align: left; }
  .row-actions { white-space: normal; }
  .row-actions .act { display: inline-block; margin: 2px 12px 2px 0; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .lb-stage { padding: 10px 0 0; }
  .lb-prev, .lb-next { display: none; }
  .admin-user { margin-left: 0; }
  .eu-strip-inner { flex-wrap: wrap; }
  .eu-strip-text { flex-basis: 100%; order: 3; }
  .sponsors img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.field > p { margin: 0; }

/* ===== Sdílení do WhatsAppu ===== */
.wa-box { background: var(--white); border: 1px solid var(--line); border-left: 5px solid #128c7e; padding: 14px 18px; margin: 0 0 24px; max-width: 980px; }
.wa-box.wa-new { background: #eefaf6; }
.wa-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.wa-head p { margin: 2px 0 0; }
.btn-wa { background: #128c7e; }
.btn-wa:hover { background: #0b6b60; }
.wa-box details { margin-top: 10px; font-size: .92rem; }
.wa-box summary { cursor: pointer; color: var(--steel); }
.wa-preview { white-space: pre-wrap; font: .95rem/1.45 var(--text); background: #f5f6f7; padding: 10px 12px; margin: 8px 0 0; }
.wa-link { color: #128c7e; font-weight: 600; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions .act { margin-left: 12px; font-weight: 600; }
.row-actions form { display: inline; margin: 0; }
.row-title { font-weight: 600; }
.ev-row { position: relative; }
.ev-edit { position: absolute; right: 0; top: 18px; z-index: 1; background: var(--ink); color: var(--white); font-size: .85rem; font-weight: 600; padding: 3px 8px; text-decoration: none; }
.ev-edit:hover { background: var(--red); color: var(--white); }
.ev-edit-inline { font-size: .85rem; font-weight: 600; margin-left: 8px; }
.fb-link { color: #1b5fc1; font-weight: 600; }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-fb { background: #1b5fc1; }
.btn-fb:hover { background: #134a99; }
.copy-note { margin: 10px 0 0; padding: 8px 12px; background: #eef4fd; border-left: 4px solid #1b5fc1; font-weight: 600; }
.copy-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; font-weight: 600; max-width: 90vw; }
