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

/* OEAF — kompaktowi organizatorzy i przewijane logotypy */
.oeaf-partners-widget,
.oeaf-partners-widget * {
  box-sizing: border-box;
}

.oeaf-partners-widget {
  --oeaf-partners-black: #000;
  --oeaf-partners-white: #fff;
  --oeaf-partners-gray: #f0f0f0;
  --oeaf-partners-side: clamp(20px, 4vw, 72px);
  --oeaf-type-h2: clamp(2rem, 1.55rem + 1.9vw, 3rem);
  --oeaf-type-h3: clamp(1.25rem, 1.05rem + 0.85vw, 1.75rem);
  --oeaf-type-h4: clamp(0.875rem, 0.82rem + 0.22vw, 1rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--oeaf-partners-white);
  color: var(--oeaf-partners-black);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal;
}

.oeaf-partners-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;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.oeaf-partners-title,
.oeaf-logo-strip-title,
.oeaf-logo-category-title {
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: normal;
}

.oeaf-partners-organizers {
  padding: clamp(30px, 3.7vw, 58px) var(--oeaf-partners-side) clamp(34px, 4.3vw, 70px);
  background: var(--oeaf-partners-white);
}

.oeaf-partners-title {
  margin-bottom: clamp(30px, 3vw, 48px);
  font-family: "GT Walsheim OEAF", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--oeaf-type-h2);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.oeaf-organizers-list,
.oeaf-logo-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oeaf-organizers-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 3.6vw, 64px);
}

.oeaf-organizer-item {
  --oeaf-organizer-cell: clamp(180px, 19vw, 330px);
  width: var(--oeaf-organizer-cell);
  min-width: var(--oeaf-organizer-cell);
  max-width: var(--oeaf-organizer-cell);
  flex: 0 0 var(--oeaf-organizer-cell);
}

.oeaf-organizer-item,
.oeaf-logo-item {
  margin-inline: 0;
  margin-inline-end: var(--oeaf-logo-layout-end, 0px);
}

.oeaf-logo-link {
  position: relative;
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
}

.oeaf-partners-widget .oeaf-logo-link:hover,
.oeaf-partners-widget .oeaf-logo-link:active {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

/* Standardowy kursor pozostaje bez zmian. Dyskretna strzałka pojawia się
   bezpośrednio przy grafice, więc nie zasłania logotypu i działa identycznie
   dla myszy oraz klawiatury. */
.oeaf-logo-media {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
}

.oeaf-logo-media::after {
  position: absolute;
  top: -7px;
  right: -9px;
  z-index: 2;
  display: block;
  width: 15px;
  height: 15px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(135deg, transparent 45%, currentColor 46% 52%, transparent 53%);
  color: var(--oeaf-partners-black);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-2px, 2px);
  transition: opacity 130ms linear, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oeaf-logo-link:focus-visible .oeaf-logo-media::after {
  opacity: 1;
  transform: translate(0, 0);
}

.oeaf-logo-arrow:focus-visible {
  position: relative;
  z-index: 3;
  outline: 2px solid var(--oeaf-partners-black);
  outline-offset: 5px;
}

.oeaf-logo-link::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0.25);
  transform-origin: 50% 50%;
  transition: opacity 120ms linear, transform 120ms linear;
}

.oeaf-logo-link:focus-visible {
  z-index: 3;
  outline: 0;
}

.oeaf-logo-link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.oeaf-logo-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
  object-fit: contain;
  filter: none;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

@media (hover: hover) and (pointer: fine) {
  .oeaf-partners-widget .oeaf-logo-link:hover .oeaf-logo-media::after {
    opacity: 1;
    transform: translate(0, 0);
  }

  .oeaf-partners-widget .oeaf-logo-link:hover img {
    transform: translateY(var(--oeaf-logo-offset-y, 0px)) scale(var(--oeaf-logo-hover-scale, 1.025));
  }
}

.oeaf-organizers-list .oeaf-logo-link {
  width: var(--oeaf-organizer-cell);
  min-height: clamp(104px, 9.5vw, 156px);
}

.oeaf-organizers-list img {
  max-width: min(96%, 330px);
  max-height: clamp(124px, 8.8vw, 150px);
}

.oeaf-logo-strip {
  padding: clamp(18px, 2.4vw, 34px) 0 clamp(26px, 3.4vw, 52px);
  background: var(--oeaf-partners-white);
}

.oeaf-logo-strip-toolbar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 2.4vw, 36px);
  padding: 0 var(--oeaf-partners-side);
}

.oeaf-logo-strip-title {
  font-family: "GT Walsheim OEAF", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--oeaf-type-h3);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.oeaf-logo-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.oeaf-logo-controls[hidden] {
  display: none;
}

