/* 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; } }

/* Wyszukiwarka (ADR 0104) w wyglądzie v2; wspólne style w v2-base.css. */
.s-hero h1 { margin-bottom: 18px; }
.s-box { max-width: 760px; }
.s-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.s-input { box-sizing: border-box; width: 100%; font: inherit; font-size: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); -webkit-appearance: none; appearance: none; }
.s-input:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
.s-status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.s-noscript { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--acc-soft); color: var(--ink); max-width: 760px; }

/* co jest w indeksie (przed wpisaniem zapytania) */
.s-intro { padding-top: 28px; }
.v2 .s-intro h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.s-kinds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.s-kinds li { display: flex; gap: 8px; align-items: baseline; padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }
.s-kinds b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.s-intro .v2-small { max-width: 72ch; }

/* wyniki */
.s-results { padding-top: 8px; padding-bottom: 40px; }
.s-group { margin: 26px 0 0; }
.v2 .s-group h2 { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.s-group h2 small { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.s-list { list-style: none; padding: 0; margin: 0; }
.s-item { position: relative; padding: 12px 12px; margin: 0 -12px; border-radius: 12px; border-bottom: 1px solid var(--line-soft); }
.s-item:hover { background: var(--white); }
.s-item:focus-within { outline: 2px solid var(--acc); outline-offset: -2px; }
.v2 .s-item a { color: var(--ink); text-decoration: none; }
.v2 .s-item a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; } /* cała pozycja klikalna */
.v2 .s-item a:focus { outline: none; }
.v2 .s-item:hover .s-t { color: var(--acc); text-decoration: underline; }
.s-t { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.s-s { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.s-d { margin: 4px 0 0; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--body); max-width: 80ch; }
.s-item mark { background: var(--acc-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.s-more { margin: 10px 0 0; }
.s-empty { margin: 20px 0 0; font-family: var(--serif); font-size: 17px; color: var(--body); max-width: 70ch; }

@media print { .s-box, .s-status { display: none; } }
