/**
 * PBN Weather - wspólny design pogody dla wszystkich portali.
 *
 * Zasada: TU jest kompletny, skończony wygląd (karty, chipy, siatki), ale
 * wszystkie kolory/fonty biorą się z kontraktu tokenów motywu portalu
 * (--primary-color, --accent-color, --surface-paper, --font-display, ...)
 * z neutralnymi fallbackami. Portal, który chce więcej, dosypuje własny skin
 * w swoim [slug]-theme.css (patrz sekcja "Pocztówka" w podrozezycia-theme.css).
 *
 * Uwaga na dziedziczenie: widget ląduje w .entry-content, gdzie motywy mają
 * agresywne reguły na img/a/ul (ramki, border-radius, podkreślenia). Dlatego
 * resety obrazków i list są tu !important - inaczej ikonka 64px rozjeżdża się
 * do szerokości kolumny (realny bug na podrozezycia.pl).
 */

.pbn-weather,
.pbn-weather-widget {
    --pbnw-surface: var(--pbn-surface, var(--card-bg, #fff));
    --pbnw-page: var(--surface-paper, #f6f8fa);
    --pbnw-ink: var(--text-color, #1a2433);
    --pbnw-muted: var(--text-secondary, #64748b);
    --pbnw-line: var(--rule-color, rgba(26, 36, 51, 0.14));
    --pbnw-accent: var(--primary-color, #2563eb);
    --pbnw-accent-2: var(--accent-color, var(--primary-color, #2563eb));
    --pbnw-display: var(--font-display, inherit);
    --pbnw-radius: var(--pbn-radius, 14px);
    --pbnw-shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 14px 30px -20px rgba(15, 27, 45, 0.28);
}

/* Obrazki ikon pogodowych: motywy stylują img w treści - twardo resetujemy. */
.pbn-weather img,
.pbn-weather-widget img {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.pbn-weather ul,
.pbn-weather-widget ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.pbn-weather li::marker,
.pbn-weather-widget li::marker { content: none; }

/* ==========================================================================
   WIDGET W ARTYKULE
   ========================================================================== */
.pbn-weather-widget {
    margin: 2em 0;
    padding: 1.15em 1.3em 1.25em;
    border: 1px solid var(--pbnw-line);
    border-radius: var(--pbnw-radius);
    background: var(--pbnw-surface);
    box-shadow: var(--pbnw-shadow);
    color: var(--pbnw-ink);
    font-size: 0.95rem;
    line-height: 1.4;
}

.pbn-weather-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
    margin-bottom: 0.9em;
    padding-bottom: 0.7em;
    border-bottom: 1px solid var(--pbnw-line);
}

.pbn-weather-widget__title {
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pbnw-muted);
}

.pbn-weather-widget__city {
    font-family: var(--pbnw-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pbnw-accent);
    text-decoration: none !important;
    border: 0 !important;
    background: none !important;
}
.pbn-weather-widget__city:hover { text-decoration: underline !important; }

.pbn-weather-widget__skeleton {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.9em 0;
    color: var(--pbnw-muted);
    font-size: 0.9em;
}
.pbn-weather-widget__skeleton::before {
    content: '';
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--pbnw-line);
    border-top-color: var(--pbnw-accent);
    animation: pbnw-spin 0.8s linear infinite;
}
@keyframes pbnw-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   BLOK "TERAZ" (widget + strona miasta)
   ========================================================================== */
.pbn-weather-now {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9em 1.2em;
}

.pbn-weather-now__icon {
    flex: 0 0 auto;
    width: 56px !important;
    height: 56px !important;
}

.pbn-weather-now__main {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    min-width: 0;
}

.pbn-weather-now__temp {
    font-family: var(--pbnw-display);
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--pbnw-ink);
    letter-spacing: -0.02em;
}

.pbn-weather-now__cond {
    color: var(--pbnw-muted);
    font-size: 0.92rem;
}

/* Szczegóły jako chipy - czytelne na każdym tle */
.pbn-weather-now__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-left: auto !important;
}

.pbn-weather-now__details li {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    padding: 0.35em 0.7em;
    border-radius: 999px;
    background: var(--pbnw-page);
    border: 1px solid var(--pbnw-line);
    font-size: 0.8rem;
    color: var(--pbnw-muted);
    white-space: nowrap;
}
.pbn-weather-now__details strong,
.pbn-weather-now__details b {
    font-family: var(--pbnw-display);
    font-weight: 700;
    color: var(--pbnw-ink);
}

/* Duży wariant - panel na stronie miasta */
.pbn-weather-now--large {
    padding: 1.4em 1.5em;
    border: 1px solid var(--pbnw-line);
    border-radius: var(--pbnw-radius);
    background: var(--pbnw-surface);
    box-shadow: var(--pbnw-shadow);
}
.pbn-weather-now--large .pbn-weather-now__icon { width: 76px !important; height: 76px !important; }
.pbn-weather-now--large .pbn-weather-now__temp { font-size: clamp(2.4rem, 5vw, 3.2rem); }
.pbn-weather-now--large .pbn-weather-now__cond { font-size: 1rem; }

/* ==========================================================================
   PASEK 3 DNI (widget)
   ========================================================================== */
.pbn-weather-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6em;
    margin-top: 1em !important;
    padding-top: 1em !important;
    border-top: 1px solid var(--pbnw-line);
}

.pbn-weather-strip__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25em;
    padding: 0.7em 0.4em;
    border-radius: calc(var(--pbnw-radius) - 4px);
    background: var(--pbnw-page);
    border: 1px solid var(--pbnw-line);
}

.pbn-weather-strip__date {
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pbnw-muted);
}
.pbn-weather-strip__day img { width: 38px !important; height: 38px !important; }
.pbn-weather-strip__temps {
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--pbnw-ink);
}

