/* ==========================================================================
   Infoliniazus.pl – motyw "Okienko"
   Kierunek: system informacji jak w dobrze oznakowanym urzędzie –
   granatowa tablica z godzinami, żółty sygnał "numerka", duże i czytelne
   litery dla każdego, także starszych czytelników.
   ========================================================================== */

:root {
  /* kolory */
  --ink: #13233b;          /* granat – tekst, tablica */
  --ink-soft: #46546a;     /* tekst drugorzędny */
  --paper: #ffffff;        /* tło treści */
  --ground: #eef1f4;       /* tło sekcji */
  --line: #d4dae2;         /* linie i obramowania */
  --signal: #f4c542;       /* żółty "numerek" */
  --signal-soft: #fdf3d2;
  --link: #1c4f91;
  --open: #1d7a4b;
  --closed: #a33a28;
  --on-ink: #f5f7fa;
  --on-ink-soft: #a9b5c6;

  /* typografia */
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2.125rem;
  --fs-3xl: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);

  /* rytm */
  --gut: clamp(16px, 4vw, 32px);
  --wrap: 1200px;
  --measure: 68ch;
  --r-s: 4px;
  --r-m: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-m);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 87.5%;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
  background: var(--signal); color: var(--ink); padding: 10px 14px; font-weight: 700;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- pasek "serwis nieoficjalny" ---------- */
.topnote {
  background: var(--ink);
  color: var(--on-ink-soft);
  font-size: var(--fs-xs);
}
.topnote .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-block: 7px; }
.topnote strong { color: var(--on-ink); font-weight: 700; }
.topnote a { color: var(--on-ink); }

/* ---------- nagłówek ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; }
.brand-name span { font-weight: 500; color: var(--ink-soft); }
.brand .custom-logo { max-height: 44px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul, .main-nav .menu { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 12px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: var(--fs-s); border-radius: var(--r-s);
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--ground); }
.main-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 300px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 12px 28px -12px rgba(19, 35, 59, .28);
  visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu, .main-nav li.is-open > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.main-nav .sub-menu a { font-weight: 400; font-size: var(--fs-m); padding: 8px 10px; }

.header-search {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); background: var(--paper);
  cursor: pointer; flex: none;
}
.header-search svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }

.search-drawer { border-top: 1px solid var(--line); background: var(--ground); }
.search-drawer form { display: flex; gap: 8px; padding-block: 14px; }

@media (max-width: 960px) {
  .site-header .wrap { min-height: 64px; gap: 12px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; height: 44px; padding: 0 14px;
    background: var(--ink); color: var(--on-ink); border: 0; border-radius: var(--r-m);
    font: 700 var(--fs-s) var(--f-text); cursor: pointer;
  }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100vh - 100px); overflow: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul, .main-nav .menu { flex-direction: column; align-items: stretch; padding: 8px var(--gut) 16px; }
  .main-nav a { font-size: var(--fs-m); padding: 12px 8px; border-bottom: 1px solid var(--ground); }
  .main-nav .sub-menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; display: none; }
  .main-nav li.is-open > .sub-menu { display: block; }
  .main-nav .menu-item-has-children > a::after { float: right; margin-top: 8px; }
}

/* ---------- elementy wspólne ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-m); border: 2px solid var(--ink);
  background: var(--ink); color: var(--on-ink); font: 700 var(--fs-m) var(--f-text);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #0b1729; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ground); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #e9b82c; }

.field {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--r-m);
  background: var(--paper); color: var(--ink); font: 400 var(--fs-l) var(--f-text);
}
.field::placeholder { color: #7b8698; }
textarea.field { min-height: 140px; font-size: var(--fs-m); line-height: 1.5; }
label { font-weight: 700; }

.section { padding-block: clamp(40px, 6vw, 72px); }
.section--ground { background: var(--ground); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 60ch; }
.more-link { font-weight: 700; white-space: nowrap; }

.tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; color: var(--ink);
  background: var(--signal-soft); padding: 2px 8px; border-radius: var(--r-s); text-decoration: none;
}
.meta { font-size: var(--fs-s); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.meta a { color: inherit; }

/* status otwarcia */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-s); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status--open { color: var(--open); }
.status--closed { color: var(--closed); }

