/*
 * PS9 visual refresh.
 * Kept in a separate cascade layer so the legacy theme can be maintained
 * independently while this file progressively modernises the public site.
 */
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  --ps9-ink: #203b3b;
  --ps9-muted: #58706f;
  --ps9-cream: #fffaf0;
  --ps9-paper: #ffffff;
  --ps9-teal: #1ca89b;
  --ps9-teal-dark: #117b73;
  --ps9-lime: #b9dd4b;
  --ps9-coral: #ef6f61;
  --ps9-yellow: #f9c74f;
  --ps9-sky: #dff5f2;
  --ps9-line: #d8e9e5;
  --ps9-shadow: 0 16px 40px rgb(38 78 72 / 13%);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ps9-ink);
  background: var(--ps9-cream);
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--ps9-teal-dark);
}

.layout-container,
#header,
#main {
  width: 100%;
}

.layout-container {
  position: relative;
  isolation: isolate;
}

.page-orbs {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-orbs__item {
  position: absolute;
  border-radius: 50%;
  border: 0;
  box-shadow: none;
  opacity: .82;
  transform: none;
}

.page-orbs__item--1 {
  top: 12%;
  right: 12%;
  left: auto;
  width: 92px;
  height: 92px;
  background: rgb(28 168 155 / 17%);
  --orb-x: 58px;
  --orb-y: 42px;
  --orb-duration: 8.5s;
}

.page-orbs__item--2 {
  top: 22%;
  right: auto;
  left: -30px;
  width: 178px;
  height: 178px;
  background: rgb(249 199 79 / 20%);
  --orb-x: -72px;
  --orb-y: 54px;
  --orb-duration: 10.5s;
  --orb-delay: -3s;
}

.page-orbs__item--3 {
  top: 34%;
  right: 24%;
  left: auto;
  width: 126px;
  height: 126px;
  background: rgb(239 111 97 / 15%);
  --orb-x: -48px;
  --orb-y: 68px;
  --orb-duration: 9.5s;
  --orb-delay: -6s;
}

.page-orbs__item--4 {
  top: 43%;
  right: auto;
  left: 11%;
  width: 74px;
  height: 74px;
  background: rgb(185 221 75 / 19%);
  --orb-x: 65px;
  --orb-y: -46px;
  --orb-duration: 8s;
  --orb-delay: -2s;
}

.page-orbs__item--5 {
  top: 53%;
  right: -52px;
  left: auto;
  width: 214px;
  height: 214px;
  background: rgb(28 168 155 / 16%);
  --orb-x: 76px;
  --orb-y: -58px;
  --orb-duration: 12s;
  --orb-delay: -8s;
}

.page-orbs__item--6 {
  top: 62%;
  right: auto;
  left: 37%;
  width: 142px;
  height: 142px;
  background: rgb(249 199 79 / 19%);
  --orb-x: -54px;
  --orb-y: 72px;
  --orb-duration: 10s;
  --orb-delay: -5s;
}

.page-orbs__item--7 {
  top: 71%;
  right: 10%;
  left: auto;
  width: 68px;
  height: 68px;
  background: rgb(239 111 97 / 16%);
  --orb-x: 70px;
  --orb-y: -52px;
  --orb-duration: 8.8s;
  --orb-delay: -1.5s;
}

.page-orbs__item--8 {
  top: 80%;
  right: auto;
  left: -58px;
  width: 188px;
  height: 188px;
  background: rgb(185 221 75 / 17%);
  --orb-x: -62px;
  --orb-y: -44px;
  --orb-duration: 11.5s;
  --orb-delay: -7s;
}

.page-orbs__item--9 {
  top: 88%;
  right: 31%;
  left: auto;
  width: 116px;
  height: 116px;
  background: rgb(28 168 155 / 16%);
  --orb-x: 52px;
  --orb-y: 64px;
  --orb-duration: 9.2s;
  --orb-delay: -4s;
}

.page-orbs__item--10 {
  top: 95%;
  right: auto;
  left: 19%;
  width: 96px;
  height: 96px;
  background: rgb(239 111 97 / 15%);
  --orb-x: -58px;
  --orb-y: -46px;
  --orb-duration: 8.3s;
  --orb-delay: -6.5s;
}

.container {
  max-width: 1480px;
  padding-inline: clamp(16px, 3.5vw, 56px);
}

/* Hero */
#header {
  position: relative;
  z-index: 20;
  overflow: visible;
  padding-top: 0;
  background: #dff5f2;
}

#header::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(12px, 1.8vw, 34px);
  background: var(--ps9-cream);
  clip-path: polygon(0 72%, 7% 36%, 15% 68%, 23% 30%, 32% 70%, 42% 35%, 51% 71%, 61% 28%, 70% 68%, 80% 33%, 90% 70%, 100% 35%, 100% 100%, 0 100%);
  pointer-events: none;
}

#header .container {
  max-width: none;
  padding: 0;
}

#header-region {
  position: relative;
  z-index: 3;
  min-height: 0;
  padding: 0;
  background: transparent;
}

#header-region > .region-header {
  display: grid;
  grid-template-rows: clamp(270px, 19vw, 380px) auto;
  align-items: center;
  justify-items: stretch;
}

.site-header--inner #header-region > .region-header {
  grid-template-rows: auto auto;
}

#block-basic-branding {
  position: relative;
  z-index: 3;
  align-self: center;
  justify-self: center;
  width: min(530px, 58vw);
  height: auto !important;
  margin: clamp(14px, 3vw, 52px) 20px;
  padding: clamp(16px, 2vw, 26px);
  isolation: isolate;
  border: 0;
  border-radius: 18px 18px 24px 18px;
  background: transparent !important;
  box-shadow: 10px 12px 0 rgb(32 59 59 / 18%), 0 24px 55px rgb(32 59 59 / 16%);
  transform: rotate(-0.45deg);
  animation: card-reveal 900ms cubic-bezier(.16, 1, .3, 1) both;
}

#block-basic-branding::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -5px;
  border-radius: 23px 23px 29px 23px;
  background: conic-gradient(from var(--border-angle, 0deg), var(--ps9-teal), var(--ps9-lime), var(--ps9-yellow), var(--ps9-coral), var(--ps9-teal));
  animation: border-turn 8s linear infinite;
}

#block-basic-branding::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 18px 18px 24px 18px;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 97%), rgb(255 255 255 / 91%)),
    radial-gradient(circle at 85% 15%, rgb(249 199 79 / 18%), transparent 34%);
  backdrop-filter: blur(8px);
}

.site-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 38px);
  color: var(--ps9-ink);
  text-decoration: none;
}

.site-emblem {
  display: block;
  width: clamp(58px, 5.5vw, 82px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-identity__name {
  display: flex;
  flex-direction: column;
  color: var(--ps9-ink);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(21px, 2.25vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-align: left;
}

.site-identity__name strong {
  color: var(--ps9-coral);
  font-size: 1em;
  font-weight: 800;
}

#block-bip {
  z-index: 5;
  top: 18px;
  right: clamp(18px, 3vw, 52px);
  margin: 0;
}

#block-bip a {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 20px rgb(32 59 59 / 20%);
}

#block-bip img {
  max-width: 31px;
  max-height: 35px;
}

/* Primary navigation – the Superfish output remains fully functional. */
#block-menuglowne-2 {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 70px) 22px;
  border-top: 1px solid rgb(255 255 255 / 45%);
  background: rgb(255 250 240 / 88%);
  box-shadow: 0 -10px 30px rgb(32 59 59 / 8%);
  backdrop-filter: blur(13px);
}

