/*
Theme Name: ZOMOT
Theme URI: https://zomot.sk
Description: Vlastná téma pre Združenie obcí mestskej oblasti Trnava. Moderné, prístupné (WCAG 2.1 AA), bez externých závislostí, písma hostované lokálne.
Author: Norbert Horgosi
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: zomot
*/

/* =========================================================
   1. Tokeny
   ========================================================= */
:root {
	--navy: #01427c; --navy-2: #0a5aa3; --navy-deep: #062f57;
	--teal: #00b4b5; --teal-soft: #dff6f6; --teal-ink: #00787a;
	--bg: #f3f6f9; --surface: #ffffff; --surface-2: #e9eef4;
	--ink: #14212e; --muted: #5b6b7c; --line: #d7dfe8;
	--shadow: 0 12px 32px rgba(1, 66, 124, .10);
	--radius: 14px; --radius-sm: 9px;
	--font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1200px;
	--fs: 17px;
}
html.theme-green {
	--navy: #166534; --navy-2: #1f7a45; --navy-deep: #0b3d23;
	--teal: #a3e635; --teal-soft: #ecf7dc; --teal-ink: #4d7c0f;
	--bg: #f4f7f3; --surface-2: #e8efe5; --line: #d6e0d3;
	--shadow: 0 12px 32px rgba(22, 101, 52, .10);
}
html.theme-red {
	--navy: #a3161e; --navy-2: #c2262f; --navy-deep: #5c0c12;
	--teal: #f2b705; --teal-soft: #fdf3d6; --teal-ink: #8a5a00;
	--bg: #faf6f4; --surface-2: #f4e9e6; --line: #e8d8d5;
	--shadow: 0 12px 32px rgba(163, 22, 30, .10);
}