/* ---------- okruszki ---------- */
.breadcrumbs { font-size: var(--fs-s); color: var(--ink-soft); padding-block: 18px 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); }

/* ==========================================================================
   STRONA GŁÓWNA
   ========================================================================== */
.home-hero { background: var(--ground); border-bottom: 1px solid var(--line); }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 6vw, 72px); align-items: start; }
.home-hero h1 { font-size: var(--fs-3xl); max-width: 16ch; }
.home-hero .lede { font-size: var(--fs-l); color: var(--ink-soft); margin: 16px 0 28px; max-width: 46ch; }
@media (max-width: 900px) { .home-hero .wrap { grid-template-columns: 1fr; } }

/* wyszukiwarka placówek */
.finder { position: relative; max-width: 560px; }
.finder label { display: block; margin-bottom: 8px; }
.finder-row { display: flex; gap: 8px; }
.finder-row .field { flex: 1; min-width: 0; }
@media (max-width: 520px) { .finder-row { flex-wrap: wrap; } .finder-row .field { flex-basis: 100%; } .finder-row .btn { width: 100%; } }
.finder-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 6px; background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-m); max-height: 340px; overflow: auto;
}
.finder-results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.finder-results a:hover, .finder-results a[aria-selected="true"] { background: var(--signal-soft); }
.finder-results small { color: var(--ink-soft); font-size: var(--fs-s); }
.finder-empty { padding: 10px 12px; color: var(--ink-soft); }
.finder-hint { margin-top: 18px; font-size: var(--fs-s); color: var(--ink-soft); }
.city-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.city-chips a { padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--fs-s); }
.city-chips a:hover { border-color: var(--ink); }

/* tablica – granatowy panel informacyjny */
.board { background: var(--ink); color: var(--on-ink); border-radius: var(--r-m); padding: 22px 24px 24px; }
.board-title { font-family: var(--f-display); font-stretch: 87.5%; font-size: var(--fs-l); font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.board-title small { font-family: var(--f-text); font-weight: 400; font-size: var(--fs-s); color: var(--on-ink-soft); }
.board .status { font-family: var(--f-text); }
.board .status--open { color: #8fe0b5; }
.board .status--closed { color: #ffb4a6; }
.board-rows { list-style: none; margin: 16px 0 0; padding: 0; }
.board-rows li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .12); align-items: baseline; }
.board-rows .when { color: var(--on-ink-soft); }
.board-rows .time { font-family: var(--f-display); font-stretch: 75%; font-weight: 600; font-size: 1.375rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.board-rows li.is-today .when { color: var(--on-ink); font-weight: 700; }
.board-rows li.is-today .time { color: var(--signal); }
.board-phone { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--signal); }
.board-phone span { display: block; color: var(--on-ink-soft); font-size: var(--fs-s); }
.board-phone strong { display: block; font-family: var(--f-display); font-stretch: 75%; font-size: 2.25rem; line-height: 1.1; color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.board-note { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--on-ink-soft); }

/* województwa */
.regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.regions li { border-bottom: 1px solid var(--line); }
.regions li:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.regions a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 16px 16px 14px; text-decoration: none; color: var(--ink); min-height: 100%; }
.regions a:hover { background: var(--signal-soft); }
.regions .r-name { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: var(--fs-l); }
.regions .r-count { color: var(--ink-soft); font-size: var(--fs-s); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .regions li:not(:nth-child(4n)) { border-right: 0; } .regions li:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (max-width: 480px) { .regions { grid-template-columns: 1fr; } .regions li:nth-child(odd) { border-right: 0; } }

/* poradniki na stronie głównej */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.lead-story a { color: var(--ink); text-decoration: none; }
.lead-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-m); background: var(--ground); }
.lead-story h3 { font-size: var(--fs-2xl); margin: 18px 0 10px; }
.lead-story a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.lead-story p { margin: 0 0 12px; color: var(--ink-soft); }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li { border-top: 1px solid var(--line); }
.story-list li:last-child { border-bottom: 1px solid var(--line); }
.story-list a { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 14px 0; color: var(--ink); text-decoration: none; align-items: start; }
.story-list img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-s); background: var(--ground); }
.story-list h3 { font-size: var(--fs-l); line-height: 1.25; }
.story-list a:hover h3 { text-decoration: underline; }
.story-list .meta { margin-top: 6px; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* indeks świadczeń */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.benefit { padding: 18px 0; border-top: 1px solid var(--line); }
.benefit a { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: var(--fs-l); color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.benefit p { margin: 6px 0 0; color: var(--ink-soft); font-size: var(--fs-s); }
@media (max-width: 860px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

/* terminy i narzędzia */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.deadlines { list-style: none; margin: 0; padding: 0; }
.deadlines li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.deadlines .day { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.deadlines .day small { display: block; font-family: var(--f-text); font-weight: 400; font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 4px; }
.deadlines p { margin: 0; }
.deadlines p + p { color: var(--ink-soft); font-size: var(--fs-s); }

.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tools a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; }
.tools a:hover { border-color: var(--ink); }
.tools svg { width: 44px; height: 44px; }
.tools strong { display: block; font-size: var(--fs-m); }
.tools span { display: block; font-size: var(--fs-s); color: var(--ink-soft); }

/* ==========================================================================
   KATALOG PLACÓWEK / WOJEWÓDZTWO
   ========================================================================== */
.page-head { padding-block: 22px 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--fs-3xl); margin-top: 12px; }
.page-head .lede { font-size: var(--fs-l); color: var(--ink-soft); max-width: 60ch; margin: 12px 0 0; }
.page-head--ground { background: var(--ground); }

.directory { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 32px 64px; }
.dir-index { position: sticky; top: 96px; align-self: start; }
.dir-index h2 { font-size: var(--fs-m); margin-bottom: 10px; }
.dir-index ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.dir-index a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: var(--fs-s); }
.dir-index a:hover { text-decoration: underline; }
.dir-index span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .directory { grid-template-columns: 1fr; }
  .dir-index { position: static; }
  .dir-index ul { columns: 2; column-gap: 24px; }
}

