.leafy-tools{--tool-ink:#213d30;--tool-muted:#54634f;--tool-line:#d1dccb;--tool-paper:#fffef9;max-width:1180px;margin:0 auto;padding:2rem 1.5rem 4rem;color:var(--tool-ink)}.leafy-tools *{box-sizing:border-box}.leafy-tools .tool-tabs{display:flex;gap:1.5rem;flex-wrap:wrap;border-bottom:1px solid var(--tool-line);padding-bottom:.8rem}.tool-tabs a{color:var(--tool-muted);text-decoration:none;padding:.5rem 0;border-bottom:2px solid transparent}.tool-tabs a[aria-current]{color:var(--tool-ink);border-color:var(--tool-ink);font-weight:700}.tool-hero{position:relative;padding:2.8rem 0 2rem;max-width:850px}.leafy-tools .tool-eyebrow{font-size:.75rem;letter-spacing:.14em;font-weight:700;color:#627251}.leafy-tools h1{font-size:clamp(2.3rem,5vw,4.1rem);line-height:1.08;letter-spacing:-.035em;margin:.7rem 0 1rem;color:var(--tool-ink)}.tool-hero>p{font-size:1.13rem;max-width:680px}.leafy-tools h2{font-size:1.65rem;line-height:1.25;margin:.65rem 0 1rem}.leafy-tools h3{font-size:1.2rem;margin:1.6rem 0 .7rem}.leafy-tools h4{font-size:1rem;margin:1rem 0 .4rem}.leafy-tools p{margin:.5rem 0 1rem;line-height:1.6}.tool-panel{border:1px solid var(--tool-line);border-radius:14px;padding:1.6rem;background:var(--tool-paper)}.leafy-tools label{display:block;font-weight:600;margin-bottom:.5rem}.leafy-tools input:not([type=checkbox]),.leafy-tools select{font:inherit;border:1px solid #99ad91;border-radius:7px;padding:.85rem 1rem;width:100%;background:#fff;color:var(--tool-ink);min-height:48px}.leafy-tools button{font:inherit;background:var(--tool-ink);border:1px solid var(--tool-ink);border-radius:7px;padding:.8rem 1.15rem;color:white;cursor:pointer;min-height:44px}.leafy-tools button:hover{background:#35563c}.leafy-tools :is(a,button,input,select,summary):focus-visible{outline:3px solid #8a6735;outline-offset:4px}.search-row{display:flex;gap:.7rem}.search-row input{flex:1;min-width:0}.search-row button{white-space:nowrap}.example-chips{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}.example-chips button{padding:.4rem .8rem;background:#edf2e8;color:var(--tool-ink);border-color:transparent;font-size:.87rem}.example-chips button:hover{border-color:#829676}.leafy-tools #plant-status{font-size:.9rem;color:var(--tool-muted);margin:1rem 0 0}.plant-workspace{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:1.3rem;margin-top:1.3rem}.plant-results{list-style:none!important;padding:0!important;margin:0!important;display:grid;gap:.6rem}.plant-results .plant-result{text-align:left;width:100%;color:var(--tool-ink);background:#edf2e8;border-color:var(--tool-line);display:grid;gap:.2rem}.plant-result span{font-size:.9rem;color:var(--tool-muted)}.plant-results .plant-result:hover,.plant-results .plant-result[aria-pressed=true]{border-color:#365c36;background:#e0e9d8}.plant-alias{font-size:1.1rem;color:var(--tool-muted)}.environment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1.5rem 0}.environment-grid>div{border-bottom:1px solid var(--tool-line);padding:.7rem 0}.environment-grid dt{font-size:.8rem;color:var(--tool-muted)}.environment-grid dd{font-size:1.3rem;margin:.3rem 0;font-weight:600}.tool-note{background:#eef2e7;border-left:3px solid #70885b;padding:1rem;border-radius:0 7px 7px 0;font-size:.93rem}.tool-note.warning{background:#f8f0df;border-color:#a37c42}.care-row{padding:.8rem 0;border-bottom:1px solid var(--tool-line);overflow-wrap:anywhere}.care-row summary{cursor:pointer;font-weight:600;min-height:32px}.care-row p{font-size:.94rem;margin-top:.7rem;white-space:pre-line}.leafy-tools .muted,.tool-footnote{font-size:.86rem;color:var(--tool-muted)}.tool-link{display:inline-block;margin:1.4rem 0;font-weight:700}.tool-footnote{margin-top:2rem!important}.generator-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:1.3rem;align-items:start}.generator-layout label:not(.material-option){margin-top:1.1rem}.leafy-tools fieldset{border:0;padding:0;margin:1.8rem 0 1rem}.leafy-tools legend{font-size:.76rem;letter-spacing:.1em;font-weight:700}.materials{display:grid;gap:.4rem;max-height:345px;overflow-y:auto;padding:3px}.leafy-tools .material-option{display:flex;align-items:center;gap:.65rem;font-size:.9rem;font-weight:400;border-radius:5px;padding:.55rem;margin:0;cursor:pointer;background:#f3f5ee}.material-option input{width:19px;height:19px;accent-color:#31543a;flex:none}.wide-button{width:100%}.leafy-tools table{border-collapse:collapse;width:100%;font-size:.94rem}.leafy-tools th,.leafy-tools td{text-align:left;padding:.8rem .3rem;border-bottom:1px solid var(--tool-line)}.leafy-tools th:first-child,.leafy-tools td:first-child{width:58%}.leafy-tools caption{text-align:left;color:var(--tool-muted);font-size:.85rem;padding-bottom:.5rem}.leafy-tools tfoot{font-weight:700}.mix-bar{display:flex;width:100%;height:16px;border-radius:8px;overflow:hidden;margin:1.5rem 0}.segment-0{background:#385f3b}.segment-1{background:#aab98a}.material-library{margin-top:1.5rem}.material-library>summary{cursor:pointer;font-weight:700}.pagination{display:flex;gap:.5rem;flex-wrap:wrap}.leafy-tools [aria-busy=true]{opacity:.65}@media(max-width:720px){.leafy-tools{padding:1.2rem 1rem 3rem}.tool-hero{padding:2rem 0 1.3rem}.tool-panel{padding:1.15rem}.generator-layout,.plant-workspace{grid-template-columns:1fr}.search-row{flex-direction:column}.plant-results{grid-template-columns:1fr 1fr}.plant-results .pagination{grid-column:1/-1}.plant-result strong{overflow-wrap:anywhere}.environment-grid dd{font-size:1.15rem}.leafy-tools th:first-child,.leafy-tools td:first-child{width:50%}}@media(prefers-reduced-motion:no-preference){.leafy-tools button,.tool-tabs a{transition:background .15s,border-color .15s}}@media print{#masthead,#colophon,.tool-tabs,#substrate-form,.material-library{display:none}.generator-layout{display:block}}

/* These tools have no image hero behind the inherited transparent header. */
body.leafy-tool-page #masthead{position:relative!important;top:auto!important}body.leafy-tool-page .leafy-tools{padding-top:1.5rem}

/* Compact ingredient explanations, scoped to the generator result. */
.leafy-tools .ingredient-explanations{margin-top:1.6rem}
.leafy-tools .ingredient-explanations>h3{font-family:inherit;font-size:1.15rem;font-weight:700;line-height:1.4;margin:0 0 .85rem}
.ingredient-cards{display:grid;gap:.75rem}
.ingredient-card{min-width:0;padding:1rem 1.1rem;border:1px solid var(--tool-line);border-left:3px solid #70885b;border-radius:8px;background:#f3f5ee;overflow-wrap:anywhere}
.leafy-tools .ingredient-card h4{font-family:inherit;font-size:1rem;font-weight:700;line-height:1.4;color:var(--tool-ink);margin:0 0 .8rem}
.ingredient-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem 1rem;margin:0}
.ingredient-facts dt{font-size:.8rem;line-height:1.4;color:var(--tool-muted);font-weight:400}
.ingredient-facts dd{font-size:.9rem;line-height:1.45;font-weight:600;margin:.1rem 0 0}
.leafy-tools .ingredient-card p{font-size:.9rem;line-height:1.5;margin:.8rem 0 0}
.leafy-tools .ingredient-card .ingredient-alternative{border-top:1px solid var(--tool-line);padding-top:.65rem;color:var(--tool-muted)}

/* Substrate page: the same Leafy typography with a clearer work area. */
.substrate-page .tool-hero{max-width:none;padding:1.6rem 0 1.8rem;margin-bottom:1.6rem;border-bottom:1px solid var(--tool-line)}
.substrate-page .tool-hero h1{font-size:clamp(2.3rem,4.5vw,3.7rem)}
.substrate-page .tool-hero p{margin-bottom:0;color:var(--tool-muted)}
.substrate-page .generator-layout{grid-template-columns:minmax(310px,.85fr) minmax(0,1.35fr);gap:1.7rem}
.substrate-page .tool-panel{border-radius:16px;box-shadow:0 5px 22px #213d3006}
.substrate-page #substrate-form{background:#edf2e8}
.substrate-page input:not([type=checkbox]),.substrate-page select{border-radius:8px!important;border-color:#b1c0a8!important;background:#fffefb}
.substrate-page .material-option{background:#ffffffb3;border:1px solid transparent}
.substrate-page .material-option:has(input:checked){background:#fffef9;border-color:#70885b}
.substrate-page .material-option:hover{border-color:#b1c0a8}
.substrate-page .materials{scrollbar-width:thin;scrollbar-color:#aab98a transparent}
.substrate-page .wide-button{margin-top:.7rem}
.substrate-page .recipe{border-top:4px solid #70885b;min-height:240px;scroll-margin-top:1.5rem}
.substrate-page .recipe>h2{font-size:clamp(1.45rem,2.3vw,1.9rem)}
.substrate-page table th{font-size:.8rem;letter-spacing:.025em;color:var(--tool-muted)}
.substrate-page table tbody tr:last-child td{border-bottom:0}
.substrate-page tfoot{background:#edf2e8}
.substrate-page tfoot :is(th,td){padding:.8rem .5rem}
@media(max-width:800px){.substrate-page .generator-layout{grid-template-columns:1fr}.substrate-page .tool-hero{padding:1rem 0 1.4rem}.substrate-page .tool-panel{border-radius:12px}}
.plant-combobox{position:relative;min-width:0}.leafy-tools .plant-suggestions{position:absolute;z-index:30;top:100%;left:0;right:0;margin:.3rem 0 0;padding:.3rem;list-style:none;background:#fffef9;border:1px solid #99ad91;border-radius:8px;box-shadow:0 8px 24px #213d3020;max-height:280px;overflow:auto}.plant-suggestions[hidden]{display:none!important}.plant-suggestions [role=option]{padding:.65rem .75rem;font-size:.95rem;line-height:1.4;cursor:pointer;border-radius:5px;overflow-wrap:anywhere}.plant-suggestions [role=option]:hover,.plant-suggestions [aria-selected=true]{background:#e6eddf;color:#213d30}