/* =========================================================
   2. Základ
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--fs); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-2); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: #032b2b; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.more { font-weight: 700; color: var(--navy); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }
.chip { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--teal); color: #032b2b; width: fit-content; vertical-align: middle; }
.chip-soft { background: var(--teal-soft); color: var(--teal-ink); }
.badge { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; background: var(--teal-soft); color: var(--teal-ink); margin-right: 8px; vertical-align: 1px; }

/* Tlačidlá */
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 11px 20px; border-radius: 10px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-teal { background: var(--teal); color: #032b2b; }
.btn-teal:hover { color: #032b2b; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--navy); border-color: var(--navy); }

/* =========================================================
   3. Horná lišta a hlavička
   ========================================================= */
.topbar { background: var(--navy-deep); color: #dbe7f3; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 20px; align-items: center; min-height: 36px; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; padding: 6px 0; }
.tb-item:hover { color: #fff; text-decoration: underline; }
.topbar .sp { flex: 1; }
.theme-switch { display: flex; align-items: center; gap: 8px; }
.ts-label { font-weight: 700; font-size: .8rem; color: #dbe7f3; }
.ts-dots { display: inline-flex; gap: 3px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 50%; padding: 3px; line-height: 0; cursor: pointer; }
.theme-switch button:hover .sw { border-color: #fff; }
.theme-switch button[aria-pressed="true"] { background: #fff; }
.theme-switch button[aria-pressed="true"] .sw { border-color: #fff; }
.sw { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 2px solid rgba(255, 255, 255, .7); }
.sw-blue { background: #01427c; }
.sw-green { background: #166534; }
.sw-red { background: #a3161e; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(1, 66, 124, .10); }
.site-header > .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-logo { height: 56px; width: auto; }
.brand-text { line-height: 1.1; }
.brand-text b { font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--navy); display: block; letter-spacing: .01em; text-transform: uppercase; max-width: 22ch; }
.brand-text span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav { margin-left: auto; }
.nav-list, .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: 2px; align-items: center; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { text-decoration: none; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: .95rem; padding: 9px 12px; border-radius: 9px; color: var(--ink); }
.nav-list > li > a:hover { background: var(--surface-2); color: var(--navy); }
.nav-list > li.is-current > a { color: var(--navy); background: var(--teal-soft); }
.sub-toggle { background: none; border: 0; color: var(--muted); padding: 6px 4px; margin-left: -6px; display: grid; place-items: center; border-radius: 6px; }
.sub-toggle:hover { color: var(--navy); }
.sub-menu { position: absolute; top: 100%; left: 0; margin-top: 8px; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 60; }
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-list > li.is-open > .sub-menu, .nav-list > li.is-focus > .sub-menu, .nav-list > li:hover > .sub-menu { display: block; }
.nav-list > li.has-children::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.sub-menu a:hover, .sub-menu .is-current > a { background: var(--teal-soft); color: var(--navy); }
.hdr-tools { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.search-panel { border-top: 1px solid var(--line); background: var(--surface-2); }
.search-panel form, .search-inline { display: flex; gap: 10px; padding: 14px 0; }
.search-panel input, .search-inline input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.search-inline { padding: 0 0 22px; max-width: 640px; }

/* =========================================================
   4. Úvodná stránka
   ========================================================= */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; min-height: 460px; display: flex; align-items: center; }
html.theme-green .btn-teal, html.theme-green .chip, html.theme-green .skip-link, html.theme-red .btn-teal, html.theme-red .chip, html.theme-red .skip-link { color: #1f1400; }
/* Štýl „mozaika erbov“ – celoplošná mapa regiónu (OpenStreetMap, sivá, zafarbená farbou schémy) */
.hero-erby { background-color: var(--navy-deep); }
.hero-erby.has-map { background-image: url(assets/img/mapa-pozadie.jpg); background-image: image-set(url(assets/img/mapa-pozadie.webp) type("image/webp"), url(assets/img/mapa-pozadie.jpg) type("image/jpeg")); background-size: 150% auto; background-position: 40% 69%; background-blend-mode: multiply; }
.mapa-full { position: absolute; inset: 0; pointer-events: none; }
.mapa-full .mapa-hranice { width: 100%; height: 100%; display: block; }
/* Mozaika erbov: vpravo od textovej karty (karta má 640 px vo .wrap), všetkých 14 erbov v troch radoch, žiadny nie je schovaný pod textom */
.strip { position: absolute; top: 0; bottom: 0; left: calc(50% - min(var(--wrap), 100%) / 2 + 684px); right: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 10px 10px; padding: 22px 0 62px; opacity: .6; }
.strip img { width: calc(20% - 10px); height: auto; max-height: 104px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.hero-erby::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(6, 47, 87, .94) 0%, rgba(6, 47, 87, .72) 45%, rgba(6, 47, 87, .16) 100%); }
html.theme-green .hero-erby::after { background: linear-gradient(90deg, rgba(11, 61, 35, .94) 0%, rgba(11, 61, 35, .72) 45%, rgba(11, 61, 35, .16) 100%); }
html.theme-red .hero-erby::after { background: linear-gradient(90deg, rgba(92, 12, 18, .94) 0%, rgba(92, 12, 18, .72) 45%, rgba(92, 12, 18, .16) 100%); }
/* Štýl „mapa regiónu“ */
.hero-mapa { min-height: 470px; }
.hero-mapa::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 78% 50%, rgba(255, 255, 255, .06) 0%, transparent 70%); }
.hero-mapa::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(6, 47, 87, .9) 0%, rgba(6, 47, 87, .82) 30%, rgba(6, 47, 87, .4) 50%, rgba(6, 47, 87, .08) 62%); }
html.theme-green .hero-mapa::after { background: linear-gradient(90deg, rgba(11, 61, 35, .9) 0%, rgba(11, 61, 35, .82) 30%, rgba(11, 61, 35, .4) 50%, rgba(11, 61, 35, .08) 62%); }
html.theme-red .hero-mapa::after { background: linear-gradient(90deg, rgba(92, 12, 18, .9) 0%, rgba(92, 12, 18, .82) 30%, rgba(92, 12, 18, .4) 50%, rgba(92, 12, 18, .08) 62%); }
/* Mapa regiónu s erbami na polohe obcí */
.mapa-wrap { position: absolute; inset: 0; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; pointer-events: none; }
.mapa-mobil { display: none; }
/* bez transform – vytvoril by kontext vrstiev a podklad by sa neprelínal (multiply) s farbou hero */
.mapa { position: absolute; right: -2%; top: 10px; height: calc(100% - 62px); aspect-ratio: 640 / 400; }
.mapa-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; }
.mapa-svg-m { display: none; }
/* Podklad (OpenStreetMap, sivý, zafarbený schémou) je väčší než plátno s erbami a siaha cez celé hero.
   Percentá vypočítal tools/build_map_hero.py – pri zmene podkladu ich treba prevziať z jeho výpisu. */
.mapa-raster { position: absolute; left: -220%; top: -60%; width: 480%; height: 220%; display: block; z-index: 0; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mapa-raster img { width: 100%; height: 100%; display: block; }
.mo { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .5); stroke-width: 1.2; stroke-linejoin: round; transition: fill .2s; }
.mo-trnava { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .6); }
/* .me nemá z-index ani transform (vytvorili by kontext vrstiev): názvy (span) tak ležia nad všetkými erbami.
   Vycentrovanie cez záporné okraje: erb má pomer 400:460, 56 % výšky = 0,644 šírky. */
.me { --mw: 10%; position: absolute; left: var(--x); top: var(--y); width: var(--mw); margin-left: calc(var(--mw) / -2); margin-top: calc(var(--mw) * -.644); text-decoration: none; pointer-events: auto; }
.me img { position: relative; z-index: 3; display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); transition: transform .25s; }
.me:hover img, .me:focus-visible img { z-index: 5; }
.me:hover span, .me:focus-visible span { z-index: 6; }
.me:hover img, .me:focus-visible img { transform: scale(1.14); }
.me span { position: absolute; z-index: 4; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 1px; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: .62rem; line-height: 1.2; color: #fff; background: rgba(0, 0, 0, .5); padding: 2px 7px; border-radius: 999px; pointer-events: none; transition: background .2s, color .2s; }
.me:hover span, .me:focus-visible span { background: #fff; color: var(--navy-deep); }
.mapa-legend { position: absolute; left: 4%; bottom: 2%; font-family: var(--font-head); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 56px; padding-bottom: 104px; }
.hero-card { max-width: 640px; position: relative; z-index: 4; }
.hero-mapa .hero-card { max-width: 560px; }
.hero .eyebrow { color: var(--teal); }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; margin: 12px 0 14px; color: #fff; letter-spacing: -.025em; line-height: 1.08; }
.hero h1 span { color: var(--teal); }
.hero p { font-size: 1.1rem; color: #d3e1ee; max-width: 56ch; margin: 0 0 22px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }

.quick { margin-top: -44px; position: relative; z-index: 3; }
.quick .wrap { display: grid; grid-template-columns: repeat(var(--qn, 5), 1fr); gap: 16px; }
.q { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; color: inherit; }
.q::before { content: ""; position: absolute; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%; background: var(--teal-soft); transition: transform .3s; }
.q:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 18px 40px rgba(1, 66, 124, .14); }
.q:hover::before { transform: scale(1.25); }
.q .ic { position: relative; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 130%); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(1, 66, 124, .22); }
.q .ic svg { width: 24px; height: 24px; }
.q b { position: relative; font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; color: var(--navy); letter-spacing: -.01em; }
.q span { position: relative; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.q .go { position: relative; margin-top: auto; padding-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--teal-ink); display: inline-flex; align-items: center; gap: 6px; }
.q .go svg { transition: transform .2s; }
.q:hover .go svg { transform: translateX(4px); }

.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-top: 56px; padding-bottom: 24px; align-items: start; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.sec-head .eyebrow { margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.sec-head .eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--teal); }
.featured, .post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; color: inherit; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--teal); }
.card .art { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--teal)); position: relative; overflow: hidden; }
.card .art img { transition: transform .5s; }
.card:hover .art img { transform: scale(1.04); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .art .chip { position: absolute; left: 14px; top: 14px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.card:hover h3 { color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list time { font-size: .85rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.list a { text-decoration: none; font-weight: 700; color: var(--ink); }
.list a:hover { color: var(--navy); text-decoration: underline; }
.list small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Ďalšie aktuality – zvislý zoznam riadkov pod kartami; stĺpec sa natiahne na výšku bočného panela */
.news-col { display: flex; flex-direction: column; align-self: start; }
.news-rows { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.news-rows .row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 40px; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.news-rows .row:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateX(4px); }
.news-rows .th { width: 88px; height: 66px; border-radius: 11px; overflow: hidden; background: var(--surface-2); flex: none; }
.news-rows .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-rows .row:hover .th img { transform: scale(1.06); }
.news-rows .meta { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-rows .meta em { font-style: normal; font-family: var(--font-head); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); background: var(--teal-soft); padding: 2px 8px; border-radius: 999px; }
.news-rows b { display: block; margin-top: 3px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-rows small { display: block; margin-top: 2px; font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-rows .row:hover b { color: var(--navy); }
.news-rows .arr { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.news-rows .row:hover .arr { background: var(--navy); border-color: var(--navy); color: #fff; }
.news-foot { padding-top: 22px; text-align: center; }
.btn-all { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 24px; border-radius: 999px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .95rem; box-shadow: 0 10px 24px rgba(1, 66, 124, .22); transition: transform .2s, box-shadow .2s; }
.btn-all i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; transition: background .2s, transform .2s; }
.btn-all:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(1, 66, 124, .3); color: #fff; }
.btn-all:hover i { background: #fff; color: var(--navy); transform: translateX(2px); }

/* Ďalšie aktuality – tri menšie karty s fotkou */
.mini-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.mini .art { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--teal)); position: relative; }
.mini .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mini:hover .art img { transform: scale(1.05); }
.mini .art .chip { position: absolute; left: 12px; top: 12px; font-size: .62rem; padding: 3px 8px; }
.mini .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.mini time { font-size: .74rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini h3 { font-size: .92rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover h3 { color: var(--navy); }

.side { display: flex; flex-direction: column; gap: 18px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.w-title { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: -.01em; padding: 18px 20px 12px; color: var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 800; }
.w-title i { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px rgba(1, 66, 124, .2); }
.w-title i svg { width: 18px; height: 18px; }
.widget ul { list-style: none; margin: 0; padding: 0 12px 6px; }
.widget li { padding: 10px 8px; border-radius: 10px; }
.widget li + li { margin-top: 2px; }
.widget li:hover { background: var(--bg); }
.widget li a { text-decoration: none; font-weight: 700; font-size: .97rem; color: var(--ink); line-height: 1.3; display: block; }
.widget li a:hover { color: var(--navy); }
.widget li > span { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.widget .foot { padding: 8px 16px 16px; }
.widget .foot .more { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 11px 16px; border-radius: 12px; border: 1.5px solid var(--navy); color: var(--navy); font-family: var(--font-head); font-size: .9rem; font-weight: 700; transition: background .15s, color .15s, transform .15s; }
.widget .foot .more::after { content: "→"; transition: transform .15s; }
.widget .foot .more:hover { text-decoration: none; background: var(--navy); color: #fff; }
.widget .foot .more:hover::after { transform: translateX(3px); }

/* Oznamy – tmavý, výrazný box */
.notice { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-color: transparent; }
.notice::before { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.notice::after { content: ""; position: absolute; right: 20px; top: 40px; width: 70px; height: 70px; border-radius: 50%; border: 10px solid rgba(255, 255, 255, .05); }
.notice .w-title { color: #fff; position: relative; }
.notice .w-title i { background: #fff; color: var(--navy); box-shadow: none; }
.notice ul { position: relative; }
.notice li { padding-left: 14px; border-left: 3px solid rgba(255, 255, 255, .16); border-radius: 0 10px 10px 0; }
.notice li + li { margin-top: 8px; }
.notice li:hover { background: rgba(255, 255, 255, .06); border-left-color: var(--teal); }
.notice li a { color: #fff; }
.notice li a:hover { color: var(--teal); }
.notice li > span { color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.notice .foot .more { color: #fff; border-color: rgba(255, 255, 255, .45); }
.notice .foot .more:hover { border-color: #fff; background: #fff; color: var(--navy-deep); }

/* Najbližšie zasadnutie */
.events-w { background: linear-gradient(180deg, var(--surface) 0%, var(--teal-soft) 140%); }
.events-w ul { padding: 0 12px 6px; position: relative; }
.events-w ul::before { content: ""; position: absolute; left: 47px; top: 14px; bottom: 14px; border-left: 2px dashed var(--line); }
.events-w li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; position: relative; }
.events-w li:hover { background: rgba(255, 255, 255, .7); }
.events-w .date { width: 56px; height: 60px; border-radius: 12px; background: var(--teal-soft); color: var(--navy); box-shadow: none; border: 1.5px solid var(--teal); position: relative; }
.events-w .date b { font-size: 1.4rem; }
.events-w .date span { font-size: .62rem; opacity: 1; color: var(--teal-ink); }
.events-w li a { font-size: .95rem; }
.events-w li small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.events-w li small svg { color: var(--teal-ink); flex: none; }
.meet { display: flex; gap: 16px; align-items: center; padding: 6px 20px 20px; }
.date { flex: none; width: 64px; height: 68px; border-radius: 14px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; line-height: 1; box-shadow: 0 8px 18px rgba(1, 66, 124, .22); }
.date b { font-size: 1.65rem; }
.date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; opacity: .9; }
.meet p { margin: 0 0 4px; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }
.meet small { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.meet small + small { margin-top: 2px; }
.meet small svg { color: var(--teal-ink); flex: none; }

/* Naposledy zverejnené – prehľadné riadky */
.docs-w ul { padding: 0 14px 8px; }
.docs-w li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 6px; }
.docs-w .ft { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-ink); border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-size: .6rem; font-weight: 800; letter-spacing: .08em; }
.docs-w li a { font-size: .93rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.docs-w .meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.docs-w .meta em { font-style: normal; font-family: var(--font-head); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); background: var(--teal-soft); padding: 2px 7px; border-radius: 999px; }

.events-list { display: flex; flex-direction: column; gap: 12px; }
.event { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.event:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateX(3px); }
.event .date { width: 76px; height: 80px; }
.event .date b { font-size: 1.9rem; }
.event .date em { font-style: normal; font-size: .62rem; opacity: .85; margin-top: 2px; }
.event h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.event .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.event .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event .meta svg { color: var(--teal-ink); }
.event.is-past { opacity: .75; }
.event.is-past .date { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.events-past-title { margin: 36px 0 14px; font-size: 1.2rem; color: var(--muted); }
.event-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 20px; padding: 16px 20px; background: var(--teal-soft); border-radius: 14px; font-size: .95rem; }
.event-meta dt { color: var(--teal-ink); font-weight: 700; }
.event-meta dd { margin: 0; font-weight: 600; }
.band { padding: 40px 0 48px; }
.band-obce { padding-top: 0; }
.band-zobci { padding-top: 0; }

/* Z obcí: novinky z webov členských obcí */
.zobci-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.zobci-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zobci-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.zobci-obec { flex: none; width: 64px; text-align: center; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 700; line-height: 1.2; }
.zobci-obec img { display: block; width: 44px; height: 52px; object-fit: contain; margin: 0 auto 4px; }
.zobci-obec span { display: block; }
.zobci-body { min-width: 0; flex: 1; }
.zobci-body time { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.zobci-body h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.zobci-body h3 a { color: var(--ink); text-decoration: none; }
.zobci-body h3 a:hover { color: var(--navy); text-decoration: underline; }
.zobci-body p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.zobci-body small { display: block; margin-top: 6px; font-size: .74rem; color: var(--muted); }
.zobci-nav { margin-top: 4px; }
.zobci-pozn { margin-top: 20px; font-size: .88rem; }
/* stránka Obce: sekcia „Čo je nové v obciach“ pod mriežkou erbov (filter bez načítania, tlačidlo Zobraziť ďalšie) */
.zobci-sekcia { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.zobci-sekcia .sec-head { margin-bottom: 8px; }
.prose .zobci-sekcia h2 { margin: 0; padding: 0; border: 0; color: var(--ink); }
.prose .zobci-sekcia h3 { margin: 0; color: var(--ink); }
.prose .zobci-sekcia p { margin: 0; }
.prose .zobci-sekcia .zobci-body p { margin-top: 6px; }
.prose .zobci-sekcia ul { padding: 0; margin: 0; max-width: none; }
.prose .zobci-sekcia .zobci-list > li { margin: 0; padding: 16px 18px; }
.prose .zobci-sekcia .pager li { margin: 0; padding: 0; }
.zobci-sekcia .zobci-body h3 { overflow-wrap: anywhere; }
.zobci-intro { margin: 0 0 18px; max-width: 70ch; color: var(--muted); font-size: .95rem; }
.zobci-sekcia .cat-nav { margin: 0 0 20px; }
.zobci-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zobci-cols .zobci-item { transition: box-shadow .15s, border-color .15s; }
.zobci-cols .zobci-item:hover { border-color: var(--navy); box-shadow: 0 6px 20px rgba(1, 66, 124, .08); }
.zobci-sekcia .pager ul { padding-top: 22px; }
/* profil obce: aktuálne z webu obce */
.obec-news { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.obec-news h2 { margin-bottom: 6px; }
.obec-news .src { margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.obec-news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.obec-news li { display: grid; grid-template-columns: 5.4em 1fr; gap: 12px; align-items: baseline; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; }
.obec-news time { font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.obec-news a { font-weight: 700; text-decoration: none; color: var(--ink); }
.obec-news a:hover { color: var(--navy); text-decoration: underline; }
.obec-news .all { margin: 14px 0 0; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.proj .art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.proj .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj:hover .art img { transform: scale(1.05); }
.proj .ic { position: relative; z-index: 2; width: 48px; height: 48px; margin: -24px 0 8px; border-radius: 14px; background: var(--surface); color: var(--teal-ink); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); border: 1px solid var(--line); }
.proj .art .chip { position: absolute; right: 16px; top: 16px; }
.proj .body { padding: 0 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); letter-spacing: -.015em; line-height: 1.25; }
.proj p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.proj .more { margin-top: 6px; }

.obce { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.obec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; height: 100%; transition: transform .2s, border-color .2s, box-shadow .2s; color: inherit; text-align: center; }
.obec:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow); }
.obec img, .erb-placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 16px 18px 6px; box-sizing: border-box; background: radial-gradient(70% 70% at 50% 40%, var(--surface-2) 0%, var(--surface) 100%); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); transition: transform .3s; }
.obec:hover img { transform: scale(1.06); }
.obec .nm { font-family: var(--font-head); font-weight: 800; font-size: .88rem; padding: 8px 10px 2px; color: var(--navy); line-height: 1.2; }
.obec .st { font-size: .76rem; color: var(--muted); padding: 0 10px 14px; }

/* =========================================================
   5. Vnútorné stránky
   ========================================================= */
/* Pás s názvom podstránky – vo farbe hero (tmavá schéma s jemným svetlom vpravo) */
.page-head { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; padding: 34px 0 30px; }
.page-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 140% at 88% 50%, rgba(255, 255, 255, .09) 0%, transparent 60%), linear-gradient(90deg, var(--navy-deep) 0%, rgba(255, 255, 255, .04) 100%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.page-head .lead { color: #d3e1ee; max-width: 72ch; margin: 10px 0 0; font-size: 1.05rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-head .lead a { color: #fff; }
.crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: #a9bccd; }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; }
.crumbs a { color: #d6e2ee; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: var(--teal); }
.content-area { padding-top: 32px; padding-bottom: 64px; }
.content-area:not(.is-wide) .entry { max-width: 820px; }
.page-grid { padding-top: 32px; padding-bottom: 64px; }
.page-grid .entry { max-width: none; }
.content-area.is-wide .entry { background: none; border: 0; padding: 0; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 36px; }
.entry > :first-child { margin-top: 0; }
.entry > :last-child { margin-bottom: 0; }
.entry h2 { font-size: 1.5rem; margin: 1.4em 0 .5em; color: var(--navy); }
.entry h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li { margin-bottom: .3em; }
.entry table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: .55em .7em; text-align: left; vertical-align: top; }
.entry th { font-weight: 700; background: var(--surface-2); }
.entry figure { margin: 1.2em 0; }
.entry figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .4em; }
.entry .wp-block-image img, .entry-thumb img { border-radius: 12px; }
.entry-thumb { margin: 0 0 1.4em; }
.entry .wp-block-table { overflow-x: auto; margin: 1.2em 0; }
.entry .wp-block-table table { min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.entry .wp-block-table th, .entry .wp-block-table td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.entry .wp-block-table th { background: var(--surface-2); font-family: var(--font-head); font-size: .8rem; }
.entry blockquote { border-left: 4px solid var(--teal); margin: 1.2em 0; padding: .4em 1.2em; color: var(--muted); font-style: italic; }
.entry .wp-block-button__link { border-radius: 10px; background: var(--navy); }
.entry .wp-block-file a:first-child { font-weight: 700; }
.entry .wp-block-columns { gap: 28px; }
.entry a.has-arrow::after { content: " →"; }

/* Typografia textov (články, stránky, profily obcí) */
.entry { --ep-x: 36px; --ep-y: 32px; }
.prose { font-size: 1.04rem; line-height: 1.7; }
.prose > p, .prose > ul:not([role="list"]):not(.page-numbers), .prose > ol, .prose > blockquote, .prose > h2, .prose > h3, .prose > h4 { max-width: 70ch; }
.prose p { margin: 0 0 1.1em; }
.prose > p:first-child:not(:only-child):not(:has(img)) { font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: 1.4rem; margin: 1.7em 0 .6em; padding-left: 14px; border-left: 4px solid var(--teal); line-height: 1.2; color: var(--navy); }
.prose h3 { font-size: 1.15rem; margin: 1.4em 0 .45em; color: var(--navy); }
.prose > h2:first-child, .prose > h3:first-child, .entry-thumb + h2 { margin-top: 0; }
.prose ul:not([role="list"]):not(.page-numbers) { list-style: none; padding-left: 0; }
.prose ul:not([role="list"]):not(.page-numbers) > li { position: relative; padding-left: 1.4em; margin-bottom: .45em; }
.prose ul:not([role="list"]):not(.page-numbers) > li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.prose ol { padding-left: 1.5em; }
.prose ol > li { padding-left: .25em; margin-bottom: .45em; }
.prose ol > li::marker { font-weight: 800; color: var(--teal-ink); font-family: var(--font-head); }
.prose ul.dva-stlpce { columns: 2; column-gap: 36px; max-width: none; }
.prose ul.dva-stlpce li { break-inside: avoid; }
.prose a { color: var(--teal-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.prose a[href$=".pdf" i]::after, .prose a[href$=".docx" i]::after, .prose a[href$=".xlsx" i]::after { content: "PDF"; display: inline-block; font: 800 .62rem/1 var(--font-head); letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; background: var(--teal-soft); color: var(--teal-ink); margin-left: 6px; vertical-align: 2px; text-decoration: none; }
.prose a[href$=".docx" i]::after { content: "DOCX"; }
.prose a[href$=".xlsx" i]::after { content: "XLSX"; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose p > img { display: block; }
.prose p:has(> img:only-child) { margin: 1.5em 0 .6em; max-width: none; }
.prose p > em:only-child { display: block; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.prose img:not(a img), .prose a[data-lightbox] img { cursor: zoom-in; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose > :last-child { margin-bottom: 0; }

/* Obrázok príspevku nad textom – na celú šírku karty, s popisom */
.entry-thumb { margin: calc(var(--ep-y) * -1) calc(var(--ep-x) * -1) 1.7em; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 16px 16px 0 0; }
.entry-thumb figcaption { text-align: center; font-size: .82rem; color: var(--muted); padding: 8px var(--ep-x) 0; margin: 0; }
.entry-thumb.is-ill figcaption { font-style: italic; }

/* Prílohy pod článkom */
.entry-files { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.entry-files h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 .7em; padding: 0; border: 0; }
.entry-files h2 svg { color: var(--teal-ink); }
.entry-files .files { padding: 0; }

/* Galéria (blok Galéria) – mriežka s rovnakými dlaždicami */
.prose .wp-block-gallery, .prose .wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px !important; margin: 1.2em 0; max-width: none; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image, .prose .wp-block-gallery figure { width: auto !important; margin: 0 !important; display: block; }
.prose .wp-block-gallery figure a { display: block; }
.prose .wp-block-gallery img, .prose .wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: transform .3s; cursor: zoom-in; }
.prose .wp-block-gallery a:hover img { transform: scale(1.03); }
.prose .wp-block-gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* Lightbox */
.lb { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; overflow: hidden; }
.lb::backdrop { background: rgba(2, 20, 40, .92); }
.lb figure { margin: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 60px 80px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.lb figcaption { color: #fff; opacity: .85; font-size: .95rem; text-align: center; }
.lb-x, .lb-nav { position: fixed; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-x { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 16px; }
.lb.is-single .lb-nav { display: none; }

/* Štítok ilustračného obrázka v náhľadoch */
.ill { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 700 .58rem/1 var(--font-head); font-style: normal; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: rgba(2, 20, 40, .55); padding: 4px 7px; border-radius: 6px; backdrop-filter: blur(4px); pointer-events: none; }
.th .ill, .pn-th .ill { display: none; }

/* Členské obce ako odkazy v texte ([zomot_clenske_obce]) */
.prose .obce-chips { list-style: none; padding: 0; margin: .6em 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.obce-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 6px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--ink); background: var(--surface); transition: border-color .15s, transform .15s; }
.obce-chips a:hover { border-color: var(--teal); color: var(--navy); transform: translateY(-1px); }
.obce-chips img { width: 26px; height: 26px; object-fit: contain; }

/* Zoznam osôb (orgány združenia) – <ul class="osoby">, položka: <strong>Meno</strong> funkcia */
.prose ul.osoby { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-width: none; margin: 0 0 1.4em; }
.prose ul.osoby li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); line-height: 1.4; }
.prose ul.osoby li::before { display: none; }
.prose ul.osoby strong { display: block; font-family: var(--font-head); color: var(--navy); margin-bottom: 2px; }
.prose ul.osoby br { display: none; }
.prose ul.osoby li:only-child { max-width: 360px; }

/* Fotogaléria na profile obce */
.obec-gallery { margin-top: 2.2em; }
.obec-gallery ul { list-style: none; padding: 0; margin: 0 0 .8em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: none; }
.obec-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: transform .3s; }
.obec-gallery a:hover img { transform: scale(1.03); }
.obec-gallery .more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.obec-gallery button.more { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.obec-gallery button.more:hover { text-decoration: underline; }
.back { margin-top: 18px; }
.back a { text-decoration: none; font-weight: 700; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.pn { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
.pn:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.pn-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.pn.prev .pn-ic svg { transform: rotate(180deg); }
.pn:hover .pn-ic { background: var(--navy); border-color: var(--navy); color: #fff; }
.pn-th { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.pn-th:empty { display: none; }
.pn-th img { width: 100%; height: 100%; object-fit: cover; }
.pn-tx { min-width: 0; }
.pn small { display: block; color: var(--teal-ink); font-family: var(--font-head); font-weight: 800; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.pn b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.pn.next { text-align: right; justify-content: flex-end; }
.pager ul { list-style: none; display: flex; gap: 6px; justify-content: center; padding: 26px 0 0; margin: 0; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); background: var(--surface); }
.pager .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Detail dokumentu */
.content-area.doc-detail .entry, .content-area.obec-detail .entry { max-width: none; }
.entry .w-title { font-size: .8rem; margin: 0; color: var(--navy); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.meta-table { width: 100%; margin: 0 0 1.2em; }
.meta-table td { font-weight: 600; }
.meta-table th { white-space: nowrap; color: var(--muted); font-weight: 600; background: none; padding-left: 0; }
.doc-files { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-files .w-title { background: var(--surface); }
.files { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.files a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .95rem; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.files a:hover { border-color: var(--teal-ink); color: var(--teal-ink); }
.files small { color: var(--muted); font-weight: 500; margin-left: auto; white-space: nowrap; }
.doc-files .muted { padding: 14px; margin: 0; }

/* Register dokumentov (shortcode z pluginu) */
.register { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; align-items: start; }
.filters { display: flex; flex-direction: column; gap: 16px; }
.fgroup { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fgroup h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.fgroup .opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; font-size: .95rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.fgroup .opt:hover { background: var(--surface-2); }
.fgroup .opt b { margin-left: auto; font-weight: 600; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.fgroup .opt.on { background: var(--teal-soft); color: var(--navy); font-weight: 700; }
.fgroup .opt i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.fgroup .opt.on i { border-color: var(--teal-ink); background: radial-gradient(var(--teal-ink) 45%, transparent 50%); }
.fgroup input[type="search"] { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); }
.fgroup form { display: flex; gap: 8px; }
.fgroup form .btn { padding: 8px 12px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 26px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.cat-nav a b { font-weight: 600; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.cat-nav a:hover { border-color: var(--navy); color: var(--navy); }
.cat-nav a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-nav a.on b { color: rgba(255, 255, 255, .75); }
.years { display: flex; flex-wrap: wrap; gap: 6px; }
.years a { padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.years a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.reg-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.reg-top p { margin: 0; color: var(--muted); font-size: .95rem; }
.doc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 20px 26px; margin-bottom: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; transition: box-shadow .2s, border-color .2s; }
.doc::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--teal); }
.doc:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.doc h3 { font-size: 1.1rem; font-weight: 800; }
.doc h3 a { color: var(--navy); text-decoration: none; }
.doc h3 a:hover { text-decoration: underline; }
.doc .meta { font-size: .85rem; color: var(--muted); margin: 4px 0 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.doc .meta b { color: var(--ink); font-weight: 600; }
.doc .files { padding: 0; }
.doc .files a { padding: 6px 12px; font-size: .9rem; background: var(--bg); }
.doc .sum { text-align: right; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--teal-soft); border-radius: 12px; padding: 10px 14px; }
.doc .sum small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; font-family: var(--font-body); }
.doc.no-sum { grid-template-columns: 1fr; }

/* Profil obce */
.obec-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.obec-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.obec-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 22px; box-sizing: border-box; background: radial-gradient(70% 70% at 50% 40%, var(--surface-2) 0%, var(--surface) 100%); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .14)); }
.obec-card dl { margin: 0; padding: 14px 20px 6px; text-align: center; font-size: .95rem; }
.obec-card dt { color: var(--muted); font-family: var(--font-head); font-weight: 800; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.obec-card dt:first-child { margin-top: 0; }
.obec-card dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); overflow-wrap: anywhere; }
.obec-card .btn { display: flex; width: fit-content; margin: 12px auto 20px; }

/* Tabuľky (kontakty, zoznamy) */
.table-scroll { overflow: auto hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.zomot-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.zomot-table th { position: sticky; top: 0; text-align: left; font-family: var(--font-head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: 14px 18px; background: var(--navy); white-space: nowrap; }
.zomot-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.zomot-table tbody tr:nth-child(even) td { background: var(--bg); }
.zomot-table tbody tr:hover td { background: var(--teal-soft); }
.zomot-table tbody tr:last-child td { border-bottom: 0; }
.zomot-table a { font-weight: 700; text-decoration: none; }
.zomot-table .who { display: flex; align-items: center; gap: 12px; }
.zomot-table .who img, .zomot-table .who .erb-placeholder { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; padding: 4px; box-sizing: border-box; flex: none; border: 1px solid var(--line); background: var(--surface); }
.zomot-table .who b { font-family: var(--font-head); font-weight: 800; color: var(--navy); display: block; line-height: 1.2; }
.zomot-table .who small { color: var(--muted); font-size: .82rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--ink); white-space: nowrap; transition: border-color .15s, color .15s; }
.pill:hover { border-color: var(--teal-ink); color: var(--teal-ink); }
.pill svg { color: var(--teal-ink); }

/* =========================================================
   6. Pätička
   ========================================================= */
.site-footer { background: var(--navy-deep); color: #d6e2ee; margin-top: 24px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.ft-title { font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; font-weight: 800; }
.site-footer p, .site-footer li { font-size: .93rem; margin: 0 0 6px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--teal); }
.site-footer .brand:hover, .site-footer .brand:hover * { text-decoration: none; }
.site-footer .brand:hover .brand-text b { color: var(--teal); }
.ft-menu { list-style: none; padding: 0; margin: 0; }
.site-footer .brand-logo { height: 52px; background: #fff; border-radius: 10px; padding: 4px; }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text span { color: #b7c8d9; }
.site-footer .about { margin-top: 14px; max-width: 40ch; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0 22px; display: flex; justify-content: space-between; font-size: .8rem; color: #a9bccd; flex-wrap: wrap; gap: 12px; }
.foot-bottom .legal { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-bottom .legal a { color: #d6e2ee; }

/* Lišta súhlasu s cookies */
.ck { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; justify-content: center; pointer-events: none; }
.ck-box { pointer-events: auto; width: 100%; max-width: 720px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); padding: 20px 22px; animation: ck-in .35s ease-out; }
@keyframes ck-in { from { transform: translateY(24px); opacity: 0; } }
.ck-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ck-ic { font-size: 1.4rem; }
.ck-head h2 { font-size: 1.1rem; font-weight: 800; }
.ck p { margin: 0 0 12px; font-size: .93rem; color: var(--muted); }
.ck p a { color: var(--navy); font-weight: 600; }
.ck-opts { display: grid; gap: 8px; margin: 0 0 14px; }
.ck-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.ck-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.ck-opt b { display: block; font-family: var(--font-head); font-size: .92rem; }
.ck-opt small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ck-btns .btn { padding: 10px 16px; font-size: .9rem; }
.btn-link { background: none; border: 0; color: var(--navy); font-weight: 700; text-decoration: underline; padding: 8px 6px; cursor: pointer; font-family: inherit; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .ck-box { animation: none; } }

/* Dôležité upozornenie – okno vpravo dole nad tlačidlom správy, vo farbách aktívnej schémy */
:root { --hot: var(--navy); --hot-ink: #fff; }
.hot { position: fixed; right: 16px; bottom: 88px; z-index: 190; width: min(360px, calc(100% - 32px)); animation: hot-in .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes hot-in { from { transform: translateY(24px) scale(.96); opacity: 0; } }
.hot-box { background: var(--surface); color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .3), 0 0 0 3px var(--teal); }
.hot-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; background: linear-gradient(135deg, var(--navy-2), var(--navy-deep)); color: var(--hot-ink); }
.hot-head b { flex: 1; font-family: var(--font-head); font-size: .95rem; letter-spacing: .01em; }
.hot-ic { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--navy-deep); flex: none; }
.hot-ic i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: hot-ring 2.2s ease-out infinite; }
@keyframes hot-ring { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.hot-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: var(--hot-ink); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; flex: none; }
.hot-close:hover, .hot-close:focus-visible { background: rgba(255, 255, 255, .3); }
.hot p { margin: 0; padding: 12px 16px 6px; font-size: .93rem; line-height: 1.5; color: var(--ink); }
.hot-link { display: inline-flex; align-items: center; gap: 6px; margin: 4px 16px 14px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 1px; }
.hot-link:hover { color: var(--teal-ink); }
@media (prefers-reduced-motion: reduce) { .hot { animation: none; } .hot-ic i { animation: none; } }
.hot.is-behind { display: none; }

/* Chatové tlačidlo a formulár správy (vpravo dole) */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 195; display: none; }
.chat.is-ready { display: block; }
.chat-fab { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 14px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, .28), 0 0 0 0 rgba(255, 255, 255, .4); transition: transform .15s, box-shadow .15s; }
.chat-fab:hover, .chat-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .32); }
.chat-fab-ic { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.chat-fab-ic svg { position: absolute; transition: opacity .2s, transform .2s; }
.chat-fab-ic svg:last-child, .chat.is-open .chat-fab-ic svg:first-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat.is-open .chat-fab-ic svg:last-child { opacity: 1; transform: none; }
.chat-panel { position: absolute; right: 0; bottom: 70px; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .32); overflow: hidden; animation: hot-in .35s ease-out; }
.chat-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 14px 14px 18px; background: var(--navy-deep); color: #fff; }
.chat-head h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; color: #fff; }
.chat-head p { margin: 0; font-size: .86rem; color: #c9d8e6; line-height: 1.45; }
.chat-head > div { flex: 1; }
.chat-status { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 4px rgba(245, 165, 36, .25); }
.chat-close { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, .26); }
.chat-form { padding: 14px 18px 6px; display: grid; gap: 10px; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-row label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.chat-row label b { color: #c0392b; font-weight: 700; }
.chat-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat-form input[type=text], .chat-form input[type=email], .chat-form input[type=tel], .chat-form textarea { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .93rem; }
.chat-form input:focus, .chat-form textarea:focus { outline: 2px solid var(--navy-2); outline-offset: 1px; border-color: var(--navy-2); }
.chat-form textarea { resize: vertical; min-height: 92px; }
.chat-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.chat-consent input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.chat-consent a { color: var(--navy); font-weight: 600; }
.chat-consent b { color: #c0392b; }
.chat-msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.chat-msg.is-ok { background: #e6f6ec; color: #14532d; }
.chat-msg.is-err { background: #fdecec; color: #8b1e1e; }
.chat-actions { display: grid; gap: 6px; padding-bottom: 8px; }
.chat-actions .btn { justify-content: center; }
.chat-actions small { color: var(--muted); font-size: .78rem; text-align: center; }
.chat-alt { margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.chat-alt a { color: var(--navy); font-weight: 600; text-decoration: none; }
.chat-alt a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .chat-panel { animation: none; } }

/* =========================================================
   7. Responzívnosť
   ========================================================= */
@media (max-width: 1200px) {
	/* užšie obrazovky: plátno s erbami zaberá 52 % šírky, aby nezasahovalo do textu */
	.mapa { height: auto; width: 52%; top: calc(50% - 26px); margin-top: -16.25%; right: -2%; }
	.hero-mapa .hero-card { max-width: 46%; }
}
@media (max-width: 1080px) {
	.strip img { width: calc(25% - 10px); max-height: 72px; }
	.quick .wrap { grid-template-columns: repeat(3, 1fr); }
	.obce { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hdr-cta { display: none; }
	.hero-mapa .hero-card { max-width: 480px; }
}
@media (max-width: 900px) {
	.menu-toggle { display: grid; }
	html, body { overflow-x: clip; }
	.nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 100%); background: var(--surface); z-index: 80; padding: 12px 20px 32px; overflow: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; margin: 0; border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
	.nav.is-open { transform: none; visibility: visible; transition: transform .25s; }
	body.menu-open { overflow: hidden; }
	body.menu-open .menu-toggle { background: var(--teal-soft); border-color: var(--teal); color: var(--navy); }
	.nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 2px 0; }
	.nav-list > li:last-child { border-bottom: 0; }
	.nav-list > li > a { flex: 1; font-size: 1.1rem; padding: 12px 14px; }
	.sub-toggle { margin-left: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; }
	.sub-toggle[aria-expanded="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--navy); }
	.sub-toggle svg { transition: transform .2s; }
	.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.sub-menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 10px 14px; min-width: 0; flex-basis: 100%; width: 100%; margin-top: 0; }
	.sub-menu a { padding: 10px 12px; font-size: 1rem; }
	.sub-menu a::before { content: "›"; margin-right: 8px; color: var(--teal-ink); }
	.nav-list > li:hover > .sub-menu, .nav-list > li.is-focus > .sub-menu { display: none; }
	.nav-list > li.is-open > .sub-menu { display: block; }
	.nav-list > li.has-children::after { display: none; }
	.sub-toggle { -webkit-tap-highlight-color: transparent; }
	.main-grid, .doc-grid, .obec-grid, .register, .featured { grid-template-columns: minmax(0, 1fr); }
	.main-grid > *, .doc-grid > *, .obec-grid > *, .page-grid > * { min-width: 0; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.projects { grid-template-columns: 1fr; }
	.site-footer .cols { grid-template-columns: 1fr 1fr; }
	.hero { min-height: 0; flex-direction: column; align-items: stretch; }
	.hero .wrap { padding-top: 36px; padding-bottom: 22px; }
	.hero .cta { flex-wrap: nowrap; gap: 8px; }
	/* obe tlačidlá vždy v jednom riadku – text sa zmenšuje podľa šírky displeja, nikdy sa nezalomí */
	.hero .cta .btn { flex: 1 1 auto; min-width: 0; justify-content: center; text-align: center; white-space: nowrap; padding: 12px 8px; font-size: clamp(.64rem, 3.15vw, .95rem); line-height: 1.2; min-height: 46px; }
	.hero-mapa::before { display: none; }
	.hero-mapa .hero-card, .hero-card { max-width: none; }
	.hero-mapa { min-height: 0; }
	/* mobil: pri každom variante sa zobrazí mapa regiónu s erbami (siaha aj hore za titulok), mozaika sa skryje */
	.strip { display: none; }
	.hero-erby.has-map { background-image: none; }
	.mapa-wrap, .mapa-mobil { display: block; position: relative; inset: auto; order: 2; padding: 0 12px; width: 100%; max-width: none; margin: 0; }
	.hero::after { background: linear-gradient(180deg, rgba(6, 47, 87, .92) 0%, rgba(6, 47, 87, .78) 40%, rgba(6, 47, 87, .3) 62%, rgba(6, 47, 87, .05) 80%) !important; }
	html.theme-green .hero::after { background: linear-gradient(180deg, rgba(11, 61, 35, .92) 0%, rgba(11, 61, 35, .78) 40%, rgba(11, 61, 35, .3) 62%, rgba(11, 61, 35, .05) 80%) !important; }
	html.theme-red .hero::after { background: linear-gradient(180deg, rgba(92, 12, 18, .92) 0%, rgba(92, 12, 18, .78) 40%, rgba(92, 12, 18, .3) 62%, rgba(92, 12, 18, .05) 80%) !important; }
	/* mobil: natočená mapa cez celú šírku (podklad mapa-hero-m, percentá z tools/build_map_mobile.py) */
	.mapa { position: relative; right: auto; top: auto; height: auto; width: 100%; max-width: 540px; aspect-ratio: 640 / 578; margin: -8px auto 56px; }
	.mapa-svg:not(.mapa-svg-m) { display: none; }
	.mapa-svg-m { display: block; position: relative; }
	.mapa-raster { left: -100%; top: -320%; width: 300%; height: 480%; -webkit-mask-image: none; mask-image: none; }
	.me { --mw: 13%; left: var(--xm); top: var(--ym); }
	.me span { font-size: .56rem; padding: 1px 5px; background: rgba(0, 0, 0, .62); }
	/* mobil: dve menšie karty vedľa seba (tretia sa skryje), aby sa nezlievali so zoznamom pod nimi */
	.mini-news { grid-template-columns: 1fr 1fr; gap: 12px; }
	.zobci-grid { grid-template-columns: 1fr 1fr; }
	.zobci-cols { grid-template-columns: minmax(0, 1fr); }
	.zobci-sekcia { margin-top: 32px; padding-top: 24px; }
	.mini:nth-child(3) { display: none; }
	.mini .art .chip { font-size: .56rem; padding: 2px 7px; left: 8px; top: 8px; }
	.mini .body { padding: 8px 10px 10px; }
	.mini h3 { font-size: .86rem; }
	.mini time { font-size: .7rem; }
	.page-grid { grid-template-columns: minmax(0, 1fr); }
	.news-rows .row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; }
	.news-rows .th { width: 64px; height: 56px; }
	.news-rows .arr, .news-rows small { display: none; }
	.news-rows b { white-space: normal; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.event { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
	.event .date { width: 60px; height: 64px; }
	.event .date b { font-size: 1.5rem; }
	.entry { padding: 22px 20px; --ep-x: 20px; --ep-y: 22px; }
	.prose { font-size: 1rem; }
	.prose > p:first-child:not(:only-child):not(:has(img)) { font-size: 1.06rem; }
	.prose ul.dva-stlpce { columns: 1; }
	.prose .wp-block-gallery, .obec-gallery ul { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.lb figure { padding: 60px 12px 70px; }
	.lb-nav { top: auto; bottom: 14px; transform: none; }
	.lb-prev { left: calc(50% - 56px); }
	.lb-next { right: calc(50% - 56px); }
	/* register: filtre ako kompaktné čipy nad zoznamom */
	.filters { gap: 10px; }
	.fgroup { padding: 12px 14px; }
	.fgroup h3 { margin-bottom: 8px; }
	.fgroup .opts { display: flex; flex-wrap: wrap; gap: 6px; }
	.fgroup .opt { padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem; gap: 6px; }
	.fgroup .opt i { display: none; }
	.fgroup .opt b { margin-left: 0; }
	.fgroup .opt.on { background: var(--navy); border-color: var(--navy); color: #fff; }
	.fgroup .opt.on b { color: rgba(255, 255, 255, .75); }
	/* detail obce: erb v rozumnej veľkosti */
	.obec-card > img { max-height: 240px; aspect-ratio: auto; margin: 0 auto; display: block; }
	.obec-card { max-width: 420px; }
	/* tabuľka starostov ako karty */
	.table-scroll { overflow: visible; background: none; border: 0; box-shadow: none; }
	.zomot-table thead { display: none; }
	.zomot-table, .zomot-table tbody, .zomot-table tr, .zomot-table td { display: block; }
	.zomot-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
	.zomot-table td { padding: 0; border: 0; }
	.zomot-table tbody tr:nth-child(even) td, .zomot-table tbody tr:hover td { background: transparent; }
	.zomot-table td:first-child { margin-bottom: 8px; }
	.zomot-table td:nth-child(2) { font-weight: 700; margin-bottom: 8px; }
	.zomot-table td:nth-child(2):empty { display: none; }
	.zomot-table td:nth-child(n+3) { display: inline-block; margin: 0 6px 6px 0; }
	.zomot-table td:nth-child(n+3):empty { display: none; }
	/* hlavička: logo + názov vľavo, lupa a menu úplne vpravo */
	.site-header > .wrap { gap: 10px; min-height: 76px; }
	.brand { gap: 10px; }
	.brand-logo { height: 58px; }
	.brand-text b { font-size: 1rem; }
	.brand-text span { font-size: .74rem; white-space: normal; max-width: 210px; line-height: 1.2; }
	.hdr-tools { margin-left: auto; gap: 8px; }
	.icon-btn { width: 42px; height: 42px; }
}
@media (max-width: 600px) {
	.zobci-grid { grid-template-columns: 1fr; }
	.zobci-sekcia .cat-nav a { padding: 6px 11px; font-size: .84rem; }
	.obec-news li { grid-template-columns: 1fr; gap: 2px; }
	/* rýchle odkazy: 2 karty hore, 3 karty dole */
	.quick { margin-top: -36px; }
	.quick .wrap { grid-template-columns: repeat(6, 1fr); gap: 10px; }
	.q { grid-column: span 2; padding: 14px 12px 14px; gap: 6px; border-radius: 14px; }
	.q:nth-child(-n+2) { grid-column: span 3; }
	.q::before { width: 80px; height: 80px; right: -28px; top: -28px; }
	.q .ic { width: 40px; height: 40px; border-radius: 11px; }
	.q .ic svg { width: 20px; height: 20px; }
	.q b { font-size: .92rem; line-height: 1.2; }
	.q > span:not(.ic) { font-size: .78rem; }
	.q .go { display: none; }
	.q:nth-child(n+3) > span:not(.ic) { display: none; }
	.obce { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.obec img, .erb-placeholder { padding: 10px 12px 2px; }
	.obec .nm { font-size: .78rem; padding: 6px 6px 2px; }
	.obec .st { font-size: .7rem; padding: 0 6px 10px; }
	.post-grid { grid-template-columns: 1fr; }
	.post-nav { gap: 8px; }
	.pn { padding: 10px; gap: 8px; border-radius: 12px; }
	.pn-th { display: none; }
	.pn-ic { width: 30px; height: 30px; }
	.pn b { font-size: .84rem; -webkit-line-clamp: 3; }
	.pn small { font-size: .6rem; }
	.pn-lbl { display: none; }
	.results li { grid-template-columns: 1fr; gap: 4px; }
	.site-footer .cols { grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 36px 0 24px; }
	.site-footer .cols > div:first-child, .site-footer .cols > div:last-child { grid-column: 1 / -1; }
	.site-footer .ft-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
	.site-footer .about { max-width: none; margin-top: 10px; }
	.site-footer p, .site-footer li { font-size: .88rem; margin-bottom: 4px; }
	.ft-title { margin-bottom: 8px; }
	.foot-bottom { flex-direction: column; gap: 8px; font-size: .76rem; }
	.ck { left: 8px; right: 8px; bottom: 8px; }
	.hot { right: 8px; bottom: 76px; width: calc(100% - 16px); }
	.chat { right: 8px; bottom: 8px; }
	/* mobil: len okrúhla ikonka bez textu (text ostáva pre čítačky) */
	.chat-fab { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
	.chat-fab-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.chat-fab-ic { width: 40px; height: 40px; }
	.chat-panel { position: fixed; left: 8px; right: 8px; bottom: 68px; width: auto; max-height: calc(100dvh - 84px); overflow: auto; }
	.chat-row-2 { grid-template-columns: 1fr; }
	.ck-box { padding: 16px; border-radius: 14px; }
	.ck-btns .btn { flex: 1 1 auto; justify-content: center; }
	.topbar .tb-item:first-child, .topbar .tb-item:nth-child(2) { display: none; }
	.theme-switch .sw { width: 18px; height: 18px; }
	.brand-text span { max-width: 170px; }
	.brand-logo { height: 54px; }
	.doc { grid-template-columns: 1fr; }
	.doc .sum { text-align: left; }
	.sec-head { align-items: end; gap: 12px; }
	.sec-head h2 { font-size: 1.5rem; }
	.sec-head .more { flex: none; padding: 8px 12px; border: 1.5px solid var(--navy); border-radius: 10px; font-family: var(--font-head); font-size: .82rem; margin-bottom: 4px; }
	.sec-head .more::after { content: " →"; }
	.sec-head .more:hover { background: var(--navy); color: #fff; text-decoration: none; }
}

/* =========================================================
   8. Tlač
   ========================================================= */
@media print {
	.topbar, .site-header, .site-footer, .quick, .skip-link, .back, .post-nav, .filters { display: none !important; }
	body { background: #fff; color: #000; }
	.entry, .doc, .widget { border: 0; box-shadow: none; }
	a { color: #000; text-decoration: underline; }
}
