/*
Theme Name: OSUL Modern
Theme URI: https://osul.pl/
Author: OSUL / prototype prepared with ChatGPT
Description: Profesjonalny, dostępny motyw Ogólnopolskiej Sieci Uniwersytetów Ludowych z rozbudowanym panelem Dostosuj, edytowalną stroną główną, mapą UL, projektami, aktualnościami i zarządzaną stopką.
Version: 0.8.9
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: osul-modern
License: GPL-2.0-or-later
*/

:root {
  --osul-ink: #17362f;
  --osul-ink-soft: #35534c;
  --osul-bg: #fffdf8;
  --osul-surface: #ffffff;
  --osul-surface-2: #f3f7f2;
  --osul-accent: #c94b2c;
  --osul-accent-2: #efb64a;
  --osul-green: #2f6f55;
  --osul-line: #d8e2da;
  --osul-focus: #0b5fff;
  --osul-radius: 24px;
  --osul-shadow: 0 18px 50px rgba(23, 54, 47, .12);
  --osul-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--osul-ink);
  background: var(--osul-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.osul-high-contrast {
  --osul-ink: #000;
  --osul-ink-soft: #111;
  --osul-bg: #fff;
  --osul-surface: #fff;
  --osul-surface-2: #fff;
  --osul-accent: #8b1e00;
  --osul-accent-2: #7a4d00;
  --osul-green: #004b2e;
  --osul-line: #000;
}
body.osul-font-lg { font-size: 21px; }
img { max-width: 100%; height: auto; }
a { color: var(--osul-green); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 4px solid var(--osul-focus); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; margin: 0; padding: .75rem 1rem;
  clip: auto; overflow: visible; white-space: normal;
  left: 1rem; top: 1rem; z-index: 99999;
  background: #fff; color: #000; border: 2px solid #000;
}

.osul-container { width: min(calc(100% - 32px), var(--osul-max)); margin-inline: auto; }
.osul-section { padding: clamp(64px, 8vw, 112px) 0; }
.osul-section--soft { background: var(--osul-surface-2); }
.osul-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--osul-accent); font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; font-size: .78rem;
}
.osul-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 99px; background: currentColor; }
.osul-title { margin: .6rem 0 1rem; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -.045em; }
.osul-title--small { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.osul-lead { color: var(--osul-ink-soft); font-size: clamp(1.08rem, 2vw, 1.28rem); max-width: 760px; }
.osul-grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.osul-card { background: var(--osul-surface); border: 1px solid var(--osul-line); border-radius: var(--osul-radius); box-shadow: var(--osul-shadow); }

/* Header */
.osul-site-header {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--osul-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--osul-line) 70%, transparent);
}
.admin-bar .osul-site-header { top: 32px; }
/* Header has a slightly wider working area than content sections so the extra
   Intranet link does not force labels onto two lines on normal desktops. */
