/* OBN Publishing — v3 "House Style"
 *
 * Professional publisher skin: light ground, navy ink, restrained gold.
 * The v2 variable NAMES are kept (inner pages reference them inline) with
 * new values, so every page inherits this skin without a rewrite.
 * Motion policy: fade only, never movement on load (owner preference).
 */

@font-face { font-family: "Libre Caslon Display"; src: url("/assets/fonts/libre-caslon-display-latin.woff2") format("woff2");
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
             font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
             font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink:       #10203a;   /* navy — headings, footer, plates */
  --ink-2:     #182b4d;
  --text:      #223146;
  --gold:      #b98b2e;   /* display accent (>=20px) */
  --gold-ink:  #8a6414;   /* small gold text — AA on light ground */
  --gold-lit:  #d8b25e;   /* gold on navy */
  --vermilion: #c0432c;   /* rationed: legend flags, required marks */
  --paper:     #ffffff;
  --paper-2:   #f4f6f9;
  --slate:     #5b6b80;
  --rule:      #e3e8ef;
  --rule-ink:  rgba(216,178,94,.28);
  --shadow:    0 1px 2px rgba(16,32,58,.06), 0 12px 32px -12px rgba(16,32,58,.16);
  --radius:    10px;

  --measure: 34rem;
  --display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --body:    "Source Serif 4", Georgia, serif;
  --label:   "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { margin: 0; background: var(--paper); color: var(--text);
       font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-ink); outline-offset: 3px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap  { width: min(74rem, 100% - 3rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: var(--measure); }

.band { padding: clamp(3rem, 6.5vw, 5.25rem) 0; }
.plate { background: linear-gradient(175deg, var(--ink), #0b1830 78%); color: #eef2f8; }
.plate a { color: var(--gold-lit); }
.paper2 { background: var(--paper-2); }

.railed { display: grid; gap: 0 clamp(1.5rem, 4vw, 3rem);
          grid-template-columns: [rail] 3.5rem [text] minmax(0, var(--measure)) [note] minmax(0, 1fr); }
.railed > .rail { grid-column: rail; }
.railed > * { grid-column: text; }
.railed > .note { grid-column: note; }
.rail__n { font-family: var(--display); font-size: 1.35rem; color: var(--gold-ink); line-height: 1; padding-top: .4rem; }
.plate .rail__n { color: var(--gold-lit); }
@media (max-width: 60rem) {
  .railed { grid-template-columns: 1fr; }
  .railed > *, .railed > .rail, .railed > .note { grid-column: 1; }
  .rail__n { padding-bottom: .6rem; }
}

/* ── Type ───────────────────────────────────────────────────────────────── */
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08;
         letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .5em; color: var(--ink); }
.plate h1, .plate h2, .plate h3 { color: #fff; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-family: var(--label); font-weight: 650; font-size: 1.12rem; line-height: 1.35;
     letter-spacing: .01em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.12rem, 1.9vw, 1.32rem); line-height: 1.55; color: var(--slate); }
.plate .lede { color: #b9c6da; }
.label { font-family: var(--label); font-size: .7rem; font-weight: 700;
         letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .9rem; }
.plate .label { color: var(--gold-lit); }
.meta { font-family: var(--label); font-size: .74rem; letter-spacing: .09em;
        text-transform: uppercase; color: var(--slate); }
.plate .meta { color: #93a5bd; }
.rule { border: 0; height: 1px; background: var(--rule); margin: 2.25rem 0; }
.plate .rule { background: var(--rule-ink); }
.dropcap::first-letter { font-family: var(--display); font-size: 3.4em; line-height: .82;
  float: left; margin: .05em .1em 0 0; color: var(--ink); }
.ornament { display: flex; align-items: center; gap: 1.2rem; margin: 2.5rem 0; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.plate .ornament::before, .plate .ornament::after { background: var(--rule-ink); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94);
            backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); color: var(--ink); }
.masthead__in { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; flex-wrap: wrap; }
.wordmark { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; margin-right: auto; }
.wordmark__o { font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
.wordmark__p { font-family: var(--label); font-size: .58rem; font-weight: 700;
               letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.nav { display: flex; gap: 1.35rem; flex-wrap: wrap; align-items: center;
       font-family: var(--label); font-size: .8rem; font-weight: 550; }
.nav a { color: #45566d; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav a.nav__cta { background: var(--ink); color: #fff; padding: .6rem 1.1rem; border-radius: 8px;
                  border-bottom: 0; transition: background .16s ease; }
.nav a.nav__cta:hover { background: var(--ink-2); color: #fff; }
.announce { background: var(--gold); color: #1c2a42; font-family: var(--label); font-size: .78rem;
            font-weight: 650; text-align: center; padding: .5rem 1rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-block; font-family: var(--label); font-size: .8rem; font-weight: 650;
       letter-spacing: .05em; padding: .85rem 1.55rem; text-decoration: none; cursor: pointer;
       border-radius: 8px; border: 1px solid transparent; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--ink-2); }
.plate .btn--solid { background: var(--gold); color: #1c2a42; }
.plate .btn--solid:hover { background: var(--gold-lit); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #c9d3e0; }
.btn--ghost:hover { border-color: var(--ink); }
.plate .btn--ghost { color: #e8edf5; border-color: rgba(255,255,255,.35); }
.plate .btn--ghost:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ── HOME SLIDER ────────────────────────────────────────────────────────── */
.slider { position: relative; background: linear-gradient(175deg, var(--ink), #0b1830 80%); color: #eef2f8; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.slide.is-on { position: relative; opacity: 1; pointer-events: auto; }
.slide__in { display: grid; grid-template-columns: 1.25fr minmax(0, 17rem); align-items: center;
             gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(3.25rem, 7vw, 5.5rem) 0; min-height: 30rem; }
.slide__art { justify-self: center; width: 100%; max-width: 17rem; }
.slide h1, .slide h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
@media (max-width: 56rem) {
  .slide__in { grid-template-columns: 1fr; min-height: 34rem; padding-bottom: 4.5rem; }
  .slide__art { order: -1; max-width: 11rem; }
}
.slider__ui { position: absolute; inset: auto 0 1.1rem 0; display: flex; justify-content: center;
              align-items: center; gap: 1rem; z-index: 3; }
.slider__dots { display: flex; gap: .55rem; }
.slider__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
               background: rgba(255,255,255,.32); transition: background .2s ease; }
.slider__dot.is-on { background: var(--gold-lit); }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(12,22,40,.45); color: #fff; font-size: 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .16s ease; }
.slider__arrow:hover { background: rgba(255,255,255,.14); }
.slider__arrow--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.slider__arrow--next { right: clamp(.5rem, 2vw, 1.5rem); }
@media (max-width: 44rem) { .slider__arrow { display: none; } }

/* ── Cards & grids ──────────────────────────────────────────────────────── */
.cols { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.cols--3 { grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
        padding: 1.7rem; box-shadow: var(--shadow); }
.paper2 .card, .plate .card { color: var(--text); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--paper-2);
              color: var(--gold-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card .icon svg { width: 22px; height: 22px; }

.lane { border-top: 3px solid var(--gold); background: #fff; border-radius: 0 0 var(--radius) var(--radius);
        border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
        padding: 1.6rem; box-shadow: var(--shadow); }
.lane--services { background: #fff; }
.plate .lane, .plate .lane--services { color: var(--text); }
.checks { list-style: none; margin: 0 0 1rem; padding: 0; }
.checks li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 700; }

/* ── Book object ────────────────────────────────────────────────────────── */
.jacket { position: relative; aspect-ratio: 2/3; display: flex; flex-direction: column;
          justify-content: center; padding: 1.5rem 1.2rem; text-align: center;
          background: linear-gradient(168deg, #16243a, #0b1422 72%);
          box-shadow: 0 2px 4px rgba(9,16,30,.35), 0 26px 48px -20px rgba(9,16,30,.5);
          border-radius: 3px 7px 7px 3px; }
.jacket::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(255,255,255,.08) 62%, rgba(0,0,0,.16));
  border-right: 1px solid rgba(0,0,0,.3); border-radius: 3px 0 0 3px; }
.jacket__t { font-family: var(--display); font-size: clamp(1.45rem, 4vw, 1.9rem);
             line-height: 1.03; color: var(--gold-lit); margin-bottom: .5rem; }
.jacket__a { font-family: var(--label); font-size: .58rem; font-weight: 650;
             letter-spacing: .2em; text-transform: uppercase; color: #b8c5d6; }
.jacket__rule { width: 34%; height: 1px; background: var(--gold); margin: .65rem auto; opacity: .8; }
.book { display: grid; grid-template-columns: minmax(0, 13.5rem) 1fr;
        gap: clamp(1.5rem, 4.5vw, 3rem); align-items: start; }
@media (max-width: 44rem) { .book { grid-template-columns: 1fr; } .book .jacket { max-width: 12rem; } }
.pill { display: inline-block; font-family: var(--label); font-size: .64rem; font-weight: 700;
        letter-spacing: .12em; text-transform: uppercase; padding: .34rem .7rem; border-radius: 99px;
        background: rgba(185,139,46,.14); color: var(--gold-ink); }
.plate .pill { background: rgba(216,178,94,.16); color: var(--gold-lit); }

.spec { margin: 0; font-size: .95rem; }
.spec div { display: flex; align-items: baseline; gap: .5rem; padding: .34rem 0; border-bottom: 1px dotted var(--rule); }
.spec dt { font-family: var(--label); font-size: .68rem; font-weight: 650; letter-spacing: .1em;
           text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.spec dd { margin: 0 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; }

.toc { list-style: none; margin: 0; padding: 0; }
.toc li { padding: .45rem 0; border-bottom: 1px dotted var(--rule); display: flex; align-items: baseline; gap: .75rem; }
.toc .n { font-family: var(--label); font-size: .66rem; font-weight: 650; letter-spacing: .11em;
          text-transform: uppercase; color: var(--slate); min-width: 5.5rem; }
.toc .part { border-bottom: 0; padding-top: 1.4rem; }
.toc .part .n { color: var(--gold-ink); }
.toc .part .t { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }

/* ── Apparatus (source notes) ───────────────────────────────────────────── */
.cite { border-bottom: 1px dotted var(--gold-ink); text-decoration: none; }
.cite sup { font-family: var(--label); font-size: .58em; font-weight: 700; color: var(--gold-ink); padding-left: .12em; }
.note { font-size: .85rem; line-height: 1.55; color: var(--slate); background: var(--paper-2);
        border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0;
        padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.note__h { font-family: var(--label); font-size: .62rem; font-weight: 700; letter-spacing: .14em;
           text-transform: uppercase; display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; }
.note__n { color: var(--gold-ink); }
.note__flag { padding: .12rem .45rem; border-radius: 4px; border: 1px solid currentColor; }
.flag--verified { color: var(--gold-ink); }
.flag--legend   { color: var(--vermilion); }
.flag--author   { color: var(--slate); }
.note__cite { display: block; margin-top: .45rem; font-size: .78rem; color: #7d8ba0; font-style: italic; }
@media (max-width: 60rem) { .note { margin: 1.2rem 0 1.8rem; } }

.reader { font-size: 1.12rem; line-height: 1.75; }
.reader p { margin: 0 0 1.3em; }
.reader p + p { text-indent: 1.4em; }
.reader p:first-of-type { text-indent: 0; }

/* ── Colophon / dispatches / forms ─────────────────────────────────────── */
.colophon { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline;
            font-family: var(--label); font-size: .72rem; letter-spacing: .09em;
            text-transform: uppercase; color: #93a5bd; }
.colophon__h { color: var(--gold-lit); font-weight: 700; }
.colophon__on { display: inline-flex; align-items: center; gap: .45rem; color: #eef2f8; }
.colophon__dot { width: 7px; height: 7px; border-radius: 50%; background: #3ecf6f; }

.dispatch { display: block; text-decoration: none; background: #fff; border: 1px solid var(--rule);
            border-radius: var(--radius); padding: 1.35rem 1.5rem; margin-bottom: 1rem;
            box-shadow: var(--shadow); transition: border-color .16s ease; }
.dispatch:hover { border-color: #b9c6da; }
.dispatch h3 { margin: .35rem 0 .35rem; font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.dispatch p { color: var(--slate); margin: 0; }

.form { max-width: 38rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--label); font-size: .72rem; font-weight: 650;
               letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid #cbd5e1; padding: .8rem .9rem; border-radius: 8px; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--slate); margin: .35rem 0 0; }
.req { color: var(--vermilion); }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; }
.inline-form input[type=email] { flex: 1 1 15rem; font-family: var(--body); font-size: 1rem;
  border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: rgba(255,255,255,.08);
  color: #eef2f8; padding: .85rem .95rem; }
.inline-form input::placeholder { color: #8496ad; }
.band:not(.plate) .inline-form input[type=email] { border-color: #cbd5e1; background: #fff; color: var(--text); }
.notice { border-left: 3px solid var(--gold); background: #fff; border-radius: 0 8px 8px 0;
          padding: 1rem 1.2rem; margin-bottom: 1.6rem; box-shadow: var(--shadow); }
.notice--bad { border-left-color: var(--vermilion); }
.plate .notice { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: #93a5bd; padding: 3rem 0 2rem; font-size: .95rem; }
.foot a { color: #c5d1e2; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.foot__h { font-family: var(--label); font-size: .66rem; font-weight: 700; letter-spacing: .16em;
           text-transform: uppercase; color: var(--gold-lit); margin: 0 0 .85rem; }
.foot__list { list-style: none; margin: 0; padding: 0; }
.foot__list li { margin-bottom: .45rem; }
.foot__base { margin-top: 2.25rem; padding-top: 1.3rem; border-top: 1px solid rgba(216,178,94,.22);
              font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot__logo { height: 28px; width: auto; opacity: .9; margin-bottom: .8rem; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr);
       gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 56rem) { .faq-layout { grid-template-columns: 1fr; } }

.faq-rail { position: sticky; top: 5.5rem; display: grid; gap: 1.5rem; }
@media (max-width: 56rem) { .faq-rail { position: static; } }
.faq-toc { display: grid; gap: .15rem; }
.faq-toc a { display: flex; align-items: baseline; justify-content: space-between;
       gap: .8rem; text-decoration: none; font-family: var(--label); font-weight: 550;
       font-size: .88rem; color: #45566d; padding: .5rem .75rem; border-radius: 8px;
       border-left: 2px solid transparent; transition: background .15s ease, color .15s ease; }
.faq-toc a:hover { background: var(--paper-2); color: var(--ink); border-left-color: var(--gold); }
.faq-toc a span { font-size: .7rem; font-weight: 700; color: var(--gold-ink);
       background: rgba(185,139,46,.12); border-radius: 99px; padding: .1rem .55rem; }
.faq-ask { background: var(--paper-2); border: 1px solid var(--rule);
       border-radius: var(--radius); padding: 1.4rem; }

.faq-group { margin-bottom: 2.4rem; scroll-margin-top: 5.5rem; }
.faq-group > .label { padding-bottom: .55rem; border-bottom: 1px solid var(--rule);
       margin-bottom: 1rem; }

.faq { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
       margin-bottom: .75rem; box-shadow: var(--shadow);
       transition: border-color .18s ease; overflow: hidden; }
.faq:hover { border-color: #c3cedd; }
.faq[open] { border-color: var(--gold); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center;
       gap: 1rem; padding: 1.05rem 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--label); font-weight: 650; font-size: 1rem;
       color: var(--ink); line-height: 1.4; flex: 1; }
.faq[open] .faq__q { color: var(--gold-ink); }
.faq__ic { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%;
       background: var(--paper-2); position: relative;
       transition: background .18s ease; }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; top: 50%; left: 50%;
       background: var(--gold-ink); transform: translate(-50%, -50%); }
.faq__ic::before { width: .75rem; height: 2px; }
.faq__ic::after  { width: 2px; height: .75rem; transition: opacity .18s ease; }
.faq[open] .faq__ic { background: var(--gold); }
.faq[open] .faq__ic::before, .faq[open] .faq__ic::after { background: #1c2a42; }
.faq[open] .faq__ic::after { opacity: 0; }
.faq__a { padding: 0 3.95rem 1.25rem 1.25rem; animation: faqFade .25s ease; }
.faq__a p { margin: 0; color: var(--slate); line-height: 1.65; }
@keyframes faqFade { from { opacity: 0; } to { opacity: 1; } }

/* ── Numbered process steps ─────────────────────────────────────────────── */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1.4rem 3.4rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.15rem;
       width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--paper-2);
       color: var(--gold-ink); font-family: var(--label); font-weight: 700;
       display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem;
       top: 2.2rem; bottom: .2rem; width: 1px; background: var(--rule); }
.steps b { display: block; font-family: var(--label); font-weight: 650; color: var(--ink); margin-bottom: .15rem; }
.steps p { margin: 0; color: var(--slate); font-size: .97rem; }

/* ── Private reading viewer (pack + review copies) ─────────────────────── */
.viewer { display: grid; grid-template-columns: 16rem minmax(0, 1fr);
          gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 56rem) { .viewer { grid-template-columns: 1fr; } }
.viewer__toc { position: sticky; top: 5.5rem; display: grid; gap: .15rem; }
/* Phones: the chapter leads; the contents list follows it instead of pushing
   the text below a 14-entry menu on every page. */
@media (max-width: 56rem) { .viewer__toc { position: static; order: 2; margin-top: 2.5rem;
    border-top: 1px solid var(--rule); padding-top: 1.5rem; } }
.viewer__toc a { display: block; text-decoration: none; font-family: var(--label);
    font-weight: 550; font-size: .86rem; color: #45566d; padding: .45rem .7rem;
    border-radius: 8px; border-left: 2px solid transparent; }
.viewer__toc a span { display: block; font-size: .64rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.viewer__toc a:hover { background: var(--paper-2); color: var(--ink); }
.viewer__toc a[aria-current="page"] { background: var(--paper-2); color: var(--ink);
    border-left-color: var(--gold); }
.viewer__page { max-width: 38rem; position: relative; }
.viewer__nav { display: flex; justify-content: space-between; gap: .8rem;
    flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.viewer__wmline { font-family: var(--label); font-size: .7rem; font-weight: 650;
    letter-spacing: .12em; text-transform: uppercase; color: var(--vermilion);
    border: 1px solid currentColor; border-radius: 6px; display: inline-block;
    padding: .3rem .7rem; margin: 0 0 1.4rem; }
/* Faint diagonal name watermark over review copies. */
.viewer__page--wm::after { content: attr(data-wm) "  ·  review copy  ·  " attr(data-wm) "  ·  review copy";
    position: absolute; inset: 0; pointer-events: none; white-space: pre-wrap;
    font-family: var(--label); font-size: 1.5rem; font-weight: 700; line-height: 7rem;
    color: rgba(16,32,58,.05); transform: rotate(-24deg) scale(1.4);
    transform-origin: center; overflow: hidden; z-index: 1; }

@media print {
  .masthead, .foot, .viewer__toc, .viewer__nav, .announce { display: none !important; }
  .viewer { display: block; }
  .viewer__page { max-width: none; }
  .band { padding: 0; }
  .plate { background: #fff !important; color: #000 !important; }
  .plate h1, .plate h2 { color: #000 !important; }
}
