:root {
  --ink: #1d2424;
  --charcoal: #202727;
  --grey: #526064;
  --muted: #727a79;
  --red: #e7352c;
  --green: #10a56b;
  --paper: #f8f7f3;
  --pale: #edf0ec;
  --white: #ffffff;
  --line: #d8ddd7;
  --amber: #f0a33a;
  --orange: #e97836;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 20; left: 16px; top: -80px; padding: 12px 16px; background: var(--white); color: var(--ink); border: 2px solid var(--red); }
.skip-link:focus { top: 16px; }

.site-header { height: 84px; padding: 0 clamp(24px, 6vw, 92px); display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-size: 13px; letter-spacing: .02em; }
.brand small, .header-meta { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.header-meta { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,165,107,.12); }

.hero { min-height: 620px; padding: 95px clamp(24px, 7vw, 112px) 105px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .65fr); gap: clamp(50px, 8vw, 130px); align-items: center; }
.eyebrow, .section-index, .panel-label, .demo-index { margin: 0; color: var(--green); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.hero h1 { max-width: 820px; margin: 26px 0 24px; font-size: clamp(43px, 6.3vw, 86px); font-weight: 520; line-height: .98; letter-spacing: -.055em; }
.hero-lede { max-width: 650px; margin: 0; color: var(--grey); font-size: 16px; line-height: 1.75; }
.hero-actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 56px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid; font-size: 11px; font-weight: 700; }
.button.primary { min-width: 255px; background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 14px 34px rgba(231,53,44,.16); }
.button.secondary { min-width: 235px; color: var(--green); border-color: var(--green); }
.button:hover { transform: translateY(-2px); }
.hero-panel { padding: 34px; color: var(--white); background: var(--charcoal); box-shadow: 18px 18px 0 var(--pale); }
.panel-label { color: #8fd3b3; }
.hero-panel > strong { display: block; margin: 25px 0 42px; font-size: 22px; line-height: 1.4; font-weight: 500; }
.hero-panel dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #46504e; border-left: 1px solid #46504e; }
.hero-panel dl div { padding: 16px; border-right: 1px solid #46504e; border-bottom: 1px solid #46504e; }
.hero-panel dt { color: #82908b; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.hero-panel dd { margin: 8px 0 0; color: #65d6a4; font-size: 16px; }

.workflow-shell { padding: 95px clamp(24px, 6vw, 92px) 110px; background: var(--white); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 410px; gap: 40px; align-items: end; }
.section-index { padding-top: 12px; border-top: 1px solid var(--line); color: #8a9290; }
.section-heading h2, .safety-section h2 { margin: 38px 0 0; font-size: clamp(34px, 4vw, 56px); font-weight: 520; letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: var(--grey); line-height: 1.7; }
.demo-picker { margin-top: 60px; min-height: 96px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--pale); }
.demo-picker > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.demo-picker strong { font-size: 14px; }
.case-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.case-button { padding: 12px 14px; border: 1px solid var(--line); background: var(--white); color: var(--grey); cursor: pointer; font-size: 10px; }
.case-button:hover, .case-button:focus-visible, .case-button.active { border-color: var(--green); color: var(--green); outline: none; }
.case-button.active { background: #e4f5ed; }

.area-context { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); border: 1px solid var(--line); background: var(--paper); }
.map-panel { padding: clamp(22px, 3.5vw, 42px); border-right: 1px solid var(--line); }
.map-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.map-heading span, .map-period small { color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.map-heading h3 { margin: 10px 0 0; font-size: 19px; font-weight: 520; }
.map-period { text-align: right; }
.map-period strong { display: block; margin-top: 8px; font-size: 13px; }
.map-stage { min-height: 475px; margin-top: 22px; position: relative; display: grid; place-items: center; background: var(--pale); overflow: hidden; }
#district-map { width: 100%; height: 475px; }
.district-shape { stroke: var(--white); stroke-width: 1.3; cursor: pointer; transition: opacity .15s ease, stroke-width .15s ease; }
.district-shape:hover, .district-shape:focus { opacity: .78; outline: none; }
.district-shape.selected { stroke: var(--red); stroke-width: 4; }
.rain-below { fill: #d88b63; }
.rain-near { fill: #9aa5a1; }
.rain-above { fill: #45b985; }
.rain-unavailable { fill: #c8ceca; }
.map-tooltip { min-width: 210px; max-width: 260px; position: absolute; z-index: 4; padding: 15px; background: var(--charcoal); color: var(--white); box-shadow: 0 12px 30px rgba(29,36,36,.22); pointer-events: none; }
.map-tooltip strong { display: block; font-size: 12px; }
.map-tooltip span { display: block; margin-top: 8px; color: #65d6a4; font-size: 11px; }
.map-tooltip small { display: block; margin-top: 7px; color: #aeb8b4; font-size: 8px; line-height: 1.5; }
.map-legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--muted); font-size: 8px; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; display: inline-block; }
.map-legend .below { background: #d88b63; }
.map-legend .near { background: #9aa5a1; }
.map-legend .above { background: #45b985; }
.map-source { margin: 14px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.area-insight { padding: clamp(24px, 3.5vw, 40px); background: var(--charcoal); color: var(--white); }
.area-title-row { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.area-title-row h3 { margin: 0; font-size: 26px; font-weight: 500; }
.area-title-row span { padding: 6px 8px; border: 1px solid rgba(16,165,107,.5); color: #65d6a4; font-size: 8px; text-transform: uppercase; }
#area-context-line { margin: 12px 0 26px; color: #aeb8b4; font-size: 10px; line-height: 1.6; }
.context-cards { display: grid; gap: 10px; }
.context-card { padding: 16px; border: 1px solid #46504e; background: #252e2e; }
.context-card > span { color: #65d6a4; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.context-card > strong { display: block; margin-top: 9px; font-size: 15px; font-weight: 500; }
.context-card > p { margin: 8px 0 12px; color: #c2cbc7; font-size: 9px; line-height: 1.55; }
.context-card dl { margin: 0; display: grid; gap: 7px; }
.context-card dl div { display: grid; grid-template-columns: 95px 1fr; gap: 8px; }
.context-card dt { color: #82908b; font-size: 7px; text-transform: uppercase; }
.context-card dd { margin: 0; color: #aeb8b4; font-size: 8px; line-height: 1.45; }
.context-interpretation { margin-top: 26px; padding: 16px; border: 1px solid #46504e; background: #252e2e; }
.context-interpretation strong { color: #65d6a4; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.context-interpretation p { margin: 9px 0 0; color: #b6c0bc; font-size: 9px; line-height: 1.65; }

.workspace-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr); align-items: start; border: 1px solid var(--line); }
#observation-form { padding: clamp(20px, 3vw, 38px); }
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.form-section { padding: 0 0 30px; margin: 0; border-bottom: 1px solid var(--line); }
.form-card { height: 100%; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.span-full { grid-column: 1 / -1; }
.form-section-title { margin-bottom: 25px; display: flex; align-items: flex-start; gap: 15px; }
.form-section-title > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); font-size: 10px; }
.form-section h3 { margin: 0; font-size: 16px; }
.form-section-title p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--grey); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
fieldset { margin: 0; padding: 0; border: 0; }
input, select, textarea { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: 13px; outline: none; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,165,107,.1); }
input:user-invalid, select:user-invalid { border-color: var(--red); }
.safety-row { min-height: 64px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border-top: 1px solid var(--line); }
.safety-row:last-child { border-bottom: 1px solid var(--line); }
.safety-row span { color: var(--ink); font-size: 12px; }
.tri-state { display: flex; gap: 5px; }
.tri-state button { min-width: 66px; padding: 8px 10px; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; font-size: 9px; text-transform: uppercase; }
.tri-state button[aria-pressed="true"] { border-color: var(--green); background: #e4f5ed; color: #087d50; }
.tri-state button[data-value="true"][aria-pressed="true"] { border-color: var(--red); background: #fff0ee; color: #b72b24; }
.check-row { min-height: 68px; padding: 14px; flex-direction: row; align-items: flex-start; gap: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.check-row + .check-row { margin-top: 10px; }
.check-row input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--green); }
.check-row span { display: flex; flex-direction: column; gap: 5px; }
.check-row strong { color: var(--ink); font-size: 11px; }
.check-row small { color: var(--muted); font-weight: 400; line-height: 1.5; }
.image-meta { margin-top: 12px; padding: 16px; grid-template-columns: 1fr 1fr; gap: 14px; border: 1px dashed var(--line); }
.image-meta:not([hidden]) { display: grid; }
.concern-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.concern-grid legend { margin-bottom: 10px; color: var(--grey); font-size: 10px; font-weight: 700; }
.concern-grid label, .binary-observations label { min-height: 42px; padding: 10px; flex-direction: row; align-items: center; border: 1px solid var(--line); background: var(--paper); font-weight: 500; }
.concern-grid input, .binary-observations input { width: 16px; min-height: 16px; accent-color: var(--green); }
.binary-observations { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-error { margin: 0 0 16px; padding: 13px 15px; background: #fff0ee; border-left: 3px solid var(--red); color: #a5231c; font-size: 11px; line-height: 1.5; }
.form-error, .submit-button { grid-column: 1 / -1; }
.submit-button { width: 100%; min-height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border: 0; background: var(--red); color: var(--white); cursor: pointer; font-size: 11px; font-weight: 700; }
.submit-button:hover { background: #c92822; }

.embedded-screening { margin: 24px 0; border: 1px solid #46504e; background: var(--charcoal); color: var(--white); }
.screening-head { min-height: 74px; padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid #46504e; }
.screening-head h4 { margin: 8px 0 0; font-size: 15px; font-weight: 500; }
.screening-head > span { color: #aeb8b4; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.screening-layout { min-height: 315px; display: grid; grid-template-columns: 135px 1fr; }
.screening-rail { border-right: 1px solid #46504e; }
.screening-rail button { width: 100%; min-height: 63px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #46504e; background: transparent; color: #82908b; cursor: pointer; font-size: 9px; text-align: left; }
.screening-rail button span { color: #65d6a4; }
.screening-rail button.active { color: var(--white); background: #252e2e; box-shadow: inset 4px 0 0 var(--green); }
.screening-stage { padding: 25px; }
.screening-stage .step-kicker { color: #65d6a4; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.screening-stage h5 { margin: 11px 0 9px; font-size: 20px; }
.screening-stage > p { margin: 0; color: #b6c0bc; font-size: 10px; line-height: 1.6; }
.screen-choice-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.screen-choice { min-height: 90px; padding: 15px; border: 1px solid #46504e; background: #283131; color: #b9c3bf; cursor: pointer; text-align: left; }
.screen-choice strong, .screen-choice small { display: block; }
.screen-choice strong { font-size: 11px; }
.screen-choice small { margin-top: 8px; color: #82908b; font-size: 8px; line-height: 1.4; }
.screen-choice.active { border-color: var(--green); background: var(--green); color: var(--white); }
.screen-choice.active small { color: #e5fff3; }
.screen-boundary { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--red); background: #252e2e; color: #b6c0bc; font-size: 8px; line-height: 1.55; }
.local-image-input { margin-top: 18px; padding: 16px; border: 1px dashed #65706d; background: #252e2e; }
.local-image-input input { background: #283131; border-color: #46504e; color: #b9c3bf; }
.local-image-input label { color: #d8dfdc; }
.local-image-input small { display: block; margin-top: 9px; color: #82908b; font-size: 8px; line-height: 1.5; }
.image-preview { margin-top: 12px; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.image-preview img { width: 110px; height: 82px; object-fit: cover; border: 1px solid #46504e; }
.image-preview strong, .image-preview span { display: block; overflow-wrap: anywhere; }
.image-preview strong { font-size: 10px; }
.image-preview span { margin-top: 6px; color: #82908b; font-size: 8px; }
.check-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.check-grid div { padding: 12px; background: #283131; border: 1px solid #46504e; }
.check-grid small, .check-grid strong { display: block; }
.check-grid small { color: #82908b; font-size: 7px; text-transform: uppercase; }
.check-grid strong { margin-top: 7px; color: #d8dfdc; font-size: 10px; }
.screen-result { margin-top: 18px; padding: 15px; border: 1px solid rgba(16,165,107,.55); background: #252e2e; }
.screen-result strong { color: #65d6a4; font-size: 13px; }
.screen-result p { margin: 8px 0 0; color: #b6c0bc; font-size: 9px; line-height: 1.55; }
.screening-controls { min-height: 60px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #46504e; }
.screening-controls p { margin: 0; color: #82908b; font-size: 7px; text-transform: uppercase; }
.screening-controls > div { display: flex; gap: 7px; }
.screening-controls button { min-width: 80px; min-height: 36px; padding: 0 12px; border: 1px solid #65706d; background: transparent; color: #b9c3bf; cursor: pointer; font-size: 9px; }
.screening-controls button.primary { border-color: var(--red); background: var(--red); color: var(--white); }
.screening-controls button:disabled { opacity: .4; cursor: not-allowed; }

.result-panel { min-height: 760px; position: sticky; top: 0; background: var(--charcoal); color: var(--white); }
.result-topline { min-height: 62px; padding: 0 27px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #46504e; color: #82908b; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.result-topline span:last-child { color: #65d6a4; }
.empty-result { min-height: 650px; padding: 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.empty-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #46504e; color: #65d6a4; font-size: 22px; }
.empty-result h3 { margin: 26px 0 10px; font-size: 22px; font-weight: 500; }
.empty-result p { max-width: 290px; margin: 0; color: #aeb8b4; font-size: 11px; line-height: 1.7; }
#handoff-result { padding-bottom: 28px; }
.severity-block { padding: 40px 30px 32px; border-bottom: 1px solid #46504e; }
.severity-block > span { color: #82908b; font-size: 8px; text-transform: uppercase; letter-spacing: .15em; }
.severity-block h3 { margin: 14px 0 12px; font-size: 30px; font-weight: 500; }
.severity-block p { margin: 0; color: #b9c3bf; font-size: 11px; line-height: 1.6; }
.severity-routine .severity-block h3 { color: #65d6a4; }
.severity-priority .severity-block h3 { color: #f5bd68; }
.severity-urgent .severity-block h3 { color: #f2948d; }
.result-section { padding: 25px 30px; border-bottom: 1px solid #46504e; }
.result-section h4 { margin: 0 0 15px; color: #82908b; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.result-section ul { margin: 0; padding-left: 17px; color: #c6cecb; font-size: 11px; line-height: 1.8; }
.result-section dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-section dl div { min-width: 0; }
.result-section dt { color: #82908b; font-size: 8px; text-transform: uppercase; }
.result-section dd { margin: 6px 0 0; color: #d8dfdc; font-size: 11px; overflow-wrap: anywhere; }
.climate-card > div:first-child { display: flex; justify-content: space-between; }
#climate-status { color: #65d6a4; font-size: 8px; text-transform: uppercase; }
#climate-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #46504e; }
.climate-value { padding: 12px 8px; background: #283131; text-align: center; }
.climate-value strong { display: block; color: #d8dfdc; font-size: 14px; font-weight: 500; }
.climate-value small { display: block; margin-top: 6px; color: #82908b; font-size: 7px; text-transform: uppercase; }
#climate-note, #missing-fields { margin: 14px 0 0; color: #aeb8b4; font-size: 10px; line-height: 1.65; }
.result-disclaimer { margin: 24px 30px; padding: 15px; border: 1px solid rgba(231,53,44,.5); background: #252e2e; }
.result-disclaimer strong { color: #f2948d; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.result-disclaimer p { margin: 8px 0 0; color: #b6c0bc; font-size: 9px; line-height: 1.6; }
.copy-button { margin: 0 30px; width: calc(100% - 60px); min-height: 43px; border: 1px solid #65706d; background: transparent; color: #65d6a4; cursor: pointer; font-size: 10px; }
.copy-button:hover { background: #2b3535; }
.download-actions { margin: 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.download-actions .copy-button { width: 100%; margin: 0; }
.verification-block dd { color: #f5bd68; }

.evidence-section { padding: 100px clamp(24px, 7vw, 112px); }
.evidence-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.evidence-grid article { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-grid span { color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .15em; }
.evidence-grid h3 { margin: 70px 0 12px; font-size: 19px; font-weight: 520; }
.evidence-grid p { margin: 0; color: var(--grey); font-size: 11px; line-height: 1.65; }
.safety-section { padding: 100px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; background: var(--charcoal); color: var(--white); }
.section-index.light { color: #82908b; border-color: #46504e; }
.safety-list { border-top: 1px solid #46504e; }
.safety-list p { margin: 0; padding: 22px 0; display: grid; grid-template-columns: 35px 190px 1fr; gap: 16px; align-items: start; border-bottom: 1px solid #46504e; }
.safety-list span { color: #65d6a4; font-size: 9px; }
.safety-list strong { font-size: 12px; }
.safety-list small { color: #aeb8b4; font-size: 10px; line-height: 1.6; }
.funder-section { padding: 100px clamp(24px, 7vw, 112px); background: var(--white); }
.funder-heading { margin-top: 45px; display: grid; grid-template-columns: 1fr .7fr; gap: 70px; align-items: end; }
.funder-heading h2 { max-width: 760px; margin: 0; font-size: clamp(34px, 4vw, 58px); font-weight: 520; letter-spacing: -.04em; }
.funder-heading p { margin: 0; color: var(--grey); font-size: 12px; line-height: 1.75; }
.funder-columns { margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.funder-columns article { min-height: 390px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.funder-columns article.investment { background: var(--charcoal); color: var(--white); }
.funder-columns span { color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .15em; }
.funder-columns h3 { margin: 62px 0 24px; font-size: 22px; font-weight: 520; }
.funder-columns ul { margin: 0; padding: 0; list-style: none; }
.funder-columns li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--grey); font-size: 10px; line-height: 1.5; }
.funder-columns .investment li { border-color: #46504e; color: #b6c0bc; }
footer { min-height: 88px; padding: 0 clamp(24px, 7vw, 112px); display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; background: #171d1d; color: #8d9793; font-size: 9px; }
footer strong { color: var(--white); }
footer a { color: #65d6a4; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .section-heading { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .area-context { grid-template-columns: 1fr; }
  .map-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-panel { position: static; min-height: 0; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .safety-section { grid-template-columns: 1fr; gap: 55px; }
  .funder-heading { grid-template-columns: 1fr; }
  .funder-columns { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .site-header { height: 72px; }
  .header-meta { display: none; }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: 45px; }
  .hero-actions, .button { width: 100%; }
  .demo-picker { align-items: flex-start; flex-direction: column; }
  .map-heading { flex-direction: column; }
  .map-period { text-align: left; }
  .map-stage, #district-map { min-height: 390px; height: 390px; }
  .case-buttons, .case-button { width: 100%; }
  .field-grid, .image-meta:not([hidden]) { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .span-full { grid-column: auto; }
  .concern-grid, .binary-observations, .download-actions { grid-template-columns: 1fr; }
  .screening-layout { grid-template-columns: 1fr; }
  .screening-rail { display: grid; grid-template-columns: repeat(5, 1fr); border-right: 0; border-bottom: 1px solid #46504e; }
  .screening-rail button { min-height: 50px; padding: 8px; flex-direction: column; justify-content: center; border-right: 1px solid #46504e; }
  .screening-head, .screening-controls { align-items: flex-start; flex-direction: column; }
  .screen-choice-grid, .check-grid { grid-template-columns: 1fr; }
  .safety-row { padding: 14px 0; grid-template-columns: 1fr; gap: 10px; }
  .tri-state button { flex: 1; }
  .evidence-grid { grid-template-columns: 1fr; }
  .safety-list p { grid-template-columns: 30px 1fr; }
  .safety-list small { grid-column: 2; }
  footer { padding-block: 25px; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
