:root {
  --ink: #2b2219; --muted: #6c6156; --paper: #f5eee0; --card: #fffdf8; --line: #dfd2ba;
  --accent: #a8501f; --accent-dark: #883e14; --wash: #ece2cc;
  --olive: #343d22; --olive-ink: #f1e9d6; --olive-muted: #cfc6ac; --straw: #e9c979;
  --high: #ac1f2e; --high-wash: #f9e7e8; --attention: #8f5b00; --attention-wash: #fbf0d4;
  --clear: #2f6b3f; --clear-wash: #e4efe2; --info: #2a5f9e; --info-wash: #e8f0fa;
  --s-other: #2a78d6; --s-soy: #eb6834; --s-planted_forest: #1baf7a; --s-pasture: #eda100;
  --s-other_crops: #e87ba4; --s-native: #008300;
  --after-2020: #d03b3b; --after-2008: #e08a00; --plot: #e0e2c6; --whatsapp: #1e7a46;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0; }
[hidden] { display: none !important; }
.print-only { display: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.num { font-variant-numeric: tabular-nums; }

/* --- test mode ------------------------------------------------------------- */
.testmode { display: none; background: var(--attention-wash); color: var(--attention); font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #ecd9a8; }
body[data-mode="sandbox"] .testmode { display: block; }

/* --- top bar --------------------------------------------------------------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .3em; font: 700 clamp(34px, 9vw, 80px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand svg { width: 1.1em; height: 1.1em; flex: none; }
.brand rect { fill: var(--accent); }
.brand path { fill: var(--paper); }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* --- buttons and fields ---------------------------------------------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font: 600 15px/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button[disabled] { opacity: .6; cursor: progress; }
.button.quiet { background: var(--card); color: var(--ink); border-color: var(--line); font-weight: 500; }
.button.quiet:hover { border-color: var(--accent); background: var(--card); }
.button.wide { width: 100%; }
.button svg, .wa-float svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.button.wa { padding: 9px 14px; font-size: 14px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--whatsapp); color: #fff; font: 600 14px/1 var(--sans); text-decoration: none; box-shadow: 0 8px 22px rgba(43, 34, 25, .28); }
.wa-float:hover { filter: brightness(1.08); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"] { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 14px/1.2 var(--mono); }
input[type="text"]::placeholder { color: #ab9f8e; }
.message { margin-top: 12px; font-size: 14px; min-height: 22px; }
.message.bad { color: var(--high); }

/* --- hero ------------------------------------------------------------------ */
.hero { padding: 80px 0 72px; color: var(--olive-ink); background: var(--olive) url(/static/contours.svg) center / cover no-repeat; }
.hero h1 { color: #fffaf0; }
.hero .eyebrow, .hero .link { color: var(--straw); }
.hero .terms { color: var(--olive-muted); }
.hero .terms b { color: #fffaf0; }
.hero .message.bad { color: #ffb9ad; }
.hero .card { color: var(--ink); }
.hero input[type="text"] { border-color: transparent; }
.hero :focus-visible { outline-color: var(--straw); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 70px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--straw); }
.lead { font-size: 18px; color: var(--olive-muted); margin: 24px 0 30px; max-width: 56ch; }
.search { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.search .field { min-width: 0; }
.terms { margin-top: 12px; font-size: 14px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.sample { box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.sample-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.sample h3 { font-size: 17px; margin-bottom: 2px; }
.sample .verdict { margin: 16px 0 6px; }

/* --- verdict and checks ---------------------------------------------------- */
.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; border: 1px solid; }
.verdict b { display: block; font: 600 20px/1.2 var(--serif); }
.verdict p { font-size: 14px; margin-top: 4px; }
.verdict ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.verdict.high { background: var(--high-wash); border-color: #ecc0c4; color: #7c1420; }
.verdict.attention { background: var(--attention-wash); border-color: #ecd9a8; color: #6c4500; }
.verdict.clear { background: var(--clear-wash); border-color: #bdd6b9; color: #1f4a2b; }
.verdict.unknown { background: var(--wash); border-color: var(--line); color: var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check b { display: block; font-size: 15px; }
.check span.text { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.badge { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans); margin-top: 1px; }
.check.clear .badge { background: var(--clear-wash); color: var(--clear); }
.check.review .badge { background: var(--high-wash); color: var(--high); }
.check.info .badge { background: var(--info-wash); color: var(--info); }
.check.unknown .badge { background: var(--wash); color: var(--muted); }
.state { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-left: 8px; }
.check.clear .state { color: var(--clear); }
.check.review .state { color: var(--high); }
.check.info .state { color: var(--info); }
.check.unknown .state { color: var(--muted); }
.section > .intro { font-size: 15px; color: var(--muted); margin: 4px 0 10px; }
.answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answer { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; background: var(--card); break-inside: avoid; }
.answer b { font-size: 16px; }
.answer p { font-size: 14px; color: var(--ink); margin-top: 6px; }
.answer .badge { width: 28px; height: 28px; font-size: 15px; }
.answer.ok { border-left-color: var(--clear); } .answer.ok .badge { background: var(--clear-wash); color: var(--clear); } .answer.ok .state { color: var(--clear); }
.answer.permit { border-left-color: var(--info); } .answer.permit .badge { background: var(--info-wash); color: var(--info); } .answer.permit .state { color: var(--info); }
.answer.caution { border-left-color: var(--attention); } .answer.caution .badge { background: var(--attention-wash); color: var(--attention); } .answer.caution .state { color: var(--attention); }
.answer.blocked { border-left-color: var(--high); } .answer.blocked .badge { background: var(--high-wash); color: var(--high); } .answer.blocked .state { color: var(--high); }
.answer.unknown .badge { background: var(--wash); color: var(--muted); } .answer.unknown .state { color: var(--muted); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; }
.sample .check { padding: 9px 0; }
.sample .check b { font-size: 14px; font-weight: 500; }

/* --- preview --------------------------------------------------------------- */
.preview { margin-top: 28px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.preview h3 { margin-bottom: 4px; }
.outline { width: 100%; height: auto; display: block; background: var(--wash); border-radius: 8px; }
.outline .boundary { fill: var(--plot); stroke: var(--olive); stroke-width: 1.5; fill-rule: evenodd; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.outline .after_2020 { fill: var(--after-2020); fill-opacity: .55; stroke: var(--after-2020); stroke-width: 1; vector-effect: non-scaling-stroke; }
.outline .after_2008 { fill: var(--after-2008); fill-opacity: .55; stroke: var(--after-2008); stroke-width: 1; vector-effect: non-scaling-stroke; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 14px 0 18px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* --- sections -------------------------------------------------------------- */
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band.tint { background: var(--wash); }
.coverage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.coverage h3 { margin: 26px 0 6px; }
.coverage .intro { max-width: 60ch; color: var(--muted); }
.coverage .small { margin-top: 10px; }
.coverage figure { text-align: center; margin: 0; }
.mapfigure { position: relative; }
.statemap { width: min(100%, 420px); height: auto; }
.statemap path { fill: var(--wash); stroke: var(--line); stroke-width: .8; stroke-linejoin: round; }
.statemap path.on { fill: var(--clear); stroke: var(--card); stroke-width: 1; }
.statemap path[data-state] { cursor: default; transition: fill .12s; }
.statemap path.hot { fill: #e0d3b6; }
.statemap path.on { cursor: pointer; }
.statemap path.on.hot, .statemap path.on:focus-visible { fill: var(--olive); }
.statemap path:focus { outline: none; }
.statemap path.on:focus-visible { stroke: var(--straw); stroke-width: 2; }
.statetip { position: absolute; z-index: 3; left: 0; top: 0; width: max-content; max-width: min(280px, 92%); padding: 12px 14px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 26px rgba(43, 34, 25, .18); pointer-events: none; font-size: 13px; line-height: 1.4; }
.statetip[hidden] { display: none; }
.statetip strong { display: block; font: 700 16px/1.2 var(--serif); margin-bottom: 6px; }
.statetip dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; margin: 0; }
.statetip dt { color: var(--muted); }
.statetip dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.statetip p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.statetip strong + p { margin-top: 0; }
.statemap text { font: 600 11px var(--sans); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
@media (max-width: 760px) { .coverage { grid-template-columns: 1fr; gap: 24px; } }
.band > .wrap > h2 { margin-bottom: 10px; }
.band > .wrap > .intro { color: var(--muted); max-width: 64ch; margin-bottom: 32px; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature h3 { margin-bottom: 8px; }
.feature p, .feature li { font-size: 15px; color: var(--muted); }
.feature ul { margin: 10px 0 0; padding-left: 18px; }
.feature.span2 { grid-column: span 2; }
.feature.span2 ul { columns: 2; column-gap: 32px; }
.steps { counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--olive); color: var(--olive-ink); font: 600 16px/1 var(--serif); margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.sources li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; background: var(--card); }
.price-card { max-width: 440px; }
.price { font: 600 48px/1 var(--serif); margin: 6px 0 4px; }
.price small { font: 400 16px/1 var(--sans); color: var(--muted); }
.price-card .ticks { margin: 20px 0 24px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; color: var(--muted); max-width: 72ch; }
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 13px; color: var(--muted); }
.foot p { max-width: 90ch; }
.foot p + p { margin-top: 8px; }

/* --- checkout and simple pages --------------------------------------------- */
.narrow { width: min(560px, 100% - 32px); margin: 56px auto 80px; }
.narrow h1 { font-size: 32px; margin-bottom: 8px; }
.narrow .card { margin-top: 24px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; font-weight: 600; }
.total span:last-child { font: 600 26px/1 var(--serif); }
.notice { background: var(--attention-wash); border: 1px solid #ecd9a8; color: #6c4500; border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }

/* --- report ---------------------------------------------------------------- */
.report { width: min(900px, 100% - 32px); margin: 32px auto 80px; }
.report-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.report-head h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 6px 0 8px; }
.actions { display: flex; gap: 8px; flex-shrink: 0; }
.actions .button { padding: 9px 14px; font-size: 14px; }
.section { margin-top: 52px; }
.section > h2 { font-size: clamp(26px, 3.4vw, 30px); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.section h3 { margin: 28px 0 6px; }
.overview { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; margin-top: 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i, .year-table i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k-boundary { background: var(--plot); border: 1px solid var(--olive); }
.k-after_2020 { background: var(--after-2020); }
.k-after_2008 { background: var(--after-2008); }
.k-other { background: var(--s-other); } .k-soy { background: var(--s-soy); }
.k-planted_forest { background: var(--s-planted_forest); } .k-pasture { background: var(--s-pasture); }
.k-other_crops { background: var(--s-other_crops); } .k-native { background: var(--s-native); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--card); }
.tile b { display: block; font: 600 22px/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.tile span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--sans); fill: var(--muted); }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .area { stroke: var(--card); stroke-width: 1; stroke-linejoin: round; }
.chart .a-other { fill: var(--s-other); } .chart .a-soy { fill: var(--s-soy); }
.chart .a-planted_forest { fill: var(--s-planted_forest); } .chart .a-pasture { fill: var(--s-pasture); }
.chart .a-other_crops { fill: var(--s-other_crops); } .chart .a-native { fill: var(--s-native); }
.chart .marker { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .marker-label { fill: var(--ink); stroke: var(--card); stroke-width: 3px; paint-order: stroke; }
.chart .cursor { stroke: var(--ink); stroke-width: 1.5; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart .l-official { stroke: var(--ink); } .chart .d-official { fill: var(--ink); }
.chart .l-model { stroke: var(--s-other); stroke-dasharray: 4 3; } .chart .d-model { fill: var(--s-other); }
.chart .l-own { stroke: var(--s-soy); } .chart .d-own { fill: var(--s-soy); }
.chart circle { stroke: var(--card); stroke-width: 1.5; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.keys i { display: inline-block; width: 18px; border-top: 2px solid; margin-right: 6px; vertical-align: 4px; }
.keys .official { border-color: var(--ink); } .keys .model { border-color: var(--s-other); border-top-style: dashed; }
.keys .own { border-color: var(--s-soy); }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
td:not(:first-child), th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.big { font: 600 26px/1.15 var(--serif); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.pixsteps { margin: 12px 0 18px; padding-left: 20px; font-size: 14px; }
.pixsteps li + li { margin-top: 4px; }
.pixqr { display: block; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pixcode { display: block; width: 100%; margin: 6px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 12px/1.4 var(--mono); word-break: break-all; resize: none; }
.pixwait { margin: 16px 0 10px; font-weight: 600; color: var(--attention); }
#pix-form .field, #pix-form .small { margin-bottom: 12px; }
#pix-form h3, #pix h3 { margin-bottom: 12px; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.disclaimer { margin-top: 40px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); font-size: 13px; color: var(--muted); }
.disclaimer b { color: var(--ink); }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero .wrap, .overview { grid-template-columns: 1fr; gap: 32px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .feature.span2 { grid-column: auto; }
  .feature.span2 ul { columns: 1; }
  .nav { display: none; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-head { flex-direction: column; }
}
@media (max-width: 520px) {
  .search, .preview { grid-template-columns: 1fr; }
  .preview .outline { max-width: 220px; }
}
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12px; }
  .no-print, .testmode, .top, .wa-float { display: none !important; }
  .report { width: 100%; margin: 0; }
  .check, .tile, .tiles, tr, .verdict, .chart, figure, .disclaimer { break-inside: avoid; }
  h2, caption, .keys { break-after: avoid; }
  .overview { grid-template-columns: 1fr 230px; gap: 24px; }
  .report-head { flex-direction: row; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section { margin-top: 26px; }
  .tile, .card { background: #fff; }
  .print-only { display: inline; }
}
#consequences > h2 { font-size: clamp(28px, 3.8vw, 34px); }

/* --- search ---------------------------------------------------------------- */
.nocode { margin-top: 14px; font-size: 14px; color: var(--olive-muted); }
.nocode a { color: var(--straw); }
.finder { padding: 40px 0 80px; }
.finder h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin: 8px 0 10px; text-wrap: balance; }
.finder > .intro { color: var(--muted); max-width: 70ch; margin-bottom: 24px; }
.filters { display: grid; grid-template-columns: 1fr 2fr; gap: 18px 20px; }
.filters label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.filters select, .filters input[type="text"] { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 15px/1.2 var(--sans); }
.f-name { grid-column: 1 / -1; }
.f-name .note { font-weight: 400; margin: 0; }
.f-size { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; background: var(--wash); }
.f-size legend { font: 600 16px/1.2 var(--serif); color: var(--ink); padding: 0 6px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.range { display: flex; gap: 12px; margin-top: 12px; }
.range label { grid-template-columns: auto 1fr; align-items: center; flex: 1; max-width: 220px; }
.f-profile { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
.f-profile[hidden] { display: none; }
.filters > .note { grid-column: 1 / -1; margin: 0; }
.f-go { grid-column: 1 / -1; display: flex; gap: 16px; align-items: end; justify-content: space-between; }
.f-go label { min-width: 200px; }
#found { margin-top: 28px; }
#found h2 { font-size: 24px; }
.results { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.result { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.result h3 { font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--wash); color: var(--ink); }
.tag.risk-clear { background: var(--clear-wash); color: var(--clear); }
.tag.risk-attention { background: var(--attention-wash); color: var(--attention); }
.tag.risk-high { background: var(--high-wash); color: var(--high); }
@media (max-width: 720px) {
  .filters, .f-profile { grid-template-columns: 1fr; }
  .result, .f-go { flex-direction: column; align-items: stretch; }
}

/* --- location map ---------------------------------------------------------- */
.where { font-size: 16px; margin-bottom: 12px; }
.map { margin: 0 0 12px; }
.map svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.map-line { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 7 6; }
.map-town { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.map-here { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.map-shape { fill: rgba(233, 201, 121, .22); stroke: var(--straw); stroke-width: 2.5; }
.map-label { font: 700 14px/1 var(--sans); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.f-km { grid-column: 1 / -1; }
.f-km .range label { max-width: 320px; }

/* --- nearby, rain ---------------------------------------------------------- */
#logistics { margin-top: 22px; }
#logistics h3, #climate h3 { font-size: 18px; margin: 18px 0 8px; }
.nearby { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.nearby li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.rain-bar { fill: var(--info); opacity: .8; }

/* --- crop-loss risk --------------------------------------------------------- */
.riskcard { border: 1px solid var(--line); border-left-width: 6px; border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; background: var(--card); break-inside: avoid; }
.riskcard .kicker { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.riskcard b { display: block; font: 700 clamp(24px, 3.4vw, 32px)/1.12 var(--serif); letter-spacing: -.01em; }
.riskcard p { font-size: 15px; margin-top: 12px; max-width: 70ch; }
.riskcard.clear { border-left-color: var(--clear); background: var(--clear-wash); } .riskcard.clear b { color: #1f4a2b; }
.riskcard.attention { border-left-color: var(--attention); background: var(--attention-wash); } .riskcard.attention b { color: #6c4500; }
.riskcard.high { border-left-color: var(--high); background: var(--high-wash); } .riskcard.high b { color: #7c1420; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 14px; max-width: 420px; }
.scale i { height: 10px; border-radius: 3px; background: rgba(43, 34, 25, .14); }
.scale i.on { background: var(--ink); height: 16px; margin-top: -3px; }
.riskcard.clear .scale i.on { background: var(--clear); } .riskcard.attention .scale i.on { background: var(--attention); } .riskcard.high .scale i.on { background: var(--high); }
.scale-ends { display: flex; justify-content: space-between; max-width: 420px; font-size: 12px; color: var(--muted); margin-top: 5px; }
.seasonblock { margin-top: 28px; } .seasonblock .riskcard { margin-top: 10px; } .seasonblock .riskcard b { font-size: clamp(19px, 2.4vw, 24px); }
#croprisk .tile b { font-size: 30px; }
#croprisk .tile span { font-size: 13px; }
.chart .region-line { stroke: var(--accent); stroke-width: 3; } .chart .state-line { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; }
.chart .region-dot { fill: var(--accent); } .chart .region-dot.worst { fill: var(--high); } .chart .state-dot { fill: var(--muted); }
.chart .claim-value { font-weight: 700; font-size: 13px; fill: var(--ink); stroke: var(--paper); stroke-width: 4px; paint-order: stroke; } .chart .claim-value.worst { fill: var(--high); font-size: 16px; }
.chart .claim-count { fill: var(--muted); font-size: 11px; }
.legend i.k-region { background: var(--accent); } .legend i.k-worst { background: var(--high); border-radius: 50%; } .legend i.k-state { background: var(--muted); }
.density-area { fill: var(--wash); stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; }
.chart .mark { stroke-width: 1.5; } .chart .mark.mean { stroke: var(--ink); stroke-dasharray: 6 4; }
.chart .mark.here { stroke: var(--ink); stroke-width: 3.5; } .chart .mark.here.clear { stroke: var(--clear); } .chart .mark.here.attention { stroke: var(--attention); } .chart .mark.here.high { stroke: var(--high); }
.chart .mark-label { font-size: 13px; fill: var(--ink); stroke: var(--paper); stroke-width: 4px; paint-order: stroke; } .chart .mark-label.mean { fill: var(--muted); }
.chart .mark-label.here { font-weight: 700; font-size: 15px; } .chart .mark-label.here.clear { fill: var(--clear); } .chart .mark-label.here.attention { fill: var(--attention); } .chart .mark-label.here.high { fill: var(--high); }

/* Map page: a satellite map to move around, with the properties drawn on it. */
.goto { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr auto; gap: 14px 16px; align-items: end; margin-bottom: 16px; }
.goto label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.goto select, .goto input[type="text"] { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 15px/1.2 var(--sans); }
.slippy { position: relative; height: min(70vh, 640px); min-height: 380px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #2b3327; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.slippy.dragging { cursor: grabbing; }
.slippy:focus-visible { outline: 3px solid var(--straw); outline-offset: 2px; }
.slippy-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.slippy-shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.plot { fill: rgba(233, 201, 121, .08); stroke: var(--straw); stroke-width: 1.4; stroke-linejoin: round; cursor: pointer; }
.plot.named { fill: rgba(233, 201, 121, .2); stroke: #fff; }
.plot.hot { fill: rgba(233, 201, 121, .45); stroke-width: 2.4; }
.plot.on { fill: rgba(173, 82, 33, .5); stroke: #fff; stroke-width: 3; }
.slippy-pin { fill: var(--accent); stroke: #fff; stroke-width: 3; pointer-events: none; }
.slippy-zoom { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; gap: 6px; }
.slippy-zoom button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 700 22px/1 var(--sans); cursor: pointer; }
.slippy-zoom button:hover { border-color: var(--accent); }
.slippy-credit { position: absolute; z-index: 1; right: 0; bottom: 0; margin: 0; padding: 3px 8px; border-top-left-radius: 8px; background: rgba(255, 255, 255, .78); color: #2b2219; font-size: 11px; pointer-events: none; }
.slippy .statetip p { margin: 0; color: var(--muted); }
#picked { margin-top: 16px; }
.slippy-zoom svg { width: 22px; height: 22px; fill: currentColor; vertical-align: middle; }
.slippy-zoom button:disabled { opacity: .5; cursor: progress; }
.device { display: grid; gap: 28px; }
.device .results { margin-bottom: 4px; }
.install { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 20px 24px; }
.install h3 { margin-bottom: 6px; }
@media (max-width: 640px) { .install { flex-direction: column; align-items: stretch; } }
#picked h2 { font-size: 22px; }
@media (max-width: 760px) {
  .goto { grid-template-columns: 1fr; }
  .slippy { height: 62vh; }
}
