/* Strony tras w wyszukiwarce (szlaki/<slug>/). Generowane przez
   scripts/seo/generuj_szlaki.py, ten arkusz kopiuje się obok nich.
   Skala `.komfort` z DS, paleta wyłącznie z tokenów (web/css/tokens.css).
   Źródło wyglądu: makieta design/seo/szlak-rysy-z-palenicy.html. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--leading);
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* --- Pasek --- */
.pasek { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--background) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.pasek .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.pasek img { height: 30px; width: auto; }
.pasek nav { margin-left: auto; display: flex; gap: 20px; font-size: var(--text-sm); }
.pasek nav a { color: var(--foreground); text-decoration: none; }
.pasek nav a:hover { color: var(--moss); }
/* Na telefonie linki chowają się pod przyciskiem menu; przełącza klasę
   `otwarte` na pasku (jedna linijka w atrybucie onclick przycisku). */
.pasek-menu { display: none; }
@media (max-width: 640px) {
  .pasek-menu { display: grid; place-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 0;
    border: 0; background: none; border-radius: var(--radius-md); cursor: pointer; color: var(--foreground); }
  .pasek-menu span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .2s, opacity .2s; }
  .pasek.otwarte .pasek-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pasek.otwarte .pasek-menu span:nth-child(2) { opacity: 0; }
  .pasek.otwarte .pasek-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .pasek nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0;
    padding: 4px 16px 12px; background: var(--background); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft); font-size: var(--text-base); }
  .pasek.otwarte nav { display: flex; }
  .pasek nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .pasek nav a:last-child { border-bottom: 0; }
  .pasek nav a[aria-current] { color: var(--moss); font-weight: 600; }
}

/* --- Nagłówek --- */
.okruchy { font-size: var(--text-xs); color: var(--muted-foreground); margin: 20px 0 12px; }
.okruchy ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.okruchy li + li::before { content: "›"; margin-right: 6px; color: var(--stone); }
.okruchy a { color: inherit; }
h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(28px, 5vw, 46px); line-height: 1.08; margin: 0 0 14px; }
.lead { font-size: var(--text-lg); line-height: 1.5; margin: 0 0 20px; color: var(--foreground); }
.lead strong { font-weight: 600; }
.plakietki { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.plk { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 500; background: var(--muted); color: var(--muted-foreground); }
.plk.latwy { background: var(--trail-easy-soft); color: var(--trail-easy-soft-foreground); }
.plk.sredni { background: var(--trail-medium-soft); color: var(--trail-medium-soft-foreground); }
.plk.trudny { background: var(--trail-hard-soft); color: var(--trail-hard-soft-foreground); }
.plk.bardzo-trudny { background: var(--trail-expert-soft); color: var(--trail-expert-soft-foreground); }
.plk .znak { width: 18px; height: 10px; border-radius: 2px;
  /* Znak szlaku z drzewa: biel–kolor–biel. Kolor oznakowania to fakt z terenu,
     nie token marki — tak jak `.mark` w aplikacji. */
  background: linear-gradient(#fff 0 33%, var(--kolor-znaku, #e03131) 33% 67%, #fff 67%); box-shadow: 0 0 0 1px var(--border); }

/* --- Hero 3D --- */
.hero { margin: 0; position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-ridge);
  aspect-ratio: 2 / 1; background: var(--forest-deep); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pin span { background: var(--card); color: var(--card-foreground); font-size: var(--text-xs); font-weight: 600;
  padding: 3px 9px; border-radius: var(--radius-pill); box-shadow: var(--shadow-raised); white-space: nowrap; }
.pin span small { font-weight: 400; color: var(--muted-foreground); margin-left: 4px; }
.pin::after { content: ""; width: 2px; height: 14px; background: var(--card); }
.hero figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 10.5px; color: var(--primary-foreground);
  text-shadow: 0 1px 2px oklch(0 0 0 / .6); }
@media (max-width: 560px) { .hero { aspect-ratio: 4 / 3; } .hero img { object-position: 52% 0; } .pin span small { display: none; } }

/* --- Liczby --- */
.dane { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 22px 0 0; }
@media (min-width: 720px) { .dane { grid-template-columns: repeat(4, 1fr); } }
.dana { background: var(--card); padding: 14px 16px; }
.dana dt { font-size: var(--text-xs); color: var(--muted-foreground); margin-bottom: 2px; }
.dana dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dana dd small { font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 400; color: var(--muted-foreground); margin-left: 3px; }
.dana .up { color: var(--ascent); } .dana .down { color: var(--descent); }
.dana .przez { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 400; letter-spacing: 0; color: var(--muted-foreground); }

/* --- Układ dwukolumnowy --- */
.uklad { display: grid; gap: 40px; margin: 40px 0 64px; }
@media (min-width: 980px) { .uklad { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.boczna { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 980px) { .boczna { position: sticky; top: 80px; align-self: start; } }

h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; line-height: 1.2; margin: 48px 0 14px; }
h2:first-child { margin-top: 0; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 4px; }
.tresc p { max-width: 68ch; margin: 0 0 14px; }
.tresc ul { max-width: 66ch; padding-left: 20px; margin: 0 0 14px; }
.tresc li { margin-bottom: 6px; }

/* --- Status i CTA --- */
.karta { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-soft); }
.status { display: flex; gap: 12px; align-items: flex-start; }
.kropka { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--trail-easy); margin-top: 7px;
  box-shadow: 0 0 0 4px var(--trail-easy-soft); }
.status b { display: block; font-weight: 600; }
.status small { color: var(--muted-foreground); font-size: var(--text-xs); }
.cta { background: var(--gradient-forest); color: var(--primary-foreground); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-raised); }
.cta h3 { color: inherit; font-size: 19px; margin-bottom: 6px; }
.cta p { margin: 0 0 16px; font-size: var(--text-sm); opacity: .88; }
.btn-glowny { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--radius-md);
  background: var(--gradient-sunrise); color: var(--forest-deep); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-press); }
