/* ===== VERA STORY =====
   A long-form read. Builds on .faq-detail / .faq-body from faq.css,
   widening the measure slightly and adding the pieces a 6,500-word
   narrative needs: a contents list, step headings, pull quotes,
   the sketch block, and a figure. */

.vera-article .wrap { max-width: 720px; }

/* Reading progress */
.vera-progress {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.vera-progress span {
  display: block;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 80ms linear;
}

/* ===== MASTHEAD ===== */
.vera-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 10px;
}
.vera-article h1 { margin-bottom: 10px; }
.vera-standfirst {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.vera-intro {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-2);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.vera-intro p { margin-bottom: 16px; }
.vera-meta {
  font-family: var(--body);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0 !important;
}

/* ===== CONTENTS ===== */
.vera-toc {
  margin: 32px 0 8px;
  padding: 24px 28px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.vera-toc-title {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.vera-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vera-toc li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 7px;
  color: var(--muted);
}
.vera-toc li:last-child { margin-bottom: 0; }
.vera-toc a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.vera-toc a:hover { color: var(--coral); }
.vera-toc li span {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: 4px;
}

/* ===== BODY ===== */
.vera-body { margin-top: 8px; }
.vera-body > p { margin-bottom: 18px; }

/* Part divider */
.vera-body .vera-part {
  font-family: var(--display-x);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.05;
  color: var(--ink);
  text-align: center;
  margin: 64px 0 8px;
  padding-top: 34px;
  border-top: 2px solid var(--ink);
}

/* Step headings */
.vera-body h2 {
  font-family: var(--display-x);
  font-weight: 500;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.08;
  color: var(--ink);
  margin: 52px 0 6px;
  scroll-margin-top: 24px;
  text-wrap: balance;
}
.vera-body h2:first-child { margin-top: 12px; }

.vera-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 34px 0 12px;
}

/* Chapter tag under a step heading */
.vera-chapter {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px !important;
}
.vera-chapter strong { color: var(--coral-deep); font-weight: 600; }

/* Lists */
.vera-body .vera-list {
  margin: 0 0 18px;
  padding-left: 24px;
}
.vera-body .vera-list li {
  margin-bottom: 9px;
  line-height: 1.55;
}
.vera-body .vera-sublist {
  margin: 8px 0 4px;
  padding-left: 22px;
  list-style: circle;
}
.vera-body .vera-sublist li { margin-bottom: 5px; }

/* Pull quotes and dialogue */
.vera-body .vera-quote {
  margin: 24px 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--coral);
}
.vera-body .vera-quote p {
  font-family: var(--body);
  font-size: 19.5px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 10px;
}
.vera-body .vera-quote p:last-child { margin-bottom: 0; }

