/* Small editorial details; the guide stays readable without JavaScript. */
.hero-mark { overflow: hidden; }
@keyframes guide-photo-approach {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: guide-photo-approach 24s ease-out both; }
}

.reading-bookmark {
  --reading-progress: 0;
  position: fixed;
  top: 104px;
  left: max(4px, calc((100vw - 1060px) / 2 - 28px));
  width: 8px;
  height: min(32vh, 180px);
  z-index: 400;
  pointer-events: none;
  contain: layout style;
}
.reading-bookmark::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - .5px);
  width: 1px;
  background: var(--line);
}
.reading-bookmark::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(20px + (100% - 20px) * var(--reading-progress));
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%);
}
.reading-bookmark[hidden] { display: none; }

/* Reuse the existing section rules rather than adding another line. */
.group-heading { position: relative; border-bottom-color: transparent; }
.group-heading::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
}
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 64px;
  height: 1px;
  background: var(--teal);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .rule-awaiting::after { transform: scaleX(0); }
  .rule-awaiting.rule-visible::after {
    transform: scaleX(1);
    transition: transform 850ms cubic-bezier(.22, 1, .36, 1);
  }
}
@media (max-width: 570px) {
  .reading-bookmark { top: 82px; left: 4px; width: 5px; height: min(24vh, 120px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark img { animation: none; transform: none; }
  .rule-awaiting::after { transform: none; transition: none; }
}
@media print {
  .reading-bookmark { display: none; }
  .hero-mark img { animation: none; transform: none; }
  .rule-awaiting::after { transform: none; }
}
