/* ETR — tekst łatwy do czytania i rozumienia */
.etr-switcher {
  margin-block: 1.5rem;
}

.etr-switcher__controls {
  padding: 1rem;
  border: 2px solid #5b2e60;
  border-radius: 10px;
  background: #f7f2f8;
  margin-bottom: 1.25rem;
}

.etr-switcher__label {
  margin: 0 0 .65rem;
  color: #241126;
  font-weight: 700;
  font-size: 1rem;
}

.etr-switcher__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.etr-switcher__tab {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 2px solid #5b2e60;
  border-radius: 8px;
  background: #fff;
  color: #5b2e60;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.etr-switcher__tab:hover {
  background: #eee3f0;
}

.etr-switcher__tab.is-active,
.etr-switcher__tab[aria-selected="true"] {
  background: #5b2e60;
  color: #fff;
}

.etr-switcher__tab:focus-visible {
  outline: 4px solid #8b1917;
  outline-offset: 3px;
}

.etr-switcher__help,
.etr-switcher__noscript {
  margin: .8rem 0 0;
  color: #331d35;
  font-size: .95rem;
  line-height: 1.6;
}

.etr-switcher__panel[hidden] {
  display: none !important;
}

.etr-switcher__panel:focus-visible {
  outline: 4px solid #5b2e60;
  outline-offset: 5px;
  border-radius: 4px;
}

.etr-switcher__panel--easy {
  max-width: 68ch;
  padding: clamp(1rem, 3vw, 2rem);
  border: 2px solid #5b2e60;
  border-radius: 12px;
  background: #fff;
  color: #171217;
  font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  line-height: 1.85;
  letter-spacing: .01em;
  word-spacing: .06em;
  text-align: left;
  hyphens: none;
  overflow-wrap: anywhere;
}

.etr-intro {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 6px solid #8b1917;
  background: #fff4f3;
}

.etr-intro p {
  margin: 0;
}

.etr-intro p + p {
  margin-top: .4rem;
}

.etr-intro__title {
  color: #641210;
  font-size: 1.15em;
  font-weight: 800;
}

.etr-content {
  max-width: 60ch;
}

.etr-content h2,
.etr-content h3,
.etr-content h4 {
  color: #321936;
  line-height: 1.35;
  text-wrap: balance;
}

.etr-content h2 {
  margin: 2rem 0 .8rem;
  font-size: 1.45em;
}

.etr-content h3 {
  margin: 1.6rem 0 .65rem;
  font-size: 1.25em;
}

.etr-content h4 {
  margin: 1.35rem 0 .55rem;
  font-size: 1.1em;
}

.etr-content p {
  margin: 0 0 1.15em;
}

.etr-content ul,
.etr-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.6em;
}

.etr-content li {
  margin-bottom: .65em;
  padding-left: .2em;
}

.etr-content li::marker {
  color: #8b1917;
  font-weight: 800;
}

.etr-content a {
  color: #5b2e60;
  text-decoration: underline;
  text-decoration-thickness: .12em;
  text-underline-offset: .18em;
}

.etr-content a:hover {
  color: #641210;
}

.etr-content a:focus-visible {
  outline: 4px solid #8b1917;
  outline-offset: 3px;
}

.etr-content strong {
  color: #241126;
  font-weight: 800;
}

.etr-content blockquote {
  margin: 1.25rem 0;
  padding: .9rem 1rem;
  border-left: 6px solid #5b2e60;
  background: #f7f2f8;
}

@media (max-width: 600px) {
  .etr-switcher__tab {
    width: 100%;
  }

  .etr-switcher__panel--easy {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .etr-switcher *,
  .etr-switcher *::before,
  .etr-switcher *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .etr-switcher__controls,
  .etr-switcher__noscript {
    display: none !important;
  }

  .etr-switcher__panel[hidden] {
    display: none !important;
  }

  .etr-switcher__panel--easy {
    max-width: none;
    border: 1px solid #000;
    color: #000;
  }
}