.dir-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 18px; background: var(--ground); border-radius: var(--r-m); margin-bottom: 28px; }
.dir-filter > div { flex: 1 1 280px; }
.dir-filter label { display: block; margin-bottom: 6px; font-size: var(--fs-s); }
.dir-filter .count { font-size: var(--fs-s); color: var(--ink-soft); }

.dir-region { padding-top: 8px; margin-bottom: 36px; scroll-margin-top: 100px; }
.dir-region h2 { font-size: var(--fs-xl); display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.dir-region h2 a { color: inherit; text-decoration: none; }
.dir-region h2 small { font-family: var(--f-text); font-weight: 400; font-size: var(--fs-s); color: var(--ink-soft); }
.city-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.city-list li { border-bottom: 1px solid var(--line); }
.city-list a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; }
.city-list a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 860px) { .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .city-list { grid-template-columns: 1fr; } }

/* wiersze placówek w archiwum województwa */
.office-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.office-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.office-row h2, .office-row h3 { font-size: var(--fs-l); }
.office-row h2 a, .office-row h3 a { color: var(--ink); text-decoration: none; }
.office-row h2 a:hover, .office-row h3 a:hover { text-decoration: underline; }
.office-row .addr { color: var(--ink-soft); }
.office-row .phone { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) { .office-row { grid-template-columns: minmax(0, 1fr) auto; } .office-row .addr, .office-row .phone { grid-column: 1 / -1; } .office-row .btn { grid-row: 1; grid-column: 2; } }

.region-aside { display: grid; gap: 20px; align-content: start; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); padding-block: 32px 64px; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: 1fr; } }

.box { border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; background: var(--paper); }
.box h2, .box h3 { font-size: var(--fs-l); margin-bottom: 10px; }
.box p { margin: 0 0 10px; font-size: var(--fs-s); }
.box p:last-child { margin-bottom: 0; }
.box--warn { background: var(--signal-soft); border-color: #ecd68f; }
.box ul { margin: 0; padding-left: 18px; font-size: var(--fs-s); }

/* ==========================================================================
   POJEDYNCZA PLACÓWKA
   ========================================================================== */
.office-head { background: var(--ground); border-bottom: 1px solid var(--line); }
.office-head .wrap { padding-block: 0 32px; }
.office-head h1 { font-size: var(--fs-3xl); margin: 14px 0 10px; }
.office-head .kind { font-size: var(--fs-l); color: var(--ink-soft); margin: 0; }
.office-quick { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; align-items: center; }

.office-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); padding-block: 36px 64px; }
@media (max-width: 960px) { .office-grid { grid-template-columns: 1fr; } }

