.detail-sheets {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sheet-tabs {
  display: flex;
  align-items: center;
  flex: none;
  flex-wrap: wrap;
  gap: 6px;
}
.sheet-tabs button,
.sheet-pager button {
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid var(--hair);
  padding: 5px 12px;
  color: var(--dim);
  background: var(--panel);
  border-radius: 2px;
}
.sheet-tabs button[aria-pressed="true"] {
  background: var(--teal);
  color: var(--panel);
  border-color: var(--teal);
}
.sheet-tabs .figure-tab {
  display: none;
}
.sheet-spread {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 880px);
}
.with-figure .sheet-spread {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(12px, 1.6vw, 28px);
}
.sheet-illustration {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  background: #ede7d8;
  border: 1px solid var(--hair);
  overflow: hidden;
}
.sheet-illustration img {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
  width: 100%;
  display: block;
  object-fit: contain;
}
.region-plate img {
  object-fit: cover;
}
.sheet-illustration figcaption {
  flex: none;
}
.sheet-paper {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-top: 3px solid var(--teal);
  min-height: 0;
  min-width: 0;
  padding: clamp(16px, 2.5vw, 36px);
}
.sheet-flow {
  column-count: 1;
  column-fill: auto;
  column-gap: 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.8;
}
.sheet-flow h2 {
  line-height: 1.4;
}
.animal-ideas section {
  break-inside: avoid-column;
  padding-bottom: .85em;
}
.animal-ideas section + section {
  padding-top: .65em;
  border-top: 1px solid var(--hair);
}
.animal-ideas h2 {
  color: var(--teal);
  margin: 0 0 .2em;
}
.animal-ideas p {
  margin: 0;
}
.sheet-flow p {
  widows: 1;
  orphans: 1;
}
.sheet-flow .detail-actions {
  display: block;
  margin-top: 6px;
}
.sheet-flow .detail-actions a {
  margin: 6px 12px 0 0;
}
.sheet-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.sheet-pager span {
  font-size: 14px;
  color: var(--dim);
}
.sheet-pager[hidden] {
  display: none;
}
@media (max-width: 730px) and (min-aspect-ratio: 1/1) {
  .with-figure .sheet-spread {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
@media (max-width: 730px) and (max-aspect-ratio: 1/1) and (min-height: 740px) {
  .with-figure .sheet-spread {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 9px;
  }
}
@media (max-width: 730px) and (max-aspect-ratio: 1/1) and (max-height: 739px) {
  .with-figure .sheet-spread {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet-tabs .figure-tab {
    display: block;
  }
  .with-figure .sheet-illustration,
  .with-figure[data-sheet="figure"] .sheet-paper {
    display: none;
  }
  .with-figure[data-sheet="figure"] .sheet-illustration {
    display: flex;
  }
}
@media (max-width: 420px), (max-height: 480px) {
  .detail-sheets {
    gap: 6px;
  }
  .sheet-paper {
    padding: 12px;
  }
  .sheet-tabs button,
  .sheet-pager button {
    font-size: 14px;
    padding: 4px 8px;
  }
  .sheet-flow {
    line-height: 1.6;
  }
  .sheet-flow h2 {
    font-size: 21px;
  }
  .sheet-pager {
    margin-top: 4px;
  }
}