.sklepy { display: flex; gap: 8px; margin-top: 12px; }
.sklepy img { height: 38px; width: auto; }

/* --- Mapa + profil --- */
.mapa { position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; }
.mapa img, .mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa .halo { fill: none; stroke: var(--sand); stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.mapa .linia { fill: none; stroke: var(--trasa); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.mapa .pkt { stroke: var(--sand); stroke-width: 3; }
.mapa a.otworz { position: absolute; right: 10px; bottom: 10px; background: var(--card); color: var(--forest); font-size: var(--text-xs);
  font-weight: 600; padding: 7px 12px; border-radius: var(--radius-pill); text-decoration: none; box-shadow: var(--shadow-raised); }
.mapa .atr { position: absolute; left: 6px; bottom: 4px; font-size: 9.5px; color: var(--muted-foreground); background: color-mix(in oklch, var(--card) 80%, transparent); padding: 1px 5px; border-radius: 4px; }
.profil { padding: 16px 16px 10px; }
.profil svg { width: 100%; height: auto; display: block; overflow: visible; }
.profil .os { stroke: var(--border); stroke-width: 1; }
.profil .os-t { fill: var(--muted-foreground); font-size: 17px; font-family: var(--font-mono); }
.profil .pole { fill: var(--accent); opacity: .7; }
.profil .lin { fill: none; stroke: var(--forest); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.profil .lancuchy { fill: var(--trail-hard-soft); }
.profil .mk { fill: var(--card); stroke: var(--forest); stroke-width: 2; }
.profil .mk-kreska { stroke: var(--stone); stroke-width: 1.5; }
.profil .mk-t { fill: var(--foreground); font-size: 19px; font-weight: 600; }
@media (max-width: 560px) { .profil .mk-t { display: none; } }
.profil-legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--text-xs); color: var(--muted-foreground); margin-top: 8px; }
.profil-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }

/* --- Przebieg --- */
.przebieg { list-style: none; padding: 0; margin: 0; position: relative; }
.przebieg::before { content: ""; position: absolute; left: 61px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(var(--stone) 0 6px, transparent 6px 11px); }
.etap { display: grid; grid-template-columns: 50px 24px minmax(0, 1fr); gap: 0 0; padding: 0 0 22px; position: relative; }
.etap .czas { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted-foreground); padding-top: 2px; text-align: right; padding-right: 0; }
.etap .os-kropka { width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--forest); margin: 4px 0 0 5px; position: relative; z-index: 1; }
.etap.cel .os-kropka { background: var(--trasa); border-color: var(--card); box-shadow: 0 0 0 2px var(--trasa); }
.etap .opis { padding-left: 10px; }
.etap .meta { font-size: var(--text-xs); color: var(--muted-foreground); margin-bottom: 4px; }
.etap p { margin: 0; max-width: 62ch; }
.etap .ostrz { margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; background: var(--warn); border: 1px solid var(--warn-border);
  color: var(--warn-foreground); font-size: var(--text-xs); font-weight: 500; padding: 4px 10px; border-radius: var(--radius-pill); }

/* --- Widok ze szczytu --- */
.widok { position: relative; margin: 8px 0 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--forest-deep);
  aspect-ratio: 16 / 7; box-shadow: var(--shadow-ridge); color: var(--primary-foreground); }
