/* PozycjonowanieStron.PL: warstwa animacji podstrony HR Awards (ładowana wyłącznie na tej podstronie). */

/* Dyplom w hero czeka ukryty, aż GSAP ustawi stan początkowy (bezpiecznik w <head> zdejmuje klasę po 3 s). */
html.ps-hrm-pending main > section:first-child .ps-award-hero { visibility: hidden; }

/* Unoszenie dyplomu i rozwijanie pytań przejmuje GSAP. */
html.ps-hrm-on .ps-award-hero-photo,
html.ps-hrm-on .ps-faq-item[open] .ps-faq-answer { animation: none; }

/* Ciemne sekcje: poświata i światło za kursorem pod treścią. */
html.ps-hrm-on main > section.ps-section-dark { position: relative; overflow: clip; }
html.ps-hrm-on main > section.ps-section-dark > .ps-container { position: relative; z-index: 1; }
.ps-hrm-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; visibility: hidden; background: radial-gradient(560px circle at var(--ps-hrm-x, 50%) var(--ps-hrm-y, 40%), rgba(15, 98, 254, 0.2), rgba(15, 98, 254, 0) 62%); }
.ps-hrm-glow { position: absolute; z-index: 0; pointer-events: none; width: 64vmax; height: 64vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 98, 254, 0.24), rgba(15, 98, 254, 0)); }
.ps-hrm-glow-a { top: -26vmax; right: -24vmax; }
.ps-hrm-glow-b { bottom: -34vmax; left: -28vmax; background: radial-gradient(closest-side, rgba(120, 169, 255, 0.14), rgba(120, 169, 255, 0)); }

/* Dyplom w hero: perspektywa i przesuwający się połysk. */
html.ps-hrm-on .ps-award-hero-photo { will-change: transform; }
.ps-hrm-sheen { position: absolute; top: -30%; bottom: -30%; left: 0; z-index: 2; width: 22%; pointer-events: none; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.12) 58%, rgba(255, 255, 255, 0) 100%); transform: translateX(-160%) skewX(-14deg); mix-blend-mode: screen; }

/* Linie postępu: oś dyplomu i program Akademii. */
html.ps-hrm-on .ps-lbs-timeline { position: relative; }
.ps-hrm-rail { position: absolute; top: 8px; left: 0; right: 0; z-index: 1; height: 2px; pointer-events: none; background: linear-gradient(90deg, #0f62fe, #78a9ff); transform-origin: 0 50%; }
.ps-hrm-flow { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 3px; pointer-events: none; background: linear-gradient(90deg, #0f62fe, #78a9ff, #0f62fe); transform-origin: 0 50%; }

/* Kapituła: obracający się pierścień przy przewodniczących. */
html.ps-hrm-on .ps-hra-juror-chair .ps-hra-monogram { background-image: conic-gradient(from var(--ps-hrm-a, 0deg), #0f62fe, #78a9ff, #d0e2ff, #78a9ff, #0f62fe); color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }

/* Tematy konferencji w poziomie na dużych ekranach (klasę nadaje skrypt). */
html.ps-hrm-on .ps-hra-themes-wrap { overflow: hidden; }
html.ps-hrm-on .ps-hra-themes.ps-hrm-h { display: flex; flex-wrap: nowrap; width: max-content; }
html.ps-hrm-on .ps-hra-themes.ps-hrm-h > .ps-hra-theme { flex: 0 0 auto; width: min(560px, 44vw); min-height: 380px; }

/* Pasek z laureatami. */
html.ps-hrm-on .ps-hra-marquee-track { will-change: transform; }

/* Płynne rozwijanie pytań. */
.ps-hrm-faq-anim { overflow: hidden; }

/* Linie tekstu dzielone przez SplitText. */
.ps-hrm-line { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .ps-hrm-sheen, .ps-hrm-spot, .ps-hrm-glow, .ps-hrm-rail, .ps-hrm-flow { display: none; }
}

/* Elementy wjeżdżające z boku nie mogą poszerzać strony. */
html.ps-hrm-on #oxy-main > section { overflow-x: clip; }
