/* The final figure occupies the same scroll panel as the preceding research figures. */
.board.is-return .glass, .board.is-return .board-caption { display: none; }
#beat-return .prose > p > a { white-space: nowrap; }
#watermark-edit, #beat-return { scroll-margin-top: 24svh; }
.tag-board .tag-example {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0;
}
.tag-example .tag-images { grid-template-columns: 1fr; }
.tag-board .tag-images {
  flex: 1;
  min-height: 0;
  grid-template-rows: repeat(3, minmax(0,1fr));
}
.tag-images > div {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  min-height: 0;
  align-items: center;
  gap: 1rem;
  padding-block: .25rem;
}
.tag-images > div + div { box-shadow: inset 0 1px var(--figure-line); }
.tag-images b { margin: 0; font: 550 clamp(1.2rem,2.1vw,1.85rem)/1.15 var(--serif); }
.tag-board .tag-images img {
  justify-self: end;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  width: auto;
  object-fit: contain;
}
.tag-board figcaption { margin: .6rem 0 0; color: var(--figure-muted); text-wrap: pretty; }
@media (max-width:850px), (max-height:540px) and (max-width:1050px) {
  #watermark-edit, #beat-return { scroll-margin-top: calc(clamp(275px,47svh,420px) + 12px); }
  .tag-board figcaption { font-size: .84rem; line-height: 1.3; }
  .tag-board .tag-images { gap: .3rem; }
}
@media (max-width:365px) and (max-height:650px) {
  #watermark-edit, #beat-return { scroll-margin-top: calc(clamp(350px,61svh,380px) + 12px); }
}
@media (min-width:650px) and (max-height:540px) and (orientation:landscape) {
  #watermark-edit, #beat-return { scroll-margin-top: calc(clamp(220px,58svh,295px) + 12px); }
  .tag-board .tag-example { display: grid; grid-template-columns: 2fr 1fr; align-items: center; column-gap: 1.5rem; }
  .tag-board .tag-images { height: 100%; }
}
@media print {
  #beat-return .tag-example { width: 18rem; max-width: 100%; break-inside: avoid; }
}
