/* ============================================================
  Kde je Medveď — editorial / minimalistic redesign
   Type:  Newsreader (serif headings) + Hanken Grotesk (UI)
   Accent: single forest green, locked across the whole page
   Themes: light + dark via [data-theme] CSS variables
   ============================================================ */

:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #fbfbf9;
  --surface-hover: #f4f4f1;

  --ink: #1a1a17;
  --ink-2: #24251f;
  --ink-3: #2f3029;

  --line: #e7e7e1;
  --line-strong: #d9d9d2;

  --accent: #1f4b30;
  --accent-hover: #173a25;
  --accent-ink: #ffffff;
  --accent-soft: rgba(53, 107, 66, 0.11);
  --bark: #7a4a24;
  --bark-hover: #623a1b;
  --bark-soft: rgba(122, 74, 36, 0.1);
  --notice-orange: #9a4918;
  --notice-orange-surface: #fff0e6;
  --moss: #7f9651;

  --shadow-sm: 0 1px 2px rgba(26, 26, 23, 0.05);
  --shadow: 0 4px 16px rgba(26, 26, 23, 0.07);
  --shadow-lg: 0 14px 40px rgba(26, 26, 23, 0.1);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1180px;
  --mobile-nav-height: 61px;

  --topographic-bg: url("/assets/topographic-bg.webp");
  --topographic-opacity: 0.14;
  --topographic-filter: brightness(0.86) contrast(1.04);
}

[data-theme="dark"] {
  --bg: #121310;
  --surface: #1a1b17;
  --surface-2: #1f201b;
  --surface-hover: #24251f;

  --ink: #f1f0e8;
  --ink-2: #b2b1a6;
  --ink-3: #88877d;

  --line: #2b2c26;
  --line-strong: #3a3b33;

  --accent: #85c69a;
  --accent-hover: #9bd5ad;
  --accent-ink: #11211a;
  --accent-soft: rgba(133, 198, 154, 0.14);
  --bark: #d0a06a;
  --bark-hover: #e0b77f;
  --bark-soft: rgba(208, 160, 106, 0.13);
  --notice-orange: #ffd0ae;
  --notice-orange-surface: #412514;
  --moss: #9dad6f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.55);

  --topographic-opacity: 0.2;
  --topographic-filter: brightness(0.56) contrast(1.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.muted {
  color: var(--ink-3);
  font-size: 0.82rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 16px;
  height: 68px;
  padding: 0 clamp(16px, 4vw, 36px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  transform: translateY(-2px);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

[data-theme="dark"] .brand-mark img {
  content: url("/assets/mascot/bear-head-mark-dark.png?v=20260713-2");
}

.brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 20px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.16s ease;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.main-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  min-width: 0;
  gap: 10px;
}

.site-header > .legal-back {
  grid-column: 3;
  justify-self: end;
}

.updated {
  font-size: 0.78rem;
  color: var(--ink-3);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .updated {
    display: none;
  }
}

.icon-btn,
.btn {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.1s ease,
    color 0.16s ease;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  font-size: 18px;
}
.icon-btn:hover {
  background: var(--surface-hover);
  border-color: var(--ink-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn:active {
  transform: translateY(1px);
}
.btn i {
  font-size: 17px;
}
.btn.loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn.loading i {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

:where(button, a, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 36px) 24px;
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

.masthead {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.mascot-masthead {
  max-width: none;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(210px, 340px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(22px, 4vw, 48px) clamp(20px, 4vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.masthead-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.service-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0 0 clamp(24px, 3vw, 34px);
  padding: 14px 16px;
  color: var(--notice-orange);
  background: var(--notice-orange-surface);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
}

.service-notice > i {
  margin-top: 2px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.service-notice h2 {
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.35;
}

.service-notice p {
  max-width: 76ch;
  margin: 2px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mascot-hero {
  justify-self: end;
  width: min(100%, 340px);
}

.mascot-hero img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--bark) 16%, var(--line));
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.mascot-hero-cutout img {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(26, 26, 23, 0.12));
}

[data-theme="dark"] .mascot-hero-cutout img {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.mascot-hero-roaring {
  position: relative;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-height: 440px;
  pointer-events: none;
}

.mascot-hero-roaring picture {
  position: absolute;
  inset: 0;
}

.mascot-hero-roaring img {
  position: absolute;
  right: -235px;
  bottom: -205px;
  width: clamp(560px, 48vw, 640px);
  max-width: none;
  height: auto;
  filter: drop-shadow(-18px 18px 30px rgba(26, 26, 23, 0.18));
}

[data-theme="dark"] .mascot-hero-roaring img {
  filter: drop-shadow(-18px 18px 34px rgba(0, 0, 0, 0.55));
}

@media (min-width: 721px) and (max-width: 940px) {
  .mascot-hero-roaring img {
    right: -210px;
    bottom: -155px;
    width: 510px;
  }
}

.masthead h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.lede {
  margin: 14px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--ink-2);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
}

.hero-actions .btn,
.hero-secondary-btn {
  min-height: 46px;
  padding-inline: 20px;
  justify-content: center;
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
}

.hero-secondary-btn:hover {
  color: var(--ink);
  background: var(--surface-hover);
  border-color: var(--ink-3);
  text-decoration: none;
}

.hero-secondary-btn:active {
  transform: translateY(1px);
}

.hero-secondary-btn i {
  color: var(--accent);
  font-size: 17px;
}

/* ---------- Stats (airy, hairline-divided — no boxes) ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(26px, 4vw, 40px);
}

.stat {
  padding-right: clamp(24px, 4vw, 44px);
  margin-right: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 7px;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* Compact, quiet stat strip — the map is the focus, not the numbers. */
.home-insights {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: clamp(15px, 2.2vw, 22px);
  border-top: 1px solid var(--line);
}

.home-insights .stats {
  margin-top: 0;
  min-width: 0;
}

@media (max-width: 520px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .hero-secondary-btn {
    width: 100%;
  }

  .home-insights .stat {
    padding-right: clamp(14px, 4vw, 22px);
    margin-right: clamp(14px, 4vw, 22px);
  }

  .home-insights .stat-num {
    font-size: 1.4rem;
  }
}

/* ---------- Stats page ---------- */
.stats-page {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
}

.stats-page .masthead:not(.mascot-masthead) {
  max-width: 840px;
}

.charts-section {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.chart-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(14px, 2vw, 18px);
}

.chart-wrapper {
  position: relative;
  height: clamp(260px, 36vw, 380px);
}

.chart-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ink-3);
  font-size: 0.9rem;
  text-align: center;
  padding: 18px;
}

.stats-status {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.stats-status.error {
  color: #b4452e;
}

[data-theme="dark"] .stats-status.error {
  color: #f0a08c;
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.4rem;
}
.section-head h2 i {
  font-size: 1.15rem;
  color: var(--accent);
}

.src {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ---------- Map ---------- */
.map-section {
  margin-bottom: clamp(34px, 5vw, 52px);
}

.map-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: -2px 0 14px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.date-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.date-control {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
}

.date-control span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.date-control i,
.layer-picker i,
.ghost-btn i {
  font-size: 1rem;
}

.date-control input {
  display: block;
  width: 152px;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 0 10px;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color-scheme: light;
}

[data-theme="dark"] .date-control input {
  color-scheme: dark;
}

.date-control input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ghost-btn:hover {
  color: var(--ink);
  background: var(--surface-hover);
  border-color: var(--ink-3);
}

.layer-picker {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
}

.layer-picker legend {
  width: 100%;
  margin-bottom: -1px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
}

.layer-picker label {
  min-width: 0;
  max-width: 100%;
}

.layer-picker label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 11px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.layer-picker input:checked + span {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.layer-picker input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.layer-picker label span:hover {
  border-color: var(--ink-3);
}

#map {
  height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-2);
  z-index: 0;
}

.map-location-control,
.map-center-control {
  position: relative;
}

.map-location-button,
.map-center-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #222;
  background: #fff;
  border: 2px solid rgb(0 0 0 / 20%);
  border-radius: 4px;
  background-clip: padding-box;
  box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
  cursor: pointer;
}

.map-location-button:hover,
.map-location-button:focus-visible,
.map-center-button:hover,
.map-center-button:focus-visible {
  color: var(--accent);
  background: #f4f4f4;
}

.map-location-button:focus-visible,
.map-center-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.map-location-button:disabled {
  cursor: wait;
}

.map-location-button i,
.map-center-button i {
  font-size: 19px;
}

.map-location-button.is-loading i {
  animation: spin 0.8s linear infinite;
}

.map-location-message {
  position: absolute;
  top: 0;
  left: 42px;
  width: max-content;
  max-width: min(280px, calc(100vw - 110px));
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.map-location-message.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.map-location-message.is-success {
  border-color: #16a34a;
}

.map-location-message.is-error {
  border-color: #d97706;
}

.user-location-accuracy {
  fill: #2563eb;
  fill-opacity: 0.12;
  stroke: #2563eb;
  stroke-opacity: 0.5;
  stroke-width: 1.5;
}

.user-location-marker {
  fill: #2563eb;
  fill-opacity: 1;
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 45%));
}

/* Minimal map markers instead of emoji */
.leaflet-div-icon,
.map-marker-hitbox {
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
}
.pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.pin:hover {
  transform: scale(1.35);
}
/* Značka schváleného varovania zo správ — hranatá a odlíšená farbou */
.pin.pin-news {
  background: var(--bark);
  border-radius: 3px;
}

/* Legenda mapy */
.map-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.map-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.map-legend .lg-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.map-legend .lg-dot.news {
  background: var(--bark);
  border-radius: 3px;
}

.leaflet-container {
  font-family: var(--font-sans);
  background: var(--surface-2);
}
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.leaflet-popup-content {
  margin: 13px 15px;
}
.popup-loc {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 3px;
}
.popup-meta {
  font-size: 0.76rem;
  color: var(--ink-3);
  margin: 0 0 7px;
}
.popup-note {
  font-size: 0.86rem;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.popup-link {
  font-size: 0.78rem;
  font-weight: 600;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: center;
}
.source-links .popup-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.popup-coverage-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 0.74rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Columns ---------- */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 34px);
}

@media (max-width: 880px) {
  .columns {
    grid-template-columns: 1fr;
  }
  #map {
    height: 380px;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .map-tools,
  .date-filters,
  .layer-picker {
    align-items: stretch;
    width: 100%;
  }

  .date-control {
    flex: 1 1 150px;
  }

  .date-control input {
    width: 100%;
  }

  .layer-picker label {
    flex: 1 1 130px;
  }

  .layer-picker label span {
    width: 100%;
  }
}

/* ---------- Search ---------- */
.search-wrap {
  position: relative;
  margin-bottom: 16px;
}
.search-wrap i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 17px;
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.search-wrap input::placeholder {
  color: var(--ink-3);
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Lists & cards ---------- */
.list {
  --list-fade: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 660px;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: var(--list-fade);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--list-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--list-fade)),
    transparent 100%
  );
}
.list::-webkit-scrollbar {
  width: 8px;
}
.list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 8px;
}

.list-load-more {
  display: none;
}

.home-listing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 11px 14px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.home-listing-cta:hover,
.home-listing-cta:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

.card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease,
    box-shadow 0.16s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .card.reveal {
    animation: rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i, 0) * 32ms);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card.sighting {
  cursor: pointer;
}
.card.sighting:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.32;
  margin: 0 0 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.record-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}

