/* Revírník web.
   Barva nese informaci: modrá = pstruhový revír, zelená = mimopstruhový
   (stejné barvy mají dlaždice hranic z API, neměnit odděleně), červená
   a oranžová = zákaz a upozornění. Rybářský index má vlastní škálu
   od červené (špatný) po zelenou (vynikající); číslo je vždy vypsané.
   Písmo Barlow: běžný text v plné šíři, nadpisy a čísla v polozúžené. */

:root {
  --primary: #0B4A6F;
  --primary-dark: #083851;
  --pstruh: #0C4B6E;
  --rakos: #1B7F6B;
  --ink: #142A33;
  --muted: #5A6D74;
  --faint: #6B7D84;
  --bg: #F2F5F4;
  --surface: #FFFFFF;
  --line: #DFE6E4;
  --line-strong: #C8D3D0;
  --tint: #E7F0F4;
  --warn: #B84A00;
  --warn-bg: #FFF4EB;
  --danger: #B3261E;
  --danger-bg: #FDF0EF;
  --idx-1: #E8F3EF;
  --idx-2: #C4E2D8;
  --idx-3: #86C3B0;
  --idx-4: #3A957C;
  --idx-5: #155E4B;
  --ri-1: #C8423B;
  --ri-2: #EE8A3C;
  --ri-3: #F2C744;
  --ri-4: #93C452;
  --ri-5: #23804F;
  --radius: 10px;
  --head-h: 56px;
  --panel-w: 380px;
  --shadow: 0 4px 16px rgba(20, 42, 51, .12), 0 1px 2px rgba(20, 42, 51, .08);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-family: var(--font-display); font-weight: 700; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #F2A65A; outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 3000; background: var(--surface); padding: 8px 12px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 8px 0; }

/* Barevná značka typu revíru. */
.sw { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rakos); }
.sw.is-p { background: var(--pstruh); }
body.is-aerial .sw { background: #FF9500; }
body.is-aerial .sw.is-p { background: #FF3B30; }

/* ---- Hlavička ---- */
.site-head {
  height: var(--head-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px;
  background: var(--primary); color: #fff;
  position: relative; z-index: 1100;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; gap: 4px; height: 100%; }
.site-nav a { white-space: nowrap;
  display: flex; align-items: center; height: 100%; padding: 0 12px;
  color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: 16px;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current] { color: #fff; border-bottom-color: #fff; }
.get-app {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--primary); border-radius: 8px; padding: 7px 14px; border: 1px solid #fff;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.get-app:hover { background: var(--tint); }
.get-app svg { width: 16px; height: 16px; }
.get-app .ga-short { display: none; }
.get-app + .auth-btn { margin-left: 0; }
.auth-btn {
  margin-left: auto;
  background: transparent; border: 1px solid rgba(255, 255, 255, .45); color: #fff;
  border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 15px; cursor: pointer;
  text-decoration: none; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis;
}
.auth-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.auth-btn.is-pro { border-color: #E3A33B; }
.preview-badge { margin-left: auto; color: var(--ink); background: #F2C744; border-radius: 6px; font-size: 13px; font-weight: 700; padding: 2px 8px; white-space: nowrap; }
.preview-badge + .get-app { margin-left: 8px; }

/* Poznámka jen pro jiné jazyky než češtinu. */
.jen-preklad { padding: 10px 14px; border-radius: 8px; background: var(--tint); font-weight: 600; }
html[lang="cs"] .jen-preklad { display: none; }

/* Přepínač jazyka v hlavičce. */
.langs { position: relative; flex: none; }
.langs summary {
  list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  color: rgba(255, 255, 255, .85); font-weight: 700; font-size: 14px; padding: 7px 6px; border-radius: 8px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: #fff; background: rgba(255, 255, 255, .1); }
.langs summary svg { width: 17px; height: 17px; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 1200; min-width: 160px;
  margin: 0; padding: 6px; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 74, 111, .18);
}
.langs a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.langs a:hover { background: var(--tint); }
.langs a[aria-current] { color: var(--primary); background: var(--tint); }

/* ---- Tlačítka ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.is-primary:hover { background: var(--primary-dark); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- Štítky (typ, číslo, oblast) ---- */
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags-row li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.tags-row li.is-type { background: #E7F3EF; border-color: #E7F3EF; color: var(--rakos); }
.tags-row li.is-type.is-p { background: var(--tint); border-color: var(--tint); color: var(--pstruh); }
.tags-row li.is-num { font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---- Upozornění ---- */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px;
  border-radius: var(--radius); padding: 14px 16px; margin: 16px 0;
  background: var(--warn-bg); border: 1px solid #F5D3BB;
}
.notice::before {
  content: '!'; grid-row: span 3;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--warn); color: #fff; font-weight: 800; font-size: 14px;
}
.notice.is-danger { background: var(--danger-bg); border-color: #F1C7C3; }
.notice.is-danger::before { background: var(--danger); }
.notice strong { color: var(--warn); }
.notice.is-danger strong { color: var(--danger); }
.notice p { margin: 2px 0 0; }
.notice-when { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---- Údaje jako řádky label / hodnota ---- */
.facts { margin: 0; padding: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts.is-inline { margin-top: 4px; }

.miry { list-style: none; padding: 0; margin: 0; }
.miry li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.miry li:last-child { border-bottom: 0; }
.miry li span:first-child { font-weight: 600; }
.miry li span:last-child { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--danger-bg); color: var(--danger); border-radius: 6px; padding: 4px 10px; font-size: 14px; font-weight: 600; }

/* =========================================================
   Mapová aplikace
   ========================================================= */
body.app { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.app-main { flex: 1; min-height: 0; position: relative; }
.map-view { position: absolute; inset: 0; display: flex; }
.map-view[hidden], .diary-view[hidden] { display: none; }
.map-wrap { position: relative; flex: 1; min-width: 0; }
#map { position: absolute; inset: 0; background: #E6ECEC; }
.base-tiles { filter: saturate(.5) contrast(.94) brightness(1.04); }
.geo-tiles { image-rendering: auto; }
.geo-tiles.is-dim { opacity: .45; filter: grayscale(1); }
.leaflet-tile { -webkit-user-drag: none; user-select: none; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-zoom.leaflet-bar { border: 0; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: var(--ink) !important; }
.leaflet-tooltip { font-family: var(--font); font-weight: 600; font-size: 13px; border: 0; border-radius: 6px; box-shadow: var(--shadow); }

/* Mapa přes celou plochu, panel je plovoucí karta nad ní. */
.map-wrap { position: absolute; inset: 0; }
.panel {
  position: absolute; z-index: 1000; top: 12px; left: 12px; bottom: 12px;
  width: var(--panel-w);
  display: flex; min-height: 0;
  transition: transform .25s ease;
}
.panel-inner {
  flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 14px; box-shadow: 0 8px 30px rgba(20, 42, 51, .18), 0 1px 3px rgba(20, 42, 51, .1);
  overflow: hidden;
}
.panel-toggle {
  position: absolute; top: 14px; right: -30px; z-index: 2;
  width: 30px; height: 44px; border: 0; border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, .96); box-shadow: 4px 2px 10px rgba(20, 42, 51, .15);
  padding: 0; display: grid; place-items: center; color: var(--ink); cursor: pointer;
}
.panel-toggle svg { width: 20px; height: 20px; display: block; transition: transform .2s; }
.panel.is-collapsed { transform: translateX(calc(-100% - 12px)); }
.panel.is-collapsed .panel-toggle svg { transform: rotate(180deg); }
.panel-grip { display: none; }
.panel-search { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-search input, .cat-search input {
  width: 100%; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 9px 12px 9px 40px; font: inherit;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235F7179' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7.5' cy='7.5' r='5.5'/%3E%3Cpath d='M12 12l4.5 4.5'/%3E%3C/svg%3E") no-repeat 13px 50%;
}
.panel-search input:focus, .cat-search input:focus { border-color: var(--primary); outline: 2px solid var(--tint); }
.panel-body { overflow-y: auto; padding: 16px; flex: 1; overscroll-behavior: contain; }

.p-intro h1 { font-size: 22px; margin: 0 0 6px; }
.p-intro p { color: var(--muted); margin: 0 0 14px; }
.p-alerts {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--danger-bg); border: 1px solid #F1C7C3; color: var(--ink); text-decoration: none;
}
.p-alerts b { font-size: 22px; line-height: 1; color: var(--danger); font-variant-numeric: tabular-nums; }
.p-alerts span { font-weight: 600; line-height: 1.35; }
.p-alerts:hover { border-color: var(--danger); }
.p-links { display: flex; flex-direction: column; gap: 6px; }
.p-head { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.p-more { color: var(--muted); font-size: 14px; }

.p-list { list-style: none; margin: 0 -16px; padding: 0; }
.p-list li + li { border-top: 1px solid var(--line); }
.p-row {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: grid; grid-template-columns: 10px 1fr; column-gap: 12px; align-items: baseline;
  padding: 10px 16px;
}
.p-row:hover { background: var(--bg); }
.p-row .sw { align-self: center; }
.p-name { font-weight: 600; line-height: 1.3; }
.p-meta { grid-column: 2; font-size: 14px; color: var(--muted); }
.p-warn {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; margin-left: 4px; vertical-align: 1px;
}

.back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 0; color: var(--primary); font-weight: 600; padding: 0; margin-bottom: 12px; cursor: pointer;
}
.back::before { content: ''; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.d-title { font-size: 24px; margin: 0 0 8px; overflow-wrap: anywhere; }

.d-sec { margin: 22px 0 0; }
.d-sec h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.d-sec p { margin: 0 0 8px; }
.popis.is-long { max-height: 9.5em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); }
.pro { background: var(--tint); border-radius: var(--radius); padding: 12px 14px; margin: 18px 0; }
.pro p { margin: 0 0 10px; }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.map-bar {
  position: absolute; top: 12px; right: 12px; z-index: 900;
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, .96); border-radius: 10px; box-shadow: var(--shadow);
}
.seg { display: flex; background: var(--bg); border-radius: 7px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 7px 12px; font-weight: 600; cursor: pointer; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.bar-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); padding: 5px 12px; font-weight: 600; cursor: pointer; font-size: 14px; border-radius: 999px; color: var(--ink); }
.bar-btn svg { width: 16px; height: 16px; color: var(--primary); }
.bar-btn:hover { border-color: var(--primary); }
.cluster span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  background: conic-gradient(var(--pstruh) 0 var(--p), var(--rakos) var(--p) 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 2px 6px rgba(20, 42, 51, .3);
}
.legend {
  position: absolute; right: 60px; bottom: 20px; z-index: 900;
  background: var(--surface); border-radius: 8px; padding: 7px 12px; box-shadow: var(--shadow);
  display: flex; gap: 14px; font-size: 13px; font-weight: 600;
}
.legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-hint {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%) translateY(-6px);
  z-index: 900; margin: 0; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.map-hint.show { opacity: .92; transform: translateX(-50%); }

/* ---- Deník ---- */
.diary-view { position: absolute; inset: 0; overflow-y: auto; }
.diary-inner { max-width: 1000px; margin: 0 auto; padding: 32px 20px 60px; }
.diary-inner h1 { font-size: 32px; margin-bottom: 20px; }
.diary-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diary-empty p { margin: 0 0 14px; max-width: 60ch; }
.diary-stats { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }
.diary-stats div { flex: 1 1 calc(100% / var(--c, 4) - 1px); min-width: 140px; padding: 14px 16px; border: solid var(--line); border-width: 0 1px 1px 0; margin: 0 -1px -1px 0; }
.diary-stats dt { font-size: 14px; color: var(--muted); }
.diary-stats dd { margin: 0; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.catches { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); }
.catch { position: relative; padding: 0 0 22px 20px; display: flex; flex-direction: column; }
.catch::before { content: ''; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--rakos); }
.catch time { font-size: 14px; color: var(--muted); }
.catch strong { font-size: 18px; }
.catch p { margin: 4px 0 0; max-width: 60ch; }

.diary-stats small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); }
.diary-charts { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.chart figcaption { font-weight: 700; margin-bottom: 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart rect { fill: var(--rakos); }
.chart rect.is-zero { fill: var(--line); }
.chart .bar:hover rect:not(.is-zero) { fill: var(--primary); }
.chart text { font-family: var(--font); text-anchor: middle; }
.chart text.v { font-size: 13px; font-weight: 700; fill: var(--ink); }
.chart text.l { font-size: 12px; fill: var(--muted); }
.hbars { list-style: none; margin: 0; padding: 0; }
.hbars li { display: grid; grid-template-columns: minmax(0, 9em) 1fr 2.5em; align-items: center; gap: 10px; padding: 5px 0; }
.hb-l { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-bar { height: 12px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.hb-bar i { display: block; height: 100%; background: var(--rakos); border-radius: 4px; }
.hb-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.diary-sec { margin: 0 0 28px; }
.diary-sec > h2 { font-size: 24px; margin-bottom: 10px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery button { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 13px; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(6, 20, 26, .9); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }
.diary-map { height: 320px; border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; background: #E6ECEC; }

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(24, 40, 47, .45); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; background: var(--surface); border-radius: 12px; padding: 24px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.modal-card h2 { font-size: 22px; }
.modal-sub { color: var(--muted); margin: 8px 0 18px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; cursor: pointer; line-height: 1; color: var(--muted); }
.provider-wrap { min-height: 44px; }
.login-error { color: var(--danger); margin: 12px 0 0; }
.qr-login { display: flex; flex-direction: column; gap: 12px; }
.qr-box { width: 220px; height: 220px; margin: 4px auto 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-box.is-expired { opacity: .2; }
.qr-steps { margin: 0; padding-left: 20px; font-size: 15px; display: grid; gap: 4px; }
.qr-status { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.kod-form { display: flex; flex-direction: column; gap: 8px; }
.kod-form label { font-weight: 600; font-size: 14px; }
.kod-form input { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; font: inherit; letter-spacing: .04em; }
.kod-form input:focus { border-color: var(--primary); outline: 2px solid var(--tint); }

/* =========================================================
   Stránky
   ========================================================= */
body.page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.page-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 20px 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a + a::before { content: '/'; color: var(--faint); margin-right: 6px; display: inline-block; }

.cat-hero { padding: 20px 0 24px; max-width: 720px; }
.cat-hero h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; }
.cat-hero p { color: var(--muted); font-size: 17px; margin: 8px 0 18px; max-width: 60ch; }
.cat-hero.is-compact { padding-top: 0; padding-bottom: 18px; }
.cat-hero.is-compact h1 { font-size: clamp(26px, 4vw, 34px); }
.cat-search { position: relative; display: flex; gap: 8px; max-width: 560px; }
.cat-search .suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; }
.alert-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.alert-filter input, .alert-filter select { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; font: inherit; background: var(--surface); }
.alert-filter input { flex: 1 1 260px; max-width: 420px; }
.p-head.is-fav { margin-top: 22px; }
.cat-search button { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; }
.cat-search button:hover { background: var(--primary-dark); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.svaz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.svaz-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; }
.svaz-block h2 { font-size: 19px; }
.svaz-block h2 a { color: var(--ink); text-decoration: none; }
.svaz-block h2 a:hover { color: var(--primary); }
.svaz-count { color: var(--muted); margin: 2px 0 10px; font-size: 15px; }
.region-list { list-style: none; margin: 0; padding: 0; }
.region-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.region-list a { text-decoration: none; font-weight: 500; }
.region-list a:hover { text-decoration: underline; }
.region-list span { color: var(--muted); font-variant-numeric: tabular-nums; }

.region-section { margin: 28px 0; }
.region-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.region-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.region-jump a:hover { border-color: var(--primary); }
.region-jump span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.region-more { margin: 12px 0 0; }
.region-section h2 { font-size: 20px; margin-bottom: 10px; }
.region-section h2 a { color: var(--ink); }
.region-section h2 span { color: var(--muted); font-weight: 500; font-size: 16px; }

/* Seznam revírů: řádek = značka typu, název, pod ním číslo a voda. */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rows li + li { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
  padding: 11px 16px; color: var(--ink); text-decoration: none;
}
.row:hover { background: #F8FAFA; }
.row-text { min-width: 0; display: flex; flex-direction: column; }
.row-name { font-weight: 600; }
.row-sub { font-size: 14px; color: var(--muted); }
.row-side { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }

/* ---- Filtry ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 16px; }
.chips { display: inline-flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
  padding: 6px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
}
.chip + .chip { border-left: 1px solid var(--line-strong); }
.chip span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--bg); }
.chip[aria-current] { background: var(--primary); color: #fff; }
.chip[aria-current] span { color: rgba(255, 255, 255, .75); }

.obj-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.obj-table th, .obj-table td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.obj-table tr:last-child td { border-bottom: 0; }
.obj-table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.obj-table td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.near-list { list-style: none; margin: 0 -20px -18px; padding: 0; }
.near-list li { border-top: 1px solid var(--line); }
.near-list .row { padding: 10px 20px; }

/* ---- Zákazy a upozornění ---- */
.block { margin: 24px 0; }
.block > h2 { font-size: 19px; margin-bottom: 10px; }
.block h2 .count { color: var(--muted); font-weight: 600; margin-left: 6px; }
.alerts { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.alerts li + li { border-top: 1px solid var(--line); }
.alert-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2px 20px; padding: 16px 20px; }
.alert-when { grid-row: span 3; font-weight: 700; font-size: 15px; color: var(--danger); line-height: 1.45; padding-top: 1px; }
.alert-card:not(.is-danger) .alert-when { color: var(--warn); }
.alert-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.alert-name { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.alert-name:hover { color: var(--primary); text-decoration: underline; }
.alert-svaz { color: var(--muted); font-size: 14px; }
.alert-text { margin: 2px 0 0; max-width: 75ch; }

/* ---- Patička ---- */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 15px; margin-top: 40px; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; display: flex; flex-wrap: wrap; gap: 32px 56px; }
.foot-brand { flex: 2 1 300px; min-width: 0; }
.foot-brand p { margin: 0 0 16px; max-width: 38ch; }
.foot-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 23px; margin: 0 0 12px !important; }
.foot-logo img { border-radius: 8px; }
.site-foot nav { flex: 1 1 150px; display: flex; flex-direction: column; gap: 8px; }
.site-foot nav h2 { font-size: 16px; color: #fff; margin: 0 0 2px; }
.site-foot nav .foot-h2 { margin-top: 12px; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-legal { max-width: 1200px; margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* =========================================================
   Titulní stránka
   ========================================================= */
body.page .page-main:has(.home-hero) { padding-top: 0; }
.home-hero {
  position: relative;
  margin: 0 calc(50% - 50vw) 28px;
  padding: 56px max(20px, calc(50vw - 540px)) 40px;
  background-color: var(--primary);
  /* Vrstevnice (img/vrstevnice.svg, kresba otočená na šířku). Čáry mají
     průhlednost už v souboru, `cover` je na mobilu zúží a na širokém
     monitoru jen mírně zesílí. */
  background-image: url("img/vrstevnice.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.home-hero h1 {
  font-size: clamp(40px, 7vw, 68px); font-weight: 800; letter-spacing: -.01em; line-height: 1;
  max-width: 1080px; margin: 0 auto 22px;
}
.big-search { position: relative; display: flex; max-width: 1080px; margin: 0 auto; }
.big-search input {
  flex: 1; min-width: 0; min-height: 60px; border: 0; border-radius: 10px;
  padding: 0 18px 0 52px; font: inherit; font-size: 19px; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%235A6D74' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='9.5' cy='9.5' r='7'/%3E%3Cpath d='M15 15l5.5 5.5'/%3E%3C/svg%3E") no-repeat 18px 50%;
}
.big-search input:has(+ button) { border-radius: 10px 0 0 10px; }
.big-search input:focus { outline: 3px solid #F2A65A; outline-offset: 0; }
.big-search button {
  flex: none; min-height: 60px; padding: 0 26px; border: 0; border-radius: 0 10px 10px 0;
  background: #F2A65A; color: var(--ink); font-weight: 700; font-size: 18px; cursor: pointer;
}
.big-search button:hover { background: #F6B977; }
.suggest {
  list-style: none; margin: 0; padding: 6px 0; background: #fff; color: var(--ink);
  border-radius: 10px; box-shadow: var(--shadow);
}
.big-search .suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; }
.suggest a {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  padding: 9px 16px; color: var(--ink); text-decoration: none;
}
.suggest a:hover, .suggest a.is-active { background: var(--bg); }
.sg-name { font-weight: 600; }
.sg-meta { grid-column: 2; font-size: 14px; color: var(--muted); }
.sg-side { grid-row: 1 / span 2; grid-column: 3; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; }
.sg-empty { padding: 10px 16px; color: var(--muted); }
.sg-head { padding: 6px 16px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 1080px; margin: 16px auto 0; }
.hero-actions .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero-actions .btn:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.hero-count { color: rgba(255, 255, 255, .75); font-size: 15px; }
.near { max-width: 1080px; margin: 18px auto 0; }
.near h2 { font-size: 22px; margin-bottom: 8px; }
.near .side-note { color: rgba(255, 255, 255, .75); margin-top: 8px; }
.suggest.is-static { columns: 2 320px; column-gap: 0; padding: 4px 0; }
.suggest.is-static li { break-inside: avoid; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.home-card h2 { font-size: 26px; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home-card h2 a { font-family: var(--font); font-size: 16px; font-weight: 600; }
.moon { color: var(--muted); margin: 0 0 10px; }
.day-groups { list-style: none; margin: 4px 0 12px; padding: 0; }
.day-svaz { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.day-svaz h3 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 0 2px; }
.day-svaz > ul { list-style: none; margin: 0; padding: 0; }
.day-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 8px 0; }
.day-group + .day-group { border-top: 1px dashed var(--line); }
.dg-name { font-weight: 700; font-size: 17px; }
.dg-time { font-family: var(--font-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; text-align: right; }
.day-group.is-closed .dg-time { color: var(--danger); }
.dg-closed { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dg-closed li { font-size: 14px; line-height: 1.3; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--ink); }
.dg-closed span { color: var(--muted); }
.dg-closed .dg-lbl { background: none; padding: 3px 2px 3px 0; color: var(--muted); }
.dg-none { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.home-alerts { list-style: none; margin: 8px 0 0; padding: 0; }
.home-alerts li { padding: 11px 0; border-top: 1px solid var(--line); }
.home-alerts a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.home-alerts a:hover strong { color: var(--primary); text-decoration: underline; }
.al-meta { display: block; font-size: 14px; color: var(--muted); }
.home-alerts p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2, #3B5058); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-when { display: block; font-size: 14px; font-weight: 600; color: var(--danger); }
.home-browse { margin-top: 36px; }
.home-browse > h2 { font-size: 28px; margin-bottom: 14px; }
.svaz-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.svaz-cols .svaz-block h3 { font-size: 20px; margin-bottom: 6px; }
.svaz-cols .svaz-block h3 a { color: var(--ink); text-decoration: none; }
.svaz-cols .svaz-block h3 span { color: var(--muted); font-weight: 600; font-size: 16px; }
.svaz-cols .svaz-block ul { list-style: none; margin: 0; padding: 0; }
.svaz-cols .svaz-block li { padding: 6px 0; border-top: 1px solid var(--line); }
.svaz-cols .svaz-block li a { text-decoration: none; font-weight: 500; }

/* =========================================================
   Stránka revíru
   ========================================================= */
.revir { display: flex; flex-direction: column; gap: 16px; }
.rv-top { position: relative; margin: -20px calc(50% - 50vw) 0; }
.rv-hero { height: 460px; background: #E6ECEC; }
.rv-hero.is-empty { height: auto; min-height: 120px; display: flex; align-items: flex-end; padding: 0 20px 16px; background: var(--tint); }
.rv-hero.is-empty p { margin: 0; color: var(--muted); }
.rv-head {
  position: absolute; z-index: 500; top: 20px; left: max(20px, calc(50vw - 540px)); width: 380px;
  background: var(--surface); border-radius: var(--radius); padding: 16px 18px 18px; box-shadow: var(--shadow);
}
.rv-top:has(.is-empty) .rv-head { position: static; width: auto; box-shadow: none; margin: 0 20px; padding: 16px 0 0; background: transparent; }
.rv-head .crumbs { margin-bottom: 10px; }
.rv-title { font-size: clamp(28px, 4vw, 36px); font-weight: 800; line-height: 1.05; margin: 2px 0 0; overflow-wrap: anywhere; }
.rv-id { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 8px 0 14px; color: var(--muted); font-size: 15px; }
.rv-num { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rv-type { display: inline-flex; align-items: center; gap: 6px; }
article.revir.is-loading > :not(.rv-top), article.revir.is-loading .rv-head { opacity: .45; transition: opacity .15s; }
.rv-pick-pop .leaflet-popup-content { margin: 6px; }
.rv-pick { display: flex; flex-direction: column; }
.rv-pick button { display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.rv-pick button:hover { background: var(--bg); }
.rv-head .status { display: flex; width: fit-content; margin-bottom: 8px; }
.rv-head .metrics { margin-bottom: 14px; }
.rv-cta { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cedule s názvem revíru, jako u mostu přes vodní tok. Barva podle typu. */
.rv-toc {
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 2px;
  position: sticky; top: 0; z-index: 600; padding: 6px 0; background: var(--bg);
  scrollbar-width: none;
}
.rv-toc { border-bottom: 1px solid var(--line); padding: 0; gap: 4px; }
.rv-toc a { flex: none; padding: 12px 10px 10px; color: #3B5058; font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rv-toc a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.rv-toc a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); }
.rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.rv-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rv-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; scroll-margin-top: 64px; }
.rv-sec > h2 { font-size: 26px; margin-bottom: 12px; }
.rv-sec h3 { font-size: 18px; margin: 18px 0 6px; }
.rv-sec p { margin: 0 0 10px; max-width: 72ch; }
.rv-sec p:last-child { margin-bottom: 0; }
.rv-aside { position: sticky; top: 60px; display: flex; flex-direction: column; gap: 12px; }
.rv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 16px; }
.rv-card .side-note { margin-top: 10px; }
/* Titulní fotka revíru přes celou šířku karty, nad údaji. */
.rv-photo { display: block; margin: -6px -18px 10px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg); }
.rv-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rv-nophoto { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; margin: 12px 0 8px; padding: 14px 16px; border: 2px dashed var(--line-strong); border-radius: 10px; background: var(--bg); color: #3B5058; font-size: 15px; }
.rv-nophoto svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.rv-nophoto strong { color: var(--ink); font-size: 16px; }
.rv-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.rv-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.side-note { font-size: 14px; color: var(--muted); margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 -2px; }
.revir > .notice { margin: 0; }

/* Dnes u vody: dlaždice s jedním hlavním údajem. */
.cond-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cond { background: var(--surface); padding: 14px 16px; border: solid var(--line); border-width: 0 1px 1px 0; margin: 0 -1px -1px 0; }
.cond h3 { margin: 0 0 4px; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--muted); }
.cond p { margin: 0; font-size: 15px; }
.cond .cond-main { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; margin-bottom: 4px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cond.is-index .cond-main { font-size: 24px; }
/* Poslední dlaždice dobere zbytek řady, ať v mřížce nezůstane díra. */
.cond-grid > .cond:last-child:nth-child(3n + 1) { grid-column: span 3; }
.cond-grid > .cond:last-child:nth-child(3n + 2) { grid-column: span 2; }
.cond-grid:has(> .cond:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cond-grid:has(> .cond:nth-child(4):last-child) > .cond:last-child { grid-column: auto; }
.warn { color: var(--danger); }
.wind-arrow { display: inline-block; font-weight: 700; line-height: 1; }

/* Rybářský index: číslo v barevném poli, škála červená → zelená. */
.idx-badge, .idx-cell {
  display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.idx-badge { min-width: 44px; height: 36px; padding: 0 8px; border-radius: 6px; font-size: 22px; }
.best-times .idx-badge { min-width: 32px; height: 26px; font-size: 16px; }
.s1 { background: var(--ri-1); color: #fff; }
.s2 { background: var(--ri-2); color: var(--ink); }
.s3 { background: var(--ri-3); color: var(--ink); }
.s4 { background: var(--ri-4); color: var(--ink); }
.s5 { background: var(--ri-5); color: #fff; }

.best-times { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.best-times li { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.fc-wrap { position: relative; }
.fc-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.fc-wrap::before, .fc-wrap::after { content: ''; position: absolute; top: 1px; bottom: 1px; width: 36px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .15s; }
.fc-wrap::after { right: 1px; border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(to left, rgba(20, 42, 51, .16), rgba(20, 42, 51, 0)); }
.fc-wrap::before { left: calc(var(--lbl, 110px) + 1px); background: linear-gradient(to right, rgba(20, 42, 51, .12), rgba(20, 42, 51, 0)); }
.fc-wrap.can-right::after, .fc-wrap.can-left::before { opacity: 1; }
.fc-nav { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.fc-nav[hidden] { display: none; }
.fc-nav.is-next { right: 8px; }
.fc-nav.is-prev { left: calc(var(--lbl, 110px) + 8px); }
.fc-nav:hover { border-color: var(--primary); color: var(--primary); }
.fc-scroll:focus-visible { outline-offset: 2px; }
.fc { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: 14px; }
.fc th, .fc td { padding: 0; text-align: center; white-space: nowrap; }
.fc tbody td, .fc .fc-hours th { min-width: 38px; height: 30px; padding: 0 3px; border-top: 1px solid var(--line); }
.fc tbody th, .fc thead th:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  text-align: left; padding: 0 12px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line);
}
.fc-days th { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-align: left; padding: 8px 8px 4px; color: var(--ink); }
.fc-hours th { font-weight: 600; color: var(--muted); }
.fc .day-start { border-left: 2px solid var(--line-strong); }
.fc td.is-night, .fc th.is-night { background: #F1F3F3; }
.fc .fc-index td { padding: 2px; height: 36px; }
.idx-cell { width: 100%; height: 100%; min-height: 32px; border-radius: 4px; font-size: 15px; }
.fc-index td.is-night .idx-cell { opacity: .7; }
.fc-legend { margin: 12px 0 0; font-size: 14px; color: var(--muted); max-width: 520px; }
.fc-grad { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ri-1) 0%, var(--ri-2) 25%, var(--ri-3) 50%, var(--ri-4) 75%, var(--ri-5) 100%); }
.fc-grad-l { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; justify-content: space-between; font-size: 13px; }
.fc-legend p { margin: 0; }
.fc-rain-row td { vertical-align: bottom; }
.fc-rain { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 28px; font-size: 12px; color: #1F5F8B; font-weight: 600; z-index: 0; }
.fc-rain::before { content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: var(--h); min-height: 3px; background: #9CC8E6; border-radius: 2px 2px 0 0; z-index: -1; }
.fc-p { font-size: 11px; margin-left: 1px; }
.fc-p.is-up { color: var(--rakos); }
.fc-p.is-down { color: #B4561F; }
.fish-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.fish-filter .fish-chip { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.fish-filter .fish-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Co dnes smím lovit. */
.today-lead { font-size: 18px; }
.today-ban { background: var(--danger-bg); border: 1px solid #F1C7C3; border-radius: var(--radius); padding: 12px 14px; }
.today-ban strong { color: var(--danger); }
.fish-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.fish-table th, .fish-table td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.fish-table thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.fish-table tbody th { font-weight: 600; }
.fish-table td { font-variant-numeric: tabular-nums; }
.fish-table tr.is-closed th { color: var(--muted); }
.fish-box.is-short tr.is-rest { display: none; }
.fish-box.is-short:not(:has(tr.is-key)) .fish-table { display: none; }
.fish-more { margin-top: 12px; font: inherit; font-weight: 600; color: var(--primary); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.fish-more:hover { border-color: var(--primary); }
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.st::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.st.is-open { color: var(--rakos); }
.st.is-closed { color: var(--danger); }
.st-next { display: block; font-size: 13px; color: var(--muted); }
.rv-only { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--tint); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.rules-more { margin-top: 14px; }
.rules-more summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.rules-more dl { margin: 10px 0 0; }
.rules-more dt { font-weight: 700; margin-top: 10px; }
.rules-more dd { margin: 2px 0 0; max-width: 72ch; }

/* =========================================================
   Detail revíru v panelu mapy
   ========================================================= */
.panel-body:has(.d-hero) { padding-top: 0; }
.d-hero { position: relative; margin: 0 -16px; height: 250px; background: var(--primary); color: #fff; overflow: hidden; }
.d-hero.is-loading { height: 110px; }
.d-hero-map { position: absolute; inset: 0; pointer-events: none; }
.d-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 400; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 30, 40, .12) 0%, rgba(8, 30, 40, 0) 22%, rgba(8, 30, 40, 0) 50%, rgba(8, 30, 40, .82) 100%);
}
.d-back {
  position: absolute; z-index: 500; top: 10px; left: 10px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
  padding: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.d-back svg { width: 20px; height: 20px; display: block; }
.d-hero-text { position: absolute; z-index: 500; left: 16px; right: 16px; bottom: 12px; }
.d-hero-text p { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, .9); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-hero-text .sw { box-shadow: 0 0 0 2px #fff; }
.d-hero .d-title { color: #fff; font-size: 28px; font-weight: 800; margin: 6px 0 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-ok { background: #E3F4EC; color: #12603F; }
.status.is-warn { background: #FFF0DF; color: #9A3D00; }
.status.is-ban { background: #FCE4E2; color: #A11D16; }

.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.d-actions .btn { min-height: 40px; padding: 7px 12px; font-size: 15px; }
.d-actions .btn svg { width: 17px; height: 17px; }
.d-actions.is-main .btn:not(.is-quiet) { flex: 1; }
.btn.is-on { color: #9A6A00; border-color: #E8C060; background: #FFF8E5; }
.btn.is-quiet { border-color: transparent; color: var(--primary); }

.d-tabs { display: flex; gap: 2px; margin: 0 -16px 12px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .97); }
.d-tabs button {
  flex: none; border: 0; background: none; padding: 10px 8px; margin-bottom: -1px;
  font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent;
}
.d-tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.d-pane p { margin: 0 0 10px; }
.d-h { font-family: var(--font); font-size: 15px; font-weight: 700; margin: 16px 0 6px; }
.d-foot { display: flex; justify-content: center; width: 100%; margin: 18px 0 4px; }

.metrics { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.metrics li { background: var(--bg); border-radius: 10px; padding: 10px 10px 8px; display: flex; flex-direction: column; }
.metrics svg { width: 20px; height: 20px; color: var(--primary); margin-bottom: 4px; }
.m-v { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.1; }
.m-k { font-size: 13px; color: var(--muted); }

.mini-wx { margin: 0 0 12px; }
.wx-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wx-item { background: var(--surface); padding: 9px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wx-item > svg { width: 22px; height: 22px; color: #E09A2B; }
.wx-item:nth-child(2) > svg { color: var(--primary); }
.wx-item strong { font-family: var(--font-display); font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wx-item span { font-size: 13px; color: var(--muted); }
.wx-item.is-locked strong { color: var(--primary); }
.fishes { display: inline-flex; gap: 1px; }
.fishes i { width: 16px; height: 16px; color: var(--line-strong); }
.fishes i.on { color: var(--idx-4); }
.fishes svg { width: 16px; height: 16px; }
.fish-table.is-compact th, .fish-table.is-compact td { padding: 6px 8px 6px 0; font-size: 14px; }
.panel .cond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel .cond-grid > .cond:last-child:nth-child(n) { grid-column: auto; }
.panel .cond-grid > .cond:last-child:nth-child(odd) { grid-column: span 2; }
.panel .cond .cond-main { font-size: 22px; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.rating svg { width: 20px; height: 20px; color: #E0A82B; }
.reports { list-style: none; margin: 0 0 10px; padding: 0; }
.reports li { padding: 7px 0; border-top: 1px solid var(--line); }
.pro-lock { font-size: 18px; color: var(--primary); }
.fc-locked { text-align: left !important; padding: 0 12px !important; color: var(--muted); font-weight: 600; }

/* =========================================================
   Mobil
   ========================================================= */
@media (max-width: 820px) {
  .site-head { gap: 4px; padding: 0 10px; }
  .brand span { display: none; }
  .site-nav a { padding: 0 9px; font-size: 14px; }
  .auth-btn, .get-app { padding: 6px 10px; font-size: 14px; }
  .langs summary { padding: 6px 4px; }
  .langs summary svg { display: none; }

  .panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; height: 82%;
    transform: translateY(calc(100% - 124px));
  }
  .panel-inner { border-radius: 14px 14px 0 0; }
  .panel.is-open { transform: none; }
  .panel.is-collapsed { transform: translateY(calc(100% - 124px)); }
  .panel-toggle { display: none; }
  .legend { left: 12px; right: auto; gap: 10px; padding: 6px 10px; }
  .panel-grip { display: block; width: 100%; height: 20px; border: 0; background: none; cursor: pointer; flex: none; }
  .panel-grip::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 0; }
  .panel-search { padding-top: 2px; }
  .legend { bottom: 136px; }
  .leaflet-bottom { bottom: 116px; }
  .map-hint { top: 58px; }

  .page-main { padding: 14px 16px 48px; }
  .home-hero { padding: 32px 16px 26px; background-size: 1300px auto; }
  .big-search input { min-height: 54px; font-size: 17px; padding-left: 46px; background-position: 14px 50%; }
  .big-search button { min-height: 54px; padding: 0 16px; }
  .home-grid { grid-template-columns: 1fr; }
  .diary-charts { grid-template-columns: 1fr; }
  .rv-top { margin-top: -14px; }
  .rv-hero { height: 280px; }
  .rv-head { position: static; width: auto; box-shadow: none; border-radius: 0; padding: 14px 16px 4px; background: transparent; }
  .rv-sec > h2 { font-size: 23px; }
  .cond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cond-grid > .cond:last-child:nth-child(n) { grid-column: auto; }
  .cond-grid > .cond:last-child:nth-child(odd) { grid-column: span 2; }
  .cond .cond-main { font-size: 24px; }
  .rv-layout { grid-template-columns: 1fr; gap: 16px; }
  .rv-aside { position: static; }
  .rv-sec { padding: 16px; }
  .near-list { margin: 0 -16px -16px; }
  .near-list .row { padding: 10px 16px; }
  .row-side { display: none; }
  .row { grid-template-columns: 10px minmax(0, 1fr); }
  .alert-card { grid-template-columns: 1fr; padding: 14px 16px; }
  .alert-when { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.alert-reason { margin: 2px 0 0; font-weight: 700; }

.diary-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   Aplikace: odznaky obchodů, QR, pruhy a karty
   ========================================================= */
.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stores a { display: block; line-height: 0; }
.stores img { height: 44px; width: auto; }
.qr { display: flex; align-items: center; gap: 10px; }
.qr img { width: 72px; height: 72px; background: #fff; border-radius: 8px; padding: 5px; border: 1px solid var(--line); }
.qr span { font-size: 14px; color: var(--muted); max-width: 14ch; line-height: 1.3; }
.qr span:empty { display: none; }
@media (hover: none) and (pointer: coarse) { .qr { display: none; } }

.app-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 32px 0 0; }
.app-strip .app-icon { border-radius: 12px; flex: none; }
.app-strip-text { flex: 1 1 340px; min-width: 0; }
.app-strip h2 { font-size: 24px; margin: 0; }
.app-strip p { margin: 4px 0 0; color: #3B5058; }
.app-strip .qr img { width: 64px; height: 64px; }

.rv-app { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: var(--tint); border-radius: 12px; padding: 16px 20px; margin: 0 0 32px; }
.rv-app svg { width: 34px; height: 34px; color: var(--primary); flex: none; }
.rv-app p { flex: 1 1 300px; margin: 0; }
.app-card { background: var(--primary); color: #fff; border-radius: 12px; padding: 22px 22px 0; margin-top: 20px; overflow: hidden; }
.app-card h2 { font-size: 23px; margin: 0; color: #fff; }
.app-card ul { margin: 10px 0 16px; padding: 0 0 0 18px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.app-card .stores img { height: 40px; }
.app-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.app-card-foot .qr { padding-bottom: 20px; }
.app-card-foot .qr span { color: rgba(255, 255, 255, .78); }
.app-card-foot > img { height: 170px; width: auto; }

.app-banner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-banner[hidden] { display: none; }
.app-banner img { border-radius: 10px; }
.ab-close { border: 0; background: transparent; color: var(--muted); font-size: 22px; width: 28px; height: 44px; padding: 0; cursor: pointer; }
.ab-txt { flex: 1; min-width: 0; line-height: 1.25; display: flex; flex-direction: column; }
.ab-store { font-size: 13px; color: var(--muted); }
.ab-open { background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px; }

.panel-app { position: relative; display: flex; align-items: center; gap: 10px; margin: 10px 12px 12px; padding: 10px 10px 10px 12px; background: var(--primary); color: #fff; border-radius: 12px; }
.panel-app[hidden] { display: none; }
.panel-app img { border-radius: 9px; flex: none; }
.panel-app > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.panel-app strong { font-size: 14px; }
.panel-app > span span { font-size: 12px; color: rgba(255, 255, 255, .78); }
.panel-app .btn { background: #fff; color: var(--primary); min-height: 34px; padding: 6px 12px; font-size: 14px; }
.pa-close { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 14px; line-height: 1; padding: 0; cursor: pointer; }

/* ---- O aplikaci ---- */
.ab-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 48px; background: var(--primary); color: #fff; border-radius: 16px; padding: 56px 48px 0; overflow: hidden; margin-top: 8px; }
.ab-hero-text { flex: 1 1 420px; min-width: 0; padding-bottom: 56px; }
.ab-hero h1 { font-size: clamp(40px, 6vw, 64px); color: #fff; margin: 0; }
.ab-lead { font-size: 20px; margin: 16px 0 0; max-width: 40ch; }
.ab-hero .ab-lead { color: rgba(255, 255, 255, .88); }
.ab-get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.ab-get .stores img { height: 52px; }
.ab-get .qr span { color: rgba(255, 255, 255, .8); }
.ab-note { margin: 20px 0 0; font-size: 15px; color: rgba(255, 255, 255, .72); }
.ab-phones { flex: 1 1 380px; display: flex; justify-content: center; align-items: flex-end; min-width: 0; }
.ab-phones img { height: 380px; width: auto; }
.ab-phones img:nth-child(2) { height: 450px; position: relative; z-index: 1; margin: 0 -50px; }
.ab-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ab-stats strong { display: block; font-family: var(--font-display); font-size: 38px; line-height: 1; }
.ab-stats span { color: var(--muted); }
.ab-sec { padding: 56px 0 0; }
.ab-sec > h2, .ab-cmp h2 { font-size: clamp(30px, 4vw, 40px); margin: 0; }
.ab-sub { margin: 10px 0 28px; color: var(--muted); }
.ab-cmp { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-start; }
.ab-cmp > div:first-child { flex: 1 1 280px; }
.ab-cmp > div:first-child p { color: var(--muted); max-width: 40ch; }
.ab-cmp .table-wrap { flex: 2 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp thead th { font-family: var(--font-display); font-size: 18px; border-bottom: 2px solid var(--line-strong); }
.cmp tbody th { font-weight: 500; }
.cmp tr:last-child > * { border-bottom: 0; }
.cmp .yes { font-weight: 700; }
.cmp .no { color: var(--faint); }
.feat { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; padding: 56px 0 0; }
.feat.is-flip { flex-direction: row-reverse; }
.feat-img { flex: 1 1 320px; display: flex; justify-content: center; align-items: center; }
.feat-img img { height: 400px; width: auto; display: block; }
.feat-text { flex: 1 1 380px; min-width: 0; }
.feat-text h2 { font-size: clamp(28px, 3.4vw, 36px); margin: 0; }
.feat-text p { max-width: 48ch; }
.feat-list { padding-left: 20px; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 3px solid var(--rakos); }
.plan li { padding: 18px 20px 18px 0; }
.plan li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.plan h3 { font-size: 21px; margin: 4px 0 6px; }
.plan p { margin: 0; font-size: 15px; color: var(--muted); }
.plan-st { font-size: 14px; font-weight: 700; color: var(--rakos); }
.plan .is-next .plan-st { color: var(--warn); }
.ab-band { background: var(--tint); border-radius: 16px; padding: 48px; margin-top: 56px; }
.ab-band h2 { font-size: clamp(30px, 4vw, 40px); margin: 0; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 32px; }
.team figure { margin: 0; display: flex; gap: 20px; align-items: flex-start; }
.team img { width: 130px; height: 162px; object-fit: cover; border-radius: 10px; flex: none; }
.team h3 { font-size: 24px; margin: 0; }
.team p { margin: 8px 0 10px; font-size: 16px; }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.partners article { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.p-logo { height: 110px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.p-logo.is-dark { background: var(--ink); border-bottom: 0; }
.p-logo img { width: auto; max-width: 80%; }
.p-body { padding: 18px 22px 22px; }
.p-body h3 { font-size: 21px; margin: 0; }
.p-body p { margin: 8px 0 10px; font-size: 16px; }
.p-cta { display: flex; flex-direction: column; justify-content: center; gap: 8px; border: 2px dashed var(--line-strong); border-radius: 10px; padding: 26px; text-decoration: none; color: var(--ink); }
.p-cta strong { font-family: var(--font-display); font-size: 25px; line-height: 1.15; }
.p-cta span { color: var(--muted); }
.p-cta .p-cta-link { color: var(--primary); font-weight: 700; }
.p-cta:hover { border-color: var(--primary); }
.ab-faq { max-width: 820px; }
.faq { margin: 24px 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { padding: 16px 20px; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .2s ease, content-visibility .2s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .faq details::details-content { transition: none; } }
.faq details > :not(summary) { margin: -4px 20px 18px; color: #3B5058; max-width: 70ch; }

/* ---- Obchod ---- */
.shop-head { padding-top: 24px; }
.shop-head h1 { font-size: clamp(36px, 5vw, 56px); margin: 0; }
.shop-note { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; background: var(--warn-bg); color: #4A2400; border: 1px solid #E8B27A; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.shop-note svg { width: 22px; height: 22px; flex: none; color: #B4561F; }
.pr-tag { align-self: flex-start; margin-bottom: 8px; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--primary); }
.pr-tag.is-mail { background: var(--idx-1); color: var(--idx-5); }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.pr-img { aspect-ratio: 4 / 3; background: var(--tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pr-img img { width: 100%; height: 100%; object-fit: cover; }
.pr-img.is-empty svg { width: 56px; height: 56px; color: var(--line-strong); }
.pr-img.is-voucher { background: var(--primary); color: #fff; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 18px 20px; box-sizing: border-box; }
.pv-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.pv-top img { width: 28px; height: 28px; border-radius: 7px; }
.pv-h { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.pr-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 20px; margin: 0; }
.product p { margin: 6px 0 0; font-size: 15px; color: #3B5058; }
.product .price { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); margin: 14px 0; }
.product .btn { margin-top: auto; }
.steps { list-style: none; counter-reset: krok; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { counter-increment: krok; position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.steps li::before { content: counter(krok); font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--rakos); }
.steps .st-ik { width: 28px; height: 28px; color: var(--primary); justify-self: end; }
.steps li > :not(.st-ik) { grid-column: 1 / -1; }
@media (min-width: 800px) {
  .steps li:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -16px; width: 12px; height: 12px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
}
.steps h3 { font-size: 20px; margin: 4px 0 6px; }
.steps p { margin: 0; color: #3B5058; }

/* ---- Spolupráce ---- */
.coop { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 24px; }
.coop-intro { flex: 1 1 300px; min-width: 0; }
.coop-intro h1 { font-size: clamp(36px, 5vw, 52px); margin: 0; }
.coop-steps { margin: 28px 0; padding-left: 22px; display: grid; gap: 10px; }
.coop-form { flex: 2 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; gap: 18px; }
.coop-form h2 { font-size: 21px; margin: 4px 0 12px; }
.coop-form fieldset { border: 0; margin: 0; padding: 0; }
.coop-form legend { font-weight: 700; margin-bottom: 8px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.field { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.field textarea { resize: vertical; }
.seg-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong) !important; border-radius: 10px; overflow: hidden; }
.seg-pick legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg-pick label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 700; cursor: pointer; }
.seg-pick label:has(input:checked) { background: var(--primary); color: #fff; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; }
.pick-chip:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.pick-chip:has(input:disabled) { opacity: .45; cursor: default; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.coop-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.coop-msg { margin: 0; font-weight: 600; }
.coop-msg.is-ok { color: var(--idx-5); }
.coop-msg.is-err { color: var(--danger); }

/* ---- Právní texty ---- */
.legal { max-width: 760px; padding-top: 24px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 0 0 12px; }
.legal h2 { font-size: 24px; margin: 32px 0 8px; }
.legal h3 { font-size: 19px; margin: 20px 0 6px; }

@media (max-width: 760px) {
  .site-head { height: auto; flex-wrap: wrap; padding: 8px 12px 0; row-gap: 0; }
  .site-head .brand { height: 44px; }
  .site-nav { order: 3; width: 100%; height: 44px; overflow-x: auto; scrollbar-width: none; }
  .get-app .ga-long { display: none; }
  .get-app .ga-short { display: inline; }
  .ab-hero { padding: 36px 20px 0; border-radius: 0; margin: 0 -16px; }
  .ab-phones img { height: 260px; }
  .ab-phones img:nth-child(2) { height: 310px; margin: 0 -36px; }
  .ab-band { padding: 32px 20px; margin: 48px -16px 0; border-radius: 0; }
  .feat-img img { height: 320px; }
  .team figure { flex-direction: column; }
  .app-strip { padding: 18px; }
  .coop-form { padding: 18px; }
}

/* ---- Hledání míst ---- */
.sg-pin { width: 14px; height: 14px; color: var(--muted); grid-row: 1 / span 2; align-self: center; margin-left: -2px; margin-right: -4px; }
.sg-misto a { grid-template-columns: 10px minmax(0, 1fr) auto; }
.p-pin { width: 14px; height: 14px; color: var(--muted); align-self: center; flex: none; }
.p-loading { padding: 8px 16px; }
.p-row:has(.p-pin) { grid-template-columns: 14px 1fr; }
.btn:disabled { opacity: 1; cursor: not-allowed; background: var(--bg); border-style: dashed; border-color: var(--line-strong); color: #4F6168; }
.btn:disabled:hover { color: #4F6168; border-color: var(--line-strong); }
.field .muted { font-weight: 400; }

/* ---- Zdroj počasí: odznak stanice se vzdáleností ---- */
.wx-row { display: flex; }
.wx-row > .wx-item { flex: 1 1 0; }
.wx-row > .wx-item.is-weather { flex: 1.6 1 0; }
.wx-item strong small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); }
.wx-src { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin: 3px 0 2px; }
.wx-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px !important; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--bg); color: var(--muted) !important; border: 1px solid var(--line); }
.wx-badge.is-station { background: var(--idx-1); color: var(--idx-5) !important; border-color: var(--idx-2); }
.wx-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--idx-4); box-shadow: 0 0 0 2px rgba(58, 149, 124, .25); }
.wx-km { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--ink) !important; font-weight: 600; }
.wx-km svg { width: 13px; height: 13px; color: var(--muted); flex: none; }
.nav-pro { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* Prázdný panel mapy: jen pole hledání, sloupec se ukáže až s obsahem. */
.panel:has(.panel-body:empty) .panel-body,
.panel:has(.panel-body:empty) .panel-app { display: none; }
.panel:has(.panel-body:empty) .panel-search { border-bottom: 0; }
@media (min-width: 821px) {
  .panel:has(.panel-body:empty) { bottom: auto; }
  /* Sloupec je vysoký podle obsahu (pár výsledků hledání = krátký panel),
     nanejvýš na výšku mapy — pak se obsah posouvá uvnitř. */
  .panel { bottom: auto; max-height: calc(100% - 24px); }
  .panel-body { flex: 0 1 auto; }
}

/* ---- Mapa oblastí na stránce zákazů ---- */
.alert-map-wrap { margin: 8px 0 24px; }
.alert-map { height: 360px; border-radius: 12px; border: 1px solid var(--line); background: #E9EEEC; }
.alert-map-note { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.alert-map-note .link { margin-left: 8px; }
.am-pin-wrap { background: none; border: 0; }
.am-pin-wrap { display: flex; flex-direction: column; align-items: center; width: 0 !important; height: 0 !important; cursor: pointer; }
.am-pin { transform: translateY(-50%); display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--danger); color: #fff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(20, 42, 51, .3); font-family: var(--font-display); font-size: 17px; }
.am-pin.is-soon { background: var(--warn); }
.am-name { transform: translateY(-14px); white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 1px 6px; }
.am-pin-wrap:hover .am-pin, .am-pin-wrap:focus .am-pin { background: var(--primary); }
.am-pin-wrap.is-on .am-pin { background: var(--primary); transform: translateY(-50%) scale(1.15); }
.am-pin-wrap.is-on .am-name { background: var(--primary); color: #fff; }
.alert-map .base-tiles { filter: saturate(.4) brightness(1.05); }

/* ---- Deník: tabulka úlovků ---- */
.catch-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.catch-table th, .catch-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.catch-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.catch-table tbody th { font-weight: 600; }
.catch-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.catch-table tr:last-child > * { border-bottom: 0; }
.catches-more { margin-top: 10px; }

/* ---- Deník: osobní hlavička, rekordy, špendlíky ---- */
.diary-me { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.dm-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.diary-me h2 { font-size: 26px; margin: 0; }
.diary-me p { margin: 2px 0 0; color: #3B5058; max-width: 70ch; }
.trophies { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.trophies li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.tr-img { aspect-ratio: 4 / 3; background: var(--tint); display: grid; place-items: center; color: var(--line-strong); overflow: hidden; }
.tr-img img { width: 100%; height: 100%; object-fit: cover; }
.tr-img svg { width: 48px; height: 48px; }
.tr-body { padding: 12px 14px 14px; display: flex; flex-direction: column; }
.tr-body strong { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.tr-druh { font-weight: 600; }
.tr-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.dm-pin { background: none; border: 0; }
.dm-pin span { display: grid; place-items: center; box-sizing: border-box; border-radius: 50%; background: var(--c); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-weight: 700; font-size: 13px; cursor: pointer; }
.gallery span small { display: block; font-size: 12px; font-weight: 400; opacity: .85; }

/* ---- Osobní části: titulka, revír, obchod ---- */
a.auth-btn { text-decoration: none; display: inline-flex; align-items: center; }
.home-mine { margin: 0 0 20px; }
.home-mine h2 { font-size: 26px; margin: 0 0 10px; }
.mine-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mine-card a { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); text-decoration: none; }
.mine-card a:hover { border-color: var(--line-strong); }
.mine-card a:hover strong { color: var(--primary); text-decoration: underline; }
.mc-top { display: flex; align-items: center; gap: 8px; }
.mc-meta { font-size: 14px; color: var(--muted); }
.mc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; min-height: 26px; }
.mc-idx { display: inline-flex; align-items: center; gap: 6px; }
.mc-idx .idx-badge { min-width: 32px; height: 26px; font-size: 16px; }
.mc-mine { color: var(--muted); }
.mc-warn { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--danger); }
.mt-card h2 { font-size: 20px; margin: 0 0 6px; }
.mt-card p { margin: 0 0 6px; font-size: 15px; }
.mt-list { list-style: none; margin: 6px 0; padding: 0; }
.mt-list li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mt-fav { color: var(--muted); }
.my-place { background: none; border: 0; }
.my-place span { display: block; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #E3A33B; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.shop-pro { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--idx-1); color: var(--idx-5); }

/* ---- Deník: záložky, statistiky, výpravy, detail úlovku ---- */
.diary-tabs { margin: 0 0 20px; padding: 0; position: static; background: transparent; }
.diary-tabs button { font-size: 16px; }
.diary-stats small.is-up, .diary-stats small.is-down { display: block; font-weight: 600; }
.is-up { color: var(--rakos); }
.is-down { color: #B4561F; }
.diary-stats dd small { display: block; }
.st-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.st-filter .fish-chip { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.st-filter .fish-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
#co-dnes:not(:empty) { margin-bottom: 16px; }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.st-card.is-wide { grid-column: 1 / -1; }
.st-card h3 { font-size: 20px; margin: 0 0 6px; }
.st-sub { font-size: 15px; margin: 16px 0 8px; color: var(--muted); }
.st-lead { margin: 0 0 12px; color: #3B5058; font-size: 15px; }
.ideal { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.ideal div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.ideal dt { font-size: 13px; color: var(--muted); }
.ideal dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; }
.ideal dd small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.vbars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; align-items: end; }
.vb { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.vb-v { font-size: 13px; font-weight: 700; min-height: 18px; font-variant-numeric: tabular-nums; }
.vb-bar { width: 100%; height: 110px; display: flex; align-items: flex-end; background: var(--bg); border-radius: 4px; overflow: hidden; }
.vb-bar i { display: block; width: 100%; background: #9CC9BC; border-radius: 4px 4px 0 0; }
.vb.is-top .vb-bar i { background: var(--rakos); }
.vb-l { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.vb-l small { display: block; font-size: 11px; }
.sp-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.sp-list li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
.sp-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--rakos); border-radius: 4px; }
.sp-n { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.sp-meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.sp-list.is-simple .sp-meta { display: none; }
.heat { border-collapse: separate; border-spacing: 3px; font-size: 13px; width: 100%; }
.heat th { font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }
.heat tbody th { text-align: left; color: var(--ink); padding-right: 6px; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.heat td { height: 26px; min-width: 26px; text-align: center; border-radius: 4px; background: var(--bg); font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.heat td.is-on { background: rgba(27, 127, 107, var(--a)); }
.heat td.is-dark { color: #fff; }
.heat.is-grid td { height: 40px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bait-cond { width: 100%; border-collapse: collapse; font-size: 15px; }
.bait-cond th, .bait-cond td { padding: 7px 8px 7px 0; border-top: 1px solid var(--line); text-align: left; }
.bait-cond th { font-weight: 600; color: var(--muted); white-space: nowrap; }
.bait-cond .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend { width: 100%; height: auto; display: block; }
.trend polyline { stroke: var(--rakos); stroke-width: 2.5; }
.trend circle { fill: #fff; stroke: var(--rakos); stroke-width: 2.5; }
.trend text { font-family: var(--font); text-anchor: middle; }
.trend text.v { font-size: 13px; font-weight: 700; fill: var(--ink); }
.trend text.l { font-size: 12px; fill: var(--muted); }
.wx-avg { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 4px 0 0; }
.wx-avg dt { font-size: 13px; color: var(--muted); }
.wx-avg dd { margin: 2px 0 0; font-weight: 800; font-size: 22px; font-family: var(--font-display); }
.wx-avg .idx-badge { font-size: 20px; height: 32px; min-width: 40px; }
.today-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 24px; }
.today-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.today-rank li { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr) 3.2em; gap: 8px; align-items: center; font-size: 15px; }
.today-rank li span:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-rank li span:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: var(--primary); }
.trips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trip-head { width: 100%; font: inherit; color: var(--ink); text-align: left; background: none; border: 0; padding: 14px 44px 14px 18px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; position: relative; }
.trip-head::after { content: ''; position: absolute; right: 20px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.trip-head[aria-expanded="true"]::after { transform: rotate(-135deg); top: 26px; }
.trip-date { font-weight: 700; color: var(--muted); white-space: nowrap; }
.trip-rev { font-weight: 700; }
.trip-meta { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.trip-body { padding: 0 18px 14px; }
.trip-note { margin: 0 0 10px; font-style: italic; color: #3B5058; }
.trip-catches { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tc { width: 100%; font: inherit; color: var(--ink); text-align: left; background: var(--bg); border: 0; border-radius: 10px; padding: 8px; cursor: pointer; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.tc:hover { background: var(--tint); }
.tc img, .tc-noimg { grid-row: 1 / span 2; width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--line); }
.tc-sub { font-size: 13px; color: var(--muted); }
.trips-more { margin-top: 14px; }
.trophies li[data-ulovek] { cursor: pointer; }
.trophies li[data-ulovek]:hover { border-color: var(--line-strong); }
.gallery button[data-ulovek] { cursor: pointer; }
.catch-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(10, 25, 32, .6); display: grid; place-items: center; padding: 16px; }
.cm-box { position: relative; background: var(--surface); border-radius: 14px; max-width: 760px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow); }
.cm-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.cd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cd-wrap:not(:has(.cd-img)) { grid-template-columns: 1fr; }
.cd-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.cd-body { padding: 20px 22px; }
.cd-body h2 { font-size: 26px; margin: 0 40px 10px 0; }
.cd-body h3 { font-size: 16px; margin: 16px 0 6px; color: var(--muted); }
.cd-dl { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 14px; margin: 0; font-size: 15px; }
.cd-dl dt { color: var(--muted); }
.cd-dl dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) {
  .st-grid { grid-template-columns: 1fr; }
  .cd-wrap { grid-template-columns: 1fr; }
  .cd-img { min-height: 0; max-height: 280px; }
}

/* =========================================================
   Úpravy po prohlídce webu (říjen 2026)
   ========================================================= */
/* Obchod: zboží, které ještě nemá cenu ani popis. */
.product .price.is-tbd { font-family: var(--font); font-size: 15px; font-weight: 600; color: #4F6168; }
.product.is-soon { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.product.is-soon .pr-img { background: var(--bg); }

/* Srovnání web a aplikace: ikona nese rozdíl. */
.cmp td { white-space: nowrap; }
.cmp td svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.cmp .yes svg { color: var(--rakos); }
.cmp .no { color: #4F6168; }
.cmp .no svg { color: var(--faint); }
.cmp .part { color: #3B5058; }
.cmp .part svg { color: #B08A1E; }
.pro-pill { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .03em; vertical-align: 1px; }

/* Funkce aplikace: obrázek a text vždy vedle sebe, strany se střídají. */
@media (min-width: 900px) {
  .feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: 48px; }
  .feat.is-flip .feat-img { order: 2; }
  .feat-img img { height: 480px; }
}

/* Titulka: přepínač svazu. */
.day-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 6px 0 2px; background: var(--bg); border-radius: 9px; }
.day-tabs button { border: 0; background: none; font-weight: 700; font-size: 15px; padding: 6px 16px; border-radius: 7px; cursor: pointer; color: #3B5058; }
.day-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 42, 51, .15); }
.day-svaz { border-top: 0; }

/* Titulka: zákaz s ikonou místo tečky typu revíru. */
.al-ico { width: 18px; height: 18px; flex: none; color: var(--danger); }
.home-alerts li.is-warn .al-ico { color: var(--warn); }

/* Oblast: dlouhý seznam ve sloupcích a skok na písmeno. */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; }
.az a { min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.az a:hover { border-color: var(--primary); }
.rows.is-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rows.is-cols li + li { border-top: 0; }
.rows.is-cols li { border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.rows.is-cols .row-side { display: none; }
.rows.is-cols .row { grid-template-columns: 10px minmax(0, 1fr); }

/* Panel mapy: zákaz zkráceně, celé znění po kliknutí. */
.notice.is-compact { font-size: 15px; padding: 12px 14px; }
.notice.is-compact p { margin-top: 2px; }
.notice-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.notice-more { grid-column: 2; justify-self: start; font-size: 15px; margin-top: 4px; }

/* Drobné texty aspoň 13 px. */
.vb-l, .fc-grad-l, .am-name, .chart text.l, .trend text.l { font-size: 13px; }
.fc-rain, .gallery span small, .vb-l small { font-size: 12px; }
.fc-p { font-size: 12px; }
.wx-badge { font-size: 13px !important; }
.panel-app > span span { font-size: 13px; }

@media (max-width: 760px) {
  /* Menu v jednom řádku, posouvá se do strany; okraj naznačí, že je víc. */
  .site-nav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .site-nav.is-end { -webkit-mask-image: none; mask-image: none; }
  .site-nav a { flex: none; white-space: nowrap; padding: 0 10px; }
  .preview-badge { font-size: 12px; padding: 1px 6px; }

  /* Co dnes smím lovit jako karty: druh a stav nahoře, míra pod nimi. */
  .fish-table thead { display: none; }
  .fish-table, .fish-table tbody { display: block; }
  .fish-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .fish-box.is-short .fish-table tr.is-rest { display: none; }
  .fish-table th, .fish-table td { border: 0; padding: 0; }
  .fish-table .ft-mira { grid-column: 1; grid-row: 2; color: #3B5058; font-size: 15px; }
  .fish-table .ft-stav { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .st-next { white-space: nowrap; }

  .fc-nav.is-prev { display: none; }
  .rows.is-cols { grid-template-columns: 1fr; }
}

/* =========================================================
   Deník barevně: hlavička profilu, dlaždice s ikonami, barvy druhů
   a pásma podmínek podle významu (denik.js, BARVY a barvaDruhu).
   ========================================================= */
.diary-me {
  position: relative; overflow: hidden; align-items: flex-start; gap: 18px;
  padding: 24px 26px; border-radius: 14px; color: #fff;
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.4'%3E%3Cpath d='M0 20c40-14 80 14 120 0s80 14 120 0M0 50c40-14 80 14 120 0s80 14 120 0M0 80c40-14 80 14 120 0s80 14 120 0M0 110c40-14 80 14 120 0s80 14 120 0'/%3E%3C/svg%3E"), linear-gradient(120deg, #0B4A6F 0%, #0E5C6E 55%, #1B7F6B 100%);
}
.diary-me h2 { color: #fff; font-size: 30px; }
.diary-me p { color: rgba(255, 255, 255, .88); }
.dm-avatar { width: 64px; height: 64px; font-size: 24px; background: #fff; color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.dm-text { min-width: 0; }
.dm-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chips li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; }
.dm-chips li span { color: rgba(255, 255, 255, .78); }
.dm-chips li[style]::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); margin-right: 4px; }

/* Dlaždice s barevnou ikonou (souhrn, ideální podmínky, počasí při lovu). */
.diary-stats div, .ideal div, .wx-avg div { position: relative; }
.diary-stats div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.diary-stats div dt, .diary-stats div dd { grid-column: 2; }
.diary-stats .ds-ik { grid-row: 1 / span 2; }
.ds-ik { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, #fff); flex: none; }
.ds-ik svg { width: 22px; height: 22px; }
.diary-stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.diary-stats div { border-top: 3px solid var(--c); min-width: 0; }
.diary-stats > div:last-child { grid-column: span var(--span, 1); }
.ds-ring { display: block; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--c) 18%, #fff) 0); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); }
.ideal div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.ideal div dt, .ideal div dd { grid-column: 2; }
.ideal .ds-ik { grid-row: 1 / span 2; width: 36px; height: 36px; background: #fff; }
.wx-avg div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.wx-avg div dt, .wx-avg div dd { grid-column: 2; }
.wx-avg .ds-ik { grid-row: 1 / span 2; width: 36px; height: 36px; }

/* Pruhy pásem: nejčastější pásmo sytě, ostatní ve stejné barvě světleji. */
.vb[style] .vb-bar i { background: color-mix(in srgb, var(--c) 55%, #fff); }
.vb[style].is-top .vb-bar i { background: var(--c); }
.vb.is-top .vb-v { color: var(--ink); font-size: 15px; }

/* Barva druhu: tečka u názvu, pruh, řádek sezóny. */
.sp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--rakos)); margin-right: 7px; vertical-align: 0; flex: none; }
.sp-list li[style] .sp-bar i, .hbars li[style] .hb-bar i, .today-rank li[style] .tr-bar i { background: var(--c); }
.sp-bar, .tr-bar { height: 10px; }
.heat tr[style] td.is-on, .heat[style] td.is-on { background: color-mix(in srgb, var(--c) calc(var(--a) * 100%), #fff); color: var(--ink); }
.heat tr[style] td.is-dark, .heat[style] td.is-dark { color: #fff; }
.heat tbody th { white-space: nowrap; }
.st-filter .fish-chip { display: inline-flex; align-items: center; }
.st-filter .fish-chip[aria-pressed="true"][style] { background: var(--c); border-color: var(--c); }
.st-filter .fish-chip[aria-pressed="true"] .sp-dot { background: #fff; }
.trend polyline { stroke: var(--c, var(--rakos)); stroke-width: 3; }
.trend circle { stroke: var(--c, var(--rakos)); }

/* Měsíce po ročních obdobích. */
.chart rect.is-zima { fill: #5B8FD0; }
.chart rect.is-jaro { fill: #5FAF5A; }
.chart rect.is-leto { fill: #E0A43A; }
.chart rect.is-podzim { fill: #D9733A; }
.chart .bar:hover rect:not(.is-zero) { fill-opacity: .8; fill: inherit; }
.season-key { list-style: none; margin: -2px 0 6px; padding: 0; display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.season-key li::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.season-key .is-zima::before { background: #5B8FD0; }
.season-key .is-jaro::before { background: #5FAF5A; }
.season-key .is-leto::before { background: #E0A43A; }
.season-key .is-podzim::before { background: #D9733A; }

/* Rekordy: karta v barvě druhu, pořadí jako medaile. */
.trophies li[style] { border-top: 4px solid var(--c); }
.trophies li[style] .tr-img { position: relative; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); color: rgba(255, 255, 255, .85); }
.trophies li[style] .tr-img svg { width: 72px; height: 72px; }
.tr-medal { position: absolute; top: 10px; left: 10px; min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); border: 2px solid #fff; }
.tr-medal.is-1 { background: #F2C744; }
.tr-medal.is-2 { background: #D5DDE0; }
.tr-medal.is-3 { background: #E0A070; }
.tr-druh::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, transparent); margin-right: 6px; }

/* Výpravy: tečky druhů a barevný okraj úlovku. */
.trip-dots { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.trip-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.tc[style] { box-shadow: inset 4px 0 0 var(--c); }
.tc-noimg { display: grid; place-items: center; background: color-mix(in srgb, var(--c, #8A9AA1) 22%, #fff) !important; color: var(--c, #8A9AA1); }
.tc-noimg svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
  .diary-me { padding: 18px; border-radius: 12px; }
  .diary-me h2 { font-size: 24px; }
  .dm-avatar { width: 52px; height: 52px; font-size: 20px; }
  .diary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diary-stats > div:last-child { grid-column: auto; }
  .diary-stats > div:last-child:nth-child(odd) { grid-column: span 2; }
}

/* Revír jiného svazu v okolí. */
.svaz-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 5px; background: #FFF0DF; color: #8A3B00; border: 1px solid #F1C99A; font-size: 13px; font-weight: 700; vertical-align: 2px; }
.near-note { margin: 22px 0 0; }

/* =========================================================
   Revírník PRO na webu: účet, nákup, zkušební brána, poukaz
   ========================================================= */
.shop-note.is-test { background: #EEF6FF; color: #123A5C; border-color: #A9CBE8; }
.shop-note.is-test svg { color: #3F7FBF; }
.shop-redeem { margin: 18px 0 0; font-weight: 600; }
.pr-img.is-own { background: linear-gradient(135deg, #0B4A6F, #1B7F6B); }
.product.is-pro { border-color: #1B7F6B; box-shadow: 0 0 0 1px #1B7F6B; }
.product a.btn { margin-top: auto; }

.pro-shop { max-width: 720px; padding-top: 8px; }
.pro-shop h1 { font-size: clamp(32px, 5vw, 46px); margin: 0; }
.pro-app { margin-top: 24px; display: grid; gap: 16px; }
.pro-acc { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.pa-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.pa-label { margin: 0; font-size: 14px; color: var(--muted); }
.pro-acc h2 { font-size: 24px; margin: 0 0 8px; }
.pa-ids { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pa-ids li { padding: 3px 10px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 700; }
.pa-ids li span { font-weight: 400; color: #3B5058; }
.pa-ids li.is-google { background: #E8F0FE; }
.pa-ids li.is-apple { background: #EDEDED; }
.pa-dev { margin: 10px 0 0; font-size: 15px; color: #3B5058; }
.pa-dev.is-warn { color: var(--warn); font-weight: 600; }
.pro-warn { background: var(--warn-bg); border: 1px solid #F5D3BB; border-radius: 10px; padding: 12px 16px; }
.pro-warn strong { display: block; color: var(--warn); }
.pro-state { margin: 0; font-weight: 600; color: var(--idx-5); background: var(--idx-1); border-radius: 10px; padding: 10px 14px; }
.pro-buy { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 14px; justify-items: start; }
.pro-buy .field { width: 100%; }
.pb-sum { width: 100%; margin: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pb-sum strong { font-family: var(--font-display); font-size: 26px; }
.pro-buy .muted { margin: 0; }
.pro-err { margin: 0; color: var(--danger); font-weight: 600; }
.pro-login { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; justify-items: start; }
.pro-login h2 { font-size: 24px; margin: 0; }
.pro-login p { margin: 0; max-width: 60ch; }
.pay-mock { max-width: 420px; background: var(--surface); border: 2px dashed #A9CBE8; border-radius: 14px; padding: 22px; text-align: center; }
.pm-brand { margin: 0; font-size: 14px; font-weight: 700; color: #3F7FBF; }
.pm-item { margin: 10px 0 0; }
.pm-sum { margin: 4px 0 18px; font-family: var(--font-display); font-weight: 800; font-size: 40px; }
.pm-btns, .pd-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pd-btns { justify-content: flex-start; }
.pro-done { background: var(--idx-1); border: 1px solid var(--idx-2); border-radius: 12px; padding: 20px; }
.pd-big { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0 0 8px; }
.voucher { position: relative; overflow: hidden; border-radius: 16px; padding: 26px 28px; color: #fff; background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.4'%3E%3Cpath d='M0 20c40-14 80 14 120 0s80 14 120 0M0 50c40-14 80 14 120 0s80 14 120 0M0 80c40-14 80 14 120 0s80 14 120 0M0 110c40-14 80 14 120 0s80 14 120 0'/%3E%3C/svg%3E"), linear-gradient(120deg, #0B4A6F, #1B7F6B); }
.vc-top { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.vc-top img { border-radius: 8px; }
.vc-h { margin: 18px 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.vc-code { display: inline-block; margin: 6px 0 14px; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: .06em; }
.vc-how { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, .9); font-size: 15px; }
@media print {
  body * { visibility: hidden; }
  .voucher, .voucher * { visibility: visible; }
  .voucher { position: absolute; left: 0; top: 0; width: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   Spolupráce: pruh nahoře, průběh, formulář po sekcích
   ========================================================= */
.coop-hero { position: relative; margin: 0 calc(50% - 50vw) 0; padding: 48px max(20px, calc(50vw - 540px)) 40px; color: #fff;
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.4'%3E%3Cpath d='M0 20c40-14 80 14 120 0s80 14 120 0M0 50c40-14 80 14 120 0s80 14 120 0M0 80c40-14 80 14 120 0s80 14 120 0M0 110c40-14 80 14 120 0s80 14 120 0'/%3E%3C/svg%3E"), linear-gradient(120deg, #0B4A6F, #0E5C6E 60%, #1B7F6B); }
body.page .page-main:has(.coop-hero) { padding-top: 0; }
.coop-kicker { margin: 0 0 8px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.coop-hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; color: #fff; margin: 0; line-height: 1.02; }
.coop-lead { font-size: 19px; max-width: 46ch; margin: 14px 0 0; color: rgba(255, 255, 255, .9); }
.coop-benefits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.coop-benefits li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 14px 16px; }
.coop-benefits svg { grid-row: span 2; width: 26px; height: 26px; color: #fff; }
.coop-benefits strong { font-size: 16px; }
.coop-benefits span { font-size: 14px; color: rgba(255, 255, 255, .82); }
.coop-timeline { list-style: none; margin: 24px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: k; }
.coop-timeline li { position: relative; display: flex; align-items: center; gap: 10px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.coop-timeline li span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--rakos); color: #fff; font-family: var(--font-display); font-weight: 800; }
.coop-form { max-width: 860px; padding: 28px; gap: 6px; box-shadow: var(--shadow); border-radius: 16px; }
.coop-form-head h2 { font-size: 26px; margin: 0; }
.coop-form-head p { margin: 4px 0 14px; }
.coop-typ { margin-bottom: 8px !important; }
.coop-typ label { gap: 10px; min-height: 56px; font-size: 16px; }
.coop-typ svg { width: 22px; height: 22px; }
.coop-sec { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.coop-sec h3 { font-size: 19px; margin: 0 0 12px; }
.coop-sec fieldset + fieldset { margin-top: 10px; }
.coop-sec .fields { margin-bottom: 10px; }
.req { color: var(--danger); font-weight: 700; }
.gps-field { grid-column: 1 / -1; }
.gps-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gps-row input { flex: 1 1 120px; min-width: 0; font: inherit; font-weight: 400; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.btn.is-small { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.hours { display: grid; gap: 6px; max-width: 420px; margin-bottom: 10px; }
.hours[hidden] { display: none; }
.hours-row { display: grid; grid-template-columns: 2.4em 1fr auto 1fr; gap: 8px; align-items: center; }
.hours-row span:first-child { font-weight: 700; }
.hours-row input { font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--rakos); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid #F2A65A; outline-offset: 2px; }
.coop-form .check { margin-top: 14px; }
.coop-send { margin-top: 12px; }
.coop-contact { margin: 18px 0 0; color: var(--muted); }
@media (max-width: 760px) {
  .coop-hero { padding: 32px 16px 28px; }
  .coop-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coop-form { padding: 18px; }
}
.coop-form [hidden] { display: none !important; }

/* ---- Revíry u měst a stránky ryb ---- */
.mesta-sk { margin: 18px 0; scroll-margin-top: 16px; }
.mesta-sk h2 { font-size: 20px; margin-bottom: 8px; }
.mesta { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.mesta li { break-inside: avoid; padding: 4px 0; }
.mesta a { font-weight: 600; text-decoration: none; }
.mesta a:hover { text-decoration: underline; }
.mesta-dalsi { line-height: 2; max-width: none; }
.rv-mesta p { line-height: 2; }
.ft-ryba { color: inherit; text-decoration-color: var(--line-strong); }
.ft-ryba:hover { color: var(--primary); }
/* Atlas: ilustrace, jméno a latinsky. Ryby plavou doleva, takže text je
   zarovnaný vlevo pod hlavou ryby. */
.ryby-galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ryba-karta { display: flex; flex-direction: column; height: 100%; padding: 14px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.ryba-karta:hover { border-color: var(--primary); }
.ryba-karta:hover .ryba-jmeno { color: var(--primary); }
.ryba-karta:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ryba-obr { display: flex; align-items: center; justify-content: center; aspect-ratio: 2.6; margin-bottom: 10px; }
.ryba-obr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ryba-jmeno { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.ryba-latinsky { color: var(--muted); font-size: 15px; }
.ryba-hero .ryba-latinsky { margin: 2px 0 6px; font-size: 18px; }
.ryba-ilustrace { display: block; width: 100%; max-width: 900px; height: auto; margin: 18px auto 0; }
.atlas-fotky { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.atlas-fotky figure { margin: 0; }
.atlas-fotky img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.atlas-fotky figcaption { margin-top: 6px; font-size: 15px; }
.atlas-videa { margin: 0; padding-left: 18px; line-height: 1.8; }
@media (max-width: 520px) {
  .ryby-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ryba-karta { padding: 10px 10px 12px; }
  .ryba-jmeno { font-size: 16px; }
  .ryba-latinsky { font-size: 13px; }
}
.block .side-note { margin-top: 10px; }
.browse-links { margin: -6px 0 16px; font-weight: 600; }

/* ---- Atlas ryb ---- */
.atlas-skoky { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.atlas-skoky a { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; }
.atlas-skoky a:hover { border-color: var(--primary); }
.atlas-fakta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0 0 16px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.atlas-fakta div { background: var(--surface); padding: 10px 14px; }
.atlas-fakta dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.atlas-fakta dd { margin: 2px 0 0; font-weight: 600; }
.atlas-popis { font-size: 18px; line-height: 1.5; max-width: 68ch; margin: 0 0 16px; }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.atlas-karta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.atlas-karta h2 { font-size: 18px; margin-bottom: 8px; }
.atlas-karta p { margin: 0 0 6px; line-height: 1.5; }
.atlas-karta ul { margin: 0; padding-left: 18px; line-height: 1.5; }
.atlas-karta li + li { margin-top: 4px; }
.atlas-karta.is-znaky { border-left: 4px solid var(--rakos); }
.atlas-zajimavost { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius); background: var(--tint); line-height: 1.5; max-width: 68ch; }
.poznavacka-pozvanka { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.poznavacka-pozvanka p { margin: 0 0 12px; color: var(--muted); }

/* ---- Poznávačka ---- */
.kviz { max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.kviz h2 { font-size: 22px; margin: 14px 0 10px; }
.kviz-hlava { display: flex; justify-content: space-between; font-weight: 700; color: var(--muted); font-size: 15px; }
.kviz-prubeh { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.kviz-prubeh span { display: block; height: 100%; background: var(--rakos); transition: width .3s; }
.kviz-obr { margin: 4px 0 14px; padding: 12px; border-radius: var(--radius); background: var(--bg, #F2F5F4); display: flex; justify-content: center; }
.kviz-obr img { display: block; width: 100%; max-width: 560px; height: auto; max-height: 240px; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.kviz-znaky { margin: 0 0 12px; padding-left: 20px; font-size: 17px; line-height: 1.5; }
.kviz-napoveda { margin-bottom: 14px; }
.kviz-moznosti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kviz-moznost { font: inherit; font-weight: 700; font-size: 16px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.kviz-moznost:hover:not(:disabled) { border-color: var(--primary); }
.kviz-moznost:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.kviz-moznost.is-spravne { background: #E6F4EE; border-color: var(--rakos); color: #0E5A49; }
.kviz-moznost.is-spatne { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.kviz-moznost:disabled { cursor: default; }
.kviz-vysledek { margin-top: 14px; }
.kviz-vysledek p { margin: 0 0 8px; }
.kviz-ok { color: #0E5A49; font-weight: 800; font-size: 18px; }
.kviz-chyba { color: var(--danger); font-weight: 800; font-size: 18px; }
.kviz-konec { text-align: center; padding: 10px 0; }
.kviz-konec .hero-links { justify-content: center; }
.kviz-velke { font-family: var(--font-display); font-size: 64px; font-weight: 800; margin: 0; color: var(--primary); line-height: 1; }
@media (max-width: 520px) { .kviz-moznosti { grid-template-columns: 1fr; } .kviz { padding: 16px; } }

/* ---- Komunita ----
   Zeď je jeden sloupec do 680 px: fotka úlovku je hlavní věc a čte se
   shora dolů jako v aplikaci. „Petrův zdar“ a soutěže mají teplou zlatou
   (stejnou jako oblíbené), zbytek drží barvy webu. */
.kom-hero { max-width: 760px; }
.kom-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.kom-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.kom-nav a:hover { border-color: var(--primary); }
.kom-nav a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.kom { max-width: 680px; }
.kom.is-sloupce { max-width: none; }
.kom.is-sloupce > .kom-obsah { display: grid; grid-template-columns: minmax(0, 680px) 300px; gap: 24px; align-items: start; }
.kom-bok { position: sticky; top: calc(var(--head-h) + 16px); }
.kom-bok h2 { font-size: 17px; }
.kom-bok p { margin: 8px 0 0; font-size: 15px; }
.kom-bok-soutez { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; }
.kom-bok-soutez > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.kom-bok-soutez .muted { font-size: 14px; }
.kom-bok-pravidla { font-size: 14px; }
@media (max-width: 1000px) {
  .kom.is-sloupce { max-width: 680px; }
  .kom.is-sloupce > .kom-obsah { display: block; }
  .kom-bok { position: static; margin-top: 18px; }
}
.kom-box { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; color: inherit; text-decoration: none; }
.kom-box h2 { font-size: 19px; margin: 0 0 8px; }
.kom-box > p:first-child { margin-top: 0; }
.kom-h2 { font-size: 19px; margin: 20px 0 10px; }
.kom-prazdno { padding: 24px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.kom-prihlaseni { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; background: var(--tint); border-color: #CFE0E8; }
.kom-prihlaseni p { margin: 0; flex: 1 1 320px; }
.kom-hlaska { margin: 0; font-size: 14px; }
.kom-hlaska.is-chyba { color: var(--danger); }
.kom-hlaska.is-ok { color: var(--rakos); }
.kom-ok { color: var(--rakos); font-weight: 600; margin: 8px 0 0; }
.kom-avatar { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--primary); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.kom-avatar.is-velky { width: 56px; height: 56px; font-size: 22px; }
.kom-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.kom-chip svg { width: 14px; height: 14px; }
.kom-chip.is-soutez { background: #FFF8E5; border-color: #E8C060; color: #7A5300; }
.kom-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

/* Formuláře */
.kom-pole { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; position: relative; min-width: 0; }
.kom-pole small { font-weight: 400; }
.kom-pole input, .kom-pole select, .kom-pole textarea, .kom-form textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; width: 100%;
}
.kom-pole textarea, .kom-form textarea { resize: vertical; min-height: 64px; }
.kom-pole input:focus, .kom-pole select:focus, .kom-pole textarea:focus, .kom-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.kom-pole.is-inline { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 10px; }
.kom-pole.is-inline select { width: auto; }
.kom-check { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 10px 0; }
.kom-mrizka { display: grid; grid-template-columns: 1fr 120px 120px; gap: 10px; margin-bottom: 10px; }
.kom-mrizka .kom-pole:nth-child(4), .kom-mrizka .kom-pole:nth-child(5) { grid-column: span 3; }
.kom-tip { font-size: 14px; margin: 6px 0; }
.kom-tlacitka { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.is-danger { color: var(--danger); }
.btn.is-danger:hover { border-color: var(--danger); color: var(--danger); }
.kom-naseptavac { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.kom-naseptavac li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-weight: 500; }
.kom-naseptavac li[data-id]:hover { background: var(--tint); }

/* Sdílení úlovku */
.kom-sdilet-hlava { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.kom-sdilet-hlava p { margin: 0; color: var(--muted); }
.kom-sdilet > .kom-pole { margin-bottom: 10px; }
.kom-sdilet-pata { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kom-sdilet-pata .btn.is-primary { margin-left: auto; }
.kom-foto-btn { cursor: pointer; }
.kom-foto-nazev { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.kom-filtr { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 4px 0 12px; font-size: 15px; }
.kom-filtr label { display: flex; align-items: center; gap: 8px; }
.kom-filtr input[list] { font: inherit; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; width: 200px; }

/* Příspěvek */
.kom-feed { display: flex; flex-direction: column; gap: 14px; }
.kom-p { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kom-p-hlava { display: flex; align-items: center; gap: 10px; }
.kom-p-hlava > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.kom-p-hlava .muted { font-size: 14px; }
.kom-p-hlava .muted a { color: inherit; }
.kom-autor { font-weight: 700; color: var(--ink); text-decoration: none; }
.kom-autor:hover { text-decoration: underline; }
.kom-cas { text-decoration: none; }
.kom-menu { position: relative; }
.kom-menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.kom-menu summary::-webkit-details-marker { display: none; }
.kom-menu summary:hover { background: var(--bg); }
.kom-menu summary svg { width: 20px; height: 20px; }
.kom-menu > div { position: absolute; right: 0; top: 40px; z-index: 10; min-width: 190px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; display: flex; flex-direction: column; }
.kom-menu button { font: inherit; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.kom-menu button:hover { background: var(--tint); }
.kom-ulovek { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 12px 0 2px; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.kom-ulovek a { color: var(--ink); text-decoration: none; }
.kom-ulovek a:hover { text-decoration: underline; }
.kom-ulovek strong { color: var(--rakos); }
.kom-revir { margin: 0 0 4px; font-size: 15px; }
.kom-foto { display: block; margin: 10px -16px 0; background: var(--bg); }
.kom-foto img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.kom-text { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.kom-reakce-misto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.kom-reakce-misto:empty { display: none; }
span.kom-reakce-misto { display: inline-flex; margin: 0 0 0 4px; }
.kom-pilulka { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 3px 10px; border: 1.5px solid transparent; border-radius: 999px; background: var(--bg); font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.kom-pilulka b { font-size: 15px; font-weight: 400; }
.kom-pilulka:hover { color: var(--ink); border-color: var(--line-strong); }
.kom-pilulka.is-on { background: var(--tint); border-color: var(--primary); color: var(--primary); }
.kom-emoji { font-size: 18px; font-weight: 400; line-height: 1; }
.kom-reakce-vyber { position: relative; display: inline-flex; }
.kom-reakce-vyber summary { list-style: none; cursor: pointer; display: grid; place-items: center; min-width: 32px; height: 32px; margin: auto 0; border-radius: 50%; font-weight: 700; color: var(--muted); }
.kom-reakce-vyber summary::-webkit-details-marker { display: none; }
.kom-reakce-vyber summary:hover { background: var(--bg); color: var(--ink); }
.kom-reakce-vyber > div { position: absolute; left: 0; bottom: 40px; z-index: 10; display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow); }
.kom-reakce-vyber button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 22px; cursor: pointer; transition: transform .12s; }
.kom-reakce-vyber button:hover, .kom-reakce-vyber button:focus-visible { transform: scale(1.2); background: var(--tint); }
@media (prefers-reduced-motion: reduce) { .kom-reakce-vyber button { transition: none; } .kom-reakce-vyber button:hover { transform: none; } }
.kom-kdo-seznam { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.kom-kdo-seznam li { display: flex; align-items: center; gap: 10px; }
.kom-kdo-seznam .kom-avatar { position: relative; flex: none; }
.kom-kdo-seznam .kom-avatar b { position: absolute; right: -4px; bottom: -4px; font-size: 14px; font-weight: 400; line-height: 1; }
.kom-kdo-seznam .muted { margin-left: auto; }
.kom-p-pata { display: flex; gap: 6px; margin: 12px -6px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.kom-akce-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.kom-akce-btn:hover { background: var(--bg); color: var(--ink); }
.kom-akce-btn svg { width: 20px; height: 20px; }
.kom-akce-btn span:not(:empty) { color: var(--ink); }
.kom-akce-btn.is-on { color: #9A6A00; }
.kom-akce-btn.is-on svg { fill: #FFE7A3; }
.btn.is-soutez { margin-top: 10px; background: #FFF8E5; border-color: #E8C060; color: #7A5300; }
.btn.is-soutez svg { width: 18px; height: 18px; }
.kom-p-komentare { margin-top: 6px; }

/* Komentáře */
.kom-diskuze .d-h { margin-top: 4px; }
.kom-form { margin: 6px 0 12px; }
.kom-form-pata { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.kom-form-pata .kom-hlaska { margin-right: auto; }
.kom-prihlas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; }
.kom-vlakna, .kom-odpovedi { list-style: none; margin: 0; padding: 0; }
.kom-k { padding: 10px 0; border-top: 1px solid var(--line); }
.kom-vlakna > .kom-k:first-child { border-top: 0; }
.kom-k-hlava { font-size: 15px; }
.kom-k .kom-text { margin-top: 2px; }
.kom-odpovedi { margin-left: 18px; padding-left: 12px; border-left: 2px solid var(--line); }
.kom-k.is-odpoved { padding: 8px 0 4px; border-top: 0; }
.kom-akce { display: flex; flex-wrap: wrap; gap: 2px; margin: 4px -8px 0; }
.kom-mini { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.kom-mini:hover { background: var(--bg); color: var(--ink); }
.kom-mini svg { width: 16px; height: 16px; }
.kom-mini.is-on { color: #9A6A00; }
.kom-mini.is-on svg { fill: #FFE7A3; }
.kom-odpoved-form { margin: 6px 0 0 30px; }
.kom-revir-diskuze { max-width: 680px; }

/* Skupiny */
.kom-dva { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; }
.kom-dva .kom-box { margin: 0 0 14px; }
.kom-skupiny, .kom-seznam, .kom-clenove { list-style: none; margin: 0; padding: 0; }
.kom-skupina { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kom-skupina:first-child { border-top: 0; }
.kom-skupina a { color: var(--ink); }
.kom-skupina p { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--muted); }
.kom-skupina .btn { margin-left: auto; }
.kom-seznam li { padding: 6px 0; }
.kom-pozvat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kom-pozvat code { font-size: 17px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; background: var(--bg); border-radius: 6px; }
.kom-zalozky { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.kom-zalozky button { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.kom-zalozky button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.kom-clenove li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.kom-clenove li:first-child { border-top: 0; }
.kom-clenove a { font-weight: 600; color: var(--ink); }
.kom-clen-akce { margin-left: auto; display: flex; gap: 2px; }
.kom-rybar { display: flex; align-items: center; gap: 14px; }
.kom-rybar h2 { margin: 0; }
.kom-rybar p { margin: 2px 0 0; }

/* Žebříčky a soutěže */
.kom-zeb-druh h3 { font-size: 17px; margin: 14px 0 6px; }
.kom-poradi { list-style: none; margin: 0; padding: 0; }
.kom-poradi li { display: grid; grid-template-columns: 30px 48px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.kom-poradi li:first-child { border-top: 0; }
.kom-poradi img, .kom-poradi-bez { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--bg); display: block; }
.kom-poradi-misto { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--muted); text-align: right; }
.kom-poradi li.is-1 .kom-poradi-misto { color: #B07B00; }
.kom-poradi strong { font-family: var(--font-display); font-size: 18px; }
.kom-poradi a { color: var(--ink); font-weight: 600; }
.kom-soutez-karta { display: flex; gap: 14px; align-items: flex-start; }
.kom-soutez-karta > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.kom-soutez-karta .kom-chip { align-self: flex-start; margin-top: 6px; }
.kom-soutez-karta:hover { border-color: var(--primary); }
.kom-soutez-karta.is-bezi { border-color: #E8C060; background: linear-gradient(0deg, var(--surface), #FFFBEF); }
.kom-soutez-ikona { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFF8E5; color: #9A6A00; }
.kom-soutez-ikona svg { width: 24px; height: 24px; }
.kom-vitez { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.kom-vitez svg { width: 22px; height: 22px; color: #9A6A00; }
.cm-sdilet { margin: 14px 0 0; }

@media (max-width: 720px) {
  .kom-mrizka { grid-template-columns: 1fr 1fr; }
  .kom-mrizka .kom-pole:first-child { grid-column: span 2; }
  .kom-mrizka .kom-pole:nth-child(4), .kom-mrizka .kom-pole:nth-child(5) { grid-column: span 2; }
  .kom-dva { grid-template-columns: 1fr; }
  .kom-foto { margin: 10px -16px 0; }
  .kom-sdilet-pata .btn.is-primary { margin-left: 0; width: 100%; }
}

/* Přihlášení: Google, Apple, e-mail, QR z aplikace */
.ucet-login { display: flex; flex-direction: column; gap: 10px; }
.ucet-login .modal-sub { margin: 0 0 4px; }
.ucet-btn { width: 100%; justify-content: center; gap: 10px; min-height: 46px; }
.ucet-btn svg { flex: none; }
.ucet-btn.is-apple { background: #000; border-color: #000; color: #fff; }
.ucet-btn.is-apple:hover { background: #222; color: #fff; }
.ucet-email { display: flex; flex-direction: column; gap: 8px; }
.ucet-email input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; width: 100%; }
.ucet-email input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.ucet-email .btn { width: 100%; }
.ucet-kod { display: flex; flex-direction: column; gap: 6px; }
.ucet-kod[hidden] { display: none; }
.ucet-kod input { letter-spacing: .3em; font-size: 20px; text-align: center; }
.ucet-nebo { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; color: var(--muted); font-size: 14px; }
.ucet-nebo::before, .ucet-nebo::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.ucet-app { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.ucet-app p { margin: 0 0 8px; }
.ucet-app .btn { width: 100%; }

/* Komunita: upozornění, uvítání, odznaky, rok u vody, vítěz na zdi */
.kom-nav a { position: relative; }
.kom-pocet { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.kom-pocet[hidden] { display: none; }
.kom-u-sekce { margin: 20px 0 8px; font-size: 17px; }
.kom-u-sekce:first-child { margin-top: 4px; }
.kom-upozorneni { list-style: none; padding: 0; overflow: hidden; }
.kom-upozorneni li + li { border-top: 1px solid var(--line); }
.kom-upozorneni a, .kom-upozorneni li > div { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.kom-upozorneni a:hover { background: var(--tint); }
.kom-upozorneni li.is-nove { background: #EEF7F3; }
.kom-upozorneni q { color: var(--muted); }
.kom-avatar.is-stredni { position: relative; width: 48px; height: 48px; font-size: 17px; }
.kom-avatar.is-system { font-family: inherit; font-size: 22px; background: var(--bg); }
.kom-u-znak { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--surface); font-size: 13px; font-weight: 400; }
.kom-u-telo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.4; }
.kom-u-cas { font-size: 13px; color: var(--muted); }
.is-nove .kom-u-cas { color: var(--rakos); font-weight: 700; }
.kom-u-tecka { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rakos); }
.kom-u-prazdno { text-align: center; padding: 48px 16px; }
.kom-u-prazdno > span { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--tint); font-size: 36px; }
.kom-u-prazdno h2 { margin: 14px 0 6px; font-size: 20px; }
.kom-vyhlaseni { display: flex; gap: 12px; align-items: center; background: #FFF8E5; border-color: #E8C060; }
.kom-vyhlaseni > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.kom-vyhlaseni img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex: none; }
.kom-vitez-znak { display: inline-grid; place-items: center; margin-left: 4px; color: #9A6A00; vertical-align: -3px; }
.kom-vitez-znak svg { width: 16px; height: 16px; }
.kom-uvitani { max-width: 520px; width: calc(100% - 32px); border: 0; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.kom-uvitani::backdrop { background: rgba(10, 30, 40, .45); }
.kom-uvitani h2 { margin: 0 0 6px; font-size: 22px; }
.kom-uvitani h3 { font-size: 16px; margin: 16px 0 6px; }
.kom-uvitani-skupiny { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.kom-tlacitka { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kom-odznaky { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.kom-odznaky li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #E8C060; background: #FFFBEF; border-radius: 10px; }
.kom-odznaky li > span:last-child { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; }
.kom-odznak-ikona { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #FFF1C9; color: #9A6A00; flex: none; }
.kom-odznak-ikona svg { width: 18px; height: 18px; }
.kom-cisla { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; margin: 0 0 12px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kom-cisla div { background: var(--surface); padding: 8px 12px; }
.kom-cisla dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.kom-cisla dd { margin: 0; font-size: 22px; font-weight: 800; }
.kom-rekordy { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.kom-rekordy a { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; padding: 4px 0; }
.kom-rekordy img, .kom-rekordy .kom-poradi-bez { width: 44px; height: 44px; }
.kom-cile { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.kom-cile li { display: grid; grid-template-columns: 1fr 120px auto; gap: 10px; align-items: center; font-size: 14px; }
.kom-cile progress { width: 100%; accent-color: var(--primary); }
.kom-rok-hlava { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kom-rok-hlava select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-strong); }
.kom-mesice { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 90px; margin: 10px 0; }
.kom-mesice span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.kom-mesice i { display: block; width: 100%; max-width: 22px; height: calc(var(--v) * 64px); min-height: 2px; background: var(--primary); border-radius: 4px 4px 0 0; }
.kom-mesice b { font-size: 11px; font-weight: 600; color: var(--muted); }
.kom-smazat summary { cursor: pointer; color: var(--danger); font-weight: 600; margin-top: 8px; }
.kom-rybar-info { flex: 1; min-width: 0; }
@media (max-width: 520px) {
  .kom-cile li { grid-template-columns: 1fr auto; }
  .kom-cile progress { grid-column: 1 / -1; grid-row: 2; }
}
.kom-rybar { align-items: flex-start; }

/* Dnes na revíru: souhrn hned pod hlavičkou revíru. Odpovídá na to, kvůli
   čemu sem většina lidí přijde (smím dnes lovit, kdy a co), podrobnosti
   jsou v sekci „Co dnes smím lovit“. Barva podle stavu dne. */
.rv-today {
  --rt: #12603F; --rt-bg: #E3F4EC;
  display: grid; grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto; align-items: center; gap: 14px 28px;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--rt);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 16px;
}
.rv-today.is-warn { --rt: #9A3D00; --rt-bg: #FFF0DF; }
.rv-today.is-ban { --rt: #A11D16; --rt-bg: #FCE4E2; }
.rt-verdict { display: flex; align-items: center; gap: 12px; }
.rt-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rt-bg); color: var(--rt); }
.rv-today .rt-ico svg { display: block; width: 24px; height: 24px; margin: 0; flex: none; }
.rt-verdict strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--rt); }
.rt-verdict > div > span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.rt-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 24px; margin: 0; }
.rt-facts div { min-width: 0; }
.rt-facts dt { font-size: 14px; color: var(--muted); }
.rt-facts dd { margin: 2px 0 0; font-weight: 600; line-height: 1.35; }
.rt-cas { font-family: var(--font-display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rt-info { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--rt-bg); font-size: 15px; }
.rt-info strong { color: var(--rt); }
.rt-info p { margin: 2px 0 0; max-width: 80ch; }
.rt-more { justify-self: end; white-space: nowrap; font-weight: 700; color: var(--primary); }
@media (max-width: 1000px) {
  .rv-today { grid-template-columns: 1fr; gap: 12px; }
  .rt-more { justify-self: start; order: 5; }
}
@media (max-width: 820px) {
  .rv-hero { height: 200px; }
  .rv-head .metrics { display: none; }
  .rv-today { margin: 4px 0 0; padding: 14px 16px; }
  .rt-verdict strong { font-size: 22px; }
  .rt-facts { grid-template-columns: 1fr 1fr; }
}


/* Přihlášení na počítači: QR kód z aplikace vlevo, e-mail (Google, Apple)
   vpravo. Na telefonu zůstává jeden sloupec s tlačítkem pro QR. */
.modal-card.is-wide { max-width: 760px; }
.ucet-login.s-qr { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.ucet-qr-panel { padding: 16px; border-radius: 12px; background: var(--tint); text-align: center; }
.ucet-qr-panel h3 { margin: 0 0 6px; font-size: 18px; }
.ucet-qr-panel > p { margin: 0 0 12px; font-size: 14px; color: var(--muted); text-align: left; }
.ucet-hlavni { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ucet-hlavni .modal-sub { margin: 0 0 4px; }
.qr-login.is-vlozeny { gap: 8px; }
.qr-login.is-vlozeny .qr-box { width: 200px; height: 200px; margin: 0 auto; }
.qr-kde { margin: 0; font-size: 13px; color: var(--muted); }
.qr-login.is-vlozeny .qr-status { margin: 0; font-size: 13px; }
.ucet-email-lbl { margin: 4px 0 2px; font-weight: 600; font-size: 15px; }

/* Komunita: přátelé a úlovky od přátel. */
.kom-pratele { display: grid; gap: 16px; max-width: 760px; }
.kom-pratele h2 { font-size: 20px; margin: 0 0 10px; }
.kom-pratele-seznam { list-style: none; margin: 0; padding: 0; }
.kom-pratele-seznam li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.kom-pratele-seznam li:first-child { border-top: 0; }
.kom-pritel { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); text-decoration: none; min-width: 0; }
.kom-pritel-akce { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.kom-pritel-akce .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.kom-zasilky { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kom-zasilka { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.kom-zasilka.is-nove { border-color: var(--rakos); box-shadow: 0 0 0 1px var(--rakos); }
.kom-zasilka-hlava { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
.kom-zasilka-hlava > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.kom-zasilka img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; background: var(--bg); }
.kom-zasilka p { margin: 8px 12px; }
.kom-zasilka-druh { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--primary); }
.kom-pridat-pritele { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 6px; }
.kom-pridat-pritele .kom-pole { flex: 1; min-width: 200px; }
.kom-rybar-akce { display: flex; gap: 8px; flex-wrap: wrap; }