.facts { margin: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 2px solid var(--ink); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-weight: 700; color: var(--ink-soft); font-size: var(--fs-s); padding-top: 17px; }
.facts dd { font-size: var(--fs-l); }
.facts dd .big { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.facts dd small { display: block; font-size: var(--fs-s); color: var(--ink-soft); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

.copy-btn { margin-left: 8px; font: 700 var(--fs-xs) var(--f-text); border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--r-s); padding: 3px 8px; cursor: pointer; vertical-align: middle; }
.copy-btn:hover { border-color: var(--ink); }

.map-box { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.map-box iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-box .map-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; font-size: var(--fs-s); background: var(--paper); }

.office-sections { margin-top: 40px; }
.office-sections h2 { font-size: var(--fs-xl); margin: 36px 0 12px; }
.office-sections p { max-width: var(--measure); }

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 6px 12px; background: var(--ground); border-radius: 999px; font-size: var(--fs-s); }

.nearby { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.nearby a { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-size: var(--fs-s); }
.nearby a:hover { border-color: var(--ink); }
.nearby a[aria-current] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.report { margin-top: 40px; padding: 24px; border: 2px dashed var(--line); border-radius: var(--r-m); }
.report h2 { font-size: var(--fs-l); margin: 0 0 6px; }
.report p { margin: 0 0 16px; color: var(--ink-soft); font-size: var(--fs-s); }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.report-grid .full { grid-column: 1 / -1; }
.report-grid label { display: block; margin-bottom: 6px; font-size: var(--fs-s); }
.report-grid .field { font-size: var(--fs-m); min-height: 48px; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: var(--r-m); margin-bottom: 16px; font-weight: 700; }
.notice--ok { background: #e3f3ea; color: var(--open); }
.notice--err { background: #f8e4e0; color: var(--closed); }
@media (max-width: 560px) { .report-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   ARTYKUŁ
   ========================================================================== */
.article-head .wrap { padding-block: 0 28px; }
.article-head h1 { font-size: var(--fs-3xl); margin: 16px 0 16px; max-width: 24ch; }
.article-head .lede { font-size: var(--fs-l); line-height: 1.55; max-width: 62ch; margin: 0 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; }
.byline strong { display: block; }
.byline span { font-size: var(--fs-s); color: var(--ink-soft); }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r-m); }

.article-layout { display: grid; grid-template-columns: 260px minmax(0, var(--measure)) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 36px 64px; }
.article-layout .entry-content { grid-column: 2; }
.toc { grid-column: 1; grid-row: 1; position: sticky; top: 96px; align-self: start; font-size: var(--fs-s); }
.toc h2 { font-size: var(--fs-m); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ink); font-weight: 700; }
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout .entry-content, .toc { grid-column: 1; }
  .toc { position: static; grid-row: auto; padding: 16px 20px; background: var(--ground); border-radius: var(--r-m); }
  .toc ol { border: 0; }
  .toc a { padding-left: 0; border: 0; }
}