.widok img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-base) var(--ease-out); }
.widok img[hidden] { display: block; opacity: 0; }
.widok::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, oklch(0.2 0.03 160 / .82) 0%, oklch(0.2 0.03 160 / .25) 45%, transparent 70%); }
.widok-tresc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; display: flex; gap: 16px;
  align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.widok-tresc h3 { color: inherit; font-size: 22px; margin: 0 0 4px; }
.widok-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--radius-md);
  background: var(--gradient-sunrise); color: var(--forest-deep); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-press); white-space: nowrap; }
.widok-btn svg { width: 20px; height: 20px; }
.kierunki { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; gap: 4px; padding: 4px;
  border-radius: var(--radius-pill); background: oklch(0.2 0.03 160 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.kierunki button { font: 500 var(--text-xs) var(--font-sans); color: var(--primary-foreground); background: transparent; border: 0;
  height: 30px; padding: 0 12px; border-radius: var(--radius-pill); cursor: pointer; }
.kierunki button[aria-pressed="true"] { background: var(--card); color: var(--card-foreground); }
@media (max-width: 560px) { .widok { aspect-ratio: 4 / 5; } .widok-tresc { padding: 16px; } .widok-btn { width: 100%; justify-content: center; } }

/* --- Plan dnia --- */
.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.plan div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; }
.plan b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan span { font-size: var(--text-xs); color: var(--muted-foreground); }
.plan .szczyt b { color: var(--trail-hard); }

/* --- Miejsca --- */
.miejsca { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.miejsce { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.miejsce:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); }
.miejsce img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--muted); }
.miejsce div { padding: 10px 12px 12px; }
.miejsce b { display: block; font-weight: 600; }
.miejsce span { font-size: var(--text-xs); color: var(--muted-foreground); }

/* --- FAQ --- */
details { border-bottom: 1px solid var(--border); padding: 4px 0; max-width: 72ch; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--moss); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; max-width: 66ch; }


/* --- Stopka --- */
footer { border-top: 1px solid var(--border); background: var(--muted); padding: 28px 0; font-size: var(--text-xs); color: var(--muted-foreground); }
footer p { margin: 0 0 8px; max-width: 90ch; }
footer a { color: inherit; }

/* --- Przypięty CTA na telefonie --- */
.cta-dol { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: none; }
.cta-dol a { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: var(--radius-md);
  background: var(--forest); color: var(--primary-foreground); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-ridge); }
@media (max-width: 979px) { .cta-dol { display: block; } }

/* --- Komunikaty parku na trasie --- */
.status.zamk .kropka { background: var(--trail-hard); box-shadow: 0 0 0 4px var(--trail-hard-soft); }
.status ul { margin: 6px 0; padding-left: 18px; font-size: var(--text-sm); }

/* --- Spis tras (/szlaki/) --- */
.spis h1 { margin-top: 32px; }
.spis section { margin-bottom: 36px; }
.spis main, main.spis { padding-bottom: 64px; }

/* --- Moduł planera w prawej kolumnie --- */
.planer-modul h3 { font-size: 19px; margin-bottom: 4px; }
.planer-modul p { margin: 0 0 14px; font-size: var(--text-sm); color: var(--muted-foreground); }

/* --- Stopka z prawami (jak na stronie www) --- */
.stopka-prawa { border-top: 1px solid var(--border); background: var(--muted); padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  font-size: var(--text-xs); color: var(--muted-foreground); }
.stopka-prawa p { margin: 0; }
.stopka-prawa a { color: inherit; }
@media (max-width: 979px) { .stopka-prawa { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }

/* --- Spis tras: wiersze jeden pod drugim, wyszukiwarka --- */
.szukaj-tras { position: sticky; top: 60px; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: 12px 0; margin-bottom: 8px; background: var(--background); }
.szukaj-tras input { flex: 1; height: 48px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--border-strong);
  background: var(--card); color: var(--foreground); font: inherit; }
.szukaj-tras input:focus { outline: 2px solid var(--moss); outline-offset: 1px; }
#licznik { font-size: var(--text-sm); color: var(--muted-foreground); white-space: nowrap; }
#licznik:empty { display: none; }
.brak-wynikow { color: var(--muted-foreground); }
.lista-tras { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.trasa-wiersz { display: flex; gap: 16px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.trasa-wiersz:hover { border-color: var(--border-strong); box-shadow: var(--shadow-raised); }
.trasa-wiersz img, .trasa-wiersz .bez-zdjecia { flex: none; width: 128px; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-md); background: var(--muted); }
.trasa-wiersz b { display: block; font-weight: 600; font-size: var(--text-lg); line-height: 1.3; margin-bottom: 6px; }
.trasa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--text-sm); color: var(--muted-foreground); }
.trasa-meta .plk { height: 24px; }
@media (max-width: 560px) {
  .trasa-wiersz { gap: 12px; padding: 8px; }
  .trasa-wiersz img, .trasa-wiersz .bez-zdjecia { width: 92px; }
  .trasa-wiersz b { font-size: var(--text-base); }
}

