.guide-reader {
  border-top: 1px solid var(--line);
  padding-block: clamp(36px, 6vw, 82px);
  scroll-margin-top: 80px;
}
.guide-reader-inner {
  max-width: 1050px;
  margin-inline: auto;
}
.guide-reader h2 {
  margin-bottom: .3em;
}
.guide-reader-intro {
  color: var(--dim);
  margin-bottom: 1.25rem;
}
.guide-sheets {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  background: #191919;
}
.guide-sheets::-webkit-scrollbar { display: none }
.guide-sheets:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.guide-sheet {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.guide-sheet img {
  width: 100%;
  height: auto;
}
.guide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-block: .75rem;
}
.guide-controls[hidden] { display: none }
.guide-controls button {
  min-height: 44px;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.guide-controls button:disabled {
  opacity: .45;
  cursor: default;
}
.guide-tools { margin-top: .8rem }

.guide-arrow { display: none }

@media (hover: hover) and (pointer: fine) {
  .guide-reader {
    scroll-margin-top: 0;
    padding-block-start: clamp(1rem, 3vh, 2.5rem);
  }
  .guide-reader-inner {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    height: max(24rem, calc(100svh - clamp(1rem, 3vh, 2.5rem) - 2.5rem));
    max-width: min(100%, calc(100svh * 1800 / 1272 + 2 * var(--edge)));
  }
  .guide-sheets {
    justify-self: center;
    height: 100%;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1800 / 1272;
  }
  .guide-sheet img {
    height: 100%;
    object-fit: contain;
  }
  .guide-controls button { min-width: 44px }
  .guide-arrow { display: inline; font-size: 1.25rem }
  .guide-label { display: none }
}
