/* Zotikos.pl — JEDEN plik CSS, działa na wszystkich stronach (bez ograniczenia do id strony).
 * Dołącz PO theme Bootstrap Package, newsstylist i custom-styles.css.
 * Zawiera: zmienne i typografię, nawigację, stopkę, karuzele i karty newsów oraz podstronę artykułu.
 * Karty (layout-card): telefon 2 kolumny, tablet 2, desktop 3.
 * Nie dodaje klas HTML. Tylko jasny motyw.
 * Paleta triadyczna (koło barw): zieleń logo H144°, fiolet H264°, terakota H24°.
 * Proporcje: zieleń 80% (marka), terakota 15% (akcenty), fiolet 5% (tagi).
 */
body {
  --z-green: #328152;
  --z-green-dark: #245c3b;
  --z-violet: #7651ae;
  --z-terra: #b16c3d;
  --z-terra-text: #91572f;
  --z-teal: #268f8b;
  --z-bg: #f7faf8;
  --z-surface: #ffffff;
  --z-soft: #e1efea;
  --z-editorial: #f2eef7;
  --z-text: #18352a;
  --z-muted: #52645b;
  --z-border: #d4e0d9;
  --z-footer: #17362a;
  --z-white: #ffffff;
  --z-scrim: 8, 22, 17; /* kolor nakładki na zdjęciach (RGB), wspólny dla trybu jasnego i ciemnego */
  --z-content: 76rem;
  --z-radius-sm: .375rem;
  --z-radius: .75rem;
  --z-radius-lg: 1rem;
  --z-shadow: 0 2px 8px rgba(24, 53, 42, .04);
  --z-font: "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
  --z-xs: .875rem;
  --z-base: 1.0625rem;
  --z-card-title: clamp(1.3rem, 1.15rem + .55vw, 1.5rem);
  --z-title: clamp(1.55rem, 1.25rem + 1vw, 2rem);
  --z-display: clamp(2.25rem, 1.8rem + 1.8vw, 3.5rem);
  --z-hero-title: clamp(1.7rem, 1.35rem + 1.45vw, 2.8rem);
  --z-space-1: .25rem;
  --z-space-2: .5rem;
  --z-space-3: .75rem;
  --z-space-4: 1rem;
  --z-space-5: 1.25rem;
  --z-space-6: 1.5rem;
  --z-space-8: 2rem;
  --z-space-10: 2.5rem;
  --z-space-12: 3rem;
  --z-space-16: 4rem;
  --bs-body-color: var(--z-text);
  --bs-body-bg: var(--z-bg);
  --bs-body-font-family: var(--z-font);
  --bs-primary: var(--z-green);
  --bs-primary-rgb: 50, 129, 82;
  --bs-link-color: var(--z-green-dark);
  --bs-link-hover-color: var(--z-green);
  --bs-border-color: var(--z-border);
  --frame-color: var(--z-text);
  --frame-link-color: var(--z-green-dark);
  --frame-link-hover-color: var(--z-green);
  --swiper-theme-color: var(--z-green);
  margin: 0;
  padding: 0;
  background: var(--z-bg);
  color: var(--z-text);
  font-family: var(--z-font);
  font-size: var(--z-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body *, body *::before, body *::after { box-sizing: border-box; }
body .body-bg { background: var(--z-bg); }
body p, body button, body h1, body h2, body h3, body h4 { font-family: var(--z-font); }
body p { color: var(--z-muted); font-size: var(--z-base); font-weight: 400; line-height: 1.6; }
body h1, body h2, body h3, body h4 { color: var(--z-text); font-weight: 700; overflow-wrap: anywhere; }
body a { text-decoration: none; color: var(--z-green-dark); transition: color 160ms ease, background-color 160ms ease; }
body a:hover { color: var(--z-green); }
body a:active { opacity: .85; }
body :focus-visible { outline: 3px solid var(--z-green) !important; outline-offset: 4px; }
body .page-skip-link { background: var(--z-surface); color: var(--z-text); z-index: 1050; padding: var(--z-space-4); }
body img { max-width: 100%; }
body ::selection { background: var(--z-soft); color: var(--z-text); }

/* Nawigacja — oryginalny mechanizm collapse Bootstrap. */
body #page-header {
  --mainnavigation-nav-height: 5rem;
  --mainnavigation-hightlight: var(--z-green);
  --mainnavigation-link-font-size: 1rem;
  --mainnavigation-link-padding-y: .75rem;
  background: var(--z-surface);
  border-bottom: 1px solid var(--z-border);
  box-shadow: none;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}
body #page-header .container-mainnavigation {
  max-width: var(--z-content);
  width: 100%;
  padding-inline: var(--z-space-4);
  min-height: 5rem;
}
body #page-header .navbar-brand {
  padding: var(--z-space-2) 0;
  margin: 0;
  height: auto;
  min-height: auto;
  width: auto;
  display: flex;
  align-items: center;
}
body #page-header .navbar-brand-logo-normal { width: 4rem; height: 4rem; max-height: none; object-fit: contain; }
body #page-header .navbar-brand-logo-inverted { display: none; }
body #page-header .nav-link {
  color: var(--z-muted);
  font-size: 1rem;
  font-weight: 700;
  min-height: 44px;
  padding: var(--z-space-3) var(--z-space-4);
  border-radius: var(--z-radius-sm);
  display: flex;
  align-items: center;
  gap: var(--z-space-2);
}
body #page-header .nav-link::before, body #page-header .nav-link::after { display: none; }
body #page-header .nav-link.active { background: var(--z-soft); color: var(--z-green-dark); }
body #page-header .nav-link:hover { background: var(--z-soft); color: var(--z-green-dark); }
body #page-header .dropdown-menu:empty { display: none; }
body #page-header .navbar-toggler {
  width: 44px;
  height: 44px;
  padding: var(--z-space-2);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-sm);
  color: var(--z-text);
}
body #page-header .navbar-collapse { padding-block: var(--z-space-3); }
body #page-header [data-theme-toggle] { border: 1px solid var(--z-border); background: transparent; cursor: pointer; }

