/* Keep one title in each chapter; structural stone anchors retain geometry. */
.wordmark > span,
.intro-meta,
#story .chapter p,
#story .chapter-index,
.scroll-label,
.fixed-footer {
  display: none !important;
}
.monolith-metric,
.monolith-detail,
.monolith-leader[data-leader="detail"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Audio remains opt-in and fully labelled to assistive technology. */
#sound-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: transparent !important;
}
#sound-toggle::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 9px;
  width: 20px;
  height: 20px;
  background-image: var(--type-gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 10v4M9 6v12M13 3v18M17 7v10' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 10v4M9 6v12M13 3v18M17 7v10' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
#sound-toggle[aria-pressed="false"]::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  width: 22px;
  height: 1.5px;
  transform: rotate(-35deg);
  background-image: var(--type-gradient);
}
@media (pointer: coarse) {
  #sound-toggle { width: 44px; height: 44px; }
  #sound-toggle::before { left: 12px; top: 12px; }
  #sound-toggle[aria-pressed="false"]::after { left: 11px; top: 21px; }
}
/* Short phones: 16px minimum between the CTA and the audio touch target. */
@media (max-width: 350px) {
  .chapter-finale {
    padding-bottom: calc(max(10svh, 72px) + env(safe-area-inset-bottom));
  }
}
