/* SAMOsedno — versioned nav overlay (see menu-over-hero-critical.ts). Served from /public. */
[data-template="motyw-1"] {
  --m1-band-pad-y: clamp(2.25rem, 4vw, 3.25rem);
}

@media (min-width: 1024px) {
  /*
   * Motyw 1 + hero: hide nav until free-positioned (data-nav-free).
   * Prevents hang-under-header → jump-to-hero flash on refresh.
   */
  [data-template="motyw-1"]:has(.gh-hero) .gh-nav-bar:not([data-nav-free="true"]) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /*
   * Motyw 1 + hero: NEVER reserve the 4rem color-tabs hang gutter.
   * That gutter was applied first paint, then removed when JS set data-nav-layout
   * — causing the header to grow then shrink on refresh.
   */
  [data-template="motyw-1"]:has(.gh-hero) .gh-header,
  [data-template="motyw-1"]:has(.gh-hero) .gh-header[data-nav-style="color-tabs"],
  body:has(.gh-hero) [data-template="motyw-1"] .gh-header,
  body:has(.gh-hero) [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] {
    padding-bottom: 0 !important;
  }

  /* Color-tabs: hang menu under logo the same on home AND inner pages (news, etc.). */
  .gh-header[data-nav-style="color-tabs"] {
    position: relative !important;
    overflow: visible !important;
    padding-bottom: 4rem !important;
  }

  .gh-header[data-nav-style="color-tabs"] .gh-nav-bar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 2 !important;
  }

  /* Motyw 1: rounded pill sized to menu labels (bar itself is transparent) */
  [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] .gh-nav-bar {
    left: var(--ds-container-pad, 1.25rem) !important;
    right: auto !important;
    width: max-content !important;
    max-width: min(var(--ds-rail-max, 75rem), calc(100% - 2 * var(--ds-container-pad, 1.25rem))) !important;
    margin-inline: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] .gh-nav-bar__inner {
    padding-inline: 0 !important;
    max-width: none !important;
    width: max-content !important;
  }

  [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] .gh-nav,
  [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] .gh-nav__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
    border-radius: 999px !important;
    overflow: visible !important;
    filter: drop-shadow(0 8px 18px rgb(0 0 0 / 22%)) !important;
    box-shadow: none !important;
  }

  [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] .gh-nav__item[data-depth="1"] {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] .gh-nav__item[data-depth="1"] > .gh-nav-link {
    width: auto !important;
    white-space: nowrap !important;
  }

  [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] .gh-nav__item[data-depth="1"]:first-child > .gh-nav-link {
    border-top-left-radius: 999px !important;
    border-bottom-left-radius: 999px !important;
  }

  [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] .gh-nav__item[data-depth="1"]:last-child > .gh-nav-link {
    border-top-right-radius: 999px !important;
    border-bottom-right-radius: 999px !important;
  }

  [data-template="motyw-1"][data-nav-layout="free"] .gh-header {
    padding-bottom: 0 !important;
  }

  [data-template="motyw-1"][data-nav-layout="free"] .gh-header[data-nav-style="color-tabs"] {
    padding-bottom: 0 !important;
  }

  /* Hang clear + same visible gap as crumbs→content and sidebar↔grid. */
  body:not(:has(.gh-hero)) .news-archive-shell .gh-header[data-nav-style="color-tabs"] + .news-archive-crumbs {
    padding-top: calc(2.25rem + var(--news-archive-gap, 1.25rem)) !important;
  }

  body:not(:has(.gh-hero)) .map-page-shell .gh-header[data-nav-style="color-tabs"] + .map-page-crumbs {
    padding-top: 1.15rem !important; /* hang clear only — chrome gap is .map-page padding-top */
  }

  body:not(:has(.gh-hero)) .gh-header[data-nav-style="color-tabs"] + *:not(.news-archive-crumbs):not(.map-page-crumbs) {
    padding-top: 2.25rem !important;
  }

  body:has(.gh-hero) [data-section]:has(.gh-header),
  body:has(.gh-hero) [data-row]:has(.gh-header),
  body:has(.gh-hero) [data-column]:has(.gh-header),
  body:has(.gh-hero) [data-widget-instance]:has(.gh-header) {
    position: relative !important;
    z-index: 40 !important;
    overflow: visible !important;
  }

  body:has(.gh-hero) [data-row]:has(.gh-hero),
  body:has(.gh-hero) [data-column]:has(.gh-hero),
  body:has(.gh-hero) [data-widget-instance]:has(.gh-hero) {
    position: relative !important;
    z-index: 1 !important;
  }

  body:has(.gh-hero) .gh-header {
    overflow: visible !important;
    padding-bottom: 4rem !important;
    pointer-events: none !important;
  }

  /* Motyw 1 + hero: kill hang gutter after the generic 4rem rule (no grow→shrink). */
  [data-template="motyw-1"]:has(.gh-hero) .gh-header,
  [data-template="motyw-1"]:has(.gh-hero) .gh-header[data-nav-style="color-tabs"],
  body:has(.gh-hero) [data-template="motyw-1"] .gh-header,
  body:has(.gh-hero) [data-template="motyw-1"] .gh-header[data-nav-style="color-tabs"] {
    padding-bottom: 0 !important;
  }

  body:has(.gh-hero) .gh-header a,
  body:has(.gh-hero) .gh-header button,
  body:has(.gh-hero) .gh-header input,
  body:has(.gh-hero) .gh-header select,
  body:has(.gh-hero) .gh-header textarea,
  body:has(.gh-hero) .gh-header label,
  body:has(.gh-hero) .gh-header [role="button"],
  body:has(.gh-hero) .gh-header .gh-brand-row,
  body:has(.gh-hero) .gh-header .gh-brand,
  body:has(.gh-hero) .gh-header [data-gh-brand],
  body:has(.gh-hero) .gh-nav-bar {
    pointer-events: auto !important;
  }

  body:has(.gh-hero) .gh-header .gh-brand,
  body:has(.gh-hero) .gh-header [data-gh-brand] {
    position: relative !important;
    z-index: 3 !important;
  }

  body:has(.gh-hero) .gh-nav-bar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 2 !important;
  }
}