/* Kontenery Bootstrap Package; bez zmian w drzewie wrapperów Fluid. */
body #page-content { padding: 0; }
body #page-content > .section-default { padding-block: var(--z-space-6) var(--z-space-6); background: var(--z-bg); }
body #page-content > .section-light { padding-block: 0 var(--z-space-12); background: var(--z-bg); }
body #page-content > .section-default > .container,
body #page-content .frame-container-default {
  width: 100%;
  max-width: var(--z-content);
  margin-inline: auto;
  padding-inline: var(--z-space-4);
}
body #page-content .frame { padding: 0; background: transparent; color: var(--z-text); }
body #page-content .frame-group-container,
body #page-content .frame-group-inner,
body #page-content .frame-inner { padding: 0; margin: 0; background: transparent; }
body #page-content .news { overflow: visible; }
body #page-content .frame-header { margin: 0 0 var(--z-space-6); padding: 0; }
body #page-content .frame-header .element-header { font-size: var(--z-title); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 var(--z-space-2); }
body #page-content .frame-header p { margin: 0; }

/* Wyróżniony artykuł: layout-carousel-bigtext, nie slider Bootstrap. */
body .news .layout-carousel-bigtext {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}
body .news .layout-carousel-bigtext > .item-carousel {
  width: 100%;
  max-width: none;
  min-height: 0;
  max-height: min(34rem, 80svh); /* ogranicza inline height:600px !important */
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  border: 0;
  border-radius: var(--z-radius-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background-color: var(--z-footer);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 60% center;
}
body .news .layout-carousel-bigtext > .item-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--z-scrim), 0) 15%, rgba(var(--z-scrim), .4) 48%, rgba(var(--z-scrim), .78) 100%);
}
body .news .layout-carousel-bigtext .carousel-content { display: flex; flex: 1 1 auto; width: 100%; height: 100%; overflow: hidden; }
body .news .layout-carousel-bigtext .valign { display: flex; align-items: flex-end; height: 100%; width: 100%; }
body .news .layout-carousel-bigtext .vcontainer { width: 100%; margin: 0; }
body .news .layout-carousel-bigtext .carousel-text-inner { margin: 0; max-width: 52rem; padding: var(--z-space-6); text-align: left; }
body .news .layout-carousel-bigtext h3 {
  font-size: var(--z-hero-title);
  line-height: 1.16;
  letter-spacing: -.025em;
  text-shadow: 0 1px 8px rgba(var(--z-scrim), .55);
  padding: 0;
  margin: 0 0 var(--z-space-6);
  color: var(--z-white);
}
body .news .layout-carousel-bigtext h3 a { color: var(--z-white); display: block; }
body .news .layout-carousel-bigtext h3 a:hover { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }

