/* Light botanical reading surface: restrained depth, clear controls, existing art. */
:root { --paper:#faf9f3; --white:#fffefa; }
.wrap { width:min(1320px,calc(100% - 64px)); }
.navigation-shell .site-header { min-height:76px; }
.site-header .page-tabs a { min-height:48px; padding:10px 16px; }
.notebook-intro { padding-block:32px 20px; grid-template-columns:1.2fr 1fr; column-gap:48px; row-gap:16px; }
.notebook-intro h1 { font-size:clamp(2.5rem,4vw,4rem); }
.notebook-intro .hero-art { width:100%; max-width:460px; }
.notebook-intro .hero-art img { max-height:290px; }
.hero-secondary { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:baseline; gap:10px 28px; border-top:1px solid var(--line); padding-top:16px; }
.hero-secondary .bible-home-link,.hero-secondary .document-link,.hero-secondary .download-note { margin:0; }
.hero-secondary .download-note { max-width:none; flex-basis:100%; }
.primary-link { border-radius:8px; box-shadow:0 2px 5px #193e3015,inset 0 1px 0 #ffffff24; }
.section-heading { gap:24px; }
.section-heading>p { max-width:320px; }
.reference-section .section-heading h1,.resource-section h1,.preparation-section h1 { font-size:clamp(2.35rem,4vw,3.7rem); }
.reference-section .section-heading { margin-bottom:20px; }
.browse-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 16px; background:var(--white); padding:20px; border:1px solid #bcc8ba; border-radius:12px; box-shadow:0 4px 16px #193e3008; margin-bottom:16px; }
.browse-tools[hidden], [hidden] { display:none!important; }
.search-control label { display:block; font-weight:600; margin-bottom:6px; }
.search-control input,.filter-fields select { width:100%; font:inherit; color:var(--ink); background:white; border:1px solid #778674; border-radius:7px; padding:11px 13px; min-height:46px; }
.search-control input:focus,.filter-fields select:focus { outline:3px solid #244ab233; outline-offset:2px; border-color:var(--cobalt); }
.browse-filters { align-self:start; padding-top:32px; }
.browse-filters>summary { padding:10px 19px; border:1px solid #778674; border-radius:7px; min-height:46px; background:#f0f4ee; font-weight:600; cursor:pointer; }
.browse-filters[open] { min-width:260px; }
.filter-fields { display:grid; gap:10px; padding-top:14px; }
.bible-filter { display:flex; align-items:center; gap:9px; padding-block:6px; }
.bible-filter input { width:20px; height:20px; accent-color:var(--green); }
.filter-fields button { font:inherit; background:white; color:var(--cobalt); border:1px solid var(--line); padding:10px; border-radius:6px; cursor:pointer; }
#ingredient-results { grid-column:1/-1; margin:4px 0 0; font-size:.9rem; color:var(--muted); }
.search-empty { background:#f1f4ee; border:1px solid var(--line); padding:20px; border-radius:8px; }
.browse-categories,.art-reading-guide { margin:12px 0; }
.browse-categories>summary,.art-reading-guide>summary { cursor:pointer; padding:10px 0; font-size:.95rem; color:var(--green); text-decoration:underline; text-underline-offset:4px; }
.browse-categories .category-links { margin:10px 0 16px; }
.art-reading-guide .art-reading-note { max-width:75ch; }
.az-index,.bible-index { margin:10px 0; border-radius:8px; }
.az-index>summary,.bible-index>summary { padding:12px 16px; font:600 1rem/1.5 'DM Sans',Arial,sans-serif; }
.bible-index { padding:0; }
.bible-index-body { padding:12px 20px 22px; }
.bible-index>summary>span { display:inline; padding-left:12px; }
.reading-note { margin:12px 0 24px; }
.group-heading h3 { font-size:clamp(1.65rem,2.5vw,2.35rem); }
.reference-entry,.guide-card,.herb-card { border-radius:10px; border-color:#c5cebf; box-shadow:0 2px 7px #193e3005; overflow:hidden; }
.reference-entry>summary { min-height:88px; }
.reference-entry[open]>summary { background:#eef4e8; }
.entry-body { max-width:none; padding:26px 32px; }
.entry-body>.identity { max-width:65ch; }
.quick-card { max-width:100%; }
.quick-card>p,.quick-card>ul { max-width:72ch; }
.entry-body .full-entry-body { max-width:80ch; margin-inline:auto; }
.history-reading { clear:both; margin:22px 0; border-block:1px solid var(--line); }
.history-reading>summary { padding:14px 0; cursor:pointer; color:var(--green); font-weight:600; }
.history-reading .heritage-story { margin:0 0 16px; }
.entry-body .heritage-story,.entry-body .bible-connection,.entry-body .biblical-language { max-width:85ch; }
.quick-cautions { border-radius:0 8px 8px 0; max-width:80ch; }
body[data-page=preparations] .preparation-section { min-height:0; padding-block:32px 48px; }
.guide-grid { gap:18px; }
.guide-card>summary { min-height:90px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px; }
.guide-card[open] .guide-body { max-width:82ch; margin:auto; padding:10px 28px 28px; }
.guide-subheading { font:600 1.12rem/1.5 'DM Sans',Arial,sans-serif; margin:26px 0 10px; color:var(--green); border-bottom:1px solid var(--line); padding-bottom:8px; }
body[data-page=resources] .resource-section { padding-top:32px; }
.resource-grid { gap:18px; }
.resource-grid>li { padding:20px; background:var(--white); border:1px solid var(--line); border-radius:9px; }
.rights-notice p { display:block!important; }
.site-footer { padding-block:26px; align-items:start; }
html { scroll-padding-top:96px; }
.reference-group,.reference-entry,.entry-cautions,.bible-index,.ingredient-request,.guide-card,.herb-card { scroll-margin-top:96px; }
@media(max-width:850px) {
 .navigation-shell .site-header { min-height:0; padding-top:9px; padding-bottom:0; gap:7px; }
 .brand { font-size:1rem; gap:8px; }
 .brand-mark { width:32px; height:32px; font-size:1.55rem; }
 .brand br { display:none; }
 .brand br::after { content:' '; }
 .site-header .page-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
 .site-header .page-tabs a { font-size:.95rem; padding:8px 5px; min-height:44px; }
 .browse-filters[open] { min-width:220px; }
 html { scroll-padding-top:110px; }
 .reference-group,.reference-entry,.entry-cautions,.bible-index,.ingredient-request,.guide-card,.herb-card { scroll-margin-top:110px; }
}
@media(max-width:600px) {
 .wrap { width:calc(100% - 32px); }
 .navigation-shell .site-header { padding-top:8px; gap:7px; }
 .brand { min-height:32px; }
 .site-header .page-tabs { margin:0; border:0; padding:0; }
 .site-header .page-tabs a { font-size:.875rem; padding:9px 3px; letter-spacing:-.015em; }
 .notebook-intro { grid-template-columns:1fr; padding-block:22px; gap:18px; }
 .notebook-intro h1 { font-size:2.65rem; line-height:1.06; margin-bottom:12px; }
 .notebook-intro .eyebrow { font-size:.8rem; margin-bottom:10px; }
 .notebook-intro .lede { margin-bottom:12px; font-size:1rem; }
 .reference-meta { gap:6px 12px; font-size:.82rem; margin-bottom:14px; }
 .reference-meta span+span { border:0; padding:0; }
 .reference-meta span:last-child { font-weight:400; }
 .browse-link { margin-bottom:0; }
 .notebook-intro .hero-art { max-width:340px; justify-self:center; margin:0; }
 .notebook-intro .hero-art img { max-height:190px; }
 .hero-secondary { display:block; padding-top:14px; }
 .hero-secondary .bible-home-link { margin-bottom:12px; }
 .hero-secondary .document-link { display:block; }
 .hero-secondary .document-link span { display:block; margin:4px 0; }
 .hero-secondary .download-note { margin-top:8px; }
 .reference-section,.resource-section { padding-top:24px; }
 .reference-section .section-heading h1,.resource-section h1,.preparation-section h1 { font-size:2.6rem; }
 .section-heading { margin-bottom:20px; }
 .section-heading .eyebrow { margin-bottom:9px; font-size:.8rem; }
 .section-heading>p { margin-top:10px; }
 .browse-tools { padding:14px; gap:10px; grid-template-columns:1fr; }
 .browse-filters { padding:0; }
 .browse-filters[open] { min-width:0; }
 .browse-filters>summary { display:inline-block; min-width:88px; }
 .filter-fields { padding:12px 0 4px; }
 .reference-entry>summary { padding:13px; min-height:82px; }
 .entry-body { padding:18px; }
 .entry-body .identity { font-size:1rem; line-height:1.65; }
 .entry-body .heritage-story,.entry-body .bible-connection { padding:17px; }
 .guide-card>summary { min-height:72px; padding:18px; }
 .guide-card[open] .guide-body { padding:0 18px 22px; }
 .herb-section { padding-block:26px 36px; }
 .herb-card h3 { font-size:2.7rem; }
 .resource-grid>li { padding:18px; }
 .rights-notice { font-size:.875rem!important; }
 .site-footer { gap:18px; }
}
@media print {
 .browse-tools,.browse-categories,.art-reading-guide,.hero-secondary { display:none!important; }
 .rights-notice { color:#111; break-inside:avoid; }
 .reference-entry,.guide-card,.herb-card { box-shadow:none; }
}
.reference-entry>summary:focus-visible,.guide-card>summary:focus-visible { outline:3px solid var(--cobalt); outline-offset:-5px; }
/* Search refinement is visible beside the query, not buried in the filter drawer. */
.search-control .whole-word-option { display:flex; align-items:center; gap:9px; font-weight:400; margin:12px 0 6px; min-height:32px; }
.search-control .whole-word-option input { width:20px; height:20px; min-height:20px; padding:0; accent-color:var(--green); flex:0 0 auto; }
#search-tip { margin:0; font-size:.875rem; line-height:1.5; color:var(--muted); max-width:68ch; }
.nav-label-short { display:none; }
@media(max-width:850px) {
 .site-header .page-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); min-width:0; max-width:100%; width:100%; gap:4px; overflow:visible; }
 .site-header .page-tabs a { min-width:0; white-space:normal; overflow-wrap:normal; word-break:normal; min-height:44px; padding:9px 8px; font-size:1rem; }
 .nav-label-full { display:none; }
 .nav-label-short { display:inline; }
}
@media(max-width:600px) {
 .site-header .page-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .navigation-shell .site-header { padding-bottom:6px; }
 html { scroll-padding-top:160px; }
 .reference-group,.reference-entry,.entry-cautions,.bible-index,.ingredient-request,.guide-card,.herb-card { scroll-margin-top:160px; }
}

/* Reviewed symptom discovery remains readable in both compact and gallery views. */
.symptom-search-status{margin:1rem 0;padding:1rem 1.2rem;border:1px solid #b3bcae;border-radius:.5rem;background:#f2f4eb;line-height:1.55}
.symptom-search-status p{margin:.25rem 0 .7rem;max-width:85ch}
.symptom-search-status p:last-child{margin-bottom:0}
.symptom-match-note{margin:.8rem 0;padding:.85rem;border-left:3px solid #63795c;background:#f2f4eb;font-size:.88rem;line-height:1.5;overflow-wrap:anywhere}
.symptom-match-note p{margin:.25rem 0 .6rem}
.symptom-match-note .symptom-match-heading{font-weight:700}
.symptom-match-note a{text-decoration:underline}
.home-search-scope{font-size:.85rem;line-height:1.45;margin:.5rem 0 0}
.symptom-match-note[hidden],.symptom-search-status[hidden]{display:none!important}
@media print{.symptom-search-status,.symptom-match-note{break-inside:avoid;background:white;color:black}.symptom-match-note[hidden]{display:none!important}}

/* Result pages retain generous keyboard/touch targets in either directory layout. */
.browse-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin:1.5rem 0;padding:1rem 0;border-top:1px solid #ccd5c6}
.browse-pagination a{display:inline-flex;align-items:center;min-height:44px;padding:.5rem .85rem;border:1px solid currentColor;border-radius:6px}
.browse-pagination a:focus-visible{outline:3px solid #617344;outline-offset:3px}
.reference-grid[aria-busy="true"]{opacity:.65}

/* Library search keeps one optional guidance area and compact, grounded match labels. */
body.journal-site[data-page=ingredients] .browse-help{margin:0 0 12px;border-bottom:1px solid var(--line)}
body.journal-site[data-page=ingredients] .browse-help>summary{display:list-item;cursor:pointer;min-height:44px;padding:10px 0;color:var(--green);font-size:.95rem}
body.journal-site[data-page=ingredients] .browse-help-body{padding:0 12px 14px;max-width:88ch}
body.journal-site[data-page=ingredients] .browse-help-body>p{font-size:.95rem;line-height:1.6}
body.journal-site[data-page=ingredients] .browse-tools{margin-bottom:2px}
body.journal-site[data-page=ingredients] .search-control .whole-word-option{margin-top:7px;margin-bottom:4px}
body.journal-site[data-page=ingredients] .compact-entry .ingredient-match-reason{display:block;margin-top:4px;font:400 .8rem/1.4 Arial,sans-serif;color:#5d6656;letter-spacing:0;text-transform:none}
body.journal-site[data-page=ingredients] .compact-entry .ingredient-match-reason[hidden]{display:none}
body.journal-site[data-page=ingredients] .directory-view-controls{margin:2px 0 8px}
body.journal-site[data-page=ingredients] #all-ingredients .reference-grid>.directory-letter:first-child{margin-top:8px}
@media print{body.journal-site[data-page=ingredients] .browse-help{display:none}}
/* Sourced food-water matches have their own quiet context, separate from symptom panels. */
.hydration-search-status:not([hidden]){margin:16px 0 22px;padding:18px 22px;background:#edf0e5;border:1px solid #bec8bb;border-left:3px solid #687f71;max-width:76ch;line-height:1.65}
.hydration-search-status p{margin:0 0 10px}.hydration-search-status p:last-child{margin-bottom:0}
.hydration-match-note:not([hidden]){padding:12px 14px;margin:12px 0;background:#f3f5ee;border-left:2px solid #899c8d;font-size:.92rem;line-height:1.6}
.hydration-match-note p{margin:0 0 8px}.hydration-match-note p:last-child{margin-bottom:0}
.hydration-search-status a,.hydration-match-note a{text-decoration:underline;text-underline-offset:3px}

/* Keep the page jump usable on narrow screens and at large text sizes. */
.browse-page-jump{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;max-width:100%;margin:0}
.browse-page-jump label{font-weight:600}
.browse-page-jump input{box-sizing:border-box;width:5.5rem;max-width:100%;min-height:44px;padding:.5rem;border:1px solid #617344;border-radius:6px;font:inherit;color:inherit;background:#fff}
.browse-page-jump button{min-height:44px;padding:.5rem .85rem;border:1px solid currentColor;border-radius:6px;font:inherit;color:inherit;background:transparent;cursor:pointer}
.browse-page-jump :is(input,button):focus-visible{outline:3px solid #617344;outline-offset:3px}
.browse-page-jump input[aria-invalid="true"]{border-color:#9b3024}
.browse-page-error{flex-basis:100%;color:#8a291e;font-size:.95rem}
.browse-page-error:empty{display:none}

/* Keep a logical search-results outline without changing the visible directory layout. */
#all-ingredients .directory-results-title:not([hidden]){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
