/* Loaded only on paper pages. Four native links remain visible at phone widths. */
.project-nav.project-chapters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding-block:3px;overflow:visible;align-items:stretch;background:#fbfcff;transform:translateZ(0)}
.project-nav.project-chapters a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:4px 1px;font-size:14px;line-height:1.35;text-align:center;white-space:normal;overflow-wrap:normal;word-break:normal;text-wrap:balance}
.project-chapter-target{scroll-margin-top:50px}
/* A chapter arrival needs a location cue, not an outline around the entire demo. */
.project-chapter-target[tabindex="-1"]:focus-visible,
.interactive-section#demo[tabindex="-1"]:focus-visible,
.project-section#resources[tabindex="-1"]:focus-visible{outline:none;box-shadow:inset 0 3px 0 #795521}
@media (forced-colors:active){
  .project-chapter-target[tabindex="-1"]:focus-visible,
  .interactive-section#demo[tabindex="-1"]:focus-visible,
  .project-section#resources[tabindex="-1"]:focus-visible{outline:2px solid Highlight;outline-offset:2px}
}
.interactive-section .project-chapter-jump{margin:12px 0 16px;font-size:14px;line-height:1.5}
.interactive-section .project-chapter-jump a{display:inline-flex;align-items:center;min-height:44px}
/* Together with the site's 90px scroll padding, targets clear both sticky bars. */
@media print{.project-nav.project-chapters{display:none}}
