/*
Theme Name: Dla Mieszkańców
Author: Dla Mieszkańców
Description: Motyw portalu informacyjnego gminy Trzyciąż z aktualnościami, niezbędnikiem, lokalnym rynkiem, nekrologami i formularzami zgłoszeń.
Version: 1.2.0
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: 18px 0 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 32px; letter-spacing: -.01em; line-height: 1; 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: 4px; color: var(--green); font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.nav a { min-height: auto; padding: 10px 12px 8px; border-radius: 0; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; justify-content: center; }
.nav a[aria-current="page"], .nav .current-menu-item a { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; }

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: 0; 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: 0; 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: 0; background: var(--soft); box-shadow: 0 2px 6px rgba(20,32,58,.05); }
.market-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; }
.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: 0; 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; }
.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); }

.weather-wide { background: var(--green); color: #fff; display: grid; grid-template-columns: minmax(0,.6fr) minmax(0,1fr); border: 1px solid var(--green); }
.weather-wide .wmain { padding: 22px 26px; border-right: 1px solid rgba(255,255,255,.18); }
.weather-wide .wtemp { font-family: var(--serif); font-weight: 700; font-size: 56px; line-height: 1; }
.weather-wide .wdesc { color: #c7d3e8; font-size: 13px; margin-top: 6px; }
.weather-wide .wforecast { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.weather-wide .wday { padding: 22px 10px; text-align: center; border-right: 1px solid rgba(255,255,255,.14); font-size: 12px; color: #c7d3e8; }
.weather-wide .wday:last-child { border-right: none; }
.weather-wide .wday b { display: block; font-family: var(--mono); font-size: 16px; color: #fff; margin-top: 5px; }

.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: 0; 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: 0; 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: 0; 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: 0; 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-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 */
.obituary-card { min-height: 240px; padding: 22px 18px 20px; border: 1px solid #999; border-radius: 0; background: #fff; color: #111; text-align: center; display: block; box-shadow: none; }
.obituary-kicker { color: #444; font-family: Georgia, "Times New Roman", serif; font-size: 11px; font-weight: 400; letter-spacing: .18em; line-height: 1; text-transform: uppercase; }
.obituary-rule { width: 46px; height: 1px; margin: 12px auto 16px; background: #999; }
.obituary-name { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; line-height: 1.25; color: #111; }
.obituary-years { margin-top: 5px; color: #444; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.35; }
.obituary-detail { margin-top: 8px; color: #222; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 14px; line-height: 1.4; }
.obituary-single { max-width: 680px; margin: 0 auto; padding: 46px 42px; border: 1px solid #999; border-radius: 0; background: #fff; color: #111; text-align: center; }
.obituary-single .obituary-name { font-size: clamp(28px,5vw,38px); }
.obituary-message { max-width: 540px; margin: 24px auto 0; color: #222; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.65; }
.obituary-card .thumb, .obituary-single .thumb { display: block; width: 40px; height: 40px; margin: 0 auto 10px; filter: grayscale(1); opacity: .8; }
.share-box { max-width: 680px; margin: 20px auto 0; padding: 16px; border: 1px solid var(--line); border-radius: 0; 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; }
.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: 0; 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; }
.file-field { min-height: 44px; padding: 12px 14px; border: 1px dashed rgba(255,255,255,.4); border-radius: 0; display: grid; gap: 6px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.86); font-family: var(--mono); font-size: 12px; line-height: 1.35; }
.file-field input { width: 100%; color: rgba(255,255,255,.8); 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: Ostatnie pożegnania (zamiast tablicy ogłoszeń) ---------- */
.board-panel { background: transparent; padding: 0; }
.pin-card { position: relative; background: #fff; border: 1px solid #999; box-shadow: none; padding: 14px 16px 15px; margin-top: 12px; text-align: center; }
.pin-card:first-child { margin-top: 0; }
.pin-dot { display: none; }
.pin-body { display: block; }
.pin-thumb { display: none; }
.pin-text h3 { font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 400; margin: 2px 0 5px; color: #111; }
.pin-text p { font-size: 12.5px; margin: 0; color: #333; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.pin-card.is-obit .pin-text h3 { color: #111; }

/* ---------- 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 ---------- */
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--soft); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 20px; height: 2px; background: var(--green); position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .header-inner, .page, .footer-inner, .hero, .essentials, .market-preview, .obituaries, .join-banner, .newsletter { width: min(100% - 32px, var(--max)); }
  .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; }
  .nav-toggle { display: flex; }
  .nav { width: 100%; order: 3; flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav.is-open { max-height: 480px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
  .nav a { width: 100%; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .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 rgba(255,255,255,.18); }
  .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; }
}