.osul-header-row {
  width: min(calc(100% - 32px), 1380px);
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(220px, 285px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}
.osul-brand { display: inline-flex; align-items: center; color: var(--osul-ink); text-decoration: none; min-width: 0; }
.osul-brand-logo { display: block; width: auto; height: 66px; max-width: 100%; object-fit: contain; object-position: left center; }
.osul-nav { min-width: 0; display: flex; align-items: center; justify-content: center; }
.osul-nav ul { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: clamp(0px, .2vw, 4px); list-style: none; margin: 0; padding: 0; }
.osul-nav a {
  display: block;
  padding: .7rem clamp(.54rem, .65vw, .78rem);
  color: var(--osul-ink);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(.82rem, .76vw, .94rem);
  line-height: 1.2;
  white-space: nowrap;
}
.osul-nav a:hover, .osul-nav .current-menu-item > a { background: var(--osul-surface-2); }
/* Intranet uses the same burgundy CTA treatment visible in the OSUL intranet. */
.osul-nav a[href*="intranet.osul.pl"] {
  margin-left: .2rem;
  padding-inline: 1rem;
  color: #fff;
  background: #a50033;
  box-shadow: 0 8px 22px rgba(165, 0, 51, .16);
}
.osul-nav a[href*="intranet.osul.pl"]:hover,
.osul-nav .current-menu-item > a[href*="intranet.osul.pl"] {
  color: #fff;
  background: #87002a;
}
.osul-tools { display: flex; align-items: center; gap: 6px; justify-self: end; }
.osul-icon-btn { min-width: 42px; min-height: 42px; border: 1px solid var(--osul-line); background: var(--osul-surface); color: var(--osul-ink); border-radius: 999px; cursor: pointer; font-weight: 800; }
.osul-menu-toggle { display: none; }

/* Buttons */
.osul-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .74rem 1.15rem; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.osul-btn--primary { color: #fff; background: var(--osul-accent); }
.osul-btn--primary:hover { color: #fff; filter: brightness(.92); }
.osul-btn--secondary { color: var(--osul-ink); background: var(--osul-surface); border-color: var(--osul-line); }

/* Hero — v0.8.3 full-bleed slider with centered progress controls */
.osul-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: #102720;
  isolation: isolate;
}
.osul-hero-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(640px, 82svh, 920px);
  min-height: 640px;
}
.osul-hero-art {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #102720;
}
.osul-art-main {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #102720;
  isolation: isolate;
}
.osul-hero-slider:focus-visible {
  outline: 4px solid var(--osul-focus);
  outline-offset: -4px;
}
.osul-hero-slides,
.osul-hero-slide {
  position: absolute;
  inset: 0;
}
.osul-hero-slides { z-index: 0; }
.osul-hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .85s ease, visibility .85s step-end;
}
.osul-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .85s ease;
}
.osul-art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
}
.osul-hero-slide.is-active .osul-art-photo {
  animation: osul-photo-breathe 16s ease-in-out both;
}
.osul-art-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,28,23,.90) 0%, rgba(8,28,23,.72) 31%, rgba(8,28,23,.28) 61%, rgba(8,28,23,.10) 100%),
    linear-gradient(180deg, rgba(8,28,23,.16) 0%, rgba(8,28,23,.02) 43%, rgba(8,28,23,.68) 100%);
  pointer-events: none;
}
.osul-hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.osul-hero-grid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(calc(100% - 32px), var(--osul-max));
  height: 100%;
}
.osul-hero-copy {
  width: min(760px, 68%);
  min-width: 0;
  padding: clamp(100px, 12vh, 150px) 0 clamp(130px, 16vh, 180px);
  color: #fff;
  pointer-events: auto;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.osul-hero .osul-kicker {
  color: #ffd174;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.osul-hero h1 {
  margin: .55rem 0 1.15rem;
  max-width: 920px;
  color: #fff;
  font-size: clamp(3.2rem, 6.8vw, 6.6rem);
  line-height: .91;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.osul-hero h1 em {
  color: #ffd174;
  font-style: normal;
}
.osul-hero .osul-lead {
  max-width: 62ch;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.08rem, 1.75vw, 1.35rem);
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0,0,0,.28);
}
.osul-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.osul-hero .osul-btn--primary {
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.osul-hero .osul-btn--secondary {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.50);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.osul-hero .osul-btn--secondary:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.75);
}
.osul-hero-slide-caption {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(92px, 11vh, 124px);
  max-width: min(38vw, 470px);
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 12px;
  background: rgba(9,30,24,.52);
  color: rgba(255,255,255,.93);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  backdrop-filter: blur(10px);
}
@property --osul-slider-progress {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.osul-hero-slider-controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: clamp(22px, 4vw, 42px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: calc(100% - 32px);
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(9,30,24,.46);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.osul-hero-slider-counter {
  display: inline-flex;
  align-items: baseline;
  min-width: 54px;
  padding-inline: 6px 4px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .055em;
  font-variant-numeric: tabular-nums;
}
.osul-hero-slider-separator {
  margin-inline: 4px;
  color: rgba(255,255,255,.48);
}
.osul-hero-slider-arrow,
.osul-hero-slider-dot {
  appearance: none;
  border: 0;
  cursor: pointer;
}
.osul-hero-slider-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--osul-ink);
  font: 800 1.6rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition: transform .18s ease, background .18s ease;
}
.osul-hero-slider-arrow:hover { background: #fff; transform: translateY(-1px); }
.osul-hero-slider-arrow:focus-visible,
.osul-hero-slider-dot:focus-visible { outline: 3px solid var(--osul-focus); outline-offset: 3px; }
.osul-hero-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 4px;
}
.osul-hero-slider-dot {
  --osul-slider-progress: 0deg;
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
}
.osul-hero-slider-dot::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: conic-gradient(#ffd174 var(--osul-slider-progress), rgba(255,255,255,.25) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: .76;
}
.osul-hero-slider-dot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.osul-hero-slider-dot.is-active::after {
  transform: scale(1.2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,209,116,.14), 0 0 14px rgba(255,209,116,.30);
}
.osul-hero-slider-dot.is-active.is-progressing::before {
  opacity: 1;
  animation: osul-slider-progress var(--osul-slide-duration, 5500ms) linear forwards;
}

/* The former OSUL wordmark is intentionally removed; the badge now occupies the upper-right accent position. */
.osul-art-badge {
  position: absolute;
  z-index: 5;
  top: clamp(26px, 4vw, 58px);
  right: clamp(22px, 5vw, 76px);
  bottom: auto;
  width: 132px;
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: var(--osul-accent-2);
  color: var(--osul-ink);
  text-align: center;
  font-weight: 900;
  line-height: 1.08;
  transform: rotate(3deg);
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
  animation: osul-float 6s ease-in-out infinite;
}

@keyframes osul-slider-progress {
  from { --osul-slider-progress: 0deg; }
  to { --osul-slider-progress: 360deg; }
}

@keyframes osul-photo-breathe {
  from { transform: scale(1.035) translate3d(0,0,0); }
  to { transform: scale(1.085) translate3d(-.3%, -.35%, 0); }
}
@keyframes osul-float {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-8px); }
}
@keyframes osul-rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .osul-hero-stage { height: clamp(660px, 78svh, 820px); min-height: 660px; }
  .osul-hero-copy { width: min(700px, 78%); }
  .osul-art-badge { width: 112px; min-height: 112px; top: 24px; right: 24px; font-size: .82rem; }
  .osul-hero-slide-caption { max-width: 44vw; }
}

@media (max-width: 680px) {
  .osul-hero-stage { height: clamp(620px, 82svh, 760px); min-height: 620px; }
  .osul-art-shade {
    background:
      linear-gradient(180deg, rgba(8,28,23,.30) 0%, rgba(8,28,23,.55) 37%, rgba(8,28,23,.90) 100%),
      linear-gradient(90deg, rgba(8,28,23,.36), rgba(8,28,23,.12));
  }
  .osul-hero-content { align-items: flex-end; }
  .osul-hero-grid { width: min(calc(100% - 28px), var(--osul-max)); align-items: flex-end; }
  .osul-hero-copy {
    width: 100%;
    padding: 100px 0 126px;
  }
  .osul-hero h1 {
    margin-bottom: .9rem;
    font-size: clamp(2.7rem, 13.5vw, 4.65rem);
    line-height: .92;
  }
  .osul-hero .osul-lead { font-size: 1.04rem; line-height: 1.48; }
  .osul-hero-actions { gap: 9px; margin-top: 22px; }
  .osul-hero-actions .osul-btn { min-height: 48px; padding-inline: .95rem; font-size: .92rem; }
  .osul-art-badge { width: 88px; min-height: 88px; top: 14px; right: 14px; padding: 11px; font-size: .67rem; }
  .osul-hero-slide-caption {
    right: 14px;
    bottom: 84px;
    max-width: min(72vw, 340px);
    font-size: .68rem;
  }
  .osul-hero-slider-controls {
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    max-width: calc(100% - 28px);
    padding: 7px 9px;
  }
  .osul-hero-slider-counter { min-width: 47px; font-size: .71rem; }
  .osul-hero-slider-arrow { width: 35px; height: 35px; }
  .osul-hero-slider-dots { gap: 6px; }
  .osul-hero-slider-dot { width: 23px; height: 23px; flex-basis: 23px; }
  .osul-hero-slider-dot::after { inset: 8px; }
}