.gh-header[data-nav-style="color-tabs"] .gh-nav-bar {
  background: transparent !important;
  padding: 0 !important;
}

.gh-header[data-nav-style="color-tabs"] .gh-nav__list {
  display: grid !important;
  grid-template-columns: repeat(var(--gh-nav-cols, 4), minmax(0, 1fr)) !important;
  width: 100% !important;
}

.gh-header[data-nav-style="color-tabs"] .gh-nav__item[data-depth="1"] > .gh-nav-link {
  width: 100% !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  min-height: 4rem !important;
  padding-block: 0.7rem !important;
  padding-inline: 0.75rem !important;
  font-size: calc(1.2rem * var(--a11y-font-scale, 1)) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  background: var(--gh-nav-item-bg, var(--ds-color-primary)) !important;
  color: var(--gh-nav-item-fg, var(--gh-nav-bar-fg, var(--ds-color-on-primary))) !important;
}

.gh-header[data-nav-style="color-tabs"] .gh-nav__item[data-depth="1"] > .gh-nav-link[data-has-icon="true"] {
  justify-content: flex-start !important;
  padding-inline: 1rem !important;
}

/* Submenu links must never inherit color-tab tile chrome */
.gh-header[data-nav-style="color-tabs"] .gh-dropdown .gh-nav-link {
  width: auto !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
  padding: 0.55rem 0.15rem !important;
  background: transparent !important;
  color: #1a2744 !important;
  font-size: calc(0.95rem * var(--a11y-font-scale, 1)) !important;
}

/* —— News archive cards (cache-busted critical) —— */
.news-archive-card a.news-archive-card__hit,
.news-archive-card a.news-archive-card__hit:hover,
.news-archive-card a.news-archive-card__hit:focus,
.news-archive-card a.news-archive-card__hit:hover *,
.news-archive-card a.news-archive-card__hit * {
  text-decoration: none !important;
}

.news-archive-card__excerpt {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  overflow: hidden !important;
  max-height: calc(1.55em * 3) !important;
  text-align: justify !important;
  font-size: calc(1.05rem * var(--a11y-font-scale, 1)) !important;
}

.news-archive-card__title {
  font-size: calc(1.42rem * var(--a11y-font-scale, 1)) !important;
}