/* Metadane: nic nie znika, autor i kategorie pozostają czytelne. */
body .news .extra { display: flex; flex-wrap: wrap; align-items: center; gap: var(--z-space-2) var(--z-space-3); line-height: 1.5; font-size: var(--z-xs); }
body .news .extra * { font-family: var(--z-font); font-size: inherit; text-transform: none; font-weight: 400; color: inherit; }
body .news .extra .ionico { display: none; }
body .news .extra time { margin: 0; font-variant-numeric: tabular-nums; }
body .news .extra .author { flex-basis: 100%; }
body .news .category.tags { display: flex; flex-wrap: wrap; gap: var(--z-space-2); width: 100%; margin: var(--z-space-2) 0 0; }
body .news .category.tags:empty { display: none; }
body .news .category.tags .label { font-size: var(--z-xs); font-weight: 700; padding: var(--z-space-1) var(--z-space-3); background: var(--z-soft); color: var(--z-green-dark); border-radius: var(--z-radius-sm); }
body .news .category.tags .text-tag { background: var(--z-editorial); color: var(--z-violet); }
body .news .layout-carousel-bigtext .extra { color: #e4eee7; }

/* Karuzela — zachowuje szerokości i transformacje nadawane przez Swiper. */
/* Odstęp między slajdami robimy w CSS (Swiper ma spaceBetween: 0 — tak jest w standardowym partialu newsstylist):
 * każdy slajd jest przycinany z prawej o szerokość odstępu, a kontener jest o tyle szerszy. */
body .news .layout-carousel { --z-slide-gap: 1rem; }
body .news .layout-carousel {
  display: block;
  width: auto;
  margin: 0 calc(-1 * var(--z-slide-gap)) 0 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--z-radius);
}
body .news .layout-carousel .swiper-wrapper { gap: 0; padding: 0; align-items: stretch; box-sizing: content-box; }
body .news .layout-carousel .swiper-slide {
  --cardmenu-columns: 1;
  flex-shrink: 0;
  max-width: none;
  margin-block: 0 !important;
  margin-left: 0;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: var(--z-radius);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  clip-path: inset(0 var(--z-slide-gap) 0 0 round var(--z-radius));
  background-color: var(--z-footer);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
body .news .layout-carousel .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--z-scrim), 0) 20%, rgba(var(--z-scrim), .38) 52%, rgba(var(--z-scrim), .78) 100%);
}
body .news .layout-carousel .item-carousel-text { position: relative; width: 100%; margin-top: auto; padding: var(--z-space-6); padding-right: calc(var(--z-space-6) + var(--z-slide-gap)); background: transparent; color: var(--z-white); }
body .news .layout-carousel h3 { font-size: var(--z-card-title); line-height: 1.23; letter-spacing: -.012em; padding: 0; margin: 0 0 var(--z-space-5); color: inherit; text-shadow: 0 1px 8px rgba(var(--z-scrim), .55); }

body .news .layout-carousel h3 a { color: inherit; display: block; }
body .news .layout-carousel h3 a:hover { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
body .news .layout-carousel .extra { color: #e4eee7; }
/* Karta bez zdjęcia ma istniejącą klasę .card. Nie udajemy, że posiada fotografię. */
body .news .layout-carousel .swiper-slide.card { background: var(--z-editorial) !important; justify-content: center; }
body .news .layout-carousel .swiper-slide.card::before { display: none; }
body .news .layout-carousel .swiper-slide.card .item-carousel-text { margin-top: 0; color: var(--z-text); }
body .news .layout-carousel .swiper-slide.card h3 { font-size: clamp(1.9rem, 1.5rem + .7vw, 2.5rem); text-shadow: none; }
body .news .layout-carousel .swiper-slide.card .extra { color: var(--z-muted); }
body .news .layout-carousel .swiper-slide.card .category.tags .label { background: transparent; color: var(--z-violet); padding-left: 0; }

/* Strzałki i paginacja — duże pola dotykowe, bez łapania kółka myszy. */
body .swiper-controls { display: flex; align-items: center; justify-content: center; gap: var(--z-space-3); height: auto; min-height: 44px; width: 100%; margin-top: var(--z-space-5); }
body .swiper-controls .swiper-button-prev,
body .swiper-controls .swiper-button-next {
  position: static;
  top: auto;
  bottom: auto;
  display: flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  line-height: 1;
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-sm);
  background: var(--z-surface);
  color: var(--z-green-dark);
}
body .swiper-controls .swiper-button-prev::after,
body .swiper-controls .swiper-button-next::after { font-size: 1rem !important; color: inherit; }
body .swiper-controls .swiper-button-prev:hover,
body .swiper-controls .swiper-button-next:hover { background: var(--z-soft); }
body .swiper-controls .swiper-button-disabled { opacity: .4; }
body .swiper-controls .swiper-pagination { position: static; inset: auto; width: auto; display: flex; align-items: center; gap: 0; margin: 0; }
body .swiper-controls .swiper-pagination-bullet {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
}
body .swiper-controls .swiper-pagination-bullet::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--z-muted); }
body .swiper-controls .swiper-pagination-bullet-active::before { background: var(--z-green); width: 10px; height: 10px; }

