:root {
  --pine: #173c2f;
  --forest: #2e6246;
  --ink: #203c2d;
  --muted: #52695b;
  --paper: #f7f6f0;
  --cream: #fffdf8;
  --mint: #e7eee2;
  --lime: #d8edb1;
  --sand: #f3eadb;
  --amber-ink: #735033;
  --line: #d9e0d3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-scale: 1;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 80px;
  --page-gutter: 20px;
  --anchor-offset: 96px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #8a9d87 var(--paper); scrollbar-width: thin; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
button, a, input, summary { -webkit-tap-highlight-color: #d8edb166; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
[tabindex='-1']:focus { outline: none; }
::selection { color: var(--pine); background: var(--lime); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
svg { pointer-events: none; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 150; padding: 12px 20px; background: var(--pine); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.progress { position: fixed; inset: 0 auto auto 0; z-index: 140; width: 0; height: 3px; background: #719763; }

/* The complete guide remains accessible when JavaScript is unavailable. */
.site-shell { max-width: 1720px; margin-inline: auto; }
.sidebar { padding: var(--space-6) var(--space-5); background: var(--cream); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: var(--space-3); align-items: center; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 46px; flex: 0 0 auto; border: 1px solid #3c6250; border-radius: 12px; background: var(--pine); color: var(--lime); font: italic 30px/1 var(--serif); }
.brand strong { display: block; color: var(--pine); font-size: 13px; line-height: 1.4; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin: var(--space-6) 10px var(--space-3); }
.sidebar-heading strong { font-size: 15px; font-weight: 600; }
.drawer-close { display: none; }
.menu { display: grid; gap: var(--space-1); }
.menu-group { margin: var(--space-4) 12px var(--space-1); color: var(--muted); font-size: 11px; font-weight: 600; }
.menu a { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; text-decoration: none; transition: background-color .18s var(--ease-out), color .18s var(--ease-out); }
.menu a em { min-width: 20px; color: #58745c; font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }
.menu a .icon { width: 18px; height: 18px; margin-right: 2px; }
.menu a:hover, .menu a.active { background: var(--mint); color: var(--pine); }
.menu a.active { font-weight: 650; }
.side-bottom { margin-top: auto; padding-top: var(--space-6); }
.reading-status { display: none; margin: 0 10px var(--space-5); font-size: 11px; color: var(--muted); }
.js .reading-status { display: block; }
.reading-status > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.reading-status b { color: var(--pine); font-weight: 600; font-variant-numeric: tabular-nums; }
.reading-track { height: 3px; margin-top: 10px; border-radius: 4px; overflow: hidden; background: var(--line); }
.reading-track span { display: block; height: 100%; width: 0; background: var(--forest); }
.side-box { padding: 20px 16px; background: var(--mint); border-radius: 10px; }
.side-box strong { display: block; font-size: 13px; line-height: 1.5; }
.side-box p { margin: 8px 0; color: #425e49; font-size: 12px; line-height: 1.7; }
.side-box a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12px; font-weight: 650; }
.side-box .icon { width: 15px; height: 15px; }
.mini-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.mini-links a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-top { position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 76px; padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); background: var(--cream); border-bottom: 1px solid var(--line); }
.mobile-top .brand-mark { width: 36px; height: 40px; font-size: 27px; border-radius: 10px; }
.mobile-top .brand strong { font-size: 12px; }
.mobile-top .brand small { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--pine); font-size: 12px; }
.js .menu-toggle { display: inline-flex; }
.nav-backdrop { display: none; }
.content { min-width: 0; }
.topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin-inline: auto; padding: 20px var(--page-gutter); }
.crumb { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.crumb .icon { width: 17px; height: 17px; }
.library-label { display: none; }
.tools { display: none; flex-wrap: wrap; gap: 6px; align-items: center; }
.js .tools { display: flex; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--pine); font-size: 13px; font-weight: 600; transition: background-color .18s var(--ease-out); }
.tool.type-tool { padding-inline: 8px; }
.tool .icon { width: 17px; height: 17px; }
.tool:hover:not(:disabled) { background: var(--mint); }
.tool .tool-label { display: none; }
.page { max-width: 1200px; margin-inline: auto; padding: 0 var(--page-gutter) var(--space-8); font-size: calc(1rem * var(--font-scale)); }

/* A cover with real image space, not text competing with a photograph. */
.hero { display: grid; overflow: hidden; border-radius: 16px; background: var(--pine); color: var(--cream); }
.hero-content { min-width: 0; padding: var(--space-6) var(--space-5); }
.hero h1 { margin: 0 0 24px; font: 400 clamp(2.7rem, 10.8vw, 3.5rem)/1.04 var(--serif); letter-spacing: -.035em; }
.hero h1 em { color: var(--lime); font-weight: 400; }
.hero p { max-width: 36ch; margin: 0 0 28px; color: #e0eadc; font-size: 1em; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; font-size: .875em; line-height: 1.5; font-weight: 650; text-decoration: none; transition: background-color .18s var(--ease-out); }
.btn .icon { width: 18px; height: 18px; }
.btn.bright { color: var(--pine); background: var(--lime); }
.btn.bright:hover { background: #e7f5ce; }
.btn.dark { color: white; background: var(--pine); }
.btn.dark:hover { background: #2a5540; }
.hero-secondary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875em; color: #e7efdf; }
.hero-footer { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #43624e; color: #d2e2c8; font-size: .75em; }
.hero-footer .icon { width: 16px; height: 16px; }
.hero-media { position: relative; min-width: 0; height: 240px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.image-label { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 4px; background: var(--cream); color: var(--pine); font-size: 11px; }
.hero :focus-visible, .endcap :focus-visible, .ribbon.dark :focus-visible { outline-color: var(--lime); }
.readintro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.author strong { display: block; font-size: .875em; font-weight: 650; }
.author span { display: block; margin-top: 2px; font-size: .75em; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: .8125em; }
.meta span { display: inline-flex; gap: 8px; align-items: center; }
.meta .icon { width: 16px; height: 16px; }
.meta b { color: var(--pine); font-weight: 600; }
.ribbon { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; margin-top: var(--space-5); padding: 24px; border: 1px solid #d4dfcf; border-radius: 12px; background: var(--mint); color: #2d4e37; }
.ribbon > .icon { width: 24px; height: 24px; margin-top: 2px; }
.ribbon strong { display: block; font-size: 1em; line-height: 1.5; }
.ribbon p { margin: 8px 0 0; font-size: .9375em; line-height: 1.8; }
.ribbon.dark { border-color: var(--pine); background: var(--pine); color: #e5efdf; }
.ribbon.amber { border-color: #e7d9c4; background: var(--sand); color: var(--amber-ink); }
.ribbon .inline-actions { margin-top: 16px; }
.guide-map { margin-top: var(--space-7); }
.guide-map h2 { margin: 0 0 10px; font: 400 1.875em/1.2 var(--serif); letter-spacing: -.02em; }
.guide-map > p { margin: 0 0 24px; color: var(--muted); font-size: .9375em; }
.guide-map ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guide-map li { min-width: 0; border-bottom: 1px solid var(--line); }
.guide-map a { display: grid; grid-template-columns: 1fr 20px; gap: 8px 16px; height: 100%; padding: 24px 8px; text-decoration: none; }
.guide-map a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.guide-map .chapter-range { grid-column: 1 / -1; color: var(--muted); font-size: .75em; font-variant-numeric: tabular-nums; }
.guide-map strong { display: block; font-size: 1em; font-weight: 600; }
.guide-map .map-description { display: block; margin-top: 8px; color: var(--muted); font-size: .875em; line-height: 1.6; }
.guide-map .icon { align-self: start; margin-top: 3px; }

/* Chapter numbers correspond to the table of contents and reading sequence. */
/* The top border is a section divider, with a deliberate 32px content inset. */
section.chapter { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); scroll-margin-top: var(--anchor-offset); }
.chapter-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 28px; }
.chapter-no { padding-top: 6px; color: #5c7b5f; font: 400 26px/1 var(--serif); font-variant-numeric: tabular-nums; }
.chapter h2 { margin: 0 0 16px; color: var(--pine); font: 400 clamp(2rem, 3.4vw, 2.875rem)/1.14 var(--serif); letter-spacing: -.03em; }
.chapter-head p { max-width: 65ch; margin: 0; color: var(--muted); font-size: 1em; line-height: 1.7; }
.lead { max-width: 70ch; margin: 0 0 28px; color: #405a48; font-size: 1.0625em; line-height: 1.85; }
.triad { display: grid; gap: var(--space-5); }
.profile { min-width: 0; padding: 28px; border-radius: 12px; background: var(--mint); }
.profile.sand { background: var(--sand); }
.profile h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 0 0 16px; color: var(--pine); font: 400 2.75em/1 var(--serif); letter-spacing: -.03em; }
.profile h3 span { color: #48614d; font: 500 14px/1.6 var(--sans); letter-spacing: 0; }
.profile.sand h3, .profile.sand h3 span, .profile.sand p, .profile.sand .bullets { color: #695033; }
.profile p { margin: 0; color: #405c46; font-size: 1em; }
.bullets { display: grid; gap: 12px; margin: 20px 0 0; padding-left: 1.15em; color: #405c46; font-size: 1em; line-height: 1.75; }
.bullets li { padding-left: 4px; }
.bullets li::marker { color: var(--forest); }
.footnote { margin: 20px 0 0; color: var(--muted); font-size: .875em; line-height: 1.8; }
.concept-list { display: grid; gap: 24px; margin-top: 32px; padding: 28px 0; border-block: 1px solid var(--line); }
.concept-list article { min-width: 0; }
.concept-list .icon { width: 28px; height: 28px; color: var(--forest); }
.concept-list h3 { margin: 12px 0; color: var(--pine); font-size: 1.0625em; font-weight: 600; }
.concept-list p { margin: 0; color: var(--muted); font-size: .9375em; }
.botanical-feature { display: grid; margin-top: 32px; overflow: hidden; border-radius: 12px; background: var(--pine); }
.botanical-feature img { width: 100%; height: 240px; object-fit: cover; object-position: 50% 65%; }
.botanical-feature figcaption { display: flex; flex-direction: column; justify-content: center; padding: 28px; color: var(--cream); }
.botanical-feature .icon { width: 28px; height: 28px; color: var(--lime); }
.botanical-feature blockquote { margin: 20px 0; font: 400 1.75em/1.35 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.botanical-feature small { color: #d0e0c6; font-size: .75em; }
.evidence { border-top: 1px solid var(--line); }
.evidence-card { display: grid; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.level { display: inline-block; padding: 6px 10px; border-radius: 5px; font-size: .75em; font-weight: 650; line-height: 1.6; }
.level.strong { background: #dfeedd; color: #2b6035; }
.level.moderate { background: #e8ebd2; color: #4d5e1d; }
.level.limited { background: #f3e6d6; color: #80502e; }
.evidence-card h3 { margin: 0 0 12px; color: var(--pine); font-size: 1.125em; font-weight: 600; }
.evidence-card p { max-width: 70ch; margin: 0; color: var(--muted); font-size: 1em; }
.source-ref { color: #315e3e; font-size: .8125em; font-weight: 650; white-space: nowrap; }
.risk-grid { display: grid; column-gap: 32px; }
.risk { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid #dfd8cb; }
.risk-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sand); color: var(--amber-ink); }
.risk-icon .icon { width: 23px; height: 23px; }
.risk h3 { margin: 0 0 12px; color: #62462e; font-size: 1.0625em; font-weight: 600; }
.risk p { margin: 0; color: #6d5b45; font-size: 1em; }
.no-treat { margin-top: 24px; padding: 24px; border: 1px solid #e3d1c2; border-radius: 10px; color: #704d38; background: #f5eae1; font-size: .9375em; line-height: 1.8; }
.route-tabs { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #edf0e7; }
.js .route-tabs { display: grid; }
.route-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 60px; padding: 12px 8px; border: 0; border-radius: 8px; color: #425d47; background: transparent; font-size: .875em; font-weight: 600; line-height: 1.5; }
.route-tabs button .icon { width: 18px; height: 18px; }
.route-tabs button[aria-selected='true'] { background: var(--pine); color: white; }
.route-tabs button:hover:not([aria-selected='true']) { background: #dce6d5; }
.tab-panel { margin-bottom: 16px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.tab-panel h3 { margin: 0 0 20px; color: var(--pine); font: 400 1.875em/1.2 var(--serif); letter-spacing: -.02em; }
.tab-panel p, .tab-panel ul { max-width: 70ch; color: var(--muted); font-size: 1em; }
.tab-panel ul { display: grid; gap: 8px; margin-block: 20px; padding-left: 1.2em; }
.resource { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #315e3e; font-size: .875em; font-weight: 650; }
.resource .icon { width: 17px; height: 17px; }
.subheading { margin: 40px 0 20px; color: var(--pine); font-size: 1.25em; font-weight: 600; }
.consultation-layout { display: grid; gap: 28px; align-items: stretch; }
.steps { display: grid; align-content: start; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.step:first-child { padding-top: 0; }
.step::before { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #bacdb3; border-radius: 50%; color: var(--forest); content: counter(step); font: 400 22px/1 var(--serif); }
.step h3 { margin: 4px 0 10px; color: var(--pine); font-size: 1em; font-weight: 650; }
.step p { margin: 0; color: var(--muted); font-size: .9375em; line-height: 1.8; }
.consultation-photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }
.consultation-photo img { width: 100%; height: 240px; border-radius: 12px; object-fit: cover; object-position: 50% 63%; }
.consultation-photo figcaption, .cultivation-photo figcaption { margin-top: 8px; color: var(--muted); font-size: .75em; }
.document-types { display: grid; margin: 0; border-top: 1px solid var(--line); }
.document-types > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.document-types dt { display: flex; align-items: center; gap: 12px; color: var(--pine); font-size: 1.0625em; font-weight: 650; line-height: 1.4; }
.document-types dt .icon { width: 22px; height: 22px; color: var(--forest); }
.document-types dd { margin: 16px 0 0; color: var(--muted); font-size: .9375em; line-height: 1.85; }
.cultivation-photo { margin-bottom: 24px; }
.cultivation-photo img { width: 100%; height: 240px; border-radius: 12px; object-fit: cover; object-position: 50% 56%; }
.legal-callout { display: grid; gap: 24px; padding: 28px 24px; border-radius: 12px; background: var(--pine); color: #e1ebdb; }
.legal-callout h3 { margin: 0 0 20px; color: var(--cream); font: 400 2em/1.2 var(--serif); letter-spacing: -.02em; }
.legal-callout p { margin: 0; font-size: .9375em; line-height: 1.85; }
.legal-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.legal-list li { padding: 16px 0; border-bottom: 1px solid #42624d; font-size: .875em; line-height: 1.8; }
.legal-list li:first-child { padding-top: 0; }
.legal-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-list b { display: block; margin-bottom: 4px; color: var(--lime); font-weight: 600; }
.editorial-pair { display: grid; gap: 24px; }
.editorial-pair article { padding: 24px 0; border-block: 1px solid var(--line); }
.editorial-pair h4 { margin: 0 0 12px; font-size: 1.125em; line-height: 1.4; color: var(--pine); font-weight: 650; text-wrap: balance; }
.editorial-pair p { margin: 0; color: var(--muted); font-size: 1em; }
.practical { display: grid; gap: 32px; align-items: start; }
.safe-rules h3, .checklist h3 { margin: 0 0 20px; color: var(--pine); font: 400 1.875em/1.2 var(--serif); letter-spacing: -.02em; }
.safe-rules .bullets { margin-top: 0; }
.checklist { padding: 28px 24px; border: 1px solid #d3dfca; border-radius: 12px; background: var(--mint); }
.checklist > p { margin: 0 0 20px; color: #456045; font-size: .875em; }
.checklist label { display: flex; align-items: start; gap: 12px; min-height: 56px; padding: 16px 0; border-top: 1px solid #c9d6be; color: #345139; font-size: .9375em; line-height: 1.75; cursor: pointer; }
.checklist input { width: 20px; height: 20px; flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--forest); }
.check-progress { display: none; height: 5px; margin-top: 12px; overflow: hidden; border-radius: 4px; background: #c8d6bd; }
.js .check-progress { display: block; }
.check-progress > div { width: 0; height: 100%; background: var(--forest); transition: width .25s var(--ease-out); }
.check-count { display: none; margin-top: 12px; color: #36563a; font-size: .8125em; font-weight: 600; font-variant-numeric: tabular-nums; }
.js .check-count { display: block; }
.table-wrap { max-width: 100%; }
.comparison { width: 100%; border-collapse: collapse; font-size: .9375em; line-height: 1.75; }
.comparison th { padding: 20px 16px; background: var(--mint); color: var(--pine); font-size: .875em; font-weight: 650; text-align: left; }
.comparison td { padding: 20px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.comparison td:first-child { width: 25%; color: var(--pine); font-weight: 600; }
.cell-label { display: none; }
/* The list owns the divider; each summary supplies the 24px text inset. */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details[open] { background: var(--cream); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px; padding: 24px 8px; color: var(--pine); font-size: 1em; font-weight: 600; line-height: 1.6; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--forest); transition: transform .2s var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { max-width: 70ch; margin: 0; padding: 0 8px 28px; color: var(--muted); font-size: 1em; line-height: 1.85; }
.source-list { display: grid; gap: 0 48px; margin: 0; padding-left: 1.8em; list-style: decimal-leading-zero; }
.source-list li { padding: 20px 0 20px 4px; border-bottom: 1px solid var(--line); scroll-margin-top: var(--anchor-offset); }
.source-list li::marker { color: #58765b; font: 400 1em var(--serif); }
.source-list a { display: block; font-size: .9375em; font-weight: 600; line-height: 1.65; text-decoration: none; }
.source-list a:hover { text-decoration: underline; }
.source-list .icon { width: 15px; height: 15px; margin-left: 4px; }
.source-list small { display: block; margin-top: 8px; color: var(--muted); font-size: .875em; font-weight: 400; }
.endcap { display: grid; overflow: hidden; margin-top: var(--space-8); border-radius: 16px; background: var(--pine); color: var(--cream); }
.endcap-photo img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 24%; }
.endcap-content { align-self: center; min-width: 0; padding: 32px 24px; }
.endcap h2 { margin: 0 0 24px; font: 400 clamp(2rem, 3.1vw, 2.75rem)/1.15 var(--serif); letter-spacing: -.03em; }
.endcap h2 em { color: var(--lime); font-weight: 400; }
.endcap p { max-width: 55ch; color: #d7e4cf; font-size: .9375em; line-height: 1.85; }
.endcap .doctor-name { display: block; margin-top: 24px; font-size: 1em; font-weight: 600; }
.endcap small { display: block; margin: 8px 0 24px; color: #d7e4cf; font-size: .75em; line-height: 1.8; }
.footer { display: grid; gap: 24px; margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.footer strong { font-size: .875em; font-weight: 650; }
.footer p { max-width: 75ch; margin: 8px 0 0; color: var(--muted); font-size: .8125em; line-height: 1.8; }
.footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; overflow-wrap: anywhere; color: #3e6146; font-size: .8125em; font-weight: 600; }
.footer a .icon { width: 16px; height: 16px; }
.backtop { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 50; display: none; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #476b51; border-radius: 50%; background: var(--pine); color: var(--cream); box-shadow: 0 8px 24px #173c2f26; }
.backtop.show { display: grid; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 110; width: max-content; max-width: calc(100% - 40px); padding: 12px 20px; transform: translateX(-50%); border: 1px solid #53745a; border-radius: 8px; background: var(--pine); color: var(--cream); box-shadow: 0 8px 24px #173c2f26; font-size: 14px; text-align: center; pointer-events: none; }
.toast:empty { display: none; }

@media (max-width: 1099px) {
  .js .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 100; display: flex; flex-direction: column; width: min(350px, calc(100vw - 24px)); height: 100dvh; padding: 28px 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); visibility: hidden; transform: translateX(-100%); }
  .js .sidebar.is-ready { transition: transform .3s var(--ease-out), visibility .3s; }
  .js .sidebar.open { visibility: visible; transform: translateX(0); }
  .js .drawer-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--pine); }
  .js .nav-backdrop.show { position: fixed; inset: 0; z-index: 90; display: block; background: #102c1ec2; }
  .sidebar-heading { margin-top: 24px; }
  .menu a { font-size: 13px; }
}

@media (min-width: 600px) {
  :root { --page-gutter: 32px; }
  .library-label { display: inline; }
  .tool .tool-label { display: inline; }
  .crumb { font-size: 13px; }
  .hero-content { padding: 40px 36px; }
  .hero h1 { font-size: 3.75rem; }
}

@media (min-width: 720px) {
  .hero { grid-template-columns: 1.15fr .85fr; min-height: 560px; }
  .hero-content { align-self: center; }
  .hero-actions { gap: 16px 20px; }
  .hero h1 { font-size: clamp(3.3rem, 5.1vw, 4.5rem); }
  .hero-media { height: 100%; min-height: 0; }
  .hero-media img { position: absolute; inset: 0; object-position: 50% 50%; }
  .hero-footer { margin-top: 32px; padding-top: 20px; }
  .guide-map ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-map a { padding-inline: 16px; }
  .guide-map li + li { border-left: 1px solid var(--line); }
  .guide-map li:first-child a { padding-left: 0; }
  .triad, .risk-grid, .editorial-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .botanical-feature { grid-template-columns: 1fr 1fr; }
  .botanical-feature img { height: 100%; min-height: 320px; }
  .botanical-feature figcaption { padding: 32px; }
  .evidence-card { grid-template-columns: 172px minmax(0, 1fr); gap: 28px; }
  .route-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route-tabs button { flex-direction: column; gap: 6px; }
  .tab-panel { padding: 32px; }
  .consultation-layout { grid-template-columns: 1.35fr .65fr; gap: 32px; }
  .consultation-photo img { height: 100%; object-position: 50% 50%; }
  .endcap { grid-template-columns: .8fr 1.2fr; }
  .endcap-photo { position: relative; }
  .endcap-photo img { position: absolute; inset: 0; height: 100%; object-position: 50% 20%; }
  .endcap-content { padding: 36px; }
}

@media (min-width: 900px) {
  .concept-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .concept-list article + article { border-left: 1px solid var(--line); padding-left: 24px; }
  .document-types { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .document-types > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
  .legal-callout { grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; }
  .practical { grid-template-columns: 1fr 1fr; }
  .source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  :root { --page-gutter: 40px; --anchor-offset: 32px; }
  .site-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 32px 18px 20px; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); border-bottom: 0; }
  .sidebar > .brand { margin-left: 8px; }
  .mobile-top { display: none; }
  .topline { min-height: 88px; }
  .chapter-head { grid-template-columns: 44px minmax(0, 1fr); gap: 24px; }
  .chapter-no { font-size: 30px; }
  .hero-content { padding: 40px; }
  .footer { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1400px) {
  .hero-content { padding: 48px; }
  .hero { min-height: 600px; }
  .route-tabs button { flex-direction: row; gap: 8px; }
}

@media screen and (max-width: 699px) {
  .comparison, .comparison tbody, .comparison tr, .comparison td { display: block; width: 100%; }
  .comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .comparison th { padding: 0; font-size: 0; }
  .comparison tbody { display: grid; gap: 16px; }
  .comparison tr { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
  .comparison td { padding: 12px 0 0; border: 0; }
  .comparison td:first-child { width: 100%; padding: 0 0 8px; font-size: 1.0625em; }
  .cell-label { display: block; margin-bottom: 4px; color: var(--pine); font-size: .875em; font-weight: 600; }
}

@media (max-width: 719px) {
  .hero-actions .btn { gap: 8px; padding-inline: 14px; font-size: .8125em; }
  .hero-secondary { gap: 6px; font-size: .8125em; }
  .hero-secondary .icon { width: 16px; height: 16px; }
}

@media (max-width: 359px) {
  :root { --page-gutter: 16px; }
  .mobile-top { padding-inline: 16px; }
  .mobile-top .brand { gap: 8px; }
  .mobile-top .brand small { max-width: 142px; }
  .menu-toggle { padding-inline: 8px; }
  .menu-toggle span { display: none; }
  .hero-content { padding: 28px 20px; }
  .hero h1 { font-size: 2.6rem; }
  .ribbon { padding: 20px 16px; gap: 12px; }
  .profile, .checklist, .tab-panel { padding: 24px 20px; }
  .route-tabs button { flex-direction: column; }
  .chapter-head { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  @page {
    size: A4;
    margin: 16mm 14mm;
    @bottom-left { content: 'Cannabis medicinal · Dr. Alexandre Ribeiro'; font: 8pt var(--sans); color: #52695b; }
    @bottom-right { content: counter(page); font: 8pt var(--sans); color: #52695b; }
  }
  @page :first {
    @bottom-left { content: ''; }
    @bottom-right { content: ''; }
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { scroll-behavior: auto; }
  body { background: white; font-size: 10.5pt; line-height: 1.6; }
  p, li { orphans: 3; widows: 3; }
  .progress, .sidebar, .mobile-top, .nav-backdrop, .topline, .backtop, .toast, .skip-link, .hero-actions, .route-tabs, .reading-status, .endcap .btn, .inline-actions { display: none !important; }
  .site-shell { display: block; }
  .page { max-width: none; padding: 0; font-size: 10.5pt; }
  .hero { grid-template-columns: 1.2fr .8fr; min-height: 300px; border-radius: 0; }
  .hero-content { padding: 28px; }
  .hero h1 { font-size: 40pt; }
  .hero p { font-size: 10pt; }
  .hero-footer { margin-top: 20px; padding-top: 12px; }
  .hero-media { height: 100%; }
  .hero-media img { position: absolute; height: 100%; inset: 0; object-position: center; }
  .readintro { padding: 16px 0; }
  .ribbon { margin-top: 16px; padding: 16px 20px; break-inside: avoid; }
  .ribbon p { line-height: 1.6; }
  .guide-map { margin-top: 28px; break-inside: avoid; }
  .guide-map ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-map a { padding: 16px 12px; }
  section.chapter { margin-top: 0; padding-top: 0; border-top: 0; break-before: page; }
  .chapter-head { grid-template-columns: 36px minmax(0, 1fr); gap: 16px; margin-bottom: 16px; break-after: avoid; }
  .chapter h2 { margin-bottom: 12px; font-size: 25pt; }
  .chapter-head p { font-size: 10.5pt; }
  .lead { max-width: none; margin-bottom: 20px; font-size: 10.5pt; line-height: 1.7; }
  .triad, .risk-grid, .editorial-pair, .source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile { padding: 16px 20px; font-size: 10pt; }
  .profile h3 { margin-bottom: 12px; font-size: 28pt; }
  .bullets { gap: 8px; margin-top: 12px; line-height: 1.6; }
  .footnote { margin-top: 16px; line-height: 1.6; }
  .concept-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; padding: 16px 0; }
  .concept-list h3 { margin-block: 8px; }
  .botanical-feature { grid-template-columns: 1fr 1fr; height: 152px; margin-top: 20px; break-inside: avoid; }
  .botanical-feature img { min-height: 0; height: 100%; }
  .botanical-feature figcaption { padding: 12px 16px; }
  .botanical-feature .icon { display: none; }
  .botanical-feature blockquote { font-size: 16pt; margin: 8px 0; }
  .evidence-card { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 14px 0; }
  .evidence-card h3 { margin-bottom: 8px; }
  .risk { padding-block: 20px; }
  .profile, .risk, .evidence-card, .step, .document-types > div, .legal-callout, .editorial-pair article, .faq details, .source-list li, .checklist label, .comparison tr { break-inside: avoid; }
  .tab-panel, .tab-panel[hidden] { display: block !important; margin-bottom: 16px; padding: 16px 20px; break-inside: avoid; }
  .tab-panel h3 { margin-bottom: 12px; font-size: 18pt; }
  .tab-panel ul { gap: 4px; margin-block: 12px; }
  .resource { min-height: 0; }
  .consultation-layout { grid-template-columns: 1.3fr .7fr; gap: 28px; }
  .consultation-photo img { height: 100%; }
  .step { padding-block: 16px; }
  .step h3 { margin-bottom: 6px; }
  .step p { line-height: 1.65; }
  .document-types { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
  .document-types > div { padding-block: 16px; }
  .document-types dd { margin-top: 12px; line-height: 1.65; }
  .document-types dt { font-size: 10.5pt; }
  .document-types dt .icon { display: none; }
  .cultivation-photo img { height: 180px; }
  .legal-callout { grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
  .practical { grid-template-columns: 1fr 1fr; gap: 24px; }
  .checklist { padding: 20px; }
  .checklist label { min-height: 0; padding-block: 12px; line-height: 1.6; }
  .check-progress, .check-count { display: none !important; }
  .checklist input { width: 14px; height: 14px; }
  .subheading { margin-block: 24px 16px; break-after: avoid; }
  .comparison th, .comparison td { padding: 12px; line-height: 1.6; }
  .faq summary { min-height: 0; padding-block: 16px; break-after: avoid; }
  .faq summary .icon { display: none; }
  .faq details p { max-width: none; padding-bottom: 16px; line-height: 1.65; }
  .source-list li { padding-block: 12px; }
  .endcap { grid-template-columns: .7fr 1.3fr; margin-top: 32px; break-inside: avoid; }
  .endcap-photo { position: relative; }
  .endcap-photo img { position: absolute; height: 100%; inset: 0; }
  .endcap-content { padding: 28px; }
  .endcap h2 { font-size: 26pt; }
  .footer { margin-top: 24px; padding-top: 20px; }
  .footer a { min-height: 0; }
}