.news-archive-card__separator {
  position: relative !important;
  width: 100% !important;
  height: 2px !important;
  background: var(--news-archive-separator, #d8dde6) !important;
  overflow: hidden !important;
}

.news-archive-card__separator::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 50% !important;
  width: 0 !important;
  background: var(--news-archive-separator-hover, var(--ds-color-primary, #1e4b8f)) !important;
  transform: translateX(-50%) !important;
  transition: width 0.35s ease !important;
}

.news-archive-card:hover .news-archive-card__separator::after,
.news-archive-card:focus-within .news-archive-card__separator::after {
  width: 100% !important;
}

.news-archive-sidebar__link {
  font-size: calc(1.05rem * var(--a11y-font-scale, 1)) !important;
  font-weight: 400 !important;
  min-height: 3.35rem !important;
}

.news-archive-sidebar__heading {
  font-size: calc(1.05rem * var(--a11y-font-scale, 1)) !important;
}

.news-archive-sidebar__chevron {
  font-size: inherit !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  line-height: 0 !important;
  overflow: visible !important;
}

.news-archive-sidebar,
.news-archive-sidebar__list,
.news-archive-sidebar__list > li,
.news-archive-sidebar__link {
  overflow: visible !important;
}

.news-archive-card__body {
  gap: 0.85rem !important;
  padding: 1.15rem 1.35rem 0.45rem !important;
}

.news-archive-card__footer {
  padding: 1.05rem 1.35rem 1.45rem !important;
}

.news-archive-card__separator {
  margin: 0.15rem 0 0.55rem !important;
}

.gh-brand-row__inner > .gh-brand,
.gh-brand-row__inner > [data-gh-brand] {
  flex: 0 1 auto !important;
  width: fit-content !important;
  max-width: 100% !important;
}

.gh-brand,
.gh-brand--graphic {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
}

.news-archive-card__more,
.gh-news-list__cta,
.gh-gallery__cta,
.gh-events__cta,
.gh-calendar__cta {
  border-radius: 0.25rem !important;
}

.news-archive-card__more {
  min-width: 8.75rem !important;
  min-height: 2.7rem !important;
  padding: 0.6rem 1.55rem !important;
  font-size: calc(0.88rem * var(--a11y-font-scale, 1)) !important;
}

/* Headed events band: keep blue/gray under calendar (same as untitled .ds-section pad) */
.gh-page-section[data-section-heading="true"] [data-block="events"],
.gh-page-section[data-section-heading="true"] [data-block="calendar"],
.gh-page-section[data-section-heading="true"] [data-block="events_posters"],
.gh-page-section[data-section-heading="true"] [data-block="events"].ds-section,
.gh-page-section[data-section-heading="true"] [data-block="calendar"].ds-section,
.gh-page-section[data-section-heading="true"] [data-block="events_posters"].ds-section {
  padding-top: 0 !important;
  padding-bottom: var(--ds-space-section, 4rem) !important;
}

/* News archive pagination */
.news-archive-pagination__list {
  gap: 0.5rem !important;
}

.news-archive-pagination__btn {
  box-sizing: border-box !important;
  min-width: 3rem !important;
  width: 3rem !important;
  height: 3rem !important;
  font-size: calc(1rem * var(--a11y-font-scale, 1)) !important;
  font-weight: 700 !important;
}

.news-archive-pagination__arrow svg {
  width: 1.2rem !important;
  height: 1.2rem !important;
}

.news-archive-pagination__ellipsis {
  min-width: 1.5rem !important;
  font-size: calc(1.25rem * var(--a11y-font-scale, 1)) !important;
}

@media (min-width: 768px) {
  .news-archive-pagination__btn {
    min-width: 3.35rem !important;
    width: 3.35rem !important;
    height: 3.35rem !important;
    font-size: calc(1.1rem * var(--a11y-font-scale, 1)) !important;
  }

  .news-archive-pagination__arrow svg {
    width: 1.35rem !important;
    height: 1.35rem !important;
  }
}

/* Motyw 1 — tall hero (inline/versioned; bypasses cached /_next CSS chunks) */
[data-template="motyw-1"] .gh-hero,
[data-template="motyw-1"] .gh-hero[data-height],
[data-template="motyw-1"] .gh-hero[data-height="small"],
[data-template="motyw-1"] .gh-hero[data-height="medium"],
[data-template="motyw-1"] .gh-hero[data-height="large"],
[data-template="motyw-1"] .gh-hero[data-height="fullscreen"] {
  min-height: 92vh !important;
  min-height: 92svh !important;
}

@media (min-width: 768px) {
  [data-template="motyw-1"] .gh-hero,
  [data-template="motyw-1"] .gh-hero[data-height],
  [data-template="motyw-1"] .gh-hero[data-height="small"],
  [data-template="motyw-1"] .gh-hero[data-height="medium"],
  [data-template="motyw-1"] .gh-hero[data-height="large"],
  [data-template="motyw-1"] .gh-hero[data-height="fullscreen"] {
    min-height: 100vh !important;
    min-height: 100svh !important;
  }
}

[data-template="motyw-1"] .gh-hero__content {
  min-height: inherit !important;
}

[data-template="motyw-1"] .gh-hero[data-brand-layout="free"] .gh-hero__content {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  align-items: unset !important;
  padding: 0 !important;
  min-height: 100% !important;
}

[data-template="motyw-1"] .gh-hero[data-brand-layout="free"] .gh-hero__content > .ds-container-content {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

[data-template="motyw-1"] .gh-hero[data-brand-layout="free"] .gh-hero__inner {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  overflow-wrap: normal !important;
  gap: 0 !important;
}

[data-template="motyw-1"] .gh-hero[data-brand-layout="free"] .gh-hero__brand-row {
  position: absolute !important;
  left: var(--gh-hero-block-x, 18%) !important;
  top: var(--gh-hero-block-y, 42%) !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  margin: 0 !important;
  width: max-content !important;
  max-width: min(90vw, 40rem) !important;
  flex-shrink: 0 !important;
}

[data-template="motyw-1"] .gh-hero[data-brand-layout="free"] .gh-hero__brand-copy {
  min-width: max-content !important;
  flex-shrink: 0 !important;
}

[data-template="motyw-1"] .gh-hero[data-brand-layout="free"] .gh-hero__title,
[data-template="motyw-1"] .gh-hero[data-brand-layout="free"] .gh-hero__eyebrow {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  text-wrap: nowrap !important;
  white-space: nowrap !important;
}

[data-template="motyw-1"] .gh-hero[data-v-position="top"] .gh-hero__content {
  align-items: flex-start !important;
}

[data-template="motyw-1"] .gh-hero[data-v-position="center"] .gh-hero__content,
[data-template="motyw-1"] .gh-hero:not([data-v-position]) .gh-hero__content {
  align-items: center !important;
}

[data-template="motyw-1"] .gh-hero[data-brand-layout="free"][data-v-position] .gh-hero__content {
  align-items: unset !important;
}

[data-template="motyw-1"] .gh-hero[data-v-position="bottom"] .gh-hero__content {
  align-items: flex-end !important;
}

[data-template="motyw-1"] .gh-hero__overlay {
  display: none !important;
}

[data-template="motyw-1"] .gh-hero__eyebrow {
  font-size: calc(0.72rem * var(--a11y-font-scale, 1) * var(--gh-hero-eyebrow-scale, 1)) !important;
}

[data-template="motyw-1"] .gh-hero__title {
  font-size: calc(clamp(2rem, 5vw, 3.25rem) * var(--gh-hero-title-scale, 1)) !important;
}

[data-template="motyw-1"] .gh-hero__brand-mark {
  width: calc(clamp(5.5rem, 14vw, 9rem) * var(--gh-hero-mark-scale, 1)) !important;
  max-height: calc(clamp(7rem, 20vw, 12rem) * var(--gh-hero-mark-scale, 1)) !important;
}

/* Motyw 1 — news card in side margins, overlapping hero (critical / cache-busted) */
[data-template="motyw-1"] [data-layout="landing"],
[data-template="motyw-1"] [data-page-body],
[data-template="motyw-1"] .gh-page-section:has(.gh-hero),
[data-template="motyw-1"] .gh-page-section:has(.gh-hero) [data-row],
[data-template="motyw-1"] .gh-page-section:has(.gh-hero) [data-column],
[data-template="motyw-1"] .gh-page-section:has(.gh-hero) [data-widget-instance] {
  overflow: visible !important;
}

[data-template="motyw-1"] .gh-page-section:has(.gh-hero) {
  position: relative !important;
  z-index: 1 !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) {
  --m1-news-overlap: clamp(4rem, 8vw, 6.5rem);
  --m1-news-gap-below: clamp(3rem, 5.25vw, 4.25rem);
  position: relative !important;
  z-index: 6 !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: calc(var(--m1-news-overlap) * -1) !important;
  margin-bottom: 0 !important;
  margin-inline: 0 !important;
  padding-inline: var(--ds-container-pad, 1.25rem) !important;
  padding-top: 0 !important;
  padding-bottom: var(--m1-news-gap-below) !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) > .gh-page-section__surface {
  display: block !important;
  width: 100% !important;
  max-width: var(--ds-rail-max, 75rem) !important;
  margin-inline: auto !important;
  padding: clamp(3.25rem, 5.5vw, 5.5rem) clamp(1.5rem, 7vw, 8.75rem) clamp(2rem, 4vw, 4.0625rem) !important;
  border-radius: 0.5rem !important;
  box-sizing: border-box !important;
  background-color: var(--gh-section-bg, #ffffff) !important;
  box-shadow: 0 16px 25px rgb(0 0 0 / 7%) !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) > .gh-page-section__surface > .gh-page-section__chrome {
  max-width: none !important;
  padding-inline: 0 !important;
  padding-top: 0 !important;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem) !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) > .gh-page-section__surface > [data-row].grid {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  padding-top: clamp(0.5rem, 1.5vw, 1rem) !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) + .gh-page-section {
  margin-top: 0 !important;
}

/* Toszek-matched news tiles: 250px image + 200px caption */
[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles {
  gap: 1.875rem !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

@media (min-width: 640px) {
  [data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.875rem !important;
  }
}

@media (min-width: 960px) {
  [data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.875rem !important;
  }
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__link {
  display: grid !important;
  grid-template-rows: 250px 200px !important;
  align-items: stretch !important;
  gap: 0 !important;
  aspect-ratio: auto !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 0.5rem !important;
  background: transparent !important;
  color: inherit !important;
}

@media (max-width: 750px) {
  [data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__link {
    grid-template-rows: 250px 160px !important;
  }
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__thumb {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__media {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin-inline: 0 !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transform: scale(1) !important;
  transform-origin: center center !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__link:hover .gh-news-tiles__media,
[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__link:focus-visible .gh-news-tiles__media {
  transform: scale(1.12) !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__overlay {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  gap: 1.25rem !important;
  padding: 1.625rem 1.25rem !important;
  background: none !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__date {
  color: var(--gh-news-clock, #6b6b6b) !important;
  text-shadow: none !important;
  font-size: calc(1.1rem * var(--a11y-font-scale, 1)) !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__date .gh-news-clock-icon,
[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__date svg {
  color: currentColor !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
}

[data-template="motyw-1"] .gh-page-section:has([data-block="news"]):not(:has([data-layout="news-slider-pair"])):not(:has([data-block="news_slider"])) .gh-news-tiles__title {
  color: var(--gh-news-title, #1f1f1f) !important;
  text-shadow: none !important;
  font-size: calc(1.45rem * var(--a11y-font-scale, 1)) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

/* Quick-links band — Motyw 1 only (do not affect wzorowy-portal) */
[data-template="motyw-1"] .gh-page-section[data-band="quick_links"] {
  padding-top: var(--m1-band-pad-y, clamp(2.25rem, 4vw, 3.25rem)) !important;
  padding-bottom: clamp(2.5rem, 4.5vw, 3.75rem) !important;
}

[data-template="motyw-1"] .gh-page-section[data-band="quick_links"][data-ql-bg="image"]::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-color: color-mix(
    in srgb,
    var(--ql-overlay-color, #5c4033) var(--ql-overlay-opacity, 45%),
    transparent
  ) !important;
  opacity: 1 !important;
}

[data-template="motyw-1"] .gh-page-section[data-band="quick_links"] > .gh-page-section__chrome {
  padding-top: 0 !important;
}

[data-template="motyw-1"] .gh-page-section[data-band="quick_links"] .gh-quick-links {
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem) !important;
  padding-bottom: clamp(0.5rem, 1vw, 0.75rem) !important;
}

[data-template="motyw-1"] .gh-quick-links__tile:hover,
[data-template="motyw-1"] .gh-quick-links__tile:focus-visible {
  color: var(--ql-text-hover, #ffffff) !important;
}

[data-template="motyw-1"] .gh-quick-links[data-hover="transparent"] .gh-quick-links__tile:hover,
[data-template="motyw-1"] .gh-quick-links[data-hover="transparent"] .gh-quick-links__tile:focus-visible {
  background: color-mix(
    in srgb,
    var(--ql-tile-local, var(--ql-tile, #fff)) calc(100% - var(--ql-tile-hover-transparency, 70%)),
    transparent
  ) !important;
  box-shadow: none !important;
}

[data-template="motyw-1"] .gh-quick-links__tile:hover .gh-quick-links__icon,
[data-template="motyw-1"] .gh-quick-links__tile:focus-visible .gh-quick-links__icon {
  color: var(--ql-icon-hover, #ffffff) !important;
}

[data-template="motyw-1"] .gh-quick-links__icon-img {
  background-color: var(--ql-icon-local, var(--ql-icon, #5c4033)) !important;
}

[data-template="motyw-1"] .gh-quick-links__tile:hover .gh-quick-links__icon-img,
[data-template="motyw-1"] .gh-quick-links__tile:focus-visible .gh-quick-links__icon-img {
  background-color: var(--ql-icon-hover, #ffffff) !important;
}