/* Lightweight decorative motion: no scripts and no impact on interaction. */
.hero-effects {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(270px, 19vw, 380px);
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(90deg, #b7ede8, #f3fbdf 45%, #caefea);
}

.site-header--front .hero-effects::before {
  background-size: cover;
  background-position: center 52%;
}

/* Front-page identity: untouched emblem with a separate typographic label. */
.site-header--front #block-basic-branding {
  width: auto;
  max-width: min(720px, 78vw);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  transform: none;
  animation: badge-reveal 700ms cubic-bezier(.16, 1, .3, 1) both;
  backdrop-filter: none;
}

.site-header--front #block-basic-branding::before,
.site-header--front #block-basic-branding::after {
  display: none;
}

.site-header--front .site-identity {
  gap: clamp(14px, 2vw, 24px);
  padding: 13px 20px 13px 16px;
  border-left: 6px solid var(--ps9-coral);
  border-radius: 4px 14px 14px 4px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 12px 30px rgb(32 59 59 / 14%);
  backdrop-filter: blur(9px);
}

.site-header--front .site-emblem {
  width: clamp(58px, 4.7vw, 74px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header--front .site-identity__name {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ps9-ink);
  background: transparent;
  box-shadow: none;
  font-size: clamp(27px, 2.55vw, 40px);
  line-height: 1.02;
  backdrop-filter: none;
}

.site-header--front .site-identity__title,
.site-header--front .site-identity__subtitle {
  display: block;
  white-space: nowrap;
}

.site-header--front .site-identity__subtitle {
  margin-top: .12em;
  font-size: 1em;
}

.site-header--front .site-identity__subtitle strong {
  color: var(--ps9-coral);
}

.site-header--inner .hero-effects {
  display: none;
}

.site-header--inner #block-basic-branding {
  width: auto;
  margin: 0 auto;
  padding: 12px 20px;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  animation: none;
}

.site-header--inner #block-basic-branding::before {
  display: none;
}

.site-header--inner #block-basic-branding::after {
  inset: 0;
  border-radius: 0;
  background: #fff;
  backdrop-filter: none;
}

.site-header--inner .site-emblem {
  width: 48px;
}

.site-header--inner .site-identity__name {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: .28em;
  font-size: clamp(21px, 1.7vw, 28px);
  line-height: 1;
}

.site-header--inner #block-menuglowne-2 {
  padding: 8px clamp(18px, 4vw, 70px);
  border: 0;
  background: var(--ps9-teal-dark);
  box-shadow: 0 7px 20px rgb(32 59 59 / 14%);
  backdrop-filter: none;
}

.site-header--inner #superfish-main {
  display: flex;
  width: min(1480px, 100%);
  flex-wrap: wrap;
  gap: 2px 4px;
}

.site-header--inner #superfish-main > li {
  flex: 1 1 auto;
}

.site-header--inner #block-menuglowne-2 a.sf-depth-1,
.site-header--inner #block-menuglowne-2 #superfish-main > li > span.nolink {
  min-height: 38px;
  padding: 8px 11px;
  border: 0 !important;
  border-radius: 7px;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-family: "Nunito", sans-serif;
  font-size: clamp(14px, .82vw, 15px);
  font-weight: 800;
  line-height: 1.18;
}

.site-header--inner #block-menuglowne-2 a.sf-depth-1:hover,
.site-header--inner #block-menuglowne-2 a.sf-depth-1:focus,
.site-header--inner #block-menuglowne-2 #superfish-main > li > span.nolink:hover {
  color: var(--ps9-ink);
  background: #dff7a1;
  box-shadow: none;
  transform: none;
}

.site-header--inner ~ #main > .container {
  padding-top: 18px;
}

.site-header--inner ~ #main h1.page-title,
.site-header--inner ~ #main #content-header h1 {
  margin-bottom: 25px;
  font-size: clamp(32px, 3vw, 44px);
}

/* Group news: turn the legacy Views rows into proper editorial cards. */
.view-aktualnosci-w-grupach > .view-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
  align-items: stretch;
}

