/* =========================================================
   Wariant D — „Dziedzictwo i Wspólnota”
   Jasny kamień, ciemna zieleń, przygaszone złoto (akcent).
   EB Garamond (nagłówki, cytaty) + Source Sans 3 (interfejs, tekst).
   Ruch: 160 ms (stany), 240 ms (zmiana ścieżki), 300 ms (wejście panelu).
   ========================================================= */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/eb-garamond-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/eb-garamond-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/source-sans-3-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --stone: #f3efe6;        /* tło strony — jasny kamień */
  --stone-2: #e9e3d6;      /* tło sekcji przemiennych */
  --paper: #fbf9f4;        /* karty, panele */
  --ink: #1f2421;          /* tekst 13.7:1 */
  --muted: #4a524c;        /* tekst pomocniczy 7.0:1 */
  --green: #24412f;        /* kolor główny 9.8:1 */
  --green-deep: #183024;
  --gold: #7a5c1e;         /* złoto tekstowe 5.4:1 — tylko akcent */
  --gold-line: #b08d48;    /* złoto dekoracyjne — linie, nie tekst */
  --rule: #d6cfbf;
  --focus: #0b5cad;
  --serif: "EB Garamond", "Garamond", "Georgia", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --t-fast: 160ms;
  --t-mid: 240ms;
  --t-slow: 300ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--green-deep); }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease); }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.proto-banner { background: var(--green-deep); color: #fff; }
.proto-banner a { color: #fff; }

/* ---------- Pasek użytkowy + nagłówek ---------- */
.utility { border-bottom: 1px solid var(--rule); font-size: .9rem; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; align-items: center; min-height: 44px; }
.utility a { color: var(--muted); text-decoration: none; padding: 10px 0; display: inline-block; }
.utility a:hover { color: var(--green); text-decoration: underline; }
.motion-btn {
  font: inherit; font-size: .9rem; color: var(--muted); background: none; border: 1px solid var(--rule);
  border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer;
}
.motion-btn[aria-pressed="true"] { border-color: var(--green); color: var(--green); }

.masthead { padding: 28px 0 0; }
.masthead .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 24px; align-items: center; }
.brand { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo-ph {
  width: 64px; height: 64px; flex: none; border: 1px dashed var(--gold-line); border-radius: 50%;
  display: grid; place-items: center; text-align: center; font: 600 .55rem/1.15 var(--sans);
  color: var(--muted); padding: 6px; background: var(--paper);
}
.brand-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; color: var(--green-deep); }
.brand-name small { display: block; font: 400 .85rem/1.4 var(--sans); color: var(--muted); letter-spacing: .02em; }
.head-actions { display: flex; gap: 8px; justify-self: end; grid-column: 3; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid var(--green); background: transparent; color: var(--green); border-radius: 999px;
  font: 600 .95rem/1 var(--sans); cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--green); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; transition: transform var(--t-mid) var(--ease); }
.icon-btn[aria-expanded="true"] svg.chev { transform: rotate(180deg); }
.menu-toggle { display: none; }

