/* V28: smooth, readable section navigation with the V27 persistent header. */
html {scroll-behavior:smooth!important;scroll-padding-top:calc(var(--karma-header-offset, 76px) + 8px)!important;}
body.spatial.karma main > section[id] {scroll-margin-top:calc(var(--karma-header-offset, 76px) + 8px)!important;}
/* Proximity snap only on wide pointer-driven layouts. Long dossier content remains scrollable. */
@media (min-width: 1024px) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html {scroll-snap-type:y proximity!important;}
  body.spatial.karma main > section#intro,
  body.spatial.karma main > section#archive,
  body.spatial.karma main > section#world-portals,
  body.spatial.karma main > section#author,
  body.spatial.karma main > section#updates {scroll-snap-align:start!important;scroll-snap-stop:normal!important;}
  /* No snapping on long book dossiers: readers must retain full control. */
  body.spatial.karma main > section#book-one,
  body.spatial.karma main > section#book-two,
  body.spatial.karma main > section#book-three {scroll-snap-align:none!important;}
}
@media (max-width:1023px), (pointer:coarse) {html{scroll-snap-type:none!important;}}
@media (prefers-reduced-motion:reduce) {html{scroll-behavior:auto!important;scroll-snap-type:none!important;}}
