/* NAPAJEDLÁCI.CZ 2.0 – vlastní styly (mimo Tabler) */

@import url("https://rsms.me/inter/inter.css");

/* =====================================================================
   BAREVNÉ SCHÉMA – odvozeno z původního schématu Březolupy – upravit podle loga Napajedláci.cz (modrá/žlutá)
   (modrá krokev #004b6c, zelené lipové listy #218d51)
   ===================================================================== */
:root,
[data-bs-theme="light"] {
    --tblr-primary: #00567c;            /* erbovní modrá (mírně zesvětlená pro UI) */
    --tblr-primary-rgb: 0, 86, 124;
    --tblr-primary-darken: #004b6c;
    --tblr-link-color: #00567c;
    --tblr-link-color-rgb: 0, 86, 124;
    --tblr-link-hover-color: #004b6c;
    --tblr-link-hover-color-rgb: 0, 75, 108;
    --tblr-green: #218d51;              /* erbovní zelená */
    --tblr-green-rgb: 33, 141, 81;
}
[data-bs-theme="dark"] {
    --tblr-primary: #3d9cc9;            /* světlejší modrá kvůli kontrastu na tmavém pozadí */
    --tblr-primary-rgb: 61, 156, 201;
    --tblr-link-color: #3d9cc9;
    --tblr-link-color-rgb: 61, 156, 201;
    --tblr-link-hover-color: #63b3d8;
    --tblr-link-hover-color-rgb: 99, 179, 216;
    --tblr-green: #3aa96b;
    --tblr-green-rgb: 58, 169, 107;
}

