/*
Theme Name: Motyw tymczasowy (serwis)
Author: Dla Mieszkańców
Description: Pełna kopia motywu portalu z dodanym paskiem "Prace serwisowe" u góry — do włączania na czas aktualizacji głównego motywu, żeby strona cały czas działała normalnie dla odwiedzających.
Version: 1.4.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dla-mieszkancow
*/

:root {
  --paper: #F2F3F5;
  --paper-deep: #E4E7EC;
  --ink: #14203A;
  --muted: #5B6270;
  --line: #D9DCE1;
  --accent: #D42E2E;
  --green: #1B3A6B;
  --green-deep: #122A52;
  --ok: #2D6A4F;
  --soft: #FFFFFF;
  --chip: #F0A202;
  --nav-active: transparent;
  --max: 1140px;
  --serif: 'Barlow Condensed', Arial, sans-serif;
  --sans: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
button:disabled, .button:disabled { cursor: wait; opacity: .72; }

/* ---------- Pasek narzędziowy: data, pogoda, szybkie linki ---------- */
.util-bar { background: var(--green-deep); color: #c7d3e8; font-family: var(--mono); font-size: 12px; }
.util-bar-inner { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 7px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.util-bar b { color: #fff; }
.util-bar a { color: #c7d3e8; margin-left: 16px; }
.util-bar a:hover { color: #fff; }

/* ---------- Pasek PILNE / almanac ticker ---------- */
.almanac-strip { background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.almanac-strip-inner { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 8px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.almanac-strip b { color: #fff; font-weight: 700; background: rgba(255,255,255,.22); padding: 1px 7px; }

.site-header { border-bottom: 4px solid var(--green); background: var(--soft); }
.header-inner { width: min(var(--max), calc(100% - 56px)); min-height: 60px; margin: 0 auto; padding: 16px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; white-space: nowrap; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 27px; letter-spacing: -.01em; line-height: 1.05; color: var(--green); text-transform: uppercase; }
.brand-place { color: var(--accent); font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .01em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; row-gap: 4px; flex-wrap: wrap; color: var(--green); font-family: var(--serif); font-size: 14.5px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.nav a { min-height: auto; padding: 9px 9px 7px; border-radius: 0; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.nav a[aria-current="page"], .nav .current-menu-item a { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; }
.header-search-row { border-top: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 9px max(28px, calc((100% - var(--max)) / 2)); }
.header-search-row .dm-search-form { width: auto; margin: 0; padding: 0; }
.header-search-row .dm-search-form input { max-width: 220px; }

/* ---------- Powiększanie tekstu (dostępność dla seniorów) ---------- */
.font-toggle { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--green); font-family: var(--serif); font-weight: 700; font-size: 12px; line-height: 1; display: inline-flex; align-items: baseline; gap: 1px; cursor: pointer; }
.font-toggle .font-toggle-plus { font-size: 17px; }
.font-toggle[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
html.dm-font-large body { zoom: 1.18; }

.serwis-banner { background: var(--chip); color: var(--ink); font-size: 13px; line-height: 1.5; border-bottom: 1px solid rgba(20,32,58,.12); }
.serwis-banner-inner { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 10px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.serwis-banner b { font-family: var(--serif); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }

h1, h2, h3, p { margin: 0; }
.page { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 40px 0 76px; }
.page-narrow, .article-page { width: min(820px, calc(100% - 56px)); margin: 0 auto; padding: 40px 0 76px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr); gap: 40px; align-items: end; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 2px solid var(--green); }
.kicker, .card-kicker, .story-category { color: var(--accent); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; line-height: 1; text-transform: uppercase; }
.kicker { margin-bottom: 12px; }
h1 { max-width: 760px; font-family: var(--serif); font-size: clamp(38px, 5.6vw, 54px); font-weight: 700; letter-spacing: -.01em; line-height: 1.02; color: var(--green); }
.lead { max-width: 660px; margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.hero-note { padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--chip); border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.55; }
.section { margin-top: 36px; }
.section-heading, .section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; border-bottom: 2px solid var(--green); padding-bottom: 10px; }
.section-heading h2, .section-head h2 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 26px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; color: var(--green); }
.section-link { color: var(--accent); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hero { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 28px 0 60px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(260px, .82fr); gap: 26px; border-bottom: 1px solid var(--line); }
.story-stack { display: grid; gap: 18px; align-content: start; }
.story-mid .article-image { height: 130px; margin-bottom: 10px; }
.story-mid h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.story-mid .meta { margin-top: 5px; }
.hero-heading { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.article-image { display: block; width: 100%; object-fit: cover; background: var(--paper-deep); }
.lead-image { height: clamp(230px, 28vw, 300px); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.section-tag { width: fit-content; margin: 0 0 12px; padding: 3px 9px; border-radius: 0; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.lead-title { max-width: 640px; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 38px); font-weight: 700; letter-spacing: -.005em; line-height: 1.04; color: var(--ink); }
.lead-summary { max-width: 610px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.meta { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; }
.hero aside { background: transparent; }
.today-title { margin-bottom: 0; padding: 0 0 10px; font-family: var(--serif); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green); border-bottom: 2px solid var(--green); line-height: 1.1; }
.story-list { border-top: none; padding: 0; }
.story-card { position: relative; padding: 12px 0; margin-top: 0; border: none; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: start; }
.story-card:first-child { margin-top: 0; padding-top: 14px; }
.story-card::before { content: none; }
.story-category { display: block; margin-bottom: 4px; }
.story-card h3 { max-width: 420px; font-family: var(--serif); font-size: 15.5px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.story-thumb { width: 60px; height: 44px; border: 1px solid var(--line); border-radius: 0; order: -1; object-fit: cover; }

.article-card, .info-card, .form-card, .market-card, .event-card { border: 1px solid var(--line); border-radius: 10px; background: var(--soft); box-shadow: 0 2px 6px rgba(20,32,58,.05); overflow: hidden; }
.market-card .thumb, .info-card .thumb { display: block; width: 100%; height: 130px; object-fit: cover; border-bottom: 1px solid var(--line); margin: -19px -19px 14px; width: calc(100% + 38px); }
.article-card { overflow: hidden; display: block; }
.article-card img { display: block; width: 100%; height: 165px; object-fit: cover; background: var(--paper-deep); }
.article-body, .info-card, .form-card, .market-card, .event-card { padding: 18px 19px; }
.form-card { display: flex; flex-direction: column; border-top: 3px solid var(--accent); }
.article-card h2, .article-card h3, .info-card h2, .info-card h3, .market-card h2, .event-card h2, .form-card h2 { margin-top: 8px; font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.18; color: var(--ink); }
.article-card p, .info-card p, .market-card p, .event-card p, .form-card p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.info-card.is-link { display: block; text-decoration: none; background: linear-gradient(165deg, #FFFEF9 0%, #FFF6DE 100%); transition: background .15s ease; }
.info-card.is-link:hover { background: linear-gradient(165deg, #FFFBEF 0%, #FFEFC2 100%); }
.info-card.is-link .card-more { margin-top: 8px; color: var(--accent); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 500; }

.contact-addr { color: var(--muted); font-size: 13px; margin-top: 6px; }
.phone-list { display: grid; gap: 6px; margin-top: 10px; }
.phone-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 5px; font-family: var(--mono); font-size: 13px; }
.phone-row span { color: var(--muted); }
.phone-row a { color: var(--green); font-weight: 500; text-decoration: none; }
.phone-row a:hover { text-decoration: underline; }
.hours-note { background: rgba(27,58,107,.06); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-top: 10px; color: var(--ink); }
.hours-note strong { color: var(--green); }
.ext-list { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.ext-list li { margin-bottom: 3px; }
.email-row { font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin-top: 6px; }
.email-row a { color: var(--green); }
.kierownik-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kierownik-row:last-child { border-bottom: none; }
.kierownik-imie { font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--ink); }
.kierownik-funkcja { color: var(--muted); font-size: 12.5px; font-style: italic; }
.kierownik-tel { font-family: var(--mono); font-size: 13px; color: var(--green); text-align: right; white-space: nowrap; }
.filter-row, .topic-list, .quick-links { display: flex; gap: 8px; flex-wrap: wrap; }
.chip, .quick-links a { min-height: 30px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--soft); color: var(--green); font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; }
.waste-links { gap: 6px; }
.waste-links a { min-height: 26px; padding: 5px 9px; font-size: 11.5px; font-family: var(--mono); font-weight: 400; text-transform: none; }
button.chip { cursor: pointer; }
.chip.active { border-color: var(--green); background: var(--green); color: #fff; }
.market-card.is-hidden { display: none; }

.join-banner, .newsletter { width: min(var(--max), calc(100% - 48px)); margin: -24px auto 60px; padding: 26px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 0; display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1fr); gap: 30px; align-items: center; background: var(--soft); }
.join-kicker, .newsletter-kicker { margin-bottom: 8px; color: var(--accent); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.join-title, .newsletter-title { font-family: var(--serif); font-size: clamp(24px,3vw,28px); font-weight: 700; line-height: 1.1; color: var(--green); }
.join-copy, .newsletter-copy { max-width: 500px; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.join-form, .signup-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.join-form input, .join-form select, .join-form textarea, .field { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 13.5px; }
.join-form textarea, textarea.field { min-height: 110px; padding-top: 12px; resize: vertical; grid-column: 1 / -1; }
.join-form button, .button, .signup-button { min-height: 42px; padding: 0 18px; border: 1px solid var(--green); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-family: var(--serif); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; font-weight: 700; }
.join-form button { width: fit-content; grid-column: 1 / -1; }
.button.secondary { border-color: var(--line); background: var(--soft); color: var(--green); }
.dm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dm-date-field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.dm-date-field .field { min-height: 42px; }
.captcha-field { display: grid; gap: 7px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.captcha-field .field { min-height: 42px; }
.form-status { min-height: 130px; padding: 20px; border: 1px solid var(--ok); border-radius: 0; display: grid; align-content: center; gap: 8px; background: #eef5f1; color: var(--ok); }
.form-status strong { color: var(--ok); font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.15; }
.form-status span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-status.is-error { border-color: var(--accent); background: #fbeaea; color: var(--accent); }
.form-status.is-error strong { color: var(--accent); }
.form-status.is-compact { min-height: 0; padding: 12px 16px; }
.form-status.is-compact strong { font-size: 14px; font-family: var(--sans); font-weight: 700; }

.weather-wide { display: grid; grid-template-columns: minmax(0,.6fr) minmax(0,1fr); background: linear-gradient(165deg, #FFFEF9 0%, #FFF3D4 100%); border: 1px solid #EADFC0; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(20,32,58,.10); color: var(--ink); }
.weather-wide .wmain { padding: 18px 24px 20px; border-right: 1px solid #EADFC0; position: relative; }
.weather-wide .wtemp-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.weather-wide .wtemp { font-family: var(--serif); font-weight: 800; font-size: 54px; line-height: .95; color: var(--ink); letter-spacing: -.01em; }
.weather-wide .wdesc { color: var(--muted); font-size: 13px; margin-top: 6px; }
.weather-wide .wforecast { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.weather-wide .wday { padding: 14px 8px; text-align: center; border-right: 1px solid #EADFC0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.weather-wide .wday:last-child { border-right: none; }
.weather-wide .wday b { display: block; font-family: var(--serif); font-weight: 800; font-size: 22px; color: var(--ink); line-height: 1; }
.weather-wide .wday-name { font-size: 10.5px; }
.weather-wide .wday-icon { line-height: 0; margin: 2px 0; }
.weather-wide .wday-min { font-size: 11px; color: var(--muted); }
.weather-wide .wday-extra { font-size: 9.5px; color: var(--muted); margin-top: 2px; text-transform: none; letter-spacing: 0; }

.forecast-date { display: block; color: var(--muted); font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.forecast-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- Pogoda: ciepły kafelek na stronie głównej ---------- */
.weather-tile { display: block; border: 1px solid #EADFC0; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: linear-gradient(165deg, #FFFEF9 0%, #FFF3D4 100%); box-shadow: 0 6px 18px rgba(20,32,58,.10); }
.weather-tile .wt-bar { display: block; background: var(--green); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 9px 14px; }
.weather-tile .wt-body { display: block; position: relative; padding: 14px 16px 15px; }
.wt-loc { display: block; font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.05; }
.wt-date { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.wt-icon { position: absolute; top: 10px; right: 12px; width: 60px; height: auto; }
.wt-loc, .wt-date { padding-right: 66px; }
.wt-temp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.wt-temp { font-family: var(--serif); font-weight: 800; font-size: 56px; line-height: .95; color: var(--ink); letter-spacing: -.01em; }
.wt-pill { background: rgba(20,32,58,.07); border: 1px solid rgba(20,32,58,.10); color: var(--muted); font-family: var(--mono); font-size: 11px; padding: 6px 10px; border-radius: 8px; white-space: normal; max-width: 104px; text-align: center; line-height: 1.35; }
.wt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid #EADFC0; }
.wt-chip { background: rgba(255,255,255,.75); border: 1px solid #EADFC0; border-radius: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--ink); padding: 5px 8px; white-space: nowrap; }
.weather-tile .section-link { display: block; margin-top: 12px; }

/* ---------- Pogoda: lista dni na podstronie prognozy ---------- */
.forecast-list { display: grid; gap: 10px; }
.forecast-row { display: flex; align-items: center; gap: 22px; padding: 13px 22px; background: linear-gradient(165deg, #FFFEF9 0%, #FFF6DE 100%); border: 1px solid #EADFC0; border-radius: 12px; box-shadow: 0 3px 10px rgba(20,32,58,.06); }
.forecast-row .fr-main { flex: 0 0 190px; }
.forecast-row .fr-main .forecast-date { margin-bottom: 2px; }
.forecast-row h2 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.fr-icon { flex: 0 0 auto; display: flex; align-items: center; }
.fr-temp { flex: 0 0 110px; font-family: var(--serif); font-weight: 800; font-size: 27px; color: var(--ink); white-space: nowrap; }
.fr-temp small { font-weight: 600; font-size: 16px; color: var(--muted); }
.fr-desc { flex: 1 1 auto; color: var(--muted); font-size: 13.5px; }
.fr-details { display: flex; gap: 24px; margin-left: auto; flex: 0 0 auto; }
.forecast-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.forecast-label { display: block; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.forecast-value { display: block; color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }
.calendar-widget { border: 1px solid var(--line); border-radius: 10px; background: var(--soft); padding: 18px; }
.calendar-layout { grid-template-columns: 1.6fr 1fr; align-items: start; gap: 32px; }
.calendar-month { font-family: var(--serif); font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--green); margin-bottom: 12px; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.calendar-weekday { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; padding-bottom: 6px; }
.calendar-day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-family: var(--sans); font-size: 13px; color: var(--ink); background: var(--paper); }
.calendar-day.is-empty { background: transparent; }
.calendar-day.is-today { background: var(--green); color: #fff; font-weight: 700; }
.calendar-day.has-event { background: var(--accent); color: #fff; font-weight: 700; }
.calendar-day.is-today.has-event { background: var(--green); box-shadow: inset 0 0 0 2px var(--accent); }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.quick-card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 10px; background: var(--soft); box-shadow: 0 2px 6px rgba(20,32,58,.05); }
.quick-card .qicon { width: 26px; height: 26px; color: var(--green); stroke-width: 1.8; }
.quick-card h3 { margin: 10px 0 5px; font-family: var(--serif); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.quick-card p { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.essentials, .market-preview, .obituaries { width: min(var(--max), calc(100% - 48px)); margin: 0 auto 64px; }
.essentials-grid, .market-preview-grid, .obituary-grid { display: grid; gap: 0; }
.essentials-grid { grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); background: var(--soft); }
.market-preview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.obituary-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.essential-card { min-height: 190px; padding: 18px 18px 16px; border-right: 1px solid var(--line); border-radius: 0; background: var(--soft); box-shadow: none; }
.essential-card:last-child { border-right: none; }
.market-panel { min-height: 190px; padding: 18px 18px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); box-shadow: 0 2px 6px rgba(20,32,58,.05); }
.card-title { display: flex; align-items: start; gap: 8px; margin-bottom: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
.card-icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--accent); stroke-width: 1.9; }
.temperature { color: var(--green); font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: .9; }
.weather-state, .phone-label, .departure-place { color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.4; }
.weather-note { margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.phone-list, .departure-list { display: grid; gap: 8px; padding-top: 4px; }
.phone-row, .departure-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dotted var(--line); font-family: var(--mono); font-size: 12px; }
.phone-number { padding: 0; border-radius: 0; background: transparent; color: var(--green); font-family: var(--mono); font-size: 13px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1; white-space: nowrap; }
.phone-number:hover, .contact-phone:hover { background: var(--green); color: #fff; }
.contact-phone { width: fit-content; margin-top: 4px; padding: 6px 12px; border: 1px solid var(--green); border-radius: 0; display: inline-flex; background: transparent; color: var(--green); font-family: var(--mono); font-size: 14px; line-height: 1; }
.line-badge { min-width: 46px; min-height: 22px; padding: 4px 10px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1; }

.community { width: min(calc(var(--max) + 32px), calc(100% - 48px)); margin: 0 auto 64px; padding: 38px 40px; border-radius: 12px; background: var(--green); color: #fff; }
.community-top { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px,.34fr); gap: 34px; align-items: end; }
.community-kicker { margin-bottom: 12px; color: var(--chip); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.community-title { max-width: 720px; color: #fff; font-family: var(--serif); font-size: clamp(28px,3.6vw,36px); font-weight: 700; line-height: 1.1; }
.community-lead { max-width: 790px; margin-top: 14px; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.55; }
.community-note { max-width: 760px; margin-top: 12px; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.55; }
.community-more { margin-top: 6px; color: rgba(255,255,255,.9); font-size: 14px; white-space: nowrap; }
.community-action { display: grid; gap: 13px; justify-items: start; }
.community-action p { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.45; }
.button-light { min-height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; font-family: var(--serif); font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase; font-weight: 700; }
.market-panel.is-green { background: var(--accent); border-color: var(--accent); color: #fff; }
.market-panel.is-plon { background: #2D6A4F; border-color: #2D6A4F; color: #fff; }
.market-panel.is-plon p { color: rgba(255,255,255,.85); }
.market-panel.is-plon .card-kicker { color: #A7E3C4; }
.market-panel.is-firmy { background: #2D5DA6; border-color: #2D5DA6; color: #fff; }
.market-panel.is-firmy p { color: rgba(255,255,255,.85); }
.market-panel.is-firmy .card-kicker { color: #AECBF0; }
.market-section-panel { min-height: auto; padding: 14px 18px; }
.market-section-panel h2 { margin-top: 4px; font-family: var(--serif); font-size: 21px; font-weight: 700; text-transform: uppercase; line-height: 1.16; }
.market-section-panel p { max-width: 640px; }
.market-panel h3 { margin-top: 8px; font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.15; }
.market-panel p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.market-panel.is-green p { color: rgba(255,255,255,.85); }
.market-panel.is-green .quick-links a { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Nekrologi: celowy wyjątek od designu Serwis ---------- */
/* Tradycyjny, biało-czarny szablon jak polskie klepsydry - niezależny od reszty palety */

/* Skrócona karta (strona główna + lista) — pełna treść dopiero po kliknięciu */
.obituary-card { min-height: 200px; padding: 20px 18px 18px; border: 1px solid #999; border-radius: 0; background: #fff; color: #111; text-align: center; display: flex; flex-direction: column; box-shadow: none; }
.obituary-sp-mala { color: #444; font-family: Georgia, "Times New Roman", serif; font-size: 12px; letter-spacing: .14em; margin: 0 0 8px; }
.obituary-name { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; text-transform: uppercase; line-height: 1.2; color: #111; margin: 0; }
.obituary-opis-mala { margin-top: 4px; color: #444; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.obituary-zycie-mala { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; color: #111; font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
.obituary-detail { margin-top: 8px; color: #222; font-family: Georgia, "Times New Roman", serif; font-size: 13.5px; line-height: 1.4; }
.obituary-wiecej { margin-top: auto; padding-top: 12px; color: var(--accent); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }

/* Pełna podstrona nekrologu */
.obituary-single { max-width: 820px; margin: 0 auto; padding: 34px 40px; border: 3px solid #111; border-radius: 0; background: #fff; color: #111; display: grid; grid-template-columns: 70px 1fr; gap: 0 26px; text-align: left; }
.obituary-krzyz-wrap { display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; }
.obituary-krzyz { width: 36px; height: 60px; position: relative; }
.obituary-krzyz::before, .obituary-krzyz::after { content: ''; position: absolute; background: #111; }
.obituary-krzyz::before { left: 50%; top: 0; width: 5px; height: 60px; transform: translateX(-50%); }
.obituary-krzyz::after { left: 50%; top: 12px; width: 30px; height: 5px; transform: translateX(-50%); }
.obituary-tresc { text-align: center; }
.obituary-wiersz { text-align: right; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 13.5px; line-height: 1.55; color: #666; margin: 0 0 18px; }
.obituary-sp { font-family: Georgia, "Times New Roman", serif; font-size: 15px; letter-spacing: .06em; color: #444; margin: 0 0 4px; }
.obituary-single .obituary-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(24px,4vw,32px); text-transform: uppercase; color: #111; line-height: 1.15; margin: 0; }
.obituary-opis { margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; color: #111; }
.obituary-blok { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ccc; }
.obituary-blok-label { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #888; margin: 0 0 4px; }
.obituary-blok-value { font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: #222; line-height: 1.5; margin: 0; }
.obituary-zycie .obituary-blok-value { text-align: center; font-size: 16px; }
.obituary-message { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ccc; color: #222; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.6; }
.obituary-zegna { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ccc; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 14.5px; color: #111; }
.obituary-stopka { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ccc; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 12.5px; font-style: italic; color: #888; }
.share-box { max-width: 680px; margin: 20px auto 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-deep); }
.share-link { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; overflow-wrap: anywhere; background: var(--soft); color: var(--muted); font-family: var(--mono); font-size: 13px; line-height: 1.45; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.share-note { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.article-header { margin-bottom: 26px; }
.article-summary { max-width: 720px; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.article-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.article-share { margin-top: 16px; }
.article-share .button { min-height: 38px; padding: 0 14px; font-size: 13px; }
.pdf-embed { width: 100%; height: 75vh; min-height: 420px; border: 1px solid var(--line); border-radius: 10px; margin-top: 20px; background: var(--soft); }
.list-rows { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list-row-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.list-row-link:last-child { border-bottom: none; }
.list-row-link:hover { background: var(--paper); }
.list-row-link .rtitle { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); }
.list-row-link .rarrow { color: var(--accent); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.hero-photo, .content-photo { width: 100%; border: 1px solid var(--line); border-radius: 0; display: block; object-fit: cover; background: var(--paper-deep); }
.hero-photo { height: clamp(260px,38vw,380px); }
.photo-caption { margin-top: 9px; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.45; }
.article-content { margin-top: 26px; display: grid; gap: 20px; }
.article-content p { color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
.article-content h2 { margin-top: 10px; font-family: var(--serif); font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1.15; color: var(--green); }
.content-photo { height: 320px; }
.article-callout { padding: 18px; border-left: 4px solid var(--accent); border-radius: 0; background: var(--paper-deep); }
.article-callout p { font-family: var(--sans); font-size: 14.5px; line-height: 1.55; }
.article-quote { padding: 22px 0; border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.3; color: var(--green); }
.photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.photo-grid img { height: 210px; }
.related-list, .comments-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.comment-list { display: grid; gap: 14px; margin-top: 18px; }
.comment-card { padding: 16px; border: 1px solid var(--line); border-radius: 0; background: var(--soft); }
.comment-author { color: var(--ink); font-weight: 700; }
.comment-date { margin-left: 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.comment-card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.comment-form { margin-top: 20px; }

.green-panel { padding: 28px; border-radius: 12px; background: var(--green); color: #fff; }
.green-panel h2, .green-panel h3 { color: #fff; }
.green-panel p { color: rgba(255,255,255,.85); }
.green-panel .form-card { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); box-shadow: none; border-top-color: var(--chip); }
.form-card .form-grid { flex: 1; margin-top: 16px; }
.form-card .button { margin-top: auto; }
.form-grid { display: grid; gap: 10px; }
.form-grid .pola-sekcja, .form-grid .pole-full { grid-column: 1 / -1; }
.pola-sekcja { display: grid; gap: 10px; }
.pola-wymagane { padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--soft); }
.pola-opcjonalne { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.pola-plakietka { display: inline-block; width: fit-content; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.pola-plakietka.wymagane { background: var(--accent); color: #fff; }
.pola-plakietka.opcjonalne { background: var(--paper-deep); color: var(--muted); }
.pola-grid { display: grid; gap: 10px; margin-top: 12px; }
.form-strip .pola-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-strip .pola-grid textarea.field, .form-strip .pola-grid .file-field { grid-column: 1 / -1; }
.brak-opcjonalnych-pol { margin: 8px 0 0; padding: 10px 4px 0; color: var(--muted); font-size: 12.5px; font-style: italic; text-align: center; }

.przelacznik-przykladu { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--green); border-radius: 20px; background: var(--soft); color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.przelacznik-przykladu svg { width: 13px; height: 13px; }
.przelacznik-przykladu.aktywny { background: var(--green); color: #fff; }
.przyklad-panel { margin-top: 12px; padding: 16px 18px; border: 1.5px dashed #C7A100; border-radius: 8px; background: #FFFBEA; }
.przyklad-panel-naglowek { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #8a6d00; font-weight: 500; }
.przyklad-pole { margin-bottom: 9px; }
.przyklad-pole:last-child { margin-bottom: 0; }
.przyklad-pole label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; color: #8a6d00; margin: 0 0 3px; }
.przyklad-pole .wartosc { font-size: 13px; color: #4a3c00; font-style: italic; line-height: 1.5; margin: 0; }

.file-field { min-height: 44px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 0; display: grid; gap: 6px; background: var(--paper); color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.35; }
.file-field input { width: 100%; color: var(--ink); font-size: 12px; }
.green-panel .captcha-field { color: rgba(255,255,255,.82); }
.green-panel .form-status { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; }
.green-panel .form-status strong { color: #fff; }
.green-panel .form-status span { color: rgba(255,255,255,.82); }

.site-footer { border-top: 4px solid var(--accent); background: var(--ink); color: #d7dae2; }
.footer-inner { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 34px 0 28px; display: grid; grid-template-columns: minmax(240px,1fr) minmax(150px,.5fr) minmax(190px,.65fr) minmax(150px,.5fr); gap: 28px; color: rgba(215,218,226,.8); font-size: 13px; }
.footer-brand { color: #fff; font-family: var(--serif); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.footer-copy { margin-top: 10px; line-height: 1.55; }
.footer-heading { margin-bottom: 12px; color: var(--chip); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; color: rgba(215,218,226,.9); }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.social-links a { min-height: 28px; padding: 6px 11px; border: 1px solid rgba(215,218,226,.3); border-radius: 0; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: rgba(215,218,226,.9); font-family: var(--mono); font-size: 11.5px; line-height: 1; }
.social-links svg { width: 13px; height: 13px; flex: 0 0 auto; }
.footer-report { padding: 16px; border: 1px solid var(--line); border-radius: 0; background: var(--soft); }
.footer-report p { margin-top: 8px; line-height: 1.45; }
.footer-mini-form { display: grid; gap: 8px; margin-top: 12px; }
.footer-mini-form input, .footer-mini-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; }
.footer-mini-form input { min-height: 38px; padding: 0 11px; }
.footer-mini-form textarea { min-height: 72px; padding: 10px 11px; resize: vertical; }
.footer-mini-form button { min-height: 38px; border: 0; border-radius: 0; background: var(--green); color: #fff; font: inherit; font-weight: 700; }

/* ---------- Sidebar: krótka zajawka "Masz info?" z linkiem do Kontaktu ---------- */
.board-panel { background: transparent; padding: 0; }
.board-teaser { background: var(--soft); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; box-shadow: 0 2px 6px rgba(20,32,58,.05); }
.board-teaser .today-title { margin-top: 4px; }
.board-form-desc { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 6px 0 14px; }
.board-teaser .button { width: 100%; min-height: 38px; font-size: 12.5px; }

/* ---------- Kontakt: sekcje podłużne ---------- */
.form-strip { display: flex; gap: 34px; align-items: flex-start; background: var(--soft); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; box-shadow: 0 2px 6px rgba(20,32,58,.05); padding: 22px 26px; margin-bottom: 16px; }
.form-strip.is-gold { border-top-color: var(--chip); }
.form-strip .fs-info { flex: 0 0 280px; }
.form-strip .fs-info h2 { margin-top: 6px; font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.form-strip .fs-info p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-strip .fs-info p.card-kicker { margin-top: 0; }
.form-strip .fs-form { flex: 1; min-width: 0; }
.form-strip .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-strip .form-grid textarea.field, .form-strip .file-field, .form-strip .captcha-field, .form-strip .form-status, .form-strip .topic-list, .form-strip .form-direct-contact { grid-column: 1 / -1; }
.form-direct-contact { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.form-direct-contact a { color: var(--green); text-decoration: underline; }
.form-strip .form-grid .button { grid-column: 1 / -1; width: fit-content; }

/* ---------- Strona główna: pasek newslettera nad stopką ---------- */
.home-newsletter { width: min(var(--max), calc(100% - 48px)); margin: 0 auto 64px; display: flex; align-items: center; gap: 30px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 6px rgba(20,32,58,.05); padding: 20px 26px; }
.home-newsletter .hn-text { flex: 1; }
.hn-kicker { color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.hn-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.hn-desc { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.hn-widget { flex: 1 1 360px; max-width: 440px; font-size: 12px; }
.hn-widget-native .form-grid { grid-template-columns: 1fr; gap: 8px; }
.hn-widget-native .field { background: #fff; min-height: 38px; font-size: 13px; }
.hn-widget-native .button { min-height: 38px; font-size: 12.5px; width: 100%; }

.consent-field { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.consent-field input { margin-top: 3px; flex: 0 0 auto; }
.consent-field a { text-decoration: underline; }
.hn-widget p { margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.hn-widget .ml-form-embedPermissions, .hn-widget [class*="Permissions"] { font-size: 10.5px; }

/* ---------- Szukajka ---------- */
.dm-search-form { display: flex; gap: 6px; }
.dm-search-form input { min-height: 36px; width: 150px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 13px; }
.dm-search-form button { min-height: 36px; padding: 0 12px; font-size: 12px; }

/* ---------- Menu mobilne: siatka kafelków ---------- */
.tile-menu { display: none; }

@media (max-width: 860px) {
  .header-inner, .page, .footer-inner, .hero, .essentials, .market-preview, .obituaries, .join-banner, .newsletter { width: min(100% - 32px, var(--max)); }
  .obituary-single { grid-template-columns: 40px 1fr; gap: 0 14px; padding: 24px 18px; }
  .obituary-krzyz { width: 24px; height: 42px; }
  .obituary-krzyz::before { width: 4px; height: 42px; }
  .obituary-krzyz::after { top: 9px; width: 20px; height: 4px; }
  .header-inner { min-height: auto; padding: 14px 0 12px; align-items: center; flex-wrap: wrap; gap: 12px; }
  .almanac-strip-inner, .util-bar-inner { flex-direction: column; gap: 4px; padding: 8px 0; }
  .header-search-row { padding: 9px 16px; }
  .form-strip { flex-direction: column; gap: 16px; }
  .form-strip .fs-info { flex: 0 0 auto; }
  .form-strip .form-grid { grid-template-columns: 1fr; }
  .home-newsletter { flex-direction: column; align-items: stretch; width: min(100% - 32px, var(--max)); }
  .hn-widget { flex: none; max-width: none; }
  .forecast-row { flex-wrap: wrap; gap: 12px 18px; }
  .forecast-row .fr-main { flex: 1 1 60%; }
  .fr-temp { flex: 0 0 auto; }
  .fr-desc { flex: 1 1 100%; }
  .fr-details { margin-left: 0; flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding-top: 10px; border-top: 1px solid #EADFC0; }
  .nav { display: none; }
  .tile-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100% - 32px, var(--max)); margin: 0 auto 14px; }
  .tile { display: flex; align-items: center; gap: 9px; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 9px; padding: 11px 12px; box-shadow: 0 1px 3px rgba(20,32,58,.05); }
  .tile.is-active { border-left-color: var(--accent); background: linear-gradient(165deg, #FFFEF9 0%, #FFF6DE 100%); }
  .tile-ic { width: 20px; height: 20px; flex: 0 0 auto; color: var(--green); }
  .tile.is-active .tile-ic { color: var(--accent); }
  .tile-label { font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--ink); text-transform: uppercase; letter-spacing: .01em; }
  .hero, .page-hero, .join-banner, .newsletter, .grid-2, .grid-3, .grid-4, .essentials-grid, .market-preview-grid, .obituary-grid, .photo-grid, .quick-grid, .weather-wide { grid-template-columns: 1fr; }
  .weather-wide .wmain { border-right: none; border-bottom: 1px solid #EADFC0; }
  .weather-wide .wforecast { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .essential-card { border-right: none; border-bottom: 1px solid var(--line); }
  .hero { padding: 24px 0 44px; gap: 26px; }
  .hero-heading, .section-heading, .section-head { align-items: flex-start; flex-direction: column; }
  .lead-title { font-size: clamp(30px,9vw,40px); line-height: 1.05; }
  .lead-image { height: clamp(190px,50vw,280px); }
  .join-form, .signup-form { grid-template-columns: 1fr; }
  .community { width: min(100% - 32px, var(--max)); padding: 32px 24px 26px; }
  .community-top { flex-direction: column; gap: 18px; }
  .community-layout { grid-template-columns: 1fr; }
  .article-page, .page-narrow { width: min(100% - 32px, 820px); padding-top: 36px; }
  .content-photo, .photo-grid img { height: 200px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand { white-space: normal; flex-wrap: wrap; }
  .brand-name { font-size: 26px; }
  .lead-title { font-size: 30px; }
  .story-card { grid-template-columns: 1fr 84px; gap: 12px; }
  .story-thumb { height: 60px; }
  .community { border-radius: 0; padding: 28px 18px 20px; }
  .community-title { font-size: 27px; }
  .obituary-card { min-height: auto; padding: 20px 16px 19px; }
}
