.fold {
  interpolate-size: allow-keywords;
  max-width: 20rem;
  padding: 0.5rem 0.75rem;
  background: white;
  color: black;
  border: 1px solid #999;
}

.fold::details-content {
  transition: height 0.35s ease;
  overflow: hidden;
  height: 0;
}

.fold[open]::details-content {
  height: auto;
}