/* Feature intro circles — inspired by the "Edukacja blisko ludzi" badge. */
.osul-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}
.osul-value {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(18px, 2.2vw, 28px);
  border: 0;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 14px 34px rgba(23,54,47,.14);
  transition: transform .22s ease, box-shadow .22s ease;
}
.osul-value:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 20px 42px rgba(23,54,47,.2); }
.osul-value b { display: block; font-size: clamp(.98rem, 1.35vw, 1.18rem); line-height: 1.1; margin-bottom: 8px; }
.osul-value p { margin: 0; font-size: clamp(.72rem, 1vw, .86rem); line-height: 1.35; color: inherit; }
.osul-value--relations { background: #f2bb48; color: #17362f; transform: rotate(-2deg); }
.osul-value--agency { background: #d65b3b; color: #fff; transform: rotate(2deg); }
.osul-value--heritage { background: #2f6f55; color: #fff; transform: rotate(-1deg); }
.osul-value--relations:hover, .osul-value--agency:hover, .osul-value--heritage:hover { transform: translateY(-5px) rotate(0); }
body.osul-high-contrast .osul-value { background: #fff !important; color: #000 !important; border: 3px solid #000; box-shadow: none; }

/* Map */
.osul-map-section { overflow: hidden; }
.osul-map-layout { display: block; width: 100%; margin-top: 34px; }
.osul-map-fullbleed {
  position: relative;
  width: 100%;
  margin-left: 0;
  min-width: 0;
}
.osul-map-card {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #dfe8e2;
  border-top: 1px solid var(--osul-line);
  border-bottom: 1px solid var(--osul-line);
}
.osul-leaflet-map {
  width: 100%;
  height: clamp(500px, 42vw, 650px);
  min-height: 500px;
  border-radius: 0;
  overflow: hidden;
  background: #dfe8e2;
}
.osul-modern .osul-leaflet-map .leaflet-tile-pane {
  filter: saturate(.78) contrast(.96) brightness(.95);
}
.osul-map-meta { position: relative; }
.osul-map-error { padding: 28px; margin: 0; }

.osul-map-pin-shell { background: transparent; border: 0; }
.osul-map-pin-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--osul-accent);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(23,54,47,.28);
  font: 900 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.osul-map-pin-icon[data-ul-index="1"] {
  background: var(--osul-green);
  border-color: var(--osul-accent-2);
  box-shadow: 0 0 0 4px rgba(239,182,74,.28), 0 6px 18px rgba(23,54,47,.34);
}
.osul-map-pin-icon.is-active { background: var(--osul-green); transform: scale(1.16); }
.osul-map-pin-icon[data-ul-index="1"].is-active { transform: scale(1.24); }
.osul-map-popup { line-height: 1.4; min-width: 190px; }
.osul-map-popup strong { display: inline-block; margin-bottom: 4px; color: var(--osul-ink); }
.osul-map-popup span { color: var(--osul-ink-soft); }
.osul-map-popup a { display: inline-block; margin-top: 8px; font-weight: 800; }

/* Hover/focus tooltip for numbered UL markers. */
.osul-modern .leaflet-tooltip.osul-map-tooltip {
  width: auto;
  max-width: min(330px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(255,253,248,.98);
  color: var(--osul-ink);
  box-shadow: 0 14px 38px rgba(23,54,47,.24);
  backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: normal !important;
  overflow: hidden;
}
.osul-modern .leaflet-tooltip-top.osul-map-tooltip::before {
  border-top-color: rgba(255,253,248,.98);
}
.osul-map-tooltip-card {
  width: min(310px, calc(100vw - 32px));
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px 11px;
  line-height: 1.25;
  overflow: hidden;
}
.osul-map-tooltip-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.osul-map-tooltip-visual {
  position: relative;
  width: 56px;
  height: 56px;
  display: block;
  overflow: visible;
  border-radius: 14px;
  background: #edf2ec;
  box-shadow: inset 0 0 0 1px rgba(23,54,47,.08);
}
.osul-map-tooltip-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.osul-map-tooltip-visual.is-fallback { background: #fff; }
.osul-map-tooltip-visual.is-fallback img { object-fit: contain; padding: 7px; }
.osul-map-tooltip-number {
  position: absolute;
  left: -6px;
  bottom: -6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--osul-accent);
  font-size: .7rem;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(23,54,47,.2);
}
.osul-map-tooltip-head strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: .92rem;
  line-height: 1.2;
  color: var(--osul-ink);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.osul-map-tooltip-meta {
  min-width: 0;
  margin-top: 7px;
  padding-left: 66px;
}
.osul-map-tooltip-location,
.osul-map-tooltip-note {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.osul-map-tooltip-location { color: var(--osul-ink-soft); font-size: .76rem; line-height: 1.3; }
.osul-map-tooltip-note { margin-top: 5px; color: var(--osul-green); font-size: .7rem; line-height: 1.25; font-weight: 800; }
.osul-map-tooltip-note--historic { color: var(--osul-accent); }
.osul-map-pin-shell { cursor: pointer; }
.osul-map-pin-shell:hover .osul-map-pin-icon,
.osul-map-pin-shell:focus .osul-map-pin-icon {
  transform: scale(1.16);
  box-shadow: 0 7px 20px rgba(23,54,47,.34);
}
.osul-map-pin-shell:hover .osul-map-pin-icon[data-ul-index="1"],
.osul-map-pin-shell:focus .osul-map-pin-icon[data-ul-index="1"] { transform: scale(1.24); }

.osul-modern .leaflet-container { font-family: inherit; color: var(--osul-ink); }
.osul-modern .leaflet-control-zoom a { color: var(--osul-ink); }
.osul-modern .leaflet-control-attribution { font-size: 10px; }

.osul-map-panel {
  width: 100%;
  margin-top: 22px;
  padding: 24px;
  position: static;
}
.osul-map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}
.osul-map-panel-head > div { min-width: 0; }
.osul-map-panel-head > p { margin: 0; flex: 0 0 auto; }
.osul-map-panel h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.osul-map-panel p { color: var(--osul-ink-soft); }
.osul-ul-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.osul-ul-list a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 12px;
  color: var(--osul-ink);
  text-decoration: none;
  font-weight: 700;
}
.osul-ul-list a:hover,
.osul-ul-list a:focus,
.osul-ul-list a.is-active { background: var(--osul-surface-2); }
.osul-ul-list a.is-historic {
  background: color-mix(in srgb, var(--osul-accent-2) 17%, var(--osul-surface));
  border: 1px solid color-mix(in srgb, var(--osul-accent-2) 55%, var(--osul-line));
}
.osul-ul-list a small {
  display: block;
  margin-top: 2px;
  color: var(--osul-accent);
  font-size: .72rem;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.osul-ul-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--osul-accent);
  color: #fff;
  font-size: .78rem;
}
.osul-ul-list a.is-historic .osul-ul-num {
  background: var(--osul-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--osul-accent-2) 45%, transparent);
}

/* Fixed 4 × 2 UL grid on the homepage. */
.osul-ul-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.osul-ul-card { overflow: hidden; min-height: 360px; display: flex; flex-direction: column; }
.osul-ul-card-media { aspect-ratio: 16/10; background: linear-gradient(135deg, #dce7db, #f2c878); position: relative; overflow: hidden; }
.osul-ul-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.osul-ul-card-media.is-fallback { background: #fff; }
.osul-ul-card-media.is-fallback img { object-fit: contain; padding: 24px; }
.osul-ul-card-body { padding: 20px; display: flex; flex: 1; flex-direction: column; }
.osul-ul-card h3 { margin: 0 0 10px; font-size: 1.14rem; line-height: 1.2; overflow-wrap: anywhere; }
.osul-ul-card p { margin: 0 0 18px; color: var(--osul-ink-soft); }
.osul-ul-card .osul-card-link { margin-top: auto; font-weight: 800; }

/* Projects tabs */
.osul-tabs { margin-top: 34px; }
.osul-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.osul-tab { border: 1px solid var(--osul-line); background: var(--osul-surface); color: var(--osul-ink); padding: .7rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 800; }
.osul-tab[aria-selected="true"] { background: var(--osul-green); color: #fff; border-color: var(--osul-green); }
.osul-tabpanel[hidden] { display: none; }
.osul-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.osul-project { padding: 24px; min-height: 250px; display: flex; flex-direction: column; }
.osul-project .osul-project-tag { color: var(--osul-accent); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.osul-project h3 { margin: 10px 0; font-size: 1.35rem; line-height: 1.17; }
.osul-project p { color: var(--osul-ink-soft); }
.osul-project a { margin-top: auto; font-weight: 800; }

/* News & content */
.osul-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.osul-news-card { overflow: hidden; }
.osul-news-card .thumb { display: block; aspect-ratio: 16/9; background: #e6ece4; overflow: hidden; }
.osul-news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.osul-news-card .thumb.is-fallback { background: #fff; }
.osul-news-card .thumb.is-fallback img { object-fit: contain; padding: clamp(20px, 4vw, 44px); }
.osul-news-card .body { padding: 22px; }
.osul-news-card h3 { margin: 8px 0; line-height: 1.15; overflow-wrap: anywhere; }
.osul-news-card time { color: var(--osul-ink-soft); font-size: .9rem; }
.entry-wrap { padding: 70px 0 100px; }
.entry-content { max-width: 820px; margin: 0 auto; }
.osul-news-archive-wrap { max-width: 1120px; }
.osul-news-archive { display: grid; gap: 22px; margin-top: 30px; }
.osul-news-list-card { display: grid; grid-template-columns: minmax(220px, 30%) minmax(0, 1fr); overflow: hidden; }
.osul-news-list-media { min-height: 210px; background: #e6ece4; overflow: hidden; }
.osul-news-list-media img { width: 100%; height: 100%; min-height: 210px; display: block; object-fit: cover; }
.osul-news-list-media.is-fallback { background: #fff; }
.osul-news-list-media.is-fallback img { object-fit: contain; padding: clamp(24px, 4vw, 54px); }
.osul-news-list-body { min-width: 0; padding: 26px 30px; }
.osul-news-list-body time { color: var(--osul-ink-soft); font-size: .86rem; }
.osul-news-list-body h2 { margin: 7px 0 10px; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; overflow-wrap: anywhere; }
.osul-news-list-body p { margin-bottom: 0; color: var(--osul-ink-soft); }
.osul-pagination { margin-top: 34px; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h1, .entry-content h2, .entry-content h3 { line-height: 1.15; }

/* CTA/footer */
.osul-cta { background: var(--osul-ink); color: #fff; border-radius: 36px; padding: clamp(34px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.osul-cta h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.osul-cta p { color: rgba(255,255,255,.78); margin: 0; }
.osul-cta .osul-btn--secondary { background: #fff; border-color: #fff; justify-self: end; }
.osul-footer { padding: 46px 0 0; background: #102720; color: #fff; }
.osul-footer a { color: #fff; }
.osul-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; padding-bottom: 34px; }
.osul-footer h2, .osul-footer h3 { margin-top: 0; }
.osul-footer ul { list-style: none; padding: 0; margin: 0; }
.osul-footer li + li { margin-top: .45rem; }
.osul-project-note { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.74); font-size: .9rem; }

/* EU funding strip — visually aligned with the funding block used in intranet.osul.pl. */
.osul-funding-band {
  margin-top: 6px;
  padding: 26px 0 24px;
  background: #fff;
  color: #101418;
  border-top: 1px solid rgba(16, 39, 32, .12);
}
.osul-funding-inner { display: grid; justify-items: center; gap: 20px; text-align: center; }
.osul-funding-logos {
  width: min(100%, 1080px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.5vw, 72px);
}
.osul-funding-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex: 0 1 auto;
}
.osul-funding-logo--fers { width: min(31vw, 339px); }
.osul-funding-logo--rp { width: min(27vw, 296px); }
.osul-funding-logo--eu { width: min(33vw, 363px); }
.osul-funding-text { margin: 0; max-width: 1120px; color: #101418; font-size: .9rem; line-height: 1.5; font-weight: 650; }

/* Header-only breakpoint: switch to the compact mobile menu before labels can wrap. */
@media (max-width: 1160px) {
  .osul-header-row { grid-template-columns: minmax(190px, 1fr) auto; position: relative; }
  .osul-tools { grid-column: 2; }
  .osul-menu-toggle { display: inline-grid; place-items: center; }
  .osul-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; padding: 12px; border: 1px solid var(--osul-line); border-radius: 18px; background: var(--osul-surface); box-shadow: var(--osul-shadow); }
  .osul-nav.is-open { display: block; }
  .osul-nav ul { display: grid; }
  .osul-nav a { border-radius: 10px; white-space: normal; font-size: .96rem; }
  .osul-nav a[href*="intranet.osul.pl"] { margin-left: 0; margin-top: 4px; text-align: center; }
}

/* Responsive */
@media (max-width: 980px) {
  .osul-grid-2, .osul-cta, .osul-footer-grid { grid-template-columns: 1fr; }
  .osul-map-card { min-height: auto; }
  .osul-leaflet-map { height: 540px; min-height: 460px; }
  .osul-ul-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osul-map-panel-head { align-items: flex-start; flex-direction: column; }
  .osul-map-panel-head > p { width: 100%; }
  .osul-map-panel-head .osul-btn { width: 100%; }
  .osul-project-grid, .osul-news-grid { grid-template-columns: 1fr 1fr; }
  .osul-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .osul-value { max-width: 220px; }
  .osul-ul-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osul-cta .osul-btn--secondary { justify-self: start; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .osul-header-row { min-height: 76px; gap: 8px; }
  .osul-brand { min-width: 0; max-width: 190px; }
  .osul-brand-logo { height: 50px; max-width: 190px; }
  .osul-funding-band { padding: 24px 0 22px; }
  .osul-funding-logos {
    width: min(100%, 440px);
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }
  .osul-funding-logo--fers { width: min(88vw, 320px); }
  .osul-funding-logo--rp { width: min(76vw, 270px); }
  .osul-funding-logo--eu { width: min(88vw, 330px); }
  .osul-funding-text { max-width: 38rem; padding-inline: 8px; font-size: .82rem; }
  .osul-tools .osul-access-btn { display: none; }
  .osul-project-grid, .osul-news-grid { grid-template-columns: 1fr; }
  .osul-ul-grid { grid-template-columns: 1fr; }
  .osul-values { grid-template-columns: 1fr; gap: 20px; }
  .osul-value { max-width: 260px; }
  .osul-news-list-card { grid-template-columns: 1fr; }
  .osul-news-list-media, .osul-news-list-media img { min-height: 0; aspect-ratio: 16/9; }
  .osul-map-section { overflow: visible; }
  .osul-map-layout, .osul-map-fullbleed, .osul-map-card { width: 100%; max-width: 100%; min-width: 0; }
  .osul-map-fullbleed { margin-inline: 0; }
  .osul-leaflet-map {
    width: 100%;
    height: min(64svh, 440px);
    min-height: 350px;
    max-height: 440px;
    touch-action: pan-x pan-y;
  }
  .osul-map-panel { padding: 16px; margin-top: 16px; border-radius: 18px; }
  .osul-map-panel h3 { font-size: 1.22rem; overflow-wrap: anywhere; }
  .osul-map-panel p { margin-top: .45rem; }
  .osul-map-panel-head { gap: 12px; }
  .osul-map-panel-head .osul-btn { min-height: 46px; white-space: normal; text-align: center; }
  .osul-ul-list { grid-template-columns: 1fr; gap: 4px; }
  .osul-ul-list a { grid-template-columns: 28px minmax(0, 1fr); padding: 9px 6px; gap: 8px; overflow-wrap: anywhere; }
  .osul-ul-num { width: 26px; height: 26px; font-size: .72rem; }

  /* Mobile "Poznaj nas": cards must never inherit desktop minimum heights/overflow. */
  .osul-ul-grid { width: 100%; max-width: 100%; gap: 14px; margin-top: 24px; }
  .osul-ul-card { min-width: 0; min-height: 0; width: 100%; }
  .osul-ul-card-media { aspect-ratio: 16 / 9; }
  .osul-ul-card-body { padding: 16px; }
  .osul-ul-card h3 { font-size: 1.08rem; overflow-wrap: anywhere; word-break: normal; }
  .osul-ul-card p { margin-bottom: 14px; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .osul-container { width: min(calc(100% - 24px), var(--osul-max)); }
  .osul-leaflet-map { height: 360px; min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .osul-site-header, .osul-tools, .osul-footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}

/* v0.4.2 — responsive WordPress galleries + accessible lightbox */
.entry-content img {
  max-width: 100% !important;
  height: auto !important;
}
.entry-content iframe,
.entry-content video {
  max-width: 100%;
}
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtu.be"] {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
}
.entry-content .gallery,
.entry-content .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 2rem 0;
}
.entry-content .gallery::before,
.entry-content .gallery::after { display: none !important; }
.entry-content .gallery .gallery-item,
.entry-content .wp-block-gallery .wp-block-image {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  background: #e8eee9;
}
.entry-content .gallery a,
.entry-content .wp-block-gallery a,
.entry-content [data-osul-lightbox-group] {
  cursor: zoom-in;
}
.entry-content .gallery .gallery-icon,
.entry-content .wp-block-gallery figure { margin: 0 !important; }
.entry-content .gallery img,
.entry-content .wp-block-gallery img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0 !important;
  transition: transform .22s ease, filter .22s ease;
}
.entry-content .gallery a:hover img,
.entry-content .gallery a:focus-visible img,
.entry-content .wp-block-gallery a:hover img,
.entry-content .wp-block-gallery a:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}
.entry-content .gallery-caption,
.entry-content .wp-element-caption,
.entry-content .wp-block-gallery figcaption {
  margin: 0;
  padding: 9px 11px 11px;
  background: #fff;
  color: var(--osul-ink-soft);
  font-size: .82rem;
  line-height: 1.35;
}
.osul-lightbox-open { overflow: hidden; }
.osul-lightbox[hidden] { display: none !important; }
.osul-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
  background: rgba(5, 20, 16, .94);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.osul-lightbox.is-open { opacity: 1; visibility: visible; }
.osul-lightbox__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1500px, 100%);
  height: min(92vh, 980px);
  outline: 0;
}
.osul-lightbox__stage {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.osul-lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  opacity: 0;
  transform: scale(.975);
  transition: opacity .2s ease, transform .24s ease;
}
.osul-lightbox__image.is-ready { opacity: 1; transform: scale(1); }
.osul-lightbox__loader {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: osul-lightbox-spin .8s linear infinite;
}
.osul-lightbox.is-loading .osul-lightbox__loader { opacity: 1; }
@keyframes osul-lightbox-spin { to { transform: rotate(360deg); } }
.osul-lightbox__close,
.osul-lightbox__nav {
  appearance: none;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.osul-lightbox__close:hover,
.osul-lightbox__close:focus-visible,
.osul-lightbox__nav:hover,
.osul-lightbox__nav:focus-visible {
  background: #fff;
  color: #102720;
  outline: 3px solid rgba(255,255,255,.25);
  outline-offset: 3px;
}
.osul-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.osul-lightbox__nav {
  align-self: center;
  width: 50px;
  height: 64px;
  border-radius: 16px;
  font-size: 3rem;
  line-height: 1;
}
.osul-lightbox__prev { grid-column: 1; grid-row: 1; justify-self: start; }
.osul-lightbox__next { grid-column: 3; grid-row: 1; justify-self: end; }
.osul-lightbox__meta {
  grid-column: 2;
  grid-row: 2;
  min-height: 50px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 14px;
  color: #fff;
}
.osul-lightbox__caption { margin: 0; max-width: 900px; color: rgba(255,255,255,.88); }
.osul-lightbox__counter { flex: 0 0 auto; color: rgba(255,255,255,.68); font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
  .entry-content .gallery,
  .entry-content .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .osul-lightbox { padding: 10px; }
  .osul-lightbox__dialog { grid-template-columns: 44px minmax(0, 1fr) 44px; height: 94vh; }
  .osul-lightbox__nav { width: 38px; height: 52px; border-radius: 12px; font-size: 2.3rem; }
  .osul-lightbox__image { max-height: 76vh; border-radius: 6px; }
  .osul-lightbox__close { width: 42px; height: 42px; font-size: 1.7rem; }
  .osul-lightbox__meta { font-size: .86rem; gap: 10px; }
}
@media (max-width: 430px) {
  .entry-content .gallery,
  .entry-content .wp-block-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .osul-lightbox,
  .osul-lightbox__image,
  .entry-content .gallery img,
  .entry-content .wp-block-gallery img { transition: none !important; }
  .osul-lightbox__loader { animation-duration: 1.5s; }
}

/* Scroll entrance motion */
html.osul-motion-js body.osul-modern {
  overflow-x: clip;
}

html.osul-motion-js [data-osul-reveal] {
  --osul-reveal-x: 0px;
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(var(--osul-reveal-x), 0, 0) scale(.985);
  transition:
    opacity .72s ease,
    transform .84s cubic-bezier(.18,.82,.24,1),
    filter .72s ease;
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
}

html.osul-motion-js [data-osul-reveal="left"] {
  --osul-reveal-x: clamp(-110px, -8vw, -58px);
}

html.osul-motion-js [data-osul-reveal="right"] {
  --osul-reveal-x: clamp(58px, 8vw, 110px);
}

html.osul-motion-js [data-osul-reveal].is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

html.osul-motion-js [data-osul-reveal].is-reveal-complete {
  transform: none;
  filter: none;
  will-change: auto;
}

@media (max-width: 900px) and (min-width: 769px) {
  html.osul-motion-js [data-osul-reveal="left"] { --osul-reveal-x: -42px; }
  html.osul-motion-js [data-osul-reveal="right"] { --osul-reveal-x: 42px; }
}

/* On phones content must never stay hidden because a very tall section cannot
   reach an IntersectionObserver ratio. Desktop entrance animation is preserved. */
@media (max-width: 768px) {
  html.osul-motion-js [data-osul-reveal] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.osul-motion-js [data-osul-reveal] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}


/* v0.5.1: Leaflet is hard-constrained to Poland; outside-country area is masked in JS. */
.osul-leaflet-map { background: var(--osul-surface-2); }


/* v0.5.2 — mapa po lewej, zsynchronizowana lista UL po prawej. */
.osul-map-section { overflow: hidden; }
.osul-map-layout.osul-map-layout--split {
  width: min(calc(100% - 48px), 1600px);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(430px, .84fr);
  gap: 22px;
  align-items: stretch;
}
.osul-map-column,
.osul-map-panel--side { min-width: 0; }
.osul-map-card {
  height: 100%;
  min-height: 650px;
  border: 1px solid var(--osul-line);
  border-radius: 28px;
  box-shadow: var(--osul-shadow);
}
.osul-map-layout--split .osul-leaflet-map {
  height: 100%;
  min-height: 650px;
  border-radius: 28px;
}
.osul-map-panel--side {
  margin: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 650px;
  border-radius: 28px;
}
.osul-map-panel-label {
  display: block;
  margin-bottom: 6px;
  color: var(--osul-accent);
  font-size: .72rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.osul-map-panel--side .osul-map-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--osul-line);
}
.osul-map-panel--side .osul-map-panel-head > p { width: 100%; }
.osul-map-panel--side .osul-map-panel-head .osul-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.osul-map-panel--side .osul-map-panel-head h3 {
  font-size: clamp(1.18rem, 1.45vw, 1.5rem);
  overflow-wrap: anywhere;
}
.osul-map-panel--side .osul-map-panel-head p[data-ul-detail-location] {
  margin: 6px 0 0;
  font-size: .94rem;
  line-height: 1.4;
}
.osul-ul-list.osul-ul-list--side {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: min-content;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--osul-green) 40%, transparent) transparent;
}
.osul-ul-list.osul-ul-list--side button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--osul-ink);
  font: inherit;
  font-size: .88rem;
  line-height: 1.28;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.osul-ul-list.osul-ul-list--side button:hover,
.osul-ul-list.osul-ul-list--side button:focus-visible,
.osul-ul-list.osul-ul-list--side button.is-active {
  background: var(--osul-surface-2);
  border-color: color-mix(in srgb, var(--osul-green) 24%, var(--osul-line));
}
.osul-ul-list.osul-ul-list--side button:hover { transform: translateY(-1px); }
.osul-ul-list.osul-ul-list--side button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--osul-accent-2) 60%, transparent);
  outline-offset: 1px;
}
.osul-ul-list.osul-ul-list--side button.is-active {
  box-shadow: inset 3px 0 0 var(--osul-green);
}
.osul-ul-list.osul-ul-list--side button.is-historic {
  background: color-mix(in srgb, var(--osul-accent-2) 17%, var(--osul-surface));
  border-color: color-mix(in srgb, var(--osul-accent-2) 55%, var(--osul-line));
}
.osul-ul-list.osul-ul-list--side button small {
  display: block;
  margin-top: 2px;
  color: var(--osul-accent);
  font-size: .67rem;
  line-height: 1.15;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.osul-map-meta { padding: 10px 4px 0; }

@media (max-width: 1180px) {
  .osul-map-layout.osul-map-layout--split {
    width: min(calc(100% - 32px), 1180px);
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: 16px;
  }
  .osul-map-card,
  .osul-map-panel--side,
  .osul-map-layout--split .osul-leaflet-map { min-height: 600px; }
  .osul-ul-list.osul-ul-list--side { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .osul-map-section { overflow: visible; }
  .osul-map-layout.osul-map-layout--split {
    width: min(calc(100% - 32px), var(--osul-max));
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .osul-map-card,
  .osul-map-layout--split .osul-leaflet-map {
    height: min(70svh, 560px);
    min-height: 440px;
    border-radius: 22px;
  }
  .osul-map-panel--side {
    min-height: 0;
    padding: 18px;
    border-radius: 22px;
  }
  .osul-ul-list.osul-ul-list--side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .osul-map-layout.osul-map-layout--split { width: min(calc(100% - 24px), var(--osul-max)); margin-top: 24px; }
  .osul-map-card,
  .osul-map-layout--split .osul-leaflet-map {
    height: min(62svh, 430px);
    min-height: 340px;
    border-radius: 18px;
  }
  .osul-map-panel--side { padding: 14px; border-radius: 18px; }
  .osul-ul-list.osul-ul-list--side { grid-template-columns: 1fr; }
  .osul-ul-list.osul-ul-list--side button { font-size: .95rem; padding: 10px 7px; }
}


/* v0.6.1 — minimalistyczna mapa Polski: sam kontur, bez warstwy kafelkowej i bez wypełnienia. */
.osul-modern .osul-leaflet-map {
  background: #fffdf8;
}
.osul-modern .osul-leaflet-map .leaflet-map-pane,
.osul-modern .osul-leaflet-map .leaflet-overlay-pane {
  background: transparent;
}


/* v0.8.3 — biała mapa Polski z wyraźnym logo OSUL w prawym górnym rogu. */
.osul-modern .osul-map-card,
.osul-modern .osul-leaflet-map {
  position: relative;
  background: #fff;
  isolation: isolate;
}
.osul-modern .osul-leaflet-map::before { content: none; }
.osul-modern .osul-leaflet-map .leaflet-map-pane,
.osul-modern .osul-leaflet-map .leaflet-overlay-pane,
.osul-modern .osul-leaflet-map .leaflet-marker-pane,
.osul-modern .osul-leaflet-map .leaflet-tooltip-pane,
.osul-modern .osul-leaflet-map .leaflet-popup-pane {
  background: transparent;
}
.osul-modern .osul-leaflet-map .leaflet-map-pane { z-index: 1; }
.osul-modern .osul-leaflet-map .leaflet-overlay-pane svg path {
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,.98))
    drop-shadow(0 0 4px rgba(255,255,255,.88));
}
.osul-map-brand {
  position: absolute;
  z-index: 460;
  top: 20px;
  right: 20px;
  width: clamp(190px, 22vw, 300px);
  padding: 11px 14px;
  border: 1px solid rgba(23,54,47,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(23,54,47,.12);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.osul-map-brand img {
  display: block;
  width: 100%;
  height: auto;
}
body.osul-high-contrast .osul-map-brand { border: 2px solid #000; box-shadow: none; background: #fff; }
@media (max-width: 680px) {
  .osul-map-brand { top: 12px; right: 12px; width: min(46vw, 210px); padding: 8px 10px; border-radius: 12px; }
}

/* Configurable homepage architecture */
.osul-configurable-section { position: relative; }
.osul-section-layout-hero-image-left .osul-art-shade {
  background:
    linear-gradient(270deg, rgba(8,28,23,.90) 0%, rgba(8,28,23,.72) 31%, rgba(8,28,23,.28) 61%, rgba(8,28,23,.10) 100%),
    linear-gradient(180deg, rgba(8,28,23,.16) 0%, rgba(8,28,23,.02) 43%, rgba(8,28,23,.68) 100%);
}
.osul-section-layout-hero-image-left .osul-hero-grid { justify-content: flex-end; }
.osul-section-layout-hero-image-left .osul-hero-copy { text-align: left; }
.osul-section-layout-hero-centered .osul-art-shade {
  background:
    linear-gradient(90deg, rgba(8,28,23,.55), rgba(8,28,23,.38) 50%, rgba(8,28,23,.55)),
    linear-gradient(180deg, rgba(8,28,23,.18), rgba(8,28,23,.70));
}
.osul-section-layout-hero-centered .osul-hero-grid { justify-content: center; text-align: center; }
.osul-section-layout-hero-centered .osul-hero-copy { width: min(880px, 86%); margin-inline: auto; }
.osul-section-layout-hero-centered .osul-hero .osul-lead,
.osul-section-layout-hero-centered .osul-lead { margin-inline: auto; }
.osul-section-layout-hero-centered .osul-hero-actions { justify-content: center; }
.osul-section-layout-about-values-left .osul-grid-2 > :first-child { order: 2; }
.osul-section-layout-about-values-left .osul-grid-2 > .osul-values { order: 1; }
.osul-section-layout-join-card-right .osul-grid-2 > :first-child { order: 2; }
.osul-section-layout-map-list-left .osul-map-layout--split > .osul-map-column { order: 2; }
.osul-section-layout-map-list-left .osul-map-layout--split > .osul-map-panel { order: 1; }
.osul-section-layout-map-list-left .osul-map-layout--split { grid-template-columns: minmax(430px,.84fr) minmax(0,1.16fr); }
.osul-section-layout-network-compact .osul-ul-card-body,
.osul-section-layout-projects-compact .osul-project,
.osul-section-layout-news-compact .osul-news-card .body { padding: 18px; }
.osul-section-layout-cta-centered .osul-cta { text-align: center; justify-items: center; }
.osul-section-layout-cta-centered .osul-cta > * { margin-inline: auto; }
.osul-ul-grid { grid-template-columns: repeat(var(--osul-grid-columns, 4), minmax(0,1fr)); }
.osul-project-grid { grid-template-columns: repeat(var(--osul-project-columns, 2), minmax(0,1fr)); }
.osul-news-grid { grid-template-columns: repeat(var(--osul-news-columns, 3), minmax(0,1fr)); }

/* User-defined sections created in the WordPress Customizer. */
.osul-extra-section { overflow: clip; }
.osul-extra-section--centered, .osul-extra-section--banner { text-align: center; }
.osul-extra-section--centered .osul-extra-section-copy,
.osul-extra-section--banner .osul-extra-section-copy { max-width: 900px; margin-inline: auto; }
.osul-extra-section--banner .osul-container { padding-block: clamp(24px,4vw,50px); }
.osul-extra-section-media { margin: 0; border-radius: var(--osul-radius); overflow: hidden; box-shadow: var(--osul-shadow); }
.osul-extra-section-media img { width: 100%; display: block; max-height: 560px; object-fit: cover; }
.osul-extra-section-content { max-width: 78ch; }
.osul-extra-section--centered .osul-extra-section-content,
.osul-extra-section--banner .osul-extra-section-content { margin-inline: auto; }

/* Per-section animation choices. */
html.osul-motion-js section[data-osul-section-animation="none"] [data-osul-reveal] { opacity:1!important; filter:none!important; transform:none!important; transition:none!important; }
html.osul-motion-js section[data-osul-section-animation="fade"] [data-osul-reveal] { --osul-reveal-x:0px!important; transform:translate3d(0,22px,0) scale(.99); }
html.osul-motion-js section[data-osul-section-animation="fade"] [data-osul-reveal].is-revealed { transform:translate3d(0,0,0) scale(1); }

@media (max-width: 1024px) {
  .osul-ul-grid, .osul-project-grid, .osul-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .osul-section-layout-about-values-left .osul-grid-2 > *,
  .osul-section-layout-join-card-right .osul-grid-2 > *,
  .osul-section-layout-map-list-left .osul-map-layout--split > * { order: initial; }
  .osul-ul-grid, .osul-project-grid, .osul-news-grid { grid-template-columns: 1fr; }
}


/* v0.8.0 accessibility refinements for the slider. */
@media (prefers-reduced-motion: reduce) {
  .osul-hero-slide,
  .osul-hero-slide.is-active { transition: none; }
  .osul-hero-slide .osul-art-photo { animation: none; transform: scale(1.025); }
}