/* --- Podobne trasy: slider kafli na całą szerokość --- */
.podobne-trasy { margin: 0 0 56px; }
.podobne-naglowek { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.podobne-naglowek h2 { margin: 0; }
.slider-strzalki { display: flex; gap: 8px; }
.slider-strzalki button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card);
  color: var(--foreground); font-size: 22px; line-height: 1; cursor: pointer; }
.slider-strzalki button:hover { background: var(--accent-soft); }
@media (pointer: coarse) { .slider-strzalki { display: none; } }
.slider-tras { list-style: none; margin: 0 0 20px; padding: 4px 2px 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(240px, calc((100% - 3 * 16px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; overscroll-behavior-x: contain; }
@media (max-width: 719px) { .slider-tras { grid-auto-columns: 78%; } }
.slider-tras li { scroll-snap-align: start; }
.kafel-trasy { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.kafel-trasy:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); }
.kafel-trasy img, .kafel-trasy .bez-zdjecia { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--muted); display: block; }
.kafel-trasy > div { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kafel-trasy b { font-weight: 600; line-height: 1.3; }
.kafel-trasy .plk { height: 24px; }
.btn-drugi { display: flex; align-items: center; justify-content: center; height: 48px; max-width: 320px; margin: 0 auto;
  border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--card); color: var(--forest);
  font-weight: 600; text-decoration: none; }
.btn-drugi:hover { background: var(--accent-soft); }

/* --- Pasma, regiony (strony zbiorcze) --- */
.pasma { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pasmo-kafel { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius-lg);
  background: var(--gradient-forest); color: var(--primary-foreground); text-decoration: none; box-shadow: var(--shadow-soft); }
.pasmo-kafel b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.pasmo-kafel span { font-size: var(--text-sm); opacity: .85; }
.pasmo-kafel:hover { box-shadow: var(--shadow-raised); }
.region h2 a { color: inherit; text-decoration: none; }
.region h2 a:hover { color: var(--moss); text-decoration: underline; }
.region h2 small { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 400; color: var(--muted-foreground); margin-left: 6px; }
.kafle-regionow { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bazy { margin: 8px 0 0; padding-left: 18px; font-size: var(--text-sm); }
.bazy li { margin-bottom: 4px; }
.mapa-regionu svg a .linia { transition: stroke-width var(--dur-fast) var(--ease-out); }
.mapa-regionu svg a:hover .linia, .mapa-regionu svg a:focus .linia { stroke-width: 9; }
.spis .uklad { margin-top: 8px; }
.tresc .lista-tras { padding-left: 0; max-width: none; }

/* --- Podpisy zdjęć w stopce --- */
.podpisy-zdjec { margin: 4px 0 8px; padding-left: 18px; columns: 2 280px; column-gap: 32px; }
.podpisy-zdjec li { break-inside: avoid; margin-bottom: 2px; }
.podpisy summary { cursor: pointer; font-weight: 600; padding: 4px 0; }

/* --- Dziennik zmian (dziennik-zmian/, scripts/seo/dziennik.py) --- */
.dz-meta { display: flex; align-items: center; gap: 12px; margin: 24px 0 8px; font-size: var(--text-sm); color: var(--muted-foreground); }
.dz-wersja { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--forest); color: var(--primary-foreground);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; }
.dz-lista { list-style: none; padding: 0; margin: 28px 0 56px; display: grid; gap: 20px; }
.dz-karta a { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-soft);
  transition: box-shadow .2s, transform .2s; }
