/* Reader typography and figure treatments. Source markup owns content order. */
.imported-reader {
  --reading-copy: #243748;
  --reading-note: #4c6176;
  --reading-rule: #d5e2ed;
  --reading-tint: #f2f7fb;
  --reading-shadow: 0 18px 40px -28px rgb(44 60 128 / .29), 0 2px 6px rgb(44 60 128 / .06);
  --reading-inset: clamp(1.1rem, 3.5vw, 3.1rem);
  --reading-gap: clamp(2rem, 5.3vw, 5.5rem);
}

.imported-reader > main h1 {
  font-weight: 500;
  letter-spacing: -.054em;
  line-height: 1.025;
}
.imported-reader > main h2 {
  font-weight: 600;
  letter-spacing: -.048em;
  line-height: 1.11;
}
.imported-reader > main h3 {
  font-weight: 600;
  letter-spacing: -.024em;
  line-height: 1.2;
}
.imported-reader :is(.r-col, .introline, .book-photo-intro, .ed23-lesson, .product-guide-edition) :is(strong, b) {
  color: var(--reader-ink);
  font-weight: 600;
}
.imported-reader :is(.r-col, .introline, .book-photo-intro, .ed23-lesson, .product-guide-edition) :is(em, cite) {
  font-style: italic;
}
.imported-reader :is(.introline > .kicker, .r-col > .kicker, .r-col > .eyebrow, .ed23-lesson > .eyebrow) {
  color: var(--reader-blue);
  font-weight: 600;
  letter-spacing: .1em;
}
.imported-reader :is(.introline, .r-hero > .r-col, .book-photo-intro, .product-guide-edition .hero) :is(h1 + p, .lede, .deck, .r-lead) {
  max-inline-size: 62ch;
  color: var(--reading-copy);
  font-size: clamp(1.06rem, 1.55vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.imported-reader :is(.r-col, .ed23-lesson, .product-guide-edition > section) > :is(p, dl, ol, ul) {
  max-inline-size: 72ch;
}
.imported-reader :is(.r-col, .ed23-lesson, .product-guide-edition > section) > p + p {
  margin-block-start: .9em;
}
.imported-reader :is(.r-col, .ed23-lesson, .product-guide-edition .use) > :is(ol, ul) > li + li {
  margin-block-start: .5em;
}
.imported-reader :is(.r-col, .ed23-lesson, .product-guide-edition) li::marker { color: var(--reader-blue); }
.imported-reader :is(.r-col, .ed23-lesson, .product-guide-edition) dt { color: var(--reader-ink); font-weight: 600; }
.imported-reader :is(.r-col, .ed23-lesson, .product-guide-edition) dd + dt { margin-block-start: .85em; }

.imported-reader :is(.answer-body, .r-section, .ed23-lesson, .product-guide-edition > .use, .product-guide-edition > .proof, .product-guide-edition > .related) {
  margin-block-start: var(--reading-gap);
}
.imported-reader :is(.r-section > .r-col > h2, .product-guide-edition > :is(.use, .proof, .related) > h2) {
  padding-block-start: .55em;
  border-block-start: 1px solid var(--reading-rule);
}
.imported-reader .r-rule { border-color: var(--reading-rule); }
.imported-reader :is(.page-contents, .study-jumps) > a {
  font-weight: 500;
  text-decoration-thickness: .07em;
}
.imported-reader :is(.page-contents, .study-jumps) > strong { font-weight: 600; }
.imported-reader :is(.page-contents, .study-jumps) a:hover { text-decoration-line: underline; }

/* One focal plane for the short answer. The full explanation stays open below. */
.imported-reader[data-family="answer"] .answer-direct {
  padding: var(--reading-inset);
  background: #f0f6fb;
  border-block-start: 2px solid #8eb3d3;
  box-shadow: var(--reading-shadow);
}
.imported-reader[data-family="answer"] .answer-direct > .r-col { max-inline-size: 68ch; }
.imported-reader[data-family="answer"] .answer-direct :is(.article-kicker, .label, .kicker, .answer-direct__label) {
  color: var(--reader-blue);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.imported-reader[data-family="answer"] .answer-direct p:not(.article-kicker, .ssr-byline) {
  color: var(--reading-copy);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.58;
}
.imported-reader[data-family="answer"] .page-contents.r-col {
  background: transparent;
  padding-inline: 0;
  border-block-start: 1px solid var(--reading-rule);
}
.imported-reader[data-family="evidence"] .sg-reader-choice {
  padding: var(--reading-inset);
  background: var(--reading-tint);
  border: 0;
  border-block-start: 2px solid #8eb3d3;
  box-shadow: var(--reading-shadow);
}

.imported-reader :is(.r-col, .original, .product-guide-edition) blockquote {
  max-inline-size: 64ch;
  margin: clamp(1.3rem, 3.8vw, 3rem) 0;
  padding: .3rem 0 .3rem clamp(.9rem, 2.7vw, 2rem);
  border: 0;
  border-inline-start: 2px solid #8eb3d3;
  background: transparent;
  color: var(--reading-copy);
  font-size: clamp(1.05rem, 1.5vw, 1.26rem);
  font-style: italic;
  line-height: 1.58;
}
.imported-reader blockquote p:first-child { margin-block-start: 0; }
.imported-reader blockquote p:last-child { margin-block-end: 0; }
.imported-reader blockquote :is(cite, footer) { color: var(--reading-note); font-size: .84em; }

/* Leave image geometry and original evidence legends intact. */
.imported-reader :is(.founder-archive-photo, .r-inline-visual.is-photograph, .book-authentic-photo, .r-art):has(img) {
  margin-block: clamp(1.3rem, 4.2vw, 3.5rem);
}
.imported-reader :is(.founder-archive-photo, .r-inline-visual.is-photograph, .book-authentic-photo) :is(img, picture > img) {
  box-shadow: var(--reading-shadow);
}
.imported-reader :is(figcaption, .image-caption) {
  color: var(--reading-note);
  font-size: clamp(.82rem, 1.2vw, .95rem);
  line-height: 1.48;
}
.imported-reader :is(.founder-archive-photo, .r-inline-visual.is-photograph, .r-art) figcaption {
  max-inline-size: 68ch;
  margin-block-start: .75rem;
  font-style: italic;
}
.imported-reader .timeline article > .image-caption {
  margin-block: .55rem 1rem;
  font-style: italic;
}
.imported-reader[data-family="product-identity"] .product-guide-edition .hero .promise {
  font-weight: 600;
}
.imported-reader[data-family="product-identity"] .product-guide-edition .productshot {
  box-shadow: var(--reading-shadow);
}
.imported-reader[data-family="product-identity"] .product-guide-edition .signature {
  padding: var(--reading-inset);
  background: var(--reading-tint);
  border-inline-start: 2px solid #8eb3d3;
  border-radius: 0;
}

.imported-reader:is([data-family="clinical-study"], [data-family="clinical-reference"]) .report-result {
  padding: var(--reading-inset);
  background: var(--reading-tint);
  border: 1px solid var(--reading-rule);
  box-shadow: var(--reading-shadow);
}
.imported-reader :is(.report-result, .clinical-document) .metric > :is(b, strong) {
  color: var(--reader-blue);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
.imported-reader :is(.report-result, .clinical-document) .metric > p {
  color: var(--reading-note);
  line-height: 1.48;
}
.imported-reader :is(.table-scroll, .tablewrap, .article-proof__scroll) { scrollbar-color: #a5bfd5 #f4f8fb; }
.imported-reader :is(.clinical-document, .article-proof, .answer-body) table {
  color: var(--reading-copy);
  font-variant-numeric: tabular-nums;
}
.imported-reader :is(.clinical-document, .article-proof, .answer-body) table thead th {
  background: #edf4fa;
  color: var(--reader-ink);
  font-weight: 600;
}
.imported-reader :is(.clinical-document, .article-proof, .answer-body) table :is(th, td) { border-color: var(--reading-rule); }
.imported-reader :is(.clinical-document, .article-proof, .answer-body) table tbody th { font-weight: 600; }
.imported-reader :is(.page-source-notes, .source-notes, .notes) {
  color: var(--reading-note);
  border-color: var(--reading-rule);
}
.imported-reader :is(.page-source-notes, .source-notes, .notes) :is(a, summary) {
  text-decoration-color: #8eb3d3;
  text-underline-offset: .2em;
}
.imported-reader :is(.editorial-directory, .r-details, .full, .product-pdp-directory, .study-methods) > summary {
  color: var(--reader-ink);
  font-weight: 600;
}
.imported-reader :is(.editorial-directory, .r-details, .full, .product-pdp-directory, .study-methods) > summary:hover { color: var(--reader-blue); }
.imported-reader :is(.ssr-spokes, .product-pdp-list) a > .t { font-weight: 600; }

@media (max-width: 44rem) {
  .imported-reader {
    --reading-gap: clamp(1.8rem, 7vw, 2.7rem);
    --reading-shadow: 0 12px 26px -20px rgb(44 60 128 / .25), 0 2px 5px rgb(44 60 128 / .06);
  }
  .imported-reader > main h2 { letter-spacing: -.038em; }
  .imported-reader[data-family="answer"] .page-contents.r-col > a { line-height: 1.45; }
}
@media print {
  .imported-reader :is(.answer-direct, .sg-reader-choice, .report-result, .productshot, figure img) { box-shadow: none !important; }
}

/* Premium compositions use the same emphasis scale with their original grids. */
.visual-v5:not(.imported-v4) main {
  --premium-copy: #263847;
  --premium-note: #4d5e70;
  --premium-rule: #d5e2ed;
  --premium-shadow: 0 20px 44px -27px rgb(44 60 128 / .28), 0 2px 8px rgb(44 60 128 / .07);
}
.visual-v5:not(.imported-v4) main :is(.origin-copy, .story-copy, .formula-editorial, .study-overview, .peptide-lead-copy, .science-foundation) :is(h1, h2) {
  font-weight: 500;
  line-height: 1.035;
  text-wrap: balance;
}
.visual-v5:not(.imported-v4) main :is(.story-copy, .formula-details, .study-overview, .peptide-lead-copy, .endpoint-reading) h3 {
  font-weight: 600;
  letter-spacing: -.034em;
  line-height: 1.17;
}
.visual-v5:not(.imported-v4) main :is(.origin-lead, .story-copy > p:not(.eyebrow, .caption), .formula-copy, .science-context, .peptide-intro) {
  max-inline-size: 66ch;
  color: var(--premium-copy);
  font-size: clamp(1.02rem, 1.45vw, 1.17rem);
  line-height: 1.58;
}
.visual-v5:not(.imported-v4) main :is(.origin-lead, .story-copy, .formula-copy, .formula-details, .research-claim, .study-lead, .science-context, .peptide-intro) :is(strong, b) {
  color: var(--ink);
  font-weight: 600;
}
.visual-v5:not(.imported-v4) main :is(.origin-lead, .story-copy, .formula-copy, .formula-details, .research-claim, .study-lead, .science-context, .peptide-intro) :is(em, cite) {
  color: var(--premium-copy);
  font-style: italic;
}
.visual-v5:not(.imported-v4) main :is(.story-copy, .formula-editorial, .peptide-lead-copy) > p + p {
  margin-block-start: .82em;
}
.visual-v5:not(.imported-v4) main :is(.formula-details > article, .endpoint-reading) {
  border-color: var(--premium-rule);
}
.visual-v5:not(.imported-v4) main .formula-details > article > p {
  max-inline-size: 61ch;
  color: var(--premium-copy);
  line-height: 1.54;
}
.visual-v5:not(.imported-v4) main :is(.research-claim, .study-lead) {
  max-inline-size: 63ch;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}
.visual-v5:not(.imported-v4) main :is(.study-frame, .study-frame-v2, .research-context, .chart-comparator) {
  max-inline-size: 71ch;
  color: var(--premium-note);
  font-size: clamp(.86rem, 1.2vw, .97rem);
  line-height: 1.55;
}
.visual-v5:not(.imported-v4) main :is(.peptide-inci, .study-identity) {
  color: var(--blue);
  font-weight: 600;
}
.visual-v5:not(.imported-v4) main :is(.story-chapter .photo-frame, .portrait-story .photo-frame, .clinical-product-stage, .study-object) {
  box-shadow: var(--premium-shadow);
}
.visual-v5:not(.imported-v4) main :is(.story-copy, .portrait-story, .formula-editorial, .science-foundation, .peptide-lead-copy) figcaption {
  font-style: italic;
  line-height: 1.48;
}
@media print {
  .visual-v5:not(.imported-v4) main :is(.photo-frame, .clinical-product-stage, .study-object) { box-shadow: none !important; }
}
