/*
Theme Name: narejonie.pl
Author: narejonie.pl
Description: Motyw portalu wielogminnego z aktualnościami, niezbędnikiem, lokalnym rynkiem, nekrologami i formularzami zgłoszeń, z obsługą wielu gmin i personalizacją treści.
Version: 1.3.6
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: narejonie
*/

:root {
  --paper: #F5F4FB;
  --paper-deep: #ECE8FA;
  --ink: #171335;
  --muted: #6b6885;
  --line: #e6e3f5;
  --accent: #E9B44C;
  --accent2: #357DED;
  --urgent: #E63946;
  --green: #00296B;
  --green-deep: #001233;
  --green-solid: #00296B;
  --ok: #00296B;
  --soft: #FFFFFF;
  --chip: #E9B44C;
  --card-shadow: 0 4px 18px rgba(0,41,107,.08);
  --card-radius: 14px;
  --weather-grad-a: #5B93F2;
  --weather-grad-b: #00296B;
  --weather-border: #c8bff2;
  --wt-chip-bg: rgba(255,255,255,.16);
  --nav-active: transparent;
  --max: 1140px;
  --serif: 'Poppins', Arial, sans-serif;
  --sans: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'Poppins', Arial, sans-serif;
}

/* Ciemny motyw — granatowo-niebieska paleta spójna z granatowym kolorem wiodącym
   jasnego motywu (#00296B), świadomie MNIEJ fioletowa niż poprzednia wersja
   (było zbyt indygo/fioletowo, właściciel poprosił o bardziej "przyjazny" ciemny
   granat). Przełączany atrybutem data-theme na <html>, patrz .theme-toggle
   w header.php. */
:root[data-theme="dark"] {
  --paper: #0B1526;
  --paper-deep: #101F38;
  --ink: #E7ECF6;
  --muted: #8FA0BF;
  --line: #22344F;
  --accent: #F0C36B;
  --accent2: #5B9CFF;
  --green: #3D7FD0;
  --green-deep: #081222;
  --ok: #3D7FD0;
  --soft: #132038;
  --chip: #F0C36B;
  --card-shadow: 0 4px 18px rgba(0,0,0,.45);
  --weather-grad-a: #3D6FC4;
  --weather-grad-b: #081222;
  --weather-border: #2A4468;
  --wt-chip-bg: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
html { transition: background-color .15s ease, color .15s ease; }
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; }

/* ---------- Górny stos: data/pogoda, PILNE, menu — spójne zaokrąglone paski
   tej samej szerokości, pływające z marginesem od krawędzi ekranu, zamiast
   trzech pełnoszerokich, kwadratowych belek. ---------- */
.top-stack { width: min(var(--max), calc(100% - 56px)); margin: 14px auto 0; display: flex; flex-direction: column; gap: 8px; }