/* ==========================================================================
   STRONA MIASTA / INDEKSU - własny kontener (motywy nie mają .container)
   ========================================================================== */
.pbn-weather .container {
    width: min(1180px, 92vw);
    margin-inline: auto;
    padding: 0;
}

.pbn-weather {
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    color: var(--pbnw-ink);
}

.pbn-weather__header {
    margin: clamp(1.6rem, 4vw, 2.8rem) 0 clamp(1.2rem, 3vw, 2rem);
}

.pbn-weather__header h1 {
    font-family: var(--pbnw-display);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.05;
    margin: 0.3em 0 0.25em;
}

.pbn-weather__lead {
    color: var(--pbnw-muted);
    max-width: 68ch;
    margin: 0;
    line-height: 1.6;
}

.pbn-weather .breadcrumbs {
    font-size: 0.78rem;
    color: var(--pbnw-muted);
    letter-spacing: 0.02em;
}
.pbn-weather .breadcrumbs a { color: inherit; }
.pbn-weather .breadcrumb-separator { margin: 0 0.35em; opacity: 0.6; }

/* Prognoza - karty dni */
.pbn-weather-forecast { margin-top: clamp(2rem, 4vw, 3rem); }

.pbn-weather-forecast > h2,
.pbn-weather-related > h2 {
    font-family: var(--pbnw-display);
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    margin: 0 0 1em;
}

.pbn-weather-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2.4vw, 1.5rem);
}

.pbn-weather-day {
    padding: 1.2em 1.3em 1.3em;
    border: 1px solid var(--pbnw-line);
    border-radius: var(--pbnw-radius);
    background: var(--pbnw-surface);
    box-shadow: var(--pbnw-shadow);
}

.pbn-weather-day__title {
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pbnw-accent);
    margin: 0 0 0.7em;
}

.pbn-weather-day__summary {
    display: flex;
    align-items: center;
    gap: 0.7em;
    flex-wrap: wrap;
}
.pbn-weather-day__summary img { width: 48px !important; height: 48px !important; }

.pbn-weather-day__temps {
    font-family: var(--pbnw-display);
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--pbnw-ink);
}
.pbn-weather-day__temps small {
    font-weight: 500;
    font-size: 0.62em;
    color: var(--pbnw-muted);
}

.pbn-weather-day__cond {
    font-size: 0.88rem;
    color: var(--pbnw-muted);
    flex: 1 1 100%;
}

.pbn-weather-day__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    margin-top: 0.9em !important;
}
.pbn-weather-day__details li {
    padding: 0.3em 0.65em;
    border-radius: 999px;
    background: var(--pbnw-page);
    border: 1px solid var(--pbnw-line);
    font-size: 0.75rem;
    color: var(--pbnw-muted);
}