.record-kind,
.record-freshness {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  line-height: 1.25;
}

.record-kind {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 700;
}

.record-freshness {
  min-height: 24px;
  padding: 3px 0;
  color: var(--ink-3);
  font-weight: 600;
}

.record-kind.kind-official {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.record-kind.kind-community,
.record-kind.kind-media-warning {
  background: transparent;
}

.record-freshness.freshness-today,
.record-freshness.freshness-week {
  color: var(--accent);
}

.record-freshness.freshness-older,
.record-freshness.freshness-unknown {
  color: var(--ink-3);
  font-weight: 600;
}

.card-title a {
  color: inherit;
}
.card-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-size: 0.76rem;
  color: var(--ink-3);
  margin-bottom: 0;
}

.card-meta > span,
.card-meta > time {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.meta-label {
  color: var(--ink-3);
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}
.meta-date {
  color: var(--ink-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.meta-source {
  color: var(--ink-2);
  font-weight: 600;
}

.meta-source-links-mobile {
  display: none;
}

.card-correction {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 2px;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.card-correction:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.meta-place {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--bark);
  font-weight: 600;
}
.meta-place i {
  font-size: 0.95em;
}

.news-location-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 9px;
}

.news-location-name,
.news-location-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.news-location-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 0.71rem;
  font-weight: 650;
  white-space: nowrap;
}

.news-location-name {
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.news-location-links a {
  position: relative;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  touch-action: manipulation;
}

.news-location-links a::before {
  position: absolute;
  inset: -5px -4px;
  content: "";
}

.news-location-links a:hover,
.news-location-links a:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
  outline: none;
}

/* Varovanie s mapovou lokalitou je klikateľné (vycentruje mapu). */
.card.news.has-place {
  cursor: pointer;
}
.card.news.has-place:hover {
  border-color: var(--bark);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.card-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.source-attribution {
  margin: 12px 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.source-attribution a {
  color: inherit;
  text-decoration: underline;
}

.card.news .card-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link i {
  font-size: 14px;
}
.source-links .card-link {
  margin-top: 9px;
}

/* ---------- Skeleton loading ---------- */
.skeleton {
  height: 84px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(
    100deg,
    var(--surface) 30%,
    var(--surface-hover) 50%,
    var(--surface) 70%
  );
  background-size: 220% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: shimmer 1.4s ease-in-out infinite;
  }
}
@keyframes shimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -80% 0;
  }
}

/* ---------- States ---------- */
.empty,
.error-box {
  text-align: center;
  padding: 34px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.empty {
  color: var(--ink-3);
}
.empty i {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--line-strong);
}
.error-box {
  color: #b4452e;
  background: rgba(180, 69, 46, 0.07);
  border: 1px solid rgba(180, 69, 46, 0.22);
}
[data-theme="dark"] .error-box {
  color: #f0a08c;
}

/* ---------- Crawlable map guide / FAQ ---------- */
.map-context {
  max-width: 82ch;
  margin: -2px 0 18px;
  color: var(--ink-3);
  font-size: 0.88rem;
}

.seo-content {
  margin-top: clamp(42px, 7vw, 76px);
  padding-top: clamp(32px, 5vw, 54px);
  border-top: 1px solid var(--line-strong);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.seo-content h2,
.knowledge-article h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.14;
}

.seo-content-intro {
  max-width: 820px;
}

.answer-lead {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 2vw, 1.17rem);
  line-height: 1.68;
}

.answer-lead strong {
  color: var(--ink);
}

.explain-grid,
.source-grid,
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.explain-grid article,
.source-grid article,
.scenario-grid article {
  padding: clamp(20px, 3vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.explain-grid article > i,
.source-grid article > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1.35rem;
  background: var(--accent-soft);
  border-radius: 50%;
}

.explain-grid h3,
.source-grid h3,
.scenario-grid h3,
.method-steps h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.explain-grid p,
.source-grid p,
.scenario-grid p,
.method-steps p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.91rem;
}

.map-reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  margin-top: clamp(44px, 7vw, 74px);
}

.reading-steps {
  padding-left: 1.2rem;
  margin: 18px 0 20px;
  color: var(--ink-2);
}

.reading-steps li + li {
  margin-top: 10px;
}

.reading-steps strong {
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.safety-callout,
.emergency-box,
.limitations {
  padding: clamp(24px, 4vw, 34px);
  background: linear-gradient(135deg, var(--accent-soft), var(--bark-soft)), var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: var(--radius);
}

.safety-official-source {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

.safety-source-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 50%;
  font-size: 1.3rem;
}

.safety-source-label,
.safety-source-name {
  display: block;
}

.safety-source-label {
  margin-bottom: 2px;
  color: var(--ink-3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safety-source-name {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.safety-callout .safety-description {
  margin: 12px 0 22px;
  color: var(--ink-2);
}

.safety-actions {
  display: grid;
  gap: 12px;
}

.safety-btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  text-align: center;
}

.safety-summary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.faq {
  max-width: 900px;
  margin-top: clamp(48px, 7vw, 80px);
}

.location-directory {
  max-width: 900px;
  margin-top: clamp(48px, 7vw, 80px);
}

.location-directory > p:not(.section-kicker) {
  max-width: 76ch;
  color: var(--ink-2);
  line-height: 1.7;
}

.location-links a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
}

.location-links a:hover,
.location-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.location-record-list {
  max-height: none;
  overflow: visible;
  padding-bottom: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.faq-list {
  margin-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  position: relative;
  padding: 19px 42px 19px 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 76ch;
  margin: -4px 42px 20px 0;
  color: var(--ink-2);
}

/* ---------- Knowledge / methodology pages ---------- */
.knowledge-page {
  position: relative;
  max-width: 1040px;
  overflow: clip;
  padding-top: 10px;
}

.page-video-shell {
  position: absolute;
  inset: -52px 0 auto 0;
  z-index: 0;
  height: clamp(250px, 28vw, 380px);
  pointer-events: none;
  opacity: 0.9;
  overflow: hidden;
}

.page-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 246, 243, 0) 0%,
    rgba(246, 246, 243, 0.14) 20%,
    rgba(246, 246, 243, 0.48) 42%,
    rgba(246, 246, 243, 0.82) 62%,
    rgba(246, 246, 243, 1) 100%
  );
}

[data-theme="dark"] .page-video-shell::after {
  background: linear-gradient(
    180deg,
    rgba(18, 19, 16, 0) 0%,
    rgba(18, 19, 16, 0.12) 20%,
    rgba(18, 19, 16, 0.42) 42%,
    rgba(18, 19, 16, 0.8) 62%,
    rgba(18, 19, 16, 1) 100%
  );
}

.page-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.72);
  transform: scale(1.05);
}

.breadcrumbs,
.knowledge-article,
.knowledge-page > .source-actions {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(26px, 4vw, 42px);
  color: var(--ink-3);
  font-size: 0.82rem;
}

.breadcrumbs a {
  font-weight: 600;
}

.knowledge-article {
  max-width: 900px;
}

.knowledge-hero {
  max-width: 800px;
  padding-bottom: clamp(18px, 3vw, 28px);
  border-bottom: 0;
}

.knowledge-hero > .section-kicker {
  margin-bottom: clamp(18px, 3vw, 32px);
}

