:root {
  --ink: #173026; --muted: #68766f; --green: #236b45; --green-dark: #164c31;
  --line: #dce3de; --surface: #fff; --canvas: #f4f7f4; --amber: #d99614;
  --highly: #17663b; --suitable: #69a73b; --moderately: #e3b532; --slightly: #df7d2b; --unsuitable: #bc463f;
  --font-ui: "Segoe UI", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--canvas); font-family: var(--font-ui); }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20000; padding: 10px 14px; border-radius: 5px; background: #fff; color: var(--green-dark); font-weight: 700; transform: translateY(-160%); box-shadow: 0 4px 16px #102d1f42; }
.skip-link:focus { transform: translateY(0); }
.app-header { height: 88px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; gap: 1px; }
.brand strong { font-family: var(--font-display); font-size: 27px; line-height: 1.05; }
.brand small { font-size: 12px; line-height: 1.25; color: var(--muted); font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.tabs { height: 55px; padding: 0 clamp(20px, 5vw, 72px); display: flex; gap: 28px; background: #fff; border-bottom: 1px solid var(--line); }
.tab { position: relative; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-weight: 600; padding: 0 2px; }
.tab.active { color: var(--green-dark); }
.tab.active::after { content: ""; position: absolute; height: 3px; left: 0; right: 0; bottom: 0; background: var(--green); }
.tab:focus-visible, .map-navigation button:focus-visible, .dialog-close:focus-visible { outline: 3px solid #96c7a7; outline-offset: 2px; }
main { min-height: calc(100vh - 143px); }
.view { max-width: 1390px; margin: 0 auto; padding: 46px clamp(20px, 5vw, 72px) 60px; }
.view-heading { max-width: 670px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; }
h1 { margin: 0; font: 600 clamp(35px, 4vw, 52px)/1.06 var(--font-display); letter-spacing: 0; }
.field-title { font-size: clamp(32px, 3.45vw, 46px); }
.view-heading > p:last-child { margin: 12px 0 0; line-height: 1.55; color: var(--muted); }
.instruction-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }.empty-state .instruction-line { justify-content: center; }.inline-action-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; padding-left: 1px; border: 1px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #236b45, #103b26); box-shadow: 0 2px 6px #102d1f42; color: #fff; font-size: 8px; line-height: 1; }
.lookup-layout { display: grid; grid-template-columns: minmax(290px, 390px) minmax(420px, 1fr); gap: 20px; align-items: start; }
.lookup-layout > *, .result-column, .location-grid > * { min-width: 0; }
.controls-panel, .result-panel, .map-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.controls-panel { padding: 24px; }
.panel-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 19px; }
.panel-heading.compact { margin-bottom: 14px; }
.step { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: #e7f0e9; color: var(--green); font-size: 12px; font-weight: 700; }
h2, h3, p { letter-spacing: 0; }
.panel-heading h2 { margin: 1px 0 3px; font-size: 15px; }
.panel-heading p { margin: 0; font-size: 11px; color: var(--muted); }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
label { display: grid; gap: 7px; color: #526159; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
label.full { grid-column: 1 / -1; }
select, input { width: 100%; min-width: 0; height: 43px; padding: 0 12px; border: 1px solid #cfd8d2; border-radius: 5px; background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; outline: none; }
select:focus, input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #dcecdf; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 2000; top: calc(100% + 4px); left: 0; right: 0; max-height: 220px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid #cfd8d2; border-radius: 6px; background: #fff; box-shadow: 0 10px 24px #17302633; }
.combo-list[hidden] { display: none; }
.combo-list li { padding: 8px 10px; border-radius: 4px; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.combo-list li:hover, .combo-list li.active { background: #eef4ef; }
.combo-list li[aria-selected="true"] { font-weight: 700; color: var(--green-dark); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.crop-label { margin-bottom: 18px; }
.primary-button { min-height: 44px; padding: 0 17px; border: 0; border-radius: 5px; background: var(--green-dark); color: #fff; font-weight: 700; }
.controls-panel > .primary-button:not(.icon-button) { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.icon-button { position: fixed; right: clamp(18px, 4vw, 56px); bottom: 24px; z-index: 10000; display: grid; place-items: center; width: 58px; height: 58px; min-height: 58px; margin: 0; padding: 0; border: 2px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #236b45, #103b26); box-shadow: 0 8px 24px #102d1f52; }.icon-button svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }.icon-button:hover { background: linear-gradient(135deg, #2e7b53, #164c31); transform: translateY(-2px); box-shadow: 0 12px 28px #102d1f66; }.icon-button:focus-visible { outline: 3px solid #b9e3c7; outline-offset: 3px; }.icon-button::after { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 10001; width: max-content; max-width: 180px; padding: 7px 9px; border-radius: 5px; background: #112b21; box-shadow: 0 4px 12px #102d1f4d; color: #fff; content: attr(data-tooltip); font-size: 11px; font-weight: 700; line-height: 1.2; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .15s, transform .15s; }.icon-button:hover::after, .icon-button:focus-visible::after { opacity: 1; transform: translateY(0); }
.primary-button:hover { background: #103b26; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.result-column { display: grid; gap: 20px; }
.empty-state { display: grid; place-items: center; align-content: center; min-height: 244px; padding: 32px; border: 1px dashed #b9c9be; border-radius: 8px; background: #fbfdfb; color: #4f5d56; text-align: center; }.empty-state p { max-width: 320px; margin: 0; font-size: 14px; line-height: 1.5; }.empty-state strong { color: var(--green-dark); }.atlas-empty-state { width: 100%; max-width: 1246px; min-height: clamp(360px, calc(100vh - 300px), 520px); margin: 0 auto; }
.result-panel { padding: 26px 28px 24px; }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.location-code { font-size: 12px; color: var(--muted); font-weight: 600; }
.result-crop { margin: 21px 0 0; color: var(--ink); font: 600 30px/1.15 var(--font-display); }
.rating-pill { padding: 5px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; background: #faedc6; color: #76540c; }
.rating-pill.highly { background: #d9ebdf; color: #174c2e; }.rating-pill.suitable { background: #e7f1dc; color: #3b6626; }
.rating-pill.slightly { background: #f9e1cf; color: #864314; }.rating-pill.unsuitable { background: #f5d8d6; color: #8c2f2a; }
.result-label { margin: 23px 0 0; color: var(--muted); font-size: 12px; }
.result-score { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
.result-score strong { font: 600 48px/1 var(--font-display); }.result-score span { color: var(--muted); font-size: 13px; }
.score-track { width: 100%; height: 6px; margin-top: 13px; background: #edf0ed; border-radius: 6px; overflow: hidden; }
.score-track span { display: block; width: 48%; height: 100%; background: var(--amber); transition: width .35s; }
.limitations { display: flex; gap: 12px; margin-top: 22px; padding: 16px; background: #f7f8f5; border-left: 3px solid var(--amber); }
.limitation-icon { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #b58320; color: #8d6518; border-radius: 50%; font-size: 12px; font-weight: 700; }
.limitations h3 { margin: 0 0 4px; font-size: 12px; }.limitations p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.map-panel { position: relative; overflow: hidden; }.map-panel iframe { display: block; width: 100%; height: 270px; border: 0; background: #e6ebe7; }
.map-loading { position: absolute; inset: 0 0 42px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #edf4ef, #f8faf8); color: #41584d; font-size: 13px; font-weight: 700; }
.map-loading[hidden] { display: none; }
.spinner { width: 22px; height: 22px; flex: 0 0 auto; border: 3px solid #bfd2c5; border-top-color: var(--green); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-caption { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 11px; color: var(--muted); }
.map-caption a { color: var(--green); font-weight: 700; text-decoration: none; }
.atlas-view { max-width: none; padding-top: 30px; }
.atlas-toolbar { max-width: 1246px; margin: 0 auto 22px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.atlas-toolbar h1 { max-width: 780px; overflow-wrap: anywhere; font-size: 40px; }.atlas-toolbar label { width: min(290px, 40vw); }
.atlas-map-wrap { position: relative; width: 100%; max-width: 1246px; height: clamp(520px, calc(100vh - 150px), 760px); margin: 0 auto; border: 1px solid #bbb; background: #fff; overflow: hidden; }
.atlas-loading { inset: 0; z-index: 1400; }
#atlasMap { width: 100%; height: 100%; }
.map-navigation { position: absolute; z-index: 1000; top: 12px; left: 12px; display: grid; overflow: hidden; border: 1px solid #aeb8b1; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px #1730262b; }
.map-navigation button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-bottom: 1px solid #d5ddd7; background: #fff; color: #173026; font: 600 22px/1 var(--font-ui); cursor: pointer; }.map-navigation button:last-child { border-bottom: 0; font-size: 18px; }.map-navigation button:hover { background: #eef4ef; }
.export-dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 18px 50px #102d1f66; }.export-dialog::backdrop { background: #102d1f80; }.export-dialog form { position: relative; display: grid; gap: 16px; padding: 26px; }.export-dialog h2 { margin: -10px 0 0; font: 600 26px/1.1 var(--font-display); }.export-dialog p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }.export-dialog .dialog-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #eef4ef; color: var(--ink); font-size: 21px; }.export-dialog .primary-button { justify-self: start; }
.basemap-toggle { position: absolute; z-index: 1000; top: 12px; right: 12px; width: 82px; height: 58px; padding: 0; border: 2px solid #fff; border-radius: 4px; background-color: #dfe7e1; background-position: center; background-size: cover; box-shadow: 0 1px 6px #17302666; cursor: pointer; transition: transform .15s, box-shadow .15s; }.basemap-toggle:hover { transform: scale(1.03); box-shadow: 0 2px 10px #17302680; }.basemap-toggle:focus-visible { outline: 3px solid #236b45; outline-offset: 2px; }
.basemap-toggle.show-imagery { background-image: url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/5/10/5"); }
.basemap-toggle.show-street { background-image: url("https://a.tile.openstreetmap.org/5/5/10.png"); }
.atlas-footnote { max-width: 1246px; margin: 8px auto 0; color: #4f5d56; font-size: 13px; font-style: italic; line-height: 1.35; }
.legend { position: absolute; z-index: 1000; left: 16px; bottom: 16px; display: grid !important; visibility: visible !important; gap: 7px; padding: 13px 15px; border: 1px solid #d8dfda; border-radius: 6px; background: rgba(255,255,255,.96); box-shadow: 0 2px 12px #183e2926; font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 7px; }.legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend .highly { background: var(--highly); }.legend .suitable { background: var(--suitable); }.legend .moderately { background: var(--moderately); }.legend .slightly { background: var(--slightly); }.legend .unsuitable { background: var(--unsuitable); }
.leaflet-container { font-family: var(--font-ui); }
.atlas-popup { font: 13px/1.5 var(--font-ui); max-width: 220px; }.atlas-popup span { color: var(--muted); }
.map-hover-card { position: absolute; z-index: 1200; display: grid; gap: 3px; width: 270px; max-width: calc(100% - 16px); padding: 11px 12px; border: 1px solid #cbd5ce; border-radius: 5px; background: rgba(255,255,255,.98); box-shadow: 0 3px 12px #1730263d; color: var(--ink); font: 12px/1.4 var(--font-ui); pointer-events: none; }.map-hover-card strong { font-size: 13px; }.map-hover-card span { color: var(--muted); }.map-hover-card b { color: var(--green-dark); }.map-hover-card small { padding-top: 4px; border-top: 1px solid var(--line); color: #4f5d56; font-size: 11px; line-height: 1.4; }
.app-footer { padding: 0 clamp(20px, 5vw, 72px); border-top: 4px solid #327a4e; background: #112b21; color: #eef5f0; }
.footer-details { width: 100%; max-width: 1246px; margin: 0 auto; }.footer-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; color: #eef5f0; cursor: pointer; list-style: none; }.footer-details > summary::-webkit-details-marker { display: none; }.footer-details > summary > span { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }.footer-details > summary > span i { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #7da189; border-radius: 50%; font-family: var(--font-display); font-style: normal; }.footer-details > summary strong { display: flex; align-items: center; gap: 7px; color: #b9d7c3; font-size: 11px; }.footer-details > summary b { display: inline-flex; transition: transform .2s; }.footer-details > summary b svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4px; stroke-linecap: round; stroke-linejoin: round; }.footer-details > summary:hover strong { color: #fff; }.footer-details > summary:focus-visible { outline: 2px solid #b9e3c7; outline-offset: 3px; }.footer-details[open] > summary b { transform: rotate(180deg); }.view-less { display: none !important; }.footer-details[open] > summary .view-more { display: none; }.footer-details[open] > summary .view-less { display: flex !important; }
.footer-content { width: 100%; max-width: 1246px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: stretch; }
.app-footer section { min-width: 0; }
.app-footer p { max-width: 900px; margin: 6px 0; color: #cbdad0; font-size: 12px; line-height: 1.6; }
.app-footer p a { color: #b9e3c7; text-underline-offset: 2px; }.app-footer p a:hover { color: #fff; }
.footer-details[open] .footer-content { padding: 4px 0 28px; animation: disclaimer-reveal .2s ease-out; }@keyframes disclaimer-reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.model-link { display: flex; flex-direction: column; justify-content: center; min-height: 118px; padding: 18px; border: 1px solid #426b54; border-radius: 6px; background: #193a2d; color: #fff; text-decoration: none; }.model-link:hover { border-color: #81ae91; background: #204735; }.model-link span { color: #9fc2ab; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }.model-link strong { margin-top: 6px; font-size: 14px; }.model-link small { margin-top: 12px; color: #b9d7c3; font-size: 11px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 820px) { .lookup-layout { grid-template-columns: minmax(0, 1fr); }.view { padding-top: 32px; }.atlas-toolbar { align-items: stretch; flex-direction: column; }.atlas-toolbar label { width: 100%; }.atlas-map-wrap { height: clamp(460px, 70vh, 680px); }.footer-content { grid-template-columns: minmax(0, 1fr); gap: 20px; }.model-link { min-height: 96px; } }
@media (max-width: 480px) { .app-header { height: 82px; padding-inline: 14px; }.brand { gap: 9px; min-width: 0; }.brand img { width: 54px; height: 54px; flex: 0 0 auto; }.brand span { min-width: 0; }.brand strong { font-size: clamp(21px, 6.2vw, 25px); }.brand small { display: block; max-width: 250px; font-size: clamp(9px, 2.6vw, 11px); line-height: 1.15; white-space: normal; }.tabs { height: 50px; padding-inline: 15px; gap: 22px; }.view { width: 100%; max-width: 100%; padding: 28px 15px calc(40px + env(safe-area-inset-bottom)); overflow: hidden; }.view-heading, .controls-panel, .result-panel, .map-panel { width: 100%; max-width: 100%; }.view-heading h1 { max-width: 100%; overflow-wrap: anywhere; font-size: 36px; }.view-heading .field-title { font-size: 32px; }.controls-panel, .result-panel { padding: 20px; }.result-topline { align-items: flex-start; flex-direction: column; }.map-panel iframe { height: 230px; }.map-loading { inset-block-end: 54px; }.atlas-loading { inset: 0; }.map-caption { min-height: 54px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding-block: 8px; }.atlas-view { padding-inline: 0; }.atlas-toolbar { padding: 0 15px; }.atlas-toolbar h1 { font-size: 34px; }.atlas-map-wrap { border-inline: 0; }.map-navigation { top: 8px; left: 8px; }.map-navigation button { width: 42px; height: 42px; }.basemap-toggle { top: 8px; right: 8px; width: 72px; height: 52px; }.legend { left: 8px; bottom: 8px; max-width: calc(100% - 88px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 9px 11px; gap: 4px 10px; font-size: 10px; }.leaflet-bottom.leaflet-right { bottom: 122px; }.app-footer { padding-inline: 15px; padding-bottom: env(safe-area-inset-bottom); }.footer-details > summary { min-height: 58px; }.icon-button { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 54px; height: 54px; min-height: 54px; } }