.view-aktualnosci-w-grupach .aktualnosci {
  display: flex;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  padding: 0 0 24px;
  flex-direction: column;
  border: 1px solid var(--ps9-line) !important;
  border-radius: 18px;
  background: var(--ps9-paper);
  box-shadow: 0 12px 30px rgb(38 78 72 / 11%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.view-aktualnosci-w-grupach .aktualnosci:nth-child(3n + 2) {
  transform: none;
}

.view-aktualnosci-w-grupach .aktualnosci:nth-child(3n + 3) {
  transform: none;
}

.view-aktualnosci-w-grupach .aktualnosci:hover {
  z-index: 1;
  box-shadow: 0 18px 38px rgb(38 78 72 / 18%);
  transform: translateY(-5px);
}

.view-aktualnosci-w-grupach .views-field-field-image {
  order: -3;
}

.view-aktualnosci-w-grupach .aktualnosci-obraz {
  float: none;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  margin: 0;
  background:
    linear-gradient(135deg, rgb(28 168 155 / 18%), rgb(185 221 75 / 24%)),
    var(--ps9-sky);
}

.view-aktualnosci-w-grupach .aktualnosci-obraz a,
.view-aktualnosci-w-grupach .aktualnosci-obraz img {
  display: block;
  width: 100%;
  height: auto;
}

.view-aktualnosci-w-grupach .aktualnosci-obraz img {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.view-aktualnosci-w-grupach .views-field-created {
  order: -2;
  padding: 16px 20px 0;
}

.view-aktualnosci-w-grupach .datapublikacji {
  margin: 0;
  color: var(--ps9-muted);
  font-size: 13px;
  font-weight: 800;
}

.view-aktualnosci-w-grupach .views-field-title {
  order: -1;
  padding: 8px 22px 0;
}

.view-aktualnosci-w-grupach .views-field-title h2 {
  margin: 0;
  font-size: clamp(21px, 1.7vw, 27px);
}

.view-aktualnosci-w-grupach .views-field-title a {
  color: var(--ps9-ink);
  text-decoration: none;
}

.view-aktualnosci-w-grupach .views-field-body {
  overflow: hidden;
  padding: 12px 22px 0;
  color: var(--ps9-muted);
  font-size: 15px;
  line-height: 1.6;
}

.view-aktualnosci-w-grupach .aktualnosci-tresc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.view-aktualnosci-w-grupach .views-field-view-node {
  margin-top: auto;
  padding: 12px 20px 0;
}

.view-aktualnosci-w-grupach .czytajwiecej a {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ps9-teal-dark);
  font-size: 14px;
  font-weight: 800;
}

/* Gallery */
.view-galeriaps9 > .view-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.view-galeriaps9 .galeria-element {
  display: flex;
  overflow: hidden;
  width: auto;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  border: 1px solid var(--ps9-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(38 78 72 / 11%);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.view-galeriaps9 .galeria-element:hover {
  box-shadow: 0 18px 38px rgb(38 78 72 / 18%);
  transform: translateY(-5px);
}

.view-galeriaps9 .galeria-obraz {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ps9-sky);
  box-shadow: none;
}

.view-galeriaps9 .galeria-obraz a,
.view-galeriaps9 .galeria-obraz img {
  display: block;
  width: 100%;
  height: auto;
}

.view-galeriaps9 .galeria-obraz img {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.view-galeriaps9 .views-field-title {
  display: flex;
  min-height: 104px;
  align-items: center;
  padding: 16px 18px 18px;
}

.view-galeriaps9 .galeria-tytul {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.view-galeriaps9 .galeria-tytul a {
  color: var(--ps9-ink);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.view-galeriaps9 .galeria-tytul a:hover {
  color: var(--ps9-teal-dark);
}

.view-galeriaps9 .pager {
  margin-top: 34px;
}

.view-galeriaps9 .pager__items {
  display: flex;
  margin: 0;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.view-galeriaps9 .pager__item {
  display: inline-flex;
  min-height: 38px;
  margin: 0;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--ps9-line);
  border-radius: 9px;
  background: #fff;
  font-weight: 800;
  list-style: none;
}

.view-galeriaps9 .pager__item a {
  color: var(--ps9-teal-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

/* Full article gallery — Drupal field_image + Colorbox formatter. */
.node > .content > [class$="__image"] {
  display: grid;
  clear: both;
  margin-top: 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.node > .content > [class$="__image"] > div {
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ps9-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(38 78 72 / 12%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.node > .content > [class$="__image"] > div:hover {
  box-shadow: 0 16px 34px rgb(38 78 72 / 19%);
  transform: translateY(-4px);
}

.node > .content > [class$="__image"] .colorbox {
  display: block;
  width: 100%;
  height: auto;
}

.node > .content > [class$="__image"] .colorbox img {
  display: block;
  float: none;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Partners carousel */
#block-rotator-wspolpraca {
  position: relative;
  overflow: hidden;
  margin-top: clamp(26px, 3vw, 40px);
  padding: clamp(24px, 3vw, 34px) clamp(22px, 5vw, 70px) 24px;
  border: 1px solid var(--ps9-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 15%, rgb(249 199 79 / 18%) 0 90px, transparent 91px),
    radial-gradient(circle at 94% 88%, rgb(28 168 155 / 13%) 0 120px, transparent 121px),
    linear-gradient(135deg, #fffdf6, #f2fbf8);
  box-shadow: 0 18px 45px rgb(38 78 72 / 10%);
  text-align: center;
}

#block-rotator-wspolpraca h2 {
  display: inline-block;
  position: relative;
  margin: 0 0 22px;
  color: var(--ps9-ink);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 800;
}

#block-rotator-wspolpraca h2::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -8px;
  left: 12%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ps9-yellow), var(--ps9-coral), var(--ps9-teal));
}

#block-rotator-wspolpraca .flexslider {
  margin: 0;
  padding: 0 66px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#block-rotator-wspolpraca .flex-viewport {
  padding: 6px 2px 11px;
}

#block-rotator-wspolpraca .slides > li {
  padding: 0;
}

#block-rotator-wspolpraca .rotator-wspolpraca {
  display: flex;
  width: 100%;
  height: 124px;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--ps9-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(38 78 72 / 9%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#block-rotator-wspolpraca .rotator-wspolpraca:hover {
  box-shadow: 0 13px 28px rgb(38 78 72 / 16%);
  transform: translateY(-4px);
}

#block-rotator-wspolpraca .rotator-wspolpraca img {
  display: block;
  width: auto !important;
  max-width: 90%;
  height: auto;
  max-height: 88px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

#block-rotator-wspolpraca .flex-direction-nav a {
  display: grid;
  z-index: 20;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: transparent;
  background: var(--ps9-teal-dark);
  box-shadow: 0 7px 18px rgb(32 59 59 / 28%);
  font-size: 0;
  line-height: 1;
  opacity: 1 !important;
  text-indent: 0;
  text-shadow: none;
}

#block-rotator-wspolpraca .flex-direction-nav a::before {
  display: block;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  }

#block-rotator-wspolpraca .flex-direction-nav .flex-prev::before {
  content: "‹";
}

#block-rotator-wspolpraca .flex-direction-nav .flex-next::before {
  content: "›";
}

#block-rotator-wspolpraca .flex-direction-nav .flex-prev {
  left: 10px;
}

#block-rotator-wspolpraca .flex-direction-nav .flex-next {
  right: 10px;
}

#block-rotator-wspolpraca .flex-direction-nav a:hover,
#block-rotator-wspolpraca .flex-direction-nav a:focus {
  color: transparent;
  background: var(--ps9-focus-dark);
  transform: scale(1.08);
}

#block-rotator-wspolpraca .flex-pauseplay {
  margin-top: 5px;
  text-align: center;
}

#block-rotator-wspolpraca .flex-pauseplay a {
  display: inline-flex;
  position: relative;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--ps9-teal-dark);
  border-radius: 999px;
  color: var(--ps9-teal-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  text-decoration: none;
}

#block-rotator-wspolpraca .flex-pauseplay a::before {
  position: static;
  color: currentColor;
  font-size: 16px;
}

#block-rotator-wspolpraca .flex-pauseplay a:hover,
#block-rotator-wspolpraca .flex-pauseplay a:focus-visible {
  color: #fff;
  background: var(--ps9-teal-dark);
}

.hero-effects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%), rgb(255 255 255 / 2%)),
    url("../../images/ps9-header.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: scene-reveal 1.15s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-effects::after {
  content: none;
}

.hero-effects__glow {
  position: absolute;
  top: -24%;
  left: 50%;
  width: min(46vw, 740px);
  height: min(46vw, 740px);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 244 174 / 28%), rgb(255 255 255 / 9%) 36%, transparent 68%);
  opacity: .2;
  transform: translateX(-50%) scale(.96);
  animation: woodland-breathe 6.5s ease-in-out infinite alternate;
}

.hero-effects__leaf {
  position: absolute;
  z-index: 2;
  top: -24px;
  width: 19px;
  height: 11px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #d7ed61, #59a84d 72%);
  box-shadow: 0 3px 5px rgb(32 59 59 / 17%);
  opacity: 0;
  transform-origin: 70% 50%;
  animation: leaf-drift var(--leaf-duration, 9s) ease-in-out var(--leaf-delay, 0s) infinite;
}

.hero-effects__leaf::after {
  position: absolute;
  top: 5px;
  right: 2px;
  left: 2px;
  height: 1px;
  content: "";
  background: rgb(32 89 55 / 36%);
  transform: rotate(-18deg);
  transform-origin: center;
}

.hero-effects__leaf--1 {
  left: 8%;
  --leaf-drift: 74px;
  --leaf-drift-mid: 31px;
  --leaf-duration: 9.5s;
  --leaf-delay: .8s;
}

.hero-effects__leaf--2 {
  left: 82%;
  width: 15px;
  height: 9px;
  --leaf-drift: -92px;
  --leaf-drift-mid: -39px;
  --leaf-duration: 11.5s;
  --leaf-delay: 4.1s;
}

.hero-effects__leaf--3 {
  left: 93%;
  width: 22px;
  height: 12px;
  --leaf-drift: -58px;
  --leaf-drift-mid: -24px;
  --leaf-duration: 10.5s;
  --leaf-delay: 7s;
}

.hero-effects__leaf--4 {
  left: 22%;
  width: 13px;
  height: 8px;
  --leaf-drift: 54px;
  --leaf-drift-mid: 23px;
  --leaf-duration: 12.4s;
  --leaf-delay: 2.6s;
}

.hero-effects__leaf--5 {
  left: 35%;
  width: 17px;
  height: 10px;
  --leaf-drift: -66px;
  --leaf-drift-mid: -28px;
  --leaf-duration: 10.8s;
  --leaf-delay: 6.2s;
}

.hero-effects__leaf--6 {
  left: 64%;
  width: 12px;
  height: 7px;
  --leaf-drift: 82px;
  --leaf-drift-mid: 34px;
  --leaf-duration: 13.2s;
  --leaf-delay: 1.7s;
}

