/* ================= barvy a motivy ================= */
:root {
  --bg: #f3f4f7; --panel: #fff; --panel-2: #f6f7f9; --ink: #121620; --ink-2: #343a46; --muted: #5f6878; --line: #e4e7ec; --line-2: #c5cad3;
  --dark: #0f1218; --accent: #e03131; --accent-2: #ff6b3d; --chip: #fff; --input: #f3f4f7; --msg: #fff8f0; --sel: #fff5f5; --sel-line: #ffc9c9;
  --tag: #f1f3f5; --tag-ink: #343a40; --tag-red: #ffe3e3; --tag-red-ink: #a3000f; --hover: #f6f7f9;
  --s4: #8a0b16; --s3: #e03131; --s2: #f2a900; --s1: #2b9348; --s0: #868e96;
  --radius: 14px; --shadow: 0 10px 30px rgba(15,18,24,.16); --map-filter: none;
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0c0f14; --panel: #151a22; --panel-2: #1b212b; --ink: #e8ecf2; --ink-2: #c3cad5; --muted: #8f99a8; --line: #262d39; --line-2: #3a4352;
  --chip: #1b212b; --input: #10141b; --msg: #2a1f17; --sel: #2a1719; --sel-line: #5c2a2f;
  --tag: #232a35; --tag-ink: #c9d1dc; --tag-red: #3d1a1e; --tag-red-ink: #ff9aa2; --hover: #1b212b;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --map-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0c0f14; --panel: #151a22; --panel-2: #1b212b; --ink: #e8ecf2; --ink-2: #c3cad5; --muted: #8f99a8; --line: #262d39; --line-2: #3a4352;
    --chip: #1b212b; --input: #10141b; --msg: #2a1f17; --sel: #2a1719; --sel-line: #5c2a2f;
    --tag: #232a35; --tag-ink: #c9d1dc; --tag-red: #3d1a1e; --tag-red-ink: #ff9aa2; --hover: #1b212b;
    --shadow: 0 10px 30px rgba(0,0,0,.5);
    --map-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { fill: currentColor; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* noční mapa: dlaždice se přebarví filtrem (funguje s libovolným podkladem) */
.leaflet-tile-pane { filter: var(--map-filter); }
.leaflet-container { background: var(--panel-2); font: inherit; }
.leaflet-bar a, .leaflet-control-attribution { background: var(--panel) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip, .leaflet-tooltip { background: var(--panel); color: var(--ink); border-color: var(--line); }

/* ================= hlavička ================= */
.hero, .band { position: relative; color: #fff; background: var(--dark); overflow: hidden; isolation: isolate; }
.band { border-bottom: 1px solid #1d232d; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,18,24,.96) 0%, rgba(15,18,24,.86) 30%, rgba(15,18,24,.35) 58%, rgba(15,18,24,.05) 100%),
    linear-gradient(180deg, rgba(15,18,24,.45) 0%, rgba(15,18,24,0) 22%, rgba(15,18,24,0) 70%, rgba(15,18,24,.75) 94%, var(--dark) 100%); }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 10px 24px 4px; gap: 12px; }
.band .nav { padding: 10px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(224,49,49,.45); flex: none; }
.logo svg { width: 27px; height: 27px; fill: #fff; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 11px; border-radius: 8px; opacity: .85; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { background: rgba(255,255,255,.12); opacity: 1; }
.theme-btn { width: 36px; height: 36px; margin-left: 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); cursor: pointer; display: grid; place-items: center; color: #fff; }
.theme-btn:hover { background: rgba(255,255,255,.18); }
.theme-btn .ti { width: 18px; height: 18px; display: none; }
:root[data-theme="auto"] .ti-auto, :root[data-theme="light"] .ti-light, :root[data-theme="dark"] .ti-dark { display: block; }
.hero-inner { max-width: 1400px; margin: 0 auto; padding: 4px 24px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-text { min-width: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 8px; font-size: 13px; opacity: .8; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs.dark { color: var(--muted); opacity: 1; margin: 18px 0 10px; }
.live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 4px 12px 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255,77,77,.7); animation: live 1.6s infinite; display: inline-block; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
.hero h1 { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.1; margin: 0 0 4px; letter-spacing: -.02em; font-weight: 800; }
.lead { font-size: 14.5px; max-width: 640px; margin: 0; color: rgba(255,255,255,.82); }
.stats { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex: none; }
.stats li { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: 11px; padding: 7px 14px; min-width: 96px; backdrop-filter: blur(8px); }
.stats strong { display: block; font-size: 22px; line-height: 1.1; font-weight: 800; }
.stats li:first-child { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 20px rgba(224,49,49,.4); }
.stats span { font-size: 12.5px; opacity: .85; }

.banner { padding: 9px 24px; font-size: 13.5px; text-align: center; }
.banner.demo { background: #fff3bf; color: #5c4400; }
.banner.warn { background: #ffe3e3; color: #7a0010; }

/* ================= živá mapa ================= */
.app { display: grid; grid-template-columns: 390px minmax(0, 1fr); height: min(calc(100vh - 20px), 900px); min-height: 560px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--panel); }
.tools { padding: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; background: var(--panel); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--muted); }
#q { width: 100%; padding: 11px 12px 11px 38px; border: 1px solid var(--line); border-radius: 11px; background: var(--input); }
#q:focus { outline: 2px solid var(--ink); outline-offset: -1px; background: var(--panel); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--chip); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.sort { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.sort select { border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; background: var(--chip); margin-left: 4px; }
.locate { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px 4px 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.locate svg { width: 15px; height: 15px; fill: #1c7ed6; }
.side-more { display: block; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.side-more:hover { background: var(--hover); }

.list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 11px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.item + .item { margin-top: 2px; }
.item:hover { background: var(--hover); }
.item.sel { background: var(--sel); border-color: var(--sel-line); }
.item:focus-visible { outline: 2px solid var(--ink); }
.ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--s0); flex: none; }
.ico svg { width: 26px; height: 26px; fill: #fff; }
.ico.big { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.2); }
.ico.big svg { width: 40px; height: 40px; }
.row1 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ttl { font-weight: 700; font-size: 14.5px; margin: 0; line-height: 1.25; }
.ttl a { text-decoration: none; }
.ttl a:hover { text-decoration: underline; }
.place { font-size: 13px; color: var(--muted); margin: 2px 0 0; line-height: 1.35; }
.meta { font-size: 12px; color: var(--muted); margin-top: 5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.meta time { margin-right: 2px; }
.tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: var(--tag); color: var(--tag-ink); white-space: nowrap; }
.tag.red { background: var(--tag-red); color: var(--tag-red-ink); }
.tag.new { background: var(--accent); color: #fff; }
.tag.muted { background: var(--tag); color: var(--muted); }
/* čísla silnic jako na českých značkách: dálnice červeně s bílým rámečkem, I. třída modře */
.road { display: inline-block; font-weight: 800; font-size: 12px; padding: 1px 6px; border-radius: 4px; background: #5c636e; color: #fff;
  white-space: nowrap; letter-spacing: .01em; box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 1px rgba(0,0,0,.18); vertical-align: middle; }
.road.d { background: #d7141a; }
.road.i { background: #1f5fae; }
.empty { padding: 24px; color: var(--muted); text-align: center; }

.sev-4 { background: var(--s4); } .sev-3 { background: var(--s3); } .sev-2 { background: var(--s2); } .sev-1 { background: var(--s1); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.mapwrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
.legend { position: absolute; left: 12px; bottom: 24px; z-index: 500; background: var(--panel); color: var(--ink); opacity: .96;
  border-radius: 10px; padding: 7px 12px; font-size: 12px; font-weight: 600; display: flex; gap: 12px; box-shadow: var(--shadow); }
.legend[hidden] { display: none; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend.closures { bottom: 66px; }
.legend.traffic { bottom: 108px; }
.tl { display: inline-block; width: 18px; height: 5px; border-radius: 3px; }
.t1 { background: #2f9e44; } .t2 { background: #f5c400; } .t3 { background: #fd7e14; } .t4 { background: #e03131; } .t5 { background: #7a0010; }
.layers { position: absolute; top: 12px; left: 56px; z-index: 550; display: flex; background: var(--panel); border-radius: 11px; padding: 3px; box-shadow: var(--shadow); gap: 2px; }
.layer-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--muted); }
.layer-btn svg { width: 18px; height: 18px; }
.layer-btn:hover { color: var(--ink); }
.layer-btn.on { background: var(--ink); color: var(--panel); }
.traffic-tip { font-size: 12.5px; font-weight: 600; }

/* značka nehody */
.mk { position: relative; width: 38px; height: 48px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); transition: transform .15s; transform-origin: 50% 100%; }
.mk > svg { position: absolute; inset: 0; width: 38px; height: 48px; }
.mk .pin { stroke: #fff; stroke-width: 2.6; }
.mk .gl { position: absolute; left: 7px; top: 6px; width: 24px; height: 24px; fill: #fff; }
.mk.sel { transform: scale(1.3); z-index: 1000; }
.mk:hover { transform: scale(1.15); }
.mk.unconf { opacity: .8; }
.mk.unconf .pin { stroke-dasharray: 4 3; }
.mk .badge { position: absolute; right: -5px; top: -5px; width: 19px; height: 19px; border-radius: 50%; border: 2px solid #fff;
  background: #e03131 linear-gradient(#fff, #fff) center / 9px 3px no-repeat; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.mk.new::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: 26px; height: 10px; margin-left: -13px; border-radius: 50%;
  background: currentColor; opacity: .6; animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

/* značky uzavírek */
.cl-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); vertical-align: middle; }
.legend .cl-ico { width: 16px; height: 16px; border-width: 1.5px; }
.cl-ico.cl-closure { background: #c1121f linear-gradient(#fff, #fff) center / 55% 22% no-repeat; }
.cl-ico.cl-works { background: #f08c00; border-radius: 6px; }
.cl-ico.cl-works svg { width: 70%; height: 70%; fill: #fff; }
.cl-ico.cl-restriction { background: #f5c400 linear-gradient(#5c4400, #5c4400) center / 16% 50% no-repeat; border-radius: 6px; }
.cl-ico.sel { transform: scale(1.35); box-shadow: 0 0 0 4px rgba(0,0,0,.25); }
.pin.cl-works { background: #f08c00; }

/* detail na mapě */
.detail { position: absolute; top: 14px; right: 14px; width: 390px; max-height: calc(100% - 28px); overflow-y: auto;
  background: var(--panel); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 650; }
.detail[hidden] { display: none; }
.detail .close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; cursor: pointer; line-height: 1; z-index: 2; }
.detail .close:hover { background: rgba(255,255,255,.35); }
.dhead { padding: 16px 52px 16px 18px; color: #fff; display: flex; gap: 12px; align-items: center; border-radius: var(--radius) var(--radius) 0 0; }
.dhead .ico { background: rgba(255,255,255,.2); }
.dhead h2 { font-size: 18px; margin: 0; line-height: 1.2; }
.dhead p { margin: 2px 0 0; font-size: 13px; opacity: .9; }
.dbody { padding: 14px 18px 18px; }
.dkpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dkpi div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; }
.dkpi b { display: block; font-size: 15px; }
.dkpi span { font-size: 11.5px; color: var(--muted); }
.dkpi.big b { font-size: 20px; }
.msg { background: var(--msg); border-left: 4px solid var(--accent-2); padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.detail dl, .det-dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; font-size: 14px; }
.detail dt, .det-dl dt { color: var(--muted); }
.detail dd, .det-dl dd { margin: 0; font-weight: 600; }
.dfoot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dfoot a { color: var(--ink); font-weight: 600; }

/* sdílení */
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.share.compact { gap: 6px; }
.sh { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 700;
  text-decoration: none; cursor: pointer; color: #fff; background: #495057; white-space: nowrap; }
.share.compact .sh { padding: 6px 11px; font-size: 12.5px; }
.sh svg { width: 16px; height: 16px; }
.sh:hover { filter: brightness(1.08); }
.sh-native { background: var(--ink); color: var(--panel); }
.sh-wa { background: #25d366; color: #06301a; }
.sh-fb { background: #1877f2; }
.sh-tg { background: #229ed9; }
.sh-x { background: #000; }
.sh-mail { background: #6c757d; }
.sh-copy { background: var(--tag); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--panel);
  text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.block { display: flex; width: 100%; margin-top: 4px; }
.btn:hover { filter: brightness(1.1); }

/* ================= obsah ================= */
.content { padding: 56px 0; }
.content.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.wrap.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.content h2, .page h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 8px; letter-spacing: -.02em; }
.h3, .content h3 { font-size: 17px !important; margin: 0 0 12px !important; letter-spacing: 0 !important; }
.content .sub { color: var(--muted); margin: 0 0 22px; }
.content p, .page p { color: var(--ink-2); }
.roads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
/* karty dálnic = zelená směrová tabule s červeným číslem dálnice */
.roads a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #00804a; color: #fff; border-radius: 9px; text-decoration: none;
  transition: transform .12s, box-shadow .12s; box-shadow: inset 0 0 0 2px #00804a, inset 0 0 0 3.5px rgba(255,255,255,.9); }
.roads a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px #00804a, inset 0 0 0 3.5px #fff, 0 8px 18px rgba(0,80,40,.25); }
.roads a.cur { background: #006b3e; }
.roads .road { font-size: 15px; padding: 3px 8px; min-width: 48px; text-align: center; box-shadow: inset 0 0 0 2px #fff; }
.rname { flex: 1; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.rcount { min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: rgba(255,255,255,.18); color: #fff; padding: 0 8px; }
.roads a.has .rcount { background: #fff; color: #d7141a; }
.legend-big { background: var(--panel-2); border-radius: var(--radius); padding: 20px 22px; }
.legend-big h3 { margin: 0 0 12px; font-size: 17px; }
.legend-big ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.legend-big li { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.legend-big .pin { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.legend-big .pin svg { width: 24px; height: 24px; fill: #fff; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; }

.kpis { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpis li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpis b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; }
.kpis span { color: var(--muted); font-size: 13px; }
.kpis li:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.kpis li:first-child span { color: rgba(255,255,255,.85); }
.toplist { list-style: none; counter-reset: t; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.toplist li { counter-increment: t; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; background: var(--panel-2); border-radius: 9px; font-size: 14px; }
.toplist li::before { content: counter(t); font-weight: 800; color: var(--muted); width: 18px; flex: none; }
.toplist li > span { flex: 1; min-width: 0; }
.toplist a { text-decoration: none; }
.toplist b { white-space: nowrap; }

/* ================= podstránky ================= */
.page { padding-bottom: 50px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.page h1 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.15; }
.lead-dark { margin: 0; color: var(--muted) !important; max-width: 780px; }
.pill { display: inline-block; font-size: 13px; vertical-align: middle; padding: 3px 10px; border-radius: 999px; background: var(--tag); }
.pill.live { background: var(--accent); color: #fff; }
.daynav { display: flex; gap: 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-h h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.heatmap { height: 520px; border-radius: 10px; overflow: hidden; }
.minimap { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.minimap.tall { height: 460px; }
.chart { width: 100%; height: auto; display: block; }
.chart rect { fill: var(--accent); opacity: .85; }
.chart rect:hover { opacity: 1; }
.chart text { fill: var(--muted); font-size: 11px; }
.c-hours rect { fill: #f0590e; }
.c-dow rect { fill: #f2a900; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a { padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--muted); }
.seg a.on { background: var(--ink); color: var(--panel); }
.roadsel select { margin-left: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.cal-wrap { display: grid; gap: 6px; }
.cal { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal a { display: flex; flex-direction: column; align-items: center; padding: 7px 4px; border-radius: 9px; text-decoration: none; line-height: 1.25;
  background: color-mix(in srgb, var(--accent) calc(var(--a) * 85%), var(--panel-2)); font-size: 12px; }
.cal a:hover { outline: 2px solid var(--ink); }
.cal a.today { outline: 2px dashed var(--accent); }
.cal b { font-size: 17px; }
.cal .cd { font-size: 11.5px; opacity: .9; }
.cal-head li { text-align: center; font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-head li.we { color: var(--accent); }
.cal a.we .cd { font-weight: 700; }
.cal-avg { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.cal-avg li { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 7px 4px 10px; border-radius: 9px;
  background: var(--panel-2); font-size: 12px; line-height: 1.25; }
.cal-avg li.worst { outline: 2px solid var(--accent); }
.cal-avg i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); border-radius: 0 2px 2px 0; }
.daystrip { list-style: none; display: grid; grid-template-columns: repeat(21, 1fr); gap: 4px; padding: 0; margin: 8px 0 6px; }
.daystrip a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 86px; text-decoration: none; border-radius: 8px; padding: 4px 0; font-size: 11px; color: var(--muted); }
.daystrip a:hover { background: var(--hover); }
.daystrip a.cur { background: var(--panel); outline: 2px solid var(--accent); color: var(--ink); }
.daystrip .bar { width: 60%; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .8; }
.daystrip .dl { font-weight: 700; color: var(--ink); margin-top: 3px; }
.day-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 28px; }
.list.cards { overflow: visible; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }
.list.cards .item { background: var(--panel); border-color: var(--line); cursor: default; }
.list.cards .item + .item { margin-top: 0; }
.src { font-size: 12.5px; color: var(--muted) !important; margin-top: 18px; }
.share-h { font-size: 17px !important; margin: 22px 0 0 !important; }

/* detail nehody */
.det-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.det-main { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 18px; }
.det-main > :not(.det-head) { margin-left: 20px; margin-right: 20px; }
.det-head { display: flex; gap: 16px; align-items: center; padding: 20px; color: #fff; margin-bottom: 16px; background: var(--s0); }
.sev-bg-4 { background: linear-gradient(135deg, var(--s4), #c1121f); } .sev-bg-3 { background: linear-gradient(135deg, #c92a2a, var(--s3)); }
.sev-bg-2 { background: linear-gradient(135deg, #e09b00, var(--s2)); } .sev-bg-1 { background: linear-gradient(135deg, var(--s1), #40a960); }
.det-head h1 { color: #fff; margin: 2px 0; font-size: clamp(22px, 2.6vw, 30px); }
.det-head h1 .road { font-size: 18px; padding: 2px 8px; margin-left: 4px; }
.det-place { margin: 0; color: rgba(255,255,255,.9) !important; }
.status { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: rgba(0,0,0,.22); padding: 3px 10px; border-radius: 999px; color: #fff !important; }
.det-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.det-map { position: sticky; top: 14px; }
.rel { margin-top: 34px; }

.foot { background: var(--dark); color: rgba(255,255,255,.75); padding: 32px 0 40px; font-size: 13.5px; }
.foot strong { color: #fff; }
.foot .small { font-size: 12px; opacity: .8; }
.foot a { color: #fff; }
.foot .partner { opacity: .55; margin-top: 14px; }
.foot .partner a { color: inherit; }

/* ================= mobil ================= */
@media (max-width: 1000px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .det-grid, .day-grid { grid-template-columns: 1fr; }
  .det-map { position: static; }
}
@media (max-width: 900px) {
  .nav { padding: 10px 14px 4px; }
  .band .nav { padding: 10px 14px; }
  .nav-links a { display: none; }
  .nav-links a.nl-archiv, .nav-links a.nl-kraje, .nav-links a.nl-pruvodce { display: inline-block; font-size: 13px; padding: 6px 8px; }
  .hero-inner { padding: 2px 16px 14px; display: block; }
  .hero h1 { font-size: 22px; }
  .lead { font-size: 13px; margin-bottom: 10px; }
  .hero-bg { object-position: 72% 75%; }
  .hero::before { background: linear-gradient(180deg, rgba(15,18,24,.55) 0%, rgba(15,18,24,.78) 45%, rgba(15,18,24,.92) 80%, var(--dark) 100%); }
  .stats { gap: 6px; flex-wrap: nowrap; }
  .stats li { min-width: 0; flex: 1 1 0; padding: 8px 9px; }
  .stats strong { font-size: 21px; }
  .stats span { font-size: 11px; display: block; line-height: 1.2; }
  .app { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .mapwrap { order: -1; height: 58vh; min-height: 340px; }
  .side { border-right: 0; }
  .tools { position: sticky; top: 0; z-index: 5; }
  .list { overflow: visible; max-height: none; }
  .legend { display: none; }
  .legend.traffic:not([hidden]), .legend.closures:not([hidden]) { display: flex; left: 8px; right: 8px; justify-content: space-between; gap: 6px; font-size: 11px; padding: 6px 8px; }
  .legend.traffic { bottom: 22px; } .legend.closures { bottom: 22px; }
  .legend.closures:not([hidden]) ~ .legend.traffic { bottom: 56px; }
  .legend.traffic b { display: none; }
  .layers { left: 52px; top: 10px; }
  .layer-btn { padding: 6px 8px; }
  .detail { position: fixed; left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 74vh; z-index: 1200; }
  .wrap.two { grid-template-columns: 1fr; gap: 28px; }
  .content { padding: 40px 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .heatmap { height: 420px; }
  .minimap { height: 300px; }
  .daystrip { grid-template-columns: repeat(14, 1fr); }
  .daystrip li:nth-child(-n+7) { display: none; }
  .list.cards { grid-template-columns: 1fr; }
  .det-main > :not(.det-head) { margin-left: 14px; margin-right: 14px; }
}
@media (max-width: 430px) {
  .layer-btn span { display: none; }
  .brand-name { font-size: 17px; }
}

/* logo Mapy.com (povinné při jejich dlaždicích) */
.mapy-logo { display: block; line-height: 0; margin: 0 0 4px 6px !important; }
.mapy-logo img { display: block; width: 100px; height: 30px; max-width: none; } /* min. 30 px dle Mapy.com */
/* legendy posunout nad logo, aby ho nezakrývaly */
.mapy .legend { bottom: 62px; }
.mapy .legend.closures { bottom: 104px; }
.mapy .legend.traffic { bottom: 146px; }
@media (max-width: 900px) {
  .mapy .legend.traffic, .mapy .legend.closures { bottom: 58px; }
  .mapy .legend.closures:not([hidden]) ~ .legend.traffic { bottom: 92px; }
}

/* ---------- stránky míst (kraj, okres, okolí) ---------- */
.live.dark { color: var(--muted); }
.place-head { margin-bottom: 8px; }
.place-head .kpis { margin: 16px 0 6px; }
.kpis li.hot { background: #e03131; border-color: #e03131; }
.kpis li.hot span { color: rgba(255,255,255,.9); }
.kpis li.hot b { color: #fff; }
.kpis em { font-style: normal; font-weight: 700; font-size: 12px; margin-left: 4px; }
.kpis em.up { color: #e03131; } .kpis em.down { color: #2b9348; }
.share.big .sh { padding: 11px 18px; font-size: 15px; }
.short-link { margin: -4px 0 0; }
.place-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; margin-top: 18px; }
.place-map { position: sticky; top: 12px; }
.place-map .minimap.tall { height: 560px; }
.list.cards.one { grid-template-columns: 1fr; }
.dist { color: var(--ink); }
.block { margin-top: 40px; }
.block.narrow { max-width: 820px; }
.block h2 small { font-size: 60%; font-weight: 600; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; }
.lg-dot.red { background: #e03131; } .lg-dot.jam { background: #fff; box-shadow: inset 0 0 0 3px #c1121f; } .lg-dot.cone { background: #f08c00; }
.jams { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.jams li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "r t d" "r m d"; column-gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-left: 5px solid #f0590e; border-radius: 12px; padding: 10px 14px; }
.jams li.lv5 { border-left-color: #7a0010; }
.jams .road { grid-area: r; }
.jams .jt { grid-area: t; font-weight: 700; }
.jams .jm { grid-area: m; color: var(--muted); font-size: 13px; }
.jams .jd { grid-area: d; color: #e03131; font-size: 18px; }
.cl-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }
.cl-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cl-list li > div { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.cl-list .cl-ico { flex: none; margin-top: 2px; }
.cl-list span.muted, .cl-list span.small { flex-basis: 100%; }
.area-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.area-grid a { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; color: var(--ink); }
.area-grid a:hover { border-color: var(--ink); }
.area-grid b { color: #2b9348; }
.area-grid a.has b { color: #e03131; }
.area-grid small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.area-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.area-links a:hover { border-color: var(--ink); }

/* kraje na úvodní stránce */
.kraje { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.kraje a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.kraje a:hover { border-color: var(--ink); transform: translateY(-1px); }
.kraje b { min-width: 30px; text-align: center; border-radius: 999px; padding: 2px 8px; background: var(--tag); color: #2b9348; font-size: 13px; }
.kraje a.has b { background: #e03131; color: #fff; }
.home-jams { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.guides { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.guides a { display: block; height: 100%; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); }
.guides a:hover { border-color: var(--ink); }
.guides b { display: block; font-size: 16px; margin-bottom: 4px; }
.guides span { color: var(--muted); font-size: 13.5px; }

/* sdílení: Messenger/Viber/SMS jen na mobilech */
.sh-ms { background: #0084ff; } .sh-vb { background: #7360f2; } .sh-sms { background: #2f9e44; }
.sh.mob { display: none; }
@media (hover: none) and (pointer: coarse) { .sh.mob { display: inline-flex; } }

/* patička s odkazy */
.foot-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-links h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 8px; }
.foot-links ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 14px; }
.foot-links li { margin: 0 0 4px; break-inside: avoid; }
.foot-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 13px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }

/* průvodce */
.article { max-width: 760px; }
.article h2 { margin-top: 30px !important; }
.article ol, .article ul { padding-left: 22px; color: var(--ink-2); }
.article li { margin-bottom: 6px; }
.article .tip { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid #f2a900; border-radius: 10px; padding: 12px 16px; }
.call { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.call a { display: inline-flex; gap: 6px; align-items: baseline; padding: 9px 14px; background: #e03131; color: #fff; border-radius: 10px;
  text-decoration: none; font-weight: 700; }
.call a span { font-weight: 400; opacity: .9; font-size: 13px; }
.share-map { position: absolute; right: 10px; top: 54px; z-index: 550; display: inline-flex; gap: 6px; align-items: center; border: 0; cursor: pointer;
  background: var(--panel); color: var(--ink); padding: 8px 12px; border-radius: 11px; box-shadow: var(--shadow); font: inherit; font-size: 13px; font-weight: 700; }
.share-map svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 900px) {
  .place-grid, .home-jams { grid-template-columns: 1fr; }
  .place-map { position: static; order: -1; }
  .place-map .minimap.tall { height: 340px; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .cl-list { grid-template-columns: 1fr; }
  .kraje { grid-template-columns: 1fr 1fr; }
}
.place-head .kpis li:first-child:not(.hot) { background: var(--panel); border-color: var(--line); color: var(--ink); }
.place-head .kpis li:first-child:not(.hot) span { color: var(--muted); }
.gloss { margin: 4px 0 10px; }
.promo { margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.fab-share { display: none; }
@media (max-width: 900px) {
  .fab-share { display: inline-flex; position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 1300; align-items: center; gap: 8px;
    border: 0; border-radius: 999px; padding: 13px 20px; background: #25d366; color: #06301a; font: inherit; font-weight: 800; font-size: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,.28); }
  .fab-share svg { width: 18px; height: 18px; fill: currentColor; }
  .pg-detail .page { padding-bottom: 90px; }
}
@media (max-width: 430px) {
  .nav-links a.nl-archiv { display: none; }
  .brand-name { font-size: 16px; }
  .nav-links a.nl-kraje, .nav-links a.nl-pruvodce { padding: 6px 6px; }
}

/* ukazatel průběhu nehody */
.prog { margin-top: 7px; max-width: 360px; }
.prog-t { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; line-height: 1.2; color: var(--muted); margin-bottom: 3px; }
.prog-t b { font-weight: 700; color: var(--ink-2); }
.prog-b { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog-b i { display: block; height: 100%; border-radius: 3px; background: var(--s3); transition: width .6s ease; }
.p-new .prog-b i { background: var(--s3); }
.p-new .prog-t b { color: var(--s3); }
.p-run .prog-b i { background: linear-gradient(90deg, var(--s3), #f08c00); }
.p-end .prog-b i { background: linear-gradient(90deg, #f08c00, var(--s2)); }
.p-over .prog-b i { background: var(--s1); }
.p-over .prog-t b { color: var(--s1); }
.p-done .prog-b i { background: var(--s0); }
.prog.big { max-width: none; margin: 14px 0 6px; }
.prog.big .prog-t { font-size: 13px; margin-bottom: 5px; }
.prog.big .prog-t b { font-size: 14px; }
.prog.big .prog-b { height: 9px; border-radius: 5px; }
.p-new .prog-b i { animation: progpulse 1.6s ease-in-out infinite; }
@keyframes progpulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .p-new .prog-b i { animation: none; } }

/* přepínač mapových podkladů (assets/mapbase.js) */
.bm-switch { display: flex; background: var(--panel); border-radius: 9px; padding: 3px; gap: 2px; box-shadow: 0 2px 10px rgba(15,18,24,.18); }
.bm-btn { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 9px; border-radius: 7px; cursor: pointer; line-height: 1.2; }
.bm-btn:hover { color: var(--ink); }
.bm-btn.on { background: var(--ink); color: var(--panel); }
.bm-nodark .leaflet-tile-pane { filter: none; }   /* letecký snímek se v nočním režimu nepřebarvuje */
@media (max-width: 640px) { .bm-btn { padding: 5px 7px; font-size: 12px; } }
@media (max-width: 640px) {
  .bm-btn { padding: 5px 6px; font-size: 11.5px; }
  .share-map { top: 50px; }
}
@media (max-width: 640px) {
  .bm-switch:not(.open) .bm-btn:not(.on) { display: none; }
  .bm-switch:not(.open) .bm-btn.on::after { content: ' ▾'; }
  .bm-switch.open { flex-direction: column; }
  #map .bm-switch { margin-top: 88px; }   /* hlavní mapa: pod lištou vrstev a tlačítkem Sdílet místo */
}
.mapwrap:has(.detail:not([hidden])) .bm-switch { display: none; }   /* karta nehody překrývá pravý horní roh */

/* ---------- Pro řidiče: karty s fotkou ---------- */
.gcards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gcards.big { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 22px; }
.gcards a { position: relative; display: flex; align-items: flex-end; min-height: 210px; height: 100%; border-radius: 14px; overflow: hidden;
  color: #fff; text-decoration: none; background: #1d2230; box-shadow: 0 4px 14px rgba(15,18,24,.12); isolation: isolate; }
.gcards.big a { min-height: 240px; }
.gcards img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.gcards a::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,12,18,0) 25%, rgba(10,12,18,.55) 55%, rgba(10,12,18,.92) 100%); }
.gcards a:hover img, .gcards a:focus-visible img { transform: scale(1.05); }
.gc-txt { display: block; padding: 16px 18px; }
.gc-txt b { display: block; font-size: 18px; line-height: 1.2; margin-bottom: 5px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.gc-txt span { display: block; font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.86); }

/* ---------- článek ---------- */
.art-meta { color: var(--muted); font-size: 13.5px; margin: -4px 0 14px; }
.art-hero { margin: 0 0 22px; }
.art-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px; background: var(--panel-2); }
.art-hero figcaption, .anim figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.art-hero figcaption a { color: inherit; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin: 16px 0; }
.toc ol { margin: 6px 0 0; }
.toc li { margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.facts b { display: block; font-size: 24px; color: var(--accent); }
.facts span { color: var(--muted); font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: 13px; font-weight: 700; }
.tbl td:last-child, .tbl th:last-child { text-align: right; white-space: nowrap; }
.cta-box { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 20px 0; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line); border-left: 5px solid #2f9e44; border-radius: 12px; }
.cta-box.map { border-left-color: var(--accent); }
.cta-box b { display: block; font-size: 16px; }
.cta-box span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; max-width: 520px; }
.cta-box .btn { flex-shrink: 0; }

/* ---------- animace (SVG) ---------- */
.anim { margin: 18px 0 22px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.anim svg { display: block; width: 100%; height: auto; max-height: 420px; }
.anim .anim-l { font: 700 14px system-ui, sans-serif; fill: currentColor; }
.anim figcaption { font-size: 14px; color: var(--ink-2); text-align: center; margin-top: 10px; }
.ul-left  { animation: ulL 9s ease-in-out infinite; }
.ul-right { animation: ulR 9s ease-in-out infinite; }
.ul-amb   { animation: ulAmb 9s linear infinite; }
.ul-blue  { animation: blink .5s steps(1) infinite; }
.ul-blue.b2 { animation-delay: .25s; }
.tr-blink { animation: blink 1s steps(1) infinite; }
@keyframes ulL { 0%, 12% { transform: translateX(0); } 26%, 84% { transform: translateX(-18px); } 96%, 100% { transform: translateX(0); } }
@keyframes ulR { 0%, 12% { transform: translateX(0); } 26%, 84% { transform: translateX(18px); } 96%, 100% { transform: translateX(0); } }
@keyframes ulAmb { 0%, 30% { transform: translateY(330px); } 72%, 100% { transform: translateY(-110px); } }
@keyframes blink { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) {
  .ul-left { animation: none; transform: translateX(-18px); } .ul-right { animation: none; transform: translateX(18px); }
  .ul-amb { animation: none; transform: translateY(120px); } .ul-blue, .tr-blink { animation: none; }
  .gcards img { transition: none; }
}
.anim .anim-l.lg { font-size: 19px; }
.cta-box.ad { border-left-color: #f2a900; }
.cta-box.ad small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }

/* vrstva teplotní mapy na hlavní mapě */
.legend.heat { bottom: 150px; align-items: center; flex-wrap: wrap; gap: 8px; }
.legend.heat b { font-size: 12px; }
.heat-grad { width: 70px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2b9348, #f2a900, #f0590e, #c1121f, #7a0010); }
.legend.heat select { font: inherit; font-size: 12px; padding: 2px 4px; border-radius: 6px; border: 1px solid var(--line); background: var(--input); color: var(--ink); }
.layer-btn { position: relative; }
.tip-badge { font-style: normal; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1;
  background: #f2a900; color: #1d1d1d; border-radius: 5px; padding: 2px 4px; margin-left: 2px; }
.layer-btn.on .tip-badge { display: none; }
@media (max-width: 640px) { .tip-badge { position: absolute; top: -5px; right: -4px; padding: 2px 3px; font-size: 8.5px; } }
.heat-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.heat-filter .chip { display: inline-flex; align-items: center; gap: 6px; }
.heat-filter .chip.on .muted { color: inherit; opacity: .75; }

/* kartogram krajů (index) */
:root { --km-0: #eef1f4; }
:root[data-theme="dark"] { --km-0: #262b36; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --km-0: #262b36; } }
.kmap { margin: 6px 0 22px; }
.kmap svg { display: block; width: 100%; height: auto; max-height: 520px; }
.kmap path { stroke: var(--panel); stroke-width: 3; stroke-linejoin: round; transition: filter .15s; }
.kmap a:hover path, .kmap a:focus-visible path { filter: brightness(.88); }
.kmap text { text-anchor: middle; pointer-events: none; fill: #3b2226; font-family: inherit; }
.kmap .dark text { fill: #fff; }
.kmap .kn { font-size: 40px; font-weight: 800; }
.kmap .kl { font-size: 21px; font-weight: 600; opacity: .85; }
:root[data-theme="dark"] .kmap a:not(.dark) text { fill: #e9ecef; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .kmap a:not(.dark) text { fill: #e9ecef; } }
@media (max-width: 640px) { .kmap .kl { display: none; } .kmap .kn { font-size: 46px; } }

/* nižší hlavička: štítek „Živě“ na řádku s nadpisem, podnadpis na jeden řádek, kompaktnější čísla */
.hero-title { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 3px; }
.hero-title h1 { margin: 0; }
.hero-title .live { margin: 0; }
.hero .hero-inner { padding-top: 0; padding-bottom: 14px; }
.hero .lead { max-width: 820px; }
.hero .stats li { padding: 6px 12px; }
.hero .stats strong { font-size: 21px; }
@media (max-width: 900px) {
  .hero-title { gap: 4px 10px; margin-bottom: 4px; }
  .hero-title .live { font-size: 11.5px; padding: 3px 8px; }
  .legend.heat:not([hidden]) { display: flex; left: 8px; right: 8px; bottom: 22px; justify-content: space-between; font-size: 11px; padding: 6px 8px; }
  .legend.heat b { display: none; }
}
