/* Minimalny CSS dla expandera */
.expander {
  --lines: 2;
  position: relative;
}

.expander .expander__content {
  line-height: 1.5;
  position: relative;
}

.expander .expander__content > label {
  display: inline;
}

.expander .expander__content.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines, 2);
  overflow: hidden;
}

/* .expander .expander__content.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.5em;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 70%);
} */

.expander .expander__content.is-expanded {
  display: block;
  overflow: visible;
}
.expander .expander__content.is-expanded + .toggled-text__readmore a svg {
  transform: rotate(-180deg);
  margin-left: 2px;
}

.expander .expander__toggle {
  margin-top: .5rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.expander .expander__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Preferencje użytkownika */
@media (prefers-reduced-motion: reduce) {
  .expander .expander__content {
    transition: none;
  }
}
