/* Home page: the held pane and its three-line contents list, the chapter entries. Adds to site.css. */

/* HELD PANE: the bar opens the pane; the list sits at its foot on desktop. */
.split__held > .bar { margin-bottom: 1.5rem; }
.split__held .where { max-width: 30rem; }

/* STEPS: 01, 02, 03 with dotted leaders. site.js adds .is-current to the link whose chapter
   crosses the middle of the window; only the step's name takes the underline, instantly.
   On phones the pane is not held, so the contents line at the top does this job alone. */
.steps { display: none; list-style: none; margin: 0; padding: 0; }
.steps a { display: flex; align-items: baseline; gap: 0.6rem; min-height: 2.75rem; padding-block: 0.55rem; color: var(--ink); text-decoration: none; font-size: 1.0625rem; }
.steps a.is-current { text-decoration: none; }
.steps__n { font-family: var(--display); font-size: 1.3rem; line-height: 1; }
.steps a:hover .steps__name { text-decoration: underline; text-underline-offset: 0.3em; }
.steps a.is-current .steps__name { text-decoration: underline; text-decoration-thickness: 0.14em; text-underline-offset: 0.3em; }

/* CHAPTERS: two blocks can share one step; the second keeps its full bottom space.
   A new step (02, 03) stands further off than a second block of the same step. */
.group > .block:last-child { padding-bottom: var(--sect); }
.split__run > [data-spy] + [data-spy] { margin-top: clamp(1.5rem, 5vh, 3.5rem); }
.block .lede { margin-bottom: 1.5rem; }
.group-head { margin: 1.75rem 0 0.2rem; }

/* STEP LABEL: the numeral opens each block at chapter size, its word beside it. */
.block > .step { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; margin: 0 0 0.75rem; font-size: 1.2rem; }
.step__n { font-family: var(--display); font-size: clamp(3rem, 5vw, 4.25rem); line-height: 1; }

/* OWNER'S WORDS: set like the opening quotation, at heading size. */
.said { font-family: var(--display); font-size: 1.3rem; line-height: 1.3; max-width: 34rem; margin: 1.5rem 0; text-wrap: balance; }
.said::before { content: "\201C"; }
.said::after { content: "\201D"; }

/* ENTRIES: a repair's name, a dotted leader, its kind; one plain sentence under it.
   Every row has the same form; a picture stands after the list, full width. */
.entries { list-style: none; margin: 0 0 1.1em; padding: 0; }
.entry { padding-block: 0.6rem; }
.entry__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; }
.entry__name { font-family: var(--text); font-size: 1.2rem; line-height: 1.3; margin: 0; }
.entry__name a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.entry__kind { font-size: 0.95rem; }
.entry p { margin: 0; max-width: 34rem; }
.shot--after { margin-top: 1rem; }

/* STANDALONE LINKS and the address. */
.go { display: inline-flex; align-items: center; min-height: 2.75rem; }
.addr { margin: 0 0 1.1em; font-size: 1.2rem; line-height: 1.45; }
.addr span { display: block; }

/* HAND-OFF: the closing call stands clear of the last links under its own teal bar. */
.handoff { margin-top: clamp(1.5rem, 5vh, 3.5rem); }
.handoff > .bar { margin-bottom: 1.25rem; }
.handoff .next { border-top: 0; padding-top: 0; }

/* DESKTOP: the list appears in the held pane; tall still lifes never outgrow the window. */
@media (min-width: 51.25rem) {
  .steps { display: block; }
  .split__run .shot--tall:not(.shot--first) img { max-height: calc(100vh - var(--head-h) - var(--pad) * 2); max-height: calc(100svh - var(--head-h) - var(--pad) * 2); }
}
