@font-face {
  font-family: "GT Walsheim OEAF";
  src: url("../source/oeaf-editions/assets/fonts/GT-Walsheim-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GT Walsheim OEAF";
  src: url("../source/oeaf-editions/assets/fonts/GT-Walsheim-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --oeaf-black: #000;
  --oeaf-white: #fff;
  --oeaf-focus: #1565ff;
  --oeaf-viewport-width: 100vw;
}

.oeaf-sr-only,
.oeaf-footer-sr-only,
.oeaf-editions-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.oeaf-full-bleed-host,
.oeaf-full-bleed-host > .elementor-widget-container,
.oeaf-full-bleed-ancestor {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.oeaf-language-switcher ul {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oeaf-language-switcher a,
.oeaf-language-switcher span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.oeaf-language-switcher [aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

:where(.oeaf-menu-widget, .oeaf-footer, .oeaf-motion-control, .oeaf-program, .oeaf-editions, .oeaf-about-page, .oeaf-contact, .oeaf-events, .oeaf-partners) :focus-visible {
  outline: 3px solid var(--oeaf-focus);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  :where(.oeaf-menu-widget, .oeaf-footer, .oeaf-motion-control, .oeaf-program, .oeaf-editions, .oeaf-about-page, .oeaf-contact, .oeaf-events, .oeaf-partners) :focus-visible {
    outline: 3px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oeaf-elementor-root *,
  .oeaf-elementor-root *::before,
  .oeaf-elementor-root *::after {
    scroll-behavior: auto !important;
  }
}
/* OEAF zawsze neutralizuje ograniczenia nadrzędnego kontenera Elementora. */
.oeaf-full-bleed-host,
.elementor-element.oeaf-full-bleed-host,
.oeaf-full-bleed-host > .e-con-inner,
.oeaf-full-bleed-ancestor {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  --content-width: 100% !important;
  --container-max-width: 100% !important;
  --gap: 0px !important;
  --row-gap: 0px !important;
  --column-gap: 0px !important;
}

.oeaf-full-bleed,
.oeaf-menu-widget,
.oeaf-footer,
[data-oeaf-full-bleed] {
  box-sizing: border-box;
  /* 100vw jest wyłącznie pierwszą klatką zapasową. Skrypt natychmiast
     zastępuje je dokładną szerokością dokumentu i realnym przesunięciem. */
  width: var(--oeaf-document-width, 100vw) !important;
  max-width: none !important;
  margin-left: var(--oeaf-document-offset, calc(50% - 50vw)) !important;
  margin-right: 0 !important;
}

html,
body.oeaf-site {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body.oeaf-site {
  margin: 0;
  padding: 0;
}

/* Pierwszy element strony staje się widoczny dopiero po wejściu klawiaturą. */
.oeaf-main-content h1[tabindex="-1"] { scroll-margin-top: 120px; }

.oeaf-skip-link {
  position: fixed;
  z-index: 2147483647;
  top: 12px;
  left: 12px;
  max-width: calc(100vw - 24px);
  padding: 12px 16px;
  border: 3px solid #fff;
  background: #000;
  color: #fff;
  font: 700 16px/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform 120ms ease-out;
}

.oeaf-skip-link:focus,
.oeaf-skip-link:focus-visible {
  color: #fff;
  outline: 3px solid #000;
  outline-offset: 3px;
  transform: translateY(0);
}

.oeaf-main-content {
  display: block;
  scroll-margin-top: 16px;
}

.oeaf-main-content:focus {
  outline: none;
}

@media (forced-colors: active) {
  .oeaf-skip-link {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }
}

/* Kolor powierzchni dokumentu jest widoczny podczas sprężystego przeciągania
   strony w iOS Safari. Na stronie głównej ma odpowiadać czarnemu hero i stopce,
   zamiast odsłaniać domyślną biel motywu. */
html:has(body.oeaf-home-page),
body.oeaf-home-page {
  background: #000;
  background-color: #000;
}

.oeaf-site,
.oeaf-site p,
.oeaf-site li,
.oeaf-site dd,
.oeaf-site dt,
.oeaf-site a,
.oeaf-site button,
.oeaf-site input,
.oeaf-site select,
.oeaf-site textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.oeaf-site h1,
.oeaf-site .oeaf-display-heading,
.oeaf-site .oeaf-edition-year {
  font-family: "GT Walsheim OEAF", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}
