/* Silver Jubilee eBook page. Generated by shared/build.py: edit the build, not this file.
   Loads after the site's own styles.css and adds only this page's layouts. */
:root { --hdr: 126px; --stuck: 0px; --paper: #FFFFFF; --gold-line: rgba(176, 137, 24, .42); }
@media (max-width: 480px) { :root { --hdr: 89px; } }
/* --stuck is how much of the screen a stuck header covers. The site's header is written to stick, but
   styles.css also sets overflow-x: hidden on html and body, which makes body a scroll container, so
   position: sticky never takes hold and the header scrolls away on every page. If the site fixes that
   (overflow-x: clip), set --stuck: var(--hdr) and the page links will clear the header again. */

/* Before the book: what this is, and the PDF, without passing a single page */
.jb-lead { padding: 2.3rem 0 2.2rem; background: var(--paper); }
.jb-lead .kicker { color: var(--crimson); font-weight: 500; margin-bottom: .75rem; }
.jb-intro { max-width: 44rem; font-size: 1.06rem; line-height: 1.75; font-weight: 400; color: var(--ink-soft); }
.jb-pdf { margin-top: 1.35rem; }
.jb-pdf .btn { font-weight: 500; text-align: center; }
@media (max-width: 560px) { .jb-pdf .btn { display: block; width: 100%; } }
.jb-pdf .btn::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .75rem;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; vertical-align: .2em; transform: rotate(45deg); }
.jb-nowrap { white-space: nowrap; }

/* The book's own type: crimson headlines, gold small capitals, serif words */
.jb-folio { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.5rem; font-family: var(--sans);
  font-size: .68rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); line-height: 1.2; }
.jb-folio::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.jb-head { margin: 0 0 .85rem; font-family: var(--serif); font-weight: 500; color: var(--crimson);
  font-size: clamp(1.75rem, 3.1vw, 2.55rem); line-height: 1.13; letter-spacing: .005em; }
.jb-quote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.15vw, 1.78rem);
  line-height: 1.5; color: var(--ink); }
.jb-quote p { margin: 0; }
.jb-qm { color: var(--gold); font-style: normal; }
.jb-attr { display: flex; align-items: center; gap: .8rem; margin: 1.15rem 0 0; font-family: var(--sans);
  font-size: .7rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); line-height: 1.3; }
.jb-attr::before { content: ""; flex: none; width: 2rem; height: 1px; background: currentColor; }
.jb-center { text-align: center; }
.jb-center .jb-attr { justify-content: center; }
.jb-center .jb-attr::after { content: ""; flex: none; width: 2rem; height: 1px; background: currentColor; }
.jb-cap { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.75vw, 1.38rem); line-height: 1.55; color: var(--ink-soft); }
.jb-fig { margin: 0; }
.jb-photo { display: block; width: 100%; height: auto; }
.band-cream { background: var(--cream); }
.band-paper { background: var(--paper); }

/* Cover: the one photograph given a mat */
.jb-framed { padding: 7px; border: 1px solid var(--gold-line); }
.jb-cover-school { margin: 0 0 .55rem; font-family: var(--sans); font-size: .76rem; font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.jb-cover-occ { margin: 0 0 .6rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink-soft); }
.jb-cover-title { margin: 0 0 .9rem; font-family: var(--serif); font-weight: 500; color: var(--crimson);
  font-size: clamp(2.25rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: .005em; }
.jb-cover-sub { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--ink-soft); }
/* The note under the cover photo: a caption's voice, quieter than every line of the title block */
.jb-cover-note { margin: .8rem 0 0; text-align: center; font-family: var(--sans); font-size: .78rem; font-weight: 400;
  letter-spacing: .04em; line-height: 1.6; color: var(--ink-soft); }
.jb-cover-note a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-line);
  text-underline-offset: 3px; }
.jb-cover-note a:hover { color: var(--crimson); text-decoration-color: currentColor; }
.jb-note-sep { color: var(--gold); padding: 0 .2em; }
@media (max-width: 480px) {
  /* Phones: the longer name holds one line from 360px up (balanced into two below that); the note takes two lines,
     the former name above today's address */
  .jb-cover-school { letter-spacing: .2em; text-wrap: balance; }
  .jb-cover-note .jb-note-sep { display: none; }
  .jb-cover-note a { display: block; width: fit-content; margin-inline: auto; }
}

