.pogoda-page {
    --ink: #172239;
    --muted: #4f5b6c;
    --blue: #163d83;
    --line: #dce0e5;
    --surface: #f8f9fa;
    --forecast-ink: #233f62;
    --warm-surface: #fbf4e7;
    --warm-line: #e6d6bb;
    --today-surface: #eef3fb;
    --selected: #5c7aa0;
    color: var(--ink);
}
.pogoda-page *, .pogoda-page *::before, .pogoda-page *::after { box-sizing: border-box; }
.pogoda-page p, .pogoda-page dl, .pogoda-page dd { margin: 0; }
.pogoda-page img { display: block; }
.pogoda-page a { color: var(--blue); text-underline-offset: .2em; }
.pogoda-page button { font: inherit; color: inherit; cursor: pointer; }
.pogoda-page button:disabled { cursor: default; }
.pogoda-page :focus-visible { outline: 3px solid #1763c4; outline-offset: 3px; }
.pogoda-page .share .social_other_page { display: block; float: none; width: auto; margin: 0; text-align: right; }
.pogoda-page .day-name { display: inline-block; color: var(--forecast-ink); }
.pogoda-page .day-name::first-letter, .pogoda-page .day-condition::first-letter, .pogoda-page .condition-text::first-letter, .pogoda-page .condition-text .secondary::first-letter { text-transform: uppercase; }
.pogoda-page .day-tile-date strong { text-transform: capitalize; }
.pogoda-page .period-label { text-transform: lowercase; }
.pogoda-page .observation-text { overflow-wrap: anywhere; }

.pogoda-page .page-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0 10px; }
.pogoda-page .heading-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pogoda-page .heading-copy img { flex: none; width: 29px; height: 29px; }
.pogoda-page .weather-title { font-size: 18px; font-weight: 700; }
.pogoda-page .share { flex: none; min-width: 32px; }
.pogoda-page [hidden] { display: none !important; }