.dz-karta a:hover { box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.dz-okladka { width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: var(--muted); }
.dz-karta-tekst { padding: 2px 24px 20px; }
.dz-karta h2 { margin: 6px 0 8px; font-size: 22px; }
.dz-karta p { margin: 0 0 12px; color: var(--muted-foreground); }
.dz-dalej { color: var(--forest); font-weight: 600; font-size: var(--text-sm); }
@media (max-width: 640px) { .dz-karta a { grid-template-columns: 1fr; } .dz-okladka { aspect-ratio: 5 / 2; height: auto; min-height: 0; } }
.dz-wpis { max-width: 720px; margin: 0 auto 56px; }
.dz-wpis h1 { margin-top: 4px; }
.dz-wpis p, .dz-wpis li { font-size: 17px; line-height: 1.7; }
.dz-wpis ul { padding-left: 22px; }
.dz-wpis li { margin-bottom: 6px; }
.dz-wpis h2 { margin-top: 44px; }
.dz-wpis h3 { margin-top: 28px; }
.dz-obraz { margin: 28px 0; }
.dz-obraz img { width: 100%; height: auto; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--muted); }
.dz-obraz figcaption { margin-top: 8px; font-size: var(--text-sm); color: var(--muted-foreground); text-align: center; }
.dz-obraz.mokap img { max-width: 320px; margin: 0 auto; border: none; border-radius: 0; background: none; }
.dz-obraz.mokap.szeroki img { max-width: 100%; }
.dz-galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 28px 0; align-items: start; }
.dz-galeria.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dz-galeria .dz-obraz { margin: 0; }
.dz-galeria .dz-obraz.mokap img { max-width: 100%; }
@media (max-width: 640px) { .dz-galeria.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dz-szkic { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sunrise); color: var(--forest-deep);
  font-size: var(--text-xs); font-weight: 600; }
.dz-nawigacja { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--text-sm); }
.dz-nast { margin-left: auto; text-align: right; }

/* Blok „Pogoda …” w kolumnie trasy — link do /pogoda/<miejsce>/ (etap P2 strony pogody). */
.pogoda-trasy { display: grid; gap: 4px; margin-top: 14px; text-decoration: none; color: var(--foreground);
  border-left: 5px solid var(--sunrise); }
.pogoda-trasy:hover { border-color: var(--moss); border-left-color: var(--sunrise); }
.pogoda-trasy span { font-size: var(--text-sm); color: var(--muted-foreground); }
.pogoda-trasy small { font-size: var(--text-xs); color: var(--forest); font-weight: 600; }

/* --- Zestawienia (łatwe, z dziećmi, punkty startu): linki na spisie i na trasie --- */
.zestawienia { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: baseline; margin: 4px 0 24px; }
.zestawienia p { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.zestawienia ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zestawienia a { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground); text-decoration: none;
  font-size: var(--text-sm); }
.zestawienia a:hover { border-color: var(--moss); color: var(--moss); }
@media (max-width: 560px) { .zestawienia { grid-template-columns: 1fr; } }
.w-zestawieniach { margin: 18px auto 0; max-width: 720px; text-align: center; font-size: var(--text-sm);
  color: var(--muted-foreground); }
.bazy a[aria-current] { font-weight: 600; color: var(--moss); }
.rady-sk { padding-left: 18px; display: grid; gap: 8px; }
.rady-sk li { line-height: 1.5; }
.faq { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { margin: 8px 0 0; color: var(--muted-foreground); }
/* --- Poradniki (tresci/poradniki, scripts/seo/poradniki.py): wygląd wpisów dziennika + źródła --- */
.pr-zrodla { margin: 32px 0 0; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--card);
  border: 1px solid var(--border); font-size: var(--text-sm); }
.pr-zrodla h2 { margin: 0 0 8px; font-size: var(--text-base); }
.pr-zrodla ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pr-inne { margin: 32px 0 0; }
.pr-inne ul { padding-left: 18px; display: grid; gap: 6px; }
.dz-karta.bez-okladki a { grid-template-columns: minmax(0, 1fr); }
.dz-karta.bez-okladki .dz-karta-tekst { padding: 20px 24px; }
.poradnik .z-ikona { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 0 14px; }
.poradnik ul:has(> .z-ikona) { list-style: none; padding: 0; }
.poradnik .z-ikona img { width: 76px; height: auto; }
.poradnik .lista-tras { margin: 16px 0; }
.poradnik details.faq > p, .poradnik details.faq > ul { margin: 8px 0 0; }
.poradnik .dz-obraz img[src$=".svg"] { max-width: 220px; margin: 0 auto; display: block; border: 0; border-radius: 0; background: none; }
/* Okładka poradnika: szerzej niż kolumna tekstu (720 px), do 1040 px. */
.poradnik .pr-okladka { display: block; width: min(1040px, calc(100vw - 32px)); max-width: none; height: auto;
  aspect-ratio: 21 / 9; object-fit: cover; margin: 4px 0 20px; position: relative; left: 50%; transform: translateX(-50%);
  border-radius: var(--radius-lg, 16px); background: var(--muted); }
@media (max-width: 640px) { .poradnik .pr-okladka { aspect-ratio: 4 / 3; border-radius: var(--radius-md, 12px); } }