/* Thank-you page */
.jb-thanks .jb-head { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.jb-body p { margin: 0 0 .8rem; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.55; color: var(--ink); }

/* Flyer: the image whole, its words one tap away */
.jb-details { margin-top: 1.4rem; }
.jb-details > summary { display: inline-flex; align-items: center; gap: .65rem; list-style: none; cursor: pointer;
  padding: .7rem 1.15rem; border: 1px solid var(--crimson); border-radius: 2px; color: var(--crimson);
  font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.jb-details > summary::-webkit-details-marker { display: none; }
.jb-details > summary::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.jb-details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.jb-transcript { margin: 1.3rem 0 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; color: var(--ink); }

/* After the book: the site's own closing ask */
.jb-cta { text-align: center; border-top: 1px solid var(--line); background: var(--paper); }
.jb-cta h2 { margin-bottom: 1.2rem; }

/* ---- Version A: the editorial scroll ---- */
.pg { padding: clamp(2.6rem, 6.5vw, 5.4rem) 0; }
.pg, .jb-pair-item { scroll-margin-top: var(--stuck); }
.jb-words { margin-top: 1.9rem; }
.lay-wide .jb-figs, .lay-wide-cols .jb-figs, .lay-head .jb-figs, .kind-thank-you .jb-figs { max-width: 1080px; margin-inline: auto; }
.lay-wide .jb-words, .lay-head .jb-words, .lay-duo .jb-words { max-width: 46rem; margin-inline: auto; }
.lay-head .jb-head-top { max-width: 46rem; margin: 0 auto 1.8rem; text-align: center; }
.kind-cover .jb-figs { max-width: 1000px; margin-inline: auto; }
.kind-cover .jb-words { text-align: center; margin-top: 2.3rem; }
.kind-thank-you .jb-words { max-width: 44rem; margin-inline: auto; }
.kind-flyer .jb-compose { max-width: 560px; margin-inline: auto; text-align: center; }
/* A testimonial whose photo is held: the words alone, a centered page with room around it */
.lay-text .jb-words { max-width: 44rem; margin: 0 auto; padding: clamp(1.4rem, 5vw, 3.6rem) 0; }
.lay-text .jb-head { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 1.2rem; }
.lay-text .jb-quote { font-size: clamp(1.45rem, 2.6vw, 2.05rem); }
@media (min-width: 900px) {
  .lay-split-l .jb-compose, .lay-split-r .jb-compose { display: grid; align-items: center; gap: clamp(2.4rem, 4.5vw, 4.2rem); }
  .lay-split-l .jb-compose { grid-template-columns: 7fr 5fr; }
  .lay-split-r .jb-compose { grid-template-columns: 5fr 7fr; }
  .lay-split-r .jb-figs { order: 2; }
  .lay-split-l .jb-words, .lay-split-r .jb-words { margin-top: 0; }
  .lay-wide-cols .jb-words { max-width: 1080px; margin-inline: auto; display: grid; grid-template-columns: 5fr 7fr;
    column-gap: 3.2rem; align-items: start; }
  .lay-wide-cols .jb-head { grid-row: span 2; margin: 0; }
  .lay-duo .jb-figs { display: grid; grid-template-columns: 7fr 4fr; gap: 1.8rem; align-items: end; max-width: 1080px; margin-inline: auto; }
  .jb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.6rem); }
  .jb-pair .jb-fig { aspect-ratio: 16 / 9; }
  .jb-pair .jb-fig img { height: 100%; object-fit: contain; object-position: center bottom; }
  .jb-pair .jb-words { margin-top: 1.4rem; }
}
@media (max-width: 899px) {
  /* Phones: the wide pages run edge to edge, the split pages stay inset, so the scroll breathes */
  .lay-wide .jb-figs, .lay-wide-cols .jb-figs, .lay-head .jb-figs, .lay-duo .jb-fig-1, .kind-thank-you .jb-figs {
    width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
  .lay-duo .jb-fig-2 { width: 64%; margin: 1rem 0 0 auto; }
  .jb-pair-item + .jb-pair-item { margin-top: 3.2rem; }
}