.pogoda-page .overview-grid { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); grid-template-areas: "nearest observation" "week week"; gap: 12px; }
.pogoda-page .overview-grid.no-forecast { grid-template-areas: "nearest observation"; }
.pogoda-page .observation { grid-area: observation; }
.pogoda-page .week { grid-area: week; }
.pogoda-page .nearest, .pogoda-page .observation { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 11px 15px; background: #fff; }
.pogoda-page .nearest { grid-area: nearest; border-color: var(--warm-line); background: var(--warm-surface); }
.pogoda-page .nearest-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; align-items: baseline; }
.pogoda-page .nearest h2, .pogoda-page .observation h2 { font-size: 16px; letter-spacing: -.02em; line-height: 1.25; }
.pogoda-page .weather-date { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; text-align: right; white-space: nowrap; }
.pogoda-page .nearest-content { margin-top: 7px; }
.pogoda-page .nearest-reading { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 16px; }
.pogoda-page .nearest-reading .condition-cell img { width: 48px; height: 48px; }
.pogoda-page .nearest-reading .secondary { font-size: 12px; }
.pogoda-page .hero-temp { display: block; color: var(--forecast-ink); font-size: clamp(34px, 4vw, 45px); line-height: .98; letter-spacing: -.065em; white-space: nowrap; }
.pogoda-page .hero-feels { margin-top: 4px; font-size: 13px; color: var(--muted); }
.pogoda-page .hero-metrics { display: grid; grid-template-columns: 1.15fr .85fr 1.15fr; gap: 8px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--warm-line); }
.pogoda-page :is(.hero-metrics, .point-metrics) .wind-word { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pogoda-page .hero-metrics dt, .pogoda-page .point-metrics dt { color: var(--muted); font-size: 11px; }
.pogoda-page .wind-reading { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pogoda-page .wind-reading img { width: 21px; height: 21px; object-fit: contain; }
.pogoda-page .wind-reading img[src$="/stile.gif"] { width: 35px; }
.pogoda-page .observation-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.pogoda-page .observation-text, .pogoda-page .empty-card p { margin-top: 6px; color: #36445a; }
.pogoda-page .observation-camera { margin-top: 6px; font-size: 12px; }
.pogoda-page .observation-camera a { display: inline-block; max-width: 100%; padding: 5px 9px; border: 1px solid #a0aab8; border-radius: 5px; text-decoration: none; }
.pogoda-page .observation-camera a:hover { border-color: var(--selected); text-decoration: underline; }

.pogoda-page .details-section { margin-top: 14px; }
.pogoda-page .details-section h2 { color: var(--forecast-ink); }
.pogoda-page .section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 9px; }
.pogoda-page .section-heading h2 { font-size: clamp(17px, 2vw, 21px); letter-spacing: -.03em; line-height: 1.25; }
.pogoda-page .week .section-heading { flex-wrap: nowrap; }
.pogoda-page .week-arrows { display: none; gap: 5px; flex: none; }
.pogoda-page .week-arrows button { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--blue); font-size: 25px; line-height: 1; }
.pogoda-page .week-arrows button:disabled { color: #6e7785; background: var(--surface); }
.pogoda-page .week-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 4px; margin: -4px; }
.pogoda-page .day-tile-wrap { display: grid; min-width: 0; }
.pogoda-page .day-tile { display: grid; grid-template-rows: auto 32px auto 1fr; justify-items: center; align-items: center; padding: 5px 4px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; text-align: center; }
.pogoda-page .day-tile:hover { background: var(--surface); color: var(--ink); }
.pogoda-page .day-tile.is-today { background: var(--today-surface); }
.pogoda-page .day-tile[aria-current="location"] { border-color: var(--selected); box-shadow: inset 0 0 0 1px var(--selected); }
.pogoda-page .day-tile-date { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 3px; max-width: 100%; font-size: 12px; white-space: nowrap; }
.pogoda-page .day-tile-date time { color: var(--muted); }
.pogoda-page .is-weekend :is(.day-name, .day-tile-date strong) { color: #80552c; }
.pogoda-page .day-tile img { width: 32px; height: 32px; }
.pogoda-page :is(.range, .point-temp) { color: var(--ink); }
.pogoda-page .range { font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pogoda-page .range-join { padding-inline: 2px; color: var(--muted); }
.pogoda-page .day-condition { align-self: start; margin: 2px 0; font-size: 11px; line-height: 1.3; }
.pogoda-page .mobile-jump { display: none; }

.pogoda-page .sun-times { color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; }

.pogoda-page .forecast-table { width: 100%; border: 1px solid var(--line); border-spacing: 0; border-radius: 8px; background: #fff; }
.pogoda-page .forecast-table :is(th, td) { padding: 7px 10px; text-align: left; vertical-align: middle; }
.pogoda-page .forecast-table thead th { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--forecast-ink); font-size: 11px; }
.pogoda-page .forecast-table thead th:first-child { border-radius: 8px 0 0 0; }
.pogoda-page .forecast-table thead th:last-child { border-radius: 0 8px 0 0; }
.pogoda-page .day-group { scroll-margin-top: 59px; }
.pogoda-page .forecast-table .group-heading { scroll-margin-top: 58px; padding-block: 4px; background: var(--warm-surface); border-top: 1px solid var(--warm-line); }
.pogoda-page .day-group.is-today .group-heading { background: var(--today-surface); }
.pogoda-page .day-group.is-active .group-heading { box-shadow: inset 2px 0 var(--selected); }
.pogoda-page .group-heading-content { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; }
.pogoda-page .to-week { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 18px; font-weight: 400; line-height: 1; text-decoration: none; }
.pogoda-page .forecast-point > * { border-top: 1px solid var(--line); }
.pogoda-page .forecast-point th { font-weight: 400; }
.pogoda-page .point-temp { font-size: 16px; font-weight: 600; }
.pogoda-page .secondary, .pogoda-page .table-unit { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.pogoda-page .condition-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pogoda-page .condition-cell img { flex: none; width: 32px; height: 32px; }
.pogoda-page .mobile-forecast { display: none; }

.pogoda-page .weather-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 13px; padding: 10px 0 19px; color: var(--muted); font-size: 11px; }
.pogoda-page .weather-footer span { padding: 0 5px; }
.pogoda-page .chevron { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: none; }
.pogoda-page [aria-expanded="true"] > .chevron, .pogoda-page [open] > summary > .chevron { transform: rotate(225deg); }

@media (max-width: 1000px) {
    .pogoda-page .overview-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pogoda-page .nearest, .pogoda-page .observation { padding-inline: 13px; }
    .pogoda-page .forecast-table :is(th, td) { padding-inline: 6px; }
    .pogoda-page .condition-cell img { width: 29px; height: 29px; }
}
@media (width > 740px) {
    .pogoda-page .week-track:has(> :last-child:nth-child(-n+3)) { grid-auto-columns: minmax(0, 180px); }
}
@media (max-width: 740px) {
    .pogoda-page .page-heading { margin: 10px 0 9px; }
    .pogoda-page .heading-copy { gap: 7px; }
    .pogoda-page .heading-copy img { width: 26px; height: 26px; }
    .pogoda-page .overview-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nearest" "week" "observation"; gap: 10px; }
    .pogoda-page .overview-grid.no-forecast { grid-template-areas: "nearest" "observation"; }
    .pogoda-page .nearest, .pogoda-page .observation { padding: 9px 11px; }
    .pogoda-page .observation-heading h2 { min-width: 0; font-size: 14px; }
    .pogoda-page .nearest-reading { gap: 10px; }
    .pogoda-page .nearest-reading .condition-cell { font-size: 12px; }
    .pogoda-page .nearest-reading .condition-cell img { width: 39px; height: 39px; }
    .pogoda-page .nearest-reading .secondary { font-size: 11px; }
    .pogoda-page .hero-temp { font-size: 35px; }
    .pogoda-page .hero-feels { font-size: 11px; white-space: nowrap; }
    .pogoda-page .hero-metrics dd { font-size: 12px; }
    .pogoda-page.is-enhanced .week-arrows { display: flex; }
    .pogoda-page .week-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max(88px, 24%); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: none; padding-bottom: 7px; }
    .pogoda-page .week-track::-webkit-scrollbar { display: none; }
    .pogoda-page .day-tile-wrap { scroll-snap-align: start; scroll-margin-inline: 4px; }
    .pogoda-page .day-tile { grid-template-rows: auto 30px auto 1fr; padding: 4px 3px 5px; }
    .pogoda-page .day-tile img { width: 30px; height: 30px; }
    .pogoda-page .day-tile .range { font-size: 12px; }
    .pogoda-page .day-condition, .pogoda-page .desktop-jump { display: none; }
    .pogoda-page .day-condition.has-precipitation { display: block; }
    .pogoda-page .mobile-jump { display: grid; }
    .pogoda-page .desktop-forecast { display: none; }
    .pogoda-page .mobile-forecast { display: grid; gap: 7px; }
    .pogoda-page .day-details { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: white; scroll-margin-top: 10px; }
    .pogoda-page .day-summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 10px; border-radius: 6px; background: var(--surface); cursor: pointer; list-style: none; scroll-margin-top: 10px; }
    .pogoda-page .day-summary::-webkit-details-marker { display: none; }
    .pogoda-page .day-details[open] { border-color: var(--warm-line); }
    .pogoda-page .day-details.is-active { border-color: var(--selected); }
    .pogoda-page .day-details[open] > .day-summary { border-radius: 6px 6px 0 0; background: var(--warm-surface); box-shadow: inset 0 -1px var(--warm-line); }
    .pogoda-page .day-details.is-today > .day-summary { background: var(--today-surface); }
    .pogoda-page .day-summary strong:first-child { margin-right: auto; }
    .pogoda-page .day-summary .chevron { margin-inline: 3px; color: var(--muted); }
    .pogoda-page .day-tools { display: flex; align-items: center; gap: 8px; padding: 3px 10px 0; }
    .pogoda-page .day-tools .to-week { width: 36px; height: 36px; }
    .pogoda-page .point-card { display: grid; grid-template-columns: minmax(94px, .9fr) minmax(0, 1.35fr); grid-template-areas: "period period" "temperature weather" "metrics metrics"; align-items: start; gap: 2px 8px; padding: 8px 10px; }
    .pogoda-page .point-card + .point-card { border-top: 1px solid #e9edf2; }
    .pogoda-page .point-card h3 { grid-area: period; color: var(--muted); font-size: 12px; font-weight: 400; }
    .pogoda-page .point-reading { grid-area: temperature; }
    .pogoda-page .point-reading .point-temp { display: block; font-size: 26px; line-height: 1.08; }
    .pogoda-page .point-card .condition-cell { grid-area: weather; font-size: 12px; }
    .pogoda-page .point-metrics { grid-area: metrics; display: grid; grid-template-columns: 1.1fr .85fr 1.05fr; gap: 4px 7px; margin-top: 4px; }
    .pogoda-page .point-metrics dd { font-size: 12px; overflow-wrap: anywhere; }
    .pogoda-page .point-metrics dt { font-size: 10px; }
    .pogoda-page .point-metrics .secondary-metric dd { color: var(--muted); font-size: 11px; }
}
