/* Konferencje Naukowe 2.2 — końcowa warstwa kontrastu i czytelności. */

.kn-site[data-theme="dark"] {
  --kn-a11y-text:#f8fbff;
  --kn-a11y-copy:#b8c5d7;
  --kn-a11y-muted:#9fb0c6;
  --kn-a11y-surface:#020815;
  --kn-a11y-panel:#07152d;
}
.kn-site[data-theme="light"] {
  --kn-a11y-text:#071a36;
  --kn-a11y-copy:#405772;
  --kn-a11y-muted:#526983;
  --kn-a11y-surface:#edf2f8;
  --kn-a11y-panel:#fff;
}

/* Divi nadaje nagłówkom #333. Motyw KN musi ustalać je jednoznacznie. */
.kn-site[data-theme="dark"] h1,
.kn-site[data-theme="dark"] h2,
.kn-site[data-theme="dark"] h3,
.kn-site[data-theme="dark"] h4 { color:#f8fbff !important; }
.kn-site[data-theme="light"] h1,
.kn-site[data-theme="light"] h2,
.kn-site[data-theme="light"] h3,
.kn-site[data-theme="light"] h4 { color:#071a36 !important; }
.kn-site[data-theme="dark"] h1 em,
.kn-site[data-theme="dark"] h2 em,
.kn-site[data-theme="dark"] h3 em { color:#aebcd0 !important; -webkit-text-fill-color:#aebcd0 !important; }
.kn-site[data-theme="light"] h1 em,
.kn-site[data-theme="light"] h2 em,
.kn-site[data-theme="light"] h3 em { color:#365675 !important; -webkit-text-fill-color:#365675 !important; }

/* Bardziej zbilansowana skala: mniej dominujące nagłówki, większa treść. */
.kn-site .hero h1 { font-size:clamp(48px,5.25vw,72px) !important; line-height:1.02 !important; }
.kn-site .section-title-row h2,
.kn-site .disciplines-copy h2,
.kn-site .journey-heading h2,
.kn-site .offer-copy h2,
.kn-site .monograph-copy h2,
.kn-site .monograph-vault-head h2,
.kn-site .business-copy h2,
.kn-site .faq-intro h2,
.kn-site .faq-vault-head h2,
.kn-site .form-intro h2,
.kn-site .footer-beacon h2,
.kn-site .eco-split h2,
.kn-site .eco-section-head h2,
.kn-site .eco-cta h2,
.kn-site .eco-guidelines-content h2 { font-size:clamp(38px,3.9vw,54px) !important; line-height:1.1 !important; }
.kn-site .hero-lead,
.kn-site .eco-hero-copy > p:not(.overline) { font-size:18px !important; line-height:1.76 !important; }
.kn-site .conference-description,
.kn-site .disciplines-copy > p:not(.overline),
.kn-site .journey-heading > p:last-child,
.kn-site .journey-process p,
.kn-site .offer-copy > p:not(.overline),
.kn-site .monograph-copy > p:not(.overline),
.kn-site .business-copy > p:not(.overline),
.kn-site .faq-vault-head > div:last-child > p,
.kn-site .faq-list details > p,
.kn-site .form-intro > p:not(.overline),
.kn-site .eco-rich-copy,
.kn-site .eco-signal-card p,
.kn-site .eco-value-grid > article p,
.kn-site .eco-timeline p { font-size:16.5px !important; line-height:1.75 !important; }

/* Górny pasek i nagłówek są zawsze ciemnymi wyspami marki. */
.kn-site .fomo-bar { color:#f8fbff !important; }
.kn-site .fomo-bar .live-dot,
.kn-site .fomo-bar strong,
.kn-site .fomo-bar-inner > a,
.kn-site .fomo-bar-inner > a svg { color:#f8fbff !important; }
.kn-site .fomo-mini-count { color:#aebcd0 !important; }
.kn-site .fomo-mini-count b { color:#fff !important; }
.kn-site .header { color:#f8fbff !important; }
.kn-site .header .nav { gap:clamp(14px,1.65vw,27px) !important; }
.kn-site .header .nav a,
.kn-site .header-cta,
.kn-site .theme-toggle { color:#eef4fb !important; }
.kn-site .header-cta { border-color:rgba(255,255,255,.34) !important; background:rgba(3,16,37,.74) !important; }
.kn-site .theme-toggle { border-color:rgba(255,255,255,.24) !important; background:#051329 !important; }
.kn-site[data-theme="light"] .header {
  padding-inline:24px;
  border-color:rgba(255,255,255,.14) !important;
  border-radius:0 0 14px 14px;
  background:rgba(11,30,56,.88) !important;
  box-shadow:0 20px 60px rgba(16,37,68,.16);
  backdrop-filter:blur(22px);
}

/* Ciemny motyw: podnosimy wszystkie zbyt słabe szarości. */
.kn-site[data-theme="dark"] .hero-lead,
.kn-site[data-theme="dark"] .panel-meta,
.kn-site[data-theme="dark"] .section-title-row .overline,
.kn-site[data-theme="dark"] .disciplines-copy > p:not(.overline),
.kn-site[data-theme="dark"] .journey-heading > p:last-child,
.kn-site[data-theme="dark"] .offer-copy > p:not(.overline),
.kn-site[data-theme="dark"] .monograph-copy > p:not(.overline),
.kn-site[data-theme="dark"] .business-copy > p:not(.overline),
.kn-site[data-theme="dark"] .faq-vault-head > div:last-child > p,
.kn-site[data-theme="dark"] .form-intro > p:not(.overline),
.kn-site[data-theme="dark"] .eco-rich-copy,
.kn-site[data-theme="dark"] .eco-timeline p { color:#b8c5d7 !important; }
.kn-site[data-theme="dark"] .pricing-stack article p,
.kn-site[data-theme="dark"] .registration-form label > span,
.kn-site[data-theme="dark"] .extra-presentation-select small,
.kn-site[data-theme="dark"] .faq-list details > p,
.kn-site[data-theme="dark"] .faq-signal-grid details > p { color:#aebdd1 !important; }
.kn-site[data-theme="dark"] .registration-form input,
.kn-site[data-theme="dark"] .registration-form select,
.kn-site[data-theme="dark"] .registration-form textarea {
  border-color:rgba(198,216,240,.22) !important;
  background:#07152d !important;
  color:#f8fbff !important;
}
.kn-site[data-theme="dark"] .registration-form input::placeholder,
.kn-site[data-theme="dark"] .registration-form textarea::placeholder { color:#9fb0c6 !important; opacity:1 !important; }

/* Jasny motyw: tekst i formularze na jasnych płaszczyznach. */
.kn-site[data-theme="light"] .overline,
.kn-site[data-theme="light"] .hero-lead,
.kn-site[data-theme="light"] .panel-meta,
.kn-site[data-theme="light"] .disciplines-copy > p:not(.overline),
.kn-site[data-theme="light"] .journey-heading > p:last-child,
.kn-site[data-theme="light"] .offer-copy > p:not(.overline),
.kn-site[data-theme="light"] .monograph-copy > p:not(.overline),
.kn-site[data-theme="light"] .business-copy > p:not(.overline),
.kn-site[data-theme="light"] .faq-vault-head > div:last-child > p,
.kn-site[data-theme="light"] .form-intro > p:not(.overline),
.kn-site[data-theme="light"] .eco-rich-copy,
.kn-site[data-theme="light"] .eco-timeline p { color:#405772 !important; }
.kn-site[data-theme="light"] .registration-form input,
.kn-site[data-theme="light"] .registration-form select,
.kn-site[data-theme="light"] .registration-form textarea {
  border-color:rgba(7,26,54,.28) !important;
  background:#fff !important;
  color:#071a36 !important;
}
.kn-site[data-theme="light"] .registration-form input::placeholder,
.kn-site[data-theme="light"] .registration-form textarea::placeholder { color:#60758e !important; opacity:1 !important; }

/* Ciemne komponenty wewnątrz jasnego motywu — bez dziedziczenia granatowego tekstu. */
.kn-site[data-theme="light"] .conference-card,
.kn-site[data-theme="light"] .conference-card h3,
.kn-site[data-theme="light"] .conference-card h3 em,
.kn-site[data-theme="light"] .conference-date,
.kn-site[data-theme="light"] .journey-visual,
.kn-site[data-theme="light"] .journey-visual strong,
.kn-site[data-theme="light"] .book-stage,
.kn-site[data-theme="light"] .book-stage h3,
.kn-site[data-theme="light"] .eco-platform-console,
.kn-site[data-theme="light"] .eco-platform-console h2,
.kn-site[data-theme="light"] .eco-platform-console h3,
.kn-site[data-theme="light"] .eco-platform-console aside p,
.kn-site[data-theme="light"] .eco-platform-console .eco-console-flow p,
.kn-site[data-theme="light"] .eco-stats,
.kn-site[data-theme="light"] .eco-stats h2,
.kn-site[data-theme="light"] .eco-single-book-hero,
.kn-site[data-theme="light"] .eco-single-book-hero h1,
.kn-site[data-theme="light"] .eco-single-cover,
.kn-site[data-theme="light"] .contact-band,
.kn-site[data-theme="light"] .footer { color:#f8fbff !important; }
.kn-site[data-theme="light"] .conference-card h3,
.kn-site[data-theme="light"] .conference-card h3 em,
.kn-site[data-theme="light"] .book-stage h3,
.kn-site[data-theme="light"] .eco-platform-console h2,
.kn-site[data-theme="light"] .eco-platform-console h3,
.kn-site[data-theme="light"] .eco-single-book-hero h1 { color:#fff !important; -webkit-text-fill-color:#fff !important; }
.kn-site[data-theme="light"] .conference-description,
.kn-site[data-theme="light"] .eco-platform-console aside p,
.kn-site[data-theme="light"] .eco-platform-console .eco-console-flow p,
.kn-site[data-theme="light"] .eco-single-book-hero p { color:#bdcada !important; }
.kn-site[data-theme="light"] .contact-band span,
.kn-site[data-theme="light"] .footer blockquote span,
.kn-site[data-theme="light"] .footer-bottom,
.kn-site[data-theme="light"] .eco-footer-nav > a { color:#aebdd1 !important; }
.kn-site[data-theme="light"] .contact-band strong,
.kn-site[data-theme="light"] .footer strong,
.kn-site[data-theme="light"] .footer-heading span,
.kn-site[data-theme="light"] .company-console strong { color:#f8fbff !important; }

/* Panele konferencji i aktualności — korekta najczęstszych nadpisań Divi. */
.kn-site .hero-event-panel h2,
.kn-site .conference-card h3 { color:#f8fbff !important; }
.kn-site .hero-event-panel h2 em,
.kn-site .conference-card h3 em { color:var(--accent,#ff2948) !important; -webkit-text-fill-color:var(--accent,#ff2948) !important; }
.kn-site[data-theme="light"] .hero-event-panel h2 { color:#071a36 !important; }
.kn-site[data-theme="light"] .hero-event-panel h2 em { color:#c4122c !important; -webkit-text-fill-color:#c4122c !important; }
.kn-site .countdown-block small { color:#c596a0 !important; }
.kn-site[data-theme="light"] .countdown-block small { color:#7c4250 !important; }

/* Focus nie może znikać na żadnym tle. */
.kn-site a:focus-visible,
.kn-site button:focus-visible,
.kn-site input:focus-visible,
.kn-site select:focus-visible,
.kn-site textarea:focus-visible,
.kn-site summary:focus-visible {
  outline:3px solid #44e0f0 !important;
  outline-offset:4px !important;
}

@media (max-width:1160px) and (min-width:951px) {
  .kn-site .header { grid-template-columns:185px 1fr auto !important; gap:18px !important; }
  .kn-site .header-logo { width:180px !important; }
  .kn-site .header .nav { gap:12px !important; }
  .kn-site .header .nav a { font-size:10.5px !important; }
  .kn-site .header-cta { display:none !important; }
}

@media (max-width:950px) {
  .kn-site[data-theme="light"] .header { padding-inline:14px; }
  .kn-site[data-theme="light"] .header .nav { background:#f3f6fa !important; }
  .kn-site[data-theme="light"] .header .nav a { color:#071a36 !important; }
  .kn-site[data-theme="light"] .header .nav::before { color:#a90f26 !important; border-color:rgba(7,26,54,.16) !important; }
}

@media (max-width:680px) {
  .kn-site .hero h1 { font-size:clamp(38px,10.4vw,48px) !important; }
  .kn-site .section-title-row h2,
  .kn-site .disciplines-copy h2,
  .kn-site .journey-heading h2,
  .kn-site .offer-copy h2,
  .kn-site .monograph-copy h2,
  .kn-site .monograph-vault-head h2,
  .kn-site .business-copy h2,
  .kn-site .faq-vault-head h2,
  .kn-site .form-intro h2,
  .kn-site .eco-split h2,
  .kn-site .eco-section-head h2,
  .kn-site .eco-cta h2,
  .kn-site .eco-guidelines-content h2 { font-size:clamp(33px,8.6vw,40px) !important; }
  .kn-site .hero-lead,
  .kn-site .eco-hero-copy > p:not(.overline) { font-size:16.5px !important; }
}