/* Zwykłe karty (c35, layout-card): telefon 2 kolumny, tablet 2, desktop 3.
 * Telefon jest kompaktowy: obraz bez ramki, mniejszy tytuł, bez autora i tagów. */
body .news .layout-card.card-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--z-space-3);
  margin: 0;
  padding: 0;
}
body .news .layout-card > .card-menu-item { min-width: 0; max-width: none; width: 100%; margin: 0; padding: 0; }
body .news .layout-card .card {
  display: flex;
  flex-direction: column;
  background: var(--z-surface) !important; /* nadpisuje inline style="background-color:#fff" z szablonu */
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--z-shadow);
}
body .news .layout-card .card-img-top { border-radius: 0; background: var(--z-soft); padding: 0; }
body .news .layout-card .card-img-top a { display: block; }
body .news .layout-card .card-img-top img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 232;
  object-fit: contain; /* są to mapy — nie kadrujemy trasy ani profilu */
}
body .news .layout-card .card-body { padding: var(--z-space-3); display: flex; flex-direction: column; flex: 1 1 auto; }
body .news .layout-card h3 { font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 var(--z-space-3); overflow-wrap: anywhere; }
body .news .layout-card h3 a { color: var(--z-text); display: block; }
body .news .layout-card h3 a:hover { color: var(--z-green-dark); text-decoration: underline; text-underline-offset: .15em; }
body .news .layout-card .extra { color: var(--z-muted); margin-top: auto; gap: var(--z-space-1) var(--z-space-2); }
body .news .layout-card .extra .author,
body .news .layout-card .extra .text-tag { display: none; }
body .news .layout-card .category.tags { margin-top: var(--z-space-1); }
body .news .layout-card .category.tags .label { padding: 2px var(--z-space-2); }
body .news .layout-card .category.tags .label-info-category { background: #f6ede6; color: var(--z-terra-text); }
/* nieparzysta liczba kart: pierwsza zajmuje całą szerokość (karta pozioma), bez osieroconej karty */
body .news .layout-card > .card-menu-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
body .news .layout-card > .card-menu-item:first-child:nth-last-child(odd) .card { flex-direction: row; }
body .news .layout-card > .card-menu-item:first-child:nth-last-child(odd) .card-img-top { flex: 0 0 46%; display: flex; align-items: center; }
body .news .layout-card > .card-menu-item:first-child:nth-last-child(odd) .card-body { flex: 1 1 auto; justify-content: center; }

/* Stopka — jasne tło, niska wysokość, trzy kolumny z istniejących elementów treści. */
body #page-footer {
  --z-footer-bg: #eaf3ee;
  --z-footer-meta-bg: #dfece5;
  position: relative;
  margin: 0;
  color: var(--z-muted);
  background: var(--z-footer-bg);
  border-top: 1px solid var(--z-border);
}
body #page-footer::before { /* cienki pasek w kolorach triady z logo */
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--z-green) 0 34%, var(--z-terra) 34% 67%, var(--z-violet) 67% 100%);
}
body #page-footer .footer-section-content { padding-block: var(--z-space-6) var(--z-space-5); background: transparent; }
body #page-footer .footer-section-meta { padding-block: var(--z-space-3); border-top: 1px solid var(--z-border); background: var(--z-footer-meta-bg); }
body #page-footer .container,
body #page-footer .frame-container-default { width: 100%; max-width: var(--z-content); padding-inline: var(--z-space-4); margin-inline: auto; }
body #page-footer .section-column .frame-container-default { padding: 0; }
body #page-footer .frame, body #page-footer .frame-group-container,
body #page-footer .frame-group-inner, body #page-footer .frame-inner { padding: 0; margin: 0; background: transparent; }
body #page-footer .section-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--z-space-5); }
body #page-footer .section-column { width: 100%; min-width: 0; }
body #page-footer .frame-header { margin: 0; }
body #page-footer .element-header {
  display: flex;
  align-items: center;
  gap: var(--z-space-2);
  margin: 0 0 var(--z-space-2);
  color: var(--z-green-dark);
  font-size: var(--z-xs);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body #page-footer .element-header::before { content: ""; flex: 0 0 auto; width: 1.25rem; height: 3px; border-radius: 2px; background: var(--z-green); }
