/* ============================================================================
   The reading line: the Story line's gold line for pages that are read, not
   scrolled through (Aldo's picks, 2 Nov 2026: blog-article__line for the 67
   answers, and legal__look for the privacy policy, the terms and the
   accessibility statement, "as on the 67 answers").

   A page marks the column it runs down with data-read (the selector of its
   stops, each part's heading) and puts <span class="read-line"
   data-read-line> in it; web/js/read-line.js places the line from the first
   stop to the last (or to the column's end, with data-read-to-end) and lights
   each stop as its heading passes the line 30% down the screen, where the
   page's contents mark the part you're in. The line fills as you read, its
   leading edge on that same line. Without scroll-driven animations, with
   reduced motion or Stop animations it's filled and every stop lit; without
   script it isn't drawn. It sits in the gutter, or the gap beside the
   contents, and never narrows the text. Each page sets where (--rl-x, from
   the column's left edge) and, where a heading's first line isn't at its top,
   how far down a stop sits (--rl-at).
   ========================================================================== */
[data-read] { position: relative; z-index: 0; --rl-x: calc(var(--gut) / -2); --rl-w: 2px; --rl-dot: 12px; --rl-ring: var(--paper); }
@media (max-width: 349px) { [data-read] { --rl-dot: 11px; } }
@media (min-width: 900px) { [data-read] { --rl-w: 3px; --rl-dot: 16px; } }
.read-line { position: absolute; z-index: -1; left: var(--rl-x); top: 0; height: 0; width: var(--rl-w); margin-left: calc(var(--rl-w) / -2); pointer-events: none; }
.read-line::before, .read-line::after { content: ""; position: absolute; inset: 0; border-radius: 2px; }
.read-line::before { background: var(--border); }
.read-line::after { background: linear-gradient(var(--gold-1), var(--gold-mid)); transform-origin: top; }
.rl-stop { position: relative; }
.rl-stop::before { content: ""; position: absolute; z-index: 1; left: calc(var(--rl-x) - var(--rl-dot) / 2); top: calc(var(--rl-at, 0.6em) - var(--rl-dot) / 2);
  box-sizing: border-box; width: var(--rl-dot); height: var(--rl-dot); border-radius: 50%; background: var(--gold-1); border: calc(var(--rl-dot) / 4) solid var(--rl-ring); box-shadow: 0 0 0 1.5px var(--gold-mid); }
html:not(.js) .read-line { display: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js:not(.a11y-still) .read-line { view-timeline: --read-line block; view-timeline-inset: 29.5% 70%; }
    html.js:not(.a11y-still) .read-line::after { animation: rl-fill linear both; animation-timeline: --read-line; animation-range: cover 0% cover 100%; }
    html.js:not(.a11y-still) .rl-stop:not(.is-lit)::before { background: var(--rl-ring); box-shadow: 0 0 0 1.5px var(--border-strong); }
  }
}
@keyframes rl-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media print { .read-line, .rl-stop::before { display: none; } }