/* Godziny */
.pbn-weather-hours {
    display: flex;
    gap: 0.3em;
    margin-top: 1em !important;
    padding-top: 0.9em !important;
    border-top: 1px solid var(--pbnw-line);
    overflow-x: auto;
    scrollbar-width: none;
}
.pbn-weather-hours::-webkit-scrollbar { display: none; }

.pbn-weather-hours__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12em;
    flex: 1 0 auto;
    min-width: 3.1em;
    padding: 0.4em 0.2em;
    border-radius: 8px;
}
.pbn-weather-hours__time { font-size: 0.68rem; color: var(--pbnw-muted); }
.pbn-weather-hours__temp {
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pbnw-ink);
}
.pbn-weather-hours__rain { font-size: 0.68rem; color: var(--pbnw-accent); }

/* ==========================================================================
   INDEKS LOKALIZACJI - szukajka + chipy zamiast ściany linków
   ========================================================================== */
.pbn-weather-search {
    position: relative;
    margin: 0 0 clamp(1.6rem, 3.5vw, 2.4rem);
    max-width: 460px;
}
.pbn-weather-search input {
    width: 100%;
    padding: 0.8em 1.1em;
    border-radius: 999px;
    border: 1px solid var(--pbnw-line);
    background: var(--pbnw-surface);
    color: var(--pbnw-ink);
    font: inherit;
    font-size: 0.95rem;
}
.pbn-weather-search input:focus {
    outline: none;
    border-color: var(--pbnw-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pbnw-accent) 18%, transparent);
}
.pbn-weather-search__count {
    display: block;
    margin-top: 0.5em;
    padding-left: 1.1em;
    font-size: 0.8rem;
    color: var(--pbnw-muted);
}

.pbn-weather-country { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.pbn-weather-country[hidden] { display: none; }

.pbn-weather-country > h2 {
    font-family: var(--pbnw-display);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    margin: 0 0 0.9em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--pbnw-line);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1em;
}
.pbn-weather-country__count {
    font-family: var(--pbnw-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pbnw-muted);
}

/* Województwa - rozwijane sekcje (kraj z setkami miast jest nie do ogarnięcia
   jednym workiem chipów). Zwinięte domyślnie; szukajka rozwija trafienia. */
.pbn-weather-regions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6em;
    align-items: start;
}

.pbn-weather-region {
    border: 1px solid var(--pbnw-line);
    border-radius: calc(var(--pbnw-radius) - 2px);
    background: var(--pbnw-surface);
    overflow: hidden;
}
.pbn-weather-region[hidden] { display: none; }
.pbn-weather-region[open] {
    grid-column: 1 / -1;
    box-shadow: var(--pbnw-shadow);
}

.pbn-weather-region__summary {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.75em 1em;
    cursor: pointer;
    list-style: none;
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pbnw-ink);
    transition: background 0.15s ease;
}
.pbn-weather-region__summary::-webkit-details-marker { display: none; }
.pbn-weather-region__summary:hover { background: var(--pbnw-page); }

/* Strzałka rozwijania */
.pbn-weather-region__summary::before {
    content: '';
    flex: 0 0 auto;
    width: 8px; height: 8px;
    border-right: 2px solid var(--pbnw-accent);
    border-bottom: 2px solid var(--pbnw-accent);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}
.pbn-weather-region[open] > .pbn-weather-region__summary::before { transform: rotate(45deg); }

.pbn-weather-region__name { flex: 1 1 auto; }

.pbn-weather-region__count {
    flex: 0 0 auto;
    min-width: 1.9em;
    padding: 0.15em 0.5em;
    border-radius: 999px;
    background: var(--pbnw-page);
    border: 1px solid var(--pbnw-line);
    font-size: 0.72rem;
    color: var(--pbnw-muted);
    text-align: center;
}

.pbn-weather-region > .pbn-weather-locations {
    padding: 0.2em 1em 1em;
}

.pbn-weather-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}
.pbn-weather-locations li[hidden] { display: none; }

