:root {
  --ink: #14233A;
  --slate: #5B6B7F;
  --line: #DCE3EA;
  --soft: #EEF3F7;
  --land: #E3E9EF;
  --bg: #FFFFFF;
  --link: #1F5FD1;
  --warn: #F2A400;
  --rain: #2F7BE0;
  --r: 12px;
  --wrap: 1180px;
  font-family: "Onest", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: 24px; font-weight: 750; letter-spacing: -.015em; margin-bottom: 16px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--slate); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.block { margin-top: 56px; }
.hint { font-size: 14px; margin: -8px 0 14px; }

/* ---------- hlavička */
.top { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.logo-t { font-weight: 600; }
.logo-t b { font-weight: 800; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--link); }
.search { position: relative; margin-left: auto; width: min(320px, 40vw); }
.search input { width: 100%; font: inherit; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink); }
.search input:focus { background-color: #fff; border-color: var(--link); outline: none; }
.search ul { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(20, 35, 58, .14); }
.search li a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }
.search li a span { color: var(--slate); font-weight: 400; font-size: 14px; }
.search li a:hover, .search li a:focus { background: var(--soft); }
.search li.none { padding: 8px 10px; color: var(--slate); font-size: 14px; }

/* ---------- mapová komponenta */
.wm { display: flex; flex-direction: column; gap: 10px; }
.wm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.wm-tabs { display: inline-flex; padding: 3px; background: var(--soft); border-radius: 999px; }
.wm-tabs button { white-space: nowrap; border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--slate); }
.wm-tabs button:hover { color: var(--ink); }
.wm-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.wm-legend { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 6px; font-size: 12px; color: var(--slate); }
.wm-lg-bar { display: flex; width: 170px; height: 8px; border-radius: 4px; overflow: hidden; grid-column: 1; }
.wm-lg-bar i { flex: 1; }
.wm-lg-num { display: flex; justify-content: space-between; width: 170px; grid-column: 1; grid-row: 2; }
.wm-lg-num b { font-weight: 500; }
.wm-lg-unit { grid-column: 2; grid-row: 1 / 3; font-weight: 600; }
.wm-stage { position: relative; overflow-x: clip; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wm-svg { display: block; width: 100%; height: auto; cursor: crosshair; overflow: visible; }
.wm-land { fill: var(--land); }
.wm-radar { display: none; }
.wm-radar-on .wm-radar { display: inline; }
.wm-radar-on .wm-img { display: none; }
.wm-radar-on .wm-days, .wm-radar-on .wm-chips { visibility: hidden; }
.wm-radar-on .wm-svg { cursor: default; }
.wm-tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.wm-tabs button[data-l="radar"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e5361b; margin-right: 6px; vertical-align: 1px; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .wm-tabs button[data-l="radar"]::before { animation: none; } }
.wm-kraje { fill: none; stroke: #fff; stroke-width: 1.2px; vector-effect: non-scaling-stroke; opacity: .85; }
.wm-border { fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.wm-pin circle { fill: var(--ink); stroke: #fff; stroke-width: .012px; }
.wm-pin text { text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-linejoin: round; fill: var(--ink); }
.wm-pv { font-size: .2px; font-weight: 800; stroke-width: .05px; }
.wm-pn { font-size: .118px; font-weight: 600; stroke-width: .035px; }
.wm-r text { text-anchor: start; }
.wm-hl circle { fill: var(--link); r: .045px; }
.wm-hl .wm-pn { font-size: .12px; font-weight: 800; }
.wm-svg a:hover .wm-pn, .wm-svg a:focus .wm-pn { fill: var(--link); text-decoration: underline; }
.wm-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; line-height: 1.3; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(20, 35, 58, .25); }
.wm-tip b { display: block; font-size: 16px; }
.wm-tip span { opacity: .8; }
.wm-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.wm-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; }
.wm-zoom button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 18px; font-weight: 600; cursor: pointer; }
.wm-zoom button:hover { border-color: var(--ink); }
.wm-zoomed .wm-svg { cursor: grab; }
.wm-time { display: flex; align-items: center; gap: 12px; }
.wm-play { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.wm-play path { fill: currentColor; }
.wm-play .i-pause, .wm-play[aria-pressed="true"] .i-play { display: none; }
.wm-play[aria-pressed="true"] .i-pause { display: inline; }
.wm-track { flex: 1; min-width: 0; }
.wm-days { display: flex; font-size: 12px; color: var(--slate); }
.wm-days span { border-left: 1px solid var(--line); padding-left: 5px; white-space: nowrap; overflow: hidden; }
.wm-days span:first-child { border-left: 0; padding-left: 0; }
.wm-range { width: 100%; margin: 4px 0 0; accent-color: var(--ink); cursor: pointer; }
.wm-when { position: absolute; left: 0; top: 4px; display: flex; flex-direction: column; pointer-events: none; line-height: 1; }
.wm-when-t { font-size: 44px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wm-when-d { font-size: 15px; font-weight: 600; color: var(--slate); margin-top: 6px; }
.wm-full .wm-when, .wm-mini .wm-when { left: 12px; top: 10px; background: rgba(255, 255, 255, .88); padding: 8px 12px; border-radius: 10px; }
.wm-mini .wm-when-t { font-size: 28px; }
.wm-mini .wm-when-d { font-size: 13px; margin-top: 3px; }
.wm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-chips button { border: 1px solid var(--line); background: #fff; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; }
.wm-chips button:hover { border-color: var(--ink); }
.wm-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.wm-mini .wm-tabs button { padding: 5px 10px; font-size: 14px; }
.wm-mini .wm-legend { display: none; }
.wm-mini .wm-stage { border-radius: var(--r); overflow: hidden; background: var(--soft); }
.wm-full .wm-stage { height: min(72vh, 760px); }
/* celá mapa: menší města (ORP) až po přiblížení */
.wm-full:not(.wm-zoomed) .t2 { display: none; }
/* mapa u obce: celá ČR, obec zvýrazněná, u krajských měst jen teplota */
.obec-map { max-width: 900px; }
.wm-obec .t1:not(.wm-hl) .wm-pn { display: none; }
.wm-obec .wm-hl circle { r: .055px; stroke-width: .02px; }
.wm-obec .wm-hl .wm-pv { font-size: .26px; }
.wm-obec .wm-hl .wm-pn { font-size: .16px; fill: var(--link); }
.wm-region .wm-stage { border-radius: var(--r); overflow: hidden; background: var(--soft); }
.wm-region .wm-pn { font-size: .1px; }
.wm-full .wm-svg { height: 100%; }

/* ---------- animovaná ikona počasí (jen inline ikony s .wx-anim) */
.hero-head { display: flex; align-items: center; gap: 18px; }
.hero-head .wx { flex: none; }
.wx-anim .i-drop { animation: i-fall 1.1s linear infinite; animation-delay: var(--d, 0s); }
.wx-anim .i-flake { animation: i-snow 2.6s linear infinite; animation-delay: var(--d, 0s); }
.wx-anim .i-rays { transform-box: view-box; transform-origin: 24px 24px; animation: i-spin 24s linear infinite; }
.wx-anim .i-cloud { animation: i-drift 5s ease-in-out infinite alternate; }
@keyframes i-fall { 0% { transform: translate(1px, -7px); opacity: 0; } 25%, 75% { opacity: 1; } 100% { transform: translate(-1px, 5px); opacity: 0; } }
@keyframes i-snow { 0% { transform: translateY(-6px); opacity: 0; } 25%, 75% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
@keyframes i-spin { to { transform: rotate(360deg); } }
@keyframes i-drift { from { transform: translateX(-1.2px); } to { transform: translateX(1.2px); } }

/* ---------- hledání obce (výrazný pruh na HP) */
/* bez overflow: hidden – jinak by pruh ořízl rozbalený seznam obcí */
.finder { background: var(--ink); color: #fff; position: relative; z-index: 5; }
.finder > .wrap { position: relative; z-index: 1; }
/* jemná animace v pruhu podle počasí teď */
.finder.fx-rain::before, .finder.fx-snow::before, .finder.fx-sun::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.finder.fx-rain::before { background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(160, 200, 255, .16) 22px 23px);
  background-size: 300px 300px; animation: fx-rain 0.9s linear infinite; }
.finder.fx-snow::before { background-image: radial-gradient(rgba(255, 255, 255, .5) 1.2px, transparent 1.6px), radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1.4px);
  background-size: 46px 46px, 31px 31px; background-position: 0 0, 15px 20px; animation: fx-snow 6s linear infinite; }
.finder.fx-sun::before { background: radial-gradient(circle at 88% 10%, rgba(245, 180, 0, .28), transparent 42%); animation: fx-sun 6s ease-in-out infinite alternate; }
@keyframes fx-rain { to { background-position: -64px 300px; } }
@keyframes fx-snow { to { background-position: 30px 46px, 5px 51px; } }
@keyframes fx-sun { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .wx-anim *, .finder::before { animation: none !important; }
}
.finder-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-top: 30px; padding-bottom: 30px; }
.finder-main { flex: 1 1 520px; max-width: 760px; }
.finder-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.finder-sub { color: #B9C6D6; margin-top: 6px; font-size: 16px; }
.finder-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.big-search { flex: 1 1 320px; width: auto; margin: 0; }
.big-search input { height: 58px; font-size: 19px; padding: 0 20px 0 50px; border-radius: 14px; border: 0; background: #fff
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 1 0 4.2 12.6l4.6 4.6 1.4-1.4-4.6-4.6A7 7 0 0 0 10 3zm0 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10z' fill='%235B6B7F'/%3E%3C/svg%3E") no-repeat 16px center / 22px; }
.big-search input:focus { outline: 3px solid var(--warn); outline-offset: 2px; background-color: #fff; }
.big-search ul { color: var(--ink); z-index: 20; }
.search li a.on { background: var(--soft); }
.finder .locate { height: 58px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; padding: 0 20px; font-size: 16px; }
.finder .locate:hover { background: #fff; color: var(--ink); }
.finder .mycity { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.finder .mycity:hover { background: rgba(255, 255, 255, .14); }
.finder .mc-name, .finder .mc-wear { color: #B9C6D6; }
.finder .mc-main b { border-bottom: 4px solid var(--c); }
.inline-search { margin-top: 24px; }
.inline-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.inline-search input { height: 50px; font-size: 17px; border: 1.5px solid var(--line); background-color: var(--soft); }

/* ---------- kraj, okres */
.region-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; padding-top: 16px; align-items: start; }
.region-top h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.region-intro { font-size: 22px; font-weight: 700; margin-top: 10px; line-height: 1.25; }
.region-top .lede { margin-top: 10px; }
.okresy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 2px solid var(--ink); }
.okresy li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; padding-right: 16px; }
.okresy a { font-weight: 600; }
.okresy span { color: var(--slate); font-size: 14px; }
.az { columns: 4 220px; column-gap: 32px; }
.az-group { break-inside: avoid; margin-bottom: 16px; }
.az h3 { font-size: 18px; font-weight: 800; border-bottom: 2px solid var(--ink); padding-bottom: 2px; margin-bottom: 6px; }
.az ul { list-style: none; margin: 0; padding: 0; }
.az li { padding: 2px 0; }
.more { margin-top: 12px; font-weight: 600; }
.kraje h3 a { color: var(--ink); text-decoration: none; }
.kraje h3 a:hover { color: var(--link); text-decoration: underline; }

/* ---------- HP */
.mycity { display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 12px;
  padding: 8px 18px 8px 10px; border-radius: 16px; background: var(--soft); color: var(--ink); text-decoration: none; }
.mycity[hidden] { display: none; }
.mycity:hover { background: #E3EBF3; }
.mycity .wx { grid-row: 1 / span 3; }
.mc-main { grid-row: 1 / span 3; display: flex; flex-direction: column; line-height: 1.1; }
.mc-name { font-size: 14px; font-weight: 600; color: var(--slate); }
.mc-main b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.mc-day { font-weight: 600; }
.mc-wear { font-size: 14px; color: var(--slate); }
.locate { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.locate:hover { background: var(--ink); color: #fff; }
.hp-hero { padding-top: 28px; }
.date { color: var(--slate); font-weight: 500; margin-bottom: 8px; }
.headline { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; text-wrap: balance; max-width: 22ch; }
.hp-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 40px; margin-top: 24px; align-items: start; }
.lede { font-size: 17px; line-height: 1.6; }
.facts { display: grid; gap: 12px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--slate); }
.facts dd { margin: 0; font-weight: 700; font-size: 17px; }
.source { margin-top: 18px; font-size: 13px; color: var(--slate); }

/* ---------- proč je předpověď přesná */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.why-list li { padding: 16px 24px 4px 0; }
.why-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.why-list h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.why-list p { color: var(--slate); line-height: 1.55; max-width: 46ch; }
@media (max-width: 760px) {
  .why-list { grid-template-columns: 1fr; }
  .why-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- výhled (seznam dnů) */
.outlook { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); border-top: 2px solid var(--ink); overflow-x: auto; scroll-snap-type: x mandatory; }
.outlook li { padding: 14px 14px 16px; border-right: 1px solid var(--line); scroll-snap-align: start; }
.outlook li:last-child { border-right: 0; }
.outlook h3 { font-size: 16px; font-weight: 700; }
.outlook h3 span { color: var(--slate); font-weight: 400; }
.outlook .wx { display: block; margin: 8px 0 4px; }
.outlook .range { font-weight: 700; font-size: 18px; min-height: 27px; }
.outlook li > p:last-child { font-size: 14px; color: var(--slate); margin-top: 4px; line-height: 1.4; }
.outlook.compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ---------- tabulka měst */
.cities { width: 100%; border-collapse: collapse; }
.cities thead th { text-align: left; font-size: 14px; font-weight: 500; color: var(--slate); padding: 0 12px 8px; border-bottom: 2px solid var(--ink); }
.cities td, .cities tbody th { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cities tbody th a { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); }
.cities tbody th a:hover { color: var(--link); text-decoration: underline; }
.cities tbody th span { display: block; font-weight: 400; font-size: 13px; color: var(--slate); }
.cities tbody tr:hover { background: var(--soft); }
.cities .now, .cities .tom { display: flex; align-items: center; gap: 8px; }
.cities .now b { font-size: 22px; font-weight: 800; border-bottom: 4px solid var(--c); line-height: 1.1; min-width: 44px; }
.cities .tom b { font-weight: 700; }

/* ---------- kraje */
.kraje { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 2px solid var(--ink); }
.kraje li { padding: 14px 16px 16px 0; border-bottom: 1px solid var(--line); }
.kraje h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.kraje p { font-size: 15px; line-height: 1.45; }
.kraje p.muted { font-size: 13px; margin-top: 4px; }

/* ---------- obec */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--slate); padding-top: 16px; }
.crumbs a { color: var(--slate); }
.obec-top { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "now wear" "facts wear"; column-gap: 40px; align-items: start; padding-top: 16px; }
.obec-top .now-block { grid-area: now; }
.obec-top .wear { grid-area: wear; }
.obec-top .now-facts { grid-area: facts; }
.now-block h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.region { color: var(--slate); margin-top: 4px; }
.now { display: flex; align-items: center; gap: 12px 20px; margin-top: 20px; flex-wrap: wrap; }
.now-t { font-size: 104px; font-weight: 800; letter-spacing: -.05em; line-height: .9; padding-bottom: 6px; border-bottom: 8px solid var(--c); }
.now-t span { font-size: 32px; font-weight: 600; letter-spacing: 0; vertical-align: top; margin-left: 4px; }
.now-label { font-size: 22px; font-weight: 700; }
.feels { color: var(--slate); margin-top: 2px; }
.now-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 10px 24px; justify-content: start; }
.now-facts li { font-weight: 600; }
.now-facts span { display: block; font-size: 13px; font-weight: 400; color: var(--slate); }
.summary.rain { display: flex; gap: 12px; align-items: flex-start; background: #EAF3FF; border-left-color: var(--rain); padding: 12px 14px; border-radius: 0 12px 12px 0; }
.summary.rain .cl { flex: none; }
.summary b { font-weight: 700; }
.mc-sv { grid-column: 3; font-size: 14px; font-weight: 600; color: #CFE3FF; }
.summary { margin-top: 18px; font-size: 19px; line-height: 1.5; max-width: 52ch; padding-left: 14px; border-left: 4px solid var(--rain); }

/* dnešek po částech dne */
.parts-wrap { margin-top: 24px; }
.parts-title { font-size: 15px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.parts li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 8px; border-right: 1px solid var(--line); }
.parts li:last-child { border-right: 0; }
.p-name { font-size: 14px; color: var(--slate); font-weight: 500; }
.p-t { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; border-bottom: 4px solid var(--c); }
.p-rain { font-size: 14px; font-weight: 600; color: var(--rain); margin-top: 4px; }

/* co si obléct */
.wear { background: var(--soft); border-radius: 18px; padding: 20px 22px 22px; }
.wear-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.wear h2 { margin: 0; font-size: 20px; }
.who { display: inline-flex; padding: 3px; background: #fff; border-radius: 999px; }
.who button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--slate); }
.who button[aria-selected="true"] { background: var(--ink); color: #fff; }
.wear-head { font-size: 25px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 18px 0 16px; text-wrap: balance; }
/* úsporně: dlaždice s ikonou a 1–3 slovy */
.wear-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wear-items li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; background: #fff; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; }
.wear-items .cl { flex: none; width: 48px; height: 48px; }
.wear-note { margin-top: 12px; font-size: 14px; color: var(--slate); }
.car { margin-top: 18px; display: grid; gap: 8px; }
.car h3 { font-size: 15px; font-weight: 700; }
.car p { padding: 10px 12px; border-radius: 10px; font-size: 15px; line-height: 1.4; border-left: 4px solid; }
.car-warn { background: #FFF4D6; border-color: var(--warn) !important; }
.car-danger { background: #FDE2E1; border-color: #D93025 !important; font-weight: 600; }

.dayrows { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.dayrows thead th { font-size: 13px; font-weight: 500; color: var(--slate); padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.dayrows thead th.part { text-align: center; }
.dayrows tbody tr { cursor: pointer; }
.dayrows tbody tr:hover { background: var(--soft); }
.dayrows td, .dayrows tbody th { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dayrows tbody th { text-align: left; font-size: 17px; font-weight: 700; white-space: nowrap; }
.dayrows tbody th span { display: block; font-size: 13px; font-weight: 400; color: var(--slate); }
.dayrows td.part { text-align: center; }
.dayrows td.part .wx { display: inline-block; vertical-align: middle; }
.dayrows .tt { font-size: 16px; color: var(--slate); white-space: nowrap; }
.dayrows .tt b { font-size: 22px; font-weight: 800; color: var(--ink); border-bottom: 4px solid var(--c); margin-right: 4px; }
.dayrows .rr { color: var(--rain); font-weight: 600; white-space: nowrap; }

/* další dny z textové předpovědi ČHMÚ */
.dayrows tr.txt { cursor: default; }
.dayrows tr.txt:hover { background: transparent; }
.txt-in { display: flex; align-items: center; gap: 10px; text-align: left; }
.txt-in .wx { flex: none; }
.txt-in span { font-size: 15px; line-height: 1.35; }
.dayrows .tt b.rng { font-size: 16px; border: 0; }
.src { margin-top: 10px; }

/* graf */
.mg-scroll { overflow-x: auto; border-top: 2px solid var(--ink); padding-top: 4px; }
.mg { display: block; width: 100%; min-width: 720px; height: auto; font-family: inherit; }
.mg-night { fill: #EEF2F8; }
.mg-grid { stroke: var(--line); stroke-width: 1; }
.mg-ax { font-size: 12px; fill: var(--slate); }
.mg-rain { fill: var(--rain); }
.mg-bar { fill: var(--rain); opacity: .85; }
.mg-line { fill: none; stroke: url(#mg-g); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.mg-day { stroke: var(--ink); stroke-dasharray: 2 3; opacity: .45; }
.mg-dn { font-size: 14px; font-weight: 700; fill: var(--ink); }
.mg-pt { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.mg-v { font-size: 14px; font-weight: 800; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; }

.ribbon-scroll { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 8px 0 4px; scrollbar-width: thin; }
.ribbon { display: block; font-family: inherit; }
.ribbon .dayname { font-size: 13px; font-weight: 700; fill: var(--ink); }
.ribbon .daysep { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: .5; }
.ribbon .hr { font-size: 13px; fill: var(--slate); text-anchor: middle; }
.ribbon .tv { font-size: 15px; font-weight: 800; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.ribbon .pbar { fill: var(--rain); }
.ribbon .pv { font-size: 11px; fill: var(--rain); text-anchor: middle; font-weight: 700; }
.ribbon .wv { font-size: 12px; fill: var(--slate); text-anchor: start; }
.ribbon .warr { fill: var(--slate); }

.faq .qa { padding: 16px 0; border-top: 1px solid var(--line); max-width: 75ch; }
.faq .qa:first-of-type { border-top: 2px solid var(--ink); }
.faq h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.faq p { line-height: 1.55; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two p { max-width: 50ch; }
.btn { display: inline-block; margin-top: 14px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--link); }
.links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.links li { padding: 3px 0; }
.about p { max-width: 70ch; color: var(--slate); }

/* ---------- stránka map */
.mapa-page { padding-top: 20px; }
.mapa-page h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.mapa-page .hint { margin: 0 0 14px; }

/* ---------- patička */
.foot { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot p + p { margin-top: 6px; }

/* ---------- tablet a mobil */
@media (max-width: 960px) {
  .hp-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .region-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .obec-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "now" "wear" "facts"; row-gap: 24px; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-in { gap: 12px; height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nav { gap: 14px; margin-left: auto; }
  .search { width: 100%; order: 3; }
  .block { margin-top: 44px; }
  h2 { font-size: 21px; }
  .hp-hero { padding-top: 18px; }
  .finder-in { padding-top: 22px; padding-bottom: 22px; }
  .finder-sub { font-size: 15px; }
  .big-search input { height: 54px; font-size: 17px; }
  .finder .locate { height: 48px; flex: 1; justify-content: center; }
  .finder .mycity { width: 100%; }
  .headline { font-size: 32px; }
  .hero-head { gap: 10px; }
  .hero-head .wx { width: 64px; height: 64px; }
  .lede { font-size: 16px; }
  .wm-top { flex-direction: column; align-items: stretch; }
  .wm-tabs { display: flex; }
  .wm-tabs button { flex: none; padding: 7px 11px; font-size: 14px; }
  /* štítek času nad mapou, ať nezakrývá města */
  .wm-hero .wm-stage, .wm-obec .wm-stage { display: flex; flex-direction: column; }
  .wm-hero .wm-when, .wm-obec .wm-when { position: static; order: -1; flex-direction: row; align-items: baseline; gap: 8px; background: none; padding: 0 12px; }
  .wm-hero .wm-when-t, .wm-obec .wm-when-t { font-size: 26px; }
  .wm-legend { justify-content: center; }
  .wm-when-t { font-size: 32px; }
  .wm-when-d { font-size: 13px; margin-top: 4px; }
  .wm-hero .wm-when { left: 12px; }
  .wm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wm-chips button { flex: none; }
  .wm-full .wm-stage { height: 62vh; }
  /* malá mapa: větší popisky, bez názvů měst (zůstanou teploty) */
  .wm-hero { --pm: 1.55; }
  .wm-hero .wm-pn { display: none; }
  .wm-hero .wm-stage { margin: 0 -12px; }
  .now { flex-wrap: nowrap; gap: 10px; margin-top: 14px; }
  .now .wx { width: 64px; height: 64px; flex: none; }
  .now-t { font-size: 64px; border-bottom-width: 6px; }
  .now-t span { font-size: 22px; }
  .now-label { font-size: 18px; }
  .now-facts { grid-template-columns: repeat(2, auto); }
  .parts li { padding: 8px 4px 6px; }
  .parts .wx { width: 44px; height: 44px; }
  .p-t { font-size: 22px; }
  .p-name, .p-rain { font-size: 13px; }
  .wear { padding: 16px; margin: 0 -4px; }
  .wear-head { font-size: 23px; }
  .wear-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wear-items .cl { width: 42px; height: 42px; }
  .wear-items li { font-size: 13px; }
  .summary { font-size: 17px; }
  .dayrows .c-gust { display: none; }
  /* pevné šířky sloupců, ať se tabulka vejde na displej */
  .dayrows { table-layout: fixed; }
  .dayrows thead th:first-child { width: 62px; }
  .dayrows thead th:nth-last-child(3) { width: 60px; }
  .dayrows thead th:nth-last-child(2) { width: 50px; }
  .dayrows .tt, .dayrows .rr { white-space: normal; }
  .dayrows td.part { overflow: hidden; }
  .dayrows thead th.part { font-size: 11px; padding: 6px 2px; }
  .dayrows td, .dayrows tbody th { padding: 8px 2px; }
  .dayrows tbody th { font-size: 15px; }
  .dayrows td.part .wx { width: 34px; height: 34px; }
  .dayrows .tt b { font-size: 18px; }
  .dayrows .tt { font-size: 14px; }
  .dayrows .rr { font-size: 13px; }
  .txt-in { gap: 6px; }
  .txt-in .wx { width: 32px; height: 32px; }
  .txt-in span { font-size: 13px; }
  .dayrows .tt b.rng { font-size: 13px; }
  .outlook { grid-template-columns: repeat(7, 46%); }
  .outlook.compact { grid-template-columns: repeat(4, 46%); }
  .cities .c-rain { display: none; }
  .cities td, .cities tbody th { padding: 8px 4px; }
  .cities .tom .wx { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