body #page-footer .footer-section-content-column-middle .element-header::before { background: var(--z-terra); }
body #page-footer .footer-section-content-column-right .element-header::before { background: var(--z-violet); }
body #page-footer p { color: var(--z-text); font-size: .9375rem; line-height: 1.6; margin: 0; }
body #page-footer p + p { margin-top: var(--z-space-2); }
body #page-footer a { color: var(--z-green-dark); text-decoration: underline; text-decoration-color: rgba(36, 92, 59, .35); text-underline-offset: .2em; transition: color .15s, text-decoration-color .15s; }
body #page-footer a:hover { color: var(--z-green); text-decoration-color: currentColor; }
body #page-footer a:focus-visible { outline: 2px solid var(--z-green); outline-offset: 2px; border-radius: 2px; }
body #page-footer .filelink-list { list-style: none; padding: 0; margin: 0; }
body #page-footer .filelink-item { padding: 0; margin: 0 0 var(--z-space-2); border: 0; background: transparent; }
body #page-footer .filelink-item:last-child { margin-bottom: 0; }
body #page-footer .filelink-filename { display: flex; align-items: baseline; gap: var(--z-space-2); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
body #page-footer .filelink-filename a[href$=".pdf"]::before {
  content: "PDF";
  flex: 0 0 auto;
  padding: .05rem .4rem;
  border-radius: 999px;
  color: var(--z-violet);
  background: var(--z-editorial);
  border: 1px solid rgba(118, 81, 174, .3);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-block;
  margin-right: var(--z-space-2);
}
body #page-footer .footer-menu-section:has(.footer-navigation:empty),
body #page-footer .footer-navigation:empty,
body #page-footer .footer-meta:not(:has(*)) { display: none; }
body #page-footer .footer-info-section { display: flex; flex-wrap: wrap; gap: var(--z-space-2) var(--z-space-5); align-items: center; margin: 0; }
body #page-footer .footer-info-section > * { margin: 0; }
body #page-footer .footer-copyright { margin: 0; }
body #page-footer .footer-copyright p { color: var(--z-muted); font-size: var(--z-xs); }
body #page-footer .footer-language { margin: 0; }
body #page-footer .language-menu { margin: 0; padding: 0; }
body #page-footer .sociallinks-list { margin: 0; }
body #page-footer .sociallinks-link {
  display: inline-flex;
  align-items: center;
  gap: var(--z-space-2);
  width: auto;
  min-height: 44px;
  height: auto;
  padding: var(--z-space-1) var(--z-space-3);
  border: 1px solid var(--z-border);
  border-radius: 999px;
  color: var(--z-green-dark);
  background: var(--z-surface);
  font-size: var(--z-xs);
  text-decoration: none;
}
body #page-footer .sociallinks-link:hover { color: var(--z-white); background: var(--z-green); border-color: var(--z-green); }
body #page-footer .sociallinks-link-label { display: inline !important; position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important; overflow: visible !important; white-space: nowrap; }
body #page-footer .sociallinks-link-icon { font-size: 1.125rem; }
body .scroll-top { background: var(--z-surface); border: 1px solid var(--z-border); color: var(--z-green-dark); width: 44px; height: 44px; border-radius: var(--z-radius-sm); right: var(--z-space-4); bottom: var(--z-space-4); }
body .scroll-top:hover { background: var(--z-soft); color: var(--z-green-dark); }

@media (min-width: 576px) {
  body .news .layout-card.card-menu { gap: var(--z-space-6); }
  body .news .layout-card .card-img-top { padding: var(--z-space-4); }
  body .news .layout-card .card-img-top img { border-radius: var(--z-radius-sm); }
  body .news .layout-card .card-body { padding: var(--z-space-6); }
  body .news .layout-card h3 { font-size: var(--z-card-title); line-height: 1.25; letter-spacing: -.015em; margin-bottom: var(--z-space-6); }
  body .news .layout-card .extra { gap: var(--z-space-2) var(--z-space-3); }
  body .news .layout-card .extra .author,
  body .news .layout-card .extra .text-tag { display: inline; }
  body .news .layout-card .category.tags { margin-top: var(--z-space-2); }
  body .news .layout-card .category.tags .label { padding: var(--z-space-1) var(--z-space-3); }
}
@media (min-width: 768px) {
  body #page-content > .section-default { padding-block: var(--z-space-8); }
  body #page-content > .section-default > .container,
  body #page-content .frame-container-default,
  body #page-header .container-mainnavigation,
  body #page-footer .container,
  body #page-footer .frame-container-default { padding-inline: var(--z-space-8); }
  body #page-footer .section-column .frame-container-default { padding: 0; }
  body .news .layout-carousel-bigtext > .item-carousel { background-position: center; }
  body .news .layout-carousel-bigtext > .item-carousel::before { background: linear-gradient(90deg, rgba(var(--z-scrim), .76), rgba(var(--z-scrim), .5) 44%, rgba(var(--z-scrim), 0) 100%); }
  body .news .layout-carousel-bigtext .carousel-text-inner { padding: var(--z-space-10); max-width: 48rem; }
  body #page-footer .footer-section-content { padding-block: var(--z-space-8) var(--z-space-6); }
  body #page-footer .section-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--z-space-8); }
  body #page-footer .footer-info-section { justify-content: space-between; }
}
@media (min-width: 992px) {
  body #page-header { --mainnavigation-nav-height: 6rem; }
  body #page-header .container-mainnavigation { min-height: 6rem; }
  body #page-header .navbar-brand-logo-normal { width: 5rem; height: 5rem; }
  body #page-header .navbar-collapse { padding-block: 0; }
  body #page-header #mainnavigation { justify-content: flex-end; }
  body #page-header .navbar-nav { align-items: center; gap: var(--z-space-2); }
}
@media (min-width: 1200px) {
  body .news .layout-card.card-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .news .layout-card > .card-menu-item:first-child:nth-last-child(odd) { grid-column: auto; }
  body .news .layout-card > .card-menu-item:first-child:nth-last-child(odd) .card { flex-direction: column; }
  body .news .layout-card > .card-menu-item:first-child:nth-last-child(odd) .card-img-top { flex: none; display: block; }
  body .news .layout-card > .card-menu-item:first-child:nth-last-child(odd) .card-body { justify-content: flex-start; }
}

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

