@import 'template.scss';

.collapsible {
  border-bottom: 1px solid $border-color-light;
}

.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  min-height: 44px;
  background: transparent;
  border: 0;
  font-family: inherit;
  color: $base-color;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.header:focus {
  outline: none;
}

.header:focus-visible {
  outline: 2px solid $base-color;
  outline-offset: 4px;
}

.title {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.4;
  flex: 1 1 auto;
}

.arrow {
  display: inline-flex;
  flex: 0 0 auto;
}

.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease-in-out;
}

.inner {
  padding: 0 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  .content {
    transition: none;
  }
}
