@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#193a30;--muted:#6d7c72;--green:#275d46;--lime:#e5efb8;--line:#dce3d9;--paper:#f5f6f0;--orange:#bc793f}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'DM Sans',sans-serif}header{height:80px;border-bottom:1px solid var(--line);padding:0 4%;display:flex;align-items:center;gap:36px;background:#fafbf6}.brand{color:var(--ink);text-decoration:none;font-size:23px;font-weight:700;letter-spacing:-1px}.brand>span:last-child{font-weight:400}.brand-icon{font-size:35px;vertical-align:middle;margin-right:10px}.header-note{font-size:10px;letter-spacing:2px;color:var(--muted)}.header-links{display:flex;align-items:center;gap:16px;margin-left:auto}.header-links a{font-size:11px;font-weight:600;color:var(--green);text-decoration:none;white-space:nowrap}.header-links a:hover{text-decoration:underline;text-underline-offset:4px}.badge{margin-left:0;border:1px solid var(--line);border-radius:20px;padding:8px 14px;font-size:11px}main{max-width:1500px;margin:auto;padding:38px 4% 0}.intro{display:flex;justify-content:space-between;gap:25px;align-items:center}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--green);margin:0 0 14px}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:clamp(27px,3vw,42px);font-weight:600;letter-spacing:-1.6px;margin:0 0 12px}.intro p:not(.eyebrow){color:var(--muted);font-size:14px}.crop-tag{display:flex;gap:12px;align-items:center;background:#ecefe3;padding:16px 22px;border:1px solid var(--line);border-radius:10px;flex-shrink:0}.crop-tag>span{font-size:28px}.crop-tag small{display:block;margin-top:5px;font-size:10px;color:var(--muted)}.steps{display:flex;margin:30px 0 25px;border-bottom:1px solid var(--line);gap:38px}.steps>span{padding:0 0 16px;color:#839086;font-size:12px}.steps .active{color:var(--green);border-bottom:2px solid var(--green)}.steps b{margin-right:10px;font-weight:500}.steps small{font-size:9px;margin-left:6px;border:1px solid var(--line);padding:3px;border-radius:4px}.workspace{display:grid;grid-template-columns:310px 1fr;gap:22px}aside{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:baseline}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#729557}.panel-head .eyebrow{font-size:9px}h2{font-size:23px;letter-spacing:-.6px;margin:3px 0 9px}h3{font-size:15px;margin:0 0 10px}.muted{color:var(--muted)}aside>.muted{font-size:12px;line-height:1.6;margin-bottom:20px}.row{display:flex;gap:12px}label{display:block;font-size:11px;font-weight:500;margin-bottom:14px;flex:1;min-width:0}input{display:block;width:100%;border:1px solid var(--line);border-radius:6px;padding:11px;background:#fbfcf8;color:var(--ink);margin-top:7px;font:13px 'DM Sans',sans-serif}button{cursor:pointer;font:500 12px 'DM Sans',sans-serif;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);padding:10px 13px}button:hover{background:#edf2e7}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #a1ba54;outline-offset:3px}button:disabled{cursor:wait;opacity:.6}.secondary{width:100%;text-align:left;background:#f1f4e9;border:0}.field-note{font-size:11px;color:var(--muted);line-height:1.6}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.source-note{border-radius:7px;background:#f5f6f0;padding:14px;margin:17px 0}.source-note strong{font-size:11px;display:block;margin-bottom:9px}.source-note span{display:block;font-size:10px;color:var(--muted);line-height:1.8}.primary{background:var(--green);color:white;width:100%;padding:14px;text-align:left;border:0}.primary:hover{background:#1d4936}.primary span{float:right}.connection{font-size:10px;color:var(--muted);line-height:1.5;margin:12px 0 0}.map-panel{position:relative;min-height:625px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#e1e7d7}.map-top{position:absolute;z-index:2;top:16px;left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.map-top>span{font-size:9px;letter-spacing:1.5px;padding:12px;background:#fffffff2;border-radius:5px}.map-top .dot{margin-right:5px}.map-top button{pointer-events:auto;box-shadow:0 3px 12px #0001}#map{position:absolute;inset:0}.map-caption{position:absolute;bottom:35px;left:18px;background:#ffffffed;padding:12px 17px;border-radius:7px;pointer-events:none;box-shadow:0 2px 10px #0001}.map-caption strong,.map-caption span{display:block;font-size:11px}.map-caption span{font-size:9px;color:var(--muted);margin-top:5px}#status{padding:16px 2px;color:var(--muted);font-size:12px}#status.error{color:#a74024}#results{margin-top:25px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:27px}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.results-heading p:not(.eyebrow){font-size:12px;color:var(--muted)}.downloads{display:flex;gap:6px;flex-wrap:wrap}.downloads button{font-size:10px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:25px 0}.metric{background:var(--paper);border-radius:8px;padding:19px}.metric small{font-size:10px;color:var(--muted);display:block}.metric strong{font-size:24px;display:block;margin-top:9px;font-weight:500}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:15px 0 25px}.tabs button{border:0;border-radius:0;background:none;padding:12px 0}.tabs [aria-selected=true]{border-bottom:2px solid var(--green)}.chart-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.chart-head span{font-size:10px;color:var(--muted)}i{display:inline-block;width:8px;height:8px;border-radius:2px;margin:0 4px 0 9px}.rain-key,.rain{background:#67958c}.et-key,.et{background:#bd9259}#chart{display:flex;align-items:stretch;gap:8px;overflow-x:auto;padding:16px 0}.month{min-width:65px;flex:1;text-align:center}.bars{height:145px;display:flex;align-items:flex-end;justify-content:center;gap:4px;border-bottom:1px solid var(--line)}.bars>div{width:20px;min-height:1px;border-radius:3px 3px 0 0}.month small{display:block;font-size:9px;color:var(--muted);margin-top:7px}.month .totals{font-size:9px;color:var(--ink)}details{margin-top:20px}summary{cursor:pointer;font-size:12px;padding:12px 0}.table-wrap{max-height:390px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}th{text-align:left;font-size:10px;background:#edf2e7;position:sticky;top:0}td,th{padding:12px;border-bottom:1px solid var(--line)}.teaching-note{padding:18px;background:#f3f5ea;border-left:3px solid #8a9b59;margin-top:20px;font-size:12px;line-height:1.7}.teaching-note p{margin-bottom:0}#sources{font-size:12px;line-height:1.8}#sources a{color:var(--green)}#stale{padding:14px;background:#fff2d8;color:#805b23;border-radius:5px;font-size:12px}#quality{white-space:pre-wrap;max-height:230px;overflow:auto}.lesson{display:flex;gap:23px;padding:28px 0;margin-top:20px;border-top:1px solid var(--line);align-items:center}.lesson-number{border:1px solid #cbd7bc;background:#ecf0de;padding:12px 18px;font-family:serif;font-size:24px;border-radius:50%}.lesson .eyebrow{font-size:9px;margin-bottom:9px}.lesson p:last-child{font-size:12px;color:var(--muted);max-width:650px;line-height:1.7;margin-bottom:0}.lesson-label{margin-left:auto;font-size:10px;color:var(--muted);white-space:nowrap}footer{display:flex;gap:30px;border-top:1px solid var(--line);padding:23px 0;font-size:11px}footer>span{font-size:9px;color:var(--muted)}footer>span:last-child{margin-left:auto}[hidden]{display:none!important}@media(max-width:900px){.crop-tag{display:none}.workspace{grid-template-columns:270px 1fr}.steps{gap:15px}.steps small{display:none}.lesson-label{display:none}.results-heading{align-items:flex-start;flex-direction:column}.header-note{display:none}}@media(max-width:650px){header{height:65px;gap:12px}.brand{font-size:19px}.brand-icon{font-size:28px;margin-right:6px}.header-links{gap:9px}.header-links a{font-size:10px}.badge{display:none;font-size:9px}.workspace{grid-template-columns:1fr}.map-panel{min-height:390px;grid-row:1}.intro{padding-top:5px}.steps>span{font-size:10px}.steps{gap:13px}.steps b{margin-right:3px}.metrics{grid-template-columns:1fr 1fr}.chart-head{align-items:flex-start;flex-direction:column}.lesson-number{display:none}footer>span:nth-child(2){display:none}#results{padding:18px}main{padding-top:25px}}
@media(min-width:651px) and (max-width:900px){.metrics{grid-template-columns:1fr 1fr}}
.loading-panel{position:fixed;bottom:24px;right:24px;z-index:100;width:min(420px,calc(100vw - 32px));padding:20px;background:#fff;border:1px solid #bacdb2;border-radius:12px;box-shadow:0 8px 40px #193a3033}.loading-heading{display:flex;align-items:center;gap:13px}.loading-heading strong{display:block;font-size:14px}.loading-heading div>span{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:5px}#loading-elapsed{margin-left:auto;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.loading-spinner{display:inline-block;flex-shrink:0;width:23px;height:23px;border:3px solid #dce6d3;border-top-color:var(--green);border-radius:50%;animation:loading-spin .9s linear infinite}.primary .button-spinner{float:none;width:15px;height:15px;vertical-align:middle;margin-right:8px;border:2px solid #ffffff55;border-top-color:#fff}.loading-track{height:5px;border-radius:4px;background:#e8efdf;overflow:hidden;margin-top:18px}.loading-track>span{display:block;height:100%;width:38%;background:var(--green);border-radius:4px;animation:loading-sweep 1.7s ease-in-out infinite}.loading-panel>p{font-size:11px;color:var(--muted);margin:12px 0 0}.primary:disabled{opacity:1;background:#426953}@keyframes loading-spin{to{transform:rotate(360deg)}}@keyframes loading-sweep{from{transform:translateX(-105%)}to{transform:translateX(365%)}}@media(prefers-reduced-motion:reduce){.loading-spinner,.loading-track>span{animation:none}.loading-track>span{width:100%;opacity:.5}}@media(max-width:650px){.loading-panel{bottom:16px;right:16px}}
.map-top select{pointer-events:auto;max-width:140px;padding:10px 28px 10px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:500 12px 'DM Sans',sans-serif;box-shadow:0 3px 12px #0001;cursor:pointer}.map-top select:focus-visible{outline:3px solid #a1ba54;outline-offset:3px}
.hydraulic-section{margin-top:28px;border-top:1px solid var(--line);padding-top:26px}.hydraulic-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.hydraulic-heading .eyebrow{margin-bottom:10px}.hydraulic-heading button{font-size:10px}.hydraulic-check{padding:12px 15px;border-radius:6px;margin:17px 0;font-size:12px}.hydraulic-check.good{background:#edf3e5;color:#28543a}.hydraulic-check.attention{background:#fff2d8;color:#805b23}#hydraulic-table input{width:90px;margin:0;padding:9px;font-size:12px}#hydraulic-table select{padding:9px;border:1px solid var(--line);border-radius:5px;color:var(--ink);background:#fbfcf8;font-size:11px}#hydraulic-table td{padding:10px}#hydraulic-table input[aria-invalid=true]{border-color:#b1643d}#hydraulic-table .hydraulic-valid{color:#38683c;font-size:10px}#hydraulic-table .hydraulic-invalid{color:#a74021;font-size:10px}.override-note{margin-top:18px;max-width:620px}#hydraulic-issues{font-size:11px;color:#9b4425;line-height:1.7}#soil a{color:var(--green)}@media(max-width:650px){.hydraulic-heading{align-items:flex-start;flex-direction:column}}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0 28px}.profile-card{min-width:0;border:1px solid var(--line);border-radius:10px;padding:18px 16px 8px;background:#fff}.profile-card h4{font:600 14px Manrope,sans-serif;margin:0 0 12px}.profile-legend{display:flex;flex-wrap:wrap;gap:10px;min-height:24px;font-size:10px;color:var(--muted)}.profile-legend i{width:9px;height:9px;margin:0 5px 0 0}.profile-card svg{display:block;width:100%;height:auto;margin-top:6px;font-family:'DM Sans',sans-serif;overflow:visible}.profile-card .field-note{font-size:10px;margin:0 0 7px}.profile-table-title{margin-top:25px}@media(max-width:800px){.profile-grid{grid-template-columns:1fr}}
#simulation-panel{margin:28px 0;padding:27px;border:1px solid var(--line);border-radius:12px;background:#fff}.simulation-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:23px}.checkbox-label{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;margin:20px 0}.checkbox-label input{width:16px;margin:2px 0;flex-shrink:0}#run-simulation{max-width:360px}.simulation-assumptions{font-size:12px;line-height:1.8;color:var(--muted)}#simulation-status{font-size:12px;line-height:1.7;color:var(--green)}#simulation-results{margin-top:25px}#simulation-results .metric strong{font-size:21px}.simulation-charts{display:grid;gap:18px;margin:22px 0}.simulation-charts svg{max-height:340px}#simulation-provenance{font-size:11px;white-space:pre-wrap;word-break:break-word;max-height:400px;overflow:auto;background:var(--paper);padding:15px}@media(max-width:800px){.simulation-fields{grid-template-columns:1fr 1fr}}@media(max-width:500px){.simulation-fields{grid-template-columns:1fr}#simulation-panel{padding:18px}}
#crop-choice{display:block;width:100%;margin-top:7px;padding:11px;border:1px solid var(--line);border-radius:6px;background:#fbfcf8;color:var(--ink);font:12px 'DM Sans',sans-serif}#crop-choice:focus-visible{outline:3px solid #a1ba54;outline-offset:3px}
.series-legend{font-size:12px;color:#243e33;gap:12px 20px;line-height:1.5}.series-legend>span{display:inline-flex;align-items:center;gap:7px}.profile-card .series-legend svg{display:inline-block;width:32px;height:12px;margin:0;flex-shrink:0}
#model-choice{display:block;width:100%;margin-top:7px;padding:11px;border:2px solid #789d74;border-radius:6px;background:#f0f5e9;color:var(--ink);font:600 13px 'DM Sans',sans-serif}
#crop-profile-settings{border:0;padding:0;margin:18px 0 20px;min-width:0}#crop-profile-settings legend{font-size:11px;font-weight:600;margin-bottom:10px;color:var(--green)}#crop-profile-settings label{display:block}#crop-profile{display:block;width:100%;min-width:0;margin-top:7px;padding:11px 8px;border:1px solid var(--line);border-radius:6px;background:#fbfcf8;color:var(--ink);font:12px 'DM Sans',sans-serif}#crop-profile-settings details{font-size:11px;line-height:1.6}#crop-profile-settings summary{cursor:pointer;color:var(--green)}#crop-profile-settings a{overflow-wrap:anywhere}#crop-profile:focus-visible{outline:3px solid #a1ba54;outline-offset:3px}

.author-credit{padding:0 0 24px;color:var(--muted);font-size:10px;line-height:1.7;max-width:850px}.author-credit>span{display:block}.author-credit>span:first-child{font-weight:500}

.model-comparison-controls{padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-radius:8px;margin:20px 0}.model-comparison-controls label{display:block;max-width:360px}.model-comparison-controls select{display:block;width:100%;padding:11px;margin-top:7px;border:2px solid #789d74;border-radius:6px;background:#f0f5e9;color:var(--ink);font:600 13px sans-serif}#model-comparison{padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:20px}#model-comparison button{margin-top:12px}

.intro .affiliation{max-width:850px;margin:0 0 8px;font-size:11px;line-height:1.6;color:var(--muted)}

.google-connection{max-width:1440px;margin:20px auto 0;padding:20px 28px;background:#eef4ef;border:1px solid #b9cdbd;border-radius:12px}.google-connection[hidden]{display:none}.google-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.google-controls label{flex:1;min-width:220px;max-width:460px}.google-controls button{width:auto;min-height:44px}.google-connection p{margin:8px 0;font-size:14px}.google-connection a{color:#245b48}

#model-choice option:disabled,#loaded-model-choice option:disabled{color:#999}