/* ==========================================================================
 * PODSTRONA ARTYKUŁU (news detail, szablon News/Detail.html, Twb5)
 * Zakres: bodybody (strona z widokiem szczegółowym, uid 4) + .news.news-single
 * (klasy już istnieją w Layouts/Detail.html). Prefiks body daje specyficzność ID,
 * żeby wygrać z regułami ogólnymi (body p, body .news .extra).
 * Brak nowych klas: stylujemy klasy Bootstrap/news z szablonu.
 * Mobile first: jedna kolumna, typografia rośnie od 768 px.
 * ========================================================================== */
body .news.news-single {
  padding-block: 1.5rem 3rem;
  color: var(--z-text);
  font-family: "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
}
body .news.news-single *, body .news.news-single *::before, body .news.news-single *::after { box-sizing: border-box; }
body .news.news-single :where(h1, h2, h3, h4, p, li, td, th, blockquote, figcaption, span, a, strong, time, small, .btn, .page-link) { font-family: inherit; }

/* Tytuł */
body .news.news-single h1 {
  font-size: clamp(1.75rem, 1.35rem + 2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--z-text);
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Metadane (partial AdditionalInformation z newsstylist): data i autor jako tekst,
 * kategoria i tagi jako pigułki. Ikony SVG (.ionico) pokazane w kolorze marki. */
body .news.news-single .extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .85rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--z-muted);
  margin: 0 0 .75rem;
}
body .news.news-single .extra .author { flex-basis: auto; }
body .news.news-single .extra .ionico { display: inline-block; width: 1rem; height: 1rem; color: var(--z-green); vertical-align: -.15em; margin-right: .25rem; }
body .news.news-single .extra .label { display: inline; background: transparent; padding: 0; font-size: inherit; font-weight: 400; color: var(--z-muted); }
body .news.news-single .extra time { font-variant-numeric: tabular-nums; }
body .news.news-single .extra .category.tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
body .news.news-single .extra .category.tags .label,
body .news.news-single .extra .news-list-tags .label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.4;
  padding: .15rem .65rem;
  border-radius: 999px;
  background: var(--z-soft);
  color: var(--z-green-dark);
}
body .news.news-single .extra .category.tags .text-tag,
body .news.news-single .extra .news-list-tags .label { background: var(--z-editorial); color: var(--z-violet); }

/* Autorzy (md_news_author) i licznik (md_news_clickcount) */
body .news.news-single .news-views { font-variant-numeric: tabular-nums; }
body .news.news-single .news-views strong { color: var(--z-text); }
body .news.news-single [itemprop="author"] a { font-weight: 700; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
body .news.news-single .d-flex.flex-wrap { font-size: .9375rem; }

/* Lead */
body .news.news-single .lead {
  margin: 1.5rem 0;
  font-size: clamp(1.125rem, 1.05rem + .45vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--z-text);
  padding-left: 1rem;
  border-left: 4px solid var(--z-terra);
}
body .news.news-single .lead p { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }

/* Zdjęcie okładkowe */
body .news.news-single figure { margin: 0 0 1.5rem; }
body .news.news-single figure > img,
body .news.news-single figure picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--z-radius-lg);
  box-shadow: 0 2px 10px rgba(24, 53, 42, .08);
}
body .news.news-single figcaption,
body .news.news-single .news-img-caption {
  font-size: .875rem;
  line-height: 1.45;
  color: var(--z-muted);
  margin-top: .5rem;
}