.util-bar { border-radius: 12px; background: var(--green-deep); color: #c7d3e8; font-family: var(--mono); font-size: 12px; }
.util-bar-inner { padding: 7px 20px; 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 { display: block; border-radius: 12px; background: var(--urgent); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.almanac-strip-link { text-decoration: none; }
.almanac-strip-link:hover { background: color-mix(in srgb, var(--urgent) 88%, #000); }
.almanac-strip-inner { padding: 8px 20px; 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; border-radius: 4px; }

/* ---------- Nawigacja: jedna zaokrąglona karta (logo+menu, potem gmina/szukaj/logowanie) ---------- */
.nav-card { width: 100%; min-width: 0; }
.site-header, .nav-card {
  border-radius: 20px;
  background: linear-gradient(100deg, var(--green) 0%, #0B4DA6 100%);
  box-shadow: 0 10px 30px rgba(0,18,51,.18);
}
:root[data-theme="dark"] .site-header, :root[data-theme="dark"] .nav-card { background: linear-gradient(100deg, #0B2A52 0%, #123B72 100%); }

.nav-row1 { display: flex; align-items: center; gap: 14px; padding: 16px 22px 12px; border-radius: 20px 20px 0 0; }
.nav-row1 .brand { flex: 0 0 auto; }
.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: 25px; letter-spacing: -.01em; line-height: 1.05; text-transform: uppercase; }
.brand-na { color: var(--chip); }
.brand-rejonie { color: #fff; }
.brand-suffix { color: rgba(255,255,255,.65); text-transform: lowercase; }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; margin-left: 4px; color: rgba(255,255,255,.88); font-family: var(--serif); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; text-transform: none; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { min-height: auto; padding: 8px 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; flex: 0 0 auto; }
.nav a[aria-current="page"], .nav .current-menu-item a { background: rgba(255,255,255,.18); color: #fff; }
.nav-toggle { display: none; }
.nav-row1-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }

.nav-row2 { border-radius: 0 0 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px 16px; border-top: 1px solid rgba(255,255,255,.14); }
.nav-row2-right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: 0 0 auto; }
.nav-row2-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Przycisk "+" w pasku nawigacji (pkt 20) — otwiera to samo menu "Dodaj do
   portalu" co sekcja Mieszkańcy na stronie głównej (patrz nrj_dodaj_do_portalu_items()),
   działa tak samo jak "+" w appce mobilnej. Ciemne tło popovera, bo
   community-add-btn (odziedziczony wygląd z community-add-grid) ma biały tekst. */
.dodaj-toggle { position: relative; }
.dodaj-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #E63946; background: #E63946; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(230,57,70,.45); transition: background .15s, transform .1s; }
.dodaj-icon-btn:hover { background: #d32f3c; border-color: #d32f3c; }
.dodaj-icon-btn:active { transform: scale(.94); }
.dodaj-icon-btn[aria-expanded="true"] { background: #d32f3c; border-color: #d32f3c; }
.dodaj-icon-btn svg { width: 19px; height: 19px; stroke-width: 2.6; }
.dodaj-expand {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: min(320px, 90vw);
  background: linear-gradient(100deg, var(--green) 0%, #0B4DA6 100%); border: 1px solid rgba(255,255,255,.18); border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,18,51,.28); padding: 14px;
}
:root[data-theme="dark"] .dodaj-expand { background: linear-gradient(100deg, #0B2A52 0%, #123B72 100%); }
.dodaj-expand[hidden] { display: none !important; }
.dodaj-expand-grid { display: grid; gap: 8px; }
.dodaj-expand .community-add-btn { padding: 10px 12px; font-size: 12.5px; }
.dodaj-expand .cab-icon { width: 32px; height: 32px; }
.dodaj-expand .cab-icon svg { width: 17px; height: 17px; }
.dodaj-expand .community-login-note { margin: 10px 2px 0; color: rgba(255,255,255,.8); font-size: 12.5px; }
.dodaj-expand .community-login-note a { color: #fff; }

/* Na średnich szerokościach (poniżej których menu tekstowe nie mieści się w jednym rzędzie,
   ale jeszcze za szeroko na kafelkowe menu mobilne) menu chowało się w niewidoczny,
   przewijany poziomo pasek — ostatnie pozycje (np. "Kontakt") były wtedy niedostępne
   bez świadomości, że trzeba przewinąć. Zamiast tego menu zawija się do drugiej linii. */
/* Bez górnej granicy: kontener treści ma max-width: var(--max) = 1140px (patrz niżej), więc
   pasek nawigacji NIGDY nie dostaje więcej miejsca niż to, niezależnie jak szeroki jest ekran
   — wcześniejsza wersja tej reguły miała górną granicę 1180px w błędnym założeniu, że powyżej
   niej robi się wystarczająco miejsca; bug wracał na każdym szerszym ekranie (1300px, 1440px...). */
@media (min-width: 861px) {
  .nav-row1 { flex-wrap: wrap; }
  .nav-row1 .brand { order: 1; }
  .nav-row1-actions { order: 2; }
  .nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; overflow: visible; margin-left: 0; margin-top: 6px; }
}

/* ---------- Selektor gminy: zawsze widoczny, przewijalny rząd pigułek (nie rozwijana lista) ---------- */
.gmina-chip-row { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.gmina-chip-row::-webkit-scrollbar { display: none; }
.gmina-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 34px; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); font-family: var(--serif); font-weight: 700; font-size: 12.5px; white-space: nowrap; text-decoration: none; }
.gmina-chip:hover { border-color: rgba(255,255,255,.55); }
.gmina-chip.active { background: #fff; border-color: #fff; color: var(--green-solid); }

/* Pasek „Pokazujesz treści z gminy X" nad listami, gdy filtr aktywny.
   Dynamiczna obwódka: świetlny łuk krąży bez końca dookoła ramki
   (rotujący conic-gradient za nieprzezroczystą warstwą .gfn-inner — widać
   tylko cienki, świecący pierścień na krawędzi). */
.gmina-filter-notice {
  position: relative;
  max-width: var(--max);
  width: calc(100% - 56px);
  margin: 18px auto 4px;
  padding: 2px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  background: var(--line);
  box-shadow: 0 6px 22px rgba(0,41,107,.14);
}
.gfn-blob {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 240%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    transparent 0deg,
    transparent 250deg,
    rgba(240,162,2,.35) 285deg,
    #F0A202 320deg,
    #ff5a48 350deg,
    rgba(255,90,72,.35) 358deg,
    transparent 360deg);
  animation: nrj-orbit 3.2s linear infinite;
}
/* Drugi łuk — po przeciwnej stronie, inny kolor, wolniej — daje wrażenie
   „dwóch świateł" krążących po obwodzie. */
.gfn-blob-2 {
  background: conic-gradient(from 180deg,
    transparent 0deg,
    transparent 280deg,
    rgba(0,41,107,.3) 315deg,
    var(--green) 345deg,
    rgba(95,217,174,.4) 356deg,
    transparent 360deg);
  animation-duration: 4.6s;
  opacity: .9;
}
@keyframes nrj-orbit { to { transform: translate(-50%, -50%) rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .gfn-blob { animation: none; background: conic-gradient(from 0deg, var(--accent), #ff5a48, var(--green), var(--accent)); opacity: .5; }
  .gfn-blob-2 { display: none; }
}
.gfn-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--soft);
  font-family: var(--sans);
  color: var(--ink);
}
.gfn-ikona { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.gfn-ikona svg { width: 20px; height: 20px; }
.gfn-tresc { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.gfn-kicker { font-family: var(--serif); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b5341c; }
.gfn-glowna { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.gfn-glowna strong { font-weight: 800; color: var(--green-solid); }
.gfn-podpis { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.gfn-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  background: var(--green-solid);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.gfn-btn:hover { background: var(--green-deep); }
[data-theme="dark"] .gmina-filter-notice { background: var(--line); }
[data-theme="dark"] .gfn-inner { background: var(--soft); color: var(--ink); }
[data-theme="dark"] .gfn-kicker { color: #ff8a7a; }
[data-theme="dark"] .gfn-glowna strong { color: var(--green); }
@media (max-width: 640px) {
  .gfn-inner { flex-wrap: wrap; gap: 10px; padding: 13px 15px; }
  .gfn-btn { width: 100%; justify-content: center; }
}

/* [hidden] musi wygrywać z regregułami display na komponentach (np. .forecast-list
   ma display:grid) — inaczej sekcje „rozwijane" pokazują się od razu. */
[hidden] { display: none !important; }

/* Przycisk „Rozwiń całą pogodę" w Niezbędniku (prognoza 14-dniowa pod paskiem godzinowym). */
.weather-rozwin { display: block; width: 100%; margin: 14px 0 0; text-align: center; }
.weather-rozwin .wr-ukryj { display: none; }
.weather-rozwin[aria-expanded="true"] .wr-pokaz { display: none; }
.weather-rozwin[aria-expanded="true"] .wr-ukryj { display: inline; }
#pogoda-pelna { margin-top: 16px; }

/* ---------- Wyszukiwarka: sama lupa, rozwija pole po kliknięciu ---------- */
.search-toggle { position: relative; }
.search-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.search-icon-btn:hover { border-color: rgba(255,255,255,.55); }
.search-icon-btn svg { width: 16px; height: 16px; }
.search-expand {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: min(280px, 86vw);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0,18,51,.22); padding: 4px 6px 4px 16px;
}
.search-expand[hidden] { display: none !important; }
.search-expand .dm-search-form { display: flex; align-items: center; gap: 8px; width: 100%; }
.search-expand .dm-search-form input { flex: 1; min-height: 34px; width: auto; max-width: none; border: 0; background: transparent; padding: 0; }
.search-expand .dm-search-form button { min-height: 32px; padding: 0 14px; border-radius: 999px; }

/* ---------- Powiększanie tekstu (dostępność dla seniorów) ---------- */
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: rgba(255,255,255,.55); }
.font-toggle { min-height: 38px; width: 38px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 11px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0; cursor: pointer; }
.font-toggle:hover { border-color: rgba(255,255,255,.55); }
.account-link { min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; background: rgba(255,255,255,.14); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.account-link:hover { border-color: rgba(255,255,255,.55); }
.account-link-cta { background: var(--accent); border-color: var(--accent); color: #2b1d00; border-radius: 30px; }
.account-link-cta:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.08); }
.font-toggle .font-toggle-plus { font-size: 9px; }
.font-toggle[aria-pressed="true"] { background: var(--accent2); border-color: var(--accent2); color: #fff; }
html.dm-font-large body { zoom: 1.18; }

/* ---------- Przełącznik jasny / ciemny motyw ---------- */
/* Przełącznik motywu — kulka z tekstem/ikoną przesuwająca się w torze (dopasowany
   z inspiracji Uiverse.io by JaydipPrajapati1910, przekolorowany na markę narejonie). */
.theme-toggle { min-height: 34px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.theme-toggle-track { position: relative; width: 132px; height: 34px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); box-sizing: border-box; display: flex; align-items: center; flex-shrink: 0; transition: background-color .3s ease, border-color .3s ease; }
.theme-toggle:hover .theme-toggle-track { border-color: rgba(255,255,255,.55); }
:root[data-theme="dark"] .theme-toggle-track { background: rgba(255,255,255,.08); }
.theme-toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 64px; height: 26px; z-index: 0;
  border-radius: 999px; background: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  transition: transform .3s cubic-bezier(.18,.89,.35,1.15), background-color .3s ease;
}
:root[data-theme="dark"] .theme-toggle-knob { transform: translateX(64px); background: var(--accent2); }
.theme-toggle-option {
  position: relative; z-index: 1; flex: 0 0 65px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  color: rgba(255,255,255,.7); transition: color .3s ease;
}
.theme-toggle-option-light { color: #2b1d00; }
:root[data-theme="dark"] .theme-toggle-option-light { color: rgba(255,255,255,.7); }
:root[data-theme="dark"] .theme-toggle-option-dark { color: #0B0720; }

h1, h2, h3, p { margin: 0; }
main.page { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 40px 0 76px; }
.page-narrow { width: min(820px, calc(100% - 56px)); margin: 0 auto; padding: 40px 0 76px; }
.article-page { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 40px 0 76px; display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,340px); gap: 40px; align-items: start; }
.article-main { max-width: 760px; }
/* Szablony bez `.article-sidebar` (np. single-info_mieszkanca.php) nie mają co
   wstawić w drugą kolumnę siatki .article-page — bez tego drugi, pusty grid item
   (tu: sam .article-main, bo grid auto-placement liczy KOLEJNE dzieci jako
   kolejne kolumny) potrafił wciągnąć np. sekcję komentarzy w prawą kolumnę
   zamiast pod artykuł. Wymuszamy jedną, wyśrodkowaną kolumnę. */
.article-page--no-sidebar { grid-template-columns: minmax(0, 760px); justify-content: center; }
.article-sidebar { display: grid; gap: 20px; position: sticky; top: 20px; }
.asw-item { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: center; text-decoration: none; padding: 8px; margin: 0 -8px; border-radius: 10px; }
.asw-item:hover { background: var(--paper); }
.asw-item img { display: block; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--paper-deep); }
.asw-item .asw-title { font-family: var(--serif); font-size: 13.5px; font-weight: 700; line-height: 1.32; color: var(--ink); }
.asw-list { display: grid; gap: 6px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr); gap: 40px; align-items: center; margin: 0 0 34px; padding: 32px 36px; border-radius: 18px; background: var(--paper-deep); border-bottom: none; }
.page-hero-solo { grid-template-columns: 1fr; }
.filter-row-spaced { margin-bottom: 6px; }
.grid-3-spaced { margin-top: 30px; }
.card-kicker, .story-category { display: inline-block; align-self: flex-start; max-width: max-content; width: auto; color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); font-family: var(--serif); font-size: 10.5px; font-weight: 800; letter-spacing: .03em; line-height: 1; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.kicker { display: inline-block; margin-bottom: 14px; color: #fff; background: var(--green); font-family: var(--serif); font-size: 11.5px; font-weight: 800; letter-spacing: .03em; line-height: 1; text-transform: uppercase; padding: 7px 16px; border-radius: 20px; }
.obituary-kicker { color: #444; background: none; font-family: Georgia, "Times New Roman", serif; padding: 0; border-radius: 0; letter-spacing: .14em; font-size: 12px; }

/* ---------- Tablica: kolor plakietki wg typu treści ---------- */
.article-card[data-typ="info_mieszkanca"] .card-kicker { color: #1a4fa0; background: #e5eefe; }
.article-card[data-typ="lokalny_plon"] .card-kicker { color: #8a6100; background: #fff3d8; }
.article-card[data-typ="lokalna_firma"] .card-kicker { color: #1e6b2e; background: #e8f5ea; }
.article-card[data-typ="ogloszenie"] .card-kicker { color: #b3222d; background: #fde7e8; }

/* ---------- Kategorie artykułów blog: kolor plakietki wg kategorii WP ---------- */
.card-kicker.cat-sport, .story-category.cat-sport { color: #1E7A45; background: #E1F5E8; }
.card-kicker.cat-polityka, .story-category.cat-polityka { color: #A5262E; background: #FBE4E5; }
.card-kicker.cat-bezpieczenstwo, .story-category.cat-bezpieczenstwo { color: #B15D06; background: #FDEBD8; }
.card-kicker.cat-edukacja, .story-category.cat-edukacja { color: #5636D1; background: #EAE5FC; }
.card-kicker.cat-kultura, .story-category.cat-kultura { color: #A23A72; background: #FBE4F1; }
.card-kicker.cat-seniorzy, .story-category.cat-seniorzy { color: #0B7A72; background: #DFF3F1; }
.card-kicker.cat-gospodarka, .story-category.cat-gospodarka { color: #8A6100; background: #FFF3D8; }
.card-kicker.cat-aktualnosci, .story-category.cat-aktualnosci { color: var(--accent2); background: color-mix(in srgb, var(--accent2) 12%, transparent); }

.section-tag.cat-sport, .kicker.cat-sport { background: #2E9E5B; }
.section-tag.cat-polityka, .kicker.cat-polityka { background: #C23B3B; }
.section-tag.cat-bezpieczenstwo, .kicker.cat-bezpieczenstwo { background: #D9730D; }
.section-tag.cat-edukacja, .kicker.cat-edukacja { background: #6D4AFF; }
.section-tag.cat-kultura, .kicker.cat-kultura { background: #C2478D; }
.section-tag.cat-seniorzy, .kicker.cat-seniorzy { background: #0E8C82; }
.section-tag.cat-gospodarka, .kicker.cat-gospodarka { background: #A9791B; }
.section-tag.cat-aktualnosci, .kicker.cat-aktualnosci { background: var(--accent2); }
.ogloszenie-cena { font-family: var(--serif); font-weight: 800; font-size: 24px; color: var(--green-solid); margin: 4px 0 16px; }
h1 { max-width: 760px; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; color: var(--ink); }
.lead { max-width: 660px; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.hero-note { padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--chip); border-radius: 14px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.55; }
.hero-note-cta p { margin: 0 0 10px; }
.hero-note-cta .button { min-height: 38px; padding: 0 16px; font-size: 12.5px; }
.section { margin-top: 36px; }
.section-heading, .section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-heading h2, .section-head h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.15; color: var(--green); }
.section-head .section-link { flex: 0 0 auto; }
.section-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent2);
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 7px 14px;
  border: 1.5px solid var(--accent2);
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.section-link:hover { background: var(--accent2); color: #fff; }
/* Wyjątek: link w kafelku pogody siedzi na kolorowym tle własnej karty (patrz reguła
   ".weather-tile .section-link" niżej) — tam obrys/tło pill zgryzałby się z tłem karty. */
.weather-tile .section-link { border: none; padding: 0; border-radius: 0; }
.weather-tile .section-link:hover { background: none; color: #fff; }
.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)); }

/* ---------- Strona główna: hero w 3 kolumnach — duży wiodący artykuł, dwa
   mniejsze, pogoda + "Masz info" po prawej. Tekst zawsze na białym tle karty
   pod zdjęciem, nigdy jako napis z gradientem na wierzchu zdjęcia. ---------- */
.hero3 { width: min(var(--max), calc(100% - 56px)); margin: 28px auto 0; display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1.3fr) minmax(240px,1fr); gap: 20px; align-items: start; }
.h3-lead { display: block; border-radius: 18px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(0,41,107,.10); }
.h3-lead img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--paper-deep); }
.h3-lead-body { padding: 20px 24px 24px; }

.h3-mid { display: grid; gap: 20px; }
.h3-mid-card { display: block; border-radius: 16px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,41,107,.08); }
.h3-mid-card img { display: block; width: 100%; height: 190px; object-fit: contain; background: var(--paper-deep); }
.h3-mid-card .h3-mid-body { padding: 14px 16px 16px; }
.h3-mid-card h3 { font-family: var(--serif); font-size: 15.5px; font-weight: 700; line-height: 1.28; color: var(--ink); margin: 7px 0 0; }

/* ---------- Pasek pogody pełnoszerokościowy (zastępuje boczną kartę .weather-tile
   w hero strony głównej — segmentowy układ: lokalizacja | teraz | dziś | najbliższe dni) ---------- */
.weather-bar {
  width: min(var(--max), calc(100% - 56px)); margin: 28px auto 0;
  border-radius: 20px; background: linear-gradient(100deg, var(--weather-grad-a) 0%, var(--weather-grad-b) 100%);
  box-shadow: 0 10px 30px rgba(0,18,51,.18); color: #fff;
  display: flex; align-items: stretch; overflow: hidden;
}
.wb-seg { padding: 14px 22px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.16); flex: 0 0 auto; }
.wb-seg-forecast { flex: 1; border-right: none; min-width: 0; }
.wb-kicker { font-family: var(--serif); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0 0 6px; }
.wb-loc-name { font-family: var(--serif); font-weight: 700; font-size: 15px; margin: 0; }
.wb-loc-date { font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,.75); margin: 2px 0 0; }
.wb-now { display: flex; align-items: center; gap: 10px; }
.wb-temp { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1; margin: 0; }
.wb-opis { font-family: var(--serif); font-weight: 700; font-size: 11.5px; margin: 2px 0 0; }
.wb-hilo-row { display: flex; gap: 14px; }
.wb-hilo-item { text-align: center; }
.wb-hilo-num { font-family: var(--serif); font-weight: 800; font-size: 17px; display: block; }
.wb-hilo-lbl { font-family: var(--sans); font-size: 9.5px; color: rgba(255,255,255,.7); }
.wb-forecast { display: flex; align-items: center; justify-content: space-around; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.wb-forecast::-webkit-scrollbar { display: none; }
.wb-day { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 0 0 auto; }
.wb-day-name { font-family: var(--serif); font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.72); }
.wb-day-temp { font-family: var(--serif); font-size: 11.5px; font-weight: 800; }
.wb-more { flex: 0 0 auto; align-self: center; padding: 0 22px; color: #fff; opacity: .85; font-family: var(--serif); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Sekcja główna z artykułami — lead + 2 małe po lewej, 2 artykuły +
   kafelek appki po prawej (zastępuje dawny .hero3 trzy-kolumnowy układ) ---------- */
.hero-grid-section { width: min(var(--max), calc(100% - 56px)); margin: 20px auto 0; }
.hg-outer { display: flex; gap: 16px; align-items: stretch; }
.hg-left { flex: 2; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hg-left-bottom { display: flex; gap: 16px; }
.hg-left-bottom > .hg-card { flex: 1; min-width: 0; }
.hg-right-col { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.hg-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,41,107,.08); text-decoration: none; }
.hg-photo { display: block; aspect-ratio: 16 / 9; background: var(--paper-deep); overflow: hidden; }
.hg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hg-body { display: flex; flex-direction: column; padding: 14px 16px 16px; flex: 1; }
.hg-body .place-badges { margin-top: 8px; }
.hg-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 15.5px; line-height: 1.28; color: var(--ink); margin-top: 10px; }
.hg-lead .hg-title { font-size: 24px; margin-top: 12px; }
.hg-meta { display: block; margin-top: auto; padding-top: 10px; font-family: var(--sans); font-size: 11px; color: var(--muted); }

.hg-app-tile {
  flex: 1; min-height: 120px; border-radius: 16px;
  background: linear-gradient(135deg, var(--green) 0%, #0B4DA6 100%); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 18px 20px; gap: 6px;
}
.hg-app-tile-qr { width: 74px; height: 74px; border-radius: 8px; overflow: hidden; border: 3px solid #fff; background: #fff; margin-bottom: 4px; line-height: 0; }
.hg-app-tile-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hg-app-tile-title { font-family: var(--serif); font-weight: 800; font-size: 14.5px; margin: 0; }
.hg-app-tile-desc { font-family: var(--sans); font-size: 11.5px; color: rgba(255,255,255,.82); line-height: 1.4; margin: 0; }
.hg-app-tile-desc-mobile { display: none; }
/* Kod QR ma sens tylko na desktopie (skanujemy telefonem obcy ekran) — na mobile,
   gdzie ktoś i tak trzyma telefon w ręku, pokazujemy zwykły przycisk zamiast QR,
   dokładnie ten sam wzorzec co #dm-app-banner w stopce (patrz footer.php/media 520px). */
.hg-app-tile-btn-mobile { display: none; background: #fff; color: var(--green-solid); font-family: var(--serif); font-weight: 700; font-size: 12.5px; padding: 9px 20px; border-radius: 999px; text-decoration: none; margin-bottom: 4px; }

.board-panel-standalone { width: min(var(--max), calc(100% - 56px)); margin: 0 auto 40px; }
.board-panel-standalone .board-teaser { max-width: 480px; }

/* System slotów promocyjnych (patrz inc/reklamy.php, panel.narejonie.pl).
   NAZEWNICTWO: celowo bez tokenu „ad" w klasach/atrybutach renderowanych do
   DOM — inaczej filtry kosmetyczne AdBlock/uBlock/Brave chowają kontener
   (`ad-banner`, `-ad-`, `data-ad` to typowe cele). Wewnętrzny znacznik
   redaktora `nrj-ad-marker` może zostać — jest podmieniany po stronie
   serwera (filtr the_content) i nigdy nie trafia do DOM przeglądarki na WWW.
   Obrazkowe kreacje wypełniają kontener przez object-fit:cover — liczą się
   proporcje, nie pixel-perfect rozmiar pliku. */
.nrj-slot-img { display: block; width: 100%; border-radius: inherit; overflow: hidden; aspect-ratio: 1140 / 220; }
.nrj-slot-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hg-app-tile.nrj-slot-img { padding: 0; background: none; }

/* Slot „kafelek w kolumnie hero" — nie może się rozciągać do wysokości sąsiada. */
.nrj-slot[data-slot="home_app_tile"] { align-self: start; }
.nrj-slot[data-slot="home_app_tile"].nrj-slot-img { aspect-ratio: 375 / 220; }

.nrj-banner-row { width: min(var(--max), calc(100% - 56px)); margin: 32px auto; }
.nrj-banner-row .nrj-slot-img { border-radius: 14px; }
.nrj-banner-row.is-tall .nrj-slot-img { aspect-ratio: 1140 / 280; }

/* Slot wstawiany ręcznie w treści artykułu (znacznik z edytora). */
.nrj-slot-inline .nrj-slot-img { aspect-ratio: 760 / 260; margin: 24px 0; border-radius: 12px; }

@media (max-width: 860px) {
  .weather-bar { width: min(100% - 32px, var(--max)); flex-direction: column; }
  .wb-seg { border-right: none; border-bottom: 1px solid rgba(255,255,255,.16); }
  .wb-seg-forecast { border-bottom: none; }
  .wb-more { align-self: flex-start; padding: 12px 22px; }
  .hero-grid-section, .board-panel-standalone { width: min(100% - 32px, var(--max)); }
  .hg-outer { flex-direction: column; }
  .hg-left-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .hg-app-tile-qr { display: none; }
  .hg-app-tile-btn-mobile { display: inline-block; }
  /* Na telefonie nie ma czego skanować — QR ukryty, więc podpis „Zeskanuj
     telefonem" wprowadzałby w błąd. Zamiast niego krótkie „Android i iPhone",
     a przycisk „Pobierz aplikację →" kieruje na /app/ (wykrywa iOS/Android
     i przerzuca do właściwego sklepu). */
  .hg-app-tile-desc-qr { display: none; }
  .hg-app-tile-desc-mobile { display: block; }
}

.h3-aside { display: grid; gap: 16px; }
.h3-aside .weather-tile { margin-bottom: 0; }

.article-image { display: block; width: 100%; object-fit: cover; background: var(--paper-deep); }

/* ---------- Karta produktu Lokalnego rynku (plon/firma/ogłoszenie) — zdjęcie obok
   danych zamiast jednego wielkiego zdjęcia na całą szerokość (zgłoszone 2026-08-23) ---------- */
.product-hero { display: flex; gap: 24px; align-items: flex-start; margin-top: 22px; }
.product-hero-photo { flex: 0 0 300px; border-radius: 14px; overflow: hidden; background: var(--paper-deep); aspect-ratio: 4 / 3; }
.product-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-hero-card { flex: 1; min-width: 0; }
.product-hero-card .article-content { margin-top: 0; }
.product-hero-card .share-box { margin-left: 0; margin-right: 0; max-width: none; }

.product-gallery { margin-top: 28px; }
.product-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.product-gallery-grid a { display: block; border-radius: 10px; overflow: hidden; background: var(--paper-deep); }
.product-gallery-grid img { display: block; width: 100%; height: 100px; object-fit: cover; }

@media (max-width: 700px) {
  .product-hero { flex-direction: column; }
  .product-hero-photo { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 10; }
}
.section-tag { width: fit-content; margin: 0 0 12px; padding: 6px 14px; border-radius: 20px; background: var(--accent2); color: #fff; font-family: var(--serif); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .03em; text-transform: uppercase; }
.lead-title { font-family: var(--serif); font-size: 25px; font-weight: 800; letter-spacing: -.005em; line-height: 1.18; color: var(--ink); }
.lead-summary { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.meta { margin-top: 10px; color: var(--muted); font-family: var(--sans); font-size: 12px; letter-spacing: .02em; text-transform: none; line-height: 1.5; }
.today-title { margin-bottom: 0; padding: 0; font-family: var(--serif); font-size: 19px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: none; line-height: 1.2; }
.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: 14px; background: var(--soft); box-shadow: 0 2px 6px rgba(0,41,107,.08); overflow: hidden; }
.market-card .thumb { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; object-position: center; background: var(--paper-deep); border-radius: 8px; margin: 0 0 14px; }
.info-card .thumb { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: contain; background: var(--paper-deep); border-radius: 8px; margin: 0 0 14px; }
.info-card .thumb-logo { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; object-position: center; padding: 14px; box-sizing: border-box; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; }
.article-card { overflow: hidden; display: block; }
.article-card img { display: block; width: 100%; height: 165px; object-fit: contain; background: var(--paper-deep); }

/* Strona główna — „Nadchodzące wydarzenia": nadal 4 w rzędzie, ale zdjęcia
   przycinane do kadru i większy tytuł, żeby kafelki nie były takie mizerne. */
.events-home .article-card img { height: 178px; object-fit: cover; }
.events-home .article-card h2 { font-size: 17px; line-height: 1.22; }
.calendar-event-grid { display: grid; gap: 18px; }
.event-card-v2 { display: grid; grid-template-columns: 200px minmax(0,1fr); align-items: start; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); box-shadow: 0 2px 6px rgba(0,41,107,.08); overflow: hidden; }
.event-card-v2-media { display: flex; align-items: center; justify-content: center; background: var(--paper-deep); padding: 10px; height: 210px; box-sizing: border-box; align-self: stretch; }
.event-card-v2-media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.event-card-v2-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; min-height: 210px; box-sizing: border-box; justify-content: center; }
.event-card-v2-date { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.event-card-v2-place { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.event-card-v2-title { margin-top: 8px; font-family: var(--serif); font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.12; }
.event-card-v2-desc { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-card-v2-more { margin-top: 10px; color: var(--accent); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.login-required-notice { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(230,57,70,.08); border: 1px solid rgba(230,57,70,.25); color: var(--ink); font-size: 13px; }
.login-required-notice a { color: var(--urgent); font-weight: 700; text-decoration: underline; }
.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, var(--weather-grad-a) 0%, var(--weather-grad-b) 100%); transition: filter .15s ease; }
.info-card.is-link:hover { filter: brightness(1.06); }
:root[data-theme="dark"] .info-card.is-link:hover { filter: brightness(1.25); }
.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; }
/* Kafelki z niebieskim gradientem (np. "Telefony" w Niezbędniku, "Koszty paliwa"
   w Moim koncie) dziedziczyły domyślny ciemny --ink/--muted tekst — prawie
   niewidoczny na tym samym ciemnoniebieskim tle. Białe warianty, spójne z
   .weather-wide/.weather-tile które mają ten sam gradient. */
.info-card.is-link h2, .info-card.is-link h3 { color: #fff; }
.info-card.is-link p { color: rgba(255,255,255,.82); }
.info-card.is-link .card-kicker { color: #fff; background: rgba(255,255,255,.18); }

.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: 38px; padding: 8px 17px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--soft); color: var(--muted); font-family: var(--serif); font-weight: 700; text-transform: none; letter-spacing: 0; 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-solid); background: var(--green-solid); color: #fff; }
.market-card.is-hidden { display: none; }

/* Boczne widżety (używane na single.php — Tablica ich już nie ma). */
.sidebar-card { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 2px 8px rgba(0,41,107,.06); }
.sidebar-card h2 { font-family: var(--serif); font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.sidebar-popular-list { display: grid; gap: 14px; }
.sidebar-popular-item { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 10px; align-items: start; text-decoration: none; }
.sidebar-popular-rank { font-family: var(--serif); font-size: 18px; font-weight: 800; color: var(--line); line-height: 1.3; }
.sidebar-popular-title { display: block; font-family: var(--serif); font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.sidebar-popular-item:hover .sidebar-popular-title { color: var(--green); }

/* ---------- Tablica: pełna szerokość, poziome kafelki-wiersze, chronologicznie ----------
   (2026-09: właściciel usunął boczny panel z pogodą i „najpopularniejsze";
   treści jako wiersze przez całą szerokość, zdjęcie z lewej, spory.) */
.tablica-intro { max-width: var(--max); margin: 10px auto 0; }
.tablica-intro h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--green); margin: 0 0 6px; }
.tablica-intro p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; max-width: 620px; }
.tablica-full { max-width: var(--max); margin: 18px auto 60px; }
.tablica-filtry { align-items: center; }
.tablica-filtry-sep { width: 1px; align-self: stretch; background: var(--line); margin: 4px 4px; }
.chip.chip-sort { border-color: var(--accent); color: #9a6a00; }
.chip.chip-sort.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.tablica-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.t-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); box-shadow: 0 2px 8px rgba(0,41,107,.06); transition: box-shadow .15s, transform .1s; }
.t-row:hover { box-shadow: 0 6px 18px rgba(0,41,107,.12); }
.t-row img { display: block; width: 100%; height: 100%; min-height: 190px; border-radius: 0; object-fit: cover; object-position: center; background: var(--paper-deep); }
.t-row-body { padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; }
.t-row-body h2 { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--ink); margin: 0; }
.t-row-body p.t-excerpt { color: var(--muted); font-size: 14px; margin: 7px 0 0; line-height: 1.45; }
.t-row-body .t-meta-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.t-row-body .t-meta-row .meta { margin: 0; }
.t-row[data-typ="info_mieszkanca"] .card-kicker { color: #1a4fa0; background: #e5eefe; }
.t-row[data-typ="lokalny_plon"] .card-kicker { color: #8a6100; background: #fff3d8; }
.t-row[data-typ="lokalna_firma"] .card-kicker { color: #1e6b2e; background: #e8f5ea; }
.t-row[data-typ="ogloszenie"] .card-kicker { color: #b3222d; background: #fde7e8; }

.t-row-obituary { background: #FAF7F0; border-color: #E7DDC5; }
.t-row-obituary .t-obit-mark { width: 100%; height: 100%; min-height: 190px; display: flex; align-items: center; justify-content: center; background: #F0EADC; border-right: 1px solid #E7DDC5; }
.t-obit-krzyz { position: relative; width: 26px; height: 40px; display: block; }
.t-obit-krzyz::before, .t-obit-krzyz::after { content: ""; position: absolute; background: #9a927f; }
.t-obit-krzyz::before { left: 50%; top: 0; width: 4px; height: 40px; transform: translateX(-50%); }
.t-obit-krzyz::after { left: 50%; top: 9px; width: 20px; height: 4px; transform: translateX(-50%); }
.t-row-obituary h2 { font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; color: #1a1712; }
.t-row-obituary .t-obit-miejsce { font-size: 12px; color: #6a6353; margin: 0; }
.t-row-obituary p.t-excerpt { font-family: Georgia, "Times New Roman", serif; color: #4a4438; }
.t-row-obituary .t-obit-kicker { background: none; color: #8a8375; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 0; border-radius: 0; }

@media (max-width: 640px) {
  .t-row { grid-template-columns: 1fr; }
  .t-row img { height: 190px; min-height: 0; }
  .t-row-obituary .t-obit-mark { min-height: 0; height: 72px; border-right: none; border-bottom: 1px solid #E7DDC5; }
  .t-obit-krzyz { width: 20px; height: 30px; }
  .t-obit-krzyz::before { height: 30px; }
  .t-obit-krzyz::after { top: 7px; width: 16px; }
  .t-row-body { padding: 15px 17px; }
  .tablica-filtry-sep { 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; }

/* Placeholdery / podpowiedzi w formularzach — właściciel zgłosił, że w trybie
   ciemnym „się zlewają". Wcześniej nie było żadnej reguły ::placeholder, więc
   przeglądarka dawała swój domyślny, zbyt jasny szary. Teraz jawny kontrast. */
.field::placeholder,
.join-form input::placeholder,
.join-form textarea::placeholder { color: #7a7690; opacity: 1; }
.form-grid .description,
.form-strip .description,
.join-form .description,
.dm-date-field .description { color: var(--muted); font-size: 12.5px; }
[data-theme="dark"] .field::placeholder,
[data-theme="dark"] .join-form input::placeholder,
[data-theme="dark"] .join-form textarea::placeholder { color: #A9B7D2; }
[data-theme="dark"] .field { background: #16233c; border-color: #33456a; }
[data-theme="dark"] .form-grid .description,
[data-theme="dark"] .form-strip .description,
[data-theme="dark"] .join-form .description,
[data-theme="dark"] .dm-date-field .description { color: #A9B7D2; }
[data-theme="dark"] select.field option { background: #16233c; color: var(--ink); }
/* Gwiazdka „pole wymagane" — czytelna w obu motywach. */
.wymagane-legenda, .form-required-hint { color: var(--muted); }

.form-errors { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #c0392b; border-radius: 6px; background: rgba(192,57,43,.08); }
.form-errors p { margin: 0; color: #c0392b; font-size: 13px; line-height: 1.5; }
.form-errors p + p { margin-top: 6px; }

.form-success { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--green-solid); border-radius: 6px; background: rgba(28,107,82,.08); color: var(--green-solid); font-size: 13px; line-height: 1.5; }

.verify-success { text-align: center; padding: 32px 20px; margin-bottom: 20px; border: 1px solid var(--green-solid); border-radius: 14px; background: rgba(28,107,82,.06); }
.verify-success-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-solid); color: #fff; font-size: 26px; line-height: 52px; }
.verify-success h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; color: var(--green-solid); }
.verify-success p { margin: 0; color: var(--ink); font-size: 15px; }
.verify-cta { display: block; width: 100%; text-align: center; }

.field-with-toggle { position: relative; }
.field-with-toggle input.field { padding-right: 40px; }
/* Ikona „pokaż hasło" — kotwiczona do dołu etykiety (czyli do pola input, które
   jest ostatnim elementem w układzie), nie do jej środka. Wcześniej top:50%
   liczyło się od całej wysokości <label> razem z opisem nad polem, więc gdy
   opis zawijał się do dwóch linii, ikona „uciekała" w górę / na krawędź pola. */
.field-with-toggle .login-password-toggle { top: auto; bottom: 11px; right: 12px; transform: none; }

.register-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.register-consent input { margin-top: 3px; }
.register-consent a { color: var(--green-solid); font-weight: 600; }

/* Tryb ciemny — strony logowania/rejestracji/weryfikacji. --green-solid to
   granat #00296B, który w ciemnym motywie NIE ma nadpisania, więc tekst i
   obramowania w tym kolorze (komunikat „Konto założone…", linki do Regulaminu,
   nagłówki potwierdzeń) stawały się granatem na granacie. Podmieniamy je na
   jaśniejszy --green (#3D7FD0) tylko tam, gdzie kolor jest treścią, nie tłem. */
[data-theme="dark"] .form-success { color: var(--green); border-color: var(--green); }
[data-theme="dark"] .verify-success { border-color: var(--green); }
[data-theme="dark"] .verify-success h2 { color: var(--green); }
[data-theme="dark"] .verify-success p { color: var(--ink); }
[data-theme="dark"] .register-consent a { color: var(--green); }
[data-theme="dark"] .login-field input:focus { border-bottom-color: var(--green); }
[data-theme="dark"] .login-password-toggle.is-active { color: var(--green); }

.login-box { width: min(420px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
/* Formularz logowania/rejestracji (pkt 7) — dotąd "goły" formularz na tle strony,
   wyglądał pusto. Wspólna klasa dla obu stron: karta z tłem/obwódką/cieniem
   spójna z resztą motywu (patrz .info-card). */
.auth-card { background: var(--soft); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 4px 20px rgba(0,41,107,.08); padding: 40px 36px 44px; }
.auth-card.login-box { padding: 40px 36px 44px; }
.login-register-link { color: #B3222D; font-weight: 700; text-decoration: underline; }
.login-register-link:hover { color: #8f1b24; }
/* CTA „Załóż konto" tuż pod przyciskiem logowania (właściciel poprosił, żeby
   rejestracja była bardziej widoczna niż zwykły link na samym dole strony). */
.login-register-cta { text-align: center; margin-top: 22px; }
.login-divider-tight { margin-top: 0; margin-bottom: 10px; }
a.login-register-btn-red.button {
  display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center;
  background: #B3222D; border-color: #B3222D; color: #fff;
}
a.login-register-btn-red.button:hover { background: #8f1b24; border-color: #8f1b24; }

/* Koszty paliwa (pkt 13) — było: goły <table>, nieustylizowany <div class="card">
   (klasa .card w ogóle nie istniała w CSS) i domyślne <details>/<summary>. Teraz
   spójny "widgetowy" wygląd — kafelki na statystyki, karty zamiast tabeli. */
.fuel-vehicle-select { margin-bottom: 1.5rem; }
.fuel-card { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,41,107,.06); }
.fuel-card h2 { margin: 6px 0 2px; }
.fuel-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-top: 16px; }
.fuel-stat { background: var(--paper-deep); border-radius: 12px; padding: 14px 16px; }
.fuel-stat-value { font-family: var(--serif); font-size: 22px; font-weight: 800; margin: 0; color: var(--ink); }
.fuel-stat-value span { font-size: 13px; font-weight: 700; color: var(--muted); }
.fuel-stat-label { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.fuel-toggle { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 1.5rem; }
.fuel-toggle summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--serif); font-weight: 700; color: var(--green-solid); }
.fuel-toggle summary::-webkit-details-marker { display: none; }
.fuel-toggle[open] summary { border-bottom: 1px solid var(--line); }
.fuel-toggle-form { padding: 18px 0 20px; }
.fuel-section-title { margin-top: 0; }
.fuel-history { display: flex; flex-direction: column; gap: 8px; }
.fuel-history-row { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.fuel-history-main { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.fuel-history-full { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: var(--green-solid); background: color-mix(in srgb, var(--green) 10%, transparent); padding: 3px 8px; border-radius: 999px; }
.fuel-history-details { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.fuel-history-cost { font-weight: 700; color: var(--ink); }
.login-box h1 { font-family: var(--serif); font-size: 32px; font-weight: 700; margin-bottom: 28px; }
.login-form { display: grid; gap: 20px; }
.login-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.login-field span { font-size: 13px; color: var(--muted); }
.login-field input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; background: transparent; font-size: 15px; color: var(--ink); }
.login-field input:focus { outline: none; border-bottom-color: var(--green-solid); }
.login-field-password input { padding-right: 32px; }
.login-password-toggle { position: absolute; right: 0; bottom: 9px; border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; }
.login-password-toggle svg { width: 19px; height: 19px; }
.login-password-toggle.is-active { color: var(--green-solid); }
.login-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: -4px; }
.login-remember { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.login-links { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.login-links a { color: var(--green); text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-submit { width: 100%; min-height: 48px; margin-top: 4px; font-size: 14px; }
.login-divider { text-align: center; margin-top: 30px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.login-google-divider { display: flex; align-items: center; gap: 12px; margin-top: 24px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.login-google-divider::before, .login-google-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* Logowanie społecznościowe — spójna grupa przycisków (Google / Facebook / Apple) */
.social-login-group { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.social-login-group .g_id_signin { display: flex; justify-content: center; }
.social-login-group iframe { color-scheme: light; }
.social-login-btn {
  width: 100%; min-height: 46px; padding: 0 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--soft); color: var(--ink);
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  letter-spacing: normal; text-transform: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.social-login-btn:hover { border-color: var(--green-solid); box-shadow: 0 2px 10px rgba(0,41,107,.12); }
.social-login-btn:disabled { opacity: .5; cursor: default; box-shadow: none; border-color: var(--line); }
.social-login-icon { display: inline-flex; flex: 0 0 auto; }
.social-login-btn--facebook .social-login-icon { color: #1877F2; }
.social-login-btn--apple .social-login-icon { color: var(--ink); }
.login-register-btn { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; }
.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-solid); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-solid); 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); }
.button.secondary.is-saved { border-color: var(--green-solid); background: var(--green-solid); color: #fff; }
.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(120deg, var(--weather-grad-a) 0%, var(--weather-grad-b) 100%); border: none; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,41,107,.12); color: #fff; }
.weather-wide .wmain { padding: 18px 24px 20px; border-right: 1px solid rgba(255,255,255,.18); 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: #fff; letter-spacing: -.01em; }
.wt-temp-dzis { font-size: .62em; font-weight: 800; color: rgba(255,255,255,.75); }
.weather-wide .wdesc { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 6px; }
.weather-wide .wforecast { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); background: rgba(255,255,255,.08); }
.weather-wide .wforecast-7 { grid-template-columns: repeat(7, minmax(0,1fr)); }
.whourly-wrap { margin-top: 14px; border-radius: 14px; background: var(--soft); box-shadow: 0 4px 18px rgba(0,41,107,.08); overflow: hidden; }
.whourly-label { padding: 10px 16px 0; font-family: var(--serif); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.whourly { display: flex; gap: 2px; overflow-x: auto; padding: 6px 8px 10px; cursor: grab; scrollbar-width: thin; user-select: none; }
.whourly.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.whour { flex: 0 0 auto; min-width: 58px; padding: 10px 6px; text-align: center; font-family: var(--sans); font-size: 11px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.whour-time { font-weight: 700; letter-spacing: .02em; }
.whour-icon { line-height: 0; }
.whour-icon svg { width: 22px; height: auto; }
.whour-temp { font-family: var(--serif); font-weight: 800; font-size: 15px; color: var(--ink); }
.weather-wide .wday { padding: 14px 6px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); font-family: var(--serif); font-stretch: condensed; font-size: 11px; text-transform: uppercase; letter-spacing: .01em; color: rgba(255,255,255,.75); 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-stretch: condensed; font-weight: 800; font-size: 20px; color: #fff; line-height: 1; letter-spacing: -.01em; }
.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: rgba(255,255,255,.7); }
.weather-wide .wday-extra { font-size: 9.5px; color: rgba(255,255,255,.65); margin-top: 2px; text-transform: none; letter-spacing: 0; }

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

/* ---------- Pogoda: kolorowy kafelek na stronie głównej ---------- */
.weather-tile { display: block; border: none; border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: linear-gradient(135deg, var(--weather-grad-a), var(--weather-grad-b)); box-shadow: 0 6px 18px rgba(0,41,107,.16); color: #fff; }
.weather-tile .wt-bar { display: block; background: rgba(0,0,0,.14); color: #fff; font-family: var(--serif); font-weight: 800; font-size: 13px; letter-spacing: 0; text-transform: none; 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: #fff; line-height: 1.05; }
.wt-date { display: block; font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,.8); text-transform: none; letter-spacing: 0; 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; padding-right: 66px; }
.wt-temp { font-family: var(--serif); font-weight: 800; font-size: 56px; line-height: .95; color: #fff; letter-spacing: -.01em; }
.wt-pill { background: rgba(255,255,255,.2); border: none; color: #fff; font-weight: 700; font-family: var(--serif); font-size: 11px; padding: 6px 12px; border-radius: 14px; 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 rgba(255,255,255,.2); }
.wt-chip { background: var(--wt-chip-bg); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; font-family: var(--sans); font-size: 10.5px; color: #fff; padding: 5px 8px; white-space: nowrap; }
.wt-forecast-row { display: flex; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.wt-forecast-day { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; }
.wt-forecast-dzien { font-family: var(--serif); font-size: 10px; font-weight: 700; letter-spacing: .03em; color: rgba(255,255,255,.75); }
.wt-forecast-day svg { width: 22px; height: auto; }
.wt-forecast-temp { font-family: var(--serif); font-size: 14px; font-weight: 800; color: #fff; }
.weather-tile .section-link { display: block; margin-top: 12px; padding: 0 16px 14px; color: #fff; opacity: .9; }

/* ---------- 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(120deg, var(--weather-grad-a) 0%, var(--weather-grad-b) 100%); border: none; border-radius: 14px; box-shadow: 0 3px 10px rgba(0,41,107,.12); color: #fff; }
.forecast-row .fr-main { flex: 0 0 190px; }
.forecast-row .fr-main .forecast-date { margin-bottom: 2px; color: rgba(255,255,255,.75); }
.forecast-row h2 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff; 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: #fff; white-space: nowrap; }
.fr-temp small { font-weight: 600; font-size: 16px; color: rgba(255,255,255,.75); }
.fr-desc { flex: 1 1 auto; color: rgba(255,255,255,.85); 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 rgba(255,255,255,.2); }
.forecast-label { display: block; color: rgba(255,255,255,.7); font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.forecast-value { display: block; color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.calendar-widget { border: 1px solid var(--line); border-radius: 14px; 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); border: 0; border-radius: 0; padding: 0; margin: 0; }
.calendar-day.is-empty { background: transparent; }
.calendar-day.is-today { background: var(--green-solid); color: #fff; font-weight: 700; }
.calendar-day.has-event { background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.calendar-day.is-today.has-event { background: var(--green-solid); box-shadow: inset 0 0 0 2px var(--accent); }
.calendar-day.has-event.is-selected { background: var(--green-solid); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--green-solid); }
.calendar-reset-btn { display: block; width: 100%; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); font-family: var(--sans); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; }
.calendar-reset-btn:hover { border-color: var(--green-solid); color: var(--green-solid); }

.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: 14px; background: var(--soft); box-shadow: 0 2px 6px rgba(0,41,107,.08); }
.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% - 56px)); margin: 34px auto 64px; }
/* Odstęp między nagłówkiem sekcji a treścią (np. „Więcej z regionu" był zbyt
   blisko kafelków). */
.essentials .section-head { margin-bottom: 20px; }
.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: 14px; background: var(--soft); box-shadow: 0 2px 6px rgba(0,41,107,.08); }
.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-solid); 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-solid); 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: 18px; background: linear-gradient(120deg, var(--green-solid) 0%, var(--green-deep) 55%, var(--accent2) 145%); 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; }
.community-layout-stack { display: block; }
.community-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 26px; }
.community-add-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 13.5px; transition: background .15s ease; }
.community-add-btn:hover { background: rgba(255,255,255,.16); }
.cab-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 14px; flex: 0 0 auto; }
.cab-icon svg { width: 20px; height: 20px; }
.community-login-note { margin-top: 16px; color: rgba(255,255,255,.7); font-size: 12.5px; }
.community-login-note a { color: #fff; text-decoration: underline; }
.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: linear-gradient(120deg, #2E9E5B 0%, #175C34 120%); border-color: #2E9E5B; color: #fff; }
.market-panel.is-plon p { color: rgba(255,255,255,.85); }
.market-panel.is-plon .card-kicker { color: #fff; background: rgba(255,255,255,.18); }
.market-panel.is-firmy { background: linear-gradient(120deg, var(--accent2) 0%, var(--green-deep) 120%); border-color: var(--accent2); color: #fff; }
.market-panel.is-firmy p { color: rgba(255,255,255,.85); }
.market-panel.is-firmy .card-kicker { color: #fff; background: rgba(255,255,255,.18); }
.market-panel.is-ogloszenia { background: linear-gradient(120deg, #E8985A 0%, #B85E1E 120%); border-color: #E8985A; color: #fff; }
.market-panel.is-ogloszenia p { color: rgba(255,255,255,.85); }
.market-panel.is-ogloszenia .card-kicker { color: #fff; background: rgba(255,255,255,.18); }
.market-section-panel { min-height: auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.market-section-panel-btn { flex: 0 0 auto; min-height: 40px; padding: 0 18px; border-radius: 8px; background: var(--green-solid); color: #fff; display: inline-flex; align-items: center; font-family: var(--serif); font-weight: 700; font-size: 13px; white-space: nowrap; text-decoration: none; }
.market-section-panel-btn:hover { filter: brightness(1.08); }
.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 #E7DDC5; border-radius: 12px; background: #FAF7F0; color: #2B2620; text-align: center; display: flex; flex-direction: column; box-shadow: none; }
.obituary-krzyz-mala { position: relative; width: 20px; height: 28px; display: block; margin: 2px auto 8px; }
.obituary-krzyz-mala::before, .obituary-krzyz-mala::after { content: ''; position: absolute; background: #9a927f; }
.obituary-krzyz-mala::before { left: 50%; top: 0; width: 3px; height: 28px; transform: translateX(-50%); }
.obituary-krzyz-mala::after { left: 50%; top: 7px; width: 15px; height: 3px; transform: translateX(-50%); }
.obituary-sp-mala { color: #8a8375; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 4px; }
.obituary-miejsce { font-family: Georgia, "Times New Roman", serif; font-size: 12px; color: #6a6353; margin: 0 0 6px; }
.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; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.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; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.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; }
/* Skan dołączonej klepsydry — POD wygenerowanym nekrologiem, link do pełnego rozmiaru
   (2026-09-07; wcześniej .obituary-single-photo zastępował kartę i był za mały). */
.obituary-skan { max-width: 820px; margin: 18px auto 0; padding: 12px; border: 1px solid #E7DDC5; border-radius: 12px; background: #FAF7F0; text-align: center; }
.obituary-skan figcaption { font-size: 12px; font-weight: 600; color: #6B6357; margin-bottom: 8px; }
.obituary-skan-img { display: block; width: 100%; max-height: 1100px; object-fit: contain; border-radius: 6px; margin: 0 auto; }
.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: 14px; 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; }

/* Badge'e gminy/miejscowości/typu — pod nagłówkiem artykułu (klikalne, <a>) albo
   na kartach Lokalnego rynku (nieklikalne, <span> — patrz nrj_render_place_badges()). */
.place-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.place-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--paper-deep); border: 1px solid var(--line); color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 11.5px; text-decoration: none; white-space: nowrap; }
a.place-badge:hover { border-color: var(--green-solid); color: var(--green-solid); }
.place-badge-gmina { background: var(--green); color: #fff; border-color: var(--green); }
a.place-badge-gmina:hover { background: color-mix(in srgb, var(--green) 85%, #000); color: #fff; }
.place-badge-typ { background: var(--accent); color: #fff; border-color: var(--accent); }
/* „spoza gminy X" / „spoza Twoich gmin" — wpis dopuszczony spoza obszaru, wyróżniony. */
.place-badge-spoza { background: repeating-linear-gradient(-45deg, rgba(240,162,2,.16), rgba(240,162,2,.16) 6px, rgba(240,162,2,.05) 6px, rgba(240,162,2,.05) 12px); border-color: rgba(240,162,2,.6); color: #9a6a00; }
[data-theme="dark"] .place-badge-spoza { color: var(--accent); }
.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: 14px; margin-top: 20px; background: var(--soft); }
.tile-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tile-btn { display: inline-flex; align-items: center; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 14px; }
.tile-btn:hover { border-color: var(--green); color: var(--green); }
.tile-btn.is-disabled { color: var(--muted); font-family: var(--sans); font-weight: 400; }
.list-rows { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; 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; }
.zobacz-tez-kolumna .list-rows { margin-top: 10px; }
.zobacz-tez-kolumna .list-row-link .rtitle { font-size: 14px; }
.zobacz-tez-link { margin-top: 10px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-family: var(--mono); font-size: 13px; background: var(--soft); }
.pagination .page-numbers.current { background: var(--green-solid); border-color: var(--green-solid); color: #fff; }
.pagination .page-numbers:hover:not(.current) { background: var(--paper); }
.pagination .dots { border: none; background: none; }
.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); }
/* Plakat wydarzenia to grafika z tekstem/datami — przycinanie (object-fit: cover)
   ucina istotną treść. Ma się mieścić w całości, więc: contain + max-height
   zamiast sztywnej wysokości. */
.hero-photo-event { height: auto; max-height: 560px; object-fit: contain; padding: 12px; box-sizing: border-box; }

.rekreacja-head { display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 28px; align-items: start; margin-bottom: 22px; }
.rekreacja-logo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 14px; box-sizing: border-box; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 14px; }
@media (max-width: 700px) {
  .rekreacja-head { grid-template-columns: 1fr; }
  .rekreacja-head-logo { width: 160px; margin: 0 auto; }
}
.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; }
.comment-form .comment-form-comment { margin-bottom: 12px; }
.comment-form .form-submit { margin: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* Domyślny przycisk „Wyślij komentarz" i link „Anuluj odpowiedź" wyglądały
   systemowo — teraz w stylu marki. */
.comment-form input#submit,
.comment-form .comment-submit {
  display: inline-flex; align-items: center;
  background: var(--green-solid); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  padding: 12px 26px; border: 0; border-radius: 999px; cursor: pointer;
}
.comment-form input#submit:hover,
.comment-form .comment-submit:hover { background: var(--green-deep); }
#cancel-comment-reply-link {
  font-family: var(--serif); font-weight: 700; font-size: 13px;
  color: var(--muted); text-decoration: none;
}
#cancel-comment-reply-link:hover { color: var(--ink); text-decoration: underline; }
.comment-reply-link {
  display: inline-block; margin-top: 8px;
  font-family: var(--serif); font-weight: 700; font-size: 12.5px;
  color: var(--green-solid); text-decoration: none;
}
.comment-reply-link:hover { text-decoration: underline; }

/* Przyciski z ikoną (np. „Zapisz artykuł" — ikona zakładki jak w appce). */
.btn-with-icon { display: inline-flex; align-items: center; gap: 7px; }
.btn-with-icon .btn-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-with-icon.is-saved { border-color: var(--green-solid); color: var(--green-solid); }

/* „Moje gminy" — wybór jako pigułki zamiast systemowych <select>/<checkbox>. */
.mg-section { max-width: 640px; margin-left: auto; margin-right: auto; }
.mg-form { display: grid; gap: 26px; }
.mg-block { }
.mg-h2 { font-family: var(--serif); font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.mg-h2 .mg-opt { font-size: 12px; font-weight: 600; color: var(--muted); }
.mg-hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0 0 12px; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.mg-chip { position: relative; cursor: pointer; }
.mg-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.mg-chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-family: var(--serif); font-weight: 700; font-size: 13.5px; color: var(--ink);
  transition: border-color .12s, background .12s, color .12s;
}
.mg-chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; }
.mg-chip input:checked + span { border-color: var(--green-solid); background: rgba(28,107,82,.10); color: var(--green-solid); }
[data-theme="dark"] .mg-chip input:checked + span { background: rgba(95,217,174,.14); color: var(--green); border-color: var(--green); }
.mg-chip input:checked + span::before { border-color: var(--green-solid); background: var(--green-solid) radial-gradient(circle, #fff 30%, transparent 32%); }
.mg-chip input:focus-visible + span { outline: 2px solid var(--green-solid); outline-offset: 2px; }
.mg-chip-sm span { padding: 7px 13px; font-size: 12.5px; font-weight: 600; }
.mg-details { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; overflow: hidden; }
.mg-details summary { cursor: pointer; padding: 12px 16px; font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--ink); background: var(--soft); list-style: none; }
.mg-details summary::-webkit-details-marker { display: none; }
.mg-details summary::after { content: "▾"; float: right; color: var(--muted); }
.mg-details[open] summary::after { content: "▴"; }
.mg-details .mg-chips-sm { padding: 14px 16px; }
.mg-submit { min-height: 48px; padding: 0 30px; font-size: 15px; justify-self: start; }
@media (max-width: 640px) { .mg-submit { justify-self: stretch; } }
.mg-pomin { margin: 14px 0 0; }
.mg-pomin a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.mg-pomin a:hover { text-decoration: underline; }

.green-panel { padding: 28px; border-radius: 14px; background: var(--green-solid); 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-solid); 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; }

/* ---------- Podgląd wielu zdjęć + wybór zdjęcia głównego (dm_render_pole 'file' z multiple) ---------- */
.file-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.file-preview-item { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; }
.file-preview-item.is-glowne { border-color: var(--green-solid); }
.file-preview-item img { display: block; width: 100%; height: 72px; object-fit: cover; background: var(--paper-deep); }
.file-preview-radio { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: rgba(0,0,0,.55); color: #fff; font-family: var(--sans); font-size: 10px; display: flex; align-items: center; gap: 4px; }
.file-preview-radio input { margin: 0; width: auto; }
.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(--green-deep); 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-solid); 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: 14px; padding: 18px 20px; box-shadow: 0 2px 6px rgba(0,41,107,.08); }
.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: 14px; box-shadow: 0 2px 6px rgba(0,41,107,.08); 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: 14px; box-shadow: 0 2px 6px rgba(0,41,107,.08); 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) {
  .top-stack, main.page, .footer-inner, .hero3, .essentials, .market-preview, .obituaries, .join-banner, .newsletter { width: min(100% - 32px, var(--max)); }
  .article-page { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .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; }
  .nav-row1 { flex-wrap: wrap; }
  .almanac-strip-inner, .util-bar-inner { flex-direction: column; gap: 4px; padding: 8px 16px; }
  .nav-row2 { flex-wrap: wrap; padding: 12px 16px 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 var(--weather-border); }
  .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: 12px; padding: 11px 12px; box-shadow: 0 1px 3px rgba(0,41,107,.08); }
  .tile.is-active { border-left-color: var(--accent); background: linear-gradient(165deg, var(--weather-grad-a) 0%, var(--weather-grad-b) 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; }
  .hero3, .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 var(--weather-border); }
  .weather-wide .wforecast { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .essential-card { border-right: none; border-bottom: 1px solid var(--line); }
  .hero3 { margin: 20px auto 0; gap: 16px; }
  .section-heading, .section-head { align-items: flex-start; flex-direction: column; }
  .h3-lead img { height: clamp(200px,52vw,260px); }
  .t-row { grid-template-columns: 170px minmax(0,1fr); }
  .lead-title { font-size: clamp(22px,6vw,25px); line-height: 1.16; }
  .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; }
  .event-card-v2 { grid-template-columns: 1fr; }
  .event-card-v2-media { min-height: 220px; }
}

@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; }
  .app-banner-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .app-banner-part { padding: 15px 15px; }
  .app-banner-part-login { border-bottom: 1px solid var(--line); }
  .app-banner-part-app { flex-direction: row; align-items: center; text-align: left; gap: 12px; }
  .app-banner-qr { display: none; }
  .app-banner-app-text { flex: 1; align-items: flex-start; }
  .app-banner-app-btn { flex: 0 0 auto; }
  .app-banner-lista li:nth-child(3) { display: none; }
  .app-banner-text strong { font-size: 16px; }
}

/* ---------- Pływający baner na dole: „Zaloguj się" + „Pobierz aplikację" (QR) ----------
   Właściciel 2026-09: ma być ~2,5× większy niż poprzednia wersja i mieć drugą
   część z kodem QR do pobrania aplikacji. */
.app-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; }
.app-banner-inner {
  position: relative;
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.18);
  overflow: hidden;
}
.app-banner-part { display: flex; align-items: center; gap: 16px; padding: 22px 26px; }
.app-banner-part-login { flex: 1 1 auto; min-width: 0; }
.app-banner-part-app {
  flex: 0 0 auto;
  flex-direction: column;
  text-align: center;
  gap: 8px;
  background: linear-gradient(160deg, var(--green-solid), var(--green-deep));
  color: #fff;
  padding: 22px 24px;
}
.app-banner-icon { flex: 0 0 auto; padding: 12px 14px; border-radius: 14px; background: var(--green-solid); font-family: var(--serif); font-weight: 800; font-size: 17px; text-transform: uppercase; line-height: 1; }
.app-banner-icon-na { color: var(--accent); }
.app-banner-icon-rejonie { color: #fff; }
.app-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.app-banner-text strong { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 800; line-height: 1.2; }
.app-banner-text > span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.app-banner-lista { list-style: none; margin: 2px 0 2px; padding: 0; display: grid; gap: 4px; }
.app-banner-lista li { position: relative; padding-left: 20px; font-size: 12.5px; color: var(--ink); line-height: 1.4; }
.app-banner-lista li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-solid); font-weight: 800; }
.app-banner-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.app-banner-button { min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--green-solid); color: #fff; display: inline-flex; align-items: center; font-family: var(--serif); font-weight: 700; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
.app-banner-button-ghost { background: transparent; color: var(--green-solid); border: 1.5px solid var(--green-solid); }
.app-banner-app-text { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.app-banner-app-text strong { font-size: 14.5px; font-family: var(--serif); font-weight: 800; }
.app-banner-app-text span { font-size: 11.5px; color: rgba(255,255,255,.82); }
.app-banner-qr { flex: 0 0 auto; display: block; line-height: 0; border-radius: 10px; overflow: hidden; border: 4px solid #fff; background: #fff; }
.app-banner-qr img { display: block; width: 92px; height: 92px; object-fit: contain; }
.app-banner-app-btn { background: #fff !important; color: var(--green-solid) !important; }
.app-banner-close { position: absolute; top: 8px; right: 10px; z-index: 2; flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 999px; background: rgba(0,0,0,.28); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }

/* ---------- Moje konto — redesign kafelkowy ---------- */
.account-section { max-width: 640px; margin-left: auto; margin-right: auto; }

.profile-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(100deg, var(--green) 0%, #0B4DA6 100%);
  border-radius: 18px; padding: 22px 24px; margin-bottom: 26px;
}
:root[data-theme="dark"] .profile-banner { background: linear-gradient(100deg, #0B2A52 0%, #123B72 100%); }
.avatar-wrap { position: relative; flex-shrink: 0; cursor: pointer; display: block; }
.avatar-wrap .avatar { width: 76px; height: 76px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); object-fit: cover; display: block; }
.avatar-edit {
  position: absolute; bottom: -2px; right: -2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--green-solid); display: flex; align-items: center; justify-content: center; color: #2b1d00;
}
:root[data-theme="dark"] .avatar-edit { border-color: #123B72; }
.avatar-edit svg { width: 12px; height: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.profile-info h2 { font-family: var(--serif); font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 3px; }
.profile-info p { color: rgba(255,255,255,.75); font-size: 13px; margin: 0 0 10px; }
.points-chip {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 13px 5px 10px;
  color: #fff; font-size: 12px; font-weight: 600; text-decoration: none;
}
.points-chip:hover { background: rgba(255,255,255,.22); }
.points-chip strong { font-family: var(--serif); font-size: 14px; color: var(--accent); }

.section-label {
  font-family: var(--serif); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.account-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 640px) { .account-grid, .account-grid-3 { grid-template-columns: 1fr; } }

.tile { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; }
.tile-field { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile-field-body { flex: 1; min-width: 0; }
.tile-field .label { display: block; font-family: var(--serif); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin: 0 0 4px; }
.tile-value-input {
  width: 100%; border: none; background: transparent; padding: 0; margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink);
  font-family: var(--sans); pointer-events: none;
}
.tile.is-editing .tile-value-input {
  pointer-events: auto; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 7px 9px; margin-top: 2px;
}
.tile [data-edit-hint] { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; display: none; }
.tile.is-editing [data-edit-hint] { display: block; }
.tile-edit-btn {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--green);
}
.tile-edit-btn svg { width: 15px; height: 15px; }

.tile-password { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-password .label-static { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.tile-password .desc { font-size: 11.5px; color: var(--muted); margin: 0; }
.tile-password-btn {
  flex-shrink: 0; border: 1px solid var(--green); color: var(--green); background: transparent;
  border-radius: 20px; padding: 7px 15px; font-family: var(--serif); font-size: 12px; font-weight: 700; cursor: pointer;
}
.tile-password-edit { margin-top: 4px; }
.tile-password-edit .description { display: block; font-family: var(--serif); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin: 0 0 6px; }

.tile-link {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px;
  transition: filter .15s ease;
}
.tile-link:hover { filter: brightness(.97); }
:root[data-theme="dark"] .tile-link:hover { filter: brightness(1.15); }
.tile-link.tile-link-row { flex-direction: row; align-items: center; gap: 14px; }
.tile-link .icon {
  width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--accent2) 12%, transparent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tile-link .icon svg { width: 18px; height: 18px; stroke: var(--accent2); fill: none; }
.tile-link h3 { font-family: var(--serif); font-size: 14.5px; font-weight: 700; margin: 0; color: var(--ink); }
.tile-link p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.tile-link.tile-link-row p { margin: 2px 0 0; }

.account-save { margin-top: 4px; }

.account-logout { margin-top: 28px; text-align: center; }
.account-logout .button { min-width: 200px; }

.account-danger { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.account-delete-toggle { border: none; background: none; padding: 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.account-delete-panel { margin-top: 16px; text-align: left; }

/* ---------- Historia punktów (pod rankingiem, /ranking/) ---------- */
.points-history-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.points-history-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.points-history-powod { font-size: 13.5px; color: var(--ink); }
.points-history-meta { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; white-space: nowrap; }
.points-history-ile { font-weight: 700; color: var(--green-solid); font-size: 13.5px; }
.points-history-data { font-size: 11.5px; color: var(--muted); }

/* ---------- Ranking najaktywniejszych mieszkańców ---------- */
.ranking-wrap { max-width: 720px; margin-left: auto; margin-right: auto; }
.ranking-empty { padding: 28px; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }

.ranking-podium { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.ranking-podium-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 12px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 16px rgba(0,41,107,.08); }
.ranking-podium-item--zloto { order: 2; padding-top: 30px; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 8px 26px rgba(233,180,76,.28); }
.ranking-podium-item--srebro { order: 1; }
.ranking-podium-item--braz { order: 3; }
.ranking-podium-rank { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--serif); font-weight: 800; font-size: 14px; color: #fff; background: var(--green-solid); border: 3px solid var(--paper); }
.ranking-podium-item--zloto .ranking-podium-rank { background: var(--accent); color: #2b1d00; }
.ranking-podium-item--srebro .ranking-podium-rank { background: #9aa7bd; }
.ranking-podium-item--braz .ranking-podium-rank { background: #b0774a; }
.ranking-podium-avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }
.ranking-podium-item--zloto .ranking-podium-avatar img { width: 76px; height: 76px; }
.ranking-podium-name { font-family: var(--serif); font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--ink); word-break: break-word; }
.ranking-podium-name em { font-style: normal; color: var(--green); font-weight: 700; }
.ranking-podium-points { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--green-solid); }
.ranking-podium-item.is-me { border-color: var(--green-solid); }

.ranking-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ranking-row { display: grid; grid-template-columns: 34px 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.ranking-row-rank { text-align: center; font-family: var(--serif); font-weight: 800; font-size: 15px; color: var(--muted); }
.ranking-row-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--paper-deep); display: block; }
.ranking-row-name { font-family: var(--serif); font-weight: 700; font-size: 14.5px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row-name em { font-style: normal; color: var(--green); }
.ranking-row-points { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--green-solid); white-space: nowrap; }
.ranking-row-points span { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.ranking-row.is-me { border-color: var(--green-solid); background: color-mix(in srgb, var(--green) 8%, var(--soft)); }
.ranking-row.is-me .ranking-row-rank { color: var(--green-solid); }

.ranking-me-card { margin-top: 26px; padding: 20px 22px 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 8px rgba(0,41,107,.06); }
.ranking-me-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ranking-me-label { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink); }
.ranking-me-value { font-family: var(--serif); font-weight: 800; font-size: 26px; color: var(--green-solid); }
.ranking-me-title { margin: 16px 0 0; font-family: var(--serif); font-size: 15px; font-weight: 800; color: var(--ink); }
.ranking-empty-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .ranking-podium { grid-template-columns: 1fr; align-items: stretch; }
  .ranking-podium-item, .ranking-podium-item--zloto, .ranking-podium-item--srebro, .ranking-podium-item--braz { order: 0; flex-direction: row; text-align: left; padding: 14px 16px; gap: 14px; }
  .ranking-podium-rank { position: static; transform: none; flex: 0 0 auto; border-width: 0; }
  .ranking-podium-avatar img, .ranking-podium-item--zloto .ranking-podium-avatar img { width: 48px; height: 48px; }
  .ranking-podium-name { flex: 1; }
}

/* ---------- Dzwoneczek powiadomień (nav-row2-actions, tylko zalogowani) ---------- */
.notif-toggle { position: relative; }
.notif-bell-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.notif-bell-btn:hover { border-color: rgba(255,255,255,.55); }
.notif-bell-btn svg { width: 17px; height: 17px; }
.notif-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--urgent); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.notif-badge[hidden] { display: none !important; }
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: min(340px, 90vw); max-height: 420px; overflow-y: auto;
  background: var(--soft); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,18,51,.22); padding: 6px;
}
.notif-panel[hidden] { display: none !important; }
.notif-panel-title { padding: 10px 12px 6px; font-family: var(--serif); font-size: 12.5px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.notif-item { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.notif-item + .notif-item { margin-top: 2px; }
.notif-item:hover { background: var(--paper-deep); }
.notif-item.is-unread { background: var(--paper-deep); }
.notif-item-tytul { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.notif-item.is-unread .notif-item-tytul::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); flex: 0 0 auto; }
.notif-item-tresc { margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.notif-item-data { margin-top: 4px; font-size: 11px; color: var(--muted); }
.notif-empty { padding: 18px 12px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Karta "zaloguj się, żeby..." (nrj_render_login_gate) — zastępuje gołosłowny
   akapit powtórzony wcześniej w kilkunastu miejscach (dodaj-*, koszty-paliwa, moje-konto...) ---------- */
.login-gate { max-width: 380px; margin: 0 auto; padding: 28px 24px; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; }
.login-gate-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--paper-deep); color: var(--green-solid); display: flex; align-items: center; justify-content: center; }
.login-gate-icon svg { width: 24px; height: 24px; }
.login-gate-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 18px; }
.login-gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.login-gate-actions .button { min-height: 40px; padding: 0 18px; }

/* Duża wersja bramki logowania — z sekcją pobrania aplikacji + QR (prośba
   właściciela: „2,5x większa, plus część z kodem QR do pobrania appki"). */
.login-gate-lg {
  max-width: 760px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.login-gate-main { padding: 34px 32px; }
.login-gate-main .login-gate-icon { margin: 0 0 16px; width: 58px; height: 58px; }
.login-gate-main .login-gate-icon svg { width: 27px; height: 27px; }
.login-gate-kicker { font-family: var(--serif); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-solid); margin: 0 0 6px; }
.login-gate-lg .login-gate-desc { font-size: 17px; color: var(--ink); font-weight: 600; line-height: 1.4; margin: 0 0 14px; }
.login-gate-lista { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.login-gate-lista li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.login-gate-lista li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-solid); font-weight: 800; }
.login-gate-lg .login-gate-actions { justify-content: flex-start; }
.login-gate-lg .login-gate-actions .button { min-height: 46px; padding: 0 24px; font-size: 15px; }
.login-gate-app {
  padding: 34px 28px;
  background: linear-gradient(160deg, var(--green-solid), var(--green-deep));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.login-gate-app-title { font-family: var(--serif); font-size: 16px; font-weight: 800; margin: 0; }
.login-gate-app-desc { font-size: 12.5px; color: rgba(255,255,255,.82); margin: 0 0 12px; }
.login-gate-qr { display: block; width: 150px; height: 150px; border-radius: 10px; overflow: hidden; border: 4px solid #fff; background: #fff; line-height: 0; }
.login-gate-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.login-gate-qr-hint { font-size: 11.5px; color: rgba(255,255,255,.82); margin: 8px 0 12px; }
.login-gate-app-btn { background: #fff !important; color: var(--green-solid) !important; border-color: #fff !important; }
@media (max-width: 720px) {
  .login-gate-lg { grid-template-columns: 1fr; max-width: 460px; }
  .login-gate-main { padding: 28px 22px; }
  .login-gate-app { padding: 26px 22px; }
}
.app-banner-close:hover { background: var(--line); }
