/*
Paṇatā v2.1.3 RC6.4 — Reading Orientation
CSS-only progressive enhancement.
No JavaScript, no chapter animation, no typography or geometry changes.
*/

html {
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body.philosophy-rc6 .rc6-chapter,
body.philosophy-rc6 .rc63-notes,
body.philosophy-rc6 .rc6-continue {
  scroll-margin-top: 24px;
}

/*
Deep-link arrival cue:
briefly clarifies which chapter or note the reader has reached without moving,
hiding, resizing or fading any content.
*/
body.philosophy-rc6 .rc6-chapter:target .rc6-label strong,
body.philosophy-rc6 .rc63-notes:target .rc6-label strong,
body.philosophy-rc6 .rc6-continue:target .rc6-label strong {
  text-decoration-line: underline;
  text-decoration-color: rgba(144, 103, 53, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

body.philosophy-rc6 .rc63-note:target {
  outline: 1px solid rgba(144, 103, 53, 0.34);
  outline-offset: 12px;
  border-radius: 1px;
}

body.philosophy-rc6 .rc63-note-ref {
  scroll-margin-top: 28px;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 14px;
  }

  body.philosophy-rc6 .rc6-chapter,
  body.philosophy-rc6 .rc63-notes,
  body.philosophy-rc6 .rc6-continue,
  body.philosophy-rc6 .rc63-note-ref {
    scroll-margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

@media print {
  body.philosophy-rc6 .rc6-chapter:target .rc6-label strong,
  body.philosophy-rc6 .rc63-notes:target .rc6-label strong,
  body.philosophy-rc6 .rc6-continue:target .rc6-label strong {
    text-decoration: none;
  }

  body.philosophy-rc6 .rc63-note:target {
    outline: none;
  }
}