/* Treść artykułu */
body .news.news-single :is(.news-text-wrap, .textpic-text) {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--z-text);
  overflow-wrap: break-word;
}
body .news.news-single :is(.news-text-wrap, .textpic-text) { margin-bottom: 2rem; }
body .news.news-single :is(.news-text-wrap, .textpic-text) > :last-child { margin-bottom: 0; }
body .news.news-single :is(.news-text-wrap, .textpic-text) p { color: var(--z-text); font-size: inherit; font-weight: 400; line-height: inherit; margin: 0 0 1.25rem; }
body .news.news-single :is(.news-text-wrap, .textpic-text) h2,
body .news.news-single :is(.news-text-wrap, .textpic-text) h3,
body .news.news-single :is(.news-text-wrap, .textpic-text) h4 {
  color: var(--z-text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 2rem 0 .75rem;
  scroll-margin-top: 6rem;
}
body .news.news-single :is(.news-text-wrap, .textpic-text) h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); }
body .news.news-single :is(.news-text-wrap, .textpic-text) h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
body .news.news-single :is(.news-text-wrap, .textpic-text) h4 { font-size: 1.125rem; }
body .news.news-single :is(.news-text-wrap, .textpic-text) a {
  color: var(--z-green-dark);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
body .news.news-single :is(.news-text-wrap, .textpic-text) a:hover { color: var(--z-green); text-decoration-thickness: 2px; }
body .news.news-single :is(.news-text-wrap, .textpic-text) ul,
body .news.news-single :is(.news-text-wrap, .textpic-text) ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
body .news.news-single :is(.news-text-wrap, .textpic-text) li { margin-bottom: .4rem; padding-left: .2rem; }
body .news.news-single :is(.news-text-wrap, .textpic-text) li::marker { color: var(--z-green); font-weight: 700; }
body .news.news-single :is(.news-text-wrap, .textpic-text) blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--z-editorial);
  border: 0;
  border-left: 4px solid var(--z-violet);
  border-radius: 0 var(--z-radius) var(--z-radius) 0;
  text-align: left;
}
body .news.news-single :is(.news-text-wrap, .textpic-text) blockquote p { margin: 0; font-size: 1.125rem; font-weight: 400; }
body .news.news-single :is(.news-text-wrap, .textpic-text) img,
body .news.news-single :is(.news-text-wrap, .textpic-text) video,
body .news.news-single :is(.news-text-wrap, .textpic-text) iframe { max-width: 100%; height: auto; }
body .news.news-single :is(.news-text-wrap, .textpic-text) figure { margin: 1.75rem 0; }
body .news.news-single :is(.news-text-wrap, .textpic-text) hr { border: 0; border-top: 1px solid var(--z-border); opacity: 1; margin: 2rem 0; }
body .news.news-single .video-wrapper,
body .news.news-single .audio-wrapper { margin: 1.75rem 0; }
body .news.news-single .video-wrapper iframe,
body .news.news-single .video-wrapper video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--z-radius); }

/* Tabele: przewijanie w poziomie na telefonie, bez rozpychania strony */
body .news.news-single :is(.news-text-wrap, .textpic-text) table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border-collapse: collapse;
  font-size: .9375rem;
  -webkit-overflow-scrolling: touch;
}
body .news.news-single :is(.news-text-wrap, .textpic-text) th,
body .news.news-single :is(.news-text-wrap, .textpic-text) td { padding: .6rem .85rem; border: 1px solid var(--z-border); text-align: left; white-space: nowrap; }
body .news.news-single :is(.news-text-wrap, .textpic-text) th { background: var(--z-soft); color: var(--z-text); font-weight: 700; }

/* Dodatkowe media: siatka 2 kolumny na telefonie, 3 od 768 px */
body .news.news-single .thumbnail img { display: block; width: 100%; height: auto; border-radius: var(--z-radius-sm); }
body .news.news-single .thumbnail .caption { font-size: .8125rem; line-height: 1.4; color: var(--z-muted); }

/* Przycisk powrotu, Shariff */
body .news.news-single .btn-primary {
  --bs-btn-bg: var(--z-green-dark);
  --bs-btn-border-color: var(--z-green-dark);
  --bs-btn-hover-bg: var(--z-green);
  --bs-btn-hover-border-color: var(--z-green);
  --bs-btn-active-bg: var(--z-green);
  --bs-btn-active-border-color: var(--z-green);
  --bs-btn-color: #ffffff;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-color: #ffffff;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem 1.25rem;
  font-weight: 700;
  border-radius: var(--z-radius);
}
body .news.news-single .btn-primary:focus-visible,
body .news.news-single a:focus-visible,
body .news.news-single .page-link:focus-visible { outline: 3px solid var(--z-green); outline-offset: 3px; box-shadow: none; }