.knowledge-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.review-note {
  margin: 16px 0 0;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.location-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.72fr)) minmax(220px, 1.35fr);
  margin: clamp(24px, 4vw, 34px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.location-summary > div {
  min-width: 0;
  padding: 17px 18px;
}

.location-summary > div:first-child {
  padding-left: 0;
}

.location-summary > div + div {
  border-left: 1px solid var(--line);
}

.location-summary dt {
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.location-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.location-summary-range dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  align-items: baseline;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.45;
}

.location-summary-range dd span {
  color: var(--ink-3);
  font-weight: 500;
}

@media (max-width: 720px) {
  .location-summary {
    grid-template-columns: 1fr 1fr;
  }

  .location-summary > div,
  .location-summary > div:first-child {
    padding: 15px 12px;
  }

  .location-summary > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .location-summary > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .location-summary-range dd {
    display: grid;
    gap: 1px;
  }
}

.knowledge-article > section,
.knowledge-article > aside {
  margin-top: clamp(42px, 7vw, 72px);
}

.knowledge-article > section > p:not(.section-kicker) {
  max-width: 78ch;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.72;
}

.emergency-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.emergency-box h2 {
  max-width: 650px;
}

.emergency-box p:not(.section-kicker) {
  max-width: 65ch;
  margin: 10px 0 0;
  color: var(--ink-2);
}

.emergency-number {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: #fff;
  background: #a83928;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.emergency-number:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.check-list,
.limitations ul,
.sources ul {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li,
.limitations li {
  position: relative;
  padding: 13px 0 13px 34px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.check-list li::before,
.limitations li::before {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 12px;
  color: var(--accent);
  font-weight: 800;
}

.scenario-number {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.dont-list {
  padding: clamp(24px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dont-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 20px;
}

.dont-list p {
  display: flex;
  gap: 9px;
  margin: 0;
  color: var(--ink-2);
}

.dont-list i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #a83928;
  font-weight: 700;
}

.notice {
  padding-left: 16px;
  border-left: 3px solid var(--moss);
}

.source-actions,
.api-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.sources li + li {
  margin-top: 10px;
}

.sources a,
.api-links a {
  font-weight: 650;
}

.method-steps {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.method-steps li > span {
  display: grid;
  place-items: center;
  align-self: start;
  width: 44px;
  height: 44px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  font-weight: 800;
}

.accuracy-table {
  margin-top: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.accuracy-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) 1fr;
}

.accuracy-row + .accuracy-row {
  border-top: 1px solid var(--line);
}

.accuracy-row > * {
  padding: 16px 18px;
}

.accuracy-row > * + * {
  color: var(--ink-2);
  border-left: 1px solid var(--line);
}

.accuracy-head {
  color: var(--ink-3);
  background: var(--surface-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.limitations li::before {
  content: "—";
}

.editorial-policy {
  padding-top: clamp(28px, 5vw, 42px);
  border-top: 1px solid var(--line-strong);
}

.project-contact {
  scroll-margin-top: 110px;
  padding: clamp(24px, 5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.project-contact > .section-kicker {
  margin-bottom: 10px;
}

.project-contact h2 {
  margin-top: 0;
}

/* ---------- Spomenuli nás ---------- */
.press-page .knowledge-hero {
  max-width: 740px;
}

.press-list {
  max-width: 900px;
}

.press-entry {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.7fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.press-publisher {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 280px;
  padding: 32px;
  color: var(--accent);
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 72%),
    var(--surface-2);
  border-right: 1px solid var(--line-strong);
}

.press-publisher i {
  font-size: 2.4rem;
}

.press-publisher strong {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.press-entry-content {
  align-self: center;
  padding: clamp(26px, 5vw, 46px);
}

.press-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
}

.press-entry h2 {
  max-width: 21ch;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  line-height: 1.12;
}

.press-entry h2 a {
  color: var(--ink);
}

.press-entry h2 a:hover {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.press-entry-content > p {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--ink-2);
  line-height: 1.68;
}

.press-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 4px 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.press-read-link:hover {
  text-decoration: none;
  transform: translateX(3px);
}

.press-read-link:active {
  transform: translateX(1px);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(44px, 7vw, 84px);
  padding: 0 clamp(16px, 4vw, 36px);
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  background:
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--surface) 95%, var(--accent) 5%),
      color-mix(in srgb, var(--surface) 97%, var(--bark) 3%)
    );
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 70%, transparent);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--topographic-bg);
  background-position: center 42%;
  background-size: max(1320px, 100vw) auto;
  opacity: 0.07;
  filter: var(--topographic-filter);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -230px;
  left: -150px;
  z-index: -1;
  width: 540px;
  height: 540px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 78px) 0 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: clamp(54px, 8vw, 116px);
  align-items: start;
}

.footer-brand {
  max-width: 560px;
}

.footer-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.footer-identity:hover {
  text-decoration: none;
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 0;
}

.footer-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-theme="dark"] .footer-brand-mark img {
  content: url("/assets/mascot/bear-head-mark-dark.png?v=20260713-2");
}

.footer-brand-copy {
  display: grid;
  gap: 1px;
}

.footer-brand-copy strong {
  font-family: var(--font-serif);
  font-size: clamp(1.42rem, 2.1vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-brand-copy small {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer .footer-description {
  max-width: 57ch;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-report-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin-top: 25px;
  padding: 11px 17px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, black);
  border-radius: var(--radius-pill);
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.footer-report-link:hover {
  color: var(--accent-ink);
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-report-link i {
  font-size: 1.05rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 28px clamp(34px, 5vw, 70px);
}

.footer-column h2 {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin-top: 17px;
  white-space: normal;
}

.footer-links a,
.footer-links .footer-privacy-button {
  width: fit-content;
  padding: 2px 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-links a:hover,
.footer-links .footer-privacy-button:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(46px, 6vw, 68px);
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 82%, transparent);
}

.site-footer .footer-bottom p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-bottom p:last-child {
  text-align: right;
}

@media (max-width: 820px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .footer-brand {
    max-width: 640px;
  }

  .footer-nav {
    max-width: 520px;
  }
}

@media (max-width: 520px) {
  .site-footer {
    margin-top: 44px;
  }

  .footer-inner {
    padding-top: 46px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .footer-main {
    gap: 40px;
  }

  .footer-brand-mark {
    flex-basis: 66px;
    width: 66px;
    height: 66px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 22px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 46px;
  }

  .footer-bottom p:last-child {
    text-align: left;
  }
}

/* ---------- Report CTA ---------- */
.report-cta {
  margin-top: clamp(34px, 5vw, 52px);
  padding: clamp(22px, 4vw, 34px);
  padding-right: clamp(170px, 19vw, 240px);
  min-height: clamp(168px, 18vw, 210px);
  position: relative;
  background: linear-gradient(135deg, var(--accent-soft), var(--bark-soft)), var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--radius);
  overflow: hidden;
}

.report-cta-inner {
  position: static;
}

.report-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  max-width: 56ch;
  min-height: clamp(112px, 13vw, 142px);
}

.report-cta-text h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.report-cta-text h2 i {
  color: var(--accent);
  font-size: 1.3em;
}

.report-cta-text p {
  margin: 8px 0 0;
  color: var(--ink-2);
  max-width: 52ch;
}

.report-cta-content .btn {
  align-self: flex-start;
}

.mascot-cta-image {
  display: block;
  position: absolute;
  right: clamp(-56px, -4.2vw, -28px);
  bottom: clamp(-46px, -3.8vw, -24px);
  z-index: 0;
  width: clamp(154px, 17vw, 210px);
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 16px rgba(26, 26, 23, 0.1));
}

[data-theme="dark"] .mascot-cta-image {
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.42));
}

/* ---------- Notify / subscribe section ---------- */
.notify-section {
  margin-top: clamp(20px, 3vw, 28px);
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent-soft) 42%, transparent),
      transparent 48%
    ),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--bark) 14%, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.notify-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.notify-text h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.12;
}

.notify-text h2 i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.16em;
}

.notify-text p {
  margin: 14px 0 0;
  color: var(--ink-2);
  max-width: 42ch;
  font-size: 1.02rem;
  line-height: 1.68;
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.notify-field {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.notify-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.notify-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.notify-field input::placeholder {
  color: var(--ink-3);
}

[data-theme="dark"] .notify-field input {
  color-scheme: dark;
}

.notify-type {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.notify-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-2);
  text-align: center;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}

.notify-radio:hover {
  background: var(--surface-hover);
  border-color: var(--ink-3);
}

.notify-radio input {
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.notify-radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.notify-area {
  grid-column: 1 / -1;
}

.notify-area input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.notify-area input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.notify-area input::placeholder {
  color: var(--ink-3);
}

[data-theme="dark"] .notify-area input {
  color-scheme: dark;
}

.notify-btn {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  height: 48px;
  padding-inline: 20px;
  white-space: nowrap;
}

.notify-form .form-message {
  grid-column: 1 / -1;
  margin-top: 0;
}

@media (max-width: 720px) {
  .mascot-masthead {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mascot-hero {
    display: none;
  }

  .report-cta-inner {
    display: block;
  }

  .report-cta-content {
    align-items: flex-start;
  }

  .report-cta {
    padding-right: clamp(22px, 4vw, 34px);
    padding-bottom: 108px;
    min-height: 0;
  }

  .mascot-cta-image {
    right: -30px;
    bottom: -48px;
    width: 150px;
  }

  .notify-inner {
    grid-template-columns: 1fr;
  }

  .notify-form {
    grid-template-columns: 1fr;
  }

  .notify-btn {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: center;
  }
}

/* ---------- Newsletter interest poll ---------- */
.newsletter-poll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(20px, 3vw, 28px);
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--bark) 14%, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.newsletter-poll-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.newsletter-poll-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  font-size: 1.25rem;
}

.newsletter-poll h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.18;
}

.newsletter-poll-copy p {
  max-width: 48ch;
  margin: 9px 0 0;
  color: var(--ink-2);
}

.newsletter-poll-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.newsletter-poll-form button {
  min-height: 46px;
  padding: 9px 12px;
  color: var(--ink-2);
  font: 650 0.91rem/1.2 var(--font-sans);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease,
    transform 0.1s ease;
}

.newsletter-poll-form button:hover:not(:disabled) {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.newsletter-poll-form button:active:not(:disabled) {
  transform: translateY(1px);
}

.newsletter-poll-form button:disabled {
  cursor: default;
  opacity: 0.58;
}

.newsletter-poll-status {
  min-height: 1.35em;
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 650;
}

/* ---------- Compact feedback popup ---------- */
.feedback-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 180;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.feedback-toggle {
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--accent-ink);
  font: 650 0.9rem/1 var(--font-sans);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(26, 26, 23, 0.16);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.feedback-toggle:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 28px rgba(26, 26, 23, 0.2);
  transform: translateY(-1px);
}

