.collapse.collapse {
  @apply visible;
}
.collapse {
  @apply relative grid overflow-hidden;
  grid-template-rows: 1fr auto;
}
.collapse-title,
.collapse > input[type="checkbox"],
.collapse-content {
  @apply col-start-1 row-start-1;
}
.collapse > input[type="checkbox"] {
  @apply appearance-none opacity-0;
}
.collapse-content {
  @apply row-start-2 overflow-hidden;
  max-height: 0px;
}
.collapse-open .collapse-content,
.collapse:focus:not(.collapse-close) .collapse-content,
.collapse:not(.collapse-close)
  input[type="checkbox"]:checked
  ~ .collapse-content {
  max-height: none;
}
