/* lexend-latin-ext-400-normal */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/lexend-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* lexend-latin-400-normal */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/lexend-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* lexend-latin-ext-600-normal */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/lexend-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* lexend-latin-600-normal */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/lexend-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* lexend-latin-ext-700-normal */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/lexend-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* lexend-latin-700-normal */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/lexend-latin-700-normal.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;
}

/* atkinson-hyperlegible-next-latin-ext-400-normal */
@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/atkinson-hyperlegible-next-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* atkinson-hyperlegible-next-latin-400-normal */
@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/atkinson-hyperlegible-next-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* atkinson-hyperlegible-next-latin-ext-400-italic */
@font-face {
  font-family: 'Atkinson Next';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/atkinson-hyperlegible-next-latin-ext-400-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* atkinson-hyperlegible-next-latin-400-italic */
@font-face {
  font-family: 'Atkinson Next';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/atkinson-hyperlegible-next-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* atkinson-hyperlegible-next-latin-ext-700-normal */
@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/atkinson-hyperlegible-next-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* atkinson-hyperlegible-next-latin-700-normal */
@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/atkinson-hyperlegible-next-latin-700-normal.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;
}
/* atkinson-hyperlegible-next-latin-ext-700-italic */
@font-face {
  font-family: 'Atkinson Next';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/atkinson-hyperlegible-next-latin-ext-700-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* atkinson-hyperlegible-next-latin-700-italic */
@font-face {
  font-family: 'Atkinson Next';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/atkinson-hyperlegible-next-latin-700-italic.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;
}
/* ==========================================================
   Wawerski Uniwersytet Trzeciego Wieku – arkusz stylów
   Projekt zgodny z WCAG 2.1 AA (kontrast, fokus, powiększanie,
   odstępy tekstu, brak przewijania w poziomie przy 320 px)
   ========================================================== */

:root {
  --ink: #1c1b19;
  --ink-soft: #45423c;
  --paper: #fdfbf7;
  --surface: #ffffff;
  --sand: #f4efe4;
  --line: #d8d0bf;
  --brand: #123f5c;       /* granat – kontrast z białym 11,5:1 */
  --brand-2: #1d5b82;
  --accent: #f0b429;      /* bursztyn – tylko jako tło pod ciemnym tekstem */
  --accent-soft: #fdf0cf;
  --link: #0a4f8c;        /* 8,1:1 na tle papieru */
  --link-visited: #5b2d86;
  --focus: #ffbf47;
  --danger-bg: #fbe9e7;
  --danger: #8a1c12;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --measure: 46rem;
  --wide: 76rem;
  --font: 'Atkinson Next', 'Segoe UI', Verdana, Tahoma, sans-serif;
  color-scheme: light;
}

/* ---- wysoki kontrast (przełącznik) ---- */
html.hc {
  --ink: #ffffff;
  --ink-soft: #ffffff;
  --paper: #000000;
  --surface: #000000;
  --sand: #000000;
  --line: #ffff00;
  --brand: #000000;
  --brand-2: #000000;
  --accent: #ffff00;
  --accent-soft: #000000;
  --link: #ffff00;
  --link-visited: #9ff7ff;
  --focus: #00ffff;
  --danger-bg: #000000;
  --danger: #ffff00;
  --shadow: none;
  color-scheme: dark;
}
html.hc img:not(.logo-img) { filter: grayscale(.2) contrast(1.1); }
html.hc .site-header, html.hc .site-footer, html.hc .card, html.hc .note,
html.hc .embed, html.hc .toc, html.hc .subnav, html.hc .a11y-bar { border: 2px solid #ffff00 !important; }
html.hc .btn, html.hc .nav-toggle, html.hc .a11y-bar button { background: #000 !important; color: #ffff00 !important; border: 2px solid #ffff00 !important; }
html.hc .btn[aria-pressed="true"], html.hc .a11y-bar button[aria-pressed="true"] { background: #ffff00 !important; color: #000 !important; }

/* ---- wielkość tekstu ---- */
html { font-size: 118.75%; }          /* 19 px */
html.fs-1 { font-size: 137.5%; }      /* 22 px */
html.fs-2 { font-size: 162.5%; }      /* 26 px */

/* ---- zwiększone odstępy (WCAG 1.4.12) ---- */
html.spacing body { letter-spacing: .12em; word-spacing: .16em; }
html.spacing p, html.spacing li, html.spacing dd { line-height: 2 !important; }
html.spacing p { margin-bottom: 2em; }

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

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
.content a { overflow-wrap: anywhere; }

img { max-width: 100%; height: auto; display: block; }
iframe { border: 0; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: .16em; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
  border-radius: 3px;
}
html.hc :focus-visible { outline-color: var(--focus); box-shadow: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- linki "przejdź do" ---- */
.skip-links { position: absolute; top: 0; left: 0; z-index: 100; }
.skip-links a {
  position: absolute; left: -9999px; top: .5rem; white-space: nowrap;
  background: var(--accent); color: #000; padding: .75rem 1.25rem; font-weight: 700; border-radius: var(--radius);
}
.skip-links a:focus { left: .5rem; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }

/* ---- pasek dostępności ---- */
.a11y-bar { background: var(--brand); color: #fff; font-size: .85rem; }
.a11y-bar .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding-top: .4rem; padding-bottom: .4rem; }
.a11y-bar a { color: #fff; }
.a11y-bar a:visited { color: #fff; }
.a11y-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.a11y-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.a11y-tools .label { margin-right: .25rem; }
.a11y-bar button {
  font: inherit; font-weight: 700; min-width: 2.75rem; min-height: 2.75rem; padding: .25rem .6rem;
  background: #fff; color: var(--brand); border: 2px solid #fff; border-radius: 8px; cursor: pointer;
}
.a11y-bar button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #000; }
.a11y-bar button .sz1 { font-size: .9em; } .a11y-bar button .sz2 { font-size: 1.1em; } .a11y-bar button .sz3 { font-size: 1.3em; }

/* ---- nagłówek ---- */
.site-header { background: var(--surface); border-bottom: 4px solid var(--accent); }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-top: 1rem; padding-bottom: 1rem; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); }
.brand:visited { color: var(--ink); }
.brand .logo-img { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.brand-name { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: var(--brand); }
html.hc .brand-name { color: #fff; }
.brand-sub { display: block; font-size: .9rem; color: var(--ink-soft); }

.search-form { display: flex; gap: .5rem; flex: 0 1 24rem; min-width: 0; max-width: 100%; }
.search-form input {
  flex: 1 1 auto; width: 100%; min-width: 0; font: inherit; padding: .55rem .8rem; border: 2px solid var(--ink-soft); border-radius: 8px; background: var(--surface); color: var(--ink);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; line-height: 1.2; min-height: 2.75rem; padding: .6rem 1.1rem;
  background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 8px; cursor: pointer; text-decoration: none;
}
.btn:visited { color: #fff; }
.btn:hover { background: var(--brand-2); }
.btn.secondary { background: var(--surface); color: var(--brand); }
.btn.secondary:visited { color: var(--brand); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #000; }
.btn.accent:visited { color: #000; }

/* ---- menu główne ---- */
.main-nav { background: var(--brand); }
.nav-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; display: flex; align-items: stretch; }
.menu a { color: #fff; text-decoration: none; }
.menu a:visited { color: #fff; }
.menu > li > a { display: flex; align-items: center; padding: .75rem .6rem; font-weight: 700; font-size: .95rem; }
.menu > li > a:hover, .menu > li > a[aria-current="page"], .menu > li.active > a { background: rgba(255,255,255,.14); text-decoration: underline; }
.menu > li > a[aria-current="page"], .menu > li.active > a { box-shadow: inset 0 -5px 0 var(--accent); }
.sub-toggle {
  font: inherit; color: #fff; background: transparent; border: 0; padding: 0 .4rem 0 0; margin-left: -.3rem; cursor: pointer; min-width: 2rem; min-height: 2.75rem;
}
.sub-toggle svg { width: 1em; height: 1em; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 19rem; max-width: 26rem;
  list-style: none; margin: 0; padding: .4rem 0; background: var(--surface); border: 2px solid var(--brand); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
}
.submenu.open { display: block; }
.submenu a { display: block; padding: .6rem 1rem; color: var(--link); text-decoration: underline; }
.submenu a:visited { color: var(--link); }
.submenu a:hover { background: var(--sand); }
.submenu a[aria-current="page"] { font-weight: 700; background: var(--accent-soft); }

/* ---- okruszki ---- */
.breadcrumbs { font-size: .9rem; padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumbs li + li::before { content: "›"; margin: 0 .45rem 0 .2rem; color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* ---- treść ---- */
main { display: block; padding: 1rem 0 3rem; }
main:focus { outline: none; }
.page-head { margin: .5rem 0 2rem; }
.page-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.6rem); line-height: 1.2; margin: .5rem 0 .5rem; color: var(--brand); }
html.hc .page-head h1 { color: #fff; }
.page-head .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: var(--measure); margin: 0; }
.hero { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; max-height: 18rem; }
.hero img { width: 100%; height: 18rem; object-fit: cover; }

.content { max-width: var(--wide); }
.content > * { max-width: var(--measure); }
.content > .row, .content > .cards, .content > .embed, .content > .gallery, .content > hr { max-width: none; }
.content h2, .content h3, .content h4, .content h5 { line-height: 1.25; color: var(--brand); margin: 2.2rem 0 .8rem; scroll-margin-top: 1rem; }
html.hc .content h2, html.hc .content h3, html.hc .content h4, html.hc .content h5 { color: #fff; }
.content h2 { font-size: 1.6rem; }
.content h3 { font-size: 1.3rem; }
.content h4, .content h5 { font-size: 1.1rem; }
.content p { margin: 0 0 1rem; }
.content ul, .content ol { padding-left: 1.6rem; margin: 0 0 1.2rem; }
.content li { margin: .3rem 0; }
.content ol ol { list-style-type: lower-alpha; }
.content table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; }
.content th, .content td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.content th { background: var(--sand); }

.row { display: grid; gap: 1.5rem 2rem; margin: 0 0 1.5rem; }
.row > .col > *:first-child { margin-top: 0; }
@media (min-width: 48em) {
  .row.cols-2 { grid-template-columns: 1fr 1fr; }
  .row.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .row.cols-3.mid-wide { grid-template-columns: 1fr 2fr 1fr; }
  .row.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .row.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.col .figure { max-width: 100%; }

figure { margin: 0 0 1.5rem; }
figure img { border-radius: var(--radius); }
figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }

/* ---- karty (skróty na stronie głównej, podstrony działu) ---- */
.cards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.card { border-top: 6px solid var(--accent); }
.card .card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card h2, .card h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card a.card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover { border-color: var(--brand); }
.card:focus-within { outline: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--focus); }
.card a.card-link:focus-visible { outline: none; box-shadow: none; }

/* ---- wyróżnione komunikaty ---- */
.note { background: var(--accent-soft); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.note > :last-child { margin-bottom: 0; }
.note.info { background: var(--sand); border-left-color: var(--brand); }

/* ---- spis treści strony ---- */
.toc { background: var(--sand); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2rem; max-width: var(--measure); }
.toc h2 { font-size: 1.1rem !important; margin: 0 0 .5rem !important; }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { margin: .25rem 0; }
.toc details summary { cursor: pointer; font-weight: 700; }

/* ---- nawigacja w dziale ---- */
.subnav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 3rem 0 0; max-width: var(--measure); }
.subnav h2 { font-size: 1.15rem !important; margin: 0 0 .6rem !important; }
.subnav ul { margin: 0; padding-left: 1.3rem; columns: 2 16rem; }
.subnav li { break-inside: avoid; margin: .3rem 0; }
.subnav [aria-current] { font-weight: 700; }

/* ---- osadzenia (Google, YouTube) ---- */
.embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 2rem; }
.embed-title { font-weight: 700; margin: 0 0 .5rem; }
.embed-note { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1rem; }
.embed-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.embed-remember { display: flex; gap: .5rem; align-items: center; font-size: .9rem; margin-top: .9rem; }
.embed-remember input { width: 1.4rem; height: 1.4rem; }
.embed-frame { position: relative; width: 100%; margin-top: 1rem; }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; }
.embed.video .embed-frame { aspect-ratio: 16 / 9; }
.embed.calendar .embed-frame { height: 42rem; }
.embed.doc .embed-frame { height: 50rem; }
.embed.map .embed-frame { height: 26rem; }
.embed.loaded .embed-placeholder .embed-actions .btn.load { display: none; }

.file-link { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.5rem; max-width: var(--measure); }
.file-link svg { flex: none; width: 2.2rem; height: 2.2rem; color: var(--danger); }
.file-link > div { min-width: 0; overflow-wrap: anywhere; }
.file-link .meta { display: block; font-size: .9rem; color: var(--ink-soft); }
.file-link a { font-weight: 700; }

/* ---- wyszukiwarka ---- */
.search-page form { display: flex; gap: .5rem; flex-wrap: wrap; max-width: var(--measure); margin-bottom: 1.5rem; }
.search-page input { flex: 1 1 16rem; font: inherit; padding: .6rem .8rem; border: 2px solid var(--ink-soft); border-radius: 8px; }
.results { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.results li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.results a { font-size: 1.15rem; font-weight: 700; }
.results p { margin: .3rem 0 0; }
.results mark { background: var(--accent-soft); color: inherit; font-weight: 700; }
html.hc .results mark { background: #ffff00; color: #000; }

/* ---- stopka ---- */
.site-footer { background: var(--brand); color: #fff; padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer a, .site-footer a:visited { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.site-footer h2 { font-size: 1.1rem; margin: 0 0 .7rem; color: var(--accent); }
html.hc .site-footer h2 { color: #ffff00; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.3); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

.to-top { display: inline-block; margin-top: 2rem; }

/* ---- deklaracja / placeholdery ---- */
.todo { background: #fff3a3; color: #000; padding: 0 .25rem; border: 1px dashed #8a6d00; }

/* ---- widok mobilny ---- */
@media (max-width: 40em) {
  .a11y-bar { font-size: .8rem; }
  .a11y-tools .label { display: none; }
  .a11y-bar button { min-width: 2.5rem; min-height: 2.5rem; padding: .15rem .45rem; }
  .brand-name { font-size: 1.15rem; }
}
@media (max-width: 60em) {
  .nav-toggle {
    display: flex; align-items: center; gap: .6rem; width: 100%; font: inherit; font-weight: 700; font-size: 1.1rem;
    color: #fff; background: var(--brand); border: 0; padding: .85rem 1.25rem; cursor: pointer; min-height: 3rem;
  }
  .nav-toggle svg { width: 1.4em; height: 1.4em; }
  .main-nav .wrap { padding: 0; }
  .menu { display: none; flex-direction: column; border-top: 1px solid rgba(255,255,255,.3); }
  .menu.open { display: flex; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.2); }
  .menu > li > a { flex: 1; padding: .9rem 1.25rem; }
  .sub-toggle { padding: 0 1.25rem; border-left: 1px solid rgba(255,255,255,.25); }
  .submenu { position: static; width: 100%; max-width: none; min-width: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 .5rem; background: #0d314a; }
  html.hc .submenu { background: #000; }
  .submenu a, .submenu a:visited { color: #fff; padding-left: 2.25rem; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
  .brand .logo-img { width: 56px; height: 56px; }
  .search-form { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- wydruk ---- */
@media print {
  .a11y-bar, .main-nav, .search-form, .breadcrumbs, .subnav, .site-footer .footer-grid ul, .embed-actions, .embed-remember, .to-top, .skip-links { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; }
  .content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
}

/* ---- transkrypcje obrazów z tekstem ---- */
.transcript { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1.1rem; margin: -.5rem 0 2rem; max-width: var(--measure); }
.transcript summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 2.75rem; display: flex; align-items: center; }
.transcript[open] summary { margin-bottom: .5rem; }
.content figure.figure img { max-height: 80vh; width: auto; }
.cards .card img { max-height: none; width: 100%; }

/* ==========================================================
   Warstwa 2 – odświeżony wygląd (wspólna dla motywów)
   ========================================================== */
:root {
  --hero-bg: #eef3f7;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.07);
  --head-font: var(--font);
  --nav-bg: var(--surface);
  --nav-ink: var(--ink);
  --nav-active: var(--brand);
  --footer-bg: var(--brand);
}
body { font-size: 1rem; line-height: 1.65; }
h1, h2, h3, h4, .brand-name { font-family: var(--head-font); letter-spacing: -.01em; }

/* pasek górny – cienki, spokojny */
.a11y-bar { background: var(--sand); color: var(--ink); font-size: .85rem; border-bottom: 1px solid var(--line); }
.a11y-bar a, .a11y-bar a:visited { color: var(--ink); }
.a11y-bar .wrap { padding-top: .2rem; padding-bottom: .2rem; }
.a11y-menu { position: relative; }
.a11y-toggle {
  display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 700; cursor: pointer;
  min-height: 2.75rem; padding: .3rem .8rem; background: transparent; color: var(--ink); border: 0; border-radius: 999px;
}
.a11y-toggle svg { width: 1.3em; height: 1.3em; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: var(--surface); }
.a11y-bar .a11y-tools {
  position: absolute; right: 0; top: calc(100% + .3rem); z-index: 60; width: min(26rem, calc(100vw - 2rem));
  display: block; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem;
}
.a11y-bar .a11y-tools[hidden] { display: none; }
.a11y-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .6rem; }
.a11y-row:last-child { margin: 0; }
.a11y-row .label { width: 100%; font-weight: 700; }
.a11y-bar .a11y-tools button {
  font: inherit; font-weight: 600; min-height: 2.75rem; min-width: 2.75rem; padding: .3rem .8rem; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 10px;
}
.a11y-bar .a11y-tools button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.a11y-bar .a11y-tools .sz2 { font-size: 1.15em; } .a11y-bar .a11y-tools .sz3 { font-size: 1.35em; }

/* nagłówek i menu – jasne, lekkie */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.brand-row { padding-top: .9rem; padding-bottom: .6rem; }
.brand .logo-img { width: 64px; height: 64px; }
.main-nav { background: var(--nav-bg); }
.menu { gap: .15rem; padding: .25rem 0 .5rem; }
.menu a, .menu a:visited { color: var(--nav-ink); }
.menu > li > a { padding: .6rem .75rem; border-radius: 10px; font-weight: 600; font-size: .97rem; }
.menu > li > a:hover { background: var(--sand); text-decoration: none; }
.menu > li > a[aria-current="page"], .menu > li.active > a { background: var(--accent-soft); box-shadow: none; text-decoration: none; color: var(--nav-active); }
.sub-toggle { color: var(--nav-ink); border-radius: 10px; }
.sub-toggle:hover { background: var(--sand); }
.submenu { border: 1px solid var(--line); border-radius: var(--radius); top: calc(100% + .2rem); padding: .4rem; }
.submenu a { border-radius: 8px; text-decoration: none; }
.submenu a:hover { text-decoration: underline; }

/* bohater strony głównej */
.home-hero {
  display: grid; gap: 2rem; align-items: center; margin: 1.5rem 0 2.5rem;
  background: var(--hero-bg); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 3rem); overflow: hidden;
}
@media (min-width: 56em) { .home-hero { grid-template-columns: 1.1fr 1fr; } }
.home-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); line-height: 1.1; margin: .3rem 0 1rem; color: var(--brand); }
.home-hero .lead { font-size: 1.15rem; margin: 0 0 1.5rem; max-width: 34rem; }
.eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.25rem; }
.hero-actions .btn { padding: .8rem 1.4rem; border-radius: 999px; }
.hero-addr { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.home-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* nagłówki podstron */
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem); }
.hero { border-radius: var(--radius-lg); max-height: 14rem; }
.hero img { height: 14rem; }

/* karty */
.cards { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line); }
.card .card-body { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: start; padding: 1.1rem 1.2rem; }
.card .card-body > :not(.card-icon) { grid-column: 2; }
.card-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--accent-soft); color: var(--brand); }
.card-icon svg { width: 1.6rem; height: 1.6rem; }
.card h2, .card h3 { font-size: 1.15rem; margin: .1rem 0 .25rem; }
.card a.card-link { text-decoration: none; color: var(--ink); }
.card a.card-link:visited { color: var(--ink); }
.card:hover a.card-link { text-decoration: underline; color: var(--link); }
.card p { font-size: .95rem; }

/* ogłoszenia, osadzenia */
.note { border-left-width: 5px; border-radius: 12px; }
.embed, .file-link, .toc, .subnav, .transcript { border-radius: var(--radius); }
.btn { border-radius: 10px; }

/* stopka */
.site-footer { background: var(--footer-bg); margin-top: 3rem; }

@media (max-width: 60em) {
  .main-nav { background: var(--nav-bg); border-top: 1px solid var(--line); }
  .nav-toggle { background: var(--nav-bg); color: var(--nav-ink); }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li > a { border-radius: 0; }
  .sub-toggle { border-left: 1px solid var(--line); border-radius: 0; }
  .submenu { background: var(--sand); }
  .submenu a, .submenu a:visited { color: var(--link); }
  .submenu a:hover, .submenu a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
}
@media (max-width: 40em) {
  .a11y-bar { font-size: .8rem; }
  .a11y-links { gap: .1rem .9rem; }
}

/* wysoki kontrast – nadpisania warstwy 2 */
html.hc .home-hero, html.hc .card-icon { background: #000; border: 2px solid #ffff00; }
html.hc .home-hero h1, html.hc .card a.card-link { color: #fff; }
html.hc .a11y-bar, html.hc .a11y-bar .a11y-tools { background: #000; }
html.hc .a11y-toggle, html.hc .menu a, html.hc .sub-toggle { color: #ffff00; }
html.hc .menu > li > a[aria-current="page"] { background: #ffff00; color: #000; }
html.hc .site-footer { background: #000; }
.content ul.cards, .content .cards { padding-left: 0; }
@media (min-width: 60.01em) {
  .menu { flex-wrap: nowrap; justify-content: space-between; }
  .menu > li > a { padding: .6rem .55rem; font-size: .9rem; white-space: nowrap; }
  .sub-toggle { min-width: 1.6rem; padding: 0 .2rem 0 0; }
}
@media (min-width: 60.01em) and (max-width: 76em) {
  .menu { flex-wrap: wrap; justify-content: flex-start; }
}

/* podmenu nie może wychodzić poza okno */
@media (min-width: 60.01em) {
  .menu { flex-wrap: wrap; }
  .submenu { max-width: min(26rem, calc(100vw - 2rem)); min-width: min(19rem, calc(100vw - 2rem)); }
  .submenu.align-right { left: auto; right: 0; }
  .submenu a { white-space: normal; }
}
.cards { grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.site-footer a, .brand-name { overflow-wrap: anywhere; }
.card .card-body > * { min-width: 0; }
.brand, .brand > span, .home-hero > *, .row > .col, .embed, .embed * { min-width: 0; }
.home-hero { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56em) { .home-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.content figure, .content figure img { max-width: 100%; }
.brand .logo-img { flex: none; }
.embed-actions .btn { white-space: normal; text-align: center; }
@media (max-width: 22em) { .brand .logo-img { width: 44px; height: 44px; } .home-hero { padding: 1rem; } }
.search-page input { flex: 1 1 min(16rem, 100%); min-width: 0; }
.content, .content * { overflow-wrap: anywhere; }
.menu { justify-content: flex-start !important; column-gap: .35rem; }
@media (min-width: 60.01em) { .menu { column-gap: 0; } .menu > li > a { padding: .6rem .5rem; } }

.footer-law { border-top: 1px solid rgba(255,255,255,.3); margin-top: 1rem; padding-top: 1rem; font-size: .85rem; max-width: 60rem; }
.footer-law p { margin: 0; }

/* Motyw C – „Wyrazisty”: ciemnogranatowy baner, żółty akcent, krój Lexend */
:root:not(.hc) {
  --font: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --head-font: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --ink: #111827; --ink-soft: #4b5563; --paper: #f7f8fb; --surface: #ffffff; --sand: #eef1f6; --line: #d9dee8;
  --brand: #1b2f5b; --brand-2: #14244a; --accent: #ffc53d; --accent-soft: #fff1c7;
  --link: #1d4ed8; --link-visited: #6b21a8; --hero-bg: #1b2f5b; --footer-bg: #111c38;
}
:root:not(.hc) body { font-size: .96rem; }
:root:not(.hc) .home-hero { color: #fff; }
:root:not(.hc) .home-hero h1 { color: #fff; }
:root:not(.hc) .home-hero .lead, :root:not(.hc) .home-hero .eyebrow, :root:not(.hc) .home-hero .hero-addr { color: #e4e9f5; }
:root:not(.hc) .home-hero .btn.secondary { background: transparent; color: #fff; border-color: #fff; }
:root:not(.hc) .card-icon { background: var(--brand); color: var(--accent); }
:root:not(.hc) .note { background: #fff7de; }
:root:not(.hc) .site-footer h2 { color: var(--accent); }

/* listy przeniesione z dawnej strony – numeracja i myślniki są w treści */
.content ul.lista-tekstowa, ul.lista-tekstowa { list-style: none; padding-left: 0; margin: 0 0 1em; }
ul.lista-tekstowa > li { margin: 0 0 .5em; }