.feedback-toggle i {
  font-size: 1.15rem;
}

.feedback-panel {
  grid-row: 1;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100dvh - 110px));
  overflow-y: auto;
  padding: 22px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(26, 26, 23, 0.2);
  animation: feedback-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-panel[hidden] {
  display: none;
}

@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-panel {
    animation: none;
  }
}

.feedback-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.feedback-panel-heading h2 {
  font-size: 1.48rem;
  line-height: 1.18;
}

.feedback-panel-heading p {
  margin: 7px 0 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feedback-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.feedback-close:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.feedback-panel form {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.feedback-panel label {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.feedback-panel label span {
  color: var(--ink-3);
  font-weight: 500;
}

.feedback-panel textarea,
.feedback-panel input {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  font: 1rem/1.45 var(--font-sans);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.feedback-panel textarea {
  min-height: 108px;
  resize: vertical;
}

.feedback-panel textarea:focus,
.feedback-panel input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.feedback-panel textarea::placeholder,
.feedback-panel input::placeholder {
  color: var(--ink-3);
}

.feedback-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-submit {
  justify-content: center;
  min-height: 44px;
  margin-top: 5px;
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.feedback-note {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 0.76rem;
  line-height: 1.45;
}

.feedback-note a {
  color: inherit;
  font-weight: 650;
}

.feedback-status {
  margin: 2px 0 0;
}

@media (max-width: 880px) {
  .newsletter-poll {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .newsletter-poll {
    padding: 22px;
  }

  .newsletter-poll-form fieldset {
    grid-template-columns: 1fr;
  }

  .feedback-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 10px);
  }

  .feedback-toggle span {
    display: none;
  }

  .feedback-toggle {
    justify-content: center;
    width: 46px;
    padding: 0;
  }

  .feedback-panel {
    max-height: calc(100dvh - var(--mobile-nav-height) - 94px);
  }
}

/* ---------- Report form page ---------- */
.report-container {
  max-width: 660px;
  margin: 0 auto;
}

.report-container h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.report-priority-note {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  color: #4a1712;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.96), rgba(255, 247, 237, 0.96));
  border: 2px solid #c24132;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.1);
}

.report-priority-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: #a72f24;
  border-radius: 50%;
}

.report-priority-icon i {
  font-size: 25px;
}

.report-priority-label {
  display: inline-flex;
  margin-bottom: 5px;
  color: #8f241a;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-priority-note h2 {
  color: inherit;
  font-family: var(--font-sans);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.report-priority-note p {
  margin: 7px 0 0;
  color: #66241d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.report-priority-note .report-emergency-note {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(143, 36, 26, 0.25);
}

[data-theme="dark"] .report-priority-note {
  color: #fff1ef;
  background: linear-gradient(135deg, rgba(94, 28, 25, 0.88), rgba(78, 45, 23, 0.72));
  border-color: #f07d70;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .report-priority-icon {
  color: #2a0d0a;
  background: #ff9b8f;
}

[data-theme="dark"] .report-priority-label,
[data-theme="dark"] .report-priority-note p {
  color: #ffd0ca;
}

.report-form {
  margin-top: clamp(24px, 4vw, 34px);
}

.form-field {
  margin-bottom: 1.4rem;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.form-field label i {
  color: var(--accent);
  font-size: 1.1em;
}

.form-field.required label::after {
  content: '*';
  color: #b91c1c;
  margin-left: 2px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-3);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field textarea {
  color-scheme: dark;
}

.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* --- Výber miesta na mape (formulár hlásenia) --- */
.map-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.map-search input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.map-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-map-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s, background 0.16s, opacity 0.16s;
}

.btn-map-action:hover {
  border-color: var(--accent);
}

.btn-map-action i {
  color: var(--accent);
  font-size: 1.1em;
}

.btn-map-action.loading {
  pointer-events: none;
  opacity: 0.7;
}

.pick-map {
  height: 340px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 0;
}

.pin-pick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong), 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: grab;
}

.location-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-2);
  background: var(--surface-2, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.location-status i {
  margin-top: 1px;
  color: var(--accent);
  font-size: 1.1em;
  flex-shrink: 0;
}

.location-status.ok {
  border-color: #16a34a;
  color: #15803d;
}
.location-status.ok i {
  color: #16a34a;
}
[data-theme="dark"] .location-status.ok {
  color: #4ade80;
}

.location-status.warn {
  border-color: #d97706;
  color: #b45309;
}
.location-status.warn i {
  color: #d97706;
}
[data-theme="dark"] .location-status.warn {
  color: #fbbf24;
}

.btn-confirm-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, opacity 0.16s;
}

.btn-confirm-location i {
  font-size: 1.15em;
  color: var(--accent);
}

.btn-confirm-location:hover:not(:disabled) {
  background: var(--accent-soft);
}

.btn-confirm-location:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-confirm-location.confirmed {
  color: var(--accent-ink);
  background: #16a34a;
  border-color: #16a34a;
}
.btn-confirm-location.confirmed i {
  color: var(--accent-ink);
}

.spin {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2rem 0 1.4rem;
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #9f2f24;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.16s, transform 0.1s;
}

.btn-submit:hover {
  background: #84261d;
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-submit i {
  font-size: 1.15em;
}

[data-theme="dark"] .btn-submit {
  color: #2a0d0a;
  background: #ff9b8f;
}

[data-theme="dark"] .btn-submit:hover {
  background: #ffb0a7;
}

@media (max-width: 520px) {
  .report-priority-note {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .report-priority-icon {
    width: 40px;
    height: 40px;
  }

  .report-priority-note p {
    font-size: 1rem;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

.form-message {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-message:empty {
  display: none;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .form-message.success {
  color: #4ade80;
}

[data-theme="dark"] .form-message.error {
  color: #f87171;
}

.notify-privacy {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.76rem;
  line-height: 1.45;
}

.notify-privacy a {
  color: inherit;
  font-weight: 650;
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 900px;
}

.legal-content {
  max-width: 760px;
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.legal-updated {
  margin: 12px 0 34px;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.legal-content section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.legal-content p {
  margin: 0 0 12px;
  color: var(--ink-2);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--ink-2);
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--accent);
}

.legal-settings-button {
  margin-top: 8px;
}

.legal-back {
  text-decoration: none;
}

/* ---------- Privacy consent ---------- */
.privacy-banner[hidden] {
  display: none;
}

.privacy-banner {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--ink);
}

.privacy-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 55px rgb(15 23 18 / 20%);
}

.privacy-banner__copy {
  max-width: 650px;
}

.privacy-banner h2 {
  margin: 0 0 5px;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0;
}

.privacy-banner p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.55;
}

.privacy-banner a {
  color: inherit;
  font-weight: 650;
}

.privacy-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.privacy-choice {
  flex: 1 1 0;
  min-width: 155px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.privacy-choice--secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}

.privacy-choice--primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.privacy-choice:hover,
.privacy-choice:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.footer-privacy-button {
  padding: 2px 0;
  border: 0;
  color: var(--ink-2);
  background: none;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 720px) {
  .privacy-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .privacy-banner__inner,
  .privacy-banner__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .privacy-banner__inner {
    gap: 16px;
  }

  .privacy-banner__actions {
    gap: 8px;
  }

  .privacy-choice {
    width: 100%;
  }
}

.legal-back:hover {
  text-decoration: none;
}

@media (max-width: 520px) {
  .map-tools {
    padding: 10px;
  }

  .date-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .date-control,
  .ghost-btn {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .date-control input {
    width: 100%;
  }

  .layer-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .layer-picker legend {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .layer-picker label,
  .layer-picker label span {
    width: 100%;
  }
  .masthead h1 {
    font-size: clamp(1.65rem, 7.5vw, 2rem);
    overflow-wrap: break-word;
  }
  .updated {
    display: none;
  }
  .footer-inner {
    display: block;
  }

  .stats {
    gap: 16px 0;
  }

  .stat {
    width: 100%;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
  }

  .stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  /* Hero štatistiky zostávajú na mobile v jednom kompaktnom riadku. */
  .home-insights .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
  }

  .home-insights .stat {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 6px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .home-insights .stat:first-child {
    padding-left: 0;
  }

  .home-insights .stat:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .home-insights .stat-num {
    font-size: 1.1rem;
  }

  .home-insights .stat-label {
    margin-top: 4px;
    font-size: clamp(0.58rem, 2.7vw, 0.7rem);
    line-height: 1.15;
    white-space: nowrap;
  }

  .chart-container {
    padding: 12px;
  }

  .chart-wrapper {
    height: 250px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 14px;
    white-space: normal;
  }
  .legal-back span {
    display: none;
  }
  .legal-back {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}

/* ============================================================
   Responsive — tablety a mobily
   Pravidlá: bezpečné tap-targety (>=44px), žiadny horizontálny
   pretok, na iOS nezoomovať pri fokuse (font >=16px), mobilná
   spodná navigácia namiesto pretekajúceho menu v hlavičke.
   ============================================================ */

/* Žiadny vodorovný pretok na žiadnom zariadení.
   `clip` (nie `hidden`) — nevytvára scroll-kontajner, takže
   nepokazí position: sticky hlavičku. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg) !important;
}

body::before {
  display: none !important;
}

img,
svg,
canvas,
.leaflet-container {
  max-width: 100%;
}

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {
  .report-cta-inner,
  .notify-inner {
    gap: clamp(18px, 3vw, 28px);
  }

}

/* ---------- Tablet / menšie (max 880px) ---------- */
@media (max-width: 880px) {
  main {
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
  }

  .explain-grid,
  .source-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .press-entry {
    grid-template-columns: 1fr;
  }

  .press-publisher {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .map-reading-grid {
    grid-template-columns: 1fr;
  }

  .notify-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .list {
    max-height: 520px;
  }
}

/* ---------- Mobil (max 620px): spodná navigácia + tap-targety ---------- */
@media (max-width: 620px) {
  /* Hlavička: len brand + akcie, menu ide naspodok.
     Pozn.: backdrop-filter na hlavičke musí ísť preč — inak by
     vytvoril containing block pre fixed .main-nav a spodná lišta
     by sa „prilepila" k hlavičke namiesto k spodku obrazovky. */
  .site-header {
    display: flex;
    justify-content: space-between;
    height: auto;
    min-height: calc(60px + env(safe-area-inset-top));
    gap: 10px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: 8px;
    padding-left: max(16px, env(safe-area-inset-left));
    background: var(--surface);
    backdrop-filter: none;
  }

  .brand {
    min-height: 44px;
  }

  /* Mobilná spodná navigácia (app-like tab bar) */
  .main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    justify-self: stretch;
    width: 100%;
    gap: 0;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(26, 26, 23, 0.06);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 48px;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.82rem;
    line-height: 1.2;
    border-radius: var(--radius-sm);
  }

  /* Obsah nech sa neschová za spodnú lištu */
  body:has(.main-nav) {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }

  body:has(.main-nav) .privacy-banner {
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 10px);
  }

  /* iOS pri fokuse na input s fontom <16px stránku zoomne — zabráň tomu */
  input,
  textarea,
  select {
    font-size: 16px;
  }

  /* CTA a odberové tlačidlá: plná šírka + pohodlný tap-target */
  .report-cta-inner .btn,
  .notify-btn {
    width: 100%;
    height: 46px;
    justify-content: center;
  }

  .report-cta-text h2,
  .notify-text h2 {
    font-size: 1.35rem;
  }

  .notify-section {
    padding: 22px;
  }

  .notify-type {
    grid-template-columns: 1fr;
  }

  /* Pohodlnejšie tap-targety pre ikonové a bežné tlačidlá */
  .icon-btn {
    width: 44px;
    height: 44px;
  }

  /* Dve karty naraz bez vnoreného scrollovania; ďalšie pridá tlačidlo. */
  .list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .list-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    padding: 9px 16px;
    color: var(--accent);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
  }

  .list-load-more:hover,
  .list-load-more:focus-visible {
    background: var(--surface-hover);
    border-color: var(--accent);
  }

  .list-load-more:active {
    transform: translateY(1px);
  }

  .list-load-more-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 6px;
    color: var(--ink-2);
    background: var(--accent-soft);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
  }

  /* Mapa: viac výšky pomerom k obrazovke */
  #map {
    height: 60vh;
    min-height: 320px;
  }

  /* Vyhľadávanie a dátumové polia vyšší tap-target */
  .search-wrap input {
    height: 46px;
  }

  .date-control input,
  .ghost-btn,
  .layer-picker label span {
    min-height: 44px;
    height: 44px;
  }

  .map-location-button,
  .map-center-button,
  .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
  }

  .leaflet-control-zoom a {
    line-height: 44px;
  }

  .map-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .map-search input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .map-search .btn-locate {
    grid-column: 1 / -1;
    width: 100%;
  }

  /* Sekcie nadpisy o niečo menšie */
  .section-head h2 {
    font-size: 1.25rem;
  }

  /* Úvod mapy: nadpis, súhrn a vysvetlenie majú na mobile vlastné riadky. */
  .map-section > .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-content: start;
    gap: 6px;
    margin-bottom: 12px;
  }

  .map-section > .section-head h2 {
    width: 100%;
    font-size: clamp(1.2rem, 5.5vw, 1.35rem);
    line-height: 1.2;
  }

  .map-section > .section-head .muted {
    display: block;
    padding-left: 30px;
    color: var(--ink-2);
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: normal;
  }

  .map-section > .map-context {
    max-width: none;
    margin: 0 0 16px;
    color: var(--ink-2);
    font-size: 0.86rem;
    line-height: 1.5;
  }

  /* Legenda pod mapou nech sa zalomí pekne */
  .map-legend {
    gap: 10px 16px;
    font-size: 0.78rem;
  }

  .emergency-box {
    grid-template-columns: 1fr;
  }

  .emergency-number {
    width: 82px;
    height: 82px;
    font-size: 1.75rem;
  }

  .dont-list > div {
    grid-template-columns: 1fr;
  }

  .accuracy-row {
    grid-template-columns: 1fr;
  }

  .accuracy-row > * {
    padding: 12px 14px;
  }

  .accuracy-row > * + * {
    padding-top: 0;
    border-left: 0;
  }

  .accuracy-head {
    display: none;
  }

  .source-actions .btn,
  .source-actions .ghost-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 0;
    justify-content: flex-start;
    white-space: normal;
  }

  .footer-links a,
  .footer-links .footer-privacy-button {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  main,
  .site-footer {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }
}

/* ---------- Malý mobil (max 400px) ---------- */
@media (max-width: 400px) {
  .main-nav a {
    font-size: 0.78rem;
    padding: 11px 2px;
  }

  main {
    padding-top: clamp(20px, 5vw, 28px);
  }
}

/* ---------- Veľmi úzky mobil (max 360px) ---------- */
@media (max-width: 360px) {
  .site-header {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .brand-name {
    display: block;
    font-size: 1.05rem;
  }
}

/* Mobil na šírku prekročí bežný telefónový breakpoint, ale stále
   potrebuje dotykové terče. Pointer query zachová kompaktný desktop. */
@media (hover: none) and (pointer: coarse) {
  .main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .icon-btn,
  .map-location-button,
  .map-center-button,
  .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
  }

  .leaflet-control-zoom a {
    line-height: 44px;
  }

  .date-control input,
  .ghost-btn,
  .layer-picker label span {
    min-height: 44px;
    height: 44px;
  }
}

/* ============================================================
   Map-first app shell and editorial home
   ============================================================ */

:root {
  --site-header-height: 68px;
  --bottom-nav-space: 0px;
  --z-header: 100;
  --z-bottom-nav: 200;
  --z-map-overlay: 900;
}

html.dialog-open,
html.dialog-open body {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 10001;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell-ready .site-header {
  z-index: var(--z-header);
}

.site-shell-ready .main-nav {
  white-space: nowrap;
}

.site-shell-ready .main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-shell-ready .main-nav a i {
  display: none;
  font-size: 21px;
}

.site-shell-ready .main-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-shell-ready .site-header > .legal-back,
.site-shell-ready .header-actions > #themeBtn {
  display: none;
}

.menu-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.site-drawer {
  width: min(390px, calc(100vw - 24px));
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-left: 1px solid var(--line-strong);
  box-shadow: -18px 0 48px rgb(18 28 20 / 18%);
}

.site-drawer::backdrop,
.map-filter-dialog::backdrop,
.map-legend-dialog::backdrop {
  background: rgb(8 13 9 / 52%);
}

.site-drawer-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 22px;
}

