@font-face {
  font-family: Geist;
  src: url("/LavaLabs/assets/fonts/geist-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: Geist, system-ui, sans-serif;
  background: #101113;
  color: #f0edeb;
  --muted: #b0adb2;
  --line: #303036;
  --panel: #18191c;
  --p1: #ff867b;
  --p2: #f2ba78;
  --p3: #b7c5d4;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #f5a79f; text-underline-offset: .23em; }
:where(a,button,[tabindex]):focus-visible { outline: 2px solid #ffd4c5; outline-offset: 3px; }
button, .control { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
.response-header {
  min-height: 65px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: .65rem max(1.25rem, calc((100vw - 1430px) / 2)); gap: .5rem 1rem;
  background: #111214; border-bottom: 1px solid var(--line);
}
.response-header .brand { display: inline-flex; align-items: center; gap: .55rem; color: white; text-decoration: none; font-weight: 700; }
.response-header .brand img { width: 34px; height: 34px; object-fit: contain; }
.response-header nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.response-header nav a { color: var(--muted); padding: .5rem .65rem; text-decoration: none; font-size: .81rem; }
.response-header nav a[aria-current], .response-header nav a:hover { color: #fff; background: #272126; border-radius: 5px; }
:host { color-scheme: dark; font-family: Geist, system-ui, sans-serif; color: #f0edeb; --muted: #b0adb2; --line: #303036; --panel: #18191c; --p1: #ff867b; --p2: #f2ba78; --p3: #b7c5d4; }
.response-main { width: 100%; }
.response-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.response-title h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 660; letter-spacing: -.035em; margin: .2rem 0; line-height: 1.15; }
h2 { font-size: 1.22rem; letter-spacing: -.025em; margin: 0; }
p { line-height: 1.5; margin: .5rem 0 0; color: var(--muted); }
.control, .map-controls button, .response-layers button {
  background: #232328; border: 1px solid #43434a; border-radius: 5px; padding: .55rem .75rem;
  text-decoration: none; white-space: nowrap; font-size: .82rem;
}
.control:hover, .map-controls button:hover:not(:disabled) { background: #332629; border-color: #96574f; }
.response-alert { margin: 0 0 1.15rem; padding: .72rem 1rem; border-left: 3px solid var(--p1); background: #241a1b; color: #e4c9c4; font-size: .88rem; }
.response-alert strong { color: #ffb0a7; }
.response-layout, .support-layout { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); gap: 1.05rem; align-items: start; }
.response-map, .response-actions, .response-panel, .response-sources { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.section-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem; gap: .7rem; }
.section-top p { font-size: .8rem; margin-top: .25rem; }
.map-controls { display: flex; gap: .28rem; }
.map-controls button { min-width: 34px; padding: .38rem .55rem; }
.response-layers { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; padding: 0 1rem .85rem; }
.response-layers button[aria-pressed=true] { border-color: #c9776d; background: #382427; }
.response-layers span { color: var(--muted); font-size: .76rem; }
#response-svg { width: 100%; display: block; aspect-ratio: 650 / 520; overflow: hidden; background: #0f1316; border-block: 1px solid var(--line); touch-action: manipulation; }
#raster-layer image { image-rendering: pixelated; }
.road { fill: none; stroke: #6b7580; stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: .65; }
.road-check { stroke: #f3c89b; opacity: 1; stroke-width: 1.65px; }
.map-pin { cursor: pointer; }
.map-pin circle:first-child { fill: #151418; stroke: currentColor; stroke-width: 2px; }
.map-pin circle:nth-child(2) { fill: none; stroke: currentColor; opacity: 0; }
.map-pin:hover circle:nth-child(2), .map-pin[aria-pressed="true"] circle:nth-child(2), .map-pin:focus-visible circle:nth-child(2) { opacity: 1; }
.map-pin text { fill: currentColor; font-weight: 720; font-size: 15px; pointer-events: none; }
.p1 { color: var(--p1); } .p2 { color: var(--p2); } .p3 { color: var(--p3); }
.map-key { display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding: .7rem 1rem; color: var(--muted); font-size: .75rem; }
.map-key span { display: inline-flex; align-items: center; gap: .35rem; }
.map-key i { width: 10px; height: 10px; display: inline-block; border-radius: 2px; }
.mark-water { background: #e8974d; } .mark-gap { background: #464952; } .mark-permanent { background: #1c3e47; } .mark-road { background: #6b7580; } .mark-road-check { background: #f3c89b; }
.optical-map .mark-water { background: #31e3ff; }
.optical-map .mark-gap { background: #61506b; }
.optical-map .road { opacity: .55; stroke: #26313b; }
.optical-map .road-check { opacity: 1; stroke: #ffe0ad; }
.pin-detail { background: #1e2024; margin: 0 1rem; border: 1px solid var(--line); border-radius: 5px; padding: .75rem .85rem; min-height: 94px; }
.pin-detail strong { display: block; }
.pin-detail p { font-size: .82rem; margin: .24rem 0 0; }
.pin-detail a { display: inline-block; font-size: .77rem; margin-top: .4rem; }
.map-attribution { padding: 0 1rem .8rem; font-size: .72rem; }
.response-actions > h2 { padding: 1rem; }
.priority { border-top: 1px solid var(--line); padding: .82rem 1rem; }
.priority h3 { margin: 0; display: flex; align-items: center; gap: .55rem; font-size: 1rem; }
.badge { font-size: .71rem; min-width: 30px; padding: .2rem .3rem; border: 1px solid currentColor; border-radius: 4px; text-align: center; }
.priority p { font-size: .83rem; }
.sites { display: grid; gap: .35rem; margin-top: .6rem; }
.more-sites { margin-top: .65rem; font-size: .78rem; color: var(--muted); }
.more-sites summary { cursor: pointer; }
.site {
  border: 1px solid #35353b; border-radius: 5px; background: #202125; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 42px; padding: .48rem .62rem;
  transition: background-color 120ms ease;
}
.site:hover, .site[aria-pressed="true"] { border-color: #805751; background: #302426; }
.site b { font-size: .82rem; font-weight: 650; overflow-wrap: anywhere; }
.site small { text-align: right; color: var(--muted); font-size: .72rem; }
.support-layout { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 1.05rem; }
.response-panel { padding: 1rem; }
.response-panel p, .response-panel li, .response-panel dd, .response-panel a { font-size: .86rem; }
.response-panel a { display: inline-block; margin-top: .42rem; }
.decision-steps { margin: .85rem 0; }
.decision-steps dt { font-size: .86rem; font-weight: 650; margin: .65rem 0 .15rem; }
.decision-steps dd { margin: 0; color: var(--muted); line-height: 1.45; }
.response-panel ul { color: var(--muted); padding-left: 1rem; margin: .55rem 0; }
.response-panel li { margin: .33rem 0; }
.response-sources { margin-top: 1.05rem; padding: 1rem; }
.response-sources summary { cursor: pointer; font-weight: 650; }
.response-sources p, .response-sources li { font-size: .82rem; overflow-wrap: anywhere; }
.response-footer { color: var(--muted); border-top: 1px solid var(--line); padding: 1rem max(1rem, calc((100vw - 1356px) / 2)); font-size: .8rem; }
@media (max-width: 810px) {
  .response-layout, .support-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 460px) {
  .response-title { align-items: flex-start; flex-direction: column; }
  .response-header nav a { font-size: .71rem; padding: .4rem; }
  .section-top, .priority { padding: .8rem; }
  .section-top p { font-size: .71rem; }
}
@media (prefers-reduced-motion: reduce) { .site { transition: none; } }