.oeaf-logo-arrow {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: var(--oeaf-partners-black);
  color: var(--oeaf-partners-white);
  font: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.oeaf-logo-arrow:hover:not(:disabled) {
  opacity: 0.66;
}

.oeaf-logo-arrow:disabled {
  opacity: 0.22;
  cursor: default;
}

.oeaf-logo-viewport {
  width: 100%;
  overflow: hidden;
  contain: layout paint;
  touch-action: pan-y pinch-zoom;
}

.oeaf-logo-viewport .oeaf-logo-link {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.oeaf-logo-strip[data-oeaf-strip-state="manual"][data-oeaf-strip-dragging] .oeaf-logo-item[data-oeaf-partial] {
  visibility: visible;
}

.oeaf-logo-track,
.oeaf-logo-group,
.oeaf-logo-category-list {
  display: flex;
  align-items: flex-start;
}

.oeaf-logo-track {
  width: max-content;
  min-width: max-content;
  transform: translateX(0);
  transform-style: flat;
  will-change: transform;
}

.oeaf-logo-group {
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  gap: clamp(58px, 6vw, 112px);
  padding-right: clamp(58px, 6vw, 112px);
  padding-left: var(--oeaf-partners-side);
}

.oeaf-logo-segment {
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  contain: layout style;
}

.oeaf-logo-category-title {
  position: relative;
  z-index: 2;
  width: max-content;
  margin-bottom: clamp(16px, 1.4vw, 22px);
  color: rgba(0, 0, 0, 0.72);
  font-size: var(--oeaf-type-h4);
  line-height: 1.25;
  text-transform: uppercase;
  transform: translateX(0);
}

.oeaf-logo-category-list {
  width: max-content;
  min-width: max-content;
  flex-wrap: nowrap;
  gap: clamp(28px, 3vw, 54px);
}

.oeaf-logo-item {
  --oeaf-logo-cell: clamp(142px, 12vw, 198px);
  position: relative;
  width: var(--oeaf-logo-cell);
  min-width: var(--oeaf-logo-cell);
  max-width: var(--oeaf-logo-cell);
  flex: 0 0 var(--oeaf-logo-cell);
  contain: layout style;
  isolation: isolate;
}

.oeaf-logo-item .oeaf-logo-link {
  width: 100%;
  height: clamp(84px, 7.6vw, 118px);
}

.oeaf-logo-item img {
  max-width: 100%;
  max-height: clamp(84px, 7.6vw, 118px);
}

.oeaf-logo-strip[data-oeaf-strip-state="manual"] .oeaf-logo-item[data-oeaf-partial] {
  visibility: hidden;
}

.oeaf-logo-strip[data-oeaf-strip-state="manual"] .oeaf-logo-link img,
.oeaf-logo-strip[data-oeaf-strip-state="manual"] .oeaf-logo-link:hover img {
  transform: translateY(var(--oeaf-logo-offset-y, 0px)) scale(var(--oeaf-logo-render-scale, var(--oeaf-logo-scale, 1)));
  transition: none;
}

.oeaf-logo-strip[data-oeaf-strip-state="manual"] .oeaf-logo-track {
  will-change: auto;
}

.oeaf-logo-strip[data-oeaf-strip-state="manual"] .oeaf-logo-category-title {
  will-change: auto;
}

@media (max-width: 64rem) {
  .oeaf-organizers-list {
    gap: clamp(24px, 4vw, 54px);
  }

  .oeaf-logo-item {
    --oeaf-logo-cell: clamp(138px, 17vw, 178px);
  }
}

@media (max-width: 47.99rem) {
  .oeaf-partners-widget {
    --oeaf-partners-side: 18px;
  }

  .oeaf-partners-organizers {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .oeaf-partners-title {
    margin-bottom: 28px;
  }

  .oeaf-organizers-list {
    column-gap: 26px;
    row-gap: 24px;
  }

  .oeaf-organizer-item {
    --oeaf-organizer-cell: calc((100vw - 62px) / 2);
  }

  .oeaf-organizers-list .oeaf-logo-link {
    min-height: 88px;
  }

  .oeaf-organizers-list img {
    max-width: min(100%, 250px);
    max-height: 88px;
  }

  .oeaf-logo-strip {
    padding-top: 18px;
    padding-bottom: 30px;
  }

  .oeaf-logo-strip-toolbar {
    gap: 12px;
    margin-bottom: 22px;
  }

  .oeaf-logo-strip-title {
    max-width: calc(100% - 102px);
  }

  .oeaf-logo-group {
    gap: 52px;
    padding-right: 52px;
  }

  .oeaf-logo-category-title {
    margin-bottom: 12px;
  }

  .oeaf-logo-category-list {
    gap: 22px;
  }

  .oeaf-logo-item {
    --oeaf-logo-cell: 136px;
  }

  .oeaf-logo-item .oeaf-logo-link,
  .oeaf-logo-item img {
    height: 84px;
    max-height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oeaf-logo-link,
  .oeaf-logo-media::after,
  .oeaf-logo-link::after,
  .oeaf-logo-link img {
    transition: none;
  }

  .oeaf-partners-widget .oeaf-logo-link:hover img {
    transform: translateY(var(--oeaf-logo-offset-y, 0px)) scale(var(--oeaf-logo-render-scale, var(--oeaf-logo-scale, 1)));
  }

}

html[data-oeaf-motion="reduce"] .oeaf-partners-widget .oeaf-logo-link,
html[data-oeaf-motion="reduce"] .oeaf-partners-widget .oeaf-logo-media::after,
html[data-oeaf-motion="reduce"] .oeaf-partners-widget .oeaf-logo-link::after,
html[data-oeaf-motion="reduce"] .oeaf-partners-widget .oeaf-logo-link img {
  transition: none;
}

html[data-oeaf-motion="reduce"] .oeaf-partners-widget .oeaf-logo-link:hover img {
  transform: translateY(var(--oeaf-logo-offset-y, 0px)) scale(var(--oeaf-logo-render-scale, var(--oeaf-logo-scale, 1)));
}

@media (forced-colors: active) {
  .oeaf-logo-link:focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 4px;
  }

  .oeaf-logo-link::after {
    display: none;
  }

  .oeaf-logo-media::after {
    color: LinkText;
  }
}
.oeaf-partners-widget .oeaf-logo-link img {
  transform: translateY(var(--oeaf-logo-offset-y, 0px)) scale(var(--oeaf-logo-render-scale, var(--oeaf-logo-scale, 1)));
  transform-origin: center;
}