.hero-effects__leaf--7 {
  left: 73%;
  width: 20px;
  height: 11px;
  --leaf-drift: -48px;
  --leaf-drift-mid: -20px;
  --leaf-duration: 9.8s;
  --leaf-delay: 8.1s;
}

.hero-effects__leaf--8 {
  left: 48%;
  width: 11px;
  height: 7px;
  --leaf-drift: 44px;
  --leaf-drift-mid: 18px;
  --leaf-duration: 14s;
  --leaf-delay: 5.1s;
}

.hero-effects__leaf:nth-of-type(3n + 1) {
  background: linear-gradient(135deg, #f5d85b, #91bd42 72%);
}

.hero-effects__leaf:nth-of-type(3n + 2) {
  background: linear-gradient(135deg, #8fda67, #218d61 72%);
}

.hero-effects__spark {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border: 2px solid rgb(255 255 255 / 80%);
  border-radius: 50%;
  background: #ffd85b;
  box-shadow: 0 0 0 4px rgb(255 216 91 / 13%), 0 0 15px 5px rgb(255 242 161 / 45%);
  opacity: .3;
  animation: firefly-float var(--spark-duration, 4.5s) ease-in-out var(--spark-delay, 0s) infinite alternate;
}

.hero-effects__spark--1 {
  top: 31%;
  left: 13%;
  --spark-duration: 4.2s;
}

.hero-effects__spark--2 {
  top: 66%;
  left: 78%;
  width: 5px;
  height: 5px;
  --spark-duration: 5.4s;
  --spark-delay: 1.2s;
}

.hero-effects__spark--3 {
  top: 24%;
  left: 91%;
  width: 6px;
  height: 6px;
  --spark-duration: 4.8s;
  --spark-delay: 2.4s;
}

.hero-effects__spark--4 {
  top: 56%;
  left: 6%;
  width: 4px;
  height: 4px;
  --spark-duration: 5.8s;
  --spark-delay: .7s;
}

.hero-effects__spark--5 {
  top: 18%;
  left: 27%;
  width: 5px;
  height: 5px;
  --spark-duration: 4.1s;
  --spark-delay: 3.2s;
}

.hero-effects__spark--6 {
  top: 72%;
  left: 35%;
  width: 4px;
  height: 4px;
  --spark-duration: 5.1s;
  --spark-delay: 1.8s;
}

.hero-effects__spark--7 {
  top: 19%;
  left: 67%;
  width: 6px;
  height: 6px;
  --spark-duration: 4.7s;
  --spark-delay: 2.1s;
}

.hero-effects__spark--8 {
  top: 77%;
  left: 88%;
  width: 4px;
  height: 4px;
  --spark-duration: 5.6s;
  --spark-delay: 3.8s;
}

.hero-effects__spark--9 {
  top: 43%;
  left: 18%;
  width: 3px;
  height: 3px;
  --spark-duration: 4.4s;
  --spark-delay: 1.4s;
}

.hero-effects__spark--10 {
  top: 48%;
  left: 84%;
  width: 5px;
  height: 5px;
  --spark-duration: 6s;
  --spark-delay: 4.5s;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-turn {
  to { --border-angle: 360deg; }
}

@keyframes scene-reveal {
  from {
    opacity: 0;
    filter: saturate(.7) blur(8px);
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    filter: saturate(1) blur(0);
    transform: scale(1);
  }
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-1.5deg) scale(.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-.45deg) scale(1);
  }
}

@keyframes badge-reveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes woodland-breathe {
  from {
    opacity: .14;
    transform: translateX(-50%) scale(.94);
  }
  to {
    opacity: .28;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes leaf-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, -22px, 0) rotate(0deg);
  }
  12% {
    opacity: .82;
  }
  45% {
    transform: translate3d(var(--leaf-drift-mid), 132px, 0) rotate(210deg);
  }
  78% {
    opacity: .7;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--leaf-drift), 330px, 0) rotate(540deg);
  }
}

@keyframes firefly-float {
  0% {
    opacity: .18;
    transform: translate3d(-5px, 8px, 0) scale(.72);
  }
  48% {
    opacity: .9;
  }
  100% {
    opacity: .38;
    transform: translate3d(13px, -11px, 0) scale(1.12);
  }
}

#superfish-main {
  display: grid;
  float: none;
  width: min(1480px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px 12px;
}

#superfish-main > li {
  display: flex;
  float: none;
  width: auto !important;
  min-width: 0;
  max-width: none;
}

#block-menuglowne-2 a.sf-depth-1,
#block-menuglowne-2 #superfish-main > li > span.nolink {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 124px;
  margin: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 15px 12px 14px;
  border: 0;
  border-radius: 16px;
  color: var(--ps9-ink);
  background: var(--ps9-paper);
  box-shadow: 0 6px 0 #d5e6e2, 0 12px 22px rgb(38 78 72 / 9%);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

#block-menuglowne-2 #superfish-main > li > a > .fa-solid,
#block-menuglowne-2 #superfish-main > li > span.nolink > .fa-solid,
#block-menuglowne-2 #superfish-main > li > a > .svg-inline--fa,
#block-menuglowne-2 #superfish-main > li > span.nolink > .svg-inline--fa {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  font-size: 48px;
  line-height: 1;
  transition: transform 180ms ease;
}

#block-menuglowne-2 #superfish-main > li > a:hover > .fa-solid,
#block-menuglowne-2 #superfish-main > li > a:focus-visible > .fa-solid,
#block-menuglowne-2 #superfish-main > li > a:hover > .svg-inline--fa,
#block-menuglowne-2 #superfish-main > li > a:focus-visible > .svg-inline--fa,
#block-menuglowne-2 #superfish-main > li > span.nolink:hover > .fa-solid,
#block-menuglowne-2 #superfish-main > li > span.nolink:focus-visible > .fa-solid,
#block-menuglowne-2 #superfish-main > li > span.nolink:hover > .svg-inline--fa,
#block-menuglowne-2 #superfish-main > li > span.nolink:focus-visible > .svg-inline--fa {
  transform: translateY(-2px) scale(1.08);
}

#block-menuglowne-2 #superfish-main a.menuparent,
#block-menuglowne-2 #superfish-main span.nolink.menuparent {
  position: relative;
  padding-right: 34px;
  padding-left: 20px;
}

#block-menuglowne-2 #superfish-main .sf-sub-indicator {
  display: flex;
  position: absolute;
  top: 50%;
  right: 12px;
  width: 20px;
  height: 24px;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: var(--ps9-teal-dark);
  line-height: 1;
  transform: translateY(-50%);
}

#block-menuglowne-2 #superfish-main .sf-sub-indicator::after {
  display: block;
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

#block-menuglowne-2 #superfish-main ul .sf-sub-indicator {
  right: 13px;
}

#block-menuglowne-2 #superfish-main ul a.menuparent,
#block-menuglowne-2 #superfish-main ul span.nolink.menuparent {
  padding-right: 42px;
  padding-left: 14px;
}

#superfish-main > li:nth-child(4n + 1) > a,
#superfish-main > li:nth-child(4n + 1) > span {
  border-top: 7px solid var(--ps9-coral) !important;
}

#superfish-main > li:nth-child(4n + 1) > a > .fa-solid,
#superfish-main > li:nth-child(4n + 1) > a > .svg-inline--fa,
#superfish-main > li:nth-child(4n + 1) > span > .fa-solid,
#superfish-main > li:nth-child(4n + 1) > span > .svg-inline--fa {
  color: var(--ps9-coral);
}

#superfish-main > li:nth-child(4n + 2) > a,
#superfish-main > li:nth-child(4n + 2) > span {
  border-top: 7px solid var(--ps9-yellow) !important;
}