.site-drawer-heading,
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.site-drawer-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.site-drawer-heading p,
.site-drawer-heading h2,
.dialog-heading h2,
.dialog-heading p {
  margin: 0;
}

.site-drawer-heading p {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-drawer-heading h2 {
  margin-top: 2px;
  font-size: 2rem;
}

.dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.dialog-close:hover {
  background: var(--surface-hover);
  border-color: var(--ink-3);
}

.drawer-nav,
.drawer-settings {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-nav h3,
.drawer-settings h3 {
  margin: 0 0 7px;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drawer-nav a,
.drawer-settings button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.drawer-nav a:hover,
.drawer-settings button:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.drawer-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.drawer-nav a i,
.drawer-settings button i {
  width: 24px;
  color: var(--accent);
  font-size: 22px;
  text-align: center;
}

.drawer-nav-legal {
  margin-top: auto;
  border-bottom: 0;
}

/* Map screen */

.map-first-page {
  background: var(--bg);
}

.map-first-page .map-page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.map-viewport {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100vh - var(--site-header-height) - var(--bottom-nav-space));
  height: calc(100dvh - var(--site-header-height) - var(--bottom-nav-space));
  min-height: 420px;
  overflow: hidden;
  background: var(--surface-2);
}

.map-first-page #map {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-first-page .leaflet-top.leaflet-right {
  top: 72px;
  right: max(12px, env(safe-area-inset-right));
}

.map-first-page .leaflet-control-zoom,
.map-first-page .map-location-control,
.map-first-page .map-center-control {
  margin-right: 0;
}

.map-first-page .map-location-button,
.map-first-page .map-center-button,
.map-first-page .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
}

.map-first-page .leaflet-control-zoom a {
  line-height: 44px;
}

.map-first-page .map-location-message {
  right: 52px;
  left: auto;
  max-width: min(300px, calc(100vw - 92px));
}

.map-overlay-top {
  position: absolute;
  z-index: var(--z-map-overlay);
  top: 16px;
  left: max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(220px, 440px) auto;
  gap: 8px;
  width: min(620px, calc(100% - 112px));
  pointer-events: none;
}

.map-overlay-top > * {
  pointer-events: auto;
}

.map-search-control {
  position: relative;
  display: block;
}

.map-search-control i {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: var(--ink-3);
  font-size: 20px;
  pointer-events: none;
  transform: translateY(-50%);
}

.map-search-control input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 45px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgb(24 45 29 / 12%);
  font: inherit;
  font-size: 1rem;
}

.map-search-control input::placeholder {
  color: var(--ink-3);
}

.map-search-control input:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.map-filter-button,
.map-legend-button,
.map-result-status,
.map-load-status,
.map-listings-jump {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgb(24 45 29 / 12%);
  font: inherit;
}

.map-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  height: 48px;
  padding: 0 13px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.map-filter-button:hover,
.map-legend-button:hover,
.map-load-status button:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.map-filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.map-filter-count[hidden] {
  display: none;
}

.map-bottom-bar {
  position: absolute;
  z-index: var(--z-map-overlay);
  bottom: 16px;
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
}