/* Powiązane: artykuły, pliki, linki */
body .news.news-single .news-related { margin-top: 2rem; }
body .news.news-single .news-related h4 { font-size: 1.15rem; font-weight: 700; color: var(--z-text); margin: 0 0 .75rem; }
body .news.news-single .list-group { --bs-list-group-border-color: var(--z-border); --bs-list-group-bg: var(--z-surface); --bs-list-group-color: var(--z-text); border-radius: var(--z-radius); }
body .news.news-single .list-group-item { padding: .85rem 1rem; line-height: 1.45; }
body .news.news-single .list-group-item a { color: var(--z-green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
body .news.news-single .list-group-item a:hover { color: var(--z-green); }
body .news.news-single .news-related-news-date,
body .news.news-single .news-related-files-size { display: block; font-size: .8125rem; color: var(--z-muted); font-variant-numeric: tabular-nums; }

/* Poprzedni / następny: pod sobą na telefonie, obok od 768 px */
body .news.news-single .pagination {
  --bs-pagination-color: var(--z-green-dark);
  --bs-pagination-bg: var(--z-surface);
  --bs-pagination-border-color: var(--z-border);
  --bs-pagination-hover-color: var(--z-green-dark);
  --bs-pagination-hover-bg: var(--z-soft);
  --bs-pagination-hover-border-color: var(--z-green);
  --bs-pagination-focus-color: var(--z-green-dark);
  --bs-pagination-focus-bg: var(--z-soft);
  --bs-pagination-border-radius: var(--z-radius);
  flex-direction: column;
  gap: .75rem;
  margin-top: 2rem;
  padding: 0;
}
body .news.news-single .page-item { width: 100%; }
body .news.news-single .page-link {
  display: block;
  height: 100%;
  padding: .85rem 1rem;
  line-height: 1.4;
  font-weight: 700;
  white-space: normal;
  border-radius: var(--z-radius) !important;
  margin: 0 !important;
}

@media (min-width: 768px) {
  body .news.news-single { padding-block: 2.5rem 4rem; }
  body .news.news-single :is(.news-text-wrap, .textpic-text) { font-size: 1.1875rem; line-height: 1.75; }
  body .news.news-single .lead { padding-left: 1.25rem; }
  body .news.news-single .news-related-news-date,
  body .news.news-single .news-related-files-size { display: inline; }
  body .news.news-single .pagination { flex-direction: row; }
  body .news.news-single .page-item { width: 50%; }
  body .news.news-single .page-item:only-child { width: 100%; }
  body .news.news-single .page-item:last-child:not(:only-child) .page-link { text-align: right; }
  body .news.news-single :is(.news-text-wrap, .textpic-text) table { display: table; }
  body .news.news-single :is(.news-text-wrap, .textpic-text) td, body .news.news-single :is(.news-text-wrap, .textpic-text) th { white-space: normal; }
}

/* Odstępy między kolejnymi blokami newsów na stronie (zastępuje reguły po id c34/c35). */
body .frame:has(.news) + .frame:has(.news) { margin-top: var(--z-space-10); }

/* Elementy treści renderowane w artykule (lib.tx_news.contentElementRendering): tekst i obraz */
/* Bootstrap Package zwija odstępy między sąsiednimi ramkami ujemnym marginesem (zakłada padding ramki);
 * tu padding jest wyzerowany, więc zerujemy też te zmienne, inaczej obraz nachodzi na tekst powyżej. */
body .news.news-single .frame { --frame-outer-spacing-before: 0px; --frame-outer-spacing-after: 0px; margin: 0 0 1.5rem; }
body .news.news-single .textpic-above,
body .news.news-single .textpic-below { gap: 0; }
body .news.news-single .textpic-item + .textpic-item { margin-top: 1.25rem; }
body .news.news-single .textpic-text > :first-child { margin-top: 0; }
body .news.news-single .textpic-gallery .gallery-row { display: block; margin: 0; }
body .news.news-single .textpic-gallery .gallery-item { width: 100%; max-width: 100%; padding: 0; }
body .news.news-single .textpic-gallery figure,
body .news.news-single .textpic-gallery picture { display: block; margin: 0; }
body .news.news-single .textpic-gallery img { display: block; width: 100%; height: auto; border-radius: var(--z-radius-lg); }
body #page-content .news.news-single .frame-container,
body #page-content .news.news-single .frame-container-default,
body #page-content .news.news-single .frame-group-container,
body #page-content .news.news-single .frame-group-inner,
body #page-content .news.news-single .frame-inner { padding: 0; margin: 0; max-width: none; background: transparent; }

@media (min-width: 1024px) {
  body .news .layout-carousel { --z-slide-gap: 1.5rem; }
}
