/* Sepulchre v14: low-risk quality safeguards. Preserves visual theme and branding. */
html { scroll-padding-top: 110px; }
body.s11-ready :is(main h2[id],main h3[id],.v10-guide-step[id],.v10-guide-step h2[id]) { scroll-margin-top: 120px; }
body.s11-ready .menu-toggle:focus-visible,
body.s11-ready .s13-guide-toc a:focus-visible,
body.s11-ready .s12-soft-btn:focus-visible { outline: 2px solid #ff6c85; outline-offset: 3px; }
body.s11-ready .pill-nav .menu-toggle[aria-expanded="true"] { color: #fff; }
body.s11-ready .site-footer a:hover { text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 760px) {
  body.s11-ready .pill-nav.pill-nav-compact { max-width: 100%; }
  body.s11-ready .pill-nav.pill-nav-compact .nav-items {
    max-height: min(66vh, 490px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.s11-ready .pill-nav.pill-nav-compact .nav-link { min-height: 42px; display: flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body.s11-ready .pill-nav,
  body.s11-ready .pill-nav * { transition: none !important; animation: none !important; }
}
@media (max-width: 480px) {
  /* Keep decorative hero/final-section overflow from creating a sideways scroll. */
  body.s11-ready .v9-hero, body.s11-ready .v9-final { overflow-x: clip; }
  body.s11-ready :is(.v9-hero,.v9-final) .v9-hero-actions { max-width: 100%; }
  body.s11-ready :is(.v9-hero,.v9-final) .v9-button { max-width: 100%; }
}
