/* Wspólne style wyglądu v2 (ADR 0053): kroje z templates/fonts/ (SIL OFL 1.1), kolory, pasek, nagłówek, mapa, filtry, stopka.
   build_site dokleja je na początek v2.css (strony wakacji v2, ADR 0041) i home_v2.css (strona główna v2, ADR 0090). */
@font-face { font-family: "Commissioner"; font-weight: 400 700; font-display: swap; src: url("fonts/commissioner-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Commissioner"; font-weight: 400 700; font-display: swap; src: url("fonts/commissioner-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/literata-italic-greek-ext.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/literata-italic-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/literata-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/literata-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 400 500; font-display: swap; src: url("fonts/literata-greek-ext.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Literata"; font-weight: 400 500; font-display: swap; src: url("fonts/literata-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Literata"; font-weight: 400 500; font-display: swap; src: url("fonts/literata-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-weight: 400 500; font-display: swap; src: url("fonts/literata-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #15181b; --paper: #f5f4f0; --white: #fff; --line: #e3e1db; --line-soft: #eeece6;
  --hover: #e9e7e1; --body: #3d4247; --muted: #6b7075; --faint: #8a8f94;
  --acc: #b4502b; --acc-soft: #f7e8e0;
  --sans: "Commissioner", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 3vw, 32px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.v2 { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.45; }
.v2 a { color: var(--acc); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.v2 a:hover { color: var(--ink); }
.v2 ::selection { background: var(--acc-soft); }
.v2 h1, .v2 h2, .v2 h3 { font-family: var(--sans); margin: 0; }
.v2 img { max-width: 100%; }
.v2 button { font: inherit; color: inherit; }
.v2-wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.v2-sec { padding-top: clamp(56px, 7vw, 104px); }
.v2-sec > h2, .v2-split h2 { font-weight: 700; font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 22px; }
.v2-kicker { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--acc); margin: 0; }
.v2-mono { font-family: var(--mono); font-size: 12px; color: var(--faint); margin: 0; }
.v2-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0; }
.v2-serif, .v2-serif p { font-family: var(--serif); font-size: 17px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.v2-serif p { margin: 0 0 0.6em; }
.v2-small, .v2-small p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.v2-small p { margin: 0 0 0.6em; }
.v2-pill { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; white-space: nowrap; }
.v2-pill:hover { border-color: var(--ink); }

/* pasek */
.v2-bar { position: sticky; top: 0; z-index: 1100; background: rgba(245, 244, 240, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.v2-bar-in { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; gap: 20px; }
.v2 .v2-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.v2-brand img { display: block; }
.v2-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.v2 .v2-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none; white-space: nowrap; }
.v2 .v2-nav a:hover { background: var(--hover); color: var(--ink); }
/* link do wyszukiwarki z lupą (ADR 0104); na wąskim ekranie sama lupa */
.v2 .v2-search { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.v2 .v2-search:hover, .v2 .v2-search[aria-current="page"] { border-color: var(--ink); }
.v2-search svg { display: block; }
@media (max-width: 560px) { .v2 .v2-search { padding: 8px 9px; } .v2-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.v2-seg { display: flex; gap: 4px; padding: 3px; background: var(--hover); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; flex-shrink: 0; }
.v2-seg a, .v2-seg button { font-size: 13px; font-weight: 600; padding: 6px 12px; border: 0; border-radius: 8px; cursor: pointer; background: transparent; color: #5c6166; text-decoration: none; white-space: nowrap; }
.v2 .v2-seg a { color: #5c6166; }
.v2-seg a[aria-current="page"], .v2-seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.v2 .v2-seg a[aria-current="page"] { color: var(--ink); }
.v2-seg small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 8px; }

/* nagłówek strony */
.v2-hero { padding-top: clamp(28px, 5vw, 64px); }
.v2-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.v2-hero-text { min-width: 0; }
.v2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.v2-chips span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--body); }
.v2 h1 { font-weight: 700; font-size: clamp(40px, 6vw, 78px); line-height: 0.98; letter-spacing: -0.035em; margin: 20px 0 22px; text-wrap: balance; }
.v2-lead p { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--body); margin: 0 0 0.8em; max-width: 62ch; text-wrap: pretty; }
.v2-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.v2 .v2-downloads a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.v2 .v2-downloads a:first-child { background: var(--ink); color: var(--white); border-color: var(--ink); }
.v2 .v2-downloads a:hover { opacity: 0.85; }
.v2-downloads span { font-family: var(--mono); font-size: 10px; font-weight: 500; opacity: 0.7; }
.v2-hero-fig { margin: 0; min-width: 0; }
.v2-hero-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; background: var(--line); }
.v2-hero-fig figcaption { font-size: 11px; color: var(--muted); margin-top: 8px; }
.v2 .v2-hero-fig figcaption a { color: var(--muted); }
.v2-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
/* linie między polami cieniem: puste miejsce w ostatnim rzędzie zostaje białe */
.v2-facts > div { padding: 16px 18px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.v2-facts dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.v2-facts dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.v2-facts-top { margin-top: clamp(32px, 4vw, 48px); }
.v2-facts-region { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-top: 24px; }
.v2-facts-region > div { padding: 14px 16px; }
.v2-facts-region dd { font-size: 14px; font-weight: 400; }


/* mapa */
.v2-mapgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.v2-mapbox { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #eceae4; height: 360px; }
.v2-map { position: absolute; inset: 0; font-family: var(--sans); background: #eceae4; }
.v2-map .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(0.88); }
.v2 .leaflet-container { font-family: var(--sans); }
.v2 .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14); }
.v2 .leaflet-popup-content { margin: 14px 16px; font-size: 13px; line-height: 1.45; }
.v2 .leaflet-popup-content strong { display: block; font-size: 14px; line-height: 1.3; margin-bottom: 4px; }
.v2 .leaflet-tooltip { font-family: var(--sans); font-size: 12px; font-weight: 600; border: 0; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); padding: 3px 8px; }
.v2-pop-meta { color: var(--muted); margin-bottom: 6px; }

/* filtry nad listą */
.v2-filters { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 0; z-index: 2; background: var(--paper); padding-bottom: 4px; }
.v2-filters button { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer; display: flex; gap: 5px; align-items: center; white-space: nowrap; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.v2-filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.v2-filters span { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: 0.65; }

/* stopka */
.v2-footer { margin-top: 96px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.v2-footer .v2-wrap { padding-top: 24px; padding-bottom: 24px; }
.v2-footer p { margin: 0 0 10px; }
.v2-footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.v2 .v2-footer a { color: var(--muted); }
.v2-updated { font-size: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* „Bestiariusz z trasy” (ADR 0100, 0102) w wyglądzie v2; wspólne style w v2-base.css. */
.b-hero h1 { margin-bottom: 14px; }
.b-picto { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--acc-soft); display: inline-flex; align-items: center; justify-content: center; }
.b-picto svg { width: 28px; height: 28px; }
.b-picto-l { width: 56px; height: 56px; }
.b-picto-l svg { width: 38px; height: 38px; }

/* spis motywów: kafelki z piktogramem, nazwą i liczbą */
.b-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 26px 0 0; }
.v2 .b-toc a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.v2 .b-toc a:hover { border-color: var(--ink); }
.b-toc-t { flex: 1; font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.b-toc-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.b-toc-img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; margin: -4px 0; }

/* rozdział motywu */
.b-sec { padding-top: clamp(40px, 5vw, 72px); }
.b-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 3px double var(--line); }
.v2 .b-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.01em; line-height: 1.1; margin: 0; }

/* obraz motywu (ADR 0102): od 900 px po lewej, nagłówek i podpis po prawej */
.b-intro { display: grid; gap: 18px; align-items: end; }
.b-art { margin: 0; }
.b-art img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; object-position: left bottom; border-radius: 6px; }
.b-intro-t .b-head { border-bottom: 3px double var(--line); }
.b-caption { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.5; color: var(--muted); }
.v2 .b-caption a { color: var(--ink); }
@media (min-width: 900px) {
  .b-intro { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; }
  .b-art img { width: auto; max-width: 100%; margin-left: 0; }
}

/* opowieść: rodzaj, tytuł, zajawka, miejsce i podróż */
.b-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.b-items li { position: relative; padding: 18px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line-soft); border-radius: 12px; transition: background 0.15s; }
.b-items li:hover { background: var(--white); }
.b-items li:focus-within { outline: 2px solid var(--acc); outline-offset: -2px; }
.b-k { margin: 0; font-family: var(--sans); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--acc); }
.v2 .b-items h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 4px 0 6px; }
.v2 .b-items h3 a { color: var(--ink); text-decoration: none; }
.v2 .b-items h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; } /* cały kafel klikalny */
.v2 .b-items h3 a:focus { outline: none; }
.v2 .b-items li:hover h3 a { color: var(--acc); text-decoration: underline; }
.b-teaser { margin: 0; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--body); }
.b-place { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.b-place i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--trip, var(--acc)); margin-right: 6px; }
.v2 .b-place a { position: relative; z-index: 1; color: var(--muted); } /* nad linkiem kafla */

.b-end { max-width: 860px; }
.h-credits { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.h-credits summary { padding: 14px 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
.h-credits ul { margin: 0; padding: 0 18px 16px 36px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.v2 .h-credits a { color: #5c6166; }
.en-note { font-size: 13px; }
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--acc-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-hint button { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }

@media (max-width: 600px) {
  .b-toc { grid-template-columns: 1fr; }
  .b-picto-l { width: 44px; height: 44px; }
  .b-picto-l svg { width: 30px; height: 30px; }
}