/* Navigační tlačítka v hlavičce – jemné pozadí, ať nesplývají s pozadím */
.btn-nav {
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    color: var(--tblr-secondary, #626976);
    border: 1px solid var(--tblr-border-color, #e6e7e9);
}
.btn-nav:hover,
.btn-nav:focus-visible {
    background: var(--tblr-bg-surface, #fff);
    color: var(--tblr-body-color, #1a2234);
    border-color: var(--tblr-primary, #066fd1);
}
/* Hlavní navigace na jednom řádku (desktop od md výš); mobil = hamburger menu */
@media (min-width: 768px) {
    .navbar .btn-list {
        flex-wrap: nowrap;
        gap: .35rem;
        overflow-x: auto;
        scrollbar-width: none;          /* Firefox – skrýt scrollbar */
    }
    .navbar .btn-list::-webkit-scrollbar { display: none; }
    .navbar .btn-list .btn {
        white-space: nowrap;
        padding: .5rem .85rem;
        font-size: .95rem;
    }
    .navbar .btn-list .btn .icon { width: 1.25rem; height: 1.25rem; margin-right: .35rem; }
}
/* Užší desktop (md–lg): o kousek kompaktnější, ať se vejdou na jeden řádek */
@media (min-width: 768px) and (max-width: 1199px) {
    .navbar .btn-list .btn { padding: .42rem .6rem; font-size: .85rem; }
    .navbar .btn-list .btn .icon { width: 1.1rem; height: 1.1rem; margin-right: .3rem; }
}

/* Klikací karty veličin → graf */
.metric-link {
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.metric-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .10);
    border-color: var(--tblr-blue);
}

/* Barevný odznak „Graf" – pozadí dané třídami bg-blue-lt/text-blue, zde jen hover */
.graf-tag {
    font-weight: 600;
    transition: background-color .12s ease, color .12s ease;
}
a.graf-tag { text-decoration: none; }
a.graf-tag:hover,
.metric-link:hover .graf-tag {
    background-color: var(--tblr-blue) !important;
    color: #fff !important;
}

/* ── Přehled (heatmapa) ─────────────────────────────────────────── */
/* tabulka je vložená napevno – do výšky roluje celá stránka, jen na úzkém mobilu vodorovný scroll */
.prehled-wrap { overflow-x: auto; }
.prehled-heat { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.prehled-heat th,
.prehled-heat td {
    text-align: center;
    padding: .25rem .4rem;
    white-space: nowrap;
    font-size: .82rem;
}
.prehled-heat thead th {
    position: sticky; top: 0; z-index: 3;
    background: var(--tblr-bg-surface, #fff);
    font-weight: 600;
}
.prehled-heat .ph-day,
.prehled-heat .ph-corner {
    position: sticky; left: 0; z-index: 2;
    background: var(--tblr-bg-surface, #fff);
    font-weight: 600;
}
.prehled-heat .ph-corner { z-index: 4; }
.prehled-heat .ph-cell { color: #1a2330; font-weight: 600; }
.prehled-heat .ph-na { background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(130,130,130,.08) 4px, rgba(130,130,130,.08) 8px); }
.prehled-heat .ph-sum { background: var(--tblr-bg-surface-secondary, #f6f8fb); }
.prehled-heat .ph-today { outline: 2px solid var(--tblr-dark, #1f2937); outline-offset: -2px; }
.prehled-heat .ph-ext { box-shadow: inset 0 0 0 2px rgba(214,57,57,.9); }
/* klikací buňka → graf (anchor vyplní celou buňku) */
.prehled-heat .ph-link {
    display: block;
    margin: -.25rem -.4rem;
    padding: .25rem .4rem;
    color: inherit;
    text-decoration: none;
}
.prehled-heat .ph-link:hover { text-decoration: underline; filter: brightness(.94); }
.prehled-heat .ph-main { display: block; font-weight: 600; line-height: 1.05; }
.prehled-heat .ph-sub  { display: block; font-size: .7rem; opacity: .72; line-height: 1; margin-top: 1px; font-weight: 500; }
/* zvýraznění celého řádku při najetí myší – ať se v tabulce neztratíš */
.prehled-heat tbody tr:hover td,
.prehled-heat tbody tr:hover th {
    box-shadow: inset 0 2px 0 rgba(31, 41, 55, .85), inset 0 -2px 0 rgba(31, 41, 55, .85);
}
.prehled-heat tbody tr:hover .ph-day {
    background: var(--tblr-primary, #066fd1) !important;
    color: #fff;
}
/* souhrnná patička (měsíc) – oddělit od dat */
.prehled-heat tfoot td,
.prehled-heat tfoot th { border-top: 2px solid var(--tblr-border-color, #d8dce1); font-weight: 600; }
.prehled-heat tfoot .ph-day { font-size: .78rem; }
.prehled-heat .ph-foot-cell { background: var(--tblr-bg-surface-secondary, #f6f8fb); color: #1a2330; }

/* Rekordy – klikací hodnota vede na graf */
.rec-link { color: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rec-link:hover { text-decoration: underline; }
.rec-ico { opacity: .3; font-size: .85em; vertical-align: baseline; }
.rec-link:hover .rec-ico { opacity: 1; color: var(--tblr-primary, #066fd1); }

/* ── Archiv (datová tabulka) – roluje celá stránka, jen na mobilu vodorovný posuv ── */
.archiv-wrap { overflow-x: auto; }
.archiv-table { font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 0; }
.archiv-table thead th { position: sticky; top: 0; z-index: 3; background: var(--tblr-bg-surface, #fff); }
.archiv-table th[data-sort] { cursor: pointer; user-select: none; }
.archiv-table th[data-sort]:hover { background: var(--tblr-bg-surface-secondary, #f6f8fb); }
.archiv-table .ar-time { position: sticky; left: 0; z-index: 2; background: var(--tblr-bg-surface, #fff); font-weight: 600; }
.archiv-table thead .ar-time { z-index: 4; }
.archiv-table tbody tr:hover td, .archiv-table tbody tr:hover .ar-time { background: var(--tblr-bg-surface-secondary, #f6f8fb); }
.ar-hidden { display: none !important; }

/* ── Stav stanice + odpočet obnovení (meteo_station_header) ─────── */
.wx-fresh { font-size: .95rem; }
.wx-fresh-pill {
    font-size: .95rem; font-weight: 600;
    padding: .35rem .75rem; border-radius: 999px;
}
.wx-fresh-pill .status-dot-lg { width: .6rem; height: .6rem; }
.wx-reload {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; cursor: pointer; user-select: none;
}
.wx-reload__ring { width: 34px; height: 34px; transform: rotate(-90deg); }
.wx-reload__bg { fill: none; stroke: var(--tblr-border-color, #d8dce1); stroke-width: 3; }
.wx-reload__fg {
    fill: none; stroke: var(--tblr-primary, #066fd1); stroke-width: 3; stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
.wx-reload__num { position: absolute; font-size: .72rem; font-weight: 700; color: var(--tblr-secondary); }
.wx-reload:hover { filter: brightness(.95); }
.wx-reload:hover .wx-reload__num { color: var(--tblr-primary, #066fd1); }

/* ── Výstrahy ČHMÚ (chmi_banner_html) ───────────────────────────── */
.chmi-alerts { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.chmi-alert {
    display: flex;
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--chmi-tint, var(--tblr-bg-surface));
}
.chmi-alert__accent { flex: 0 0 5px; background: var(--chmi-color, var(--tblr-orange)); }
.chmi-alert__body { flex: 1 1 auto; display: flex; gap: .65rem; padding: .55rem .8rem; align-items: center; }
.chmi-alert__icon {
    flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--chmi-color, var(--tblr-orange)); color: #fff;
    font-size: 1.2rem; line-height: 1;
}
.chmi-alert__title { font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.chmi-alert__badge {
    font-size: .72rem; font-weight: 600; white-space: nowrap;
    padding: .1rem .5rem; border-radius: 999px;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--chmi-color, var(--tblr-orange));
    color: var(--chmi-color, var(--tblr-orange));
}
/* Platnost – srozumitelně a čitelně hned vedle názvu */
.chmi-alert__when {
    display: inline-flex; align-items: center; gap: .25rem;
    font-size: .9rem; font-weight: 500; color: var(--tblr-secondary);
}
.chmi-alert__desc { font-size: .95rem; line-height: 1.35; margin-top: .1rem; }
/* Nadpis bloku výstrah */
.chmi-alerts__head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: .15rem;
}
.chmi-alerts__head-title { font-size: 1.05rem; font-weight: 700; }
.chmi-alerts__head-link { font-size: .8rem; color: var(--tblr-secondary); text-decoration: none; white-space: nowrap; }
.chmi-alerts__head-link:hover { text-decoration: underline; }
/* Rozbalení dalších (budoucích) výstrah */
.chmi-more { margin-top: .15rem; }
.chmi-more > summary { list-style: none; }
.chmi-more > summary::-webkit-details-marker { display: none; }
.chmi-more__btn {
    display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
    font-size: .85rem; font-weight: 600; color: var(--tblr-secondary);
    padding: .35rem .7rem; border-radius: 999px;
    border: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface);
    transition: background .15s ease, color .15s ease;
}
.chmi-more__btn:hover { color: var(--tblr-body-color); background: var(--tblr-bg-surface-secondary); }
.chmi-more__chev { transition: transform .2s ease; }
.chmi-more[open] .chmi-more__chev { transform: rotate(180deg); }
.chmi-more[open] .chmi-more__btn span::after { content: ' – skrýt'; opacity: .6; }
.chmi-more__body { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }

/* ── Archiv webkamery (prohlížeč snímků) ───────────────────────────── */
/* Menší náhled na střed – snímek si jde zvětšit přes zoom */
.wca { max-width: 880px; margin-left: auto; margin-right: auto; }
.wca__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0b0d;
    overflow: hidden;
}
.wca__img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    background: #0b0b0d;
    cursor: zoom-in;
}
.wca__pos {
    position: absolute; right: .6rem; top: .6rem;
    background: rgba(0, 0, 0, .5); color: #fff;
    font-size: .8rem; font-variant-numeric: tabular-nums;
    padding: .15rem .5rem; border-radius: 999px; pointer-events: none;
}
.wca__zoom {
    position: absolute; left: .6rem; top: .6rem;
    width: 2rem; height: 2rem; border-radius: 8px;
    background: rgba(0, 0, 0, .45); color: #fff;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.wca__empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem; color: #9aa0a6; text-align: center; padding: 1rem;
}
.wca__empty .ti { font-size: 2.6rem; }
.wca__spin {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.wca__spin[hidden] { display: none; }

/* Poloprůhledná ovládací lišta přes spodek obrázku (jako u videopřehrávače) */
.wca__bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .55rem .7rem .5rem;
    display: flex; flex-direction: column; gap: .35rem;
    background: linear-gradient(to top, rgba(18, 20, 26, .82) 0%, rgba(18, 20, 26, .55) 55%, rgba(18, 20, 26, 0) 100%);
}
.wca__range {
    width: 100%; margin: 0; height: 1.25rem; cursor: pointer;
    accent-color: var(--tblr-primary, #066fd1);
}
/* Vše na jednom řádku: výběr dne (vlevo) · přehrávání (uprostřed) · čas (vpravo) */
.wca__barrow { display: flex; align-items: center; gap: .5rem; flex-wrap: nowrap; }
.wca__days-row { display: flex; align-items: center; gap: .35rem; flex: 0 1 auto; min-width: 0; }
.wca__days {
    flex: 0 1 200px; min-width: 0; height: 2.2rem;
    border: 0; border-radius: 8px; padding: .3rem .55rem;
    font-size: .9rem; font-weight: 500; color: #1a2234;
    background: rgba(255, 255, 255, .92); cursor: pointer;
}
.wca__time {
    color: #fff; font-weight: 600; font-variant-numeric: tabular-nums;
    font-size: 1rem; flex: 0 0 auto; white-space: nowrap;
}
.wca__btns { display: flex; align-items: center; gap: .3rem; margin: 0 auto; flex: 0 0 auto; }
.wca__btn {
    border: 0; background: rgba(255, 255, 255, .16); color: #fff;
    width: 2.2rem; height: 2.2rem; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.05rem; transition: background .15s ease;
}
.wca__btn:hover, .wca__btn:focus-visible { background: rgba(255, 255, 255, .32); outline: none; }
.wca__btn--play {
    width: 2.6rem; height: 2.6rem; font-size: 1.25rem;
    background: var(--tblr-primary, #066fd1);
}
.wca__btn--play:hover { filter: brightness(1.12); background: var(--tblr-primary, #066fd1); }
@media (max-width: 480px) {
    .wca__time { font-size: .9rem; min-width: 3.6rem; }
    .wca__spacer { display: none; }
    .wca__btn { width: 2rem; height: 2rem; font-size: .95rem; }
    .wca__btn--play { width: 2.35rem; height: 2.35rem; }
}

/* Animovaný (timelapse) snímek na dashboardu – jemný náznak přehrávání */
.dash-cam-wrap { position: relative; }
.dash-cam-badge {
    position: absolute; left: .5rem; bottom: .5rem;
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(0, 0, 0, .55); color: #fff;
    font-size: .72rem; font-weight: 600;
    padding: .12rem .5rem; border-radius: 999px; pointer-events: none;
}
.dash-cam-badge[hidden] { display: none; }   /* respektovat atribut hidden (jen při animaci) */
.dash-cam-badge .dot {
    width: .5rem; height: .5rem; border-radius: 50%; background: var(--tblr-red, #d63939);
    animation: dashCamPulse 1.4s ease-in-out infinite;
}
@keyframes dashCamPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Chytrá upozornění v přehledovém banneru (meteo_overview_banner) ── */
.wx-tip {
    display: flex; gap: .85rem; align-items: flex-start; height: 100%;
    padding: .85rem 1rem; border-radius: 12px;
    background: var(--wx-tint, var(--tblr-bg-surface-secondary));
}
.wx-tip__icon { flex: 0 0 auto; margin-top: .1rem; font-size: 1.5rem; line-height: 1; color: var(--wx-color); }
.wx-tip__title { font-weight: 700; line-height: 1.2; color: var(--wx-color); }
.wx-tip__text { font-size: .875rem; line-height: 1.4; }

/* Velké první písmeno verdiktu „Jak bylo" i když začíná obarveným <span> */
.jb-cap::first-letter { text-transform: uppercase; }

/* ── Mobilní aplikace – promo banner (meteo_app_banner) ─────────────── */
.app-promo {
    position: relative; overflow: hidden; border: 0;
    background: linear-gradient(120deg, #003a54 0%, #00567c 55%, #218d51 100%);
    color: #fff;
}
.app-promo__bgicon {
    position: absolute; right: -1.5rem; bottom: -2.5rem;
    font-size: 13rem; line-height: 1; color: rgba(255, 255, 255, .07);
    pointer-events: none;
}
.app-promo .card-body { padding: .9rem 1.25rem; position: relative; }
.app-promo__grid { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.app-promo__icon {
    width: 58px; height: 58px; flex: 0 0 auto;
    background: #fff; border-radius: 14px; padding: 7px;
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .22);
}
.app-promo__info { flex: 1 1 18rem; min-width: 0; }
.app-promo__kicker { font-size: .68rem; letter-spacing: .09em; color: rgba(255, 255, 255, .75); }
.app-promo__title { font-size: 1.2rem; font-weight: 700; line-height: 1.2; margin: .1rem 0 .2rem; color: #fff; }
.app-promo__beta {
    display: inline-block; vertical-align: .25em; margin-left: .15rem;
    font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .14rem .5rem; border-radius: 999px;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); color: #fff;
    cursor: help;
}
.app-promo__text { color: rgba(255, 255, 255, .88); max-width: 44rem; margin-bottom: .4rem; font-size: .95rem; }
.app-promo__store { display: inline-block; line-height: 0; margin-left: -10px; /* badge má vlastní okraje */ }
.app-promo__store img { transition: transform .12s ease, filter .12s ease; }
.app-promo__store:hover img { transform: scale(1.04); filter: brightness(1.1); }
/* QR kód – bílý rámeček, ať funguje i v tmavém režimu */
.app-promo__qrbox { flex: 0 0 auto; flex-direction: column; align-items: center; gap: .35rem; }
.app-promo__qr { background: #fff; border-radius: 12px; padding: .45rem; line-height: 0; box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .22); }
.app-promo__qr img { display: block; width: 96px; height: 96px; }
.app-promo__qr-hint { font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .85); }


/* ══════════════════════════════════════════════════════════════════════
   ČITELNOST (větší písmo) + RESPONZIVITA (boxy na tabletech/landscape)
   Přidáno 2026-06: zvětšení základního písma pro starší uživatele,
   vyšší kontrast červené v tmavém režimu a omezení roztažení boxů na
   širších, ale ne desktopových displejích (tablet, mobil na šířku).
   ══════════════════════════════════════════════════════════════════════ */

/* ── Větší a čitelnější písmo napříč webem ──────────────────────────── */
body {
    --tblr-body-font-size: 1rem;          /* Tabler default 0.875rem → 16px */
    font-size: 1rem;
    line-height: 1.5;
}
/* Drobné popisky (subheadery karet, „small") byly nejmenší – zvětšit. */
.subheader { font-size: .8rem; letter-spacing: .03em; }
small, .small { font-size: .9rem; }
.text-secondary.small, .small.text-secondary { font-size: .9rem; }
.wx-tip__text { font-size: 1rem; line-height: 1.45; }
.chmi-alert__desc { font-size: 1rem; line-height: 1.4; }
.chmi-alert__when { font-size: .95rem; }
.list-group-item { font-size: 1rem; }
/* Hodnoty ve skupinových kartách o stupínek větší kvůli čitelnosti. */
.list-group-item .fw-medium { font-size: 1.05rem; }

/* ── Vyšší kontrast červené (a oranžové) v TMAVÉM režimu ─────────────
   #d63939 na tmavém podkladu je špatně čitelná → světlejší odstíny.    */
[data-bs-theme="dark"] {
    --tblr-red: #ff7a7a;
    --tblr-red-rgb: 255, 122, 122;
    --tblr-danger: #ff7a7a;
    --tblr-orange: #ffa94d;
    --tblr-orange-rgb: 255, 169, 77;
}
[data-bs-theme="dark"] .text-red,
[data-bs-theme="dark"] .text-danger { color: #ff8f8f !important; }
[data-bs-theme="dark"] .text-orange { color: #ffb866 !important; }
/* Min/max šipky a tendence v kartách – ať červená „nahoru" svítí. */
[data-bs-theme="dark"] .border-top .text-red,
[data-bs-theme="dark"] .ti-arrow-up-right.text-red { color: #ff9b9b !important; }
/* Stavový odznak „Neaktuální" (status-red) v tmavém režimu čitelněji. */
[data-bs-theme="dark"] .status-red { color: #ff9b9b; }
/* Výstrahy ČHMÚ – text popisu vždy v barvě těla, ne v barvě výstrahy. */
[data-bs-theme="dark"] .chmi-alert__desc { color: var(--tblr-body-color); }

/* ── Responzivita ────────────────────────────────────────────────────
   POZN.: Šířku „boxed" layoutu NEpřepisujeme – necháváme výchozí Tabler
   (1320 px), jinak web na širokém monitoru zbytečně zúží obsah a po
   stranách vzniknou tmavé pruhy. */
/* Velmi široký landscape telefon (max 991 px na šířku, nízká výška):
   omezit výšku obrázku webkamery, ať box není přehnaně vysoký/roztažený. */
@media (max-width: 991.98px) and (orientation: landscape) {
    #dash-cam { aspect-ratio: 16 / 9; max-height: 46vh; object-fit: cover; }
}


/* ══════════════════════════════════════════════════════════════════════
   MOBILNÍ UX (přidáno 2026-07)
   1) Hamburger + offcanvas menu vysouvací zprava
   2) Bottom-sheet výběr veličiny na stránce Grafy
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hamburger tlačítko v hlavičce ─────────────────────────────────── */
.mobile-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.6rem; height: 2.6rem;
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 10px;
    background: var(--tblr-bg-surface, #fff);
    color: var(--tblr-body-color, #1a2234);
    font-size: 1.35rem; line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    border-color: var(--tblr-primary, #066fd1);
    outline: none;
}

/* ── Offcanvas menu (mobil) ────────────────────────────────────────── */
.mobile-menu {
    --bs-offcanvas-width: min(20rem, 86vw);
    --tblr-offcanvas-width: min(20rem, 86vw);
    width: min(20rem, 86vw);
}
.mobile-menu .offcanvas-header {
    border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
    padding: .9rem 1rem;
}
.mobile-menu .offcanvas-body {
    display: flex; flex-direction: column;
    padding: .75rem .75rem 1rem;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: .15rem; }
.mobile-menu__item {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem .75rem;
    border-radius: 10px;
    font-size: 1.05rem; font-weight: 500;
    color: var(--tblr-body-color, #1a2234);
    text-decoration: none;
    transition: background .12s ease;
}
.mobile-menu__item:hover,
.mobile-menu__item:focus-visible {
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    color: var(--tblr-body-color, #1a2234);
    outline: none;
}
.mobile-menu__icon {
    flex: 0 0 auto;
    width: 2.1rem; height: 2.1rem; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    color: var(--tblr-secondary, #626976);
}
.mobile-menu__label { flex: 1 1 auto; min-width: 0; }
.mobile-menu__chev { flex: 0 0 auto; font-size: .95rem; opacity: .35; }
/* Aktivní stránka – zvýraznění primární barvou */
.mobile-menu__item.is-active {
    background: rgba(6, 111, 209, .08);
    color: var(--tblr-primary, #066fd1);
    font-weight: 600;
}
.mobile-menu__item.is-active .mobile-menu__icon {
    background: var(--tblr-primary, #066fd1);
    color: #fff;
}
.mobile-menu__item.is-active .mobile-menu__chev { opacity: .8; color: var(--tblr-primary, #066fd1); }
.mobile-menu__footer {
    margin-top: auto; padding-top: 1rem;
    border-top: 1px solid var(--tblr-border-color, #e6e7e9);
}
[data-bs-theme="dark"] .mobile-menu__item.is-active { background: rgba(61, 156, 201, .16); }

/* ── Trigger bottom-sheetu (vypadá jako select) ────────────────────── */
.sheet-trigger {
    cursor: pointer;
    text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding-right: 2.25rem;   /* místo pro šipku selectu */
}
/* Nativní select vylepšený sheet-select.js – na mobilu skrýt (místo něj trigger) */
@media (max-width: 767.98px) {
    select.sheet-native { display: none !important; }
}

/* ── Bottom-sheet výběr veličiny ───────────────────────────────────── */
.sheet-picker {
    --bs-offcanvas-height: min(78vh, 640px);
    --tblr-offcanvas-height: min(78vh, 640px);
    height: auto !important;      /* Tabler .offcanvas-bottom má vyšší specificitu */
    max-height: min(78vh, 640px) !important;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.sheet-picker__grip {
    width: 2.6rem; height: .3rem; border-radius: 999px;
    background: var(--tblr-border-color, #d8dce1);
    margin: .55rem auto .15rem;
}
.sheet-picker .offcanvas-title { font-size: 1.1rem; font-weight: 700; }
.sheet-picker .offcanvas-body {
    overscroll-behavior: contain;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.sheet-picker__group {
    display: flex; align-items: center; gap: .45rem;
    font-size: .74rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--tblr-secondary, #626976);
    padding: .9rem .25rem .35rem;
}
.sheet-picker__group .ti { font-size: .95rem; }
.sheet-picker__group:first-child { padding-top: .25rem; }
.sheet-picker__item {
    display: flex; align-items: center; gap: .6rem;
    width: 100%;
    border: 0; background: transparent; text-align: left;
    padding: .68rem .75rem;
    border-radius: 10px;
    font-size: 1rem; font-weight: 500;
    color: var(--tblr-body-color, #1a2234);
    cursor: pointer;
    transition: background .12s ease;
}
.sheet-picker__item:hover,
.sheet-picker__item:focus-visible {
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    outline: none;
}
.sheet-picker__name { flex: 1 1 auto; min-width: 0; }
.sheet-picker__check { flex: 0 0 auto; font-size: 1.15rem; }
.sheet-picker__item.is-active {
    background: rgba(6, 111, 209, .08);
    color: var(--tblr-primary, #066fd1);
    font-weight: 600;
}
[data-bs-theme="dark"] .sheet-picker__item.is-active { background: rgba(61, 156, 201, .16); }

/* Trigger výběru dne v liště archivu webkamery – ať není přemáčknutý */
.wca__days-row { flex: 1 1 auto; }
.wca__days.sheet-trigger { flex: 1 1 5rem; min-width: 5rem; max-width: 200px; }

/* ── Desktopový rozbalovací panel výběru (data-sheet-desktop) ──────── */
select.sheet-native-all { display: none !important; }   /* select nahrazen tlačítkem všude */
.sheet-anchor { position: relative; }
.sheet-dd {
    position: absolute; top: calc(100% + .3rem); left: 0; z-index: 1055;
    min-width: 100%; max-width: 30rem;
    max-height: min(60vh, 34rem); overflow-y: auto; overscroll-behavior: contain;
    background: var(--tblr-bg-surface, #fff);
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 12px; padding: .45rem;
    box-shadow: 0 .75rem 2.25rem rgba(0, 0, 0, .16);
}
[data-bs-theme="dark"] .sheet-dd { box-shadow: 0 .75rem 2.25rem rgba(0, 0, 0, .55); }

/* Desktopový panel kompaktněji – menší odsazení než dotykový bottom-sheet */
.sheet-dd .sheet-picker__item {
    padding: .4rem .6rem;
    font-size: .92rem;
}
.sheet-dd .sheet-picker__group {
    padding: .55rem .25rem .2rem;
    font-size: .7rem;
}
.sheet-dd .sheet-picker__group:first-child { padding-top: .1rem; }
.sheet-dd .sheet-picker__check { font-size: 1rem; }

/* ══════════════════════════════════════════════════════════════════════
   Jak bylo (/jak-bylo/) – rekapitulace období, sezóny a výhled
   ══════════════════════════════════════════════════════════════════════ */

/* 1. Výběr období – popisek uprostřed nesmí reagovat jako tlačítko */
.jb-controls .form-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tblr-secondary); }
.jb-controls .jb-period-label { pointer-events: none; white-space: nowrap; font-weight: 600; color: var(--tblr-body-color); min-width: 11rem; }
.jb-controls .jb-btn-group { width: 100%; }
@media (min-width: 768px) { .jb-controls .jb-btn-group { width: auto; } .jb-controls .jb-period-label { min-width: 12.5rem; } }
@media (max-width: 767.98px) { .jb-controls .jb-period-label { flex: 1 1 auto; min-width: 0; } }

/* Rychlé odkazy na roční období */
.jb-season-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.jb-season-link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .8rem; border-radius: 2rem; font-size: .9rem; font-weight: 500;
    color: var(--tblr-secondary); background: var(--tblr-bg-surface-secondary, #f4f6fa);
    border: 1px solid var(--tblr-border-color, #e6e7e9); text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.jb-season-link__year { font-size: .75rem; opacity: .7; }
.jb-season-link:hover { color: var(--tblr-primary); border-color: var(--tblr-primary); }
.jb-season-link.is-active { color: #fff; background: var(--tblr-primary); border-color: var(--tblr-primary); }
.jb-season-link.is-active .jb-season-link__year { opacity: .85; }

/* 2. Hlavní verdikt */
.jb-hero { border-left: 5px solid var(--tblr-primary); }
.jb-hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.jb-hero__headline { font-size: 1.5rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin-bottom: .6rem; }
@media (min-width: 768px) { .jb-hero__headline { font-size: 1.85rem; } }
.jb-hero__summary { font-size: 1.02rem; line-height: 1.65; max-width: 70rem; }
.jb-progress .progress { height: .5rem; }

/* 3. Karty pěti hlavních veličin – barevný proužek nahoře podle veličiny */
.jb-metric { border-top: 4px solid var(--jb-accent, var(--tblr-primary)); }
.jb-metric--temp     { --jb-accent: var(--tblr-red); }
.jb-metric--rain     { --jb-accent: var(--tblr-blue); }
.jb-metric--humidity { --jb-accent: var(--tblr-azure); }
.jb-metric--pressure { --jb-accent: var(--tblr-purple); }
.jb-metric--evap     { --jb-accent: var(--tblr-orange); }
.jb-metric__head {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--tblr-secondary); margin-bottom: .5rem;
}
.jb-metric__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: .5rem; font-size: 1.15rem;
    color: var(--jb-accent); background: color-mix(in srgb, var(--jb-accent) 14%, transparent);
}
.jb-metric__value { font-size: 2.4rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.jb-metric__value small { font-size: 1.1rem; font-weight: 500; margin-left: .2rem; color: var(--tblr-secondary); }
.jb-metric__caption { font-size: .85rem; color: var(--tblr-secondary); margin-bottom: .6rem; }
.jb-metric__badges { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 1.6rem; }
.jb-delta { font-size: .8rem; font-weight: 600; padding: .3rem .5rem; }
.jb-delta__against { font-weight: 400; opacity: .8; }
.jb-metric__facts { margin: .75rem 0 0; font-size: .9rem; }
.jb-metric__facts > div { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 0; border-top: 1px dashed var(--tblr-border-color, #e6e7e9); }
.jb-metric__facts dt { font-weight: 400; color: var(--tblr-secondary); }
.jb-metric__facts dd { margin: 0; font-weight: 600; text-align: right; }
.jb-metric__note { font-size: .8rem; color: var(--tblr-secondary); margin-top: .5rem; }

/* 4. Charakteristické dny */
.jb-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .85rem 1rem; }
.jb-day { display: flex; align-items: center; gap: .7rem; }
.jb-day__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .6rem; font-size: 1.25rem; }
.jb-day__count { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.jb-day__label { font-size: .9rem; font-weight: 500; }
.jb-day__hint { font-size: .75rem; font-weight: 400; color: var(--tblr-secondary); white-space: nowrap; }
.jb-day__cmp { font-size: .78rem; color: var(--tblr-secondary); margin-top: .1rem; }
.jb-day__cmp strong { color: var(--tblr-body-color); font-weight: 600; }
.jb-day--more .jb-day__count { color: var(--tblr-red); }
.jb-day--less .jb-day__count { color: var(--tblr-blue); }
.jb-day__record { font-size: .65rem; padding: .15rem .3rem; vertical-align: middle; }

/* Karta na dashboardu (teaser aktuální sezóny) */
.jb-teaser__headline { font-size: 1.35rem; margin-bottom: .5rem; }
@media (min-width: 768px) { .jb-teaser__headline { font-size: 1.5rem; } }
.jb-teaser .jb-hero__summary { font-size: .98rem; margin-bottom: 1rem; }
.jb-teaser__days-title { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tblr-secondary); margin-bottom: .6rem; }

/* 4b. Extrémy období */
.jb-extremes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem 1rem; }
.jb-extreme { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem .75rem; border-radius: .6rem; background: var(--tblr-bg-surface-secondary, #f4f6fa); }
.jb-extreme--record { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tblr-red) 55%, transparent); }
.jb-extreme__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; font-size: 1.25rem; }
.jb-extreme__body { min-width: 0; }
.jb-extreme__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--tblr-secondary); }
.jb-extreme__value { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.jb-extreme__badge { font-size: .65rem; vertical-align: middle; }
.jb-extreme__when { font-size: .85rem; }
.jb-extreme__record { font-size: .78rem; color: var(--tblr-secondary); margin-top: .1rem; }
[data-bs-theme="dark"] .jb-extreme { background: rgba(255, 255, 255, .04); }

/* 5. Graf a tabulka ročníků */
.jb-chart-title { font-size: .85rem; font-weight: 600; color: var(--tblr-secondary); margin-bottom: .25rem; }
.jb-chart { min-height: 240px; }
.jb-history-table td { vertical-align: middle; }
.jb-history-current td { background: color-mix(in srgb, var(--tblr-primary) 8%, transparent); }
.jb-trend-badge { font-size: .8rem; white-space: nowrap; }

/* 6. Co čekat */
.jb-outlook .card-header { gap: .75rem; }
.jb-outlook .card-title { margin-bottom: 0; }
.jb-outlook--current { border-color: color-mix(in srgb, var(--tblr-purple) 45%, transparent); }
.jb-outlook__row { display: flex; align-items: flex-start; gap: .85rem; }
.jb-outlook__row + .jb-outlook__row { margin-top: 1rem; }
.jb-outlook__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .6rem; font-size: 1.3rem; }
.jb-outlook__value { font-size: 1.6rem; font-weight: 700; line-height: 1.15; }

/* 7. Jak to počítáme – celá lišta je klikací */
.jb-method__toggle { cursor: pointer; color: var(--tblr-body-color); }
.jb-method__toggle:hover { background: var(--tblr-bg-surface-secondary, #f4f6fa) !important; }
.jb-method__chev { transition: transform .2s; }
.jb-method__toggle[aria-expanded="true"] .jb-method__chev { transform: rotate(180deg); }

/* Tmavý režim */
[data-bs-theme="dark"] .jb-season-link { background: rgba(255, 255, 255, .05); }
[data-bs-theme="dark"] .jb-history-current td { background: color-mix(in srgb, var(--tblr-primary) 18%, transparent); }
[data-bs-theme="dark"] .jb-method__toggle:hover { background: rgba(255, 255, 255, .04) !important; }

/* ══════════════════════════════════════════════════════════════════════
   Předpověď ČHMÚ (otevřená data) – přehledový pás + karty období
   ══════════════════════════════════════════════════════════════════════ */
/* Pás na 8 dní – sloupce, na úzkém displeji vodorovný posuv */
.chmi-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(6.2rem, 1fr); gap: .35rem; overflow-x: auto; padding-bottom: .25rem; scroll-snap-type: x proximity; }
.chmi-strip__col { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .6rem .3rem .5rem; border-radius: .6rem; background: var(--tblr-bg-surface-secondary, #f4f6fa); scroll-snap-align: start; min-width: 0; }
.chmi-strip__col--night { background: color-mix(in srgb, var(--tblr-indigo) 7%, var(--tblr-bg-surface-secondary, #f4f6fa)); }
.chmi-strip__col--cr { background: repeating-linear-gradient(135deg, var(--tblr-bg-surface-secondary, #f4f6fa) 0 6px, color-mix(in srgb, var(--tblr-secondary) 7%, var(--tblr-bg-surface-secondary, #f4f6fa)) 6px 12px); }
.chmi-strip__label { font-weight: 700; font-size: .92rem; line-height: 1.15; }
.chmi-strip__date { font-size: .72rem; color: var(--tblr-secondary); white-space: nowrap; }
.chmi-strip__badge { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .04em; padding: 0 .3rem; border-radius: .3rem; background: var(--tblr-secondary); color: #fff; vertical-align: middle; }
.chmi-strip__icon { font-size: 1.9rem; line-height: 1; margin: .45rem 0 .3rem; }
.chmi-strip__intro { font-size: .72rem; line-height: 1.25; color: var(--tblr-secondary); min-height: 2.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .35rem; }
.chmi-strip__tmax { font-weight: 700; color: var(--tblr-red); font-size: .95rem; line-height: 1.2; }
.chmi-strip__tmin { font-weight: 600; color: var(--tblr-blue); font-size: .9rem; line-height: 1.2; }
.chmi-strip__bar { position: relative; width: .8rem; height: 6.5rem; margin: .3rem 0; border-radius: .4rem; background: color-mix(in srgb, var(--tblr-secondary) 12%, transparent); }
.chmi-strip__range { position: absolute; left: 0; right: 0; border-radius: .4rem; background: linear-gradient(to bottom, color-mix(in srgb, var(--tblr-red) 55%, transparent), color-mix(in srgb, var(--tblr-blue) 55%, transparent)); }
.chmi-strip__seg { position: absolute; left: 0; right: 0; border-radius: .4rem; min-height: .35rem; }
.chmi-strip__seg--max { background: var(--tblr-red); }
.chmi-strip__seg--min { background: var(--tblr-blue); }
.chmi-strip__mm { margin-top: .4rem; font-size: .75rem; font-weight: 600; white-space: nowrap; padding: .1rem .4rem; border-radius: .3rem; }
.chmi-strip__mm--0 { color: var(--tblr-secondary); }
.chmi-strip__mm--1 { color: var(--tblr-azure); background: color-mix(in srgb, var(--tblr-azure) 12%, transparent); }
.chmi-strip__mm--2 { color: var(--tblr-blue); background: color-mix(in srgb, var(--tblr-blue) 15%, transparent); }
.chmi-strip__mm--3 { color: #fff; background: var(--tblr-blue); }
.chmi-strip__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .5rem; }
.chmi-strip__lg { display: inline-block; width: .8rem; height: .5rem; border-radius: .25rem; vertical-align: middle; }
.chmi-strip__lg--max { background: var(--tblr-red); }
.chmi-strip__lg--min { background: var(--tblr-blue); }

/* Vývoj situace (ČR) */
.chmi-fc__situation { padding: .75rem 1rem; border-left: 4px solid var(--tblr-blue); background: color-mix(in srgb, var(--tblr-blue) 6%, transparent); border-radius: .4rem; font-size: .92rem; line-height: 1.55; }
.chmi-fc__situation-title { font-weight: 600; font-size: .85rem; margin-bottom: .25rem; }
.chmi-fc__detail-title { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tblr-secondary); margin-bottom: .6rem; }

/* Karty období */
.chmi-fc__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.chmi-fc__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; font-size: 1.5rem; }
.chmi-fc__label { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.chmi-fc__date { font-size: .8rem; color: var(--tblr-secondary); }
.chmi-fc__intro { font-weight: 600; font-size: 1rem; line-height: 1.35; margin-bottom: .4rem; }
.chmi-fc__text { font-size: .92rem; line-height: 1.5; margin-bottom: .6rem; }
.chmi-fc__rows { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; border-top: 1px dashed var(--tblr-border-color, #e6e7e9); padding-top: .6rem; }
.chmi-fc__row { display: flex; gap: .5rem; align-items: flex-start; }
.chmi-fc__row i { flex: 0 0 auto; font-size: 1.05rem; line-height: 1.35; }
.chmi-fc__k { color: var(--tblr-secondary); }
.chmi-fc--night { background: color-mix(in srgb, var(--tblr-indigo) 5%, var(--tblr-bg-surface, #fff)); }
.chmi-fc__source a { color: inherit; text-decoration: underline; }
.chmi-fc-teaser__item { padding: .3rem 0; border-bottom: 1px dashed var(--tblr-border-color, #e6e7e9); }
.chmi-fc-teaser__item:last-of-type { border-bottom: 0; }
.chmi-fc-teaser__label { display: inline-block; min-width: 6.5rem; font-weight: 600; }
[data-bs-theme="dark"] .chmi-strip__col { background: rgba(255, 255, 255, .04); }
[data-bs-theme="dark"] .chmi-strip__col--night { background: color-mix(in srgb, var(--tblr-indigo) 16%, transparent); }
[data-bs-theme="dark"] .chmi-strip__col--cr { background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 6px, rgba(255,255,255,.08) 6px 12px); }
[data-bs-theme="dark"] .chmi-fc--night { background: color-mix(in srgb, var(--tblr-indigo) 12%, var(--tblr-bg-surface, #1a2234)); }

/* Klikací pás + panel podrobností (stránka Předpověď) */
.chmi-strip__col--btn { cursor: pointer; border: 2px solid transparent; transition: border-color .15s, transform .15s; user-select: none; }
.chmi-strip__col--btn:hover { border-color: color-mix(in srgb, var(--tblr-primary) 45%, transparent); }
.chmi-strip__col--btn.is-active { border-color: var(--tblr-primary); background: color-mix(in srgb, var(--tblr-primary) 8%, var(--tblr-bg-surface-secondary, #f4f6fa)); }
.chmi-strip__col--btn:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; }
.chmi-detail-wrap { border: 1px solid var(--tblr-border-color, #e6e7e9); border-radius: .6rem; padding: 1rem 1.1rem; background: var(--tblr-bg-surface, #fff); }
.chmi-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: 1rem 2rem; }
@media (max-width: 767.98px) { .chmi-detail { grid-template-columns: 1fr; } }
.chmi-fc__rows--plain { border-top: 0; padding-top: 0; gap: .45rem; }
@media (min-width: 768px) { .chmi-detail__facts { border-left: 1px dashed var(--tblr-border-color, #e6e7e9); padding-left: 1.5rem; } }

/* ── Stránka Předpověď: dnes / řada dní / podrobnosti / denní grafy ── */
.fc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; align-items: center; }
@media (max-width: 991.98px) { .fc-hero__grid { grid-template-columns: 1fr; } }
.fc-hero__grid--single { grid-template-columns: minmax(0, 1fr); }
.fc-hero__main { display: flex; align-items: center; gap: 1.25rem; }
.fc-hero__img { width: 96px; height: 96px; flex: 0 0 auto; }
.fc-hero__img--ti { display: inline-flex; align-items: center; justify-content: center; font-size: 4rem; }
.fc-hero__label { font-size: 1.05rem; font-weight: 700; }
.fc-hero__temp { font-size: 2.6rem; font-weight: 800; line-height: 1.1; color: var(--tblr-red); letter-spacing: -.02em; }
.fc-hero__intro { font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin: .2rem 0 .3rem; letter-spacing: -.01em; }
.fc-hero__text { font-size: 1rem; line-height: 1.5; color: var(--tblr-secondary); }
.fc-stat__t { font-size: .88rem; line-height: 1.4; }
.fc-hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; align-content: start; }
@media (max-width: 575.98px) { .fc-hero__stats { grid-template-columns: 1fr; } }
.fc-stat { display: flex; gap: .6rem; align-items: flex-start; }
.fc-stat > i { font-size: 1.5rem; line-height: 1; margin-top: .15rem; }
.fc-stat__k { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tblr-secondary); }
.fc-stat__v { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.fc-stat__k { white-space: nowrap; }
.fc-stat__s { font-size: .78rem; color: var(--tblr-secondary); }

.fc-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(7.6rem, 1fr); gap: .5rem; overflow-x: auto; padding: 2px 2px .4rem; margin-bottom: .75rem; scroll-snap-type: x proximity; }
.fc-day { text-align: center; padding: .7rem .35rem .6rem; border-radius: .7rem; background: var(--tblr-bg-surface, #fff); border: 2px solid var(--tblr-border-color, #e6e7e9); cursor: pointer; user-select: none; scroll-snap-align: start; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.fc-day:hover { border-color: color-mix(in srgb, var(--tblr-primary) 45%, transparent); }
.fc-day.is-active { border-color: var(--tblr-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tblr-primary) 15%, transparent); }
.fc-day:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; }
.fc-day--cr { background: repeating-linear-gradient(135deg, var(--tblr-bg-surface, #fff) 0 6px, color-mix(in srgb, var(--tblr-secondary) 6%, var(--tblr-bg-surface, #fff)) 6px 12px); }
.fc-day__name { font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.fc-day__date { font-size: .82rem; color: var(--tblr-secondary); white-space: nowrap; }
.fc-day__cr { display: inline-block; font-size: .6rem; font-weight: 700; padding: 0 .3rem; border-radius: .3rem; background: var(--tblr-secondary); color: #fff; vertical-align: middle; }
.fc-day__img { display: block; width: 56px; height: 56px; margin: .3rem auto .2rem; }
.fc-day__img--ti { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.fc-day__intro { font-size: .8rem; line-height: 1.3; color: var(--tblr-secondary); height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .4rem; }
.fc-day__temp { font-weight: 700; font-size: 1.25rem; margin-bottom: .25rem; }
.fc-day__meta { font-size: .88rem; white-space: nowrap; line-height: 1.5; }
.fc-day__temp--range { font-size: 1.15rem; line-height: 1.25; }

.fc-detail__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 1fr); gap: 1rem 2rem; }
@media (max-width: 767.98px) { .fc-detail__grid { grid-template-columns: 1fr; } }
.fc-detail__grid--single { grid-template-columns: minmax(0, 1fr); }
.fc-detail__grid--single .fc-detail__text { max-width: 60rem; }
.fc-detail__title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.fc-detail__intro { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: .4rem; }
.fc-detail__rows { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; margin-top: .5rem; }
.fc-detail__night { margin-top: .75rem; padding: .6rem .8rem; border-radius: .5rem; background: color-mix(in srgb, var(--tblr-indigo) 7%, transparent); font-size: .9rem; line-height: 1.5; }
.fc-detail__facts-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tblr-secondary); margin-bottom: .4rem; }
@media (min-width: 768px) { .fc-detail__facts { border-left: 1px dashed var(--tblr-border-color, #e6e7e9); padding-left: 1.5rem; } }
.fc-facts { margin: 0; font-size: .92rem; }
.fc-facts > div { display: flex; justify-content: space-between; gap: .75rem; padding: .35rem 0; border-top: 1px dashed var(--tblr-border-color, #e6e7e9); }
.fc-facts > div:first-child { border-top: 0; }
.fc-facts dt { font-weight: 400; color: var(--tblr-secondary); white-space: nowrap; }
.fc-facts dd { margin: 0; text-align: right; font-weight: 600; }
.fc-chart__title { font-size: .88rem; font-weight: 600; margin-bottom: .1rem; }
.fc-sources a { color: inherit; text-decoration: underline; }
[data-bs-theme="dark"] .fc-day--cr { background: repeating-linear-gradient(135deg, var(--tblr-bg-surface, #1a2234) 0 6px, rgba(255,255,255,.05) 6px 12px); }

/* ── Dashboard: karta Předpověď (ČHMÚ) – dnes a zítra ───────────────── */
.chmi-tz { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 1.5rem; }
.chmi-tz__item { display: flex; gap: .85rem; align-items: flex-start; }
.chmi-tz__icon { flex: 0 0 auto; font-size: 2.8rem; line-height: 1; margin-top: .1rem; }
.chmi-tz__body { min-width: 0; }
.chmi-tz__label { font-size: .9rem; font-weight: 700; }
.chmi-tz__intro { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: .1rem 0 .15rem; }
.chmi-tz__text { font-size: .9rem; line-height: 1.45; color: var(--tblr-secondary); }
.chmi-tz__temps { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .45rem; font-weight: 700; font-size: .95rem; }
.chmi-tz__t { display: inline-flex; align-items: center; gap: .25rem; }

/* Aktuální počasí na dashboardu – ikona shodná s předpovědí ČHMÚ */
.wx-now__icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; font-size: 3.4rem; line-height: 1; }
