.pose-reader { margin: .85rem 0 1rem; }
.pose-reader > a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.pose-reader img { display:block; width: auto; max-width: 100%; height: auto; max-height: min(74vh,41rem); }
.pose-reader figcaption { max-width: 47rem; margin: .85rem auto 0; line-height: 1.55; }
.pose-reader figcaption a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.pose-history { border-block: 1px solid var(--line); padding: .65rem 0; }
.pose-history summary { cursor: pointer; min-height: 2.75rem; align-content: center; }
.pose-history input, .pose-history label { display: none; }
@media screen and (max-width:45rem) {
  .pose-viewer[data-enhanced]:has(.pose-panel[data-reader]:not([hidden])) > .pose-rounds:not([hidden]) { display: none; }
  .pose-reader img { width: 100%; max-height: none; }
  .pose-history input { display: inline-block; position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow:hidden; }
  .pose-history label {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .8rem;
    margin: .25rem .35rem .4rem 0; border: 1px solid var(--line); border-radius: .4rem; cursor: pointer;
  }
  .pose-history input:checked + label { background: var(--ink); color: var(--paper); }
  .pose-history input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
  .pose-viewer[data-enhanced] .pose-history .pose-pair figure[data-round] { display: block; }
  .pose-viewer .pose-history input[value="first"]:checked ~ .pose-pair figure[data-round="second"],
  .pose-viewer .pose-history input[value="second"]:checked ~ .pose-pair figure[data-round="first"] { display: none; }
}