.pbn-weather-locations a {
    display: inline-flex;
    align-items: center;
    padding: 0.45em 0.95em;
    border-radius: 999px;
    border: 1px solid var(--pbnw-line);
    background: var(--pbnw-surface);
    color: var(--pbnw-ink) !important;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.pbn-weather-locations a:hover {
    background: var(--pbnw-accent);
    border-color: var(--pbnw-accent);
    color: #fff !important;
    transform: translateY(-1px);
}

.pbn-weather-empty {
    padding: 1.2em 1.4em;
    border-radius: var(--pbnw-radius);
    background: var(--pbnw-surface);
    border: 1px solid var(--pbnw-line);
    color: var(--pbnw-muted);
}
.pbn-weather-empty[hidden] { display: none; }

/* ==========================================================================
   POWIĄZANE / ATRYBUCJA / STANY
   ========================================================================== */
.pbn-weather-related { margin-top: clamp(2.2rem, 5vw, 3.2rem); }

.pbn-weather-related__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}
.pbn-weather-related__list a {
    display: inline-flex;
    padding: 0.45em 0.95em;
    border-radius: 999px;
    border: 1px solid var(--pbnw-line);
    background: var(--pbnw-surface);
    color: var(--pbnw-ink) !important;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pbn-weather-related__list a:hover {
    background: var(--pbnw-accent);
    border-color: var(--pbnw-accent);
    color: #fff !important;
}

/* Atrybucja: wymagana przez WeatherAPI, ale ma być drobnym podpisem, nie
   elementem layoutu - stąd mikro-rozmiar i wyciszony kolor. */
.pbn-weather-attribution {
    margin-top: 1.2em;
    font-size: 0.62rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--pbnw-muted);
    opacity: 0.65;
}
.pbn-weather-attribution a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pbn-weather-widget .pbn-weather-attribution { margin-top: 0.8em; text-align: right; }

.pbn-weather-unavailable,
.pbn-weather-stale-note {
    padding: 1em 1.25em;
    border-radius: var(--pbnw-radius);
    border: 1px solid var(--pbnw-line);
    background: var(--pbnw-surface);
    color: var(--pbnw-muted);
}
.pbn-weather-stale-note { margin-bottom: 1em; font-size: 0.85rem; }

/* ==========================================================================
   DASHBOARD MIESIĘCZNY (wykresy outlook)
   ========================================================================== */
.pbn-weather-outlook {
    --pbnw-surface: var(--pbn-surface, var(--card-bg, #fff));
    --pbnw-page: var(--surface-paper, #f6f8fa);
    --pbnw-ink: var(--text-color, #1a2433);
    --pbnw-muted: var(--text-secondary, #64748b);
    --pbnw-line: var(--rule-color, rgba(26, 36, 51, 0.14));
    --pbnw-accent: var(--primary-color, #2563eb);
    --pbnw-display: var(--font-display, inherit);
    --pbnw-radius: var(--pbn-radius, 14px);
    --pbnw-shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 14px 30px -20px rgba(15, 27, 45, 0.28);

    margin: 2em 0;
    padding: 1.15em 1.3em 1.25em;
    border: 1px solid var(--pbnw-line);
    border-radius: var(--pbnw-radius);
    background: var(--pbnw-surface);
    box-shadow: var(--pbnw-shadow);
    color: var(--pbnw-ink);
    font-size: 0.95rem;
    line-height: 1.4;
}

.pbn-weather-outlook__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75em;
    flex-wrap: wrap;
    margin-bottom: 0.9em;
    padding-bottom: 0.7em;
    border-bottom: 1px solid var(--pbnw-line);
}

.pbn-weather-outlook__title {
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pbnw-muted);
}

.pbn-weather-outlook__month {
    font-family: var(--pbnw-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--pbnw-accent);
    text-transform: capitalize;
}

.pbn-weather-outlook__skeleton {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.9em 0;
    color: var(--pbnw-muted);
    font-size: 0.9em;
}
.pbn-weather-outlook__skeleton::before {
    content: '';
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--pbnw-line);
    border-top-color: var(--pbnw-accent);
    animation: pbnw-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .pbn-weather-outlook__skeleton::before { animation: none; }
}

/* Zakładki miejscowości */
.pbn-weather-outlook__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-bottom: 1em;
}

.pbn-weather-outlook__tab {
    appearance: none;
    padding: 0.4em 0.95em;
    border-radius: 999px;
    border: 1px solid var(--pbnw-line);
    background: var(--pbnw-surface);
    color: var(--pbnw-ink);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pbn-weather-outlook__tab:hover { border-color: var(--pbnw-accent); }
.pbn-weather-outlook__tab.is-active {
    background: var(--pbnw-accent);
    border-color: var(--pbnw-accent);
    color: #fff;
}

/* Chipy statystyk */
.pbn-weather-outlook__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin: 0 0 1em !important;
}
.pbn-weather-outlook__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    padding: 0.35em 0.7em;
    border-radius: 999px;
    background: var(--pbnw-page);
    border: 1px solid var(--pbnw-line);
    font-size: 0.8rem;
    color: var(--pbnw-muted);
    white-space: nowrap;
}
.pbn-weather-outlook__stats strong {
    font-family: var(--pbnw-display);
    font-weight: 700;
    color: var(--pbnw-ink);
}

/* Figury wykresów */
.pbn-weather-outlook__figure {
    margin: 0 0 1.1em !important;
    padding: 0;
}
.pbn-weather-outlook__figure figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8em;
    flex-wrap: wrap;
    margin-bottom: 0.35em;
}
.pbn-weather-outlook__figtitle {
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--pbnw-ink);
}
.pbn-weather-outlook__legend {
    display: inline-flex;
    gap: 0.8em;
    font-size: 0.75rem;
    color: var(--pbnw-muted);
}
.pbn-weather-outlook__key {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}
.pbn-weather-outlook__key i {
    width: 14px;
    height: 3px;
    border-radius: 2px;
    display: inline-block;
}
.pbn-weather-outlook__scrollhint {
    font-size: 0.72rem;
    color: var(--pbnw-muted);
    opacity: 0.85;
}

