/* Shared masthead for every public feature, independent of route CSS. */
body .site-header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;height:112px;min-height:112px;max-width:none;margin:0;padding:0 5.5%;gap:24px;background:#fbfbf8;border:0;border-top:3px solid #183d35;border-bottom:1px solid #dde2da;box-shadow:0 5px 20px #183d3504;color:#203a33;font:16px/1.7 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif}
body .site-header .brand{display:flex;align-items:center;flex:0 0 auto;min-width:0;gap:16px;margin:0;padding:0;color:#203a33;text-decoration:none;letter-spacing:normal}
body .site-header .hella-logo{display:block;flex:0 0 auto;object-fit:contain;width:64px;height:64px;max-width:none;margin:0}
body .site-header .brand-type{font:24px/1.3 'Noto Serif SC','Songti SC','STSong',Georgia,serif;letter-spacing:3px;color:#203a33}
body .site-header .brand-type small{display:block;margin:8px 0 0;font:10px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:1.7px;color:#203a33;white-space:nowrap}
body .site-header .desktop-nav{display:flex;align-self:stretch;align-items:center;flex-wrap:nowrap;gap:24px;margin:0 0 0 auto;padding:0}
body .site-header .desktop-nav a{display:flex;align-items:center;position:relative;height:100%;padding:0;border:0;font:15px/1.7 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0;white-space:nowrap;text-decoration:none;color:#66746d}
body .site-header .desktop-nav a:hover,body .site-header .desktop-nav a.active{color:#183d35}
body .site-header .desktop-nav a.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#183d35}
body .site-header .member-entry{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:8px;margin:0;padding:10px 13px;min-height:44px;border:1px solid #c6d1c5;border-radius:24px;color:#183d35;background:#f1f4ee;font:14px/1.7 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0;text-decoration:none;white-space:nowrap}
body .site-header .member-entry svg{display:block;flex:none;width:21px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5}
body .site-header .member-entry:hover,body .site-header .member-entry[aria-current=page]{background:#183d35;border-color:#183d35;color:#fff}
body .site-header a:focus-visible{outline:2px solid #9b713b;outline-offset:4px}
body .site-header[hidden]{display:none}
@media(min-width:1500px){body .site-header{padding-left:calc((100% - 1200px)/2);padding-right:calc((100% - 1200px)/2)}}
@media(max-width:1100px){body .site-header{padding:0 4%;gap:16px}body .site-header .desktop-nav{gap:16px}body .site-header .desktop-nav a{font-size:14px}body .site-header .brand-type{font-size:22px;letter-spacing:2px}}
@media(max-width:900px){body .site-header .desktop-nav{display:none}}
@media(max-width:760px){body .site-header{height:90px;min-height:90px;padding:0 20px;gap:12px}body .site-header .brand{gap:8px}body .site-header .hella-logo{width:54px;height:54px}body .site-header .brand-type{font-size:22px;letter-spacing:2px}body .site-header .brand-type small{font-size:9px;letter-spacing:1.6px}body .site-header .member-entry{padding:9px 11px;gap:6px;margin-left:auto}}
@media(max-width:400px){body .site-header{padding:0 16px}body .site-header .hella-logo{width:42px;height:42px}body .site-header .brand{gap:7px}body .site-header .brand-type{font-size:20px;letter-spacing:1px}body .site-header .brand-type small{font-size:8px;letter-spacing:.6px}body .site-header .member-entry{padding:8px 10px}body .site-header .member-entry svg{width:19px}}
@media(max-width:350px){body .site-header{padding:0 12px;gap:8px}body .site-header .hella-logo{width:36px;height:36px}body .site-header .brand-type{font-size:18px}body .site-header .brand-type small{font-size:7px;letter-spacing:.5px}body .site-header .member-entry{font-size:12px;padding:8px;gap:4px}}

/* The archive totals remain in the shared shell across catalogue navigation. */
body[data-page="home"] > .catalog-stats,body[data-page="materials"] > .catalog-stats,body[data-page="recipes"] > .catalog-stats{display:flex;text-decoration:none;color:inherit}
body > .catalog-stats .catalog-library-link{font-size:12px;color:#526b55}
body > .catalog-stats:focus-visible{outline:2px solid #9b713b;outline-offset:4px}
@media(max-width:370px){body > .catalog-stats{margin-left:16px;margin-right:16px;padding:16px 14px;column-gap:10px}body > .catalog-stats dl{gap:16px}body > .catalog-stats dd{font-size:28px}body > .catalog-stats dd small{margin-left:3px}body > .catalog-stats .catalog-stats-date{padding-left:10px}body > .catalog-stats .catalog-stats-date time{font-size:12px}}
body[data-page="home"] .home-feature-grid .home-feature-link:nth-child(4n+1),body[data-page="home"] .home-feature-grid .home-feature-link:nth-child(4n){background:linear-gradient(125deg,#edf2e9,#f6f6ef);border-color:#c7d5c5}

/* Related recipes must remain styled when a material is the first route. */
body .related .related-count{font-size:13px;color:#66746d;margin:10px 0 20px;line-height:1.7}
body .related .related-count strong{font-weight:500;color:#183d35}
body .related .recipe-group{border:1px solid #dce3d8;border-radius:8px;background:#fff;margin:0 0 10px;overflow:hidden}
body .related .recipe-group>summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:14px 16px;list-style:none;cursor:pointer;font-size:15px;line-height:1.6;color:#203a33;font-weight:500;background:#f2f5ed}
body .related .recipe-group>summary::marker{content:'';font-size:0}
body .related .recipe-group>summary::-webkit-details-marker{display:none}
body .related .recipe-group>summary>span:first-child{flex:1;min-width:0}
body .related .recipe-group .recipe-group-count{font:12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;color:#63735f;white-space:nowrap}
body .related .recipe-group-toggle{position:relative;display:block;flex:0 0 16px;width:16px;height:16px}
body .related .recipe-group-toggle:before,body .related .recipe-group-toggle:after{content:'';position:absolute;background:#5d765c;left:2px;right:2px;height:1px;top:7.5px}
body .related .recipe-group-toggle:after{transform:rotate(90deg)}
body .related .recipe-group[open]>summary .recipe-group-toggle:after{transform:rotate(0)}
body .related .recipe-group-items{padding:0 16px}
body .related .recipe-group-items>a{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border:0;border-top:1px solid #e7ebe2;font-size:15px;line-height:1.65;text-decoration:none}
body .related .recipe-group-items>a:first-child{border-top:0}
body .related .recipe-group-items>a>span{min-width:0}
body .related .recipe-group-items small{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:#66746d}
body .related .recipe-group-items>a>svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:#678068;stroke-width:1.5}
body .related .recipe-group-items>a[hidden],body .related .related-more[hidden]{display:none}
body .related .related-more{display:block;width:calc(100% - 32px);min-height:44px;margin:0 16px 14px;padding:9px 12px;border:1px solid #dce3d8;border-radius:5px;background:#f6f8f2;color:#36543e;font-size:13px;line-height:1.7;cursor:pointer}
body .related .recipe-group>summary:focus-visible{outline:2px solid #9b713b;outline-offset:-3px}

/* Shared refinements: keep the established paper/forest palette and botanical imagery. */
body>.catalog-stats{min-height:0;padding:18px 24px;margin-top:16px;margin-bottom:20px;gap:20px}
body>.catalog-stats dl{gap:28px}body>.catalog-stats dd{font-size:30px;line-height:1.1}body>.catalog-stats dt{font-size:12px;color:#536650}body>.catalog-stats .catalog-stats-date{font-size:12px}
body[data-page="home"] .ai-home-hero{min-height:390px}body[data-page="home"] .ai-home-copy{padding:34px 42px 30px}body[data-page="home"] .ai-home-kicker{margin-bottom:18px}body[data-page="home"] .ai-home-foundation{margin-top:20px;padding-top:16px}body[data-page="home"] .ai-home-description{margin-top:16px}body[data-page="home"] .ai-home-button{margin-top:20px}
body[data-page="home"] .home-feature-hub{margin-top:24px}body[data-page="home"] .home-feature-heading{margin-bottom:16px}body[data-page="home"] .home-feature-heading>.eyebrow,body[data-page="home"] .home-feature-heading .eyebrow{display:none}body[data-page="home"] .home-feature-heading>p{display:none}
.home-feature-link small{color:#52644f!important;font-size:13px!important}.mobile-nav a{color:#53644f!important}.mobile-nav a.active{color:#183d35!important}
.material-row .material-tags>span{font-size:12px!important;line-height:1.6;color:#4c604c}.material-row .material-meta{flex-wrap:wrap;row-gap:5px}.material-row .material-thumb{flex-shrink:0}.material-row .material-thumb img{object-fit:contain}.material-row .material-latin{color:#5b695b}.material-row .material-kind{color:#556750}
body[data-page="recipes"] .page-intro{padding-top:20px;margin-bottom:20px}body[data-page="recipes"] .page-intro h1{font-size:30px;margin:0 0 16px}body[data-page="recipes"] .recipe-search-panel{margin:12px 0 0}body[data-page="recipes"] .recipe-search-label{display:none}body[data-page="recipes"] .access-help{font-size:12px;margin:8px 0;color:#536650}body[data-page="recipes"] .recipe-discovery>.section-heading{margin-bottom:14px;align-items:center}body[data-page="recipes"] #recipe-heading{font-size:21px}body[data-page="recipes"] .recipe-kind-note{font-size:12px;line-height:1.7;margin:10px 0 14px;color:#52644f}body[data-page="recipes"] .recipe-kind-options{gap:8px}
.recipe-filter-panel{border:1px solid #d4ddcf;border-radius:10px;margin:0 0 18px;padding:0 16px}.recipe-filter-panel>summary{list-style:none;cursor:pointer;min-height:46px;display:flex;align-items:center;justify-content:space-between;font-size:14px}.recipe-filter-panel>summary::-webkit-details-marker{display:none}.recipe-filter-panel>summary:after{content:'＋';font-size:18px;color:#536650}.recipe-filter-panel[open]>summary:after{content:'−'}.recipe-filter-panel #recipe-filters{padding:2px 0 16px}.recipe-filter-panel .recipe-theme-heading{margin:0 0 8px}.recipe-filter-panel .recipe-theme-grid{gap:8px}.recipe-filter-panel .recipe-theme{min-height:42px;padding:8px 12px;font-size:13px}.recipe-filter-panel .recipe-method-label{margin-top:12px}
.recipe-grid .recipe-compact{display:block;min-height:0;border:1px solid #d8dfd2;border-radius:10px;background:#fff;overflow:hidden}.recipe-compact .recipe-card-body{padding:18px}.recipe-compact .recipe-card-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}.recipe-compact .recipe-kind-label{font-size:11px;color:#50664f;background:#eef2e9;padding:3px 7px;border-radius:4px;line-height:1.5}.recipe-compact .method-badge{position:static;font-size:12px;color:#52644f;background:none;padding:0;max-width:45%}.recipe-compact h3{font-size:22px;line-height:1.45;margin:12px 0 7px}.recipe-compact .recipe-context{font-size:12px;line-height:1.7;color:#5e6c58;margin:0 0 7px}.recipe-compact .recipe-description{font-size:13px;line-height:1.75;color:#52644f;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.recipe-compact .card-end{padding-top:12px;margin-top:12px;font-size:12px;color:#52644f}.recipe-compact .card-end svg{width:20px;height:20px}.recipe-more-wrap{align-items:center;justify-content:center;gap:20px;margin-top:22px}.recipe-more-wrap #recipe-page{font-size:13px;color:#52644f}.related-kind{display:block;font-size:11px;color:#52644f;line-height:1.6;margin-bottom:5px}.home-ai-terms{color:#d5ddcc;font-size:12px;line-height:1.7;margin:14px 0 0}
@media(max-width:800px){body>.catalog-stats{padding:14px 16px;gap:12px;margin:12px 20px 18px;flex-wrap:nowrap}body>.catalog-stats dl{gap:20px}body>.catalog-stats dd{font-size:26px}body>.catalog-stats dd small{font-size:11px}body>.catalog-stats .catalog-stats-date{padding-left:12px}body>.catalog-stats .catalog-stats-date time{font-size:12px}body>.catalog-stats .catalog-library-link{display:none}body[data-page="home"] .ai-home-hero{min-height:350px}body[data-page="home"] .ai-home-copy{padding:25px 24px}body[data-page="home"] .ai-home-kicker{font-size:11px;letter-spacing:2px;margin-bottom:14px}body[data-page="home"] .ai-title-lead{font-size:23px}body[data-page="home"] .ai-title-main{font-size:32px;letter-spacing:.01em}body[data-page="home"] .ai-home-description{font-size:13px;line-height:1.8;margin-top:14px}body[data-page="home"] .ai-home-button{padding:11px 18px;font-size:13px;min-width:186px;margin-top:18px}body[data-page="home"] .ai-home-foundation{display:none}body[data-page="home"] .ai-home-scenes{display:none}.home-ai-terms{font-size:11px;max-width:255px}body[data-page="home"] .home-feature-heading h2{font-size:24px}.recipe-grid{gap:12px!important}.recipe-compact h3{font-size:20px}.recipe-compact .recipe-card-body{padding:16px}.material-row .material-tags{gap:4px;flex-wrap:wrap}.material-row .material-tags>span{padding:1px 5px}.material-row .material-meta{gap:6px}body[data-page="recipes"] .recipe-kind-options .chip{font-size:12px;padding:8px 10px}body[data-page="recipes"] .recipe-discovery>.section-heading{gap:10px}.recipe-kind-note{max-width:none}}
@media(max-width:360px){body>.catalog-stats{margin-left:16px;margin-right:16px;padding:12px;gap:10px}body>.catalog-stats dl{gap:12px}body>.catalog-stats dd{font-size:24px}body[data-page="home"] .ai-home-copy{padding:22px 18px}body[data-page="home"] .ai-title-main{font-size:28px}.material-row .material-tags>span{font-size:11px!important}}
body[data-page="recipes"] main .page-intro{padding:0;margin:0 0 18px}body[data-page="recipes"] main .recipe-search-panel{padding:0;border:0;background:none;margin-top:12px}body[data-page="recipes"] main .access-help{padding:0;border:0;background:none;margin:8px 0;font-size:12px}body[data-page="recipes"] main .recipe-kind-options{grid-template-columns:1fr 1fr}body[data-page="recipes"] main .recipe-kind-options .chip{white-space:nowrap}body[data-page="recipes"] main .recipe-search{margin:0}#recipe-search-state:empty,#material-search-state:empty{display:none}body[data-page="recipes"] main .section-heading{margin-top:0}body[data-page="home"] main .discovery{margin-bottom:24px}body[data-page="home"] main{padding-top:8px}
@media(max-width:800px){body>.catalog-stats .catalog-stats-label{display:none}body>.catalog-stats dl{display:grid;grid-template-columns:1fr 1fr;flex:1;gap:16px;margin:0}body>.catalog-stats dl>div{min-width:0}body>.catalog-stats dt,body>.catalog-stats dd,body>.catalog-stats dd small{white-space:nowrap}body>.catalog-stats dd{display:flex;align-items:baseline;gap:5px;line-height:1.25;margin:0}body>.catalog-stats .catalog-stats-date{flex:0 0 auto}body>.catalog-stats{padding:12px 16px}body[data-page="recipes"] main .page-intro h1{font-size:27px;margin:0 0 10px}.recipe-compact .recipe-context{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}}

.plan-conversion{display:block;font-size:12px;line-height:1.7;color:#536650;margin-top:6px}

/* Counts follow the current query and topic; all record types are searchable by default. */
body[data-page="recipes"] main .recipe-kind-options{display:grid;max-width:420px;grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-page="recipes"] main .recipe-kind-options .chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:58px;padding:9px 6px;line-height:1.45;white-space:normal}
body[data-page="recipes"] .recipe-kind-count{font-size:12px;font-variant-numeric:tabular-nums;opacity:.85}

/* Recipe quantities have explanatory text, not a compact catalogue result count. */
body[data-page="recipe"] .detail-main{min-width:0}
body[data-page="recipe"] .detail-main .section-heading{display:block}
body[data-page="recipe"] .detail-main .section-heading>h2{margin:0 0 8px}
body[data-page="recipe"] .detail-main .section-heading>.result-count{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.8}

/* Keep long material reading in visible, semantic sections without collapsed content. */
body[data-page="material"] .reader-article .reader-subheading{font-family:inherit;font-size:17px;line-height:1.6;font-weight:600;color:#294b3b;margin:0 0 8px;letter-spacing:0}
body[data-page="material"] .reader-article .reader-topic{margin:0 0 24px}
body[data-page="material"] .reader-article .reader-topic:last-of-type{margin-bottom:0}
body[data-page="material"] .reader-article .reader-topic>p{margin:0;line-height:1.9}
body[data-page="material"] .reader-article .reader-form-section{margin-top:24px}
body[data-page="material"] .reader-article .reader-form-section>h3{font-family:inherit;font-size:18px;line-height:1.6;margin:0 0 12px;color:#294b3b}
body[data-page="material"] .reader-article .reader-form-section .reader-subheading{font-size:16px}
body[data-page="material"] .reader-reference-links{row-gap:7px;line-height:1.8}
@media(max-width:760px){body[data-page="material"] .reader-article .reader-subheading{font-size:16px}body[data-page="material"] .reader-article .reader-topic{margin-bottom:22px}}