.map-result-status,
.map-legend-button {
  min-height: 44px;
  padding: 10px 13px;
  font-size: 0.82rem;
  font-weight: 650;
}

.map-result-compact {
  display: none;
}

.map-listings-label-short {
  display: none;
}

.map-legend-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.map-load-status {
  position: absolute;
  z-index: var(--z-map-overlay);
  top: 76px;
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(480px, calc(100% - 112px));
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 650;
}

.map-load-status[hidden] {
  display: none;
}

.map-load-status.is-error {
  color: #9a3412;
  border-color: #c76a43;
}

[data-theme="dark"] .map-load-status.is-error {
  color: #fdba74;
}

.map-load-status button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 10px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}

.map-listings-jump {
  position: absolute;
  z-index: var(--z-map-overlay);
  bottom: 16px;
  left: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(-50%);
}

.map-listings-jump:hover {
  color: var(--accent-ink);
  background: var(--accent-hover);
  text-decoration: none;
}

.map-scroll-cue {
  position: absolute;
  z-index: var(--z-map-overlay);
  bottom: 32px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
}

.map-scroll-message {
  display: flex;
  align-items: center;
  max-width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.map-viewport:has(.map-startup:not([hidden]):not(.is-error)) .map-scroll-cue {
  visibility: hidden;
}

.map-scroll-message[hidden],
.map-scroll-dismiss[hidden] {
  display: none;
}

.map-scroll-message a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 0 9px 16px;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 12px;
}

.map-scroll-message a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-scroll-dismiss {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}

.map-scroll-dismiss:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.map-scroll-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 24px;
  text-decoration: none;
}

.map-scroll-arrow:hover {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

.map-scroll-message a:focus-visible,
.map-scroll-dismiss:focus-visible,
.map-scroll-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.map-first-page) { scroll-behavior: smooth; }
  .map-scroll-arrow i { animation: map-scroll-nudge 2.2s ease-in-out 3; }
}

@keyframes map-scroll-nudge {
  0%, 40%, 100% { transform: translateY(0); }
  60% { transform: translateY(3px); }
  80% { transform: translateY(0); }
}

@media (max-width: 1023px), (max-height: 540px) {
  .map-scroll-cue { bottom: 84px; }
}