#superfish-main > li:nth-child(4n + 2) > a > .fa-solid,
#superfish-main > li:nth-child(4n + 2) > a > .svg-inline--fa,
#superfish-main > li:nth-child(4n + 2) > span > .fa-solid,
#superfish-main > li:nth-child(4n + 2) > span > .svg-inline--fa {
  color: var(--ps9-yellow);
}

#superfish-main > li:nth-child(4n + 3) > a,
#superfish-main > li:nth-child(4n + 3) > span {
  border-top: 7px solid var(--ps9-teal) !important;
}

#superfish-main > li:nth-child(4n + 3) > a > .fa-solid,
#superfish-main > li:nth-child(4n + 3) > a > .svg-inline--fa,
#superfish-main > li:nth-child(4n + 3) > span > .fa-solid,
#superfish-main > li:nth-child(4n + 3) > span > .svg-inline--fa {
  color: var(--ps9-teal);
}

#superfish-main > li:nth-child(4n) > a,
#superfish-main > li:nth-child(4n) > span {
  border-top: 7px solid var(--ps9-lime) !important;
}

#superfish-main > li:nth-child(4n) > a > .fa-solid,
#superfish-main > li:nth-child(4n) > a > .svg-inline--fa,
#superfish-main > li:nth-child(4n) > span > .fa-solid,
#superfish-main > li:nth-child(4n) > span > .svg-inline--fa {
  color: var(--ps9-lime);
}

#block-menuglowne-2 a.sf-depth-1:hover,
#block-menuglowne-2 a.sf-depth-1:focus,
#block-menuglowne-2 #superfish-main > li > span.nolink:hover {
  color: var(--ps9-teal-dark);
  background: #fff;
  box-shadow: 0 3px 0 #d5e6e2, 0 8px 18px rgb(38 78 72 / 14%);
  transform: translateY(3px);
}

#block-menuglowne-2 ul.sf-menu ul {
  min-width: 260px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ps9-shadow);
}

#block-menuglowne-2 .sf-style-white li,
#block-menuglowne-2 .sf-style-white li:hover,
#block-menuglowne-2 .sf-style-white li.sfHover {
  background: transparent !important;
}

#block-menuglowne-2 #superfish-main > li.sfHover > ul {
  top: calc(100% + 8px);
}

#block-menuglowne-2 #superfish-main > li > ul::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  width: 13px;
  height: 13px;
  border-radius: 3px 0 0;
  background: #fff;
  box-shadow: -3px -3px 7px rgb(38 78 72 / 5%);
  transform: rotate(45deg);
}

#block-menuglowne-2 ul.sf-menu ul li {
  position: relative;
  z-index: 1;
}

#block-menuglowne-2 a.sf-depth-2,
#block-menuglowne-2 a.sf-depth-3,
#block-menuglowne-2 a.sf-depth-4,
#block-menuglowne-2 a.sf-depth-5,
#block-menuglowne-2 ul.sf-menu ul span.nolink {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--ps9-ink);
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

#block-menuglowne-2 ul.sf-menu ul a:hover,
#block-menuglowne-2 ul.sf-menu ul span.nolink:hover {
  color: var(--ps9-teal-dark);
  background: var(--ps9-sky);
  box-shadow: none;
  transform: none;
}

/* Main content */
#main {
  position: relative;
  z-index: 1;
  padding: 0 0 70px;
}

#main > .container {
  padding-top: 26px;
}

#content {
  padding: 0;
  background: transparent;
  text-align: left;
}

#content-header {
  text-align: left;
}

h1,
h2,
h3,
.page-title {
  color: var(--ps9-ink);
  font-family: "Baloo 2", sans-serif;
  line-height: 1.18;
}

h1.page-title,
#content-header h1 {
  display: inline-block;
  position: relative;
  max-width: 100%;
  margin: 8px 0 34px;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: left;
}

h1.page-title::after,
#content-header h1::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: -10px;
  left: 0;
  width: min(100%, 420px);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ps9-yellow), var(--ps9-coral), var(--ps9-teal));
}

.views-exposed-form {
  width: max-content;
  max-width: 100%;
  margin: 0 0 30px;
  padding: 9px 12px;
  border: 1px solid var(--ps9-line);
  border-radius: 13px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 8px 24px rgb(38 78 72 / 7%);
}

.views-exposed-form .form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
}

.views-exposed-form .js-form-item,
.views-exposed-form .form-actions {
  margin: 0;
}