/* The named approach — a boxed conclusion */
.vera-body .vera-callout {
  margin: 28px 0;
  padding: 24px 26px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.vera-body .vera-callout p {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.vera-body .vera-callout ul {
  margin: 0;
  padding-left: 22px;
  font-family: var(--body);
  font-size: 17px;
  color: var(--ink-2);
}
.vera-body .vera-callout li { margin-bottom: 7px; line-height: 1.5; }
.vera-body .vera-callout li:last-child { margin-bottom: 0; }

/* Author's aside — steps outside the story to talk to the reader */
.vera-body .vera-aside {
  margin: 36px 0;
  padding: 24px 26px;
  background: #fbf9f4;
  border: 1px dashed var(--rule);
  border-radius: 6px;
}
.vera-body .vera-aside p {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.vera-body .vera-aside p:first-child strong {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.vera-body .vera-aside p:last-child { margin-bottom: 0; }

/* Tables — cast list and ABC choices */
.vera-body .vera-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 26px;
  font-family: var(--body);
  font-size: 16.5px;
}
.vera-body .vera-table td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink-2);
}
.vera-body .vera-table tr:first-child td { border-top: 1px solid var(--rule); }
.vera-body .vera-table td:first-child {
  width: 30%;
  white-space: nowrap;
  color: var(--ink);
}
.vera-body .vera-table td strong { font-weight: 600; }

/* Figure — the grid is a dense 4-column table, so let it break out
   past the text measure on wide screens and stay legible. */
.vera-figure {
  margin: 36px 0;
  width: min(92vw, 940px);
  margin-left: 50%;
  transform: translateX(-50%);
}
.vera-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.vera-figure figcaption {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .vera-figure { width: 100%; margin-left: 0; transform: none; }
}

@media (max-width: 700px) {
  .vera-toc { padding: 20px 20px; }
  .vera-body .vera-quote {
    padding-left: 16px;
  }
  .vera-body .vera-quote p { font-size: 18px; }
  .vera-body .vera-callout,
  .vera-body .vera-aside { padding: 20px 18px; }
  .vera-body .vera-callout p { font-size: 19px; }
  .vera-body .vera-part { margin-top: 48px; }
  .vera-body h2 { margin-top: 42px; }
  /* Cast table gets cramped at phone width — stack it.
     Stacked cells are blocks, so only the row needs a rule. */
  .vera-body .vera-table td { display: block; width: auto; }
  .vera-body .vera-table td:first-child {
    white-space: normal;
    border-bottom: 0;
    padding-bottom: 2px;
  }
  .vera-body .vera-table tr:first-child td { border-top: 0; }
  .vera-body .vera-table tr { display: block; border-top: 1px solid var(--rule); }
  .vera-body .vera-table tr:first-child { border-top: 0; }
  .vera-body .vera-table td:last-child { border-bottom: 0; padding-bottom: 12px; }
}

/* ===== END-OF-STORY CTA =====
   The reader just finished 6,500 words. This is the moment they're
   most likely to want the book, so it gets a real block, not a link. */
.vera-end-cta {
  margin-top: 44px;
  padding: 38px 34px 34px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-align: center;
}
.vera-end-kicker {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 12px;
}
.vera-end-line {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.22;
  color: var(--ink);
  margin: 0 auto 24px;
  max-width: 30ch;
}
.vera-end-line em { font-style: italic; }
.cta-buy--lg {
  font-size: 15px;
  padding: 16px 32px;
}
.vera-end-sub {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 18px;
}
.vera-end-sub a { font-weight: 600; color: var(--coral-deep); }
.vera-end-sub a:hover { color: var(--coral); }

@media (max-width: 600px) {
  .vera-end-cta { padding: 30px 20px 28px; }
  .cta-buy--lg { width: 100%; justify-content: center; }
}

/* ===== FIGURE ZOOM =====
   The grid is 2694px wide but shows at ~350px on a phone, so it
   opens full-screen. The link works without JS too. */
.vera-zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.vera-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(22, 20, 15, 0.72);
  border-radius: 999px;
  opacity: 0.85;
  transition: opacity 150ms ease;
}
.vera-zoom:hover .vera-zoom-hint,
.vera-zoom:focus-visible .vera-zoom-hint { opacity: 1; }

.vera-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(22, 20, 15, 0.94);
  overflow: hidden;
}
.vera-lightbox::backdrop { background: rgba(22, 20, 15, 0.94); }
.vera-lightbox-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  box-sizing: border-box;
  padding: 56px 16px 44px;
}
.vera-lightbox img {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  cursor: zoom-in;
}
.vera-lightbox.is-actual img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.vera-lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.vera-lightbox-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
@media (hover: none) {
  .vera-lightbox-hint { display: none; }
}
/* Portrait phones: fitting a landscape grid to the width leaves it
   unreadable, so fill the height instead and swipe sideways to pan. */
@media (max-aspect-ratio: 1/1) {
  .vera-lightbox img {
    max-width: none;
    max-height: none;
    height: min(calc(100dvh - 100px), 900px);
    width: auto;
  }
  .vera-lightbox.is-actual img { height: auto; }
}
