/* Reading pages have no fixed masthead. Only the ingredient chapter bar stays on screen. */
html:has(.ingredient-page) { scroll-padding-top: 12px; }
html:has(.ingredient-story) { scroll-padding-top: 72px; }
.ingredient-page { background: #f6f7f1; color: #253529; }
.ingredient-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 5%; border-bottom: 1px solid #cbd2c5; }
.ingredient-header .brand { color: #253529; }
.return-link { min-height: 44px; font-size: 14px; display: inline-flex; align-items: center; gap: 12px; }
.ingredient-breadcrumb { display: flex; gap: 14px; padding: 28px 5%; font: 11px/1.5 var(--mono); color: #5b6956; }
.ingredient-breadcrumb a:hover, .return-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.ingredient-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); padding: 20px 5% 72px; }
.ingredient-intro { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 0; }
.specimen-label { width: 100%; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #aab6a1; padding-top: 14px; font: 10px/1.5 var(--mono); letter-spacing: 1px; color: #53654d; }
.ingredient-category { margin: 44px 0 16px; font: 11px var(--mono); letter-spacing: 1.4px; text-transform: uppercase; }
.ingredient-intro h1 { font-size: clamp(48px, 5.6vw, 86px); font-weight: 400; line-height: 1.08; letter-spacing: -.065em; overflow-wrap: anywhere; }
.ingredient-latin { font: 14px/1.6 var(--mono); color: #62735b; margin: 14px 0 27px; }
.ingredient-summary { font-size: clamp(16px, 1.45vw, 20px); line-height: 1.8; max-width: 540px; }
.research-focus { margin-top: 32px; border-top: 1px solid #cbd2c5; padding-top: 20px; width: 100%; }
.research-focus > span, .section-index { font: 10px/1.5 var(--mono); letter-spacing: 1.2px; color: #5b6f50; }
.research-focus p { margin: 8px 0 0; font-size: 15px; }
.chemistry-panel { width: 100%; margin-top: 26px; padding: 20px 22px; background: #e9ede5; border: 1px solid #cbd2c5; border-radius: 3px; }
.chemistry-topline { display: flex; justify-content: space-between; gap: 16px; font: 9px/1.6 var(--mono); letter-spacing: 1px; color: #53644e; }
.chemistry-topline a { text-decoration: underline; text-underline-offset: 4px; }
.chemical-formula { font: 400 clamp(28px, 2.8vw, 38px)/1.3 var(--mono); letter-spacing: -1.2px; margin: 16px 0 12px; }
.chemical-formula sub { font-size: .58em; vertical-align: baseline; position: relative; bottom: -.2em; }
.chemical-name { font-size: 13px; line-height: 1.7; margin: 0; }
.chemical-name span { font-size: 10px; color: #607158; }
.chemical-note { font-size: 11px; line-height: 1.8; color: #53644e; margin: 9px 0 0; max-width: 56ch; }
.overview-link { margin-top: 32px; font-size: 13px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid #829477; padding-bottom: 10px; }
.ingredient-figure { margin: 0; min-width: 0; }
.photo-frame { position: relative; background: #e1e7d9; overflow: hidden; border-radius: 3px; }
.ingredient-photo { display: block; width: 100%; height: clamp(360px, 40vw, 590px); object-fit: cover; }
.photo-frame.is-magnifying { cursor: none; }
.photo-magnifier { position: absolute; width: 180px; height: 180px; border-radius: 50%; pointer-events: none; visibility: hidden; background-repeat: no-repeat; box-shadow: 0 0 0 2px #ffffffe0, 0 0 0 4px #25352980, 0 8px 24px #0005; }
.photo-frame.is-magnifying .photo-magnifier { visibility: visible; }
.ingredient-figure figcaption { padding: 16px 0 0; color: #53644e; }
.ingredient-figure figcaption > p { font-size: 12px; line-height: 1.6; margin-bottom: 8px; }
.photo-credit { font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.photo-credit a { text-decoration: underline; text-underline-offset: 3px; }
.ingredient-body { display: grid; grid-template-columns: 1fr 2.1fr; gap: 8%; background: #e9ede5; padding: 72px 8% 80px 5%; border-top: 1px solid #cbd2c5; }
.contents { align-self: start; position: sticky; top: 35px; display: flex; flex-direction: column; gap: 18px; }
.contents > p { font: 10px var(--mono); letter-spacing: 1.1px; margin-bottom: 8px; }
.contents a { font-size: 12px; color: #586c50; }
.contents a:hover { color: #1e3523; text-decoration: underline; text-underline-offset: 4px; }
.contents-symbol { font-size: 92px; line-height: 1; font-weight: 300; color: #809274; margin-top: 24px; }
.field-notes { min-width: 0; max-width: 67ch; overflow-wrap: anywhere; }
.field-notes section { padding: 0 0 45px; margin: 0 0 43px; border-bottom: 1px solid #bfcbba; scroll-margin-top: 30px; }
.field-notes section:last-child { border: 0; padding: 0; margin: 0; }
.field-notes h2 { font-size: clamp(27px, 2.6vw, 40px); line-height: 1.23; letter-spacing: -.045em; font-weight: 400; margin: 0 0 16px; }
.field-notes p { font-size: 16px; line-height: 1.75; color: #4a5d45; }
.research-questions { list-style: none; counter-reset: question; padding: 0; }
.research-questions li { counter-increment: question; display: grid; grid-template-columns: 30px 1fr; gap: 16px; border-top: 1px solid #c6d0bf; padding: 18px 0; font-size: 15px; line-height: 1.7; }
.research-questions li::before { content: '0' counter(question); color: #74866b; font: 11px/2 var(--mono); }
.evidence-note { border-left: 2px solid #809374; padding: 4px 0 4px 22px; margin-top: 30px; }
.evidence-note span { font: 10px/1.7 var(--mono); letter-spacing: .7px; }
.evidence-note p { font-size: 13px; margin-top: 10px; }
.reading-link { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid #bfcbba; font-size: 14px; }
.reading-link:first-of-type { margin-top: 14px; }
.reading-link:hover { color: #537e3e; }
.reading-link small { display: block; margin-top: 7px; color: #63735c; font: 10px/1.6 var(--mono); }
.field-notes .medical-note { font-size: 12px; margin-top: 28px; }
.ingredient-pagination { display: grid; grid-template-columns: 1fr 1fr; margin: 0 5%; padding: 52px 0; gap: 28px; }
.related-ingredients { padding: 64px 5% 48px; }
.related-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.related-heading h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 400; letter-spacing: -.045em; margin: 12px 0 0; }
.related-heading > p { font-size: 13px; line-height: 1.8; color: #53644e; margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.related-link { display: block; border-bottom: 1px solid #cbd2c5; padding-bottom: 24px; }
.related-link > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
.related-copy { padding-top: 20px; }
.related-copy h3 { display: flex; justify-content: space-between; gap: 12px; font-size: clamp(20px, 2vw, 28px); font-weight: 400; letter-spacing: -.035em; margin: 10px 0; }
.related-copy h3 span { color: #64765b; }
.related-copy p { font: 11px/1.7 var(--mono); color: #53644e; margin: 0; }
.related-link:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 600px) {
  .related-ingredients { padding-top: 40px; padding-bottom: 20px; }
  .related-heading { display: block; }
  .related-heading > p { margin-top: 16px; }
  .related-grid { grid-template-columns: 1fr; gap: 22px; }
  .related-link { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 18px; padding-bottom: 22px; }
  .related-link > img { aspect-ratio: 1; }
  .related-copy { padding-top: 0; min-width: 0; }
  .related-copy h3 { font-size: 20px; }
}
.ingredient-pagination a { display: flex; flex-direction: column; gap: 12px; }
.ingredient-pagination a:last-child { text-align: right; }
.ingredient-pagination span { font: 10px/1.5 var(--mono); color: #64765b; }
.ingredient-pagination strong { font-size: clamp(22px, 3vw, 38px); letter-spacing: -.04em; font-weight: 400; }
.ingredient-pagination a:hover strong { text-decoration: underline; text-underline-offset: 6px; }
.ingredient-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #20372b; color: #eef1e9; padding: 38px 5%; }
.ingredient-footer { flex-wrap: wrap; }
.info-footer-links { display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 13px; }
.info-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.info-footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.info-page { padding: 64px 5% 80px; }
.info-heading { max-width: 75ch; margin-bottom: 60px; }
.info-heading h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 400; line-height: 1.12; letter-spacing: -.055em; margin: 22px 0; }
.info-intro { font-size: 18px; line-height: 1.8; color: #53644e; }
.draft-note { display: inline-block; font: 10px/1.6 var(--mono); letter-spacing: .4px; color: #6c5c36; border: 1px solid #d3c7a6; background: #f1ecdc; padding: 7px 11px; margin: 4px 0 0; }
.info-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 36px 0 0; padding: 20px 0 0; border-top: 1px solid #cbd2c5; }
.info-meta dt { font: 10px/1.6 var(--mono); letter-spacing: .8px; color: #5b6f50; text-transform: uppercase; }
.info-meta dd { margin: 6px 0 0; font-size: 12px; line-height: 1.7; }
.field-notes .pending { font: 10px/1.8 var(--mono); color: #6c5c36; background: #f1ecdc; padding: 12px 14px; border-left: 2px solid #c8b98f; margin-top: 18px; }
.info-layout { display: grid; grid-template-columns: 1fr 2.1fr; gap: 8%; padding-top: 40px; border-top: 1px solid #cbd2c5; }
.info-navigation { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; align-self: start; position: sticky; top: 35px; font-size: 13px; }
.info-navigation a { min-height: 44px; display: inline-flex; align-items: center; }
.info-navigation a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.info-page .field-notes a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) {
  .info-page { padding-top: 40px; }
  .info-heading { margin-bottom: 35px; }
  .info-meta { grid-template-columns: 1fr; gap: 16px; }
  .info-layout { grid-template-columns: 1fr; gap: 40px; }
  .info-navigation { position: static; flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
}
.ingredient-footer p { font-size: 13px; line-height: 1.8; }
.ingredient-footer p span { color: #b5c5aa; font-size: 11px; }
.ingredient-footer > a:last-child { font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.credits-page { max-width: 1120px; margin: auto; padding: 50px 5% 80px; }
.credits-page > .section-index { margin-top: 60px; }
.credits-page > h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 400; letter-spacing: -.05em; margin: 20px 0; line-height: 1.15; }
.credits-page > p { max-width: 750px; line-height: 1.9; }
.credits-list { margin-top: 45px; }
.credits-list section { display: grid; grid-template-columns: 160px 1fr; gap: 26px; padding: 26px 0; border-top: 1px solid #cbd2c5; }
.credits-list img { width: 160px; height: 120px; object-fit: cover; }
.credits-list h2 { font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.credits-list p { font-size: 12px; line-height: 1.8; margin-bottom: 8px; }
@media (min-width: 1600px) { .ingredient-hero, .ingredient-body { padding-left: max(5%, calc((100vw - 1440px) / 2)); padding-right: max(5%, calc((100vw - 1440px) / 2)); } }
@media (max-width: 800px) {
  .ingredient-hero { grid-template-columns: 1fr; gap: 34px; padding-bottom: 42px; }
  .ingredient-intro h1 { font-size: clamp(48px, 9vw, 72px); }
  .ingredient-category { margin-top: 28px; }
  .ingredient-photo { height: auto; aspect-ratio: 4 / 3; }
  .ingredient-photo[src$="/panax-ginseng.jpg"] { aspect-ratio: 1; }
  .ingredient-body { grid-template-columns: 1fr; gap: 38px; padding: 38px 5% 48px; }
  .contents { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 25px; border-bottom: 1px solid #bfcbba; }
  .contents > p { grid-column: 1 / -1; }
  .contents-symbol { display: none; }
  .ingredient-footer { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .ingredient-header { padding: 23px 5%; gap: 12px; }
  .ingredient-header .brand { font-size: 37px; }
  .ingredient-header .brand-caption, .ingredient-header .brand-x { display: none; }
  .return-link { font-size: 13px; gap: 6px; }
  .ingredient-breadcrumb { padding: 23px 5% 12px; font-size: 10px; }
  .ingredient-summary { font-size: 16px; }
  .ingredient-pagination { padding: 36px 0; gap: 20px; }
  .ingredient-pagination span { font-size: 8px; }
  .ingredient-footer { gap: 18px; }
  .ingredient-footer > a:last-child { flex-basis: 100%; }
  .credits-list section { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .credits-list img { width: 72px; height: 72px; }
  .credits-list p { font-size: 13px; }
}