.mainnav { grid-column: 1 / -1; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 20px; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.mainnav a {
  display: block; padding: 12px 14px; min-height: 48px; text-decoration: none; color: var(--ink); font-weight: 600;
  border-bottom: 2px solid transparent; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.mainnav a:hover { color: var(--green); border-bottom-color: var(--gold-line); }
.mainnav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.mainnav .sub { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }

.search-panel { grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; margin-top: 16px; }
.js .search-panel { animation: drop var(--t-slow) var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.search-panel form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-panel label { display: block; font-weight: 600; margin-bottom: 6px; }
.field {
  flex: 1 1 240px; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  border: 1px solid #8f978f; border-radius: 4px; background: #fff;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 4px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--green-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--stone-2); color: var(--green-deep); }
.results { list-style: none; padding: 0; margin: 12px 0 0; }
.results li { padding: 8px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.results a { font-weight: 600; }
.hint { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }

/* ---------- Strona główna: pierwszy ekran (opowieść obok obrazu) ---------- */
.story { padding: 48px 0 56px; }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.story figure { margin: 0; }
.ph {
  position: relative; background: var(--stone-2); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  aspect-ratio: 4 / 5;
}
.ph svg { display: block; width: 100%; height: 100%; }
.ph-tag {
  position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--muted);
  font: 600 .75rem/1.3 var(--sans); padding: 6px 10px; border-radius: 3px; border: 1px solid var(--rule); max-width: calc(100% - 24px);
}
figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.kicker { font: 600 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold-line); }
.story h1 { margin-bottom: .4em; }
.story .lede { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
.story .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.now { border-top: 1px solid var(--rule); padding-top: 18px; }
.now h2 { font: 600 .85rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.now ol { list-style: none; margin: 0; padding: 0; }
.now li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
.now time { color: var(--muted); font-size: .92rem; }
.now a { font-weight: 600; text-decoration: none; }
.now a:hover { text-decoration: underline; }
.now .all { display: inline-block; margin-top: 12px; font-weight: 600; padding: 10px 0; }

/* ---------- Trzy wejścia ---------- */
.entries { background: var(--paper); border-block: 1px solid var(--rule); padding: 48px 0; }
.entries ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.entries li { padding: 8px 28px; border-left: 1px solid var(--rule); }
.entries li:first-child { border-left: 0; padding-left: 0; }
.entries a { text-decoration: none; display: block; color: var(--ink); }
.entries .verb { font-family: var(--serif); font-size: 1.9rem; color: var(--green-deep); display: flex; justify-content: space-between; align-items: baseline; }
.entries .verb span { font-family: var(--sans); font-size: 1.2rem; color: var(--gold); transition: transform var(--t-fast) var(--ease); }
.entries a:hover .verb span { transform: translateX(4px); }
.entries a:hover .verb { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.entries p { color: var(--muted); margin: 6px 0 0; }

/* ---------- Ścieżki pamięci (element charakterystyczny) ---------- */
.paths { padding: 72px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; }
.path-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.path-picker[hidden] { display: none; }
.path-btn {
  font: 600 1rem/1.25 var(--sans); text-align: left; padding: 12px 18px; min-height: 52px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.path-btn small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.path-btn:hover { border-color: var(--green); }
.path-btn[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.path-btn[aria-pressed="true"] small { color: #e4ece6; }
.path { margin-bottom: 40px; }
.js .path { margin-bottom: 0; }
.path.is-entering { animation: pathIn var(--t-mid) var(--ease); }
@keyframes pathIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.path-title { font-size: 1.6rem; margin-bottom: 18px; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: st; position: relative; }
.stations::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--gold-line);
}
.station { position: relative; padding: 0 20px 0 0; counter-increment: st; }
.station .dot {
  width: 44px; height: 44px; border-radius: 50%; background: var(--stone); border: 1px solid var(--gold-line);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; color: var(--gold); position: relative; margin-bottom: 14px;
}
.station h4 { font: 600 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.station .name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--green-deep); margin: 0 0 8px; }
.station p { font-size: .97rem; margin: 0 0 8px; }
.station .src { font-size: .85rem; color: var(--muted); }
.station .gap { font-style: italic; color: var(--muted); }
.path-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Mozaika miejsc pamięci (aktualności + wydarzenia) ---------- */
.places { background: var(--stone-2); padding: 72px 0; }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mosaic li { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; }
.mosaic li { grid-column: 4 / span 3; }
.mosaic li:nth-child(1) { grid-column: 1 / span 3; grid-row: 1 / span 3; }
.mosaic .place { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--green-deep); margin: 0 0 4px; }
.mosaic li:nth-child(1) .place { font-size: 3rem; }
.mosaic .meta { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.mosaic h3 { font: 600 1.05rem/1.4 var(--sans); color: var(--ink); margin: 0 0 8px; }
.mosaic h3 a { color: inherit; text-decoration: none; }
.mosaic h3 a:hover { text-decoration: underline; color: var(--green); }
.mosaic .flag { margin-top: auto; font-size: .85rem; border-left: 3px solid var(--gold-line); padding: 6px 0 6px 10px; color: var(--muted); }
.mosaic .ph { aspect-ratio: 16 / 9; margin-bottom: 16px; }
.more { margin-top: 24px; }

/* ---------- Źródło + biogram ---------- */
.sources { padding: 72px 0; }
.duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.doc {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 32px;
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
}
.doc .ph { aspect-ratio: 3 / 4; }
.doc dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; margin: 14px 0; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }
.note { background: var(--stone); border-left: 3px solid var(--gold-line); padding: 10px 14px; font-size: .9rem; color: var(--muted); }
.bio { border-top: 2px solid var(--green); padding-top: 20px; }
.bio blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; }
.calendar { list-style: none; padding: 0; margin: 24px 0 0; }
.calendar li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.calendar b { font-family: var(--serif); font-weight: 500; color: var(--gold); font-size: 1.1rem; }

/* ---------- Organizacja ---------- */
.org { background: var(--green-deep); color: #eef2ec; padding: 64px 0; }
.org h2 { color: #fff; }
.org a { color: #fff; }
.org .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.org dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.org dt { color: #c5d2c9; }
.org dd { margin: 0; }
.org .btn { background: #fff; color: var(--green-deep); border-color: #fff; }
.org .btn:hover { background: var(--stone); }
.org label { display: block; font-weight: 600; margin-bottom: 6px; }
.org .field { border-color: #fff; width: 100%; }
.org .demo-msg { min-height: 1.5em; font-size: .9rem; color: #fff; margin-top: 8px; }

footer.site { padding: 32px 0 48px; font-size: .9rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer.site a { color: var(--green); }

/* ---------- Aktualności ---------- */
.page-head { padding: 40px 0 24px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.page-head p.intro { font-family: var(--serif); font-size: 1.25rem; max-width: 46ch; color: var(--ink); }
.listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-bottom: 72px; }
.filters { align-self: start; position: sticky; top: 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 22px; }
.filters h2 { font: 600 .85rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.filters legend { font: 600 .85rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-direction: column; gap: 6px; }
.chip {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--stone); color: var(--ink);
  font: 600 .95rem/1.2 var(--sans); cursor: pointer; text-align: left;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip .n { font-weight: 400; font-size: .85rem; opacity: .85; }
.filters .field { width: 100%; }
.count { font-weight: 600; color: var(--green); margin: 0 0 8px; }
.entries-list { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry .when { font-size: .92rem; color: var(--muted); }
.entry .when b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--green-deep); }
.entry .type { display: inline-block; font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.entry h3 { font-size: 1.5rem; margin-bottom: 8px; }
.entry h3 a { color: var(--green-deep); text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; }
.entry p { margin-bottom: 8px; }
.entry .by { font-size: .88rem; color: var(--muted); }
.entry .flag { font-size: .88rem; border-left: 3px solid var(--gold-line); padding: 4px 0 4px 10px; color: var(--muted); margin-top: 8px; }
.empty { background: var(--paper); border: 1px dashed var(--gold-line); border-radius: 4px; padding: 28px; text-align: center; }
.empty h3 { margin-bottom: 6px; }

/* ---------- Artykuł ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; }
.article-head { padding: 40px 0 32px; border-bottom: 1px solid var(--rule); }
.article-head .inner { max-width: 820px; }
.demo-label { display: inline-block; background: var(--paper); border: 1px solid var(--gold-line); color: var(--gold); font: 600 .85rem/1.3 var(--sans); padding: 6px 12px; border-radius: 3px; margin-bottom: 18px; }
.article-head .lede { font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: .92rem; color: var(--muted); margin-top: 20px; }
.article-meta b { color: var(--ink); font-weight: 600; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 680px) minmax(0, 1fr); gap: 48px; padding: 40px 0 72px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: .95rem; }
.toc h2 { font: 600 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 8px 0 8px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; min-height: 40px; }
.toc a:hover { color: var(--green); }
.toc a[aria-current] { color: var(--green-deep); border-left-color: var(--green); font-weight: 600; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; scroll-margin-top: 24px; }
.prose p { font-size: 1.1rem; line-height: 1.75; }
.prose dl dt { font-weight: 600; margin-top: 12px; }
.prose dl dd { margin: 4px 0 0; }
.aside-box { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 20px; font-size: .95rem; position: sticky; top: 24px; align-self: start; }
.aside-box h2 { font: 600 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.aside-box ol { list-style: none; padding: 0; margin: 0; }
.aside-box li { padding: 8px 0; border-top: 1px solid var(--rule); }
.aside-box li b { display: block; font: 600 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.gallery { margin: 40px 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; }
.gallery .ph { aspect-ratio: 3 / 2; }
.gallery figure { margin: 0; }
.js .gallery [data-slide].is-active { animation: pathIn var(--t-mid) var(--ease); }
.gallery-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-bar .status { font-size: .9rem; color: var(--muted); margin: 0; flex: 1 1 100%; }
.gallery-bar button[data-prev], .gallery-bar button[data-next] { min-width: 48px; }
.no-js-only { }
.js .no-js-only { display: none; }
.gallery-dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.gallery-dot::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; border: 1px solid var(--green); }
.gallery-dot[aria-current="true"]::after { background: var(--green); }
[data-dots] { display: flex; }
.sources-list { font-size: .95rem; padding-left: 1.2em; }
.sources-list li { margin-bottom: 8px; }
.related { background: var(--stone-2); padding: 56px 0; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related li { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 20px; }
.related time { font-size: .88rem; color: var(--muted); display: block; margin-bottom: 6px; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }
.back { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .article-layout .aside-box { grid-column: 2; position: static; }
  .org .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .story .wrap { grid-template-columns: 1fr; gap: 28px; }
  .story figure { order: 2; }
  .story .ph { aspect-ratio: 16 / 10; }
  .section-head, .duo { grid-template-columns: 1fr; }
  .stations { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stations::before { display: none; }
  .listing { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  .chips { flex-direction: row; flex-wrap: wrap; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .article-layout .aside-box { grid-column: auto; }
  .toc { position: static; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 16px 20px; }
  .related ul { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .masthead { padding-top: 16px; }
  .masthead .wrap { grid-template-columns: 1fr auto; }
  .head-actions { grid-column: 2; }
  .menu-toggle { display: inline-flex; }
  .js .mainnav { border: 0; margin-top: 0; }
  .js .mainnav[hidden] { display: none !important; }
  .js .mainnav:not([hidden]) { border-top: 1px solid var(--rule); margin-top: 12px; animation: drop var(--t-slow) var(--ease); }
  .mainnav ul { flex-direction: column; }
  .mainnav a { border-bottom: 1px solid var(--rule); }
  .brand-name { font-size: 1.1rem; }
  .brand-name small { display: none; }
  .logo-ph { width: 48px; height: 48px; font-size: .45rem; }
  .icon-btn .lbl-wide { display: none; }
  .entries ul { grid-template-columns: 1fr; }
  .entries li { border-left: 0; border-top: 1px solid var(--rule); padding: 18px 0; }
  .entries li:first-child { border-top: 0; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic li, .mosaic li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .mosaic li:nth-child(1) .place { font-size: 2.3rem; }
  .doc { grid-template-columns: 1fr; padding: 22px; }
  .doc .ph { aspect-ratio: 16 / 9; }
  .org .cols { grid-template-columns: 1fr; gap: 28px; }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .now li { grid-template-columns: 1fr; gap: 2px; }
  .utility .wrap { justify-content: flex-start; gap: 0 16px; }
}
@media (max-width: 480px) {
  .stations { grid-template-columns: 1fr; }
  .station { padding: 0 0 0 60px; }
  .station .dot { position: absolute; left: 0; top: 0; }
  .paths, .places, .sources { padding: 48px 0; }
  .story { padding-top: 28px; }
  .path-btn { flex: 1 1 100%; }
}

/* Na szerokim ekranie menu jest zawsze widoczne (proto.js ukrywa panel przy starcie). */
@media (min-width: 761px) {
  .mainnav[hidden] { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .proto-banner, .utility, .mainnav, .head-actions, .progress, .gallery-bar, .path-picker { display: none !important; }
}
html:not(.js) .gallery-bar { display: none; }
html:not(.js) .gallery [data-slide] + [data-slide] { margin-top: 16px; }
footer.site a, .station .src a, .path-foot a { display: inline-block; padding: 10px 0; }