.views-exposed-form .js-form-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.views-exposed-form label {
  margin: 0;
  color: var(--ps9-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.views-exposed-form select,
.views-exposed-form input,
.views-exposed-form button {
  min-height: 34px;
  margin: 0;
}

select,
button,
input[type="submit"] {
  border-radius: 10px;
  font-family: "Nunito", sans-serif;
}

input[type="submit"],
.form-submit {
  border: 0;
  color: #fff;
  background: var(--ps9-teal-dark);
  font-weight: 800;
}

/* News grid */
.view-frontpage > .view-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
  align-items: stretch;
}

.view-frontpage .aktualnosci {
  display: flex;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  padding: 0 0 24px;
  flex-direction: column;
  border: 1px solid var(--ps9-line) !important;
  border-radius: 18px;
  background: var(--ps9-paper);
  box-shadow: 0 12px 30px rgb(38 78 72 / 11%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.view-frontpage .aktualnosci:nth-child(3n + 2) {
  transform: none;
}

.view-frontpage .aktualnosci:nth-child(3n + 3) {
  transform: none;
}

.view-frontpage .aktualnosci:hover {
  z-index: 1;
  box-shadow: 0 18px 38px rgb(38 78 72 / 18%);
  transform: translateY(-5px);
}

.view-frontpage .views-field-field-image {
  order: -3;
}

.view-frontpage .aktualnosci-obraz {
  float: none;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  margin: 0;
  background:
    linear-gradient(135deg, rgb(28 168 155 / 18%), rgb(185 221 75 / 24%)),
    var(--ps9-sky);
}

.view-frontpage .aktualnosci-obraz:empty::after {
  content: "PS9";
  display: grid;
  height: 100%;
  place-items: center;
  color: rgb(17 123 115 / 32%);
  font-family: "Baloo 2", sans-serif;
  font-size: 72px;
  font-weight: 800;
}

.view-frontpage .aktualnosci-obraz a,
.view-frontpage .aktualnosci-obraz img {
  display: block;
  width: 100%;
  height: auto;
}

.view-frontpage .aktualnosci-obraz img {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.view-frontpage .views-field-created {
  order: -2;
  padding: 18px 22px 0;
}

.view-frontpage .datapublikacji {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 7px;
  color: var(--ps9-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.view-frontpage .datapublikacji::before {
  content: "●";
  color: var(--ps9-coral);
  font-size: 12px;
}

.view-frontpage .views-field-title {
  order: -1;
  padding: 8px 22px 0;
}

.view-frontpage .aktualnosci-tytul {
  margin: 0;
  font-size: clamp(21px, 1.7vw, 27px);
}

.view-frontpage .aktualnosci-tytul a {
  color: var(--ps9-ink);
  font-weight: 800;
  text-decoration: none;
}

.view-frontpage .aktualnosci-tytul a:hover {
  color: var(--ps9-teal-dark);
}

.view-frontpage .views-field-body {
  overflow: hidden;
  padding: 12px 22px 0;
  color: var(--ps9-muted);
  font-size: 15px;
  line-height: 1.6;
}

.view-frontpage .aktualnosci-tresc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.view-frontpage .aktualnosci-tresc p {
  margin: 0 0 8px;
}

.view-frontpage .views-field-view-node {
  margin: auto 22px 0;
  padding-top: 15px;
}

.view-frontpage .views-field-view-node .czytajwiecej a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--ps9-teal-dark);
  box-shadow: 0 4px 0 rgb(9 89 83 / 24%);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.view-frontpage .views-field-view-node .czytajwiecej a::after {
  content: "→";
  transition: transform 160ms ease;
}

.view-frontpage .views-field-view-node .czytajwiecej a:hover,
.view-frontpage .views-field-view-node .czytajwiecej a:focus {
  color: #fff;
  background: var(--ps9-coral);
  box-shadow: 0 3px 0 rgb(177 68 58 / 22%);
  transform: translateY(1px);
}

.view-frontpage .views-field-view-node .czytajwiecej a:hover::after,
.view-frontpage .views-field-view-node .czytajwiecej a:focus::after {
  transform: translateX(4px);
}

.view-frontpage .pager {
  margin-top: 52px;
  margin-bottom: 0;
}

.view-frontpage .pager__items {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.view-frontpage .pager__item {
  display: inline-flex;
  min-height: 38px;
  margin: 0;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--ps9-line);
  border-radius: 9px;
  color: var(--ps9-muted);
  background: #fff;
  font-weight: 800;
  line-height: 1;
  list-style: none;
}

.view-frontpage .pager__item:has(a) {
  padding: 0;
  border: 0;
  background: transparent;
}

.view-frontpage .pager__item a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9px;
  color: #fff;
  background: var(--ps9-teal-dark);
  box-shadow: 0 4px 0 rgb(9 89 83 / 24%);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.view-frontpage .pager__item a:hover,
.view-frontpage .pager__item a:focus {
  color: #fff;
  background: var(--ps9-coral);
}

.pager {
  grid-column: 1 / -1;
}

/*
 * Shared Views components.
 * The fields themselves are configured in Drupal Views; this section only
 * gives news, group news and gallery listings one visual language.
 */
:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-created {
  padding: 18px 22px 0;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .datapublikacji {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 7px;
  color: var(--ps9-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .datapublikacji::before {
  content: "●";
  color: var(--ps9-coral);
  font-size: 12px;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node {
  margin: auto 22px 0;
  padding: 18px 0 0;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--ps9-teal-dark);
  box-shadow: 0 4px 0 rgb(9 89 83 / 24%);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a::after {
  content: "→";
  transition: transform 160ms ease;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a:hover,
:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a:focus-visible {
  color: #fff;
  background: var(--ps9-coral);
  box-shadow: 0 3px 0 rgb(177 68 58 / 22%);
  transform: translateY(1px);
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a:hover::after,
:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a:focus-visible::after {
  transform: translateX(4px);
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager {
  margin-top: 52px;
  margin-bottom: 0;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__items {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item {
  display: inline-flex;
  min-height: 38px;
  margin: 0;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--ps9-line);
  border-radius: 9px;
  color: var(--ps9-muted);
  background: #fff;
  font-weight: 800;
  line-height: 1;
  list-style: none;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item:has(a) {
  padding: 0;
  border: 0;
  background: transparent;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9px;
  color: #fff;
  background: var(--ps9-teal-dark);
  box-shadow: 0 4px 0 rgb(9 89 83 / 24%);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* Keep Drupal's visible pager label visible; only the screen-reader label is hidden. */
:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item a > span[aria-hidden="true"] {
  display: inline !important;
  position: static !important;
  overflow: visible !important;
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  color: inherit !important;
  font-size: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item a:hover,
:is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item a:focus-visible {
  color: #fff;
  background: var(--ps9-coral);
}

.view-galeriaps9 .galeria-element {
  padding-bottom: 22px;
}

.view-galeriaps9 .views-field-title {
  min-height: 0;
  align-items: flex-start;
  padding: 8px 22px 0;
}

/* Inner content and footer */
.node,
#content-area > .region > .block:not(#block-basic-content) {
  border-radius: 20px;
}

#footer {
  padding: 38px 0 24px;
  border: 0;
  color: #fff;
  background: var(--ps9-ink);
}

#footer a {
  color: #dff7a1;
}

/* Footer */
#footer {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  padding: 0;
  border-top: 0;
  background:
    radial-gradient(circle at 8% 12%, rgb(255 198 76 / 12%) 0 78px, transparent 80px),
    radial-gradient(circle at 92% 88%, rgb(33 169 156 / 14%) 0 110px, transparent 112px),
    linear-gradient(135deg, #173f3d 0%, #123532 100%);
}

#footer::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--ps9-yellow), var(--ps9-coral), var(--ps9-teal), var(--ps9-lime));
}

#footer .container {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  padding: 42px 28px 32px;
}

#footer .region-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
}

#footer #block-stopka,
#footer #block-zoum {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
}

.ps9-footer-info {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(420px, 1.5fr);
  gap: 24px 46px;
  align-items: end;
}

.ps9-footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.ps9-footer-brand__eyebrow {
  margin-bottom: 8px;
  color: #bce88e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ps9-footer-brand strong {
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 800;
}

.ps9-footer-brand__city {
  margin-top: 3px;
  color: #ffd06d;
  font-family: "Baloo 2", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.ps9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#footer .ps9-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: #f3fbf8;
  background: rgb(255 255 255 / 7%);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

#footer .ps9-footer-links a::after {
  margin-left: 8px;
  content: "→";
  color: #ffd06d;
}

#footer .ps9-footer-links a:hover,
#footer .ps9-footer-links a:focus-visible {
  transform: translateY(-2px);
  border-color: #bce88e;
  color: var(--ps9-ink);
  background: #dff7a1;
}

.ps9-footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 13%);
  color: rgb(255 255 255 / 68%);
  font-size: 13px;
}

#footer #block-zoum {
  border: 0;
  background: transparent;
}

#footer #block-zoum p {
  margin: 0;
}

.ps9-footer-service {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.ps9-footer-service__label {
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
}

#footer #block-zoum a {
  display: grid;
  width: 150px;
  min-height: 118px;
  padding: 16px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(0 0 0 / 18%);
}

#footer #block-zoum img {
  display: block;
  width: 100%;
  max-width: 112px;
  height: auto;
}

@media (max-width: 900px) {
  #footer .region-footer,
  .ps9-footer-info {
    grid-template-columns: 1fr;
  }

  #footer .region-footer {
    gap: 28px;
  }

  #footer #block-zoum {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  #footer {
    margin-top: 48px;
  }

  #footer .container {
    padding: 36px 20px 28px;
  }

  #footer #block-stopka,
  .ps9-footer-brand {
    text-align: center;
  }

  .ps9-footer-links {
    flex-direction: column;
  }

  #footer .ps9-footer-links a {
    justify-content: space-between;
    border-radius: 13px;
  }

  .ps9-footer-copy {
    text-align: center;
  }

  #footer #block-zoum {
    justify-self: center;
  }

  #block-rotator-wspolpraca {
    padding-inline: 12px;
  }

  #block-rotator-wspolpraca .flexslider {
    padding-inline: 45px;
  }

  #block-rotator-wspolpraca .flex-direction-nav a {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  #block-rotator-wspolpraca .flex-direction-nav a::before {
    font-size: 29px;
  }
}

