/* Scoped to v2 readers. Existing paid snapshots keep their existing renderer. */
.reading-book-v2 { --book-gap: clamp(36px, 7vw, 64px); max-width: 760px; margin: 24px auto 48px; color: var(--skin-ink); }
.reading-book-v2 .book-chapter { margin-block: var(--book-gap); padding: 0; border: 0; background: transparent; }
.reading-book-v2 .book-contents+.book-chapter { margin-top: 28px; }
/* The cover and each chapter have separate hierarchies on every reader surface. */
.reading-book-v2 header.book-chapter-header { position:static;display:block;width:auto;max-width:none;height:auto;min-height:0;margin:0 0 24px;padding-block:0;background:transparent;border:0;box-shadow:none;text-align:left; }
.reading-book-v2 .book-chapter-header .book-chapter-number { display: inline-flex; align-items: center; width: fit-content; margin: 0 0 10px; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.4; border-radius: 999px; background: var(--skin-surface-subtle); border: 1px solid var(--skin-border-subtle); color: var(--skin-subtle); }
.reading-book-v2 .book-chapter-header .book-chapter-title { margin:0 0 16px;padding:0;font-family:inherit;font-size:clamp(24px,3vw,28px);font-weight:750;line-height:1.45;letter-spacing:-.025em;word-break:keep-all;overflow-wrap:anywhere; }
.reading-book-v2 .book-chapter-header .book-chapter-intro { margin:0;font-size:clamp(16px,2.4vw,18px);line-height:1.85;font-weight:400;color:var(--skin-ink); }
.reading-book-v2 .book-prose { padding-inline: clamp(18px, 4vw, 28px); }
.reading-book-v2 .book-prose p { font-size: clamp(16px, 2.4vw, 18px); line-height: 1.85; margin: 0 0 24px; overflow-wrap: anywhere; word-break: keep-all; }
.reading-book-v2 .book-section { margin-block: 36px; }
.reading-book-v2 .book-scene { margin: 28px 0 36px; }
.reading-book-v2 .book-scene img { display: block; width: 100%; height: auto; object-fit: contain; }
.reading-book-v2 .book-scene figcaption { padding: 12px 20px 0; line-height: 1.65; }
.reading-book-v2 .book-evidence { margin-block: 20px 28px; padding: 18px 20px; border-radius: 16px; background: var(--skin-surface-subtle); border: 1px solid var(--skin-border-subtle); }
.reading-book-v2 > header.book-prose + p.book-prose,
.reading-book-v2 .book-period-scope { margin-top: 0; padding-block-start: 20px; margin-bottom: 16px; font-size: 14px; color: var(--skin-subtle); }
.reading-book-v2 .book-foundation { overflow-x: auto; margin-block: 16px 28px; padding: 18px 20px; background: var(--skin-surface-subtle); border: 1px solid var(--skin-border-subtle); border-radius: 16px; }
.reading-book-v2 .book-foundation h2 { font-size: clamp(16px, 2.5vw, 18px); font-weight: 700; line-height: 1.5; margin: 0 0 10px; color: var(--skin-ink); }
.reading-book-v2 .book-foundation h3 { font-size: 14px; font-weight: 600; line-height: 1.5; margin: 14px 0 6px; color: var(--skin-subtle); }
.reading-book-v2 .book-foundation h3:first-of-type { margin-top: 0; }
.reading-book-v2 .book-foundation table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 10px; }
.reading-book-v2 .book-foundation th { font-size: 13.5px; font-weight: 600; padding: 6px 4px; color: var(--skin-subtle); text-align: center; }
.reading-book-v2 .book-foundation td { font-size: 16px; font-weight: 600; padding: 6px 4px; color: var(--skin-ink); text-align: center; overflow-wrap: anywhere; }
.reading-book-v2 .book-foundation p { font-size: 13px; line-height: 1.65; margin: 10px 0 0; color: var(--skin-subtle); word-break: keep-all; }
.reading-book-v2 .book-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 24px; }
@media (max-width: 600px) {
  .reading-book-v2 { margin-top: 20px; }
  .reading-book-v2 .book-scene { margin-inline: 0; }
  .reading-book-v2 .book-foundation { padding: 14px 16px; }
  .reading-book-v2 .book-foundation th, .reading-book-v2 .book-foundation td { padding: 6px 2px; }
  .reading-book-v2 .book-foundation td { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .reading-book-v2 * { scroll-behavior: auto !important; animation: none !important; } }

.reading-book-v2{background:transparent}.reading-book-v2 .book-prose :is(h1,h2,h3){color:var(--skin-ink)}.reading-book-v2 .book-period,.reading-book-v2 figcaption{color:var(--skin-subtle)}.reading-book-v2 .book-chapter{scroll-margin-top:100px}.reading-book-v2 .book-evidence ul{padding-left:20px}.reading-book-v2 .book-contents{padding:18px 28px;line-height:1.8}

/* Global navigation styles must not turn the reading contents into a six-column bar. */
.reading-book-v2 nav.book-contents { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; width: auto; position: static; height: auto; min-height: 0; flex-wrap: initial; }
.reading-book-v2 .book-contents > :is(p,a) { display: block; width: auto; min-width: 0; margin: 0; text-align: left; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.reading-book-v2 .book-contents > br { display: none; }
.reading-book-v2 .book-prose p { font-weight: 400; }
.reading-book-v2 .book-evidence { background: transparent; border: 0; border-left: 2px solid var(--skin-border-subtle); border-radius: 0; padding: 4px 0 4px 14px; font-size: 14px; line-height: 1.7; }
.reading-book-v2 .book-evidence ul { margin: 6px 0 0; }


.reading-book-v2 nav.book-contents a{color:var(--skin-ink);text-decoration:none;font:inherit;line-height:1.6;padding:8px 0;min-height:44px}
.reading-book-v2 nav.book-contents a:hover{text-decoration:underline;text-underline-offset:4px}
.reading-book-v2 nav.book-contents a:focus-visible{outline:2px solid var(--skin-focus);outline-offset:4px}

.book-chapter-summary{margin:1.5rem auto 2.5rem;padding:1.25rem 1.5rem;border:1px solid var(--skin-border-subtle,#ded9cf);border-radius:14px;background:var(--skin-surface-subtle,#f8f4ec);max-width:680px;line-height:1.85}
.book-chapter-summary p{margin:0}.book-chapter-summary p+p{margin-top:1em}.book-chapter-summary strong{display:block;font-size:.82em;margin-bottom:.5em;color:var(--skin-subtle,#6e675d)}
.book-chapter-summary span{display:block;word-break:keep-all;overflow-wrap:anywhere}

.book-evidence-details{margin:1.5rem 0 2rem;padding:1rem 1.2rem;border:1px solid var(--border,#ddd5c7);border-radius:12px;font-size:.9rem;line-height:1.8}.book-evidence-details summary{cursor:pointer;font-weight:600}.book-evidence-details p{margin:1rem 0 0;overflow-wrap:anywhere}

/* Shared preview/full-book prose: preserve headings, controls, tables and colors. */
.reading-book-v2 .book-section > p,
:is(#theme-sheet-result,#couple-sheet-result,#annual-entry-result,#theme-entry-result) .reading-book-v2 .book-section > p,
#premium-document .reading-book-v2 .book-section > p,
#offer-sample .reading-book-v2 .book-section > p {
 font-size:clamp(1.0625rem,2.4vw,1.1875rem);line-height:1.9;margin:0 0 1.75rem;
 word-break:keep-all;overflow-wrap:anywhere;
}
.reading-book-v2 .book-section {margin-block:2.75rem;}
.reading-book-v2 .book-section > h3 {margin-bottom:.875rem;}
.reading-book-v2 .book-chapter-summary p,
:is(#theme-sheet-result,#couple-sheet-result,#annual-entry-result,#theme-entry-result) .reading-book-v2 .book-chapter-summary p {
 font-size:1.0625rem;line-height:1.85;margin:0;
}
.reading-book-v2 .book-chapter-summary p+p {margin-top:1.25rem;}
.reading-book-v2 .book-chapter-summary {box-sizing:border-box;max-width:100%;margin-block:1.75rem 2.75rem;}
/* Keep related paragraphs together and mark changes of subject in the annual opening. */
.reading-book-v2 .book-chapter:first-of-type .book-section {margin-block:2.4rem;}
.reading-book-v2 .book-chapter:first-of-type .book-section > p {margin-bottom:1.15rem;}
#annual-entry-result-body .annual-reading-section {margin-block:2.35rem;}
#annual-entry-result-body .annual-reading-section h4 {font-size:1.125rem;line-height:1.5;margin:0 0 .85rem;}
#annual-entry-result-body .annual-reading-section p {font-size:1.0625rem;line-height:1.85;margin:0 0 1.15rem;word-break:keep-all;overflow-wrap:anywhere;}
#annual-entry-result-body .annual-reading-section p:last-child {margin-bottom:0;}
/* Concept first, then the reader's own meaning. Unmarked saved rows retain the old styling. */
.reading-book-v2 .book-chapter-summary .book-summary-definition {
 padding:.875rem 1rem;border:1px solid var(--skin-border-subtle);border-radius:12px;
 background:var(--skin-surface);color:var(--skin-subtle);
}
.reading-book-v2 .book-chapter-summary .book-summary-definition strong {font-size:.8125rem;color:var(--skin-subtle);}
.reading-book-v2 .book-chapter-summary .book-summary-definition span {font-size:.9375rem;line-height:1.7;}
.reading-book-v2 .book-chapter-summary .book-summary-person {
 padding:1.125rem 1.25rem;border-left:3px solid var(--skin-accent);border-radius:0 12px 12px 0;
 background:var(--skin-surface);color:var(--skin-ink);
}
.reading-book-v2 .book-chapter-summary .book-summary-person strong {font-size:.8125rem;color:var(--skin-accent);}
.reading-book-v2 .book-chapter-summary .book-summary-person span {font-size:1.0625rem;line-height:1.9;}
.reading-book-v2 .reading-boundary-notice {margin:1.75rem 0;padding:1rem 1.25rem;border-left:3px solid var(--skin-border);background:var(--skin-surface-subtle);line-height:1.7;}
.reading-book-v2 .reading-boundary-notice :is(p,ul) {margin:.4rem 0;}
.reading-book-v2 .book-boundary-notice {
 margin:2rem clamp(18px,4vw,28px);padding:1rem 1.25rem;
 border:1px dashed var(--skin-border);border-radius:12px;
 background:var(--skin-surface-subtle);color:var(--skin-ink);
}
.reading-book-v2 .book-boundary-notice h3 {margin:0 0 .5rem;font-size:1rem;line-height:1.5;color:var(--skin-ink);}
.reading-book-v2 .book-boundary-notice p {margin:.5rem 0 0;font-size:.9375rem;line-height:1.7;}
.reading-book-v2 .book-period small {font-size:.8125rem;white-space:normal;}
body[data-site-shell] #document-chapters .reading-book-v2 .book-section > p {margin-block:0 1.75rem;}
:is(#theme-sheet-result,#couple-sheet-result,#annual-entry-result,#theme-entry-result) .reading-book-v2 .book-section > p {font-size:1.0625rem;}

/* Deferred definitions keep label/body separation outside the summary card. */
.reading-book-v2 .book-context-definitions { margin:1.5rem 0 2rem; padding:1rem 1.2rem; border:1px solid var(--skin-border-subtle,#ded9cf); border-radius:12px; background:var(--skin-surface-subtle,#f8f4ec); max-width:100%; box-sizing:border-box; }
.reading-book-v2 .book-context-definitions .book-summary-row { margin:0; font-size:1rem; line-height:1.8; }
.reading-book-v2 .book-context-definitions .book-summary-row + .book-summary-row { margin-top:1rem; }
/* Product preview containers also set paragraph margins by ID. Keep deferred definitions scoped above those rules. */
:is(#theme-sheet-result,#couple-sheet-result,#annual-entry-result,#theme-entry-result,#premium-document) .reading-book-v2 .book-context-definitions .book-summary-row {margin:0;}
:is(#theme-sheet-result,#couple-sheet-result,#annual-entry-result,#theme-entry-result,#premium-document) .reading-book-v2 .book-context-definitions .book-summary-row+.book-summary-row {margin-top:1rem;}
.reading-book-v2 .book-context-definitions strong { display:block; margin-bottom:.5em; font-size:.875rem; color:var(--skin-subtle,#6e675d); }
.reading-book-v2 .book-context-definitions span { display:block; word-break:keep-all; overflow-wrap:anywhere; }

/* A summary row already has its own inset; keep the two mobile insets together near 18px. */
@media (max-width: 600px) {
  .reading-book-v2 .book-chapter-summary:has(> .book-summary-person, > .book-summary-definition) { padding: 4px; }
  .reading-book-v2 .book-chapter-summary .book-summary-definition,
  .reading-book-v2 .book-chapter-summary .book-summary-person { padding: 14px 12px; }
}

/* The shop sample has a mobile gutter; paid readers and modals keep their own inset. */
@media (max-width: 767px) {
  body[data-site-shell] .shop-sample .reading-book-v2 > header.book-prose,
  body[data-site-shell] .shop-sample .reading-book-v2 > p.book-prose,
  body[data-site-shell] .shop-sample .reading-book-v2 .book-chapter > header.book-prose,
  body[data-site-shell] .shop-sample .reading-book-v2 .book-chapter > .book-section.book-prose { padding-inline: 0; }
}

/* Annual storefront only: one small inner gutter, no extra nested frame. */
@media (max-width:767px) {
 body[data-site-shell] .annual-product-detail .shop-sample .reading-book-v2 .book-chapter > .book-section.book-prose {
  padding-inline:12px;
  padding-block-end:20px;
  display:flow-root;
 }
 body[data-site-shell] .annual-product-detail .shop-sample .reading-book-v2 .book-section.book-prose > p:last-child { margin-block-end:0; }
 body[data-site-shell] .annual-product-detail .shop-sample .reading-book-v2 .book-section.book-prose > .product-illustration { margin-inline:-12px; width:calc(100% + 24px); max-width:none; }
}
