/* An editorial field guide, with enough room to browse and read. */
.food-explorer-section{background:#e9ede3;border-block:1px solid var(--line)}
.food-explorer-section>.section{padding-block:76px 64px}
.food-explorer-heading{grid-template-columns:1.15fr 1fr;gap:72px;align-items:end;margin-bottom:24px}
.food-explorer-heading .eyebrow{margin-bottom:15px}
.food-explorer-heading h2{font-size:clamp(37px,4.2vw,52px);line-height:1.08;max-width:610px}
.food-explorer-heading>p{font-size:17px;line-height:1.7;max-width:450px;padding-bottom:3px}
.explorer-stats{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;margin:0 0 32px;color:var(--green);font-size:12px;line-height:1.6}
.explorer-stats>span{display:inline-flex;align-items:center;gap:9px}
.explorer-stats>span::before{content:"";width:5px;height:5px;border-radius:50%;background:#73906b;flex:none}
.food-explorer,.food-explorer-ready{display:block}
.food-explorer [hidden],.food-explorer-section [hidden]{display:none!important}
.food-explorer:not(.food-explorer-ready) .explorer-grid{display:block}
.food-explorer:not(.food-explorer-ready) .explorer-toolbar,.food-explorer:not(.food-explorer-ready) .food-library,.food-explorer:not(.food-explorer-ready) .profile-actions,.food-explorer:not(.food-explorer-ready) .compare-tray,.food-explorer:not(.food-explorer-ready) #food-comparison{display:none!important}
.food-explorer button,.food-explorer input,.food-explorer select{font-family:var(--sans)}
.food-explorer button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.food-explorer button:focus-visible,.food-explorer input:focus-visible,.food-explorer select:focus-visible,.food-profile h3:focus-visible{outline:3px solid #956917;outline-offset:4px}
.food-explorer button:disabled{cursor:default;opacity:.5}
.explorer-toolbar{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;padding:24px;background:#f8f6ef;border:1px solid #cbd3c4;border-radius:12px;margin-bottom:17px}
.explorer-search{position:relative;flex:1 1 360px;min-width:0}
.explorer-search .food-search-wrap{border:0;background:transparent;border-radius:7px;outline:0}
.food-explorer #food-search-help{flex-basis:100%;margin:-5px 0 0;font-size:11px;line-height:1.55}
.explorer-search label,.family-filter label{display:block;font-size:12px;line-height:1.5;font-weight:600;letter-spacing:.015em;color:var(--green);margin-bottom:8px}
.food-explorer #food-search{display:block;width:100%;min-height:50px;padding:12px 65px 12px 16px;background:#fffefa;border:1px solid #aab8a4;border-radius:7px;font-size:16px;line-height:1.5;color:var(--ink);box-shadow:inset 0 1px 2px #172c3f04;scroll-margin-top:calc(var(--header-offset,112px) + 18px)}
.food-explorer #food-search::placeholder{font-size:14px;color:#657068;opacity:1}
.explorer-search .food-clear{position:absolute;right:4px;bottom:3px;min-height:44px;padding:9px 11px;border:0;background:transparent;border-radius:4px;color:var(--green);font-size:12px;font-weight:600}
.explorer-actions{display:flex;gap:9px;flex:0 1 auto;flex-wrap:wrap}
.explorer-actions button,.profile-actions button,.food-pagination button,.food-empty button,.compare-tray button,.comparison-card button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:45px;padding:10px 15px;border:1px solid #aab8a4;border-radius:6px;background:transparent;color:var(--green);font-size:12px;font-weight:600;line-height:1.5;transition:background-color 150ms var(--ease-out),border-color 150ms var(--ease-out)}
.explorer-actions button{min-height:50px;white-space:nowrap}
#food-surprise{background:var(--green);border-color:var(--green);color:var(--paper)}
#food-saved[aria-pressed="true"],.profile-actions button[aria-pressed="true"]{background:#e0e8d8;border-color:var(--green);color:#254633}
.food-filters{display:flex;gap:7px;flex-wrap:wrap;flex-basis:100%;padding-top:3px}
.food-filters button{min-height:40px;padding:8px 14px;border:1px solid #ccd4c5;background:transparent;color:#4e5c4e;border-radius:22px;font-size:12px;font-weight:500;line-height:1.5;transition:background-color 150ms var(--ease-out),border-color 150ms var(--ease-out)}
.food-filters button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fffefa;font-weight:600}
.family-filter{display:flex;align-items:center;gap:12px;flex:1 1 310px;min-width:0;padding-top:1px}
.family-filter{flex-wrap:wrap}
.family-filter label{margin:0;flex-shrink:0}
.family-filter select{min-width:0;max-width:100%;width:230px;min-height:44px;padding:9px 34px 9px 12px;border:1px solid #c3cdbd;border-radius:6px;background-color:#fffefa;color:var(--ink);font-size:13px;line-height:1.5}
.family-filter .food-reset{min-height:44px;padding:8px 3px;border:0;background:transparent;color:var(--green);font-size:11px;font-weight:600;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.food-result-count{margin:0 0 0 auto;font-size:12px;line-height:1.5;color:var(--muted);align-self:center}
.explorer-grid{display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);align-items:start;gap:28px}
.food-library,.food-profiles{min-width:0}
.food-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.food-choice{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:97px;padding:16px 14px;border:1px solid #c4cfbc;border-radius:9px;background:#f8f6ef;color:var(--ink);text-align:left;transition:background-color 150ms var(--ease-out),border-color 150ms var(--ease-out),transform 100ms var(--ease-out)}
.food-icon{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:45px;font-size:29px;line-height:1;filter:saturate(.83)}
.food-choice>span:not(.food-icon):not(.food-choice-arrow){min-width:0}
.food-choice strong{font-size:14px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.food-choice small{font-size:10px;line-height:1.45;margin-top:5px;color:#5a6859}
.food-choice-arrow{font-size:17px;line-height:1.2;align-self:center;margin-left:auto;opacity:.45;flex-shrink:0}
.food-choice[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fffefa;box-shadow:0 3px 8px #294a3712}
.food-choice[aria-pressed="true"] small{color:#e0e8d9}
.food-choice[aria-pressed="true"] .food-icon{filter:none}
.food-choice[aria-pressed="true"] .food-choice-arrow{opacity:1}
.food-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:0 1px}
.food-pagination button{min-height:44px;background:#f8f6ef;font-size:12px}
.food-pagination p{margin:0;font-size:11px;color:var(--muted);text-align:right}
.food-profile{position:relative;padding:30px 32px;background:#fffdf6;border:1px solid #c4cfbc;border-radius:12px;box-shadow:0 8px 24px #26462e05;margin-bottom:20px;scroll-margin-top:calc(var(--header-offset,112px) + 20px)}
.food-explorer-ready .food-profile{margin:0}
.profile-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:8px;min-height:43px}
.food-profile .food-kicker{font-size:10px;letter-spacing:.11em;line-height:1.6;color:var(--green);margin:0;max-width:calc(100% - 65px)}
.profile-icon{font-size:40px;line-height:1.15;flex:none;filter:saturate(.82)}
.food-profile h3{font-size:clamp(32px,3vw,40px);letter-spacing:-.035em;line-height:1.12;margin:0 0 18px;scroll-margin-top:calc(var(--header-offset,112px) + 20px);overflow-wrap:anywhere}
.food-profile h3:focus:not(:focus-visible){outline:0}
.food-chemistry{font-size:15px;line-height:1.75;margin-bottom:23px;color:#46594c}
.compound-list{margin:0 0 23px;padding:0;list-style:none}
.compound-list li{padding:12px 0;border-top:1px solid #dce1d4}
.compound-list li:last-child{border-bottom:1px solid #dce1d4}
.compound-list strong{font-size:14px;line-height:1.5;font-weight:600}
.compound-list li>span{font-size:11px;line-height:1.5;color:#657260;margin-top:3px}
.food-kitchen{padding:17px 18px;margin-bottom:20px;border-radius:7px;background:#edf1e6;border-left:3px solid #96ad80}
.food-profile h4{font-size:11px;line-height:1.5;letter-spacing:.025em;color:var(--green);margin:0 0 6px}
.food-kitchen p,.food-context p{font-size:13px;line-height:1.7;margin:0;color:#53614f}
.food-context{padding:0 1px}
.profile-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:23px}
.profile-actions button{min-height:44px;font-size:12px;padding-inline:13px;background:transparent}
.food-sources{margin-top:22px;border-top:1px solid #dce1d4}
.food-sources summary{gap:10px;min-height:45px;padding:12px 0 0;font-size:11px;color:var(--green);line-height:1.5}
.food-sources .toggle-icon{width:20px;height:20px;flex-basis:20px}
.food-sources ol{padding-left:18px;margin:10px 0 0}
.food-sources li{font-size:11px;line-height:1.7;margin-top:9px}
.food-sources a{overflow-wrap:anywhere}
.food-empty{padding:40px 32px;background:#fffdf6;border:1px solid #c4cfbc;border-radius:12px}
.food-empty h3{font-size:32px;line-height:1.2;margin:0 0 15px}
.food-empty p{font-size:15px;line-height:1.65;color:var(--muted)}
.food-empty button{background:var(--green);color:var(--paper);border-color:var(--green)}
.compare-tray{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;background:#dce6d4;border:1px solid #b5c5a7;border-radius:9px;padding:17px 20px;margin-top:25px;font-size:13px;color:var(--green)}
.compare-summary{flex:1 1 240px;font-weight:600;line-height:1.5}
.compare-tray>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;font-weight:600;text-decoration-thickness:1px}
.compare-tray button{border-color:#9aaf8a;min-height:40px;padding-block:8px;font-size:11px}
.compare-tray p{flex-basis:100%;margin:0;font-size:12px;line-height:1.6}
.compare-tray p:empty{display:none}
.food-explorer #compare-status{font-size:12px;line-height:1.6;color:var(--green);margin:12px 0 0}
.food-explorer #compare-status:empty{display:none}
.food-explorer .save-note{font-size:11px;line-height:1.6;color:var(--muted);margin:14px 0 0}
#food-comparison{margin-top:33px;padding-top:27px;border-top:1px solid #bdcab4;scroll-margin-top:calc(var(--header-offset,112px) + 22px)}
#food-comparison>h3{font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:0 0 19px}
#food-comparison>p{font-size:13px;color:var(--muted)}
.comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.comparison-card{display:flex;flex-direction:column;min-width:0;padding:22px 23px;background:#f8f6ef;border:1px solid #c4cfbc;border-radius:9px}
.comparison-card h4{font:26px/1.2 var(--serif);letter-spacing:-.025em;color:var(--ink);margin:0 0 9px}
.compare-family{font-size:11px;line-height:1.55;color:var(--green);margin-bottom:15px}
.comparison-card ul{font-size:13px;line-height:1.6;padding-left:18px;margin:0 0 17px}
.comparison-card li{margin-bottom:5px;overflow-wrap:anywhere}
.compare-idea{font-size:12px;line-height:1.7;color:#596653;margin:0 0 20px}
.comparison-card button{align-self:flex-start;margin-top:auto;min-height:40px;padding:8px 12px;font-size:11px;background:transparent}
.food-explorer-footer{margin-top:29px;padding-top:22px;border-top:1px solid #bdcab4;gap:30px}
.food-explorer-footer p{max-width:760px;font-size:12px;line-height:1.7;color:#5a6859}
.food-explorer-footer a{font-size:13px}
.food-explorer button:active{background:#d6e1cf;border-color:var(--green)}
.food-explorer #food-surprise:active,.food-explorer .food-filters button[aria-pressed="true"]:active,.food-explorer .food-choice[aria-pressed="true"]:active{background:#294a37;color:#fffefa}
@media(hover:hover) and (pointer:fine){
  .explorer-actions button:not(#food-surprise):hover,.profile-actions button:hover,.food-pagination button:hover,.compare-tray button:hover,.comparison-card button:hover{background:#e5ecdd;border-color:var(--green)}
  #food-surprise:hover,.food-empty button:hover{background:#294a37;border-color:#294a37}
  .food-filters button:hover{background:#e7eddf;border-color:#9ab18c}
  .food-filters button[aria-pressed="true"]:hover{background:#294a37;border-color:#294a37}
  .food-choice:hover{background:#fdfcf6;border-color:#78946b}
  .food-choice[aria-pressed="true"]:hover{background:#294a37;border-color:#294a37}
  .food-sources summary:hover,.food-clear:hover{color:#172f20}
}
@media(max-width:1000px){
  .food-explorer-heading{gap:35px;grid-template-columns:1.1fr 1fr}
  .explorer-toolbar{padding:20px;gap:14px}
  .explorer-search{flex-basis:300px}
  .explorer-actions{gap:8px}
  .explorer-actions button{padding-inline:12px}
  .explorer-grid{gap:20px;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr)}
  .food-choice{padding:13px 10px;gap:8px;min-height:96px}
  .food-icon{flex-basis:32px;width:32px;font-size:26px}
  .food-choice strong{font-size:13px}
  .food-choice small{font-size:10px}
  .food-choice-arrow{display:none}
  .food-profile{padding:25px}
  .comparison-card{padding:20px 18px}
  .comparison-card h4{font-size:23px}
}
@media(max-width:700px){
  .food-explorer-section>.section{padding-block:45px 40px}
  .food-explorer-heading{display:block;margin-bottom:21px}
  .food-explorer-heading h2{font-size:39px;max-width:520px;margin-bottom:19px}
  .food-explorer-heading>p{font-size:16px;max-width:560px;padding:0}
  .explorer-stats{gap:8px 17px;margin-bottom:24px;font-size:11px}
  .explorer-toolbar{padding:18px 16px;gap:16px;margin-bottom:18px;border-radius:9px}
  .explorer-search{flex-basis:100%}
  .food-explorer #food-search{min-height:50px}
  .food-explorer #food-search::placeholder{font-size:13px}
  .explorer-actions{width:100%;gap:9px}
  .explorer-actions button{flex:1;min-height:45px;font-size:12px;padding:10px}
  .food-filters{gap:7px;padding:0}
  .food-filters button{min-height:40px;padding:8px 12px;font-size:11px}
  .family-filter{flex-basis:100%;gap:10px;justify-content:space-between}
  .family-filter label{font-size:11px}
  .family-filter select{flex:1;max-width:260px;width:auto;font-size:13px;min-height:44px}
  .food-result-count{margin:0;font-size:11px;flex-basis:100%}
  .explorer-grid{grid-template-columns:minmax(0,1fr);gap:23px}
  .food-choices{gap:9px}
  .food-choice{min-height:83px;gap:10px;padding:13px 12px;border-radius:7px}
  .food-icon{flex-basis:34px;width:34px;font-size:28px}
  .food-choice strong{font-size:14px}
  .food-choice small{font-size:10px;margin-top:4px}
  .food-pagination{margin-top:13px;gap:12px}
  .food-pagination button{font-size:11px}
  .food-pagination p{font-size:10px}
  .food-profile{padding:25px 23px;border-radius:10px}
  .profile-top{margin-bottom:9px}
  .profile-icon{font-size:40px}
  .food-profile h3{font-size:35px;margin-bottom:17px}
  .food-chemistry{font-size:14px;line-height:1.7}
  .compound-list strong{font-size:14px}
  .food-kitchen p,.food-context p{font-size:13px}
  .profile-actions{gap:8px}
  .profile-actions button{font-size:11px;padding-inline:12px;flex:1}
  .food-empty{padding:30px 23px}
  .compare-tray{padding:16px;gap:8px 15px;margin-top:22px}
  .compare-summary{flex-basis:100%;font-size:12px}
  .compare-tray>a{margin-right:auto}
  #food-comparison{margin-top:26px;padding-top:24px}
  #food-comparison>h3{font-size:29px}
  .comparison-grid{grid-template-columns:1fr;gap:12px}
  .comparison-card{padding:23px}
  .comparison-card h4{font-size:27px}
  .comparison-card ul{margin-bottom:13px}
  .food-explorer-footer{margin-top:23px;padding-top:19px;gap:10px}
  .food-explorer-footer p{font-size:11px}
}
@media(max-width:380px){
  .food-explorer-heading h2{font-size:35px}
  .explorer-stats{gap:7px 12px;font-size:10px}
  .explorer-toolbar{padding:16px 13px}
  .food-filters button{padding-inline:10px}
  .family-filter{align-items:flex-start;flex-direction:column;gap:7px}
  .family-filter select{width:100%;max-width:none}
  .food-choice{gap:6px;padding:12px 9px}
  .food-icon{flex-basis:28px;width:28px;font-size:25px}
  .food-choice strong{font-size:12px}
  .food-choice small{font-size:9px}
  .food-profile{padding:23px 19px}
  .profile-actions button{flex:1 1 100%;font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .food-explorer button{transition:none!important;transform:none!important;animation:none!important}
}
@media(forced-colors:active){
  .food-explorer-section,.explorer-toolbar,.food-choice,.food-profile,.food-empty,.compare-tray,.comparison-card{border-color:CanvasText}
  .food-explorer button,.food-explorer input,.food-explorer select{border:1px solid ButtonText}
  .food-explorer button[aria-pressed="true"]{outline:2px solid Highlight;outline-offset:-4px}
  .food-kitchen{border:1px solid CanvasText;border-left-width:3px}
}
@media print{
  .food-explorer-section{background:white;border:0}
  .food-explorer-section>.section{padding-block:20px}
  .food-explorer-section .explorer-toolbar,.food-explorer-section .food-library,.food-explorer-section .profile-actions,.food-explorer-section .compare-tray,.food-explorer-section #food-comparison,.food-explorer-section .food-empty{display:none!important}
  .food-explorer,.food-explorer-ready,.explorer-grid{display:block}
  .food-explorer-section .food-profile,.food-explorer-section .food-profile[hidden]{display:block!important;margin:0 0 16px;background:white;box-shadow:none;break-inside:avoid;border-color:#bbb;padding:20px}
  .food-profile .food-kicker,.food-chemistry,.compound-list li>span,.food-kitchen p,.food-context p{color:black}
  .food-explorer-heading{gap:25px}
  .food-explorer-heading h2{font-size:32px}
  .food-sources .toggle-icon{display:none}
  .food-explorer-footer{margin-top:15px}
}

.profile-actions .browse-foods{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-size:12px;margin-left:auto;white-space:nowrap}
/* The document already reserves the sticky header through scroll-padding. */
.food-profile,.food-profile h3,#food-comparison{scroll-margin-top:20px}

/* Original botanical SVGs have consistent dimensions on every device. */
.food-icon{display:block;flex:0 0 44px;width:44px;height:44px;object-fit:contain;filter:none;padding:3px;border-radius:8px;background:#f8f6ef}
.profile-icon{display:block;width:64px;height:64px;flex:0 0 64px;object-fit:contain;filter:none}
.profile-top{align-items:center;min-height:64px}
@media(max-width:1000px){.food-icon{width:38px;height:38px;flex-basis:38px}}
@media(max-width:380px){.food-icon{width:32px;height:32px;flex-basis:32px;padding:2px}.profile-icon{width:56px;height:56px;flex-basis:56px}}