@media (max-width: 1100px) {
  #header-region > .region-header {
    grid-template-rows: clamp(250px, 28vw, 310px) auto;
  }

  .site-header--front .hero-effects::before {
    background-image:
      linear-gradient(rgb(255 255 255 / 2%), rgb(255 255 255 / 2%)),
      url("../../images/ps9-header.jpg");
    background-position: center 50%;
    background-size: cover;
  }

  .site-header--inner #header-region > .region-header {
    grid-template-rows: auto auto;
  }

  .view-aktualnosci-w-grupach > .view-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-galeriaps9 > .view-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .node > .content > [class$="__image"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #block-menuglowne-2 {
    padding-inline: 24px;
  }

  #superfish-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #block-menuglowne-2 a.sf-depth-1,
  #block-menuglowne-2 #superfish-main > li > span.nolink {
    min-height: 54px;
    border-top-width: 5px !important;
  }

  .view-frontpage > .view-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-inline: 16px;
  }

  #header {
    padding-top: 0;
  }

  .site-header--front .hero-effects::before {
    /*
     * The desktop artwork is an ultra-wide 3460 × 640 panorama. On a
     * portrait viewport a centred cover crop cut through the running child.
     * Keep the mobile crop on the intentionally quiet meadow instead.
     */
    background-position: 41% 50%;
    background-size: auto 100%;
  }

  #header-region > .region-header {
    grid-template-rows: clamp(190px, 46vw, 230px) auto;
  }

  .site-header--inner #header-region > .region-header {
    grid-template-rows: auto auto;
  }

  #block-basic-branding {
    width: min(330px, 78vw);
    margin: 10px auto;
    padding: clamp(8px, 2vw, 13px);
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 5px 6px 0 rgb(32 59 59 / 17%);
  }

  .site-header--front #block-basic-branding {
    width: auto;
    max-width: min(310px, 88vw);
    padding: 0;
  }

  .site-header--front .site-identity {
    flex-direction: column;
    gap: 3px;
    padding: 9px 15px 10px;
    border-left-width: 4px;
    border-radius: 6px 10px 10px 6px;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 10px 24px rgb(32 59 59 / 15%);
    backdrop-filter: blur(7px);
  }

  .site-header--front .site-emblem {
    width: 42px;
    padding: 0;
  }

  .site-header--front .site-identity__name {
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.05;
    text-align: center;
    backdrop-filter: none;
  }

  .site-logo img {
    max-height: 130px;
  }

  .site-identity {
    gap: 15px;
  }

  .site-emblem {
    width: clamp(34px, 10vw, 54px);
  }

  .site-identity__name {
    font-size: clamp(14px, 4.4vw, 22px);
  }

  .hero-effects {
    height: clamp(190px, 46vw, 230px);
  }

  #block-bip {
    top: 10px;
    right: 10px;
  }

  #block-bip a {
    width: 44px;
    height: 44px;
  }

  #block-bip img {
    max-width: 27px;
    max-height: 31px;
  }

  .site-header--inner .hero-effects {
    display: none;
  }

  .site-header--inner #block-basic-branding {
    width: auto;
    padding: 9px 12px;
  }

  .site-header--inner .site-identity__name {
    font-size: clamp(14px, 4vw, 19px);
  }

  .site-header--inner .site-emblem {
    width: 38px;
  }

  .view-aktualnosci-w-grupach > .view-content {
    grid-template-columns: 1fr;
  }

  .view-galeriaps9 > .view-content {
    grid-template-columns: 1fr;
  }

  .node > .content > [class$="__image"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #block-menuglowne-2 {
    padding: 16px;
  }

  #block-menuglowne-2 .sf-accordion-toggle a {
    display: flex;
    float: none;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--ps9-teal-dark);
    box-shadow: 0 4px 0 rgb(7 95 89 / 18%);
    font-family: "Baloo 2", sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
  }

  #superfish-main {
    display: none;
  }

  #superfish-main-accordion {
    max-height: 68vh;
    overflow-y: auto;
    margin: 12px 0 0;
    padding: 0;
    border: 1px solid var(--ps9-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgb(32 59 59 / 10%);
  }

  #superfish-main-accordion li,
  #superfish-main-accordion li:hover,
  #superfish-main-accordion li.sfHover,
  #superfish-main-accordion li.sf-expanded {
    position: relative;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff !important;
  }

  #superfish-main-accordion a,
  #superfish-main-accordion span.nolink {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    align-items: center;
    justify-content: flex-start;
    padding: 11px 42px 11px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ps9-line) !important;
    border-radius: 0 !important;
    color: var(--ps9-ink) !important;
    background: #fff;
    box-shadow: none !important;
    transform: none !important;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
  }

  #block-menuglowne-2 #superfish-main-accordion > li > a,
  #block-menuglowne-2 #superfish-main-accordion > li > span.nolink {
    display: flex;
    width: 100%;
    min-height: 54px;
    margin: 0 !important;
    align-items: center;
    justify-content: flex-start !important;
    padding: 12px 46px 12px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ps9-line) !important;
    border-radius: 0 !important;
    color: var(--ps9-ink) !important;
    background: #fff !important;
    box-shadow: none !important;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left !important;
    transform: none !important;
  }

  #block-menuglowne-2 #superfish-main-accordion > li > a > .fa-solid,
  #block-menuglowne-2 #superfish-main-accordion > li > span.nolink > .fa-solid,
  #block-menuglowne-2 #superfish-main-accordion > li > a > .svg-inline--fa,
  #block-menuglowne-2 #superfish-main-accordion > li > span.nolink > .svg-inline--fa {
    width: 1.15em;
    height: 1.15em;
    margin-right: 12px;
    flex: 0 0 1.15em;
    color: var(--ps9-teal-dark);
    font-size: 22px;
  }

  #superfish-main-accordion > li:last-child > a,
  #superfish-main-accordion > li:last-child > span.nolink {
    border-bottom: 0 !important;
  }

  #superfish-main-accordion a:hover,
  #superfish-main-accordion a:focus-visible,
  #superfish-main-accordion span.nolink:hover,
  #superfish-main-accordion li.sf-expanded > a,
  #superfish-main-accordion li.sf-expanded > span.nolink {
    color: var(--ps9-teal-dark) !important;
    background: #eef9f6 !important;
  }

  #block-menuglowne-2 #superfish-main-accordion > li > a:hover,
  #block-menuglowne-2 #superfish-main-accordion > li > a:focus-visible,
  #block-menuglowne-2 #superfish-main-accordion > li.sf-expanded > a,
  #block-menuglowne-2 #superfish-main-accordion > li.sf-expanded > span.nolink {
    color: var(--ps9-teal-dark) !important;
    background: #eef9f6 !important;
  }

  #superfish-main-accordion .sf-sub-indicator,
  #superfish-main-accordion .sf-accordion-button {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 24px;
    height: 24px;
    margin: 0;
    color: var(--ps9-teal-dark);
    font-size: 17px;
    line-height: 24px;
    text-align: center;
    transform: translateY(-50%);
  }

  #superfish-main-accordion ul {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: #f7fbfa;
    box-shadow: none;
  }

  #superfish-main-accordion ul a,
  #superfish-main-accordion ul span.nolink {
    min-height: 44px;
    padding-left: 28px !important;
    background: #f7fbfa;
    font-size: 15px;
    font-weight: 700;
  }

  #superfish-main-accordion ul ul a,
  #superfish-main-accordion ul ul span.nolink {
    padding-left: 40px !important;
  }

  #main > .container {
    padding-top: 26px;
  }

  .view-frontpage > .view-content {
    grid-template-columns: 1fr;
  }

  .view-frontpage .aktualnosci,
  .view-frontpage .aktualnosci:nth-child(n),
  .view-aktualnosci-w-grupach .aktualnosci,
  .view-aktualnosci-w-grupach .aktualnosci:nth-child(n) {
    transform: none;
  }

  .view-frontpage .aktualnosci-obraz {
    height: auto;
  }

  .views-exposed-form {
    width: max-content;
    max-width: 100%;
  }
}