/* treść z edytora */
.entry-content { font-size: 1.125rem; line-height: 1.7; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2 { font-size: var(--fs-2xl); margin-top: 1.8em; margin-bottom: .55em; scroll-margin-top: 100px; }
.entry-content h3 { font-size: var(--fs-l); margin-top: 1.5em; margin-bottom: .45em; scroll-margin-top: 100px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--ink-soft); }
.entry-content strong { font-weight: 700; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--signal); font-size: var(--fs-l); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: var(--fs-s); color: var(--ink-soft); margin-top: 6px; }
.entry-content .wp-block-table, .entry-content .table-wrap { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-m); font-variant-numeric: tabular-nums; }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { border-bottom: 2px solid var(--ink); font-family: var(--f-display); font-stretch: 87.5%; }
.entry-content iframe { max-width: 100%; }
.entry-content .alignwide { margin-inline: 0; }
.entry-content .wp-block-image img { border-radius: var(--r-m); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* blok "W skrócie" (styl akapitu/grupy w edytorze) */
.entry-content .is-style-izus-summary, .izus-summary {
  background: var(--signal-soft); border-radius: var(--r-m); padding: 20px 24px; font-size: var(--fs-m);
}
.entry-content .is-style-izus-summary > :last-child { margin-bottom: 0; }
.entry-content .is-style-izus-note { border-left: 4px solid var(--ink); padding-left: 18px; }

/* FAQ (details/summary oraz blok Szczegóły) */
.entry-content details, .faq details { border-top: 1px solid var(--line); padding: 4px 0; margin: 0; }
.entry-content details:last-of-type { border-bottom: 1px solid var(--line); }
.entry-content summary, .faq summary { cursor: pointer; padding: 12px 32px 12px 0; font-weight: 700; list-style: none; position: relative; }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.5rem; line-height: 1; font-weight: 400; }
.entry-content details[open] summary::after { content: "–"; }

.article-foot { display: grid; gap: 28px; margin-top: 48px; }
.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 24px; background: var(--ground); border-radius: var(--r-m); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; }
.author-box h2 { font-size: var(--fs-l); margin-bottom: 6px; }
.author-box p { margin: 0; font-size: var(--fs-s); }
.source-note { font-size: var(--fs-s); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }

.related { border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-grid a { color: var(--ink); text-decoration: none; }
.related-grid img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--r-m); background: var(--ground); margin-bottom: 12px; }
.related-grid h3 { font-size: var(--fs-l); }
.related-grid a:hover h3 { text-decoration: underline; }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   ARCHIWA / WIADOMOŚCI
   ========================================================================== */
.archive-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.archive-filters a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: var(--fs-s); font-weight: 700; background: var(--paper); }
.archive-filters a[aria-current] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.post-rows { list-style: none; margin: 0; padding: 0; }
.post-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-row:first-child { padding-top: 0; }
.post-row img { width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); background: var(--ground); }
.post-row h2 { font-size: var(--fs-xl); margin: 8px 0; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; }
.post-row p { margin: 0 0 10px; color: var(--ink-soft); max-width: 66ch; }
@media (max-width: 640px) { .post-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .post-row img { width: 96px; } .post-row p { display: none; } .post-row h2 { font-size: var(--fs-l); } }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

.sidebar { display: grid; gap: 20px; align-content: start; }
.widget { border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.widget-title { font-size: var(--fs-l); margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-top: 1px solid var(--ground); font-size: var(--fs-s); }
.widget li:first-child { border-top: 0; }

/* strona statyczna / kontakt */
.page-body { padding-block: 36px 64px; }
.page-body .entry-content { max-width: var(--measure); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 36px 64px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.error-404 { padding-block: 72px; }
.error-404 .code { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--signal); -webkit-text-stroke: 2px var(--ink); }

/* ==========================================================================
   STOPKA
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-ink-soft); margin-top: 0; font-size: var(--fs-s); }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 52px 36px; }
.footer-about .brand { color: var(--on-ink); margin-bottom: 16px; }
.footer-about .brand-name span { color: var(--on-ink-soft); }
.footer-about p { margin: 0 0 12px; max-width: 46ch; }
.footer-about .unofficial { color: var(--on-ink); border-left: 3px solid var(--signal); padding-left: 12px; }
.footer-col h2 { font-size: var(--fs-m); color: var(--on-ink); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col--regions ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-portals { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 22px; }
.footer-portals .wrap { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: baseline; }
.footer-portals strong { color: var(--on-ink); margin-right: 8px; }
.footer-portals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer-portals li + li::before { content: "|"; margin: 0 10px; color: rgba(255, 255, 255, .3); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: var(--fs-xs); }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* cookies */
.cookie-bar { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin-inline: auto; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-m); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; box-shadow: 0 16px 40px -16px rgba(19, 35, 59, .4); font-size: var(--fs-s); }
.cookie-bar p { margin: 0; flex: 1 1 320px; }
.cookie-bar .btn { min-height: 42px; }

/* edytor – wyrównania */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: var(--fs-s); color: var(--ink-soft); }