.map-noscript {
  position: absolute;
  z-index: var(--z-map-overlay);
  top: 50%;
  left: 50%;
  width: min(460px, calc(100% - 32px));
  margin: 0;
  padding: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-filter-dialog,
.map-legend-dialog {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - var(--site-header-height) - 32px);
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.map-filter-dialog {
  position: fixed;
  inset: calc(var(--site-header-height) + 16px) auto auto max(16px, env(safe-area-inset-left));
  width: 390px;
}

.map-filter-dialog form,
.map-legend-dialog {
  padding: 20px;
}

.map-legend-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(430px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
}

.dialog-heading h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.dialog-heading p {
  max-width: 34ch;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 0.82rem;
  line-height: 1.45;
}

.filter-date-group,
.map-filter-dialog .layer-picker {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.filter-date-group legend,
.map-filter-dialog .layer-picker legend {
  margin: 0 0 9px;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.map-filter-dialog .date-control input {
  width: 100%;
  height: 44px;
}

.map-filter-dialog .layer-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.map-filter-dialog .layer-picker legend {
  grid-column: 1 / -1;
}

.map-filter-dialog .layer-picker label span {
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 8px 10px;
  white-space: normal;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dialog-actions .ghost-btn,
.dialog-actions .btn {
  min-height: 44px;
  height: 44px;
}

.map-legend-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.map-legend-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-2);
  font-weight: 650;
}

.map-legend-list .lg-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.map-legend-list .lg-dot.news {
  background: var(--bark);
  border-radius: 3px;
}

.map-legend-note {
  margin: 20px 0 0;
  padding-top: 16px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.55;
}

.record-legend {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.record-legend div {
  display: grid;
  gap: 2px;
}

.record-legend dt {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.record-legend dd {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
}

.activity-section {
  scroll-margin-top: calc(var(--site-header-height) + 12px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 80px);
}

.activity-heading,
.activity-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.activity-heading {
  margin-bottom: 28px;
}

.activity-heading h2,
.activity-heading p,
.activity-panel-heading h3,
.activity-panel-heading p {
  margin: 0;
}

.activity-heading h2 {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.1;
}

.activity-heading p {
  margin-top: 7px;
  color: var(--ink-3);
}

.activity-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.activity-map-link:hover {
  background: var(--surface-hover);
  text-decoration: none;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.activity-panel {
  min-width: 0;
}

.activity-panel-heading {
  margin-bottom: 16px;
}

.activity-panel-heading h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 550;
  line-height: 1.2;
}

.activity-panel-heading p {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.activity-count {
  min-width: 36px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.map-first-page .list {
  max-height: none;
  overflow: visible;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.map-first-page .activity-panel .list {
  gap: 10px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.map-first-page .activity-panel .card {
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-first-page .record-signals {
  margin-bottom: 6px;
}

.map-first-page .card-title {
  margin-bottom: 2px;
  font-size: 1.02rem;
  line-height: 1.27;
}

.map-first-page .card-meta {
  gap: 2px 12px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.map-first-page .card-note {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.map-first-page .card.news .card-note {
  -webkit-line-clamp: 1;
}

.map-first-page .card.sighting .card-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Domov používa rovnaký kompaktný listing ako sekcia pod mapou. */
.home-landing-page .home-activity-grid .activity-panel-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 550;
  line-height: 1.2;
}

.home-landing-page .home-activity-grid .list {
  max-height: none;
  gap: 10px;
  overflow: visible;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.home-landing-page .home-activity-grid .card {
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.home-landing-page .home-activity-grid .record-signals {
  margin-bottom: 6px;
}

.home-landing-page .home-activity-grid .card-title {
  margin-bottom: 2px;
  font-size: 1.02rem;
  line-height: 1.27;
}

.home-landing-page .home-activity-grid .card-meta {
  gap: 2px 12px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.home-landing-page .home-activity-grid .card-note {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-landing-page .home-activity-grid .card.news .card-note,
.home-landing-page .home-activity-grid .card.sighting .card-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.home-landing-page .home-activity-grid .card.news .card-note {
  -webkit-line-clamp: 1;
}

.home-landing-page .home-activity-grid .card.sighting .card-note {
  -webkit-line-clamp: 2;
}

.home-landing-page .home-activity-grid .card.sighting {
  cursor: default;
}

.home-landing-page .home-activity-grid .card:hover {
  transform: none;
  background: var(--surface-2);
  border-color: var(--line);
  box-shadow: none;
}

.map-first-page .list-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  padding: 9px 16px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.map-first-page .list-load-more:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.map-first-page .card.sighting,
.map-first-page .card.news.has-place {
  cursor: default;
}

.map-first-page .card:hover {
  transform: none;
  background: var(--surface-2);
  border-color: var(--line);
  box-shadow: none;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  margin-top: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.card-primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-actions-sighting {
  grid-template-columns: minmax(0, 1fr) auto;
}

.card-actions .card-link,
.card-actions .source-links .card-link {
  position: relative;
  min-height: 34px;
  margin-top: 0;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.card-actions .card-link::before,
.card-correction::before,
.card-map-action::before {
  position: absolute;
  inset: -5px -4px;
  content: "";
}

.card-actions .card-link:hover,
.card-actions .card-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-map-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
}

.card-detail-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 9px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.card-detail-action:hover,
.card-detail-action:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

.card-detail-action:active {
  transform: translateY(1px);
}

.news-card-cta {
  margin-top: 12px;
}

.news-card-detail-action {
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  font-size: 0.82rem;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.news-card-detail-action:hover,
.news-card-detail-action:focus-visible {
  color: var(--accent-ink);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.news-card-detail-action:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.news-card-detail-action i {
  flex: 0 0 auto;
  font-size: 1rem;
}

.card-source-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-width: 0;
  padding-top: 2px;
}

.card-source-label {
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 650;
}

.card-source-row .source-links {
  gap: 4px 14px;
}

.card-actions-news {
  margin-top: 10px;
  padding-top: 10px;
}

.card-actions-news .card-source-row {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0;
}

.card-actions-news .card-source-link {
  color: var(--ink-3);
  font-weight: 600;
}

.card-actions-news .card-correction {
  grid-column: 2;
  grid-row: 1;
}

.card-map-action:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.card-map-action:active,
.card-actions .card-link:active,
.card-correction:active {
  transform: translateY(1px);
}

.card-correction {
  position: relative;
  margin-left: auto;
}

.meta-coverage,
.meta-official {
  color: var(--ink-2);
  font-weight: 650;
}

.meta-official {
  color: var(--accent);
}

.coverage-details {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.coverage-details summary {
  min-height: 44px;
  padding: 12px 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.coverage-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage-list li {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.coverage-list div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.coverage-list strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.coverage-list span {
  color: var(--ink-3);
  font-size: 0.74rem;
}

.coverage-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (min-width: 560px) {
  .coverage-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

/* Editorial home */

.home-page .home-main {
  width: min(100%, 1500px);
  max-width: none;
  padding-right: clamp(16px, 2.2vw, 32px);
  padding-left: clamp(16px, 2.2vw, 32px);
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

/* Preserve the original home hero after moving the map to its own screen. */
.home-page .home-original-hero {
  grid-template-columns: minmax(0, 760px) minmax(280px, 1fr);
  min-height: min(620px, calc(100dvh - var(--site-header-height) - 48px));
  margin-bottom: 0;
}

.home-page .home-original-hero h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  min-height: min(620px, calc(100dvh - var(--site-header-height) - 48px));
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: clamp(36px, 6vw, 76px);
}

.home-hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 5.2vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.home-hero-copy > p {
  max-width: 48ch;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-hero-actions .btn,
.home-hero-actions .hero-secondary-btn {
  min-height: 48px;
  height: 48px;
}

.home-hero-visual {
  align-self: end;
  justify-self: end;
  width: min(100%, 500px);
  height: min(580px, calc(100dvh - var(--site-header-height) - 70px));
  margin-right: clamp(-48px, -3vw, -20px);
  overflow: hidden;
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(-12px 16px 26px rgb(26 26 23 / 17%));
}

[data-theme="dark"] .home-hero-visual img {
  filter: drop-shadow(-12px 16px 28px rgb(0 0 0 / 52%));
}

.home-stats-section,
.home-trust-section,
.home-how-section,
.home-locations-section,
.home-faq-section {
  margin-top: clamp(52px, 8vw, 96px);
}

.home-section-heading {
  max-width: 680px;
}

.home-section-heading h2,
.home-section-heading p {
  margin: 0;
}

.home-section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.home-section-heading p {
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.6;
}

.home-stats-section > .home-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.home-stats-section > .home-section-heading p {
  margin: 0;
  font-size: 0.82rem;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.home-stat {
  min-width: 0;
  padding: 0 clamp(14px, 2.6vw, 30px);
  border-right: 1px solid var(--line);
}

.home-stat:first-child {
  padding-left: 0;
}

.home-stat:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-stat strong,
.home-stat span {
  display: block;
}

.home-stat strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 550;
  line-height: 1.05;
}

.home-stat span {
  margin-top: 7px;
  color: var(--ink-3);
  font-size: 0.82rem;
  line-height: 1.3;
}

.home-trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: clamp(36px, 7vw, 92px);
}

.home-trust-section .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.home-limit-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.home-limit-card > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 23px;
}

.home-limit-card h3,
.home-limit-card p {
  margin: 0;
}

.home-limit-card h3 {
  font-size: 1.35rem;
}

.home-limit-card p {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.6;
}

.home-how-section > .home-section-heading {
  margin-bottom: 28px;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}

.home-steps li {
  min-width: 0;
  padding: 8px clamp(20px, 3vw, 36px) 8px 0;
  counter-increment: home-step;
}

.home-steps li + li {
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--line-strong);
}

.home-steps i {
  color: var(--accent);
  font-size: 28px;
}

.home-steps h3,
.home-steps p {
  margin: 0;
}

.home-steps h3 {
  margin-top: 14px;
  font-size: 1.35rem;
}

.home-steps p {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.58;
}

.home-safety-section {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: clamp(52px, 8vw, 96px);
  padding: clamp(24px, 4vw, 38px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.home-safety-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 29px;
}

.home-safety-section h2,
.home-safety-section p {
  margin: 0;
}

.home-safety-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.home-safety-section p {
  max-width: 62ch;
  margin-top: 6px;
  color: var(--ink-2);
}

.home-locations-section .location-links {
  margin-top: 22px;
}

.home-faq-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(30px, 6vw, 82px);
}

.home-faq-section .faq-list {
  margin-top: 0;
}

.home-report-cta,
.home-notify-section {
  margin-top: clamp(52px, 8vw, 96px);
}

.home-notify-section .notify-field label,
.home-notify-section .notify-area label,
.home-notify-section .notify-type legend {
  display: block;
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-notify-section .notify-type {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 1023px) {
  /* The server sends six crawlable records. Match the client-side tablet
     page size before hydration so replacing the list does not shift layout. */
  .map-first-page .list > .ssr-list-item:nth-of-type(n + 5) {
    display: none;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .activity-panel + .activity-panel {
    margin-top: 16px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  }

  .home-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.3rem);
  }

  .home-faq-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .site-shell-ready .brand-name {
    display: none;
  }

  .site-shell-ready .main-nav {
    gap: 4px;
  }

  .site-shell-ready .main-nav a {
    padding-inline: 7px;
    font-size: 0.87rem;
  }
}

@media (max-width: 760px) {
  /* Mobile initializes with three records per section. */
  .map-first-page .list > .ssr-list-item:nth-of-type(n + 4) {
    display: none;
  }

  /* Domov je stručný prehľad. Celé zoznamy zostávajú na mapovej stránke. */
  .home-landing-page .columns .list > .ssr-list-item:nth-of-type(n + 4) {
    display: none;
  }

  .home-landing-page .columns .list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  :root {
    --site-header-height: calc(56px + env(safe-area-inset-top));
    --bottom-nav-space: calc(60px + env(safe-area-inset-bottom));
  }

  .site-shell-ready .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }

  .site-shell-ready .brand {
    min-height: 44px;
  }

  .site-shell-ready .main-nav {
    position: fixed;
    z-index: var(--z-bottom-nav);
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -3px 16px rgb(18 28 20 / 9%);
  }

  .site-shell-ready .main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 52px;
    padding: 3px 2px;
    border-radius: 8px;
    font-size: clamp(0.67rem, 2.8vw, 0.76rem);
    line-height: 1.05;
  }

  .site-shell-ready .main-nav a i {
    display: block;
  }

  .site-shell-ready body,
  body.site-shell-ready {
    padding-bottom: var(--bottom-nav-space);
  }

  .site-shell-ready body .privacy-banner,
  body.site-shell-ready .privacy-banner {
    bottom: calc(var(--bottom-nav-space) + 8px);
  }

  .site-drawer {
    width: min(360px, calc(100vw - 16px));
  }

  .map-viewport {
    min-height: 0;
  }

  .map-overlay-top {
    top: 8px;
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) auto;
    width: auto;
  }

  .map-search-control input,
  .map-filter-button {
    height: 44px;
  }

  .map-search-control i {
    left: 13px;
    font-size: 19px;
  }

  .map-search-control input {
    padding-right: 12px;
    padding-left: 40px;
  }

  .map-filter-button {
    position: relative;
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .map-filter-count {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 0.625rem;
    line-height: 1;
  }

  .map-filter-label {
    display: none;
  }

  .map-first-page .leaflet-top.leaflet-right {
    top: 52px;
    right: max(8px, env(safe-area-inset-right));
  }

  .map-first-page .leaflet-bottom.leaflet-right {
    right: max(6px, env(safe-area-inset-right));
    bottom: 3px;
  }

  .map-first-page .leaflet-control-attribution {
    margin: 0;
    padding: 1px 4px;
    color: var(--ink-2);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.35;
  }

  .map-first-page .leaflet-control-attribution a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 1px;
  }

  .map-first-page .map-center-control {
    display: none;
  }

  .map-bottom-bar {
    right: max(8px, env(safe-area-inset-right));
    bottom: 24px;
    left: max(8px, env(safe-area-inset-left));
    display: flex;
    max-width: none;
    height: 46px;
    gap: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgb(24 45 29 / 14%);
  }

  .map-result-status,
  .map-legend-button,
  .map-listings-jump {
    min-height: 44px;
    height: 44px;
    margin: 0;
    color: var(--ink-2);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.78rem;
  }

  .map-result-status {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 11px;
    font-weight: 700;
  }

  .map-result-long {
    display: none;
  }

  .map-result-compact {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-legend-button,
  .map-listings-jump {
    position: static;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    transform: none;
    border-left: 1px solid var(--line);
  }

  .map-legend-button {
    width: 44px;
    padding: 0;
  }

  .map-legend-label {
    display: none;
  }

  .map-listings-jump {
    gap: 6px;
    padding: 0 12px;
    color: var(--accent);
    font-weight: 750;
  }

  .map-load-status {
    top: 60px;
    right: max(68px, calc(env(safe-area-inset-right) + 60px));
    left: max(8px, env(safe-area-inset-left));
    display: flex;
    width: auto;
    max-width: none;
    height: 46px;
    min-height: 46px;
    gap: 0;
    overflow: hidden;
    padding: 0 0 0 10px;
  }

  .map-load-copy {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-load-status button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin-left: 8px;
    padding: 0;
    justify-content: center;
    border-width: 0 0 0 1px;
    border-radius: 0;
  }

  .map-load-status button span {
    display: none;
  }

  .map-filter-dialog {
    inset: auto 0 var(--bottom-nav-space) 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--site-header-height) - var(--bottom-nav-space) - 8px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .map-filter-dialog form {
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
  }

  .map-legend-dialog {
    width: calc(100vw - 24px);
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dialog-actions .btn {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
  }

  .activity-section {
    scroll-margin-top: calc(var(--site-header-height) + 8px);
    padding-top: 30px;
  }

  .activity-heading {
    display: grid;
    gap: 16px;
  }

  .activity-map-link {
    width: fit-content;
  }

  .activity-panel-heading {
    gap: 12px;
  }

  .card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .card-primary-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .card-actions-sighting {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .card-primary-actions > .card-map-action,
  .card-primary-actions > .card-detail-action {
    flex: 1 1 auto;
  }

  .mobile-source-duplicate {
    display: none;
  }

  .card-correction {
    grid-column: 2;
    min-height: 34px;
    margin-left: auto;
  }

  .card-map-action {
    min-height: 34px;
  }

  .meta-source.has-mobile-source-links .meta-source-text {
    display: none;
  }

  .meta-source-links-mobile {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
  }

  .meta-source-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    touch-action: manipulation;
  }

  .meta-source-link::before {
    position: absolute;
    inset: -5px -4px;
    content: "";
  }

  .meta-source-link:hover,
  .meta-source-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .meta-source-link i {
    font-size: 13px;
  }

  .home-page .home-main {
    padding-top: 16px;
  }

  .home-page .home-original-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .home-page .home-original-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    overflow-wrap: normal;
  }

  .home-hero {
    display: block;
    min-height: clamp(540px, 72dvh, 600px);
  }

  .home-hero-copy {
    max-width: 100%;
    padding: clamp(28px, 8vw, 44px) clamp(22px, 7vw, 38px);
  }

  .home-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 10.5vw, 2.9rem);
    line-height: 0.98;
  }

  .home-hero-copy > p {
    max-width: 32ch;
    font-size: 1rem;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 260px);
  }

  .home-hero-actions > * {
    width: 100%;
    justify-content: center;
  }

  .home-hero-visual {
    position: absolute;
    right: -19%;
    bottom: -18%;
    width: 70%;
    height: 58%;
    margin: 0;
    opacity: 0.17;
    pointer-events: none;
  }

  .home-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .home-stat {
    padding: 0 10px;
  }

  .home-trust-section,
  .home-faq-section {
    grid-template-columns: 1fr;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-steps li,
  .home-steps li + li {
    padding: 20px 0;
    border-left: 0;
  }

  .home-steps li + li {
    border-top: 1px solid var(--line-strong);
  }

  .home-safety-section {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .home-safety-icon {
    width: 48px;
    height: 48px;
  }

  .home-safety-section .btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    height: auto;
    justify-content: center;
    text-align: center;
  }

  .home-report-cta,
  .home-notify-section {
    margin-right: 0;
    margin-left: 0;
  }
}

/* Phones in landscape can be wider than the mobile breakpoint. Keep the map
   within the usable viewport and preserve the same compact one-row controls. */
@media (min-width: 761px) and (max-width: 950px) and (max-height: 500px) {
  :root {
    --site-header-height: 56px;
  }

  .site-shell-ready .site-header {
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    padding-block: 0;
  }

  .map-viewport {
    min-height: 0;
  }

  .map-overlay-top {
    top: 8px;
  }

  .map-search-control input,
  .map-filter-button {
    height: 44px;
  }

  .map-first-page .leaflet-top.leaflet-right {
    top: 52px;
  }

  .map-first-page .map-center-control {
    display: none;
  }

  .map-first-page .leaflet-bottom.leaflet-right {
    right: 6px;
    bottom: 3px;
  }

  .map-first-page .leaflet-control-attribution {
    margin: 0;
    padding: 1px 4px;
    color: var(--ink-2);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.35;
  }

  .map-first-page .leaflet-control-attribution a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 1px;
  }

  .map-bottom-bar {
    right: 16px;
    bottom: 24px;
    left: 16px;
    display: flex;
    max-width: none;
    height: 46px;
    gap: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgb(24 45 29 / 14%);
  }

  .map-result-status,
  .map-legend-button,
  .map-listings-jump {
    min-height: 44px;
    height: 44px;
    margin: 0;
    color: var(--ink-2);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.78rem;
  }

  .map-result-status {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
  }

  .map-legend-button,
  .map-listings-jump {
    position: static;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    transform: none;
    border-left: 1px solid var(--line);
  }

  .map-legend-button {
    width: 44px;
    padding: 0;
  }

  .map-legend-label {
    display: none;
  }

  .map-listings-jump {
    gap: 6px;
    padding: 0 12px;
    color: var(--accent);
    font-weight: 750;
  }

  .map-load-status {
    top: 60px;
    right: 68px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .map-filter-button {
    width: 44px;
    padding: 0;
  }

  .map-result-status {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filter-date-grid {
    grid-template-columns: 1fr;
  }

  .home-stats-section > .home-section-heading {
    display: block;
  }

  .home-stats-section > .home-section-heading p {
    margin-top: 8px;
  }
}

@media (max-width: 350px) {
  .map-result-status {
    padding-inline: 8px;
  }

  .map-listings-jump {
    gap: 4px;
    padding-inline: 8px;
  }

  .map-listings-label-full {
    display: none;
  }

  .map-listings-label-short {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .dialog-close,
  .map-filter-button,
  .map-legend-button,
  .drawer-nav a,
  .drawer-settings button,
  .card {
    transition: none;
  }
}

/* ---------- News and warning archives ---------- */
.archive-shell,
.record-shell {
  width: min(100% - 32px, 1040px);
  max-width: 1040px;
  margin-inline: auto;
  padding-bottom: clamp(56px, 8vw, 92px);
}

.archive-hero,
.record-hero {
  max-width: 780px;
  padding: clamp(34px, 6vw, 68px) 0 clamp(28px, 5vw, 48px);
}

.archive-hero h1,
.record-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.archive-hero .answer-lead {
  max-width: 62ch;
  margin-top: 20px;
}

.archive-hero .review-note {
  margin-top: 14px;
}

.archive-listing {
  scroll-margin-top: calc(var(--site-header-height) + 18px);
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.archive-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.archive-search-field {
  position: relative;
  display: block;
}

.archive-search-field i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--ink-3);
  font-size: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.archive-toolbar input,
.archive-toolbar select {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.92rem;
}

.archive-toolbar input {
  padding: 10px 12px 10px 40px;
}

.archive-toolbar select {
  padding: 9px 34px 9px 12px;
}

.archive-toolbar input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.archive-toolbar input:focus-visible,
.archive-toolbar select:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
}

.archive-submit {
  min-height: 46px;
  white-space: nowrap;
}

.archive-reset {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding-inline: 8px;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.archive-count {
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.archive-record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-record-list .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  padding: clamp(18px, 3vw, 24px);
}

.archive-record-list .card-actions {
  margin-top: auto;
  padding-top: 14px;
}

.archive-record-list .card.news .card-note {
  -webkit-line-clamp: 3;
}

.card-title-link {
  text-decoration: none;
}

.card-title-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.card-main-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.card-detail-link {
  margin-top: 0;
}

.archive-empty {
  grid-column: 1 / -1;
  padding: clamp(42px, 8vw, 76px) 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-empty i {
  color: var(--accent);
  font-size: 34px;
}

.archive-empty h2 {
  margin: 12px 0 5px;
}

.archive-empty p {
  margin: 0;
  color: var(--ink-2);
}

.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.archive-pagination a,
.archive-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.archive-pagination a {
  color: var(--ink-2);
  background: var(--surface);
}

.archive-pagination a:hover,
.archive-pagination a:focus-visible,
.archive-pagination .pagination-current {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.archive-pagination .pagination-direction {
  gap: 7px;
}

.archive-context {
  margin-top: clamp(42px, 7vw, 72px);
  padding: clamp(24px, 5vw, 40px);
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.archive-context h2,
.archive-context p {
  max-width: 66ch;
}

.archive-context h2 {
  margin-top: 0;
}

.archive-context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

/* ---------- Individual news and warning pages ---------- */
.record-article {
  max-width: 860px;
}

.record-hero h1 {
  max-width: 19ch;
  font-size: clamp(2.2rem, 5.4vw, 4.45rem);
}

.record-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 0.86rem;
}

.record-byline span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.record-byline i {
  color: var(--accent);
}

.record-summary {
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.record-summary h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.record-summary > p:not(.record-ai-note) {
  max-width: 62ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.5;
}

.record-ai-note {
  display: flex;
  gap: 8px;
  max-width: 68ch;
  margin: 20px 0 0;
  padding-top: 16px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.record-ai-note i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}

.record-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  margin-top: 14px;
}

.record-detail-grid > div {
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-detail-grid h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.record-detail-grid p {
  color: var(--ink-2);
}

.record-detail-locations,
.record-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-detail-locations a,
.record-detail-locations span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 11px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.record-detail-locations a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.record-source-actions .btn {
  min-height: 46px;
  white-space: nowrap;
}

.record-detail-empty {
  color: var(--ink-3);
}

.record-caution {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-top: 14px;
  padding: clamp(22px, 4vw, 30px);
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.record-caution > i {
  color: var(--accent);
  font-size: 28px;
}

.record-caution h2,
.record-caution p {
  margin-top: 0;
}

.record-related {
  margin-top: clamp(44px, 7vw, 72px);
}

.record-related > h2 {
  margin-bottom: 18px;
}

.record-related > .list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: none;
  overflow: visible;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.record-related .card {
  min-width: 0;
  margin: 0;
}

.record-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.record-footer-actions .ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 820px) {
  .archive-toolbar {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .archive-submit,
  .archive-reset {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .archive-shell,
  .record-shell {
    width: min(100% - 24px, 1040px);
  }

  .archive-hero,
  .record-hero {
    padding-top: 28px;
  }

  .archive-hero h1,
  .record-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
    line-height: 1.02;
  }

  .archive-toolbar,
  .archive-record-list,
  .record-detail-grid,
  .record-related > .list {
    grid-template-columns: 1fr;
  }

  .record-related > .list {
    gap: 10px;
  }

  .record-related .card {
    padding: 14px 16px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .record-related .record-signals {
    margin-bottom: 6px;
  }

  .record-related .card-title {
    margin-bottom: 2px;
    font-size: 1.02rem;
    line-height: 1.27;
  }

  .record-related .card-meta {
    gap: 2px 12px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .record-related .card-meta > span,
  .record-related .card-meta > time {
    max-width: 100%;
  }

  .record-related .card-note {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
  }

  .record-related .card.news .card-note {
    -webkit-line-clamp: 1;
  }

  .record-related .card.sighting .card-note {
    -webkit-line-clamp: 2;
  }

  .record-related .card:hover {
    transform: none;
    background: var(--surface-2);
    border-color: var(--line);
    box-shadow: none;
  }

  .record-related .card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .record-related .card-primary-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .record-related .card-primary-actions > .card-detail-action {
    flex: 1 1 auto;
  }

  .record-related .mobile-source-duplicate {
    display: none;
  }

  .record-related .card-correction {
    grid-column: 2;
    min-height: 34px;
    margin-left: auto;
  }

  .record-related .meta-source.has-mobile-source-links .meta-source-text {
    display: none;
  }

  .record-related .meta-source-links-mobile {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    min-width: 0;
  }

  .record-related .meta-source-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .archive-toolbar {
    padding: 14px;
  }

  .archive-pagination .pagination-direction {
    flex: 1 1 46%;
  }

  .record-summary,
  .record-detail-grid > div,
  .record-caution {
    padding: 20px;
  }
}