/* Accessibility: contrast, keyboard focus and readable content links */
:root {
  --ps9-coral-aa: #b74439;
  --ps9-focus-dark: #075f59;
  --ps9-link: #117b73;
  --ps9-link-hover: #075f59;
}

/* Legacy Basic used low-contrast orange and removed link underlines. */
#main a {
  color: var(--ps9-link);
}

#main .field-content a,
#main .quickedit-field a {
  color: var(--ps9-link);
}

#main .view .views-field-body a,
#main .view .aktualnosci-tresc a,
#main .view .field-content p a {
  color: var(--ps9-link);
  text-decoration: underline !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 0.11em !important;
  text-underline-offset: 0.18em;
}

#main .view .views-field-body a:hover,
#main .view .views-field-body a:focus-visible,
#main .view .aktualnosci-tresc a:hover,
#main .view .aktualnosci-tresc a:focus-visible,
#main .view .field-content p a:hover,
#main .view .field-content p a:focus-visible {
  color: var(--ps9-link-hover);
  text-decoration-thickness: 0.16em !important;
}

#main .text-formatted a:not(.button),
#main .field--type-text-long a:not(.button),
#main .field--name-body a:not(.button),
#main .quickedit-field a:not(.button) {
  color: var(--ps9-link);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.18em;
}

#main .text-formatted a:not(.button):hover,
#main .text-formatted a:not(.button):focus-visible,
#main .field--type-text-long a:not(.button):hover,
#main .field--type-text-long a:not(.button):focus-visible,
#main .field--name-body a:not(.button):hover,
#main .field--name-body a:not(.button):focus-visible,
#main .quickedit-field a:not(.button):hover,
#main .quickedit-field a:not(.button):focus-visible {
  color: var(--ps9-link-hover);
  text-decoration-thickness: 0.16em;
}

/* Linked card titles and text links share the same semantic accent colour. */
#main .view .views-field-title a,
#main .view-frontpage .aktualnosci-tytul a,
#main .view-aktualnosci-w-grupach .aktualnosci-tytul a {
  color: var(--ps9-link);
  text-decoration: none;
}

#main .view .views-field-title a:hover,
#main .view .views-field-title a:focus-visible,
#main .view-frontpage .aktualnosci-tytul a:hover,
#main .view-frontpage .aktualnosci-tytul a:focus-visible,
#main .view-aktualnosci-w-grupach .aktualnosci-tytul a:hover,
#main .view-aktualnosci-w-grupach .aktualnosci-tytul a:focus-visible {
  color: var(--ps9-link-hover);
}

/* Site-wide link hierarchy: titles are clean; links inside editorial text are underlined. */
#main :is(h1, h2, h3, h4, h5, h6) a,
#main .views-field-title a,
#main .tytul a,
#main .aktualnosci-tytul a,
#main .galeria-tytul a {
  text-decoration: none !important;
}

#main .text-formatted :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button),
#main .field--type-text-long :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button),
#main .field--name-body :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button),
#main .views-field-body :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button),
#main .aktualnosci-tresc :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button),
#main .field-content :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button) {
  color: var(--ps9-link);
  text-decoration: underline !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 0.11em !important;
  text-underline-offset: 0.18em;
}

#main .text-formatted :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):hover,
#main .text-formatted :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):focus-visible,
#main .field--type-text-long :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):hover,
#main .field--type-text-long :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):focus-visible,
#main .field--name-body :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):hover,
#main .field--name-body :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):focus-visible,
#main .views-field-body :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):hover,
#main .views-field-body :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):focus-visible,
#main .aktualnosci-tresc :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):hover,
#main .aktualnosci-tresc :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):focus-visible,
#main .field-content :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):hover,
#main .field-content :is(p, li, dd, blockquote, figcaption, td, th) a:not(.button):focus-visible {
  color: var(--ps9-link-hover);
  text-decoration-thickness: 0.16em !important;
}

/* File fields are rendered outside the editorial body by Drupal. */
#main .file a,
#main [class$="__plik"] a,
#main .field--type-file a,
#main a[type^="application/"] {
  color: var(--ps9-link);
  text-decoration: underline !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 0.11em !important;
  text-underline-offset: 0.18em;
}

#main .file a:hover,
#main .file a:focus-visible,
#main [class$="__plik"] a:hover,
#main [class$="__plik"] a:focus-visible,
#main .field--type-file a:hover,
#main .field--type-file a:focus-visible,
#main a[type^="application/"]:hover,
#main a[type^="application/"]:focus-visible {
  color: var(--ps9-link-hover);
  text-decoration-thickness: 0.16em !important;
}

/* A two-colour ring remains visible on both light and dark surfaces. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ps9-focus-dark) !important;
}

:where(input, select, textarea):focus {
  border-color: var(--ps9-focus-dark);
}

input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
input:not([type]),
textarea,
select {
  border-color: var(--ps9-muted);
  color: var(--ps9-ink);
  background-color: #fff;
}

button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border-color: var(--ps9-teal-dark);
  color: #fff;
  background-color: var(--ps9-teal-dark);
  font-weight: 800;
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: var(--ps9-focus-dark);
  color: #fff;
  background-color: var(--ps9-focus-dark);
}

/* Coral remains an accent colour; dark coral is used wherever white text sits on it. */
.view-frontpage .views-field-view-node .czytajwiecej a:hover,
.view-frontpage .views-field-view-node .czytajwiecej a:focus,
.view-frontpage .pager__item a:hover,
.view-frontpage .pager__item a:focus,
#block-rotator-wspolpraca .flex-direction-nav a:hover,
#block-rotator-wspolpraca .flex-direction-nav a:focus {
  color: #fff;
  background: var(--ps9-link-hover);
}

#main .node-readmore a,
#main .czytajwiecej a,
#main :is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a,
#main :is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item a {
  border-color: var(--ps9-link);
  color: #fff;
  background: var(--ps9-link);
}

#main .node-readmore a:hover,
#main .node-readmore a:focus-visible,
#main .czytajwiecej a:hover,
#main .czytajwiecej a:focus-visible,
#main :is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a:hover,
#main :is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a:focus-visible,
#main :is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item a:hover,
#main :is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item a:focus-visible {
  border-color: var(--ps9-link-hover);
  color: #fff;
  background: var(--ps9-link-hover);
  box-shadow: 0 3px 0 rgb(7 95 89 / 28%);
}

#main .node-readmore a:focus-visible,
#main .czytajwiecej a:focus-visible,
#main :is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .views-field-view-node .czytajwiecej a:focus-visible,
#main :is(.view-frontpage, .view-aktualnosci-w-grupach, .view-galeriaps9) .pager__item a:focus-visible {
  box-shadow: 0 0 0 6px var(--ps9-focus-dark) !important;
}

/* Drupal system messages must remain readable regardless of their type. */
.messages {
  border-color: #6b7473;
  color: var(--ps9-ink);
  background: #eef1ef;
}

.messages--warning {
  border-color: #795f00;
  color: #332700;
  background: #f6d96a;
}

.messages--error {
  border-color: #7f251d;
  color: #fff;
  background: #a53728;
}

.messages--status {
  border-color: #365d1d;
  color: #1f3512;
  background: #bce88e;
}

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

  #block-basic-branding,
  .hero-effects::before,
  .hero-effects::after,
  .hero-effects__glow,
  .hero-effects__leaf,
  .hero-effects__spark,
  .page-orbs__item {
    animation: none !important;
  }
}