/* Wykresy SVG: skalują się w dół, na wąskich ekranach przewijają w poziomie */
.pbn-weather-outlook__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.pbn-weather-outlook__scroll .pbnw-chart { min-width: 520px; }

.pbnw-chart {
    display: block;
    width: 100%;
    height: auto;
    font-family: inherit;
}
.pbnw-chart .pbnw-grid {
    stroke: var(--pbnw-line);
    stroke-width: 1;
}
.pbnw-chart .pbnw-tick {
    fill: var(--pbnw-muted);
    font-size: 11px;
}
.pbnw-chart .pbnw-label {
    fill: var(--pbnw-ink);
    font-size: 11px;
    font-weight: 700;
}
.pbnw-chart .pbnw-label-min {
    fill: var(--pbnw-muted);
    font-size: 10.5px;
    font-weight: 600;
}
.pbnw-chart .pbnw-ring {
    fill: var(--pbnw-surface);
}

/* Historia: dwie mini-figury obok siebie */
.pbn-weather-outlook__history {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1em;
    margin-bottom: 1.1em;
}
.pbn-weather-outlook__history .pbn-weather-outlook__figure { margin-bottom: 0 !important; }
.pbn-weather-outlook__history .pbnw-chart { min-width: 0; }

/* Tabela dzień po dniu */
.pbn-weather-outlook__table { margin: 0 0 0.6em; }
.pbn-weather-outlook__table summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--pbnw-accent);
    font-weight: 600;
}
.pbn-weather-outlook__table table {
    width: 100%;
    margin-top: 0.7em;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.pbn-weather-outlook__table th,
.pbn-weather-outlook__table td {
    padding: 0.35em 0.6em;
    border-bottom: 1px solid var(--pbnw-line);
    text-align: left;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.pbn-weather-outlook__table th {
    font-family: var(--pbnw-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pbnw-muted);
}

.pbn-weather-outlook__note {
    margin: 0.4em 0 0;
    font-size: 0.72rem;
    color: var(--pbnw-muted);
}
.pbn-weather-outlook .pbn-weather-attribution { text-align: right; }

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 700px) {
    .pbn-weather-now { gap: 0.7em 0.9em; }
    .pbn-weather-now__details { margin-left: 0 !important; width: 100%; }
    .pbn-weather-now--large { padding: 1.1em 1.15em; }
    .pbn-weather-now--large .pbn-weather-now__icon { width: 58px !important; height: 58px !important; }
    .pbn-weather-widget { padding: 1em 1.05em 1.1em; }
    .pbn-weather-widget__head { flex-wrap: wrap; gap: 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
    .pbn-weather-widget__skeleton::before { animation: none; }
    .pbn-weather-locations a:hover { transform: none; }
}
