*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1c2321; background: #f6f4ef; }
main { display: grid; grid-template-columns: 1fr 420px; height: 100%; }
#mapwrap { position: relative; min-height: 320px; }
#map { position: absolute; inset: 0; cursor: crosshair; }
.leaflet-dragging #map, .leaflet-dragging .leaflet-container { cursor: grabbing; }
.pin i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #e4572e; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.5); cursor: grab; }
.pin i.drop { animation: pindrop .35s ease-out; }
@keyframes pindrop { 0% { transform: translateY(-16px); opacity: 0; } 60% { transform: translateY(2px); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pin i.drop { animation: none; } }
.maphint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000; pointer-events: none; background: #fff; border: 1px solid #b9b4a8; border-radius: 999px; padding: 6px 14px; font-size: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.25); white-space: nowrap; }
aside { overflow-y: auto; padding: 20px; background: #fff; border-left: 1px solid #d9d5cb; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 6px; }
h3 { font-size: 15px; margin: 18px 0 6px; }
p { margin: 6px 0; }
.hint { color: #5b6661; font-size: 14px; }
.warn { color: #a12a12; font-size: 14px; }
.warn:empty { display: none; }
.row { display: flex; gap: 8px; margin: 8px 0; }
.row input { flex: 1; min-width: 0; }
input[type=text], textarea { width: 100%; padding: 8px 10px; border: 1px solid #b9b4a8; border-radius: 8px; font: inherit; background: #fff; color: inherit; }
textarea { resize: vertical; font-size: 14px; }
button, a.button { font: inherit; padding: 8px 14px; border: 1px solid #b9b4a8; border-radius: 8px; background: #fff; color: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, a.button:hover { background: #f1eee7; }
button:disabled { opacity: .6; cursor: default; }
.primary { background: #1f5f4a; border-color: #1f5f4a; color: #fff; }
.primary:hover { background: #184c3b; }
.big { width: 100%; padding: 12px; margin-top: 12px; font-size: 17px; }
:focus-visible { outline: 3px solid #e4a72e; outline-offset: 2px; }
fieldset { border: 1px solid #d9d5cb; border-radius: 8px; margin: 14px 0 10px; padding: 8px 12px; }
legend { font-size: 14px; color: #5b6661; padding: 0 4px; }
fieldset label { display: block; padding: 3px 0; }
.field { display: block; margin: 10px 0; }
.field > span { display: block; font-size: 14px; color: #5b6661; margin-bottom: 4px; }
.toggle { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: 8px; border: 1px solid #d9d5cb; font-size: 14px; }
.toggle input { margin-top: 4px; }
body.dry .toggle { background: #fff6dc; border-color: #e4a72e; }
.card { margin-top: 16px; padding: 14px; border: 1px solid #d9d5cb; border-radius: 12px; background: #fbfaf7; }
body.dry .card { border-color: #e4a72e; }
.agency { margin-top: 10px; padding-top: 6px; border-top: 1px solid #e6e2d8; }
.agency:first-of-type { border-top: 0; }
a.inspect { font-size: 14px; }
.url { display: block; font-size: 12px; word-break: break-all; padding: 8px; background: #f1eee7; border-radius: 6px; margin-top: 6px; }
details { margin-top: 8px; font-size: 14px; }
.debugwrap { margin-top: 12px; border-top: 1px dashed #e4a72e; }
table.debug { width: 100%; border-collapse: collapse; font-size: 13px; }
table.debug th { text-align: left; vertical-align: top; font-weight: 500; color: #5b6661; width: 42%; padding: 4px 8px 4px 0; }
table.debug td { padding: 4px 0; vertical-align: top; }
table.debug ol { margin: 0; padding-left: 18px; }
pre { font-size: 13px; background: #f1eee7; padding: 8px; border-radius: 6px; overflow-x: auto; margin: 6px 0; }
.info { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e6e2d8; font-size: 15px; }
.info summary { cursor: pointer; font-weight: 500; font-size: 16px; }
.info ul { margin: 6px 0; padding-left: 20px; }
.foot { margin-top: 24px; font-size: 12px; color: #7a847f; }
@media (max-width: 820px) {
  main { grid-template-columns: 1fr; grid-template-rows: 52vh auto; height: auto; }
  aside { border-left: 0; border-top: 1px solid #d9d5cb; overflow: visible; }
}
.steps { list-style: none; margin: 10px 0 12px; padding: 0; counter-reset: step; font-size: 14px; color: #5b6661; }
.steps li { counter-increment: step; position: relative; padding: 3px 0 3px 30px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid #9aa39e; font-size: 12px; line-height: 18px; text-align: center; font-weight: 500; }
.steps li.current { color: #1c2321; font-weight: 500; }
.steps li.current::before { background: #1f5f4a; border-color: #1f5f4a; color: #fff; }
.steps li.done::before { content: "\2713"; background: #dfeee8; border-color: #1f5f4a; color: #1f5f4a; }
.steps li.skipped { opacity: .55; }
.steps .skip { display: none; }
.steps li.skipped .skip { display: inline; }
/* The routing fork under step 1: the pin's stem splits toward the City and ODOT, and the branch the report takes lights up. */
.fork { margin: 8px 0 14px; max-width: 260px; }
.fork svg { display: block; width: 100%; height: auto; overflow: visible; }
.fork .stem, .fork .br { fill: none; stroke: #d3d1c7; stroke-width: 5; stroke-linecap: round; transition: stroke .3s, stroke-width .3s; }
.fork .flow { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 6 8; opacity: 0; transition: opacity .3s; }
/* Drawn to match the map pin: red dot, white ring, thin dark edge, soft shadow. The SVG is drawn at about 0.87 scale, so 10.4 units is the pin's 9 px radius. */
.fork .dot { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.fork .dot-ring { fill: #fff; stroke: rgba(0,0,0,.6); stroke-width: 1.15; }
.fork .dot-core { fill: #d3d1c7; transition: fill .3s; }
.fork .lbl rect { fill: #f1efe8; stroke: #b4b2a9; stroke-width: 1.2; transition: fill .3s, stroke .3s; }
.fork .lbl text { fill: #888780; font-size: 13px; font-weight: 500; text-anchor: middle; }
.fork.pin .dot-core { fill: #e4572e; }
.fork .stem { stroke-linecap: butt; }  /* drawn over the tops of the branches, so they grow out of it smoothly */
.fork.pin .stem { stroke: #5f5e5a; stroke-width: 7; }
/* One agency chosen: the stem takes its color, so the route reads as one line from the dot. The dashes start at the dot too. */
.fork.lit-city:not(.lit-odot) .stem { stroke: #378add; }
.fork.lit-odot:not(.lit-city) .stem { stroke: #ef9f27; }
.fork.lit-city .b-city { stroke: #378add; stroke-width: 7; }
.fork.lit-city .f-city { opacity: .9; animation: forkflow .9s linear infinite; }
.fork.lit-city .l-city rect { fill: #e6f1fb; stroke: #185fa5; stroke-width: 2; }
.fork.lit-city .l-city text { fill: #0c447c; }
.fork.lit-odot .b-odot { stroke: #ef9f27; stroke-width: 7; }
.fork.lit-odot .f-odot { opacity: .9; animation: forkflow .9s linear infinite; }
.fork.lit-odot .l-odot rect { fill: #faeeda; stroke: #ba7517; stroke-width: 2; }
.fork.lit-odot .l-odot text { fill: #633806; }
.fork.edge .br { stroke-dasharray: 1 11; }  /* near ODOT's edge: both branches dotted until the position question decides */
.fork.edge .flow { opacity: 0; animation: none; }
@keyframes forkflow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .fork .flow { animation: none !important; } }
[hidden] { display: none !important; }
button.linkish, button.linkish:hover { border: 0; background: none; padding: 0; margin-left: 8px; color: #1f5f4a; text-decoration: underline; font-size: 14px; }
a.button.big { display: block; text-align: center; padding: 12px; font-size: 17px; }
a.button.primary { background: #1f5f4a; border-color: #1f5f4a; color: #fff; }
a.button.primary:hover { background: #184c3b; }
.ext svg { width: 1em; height: 1em; vertical-align: -0.14em; margin-left: 8px; }
a.inspect .ext svg { margin-left: 4px; }
.steps .ext svg { margin-left: 4px; }
.opens { text-align: center; margin-top: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cardhead button.linkish { margin-left: 0; white-space: nowrap; }
/* The location box: dashed and gray while empty, solid green once a pin is set. */
.where { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; padding: 10px 14px; border-radius: 8px; border: 1.5px dashed #9aa39e; background: #fff; }
.where-icon svg { width: 24px; height: 24px; display: block; }
.where.empty .where-icon { color: #9aa39e; }
.where.set { border-style: solid; border-color: #1f5f4a; background: #dfeee8; }
.where.set .where-icon, .where.set .where-title { color: #1f5f4a; }
.where-text { flex: 1; min-width: 0; }
.where-title { margin: 0; font-weight: 600; font-size: 15px; }
.where-sub { margin: 0; font-size: 13px; color: #5b6661; font-variant-numeric: tabular-nums; }
.where #change { margin-left: auto; white-space: nowrap; }
button.iconbtn { display: flex; flex: none; padding: 4px; margin: -4px -6px -4px 0; border: 0; border-radius: 6px; background: none; color: #1f5f4a; cursor: pointer; }
button.iconbtn:hover { background: rgba(31,95,74,.12); }
button.iconbtn svg { width: 18px; height: 18px; display: block; }
#map.locked { cursor: grab; }
#map.locked .pin i { cursor: default; }
/* Callout at the bottom of the report card, for the one City question the app can't fill in. */
.callout { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border: 1.5px solid #e4a72e; border-radius: 8px; background: #fff6dc; color: #633806; font-size: 14px; }
.callout p { margin: 0; }
/* What the app carries into the City's form, as a labeled list. */
.carriedwrap { margin: 8px 0 12px; }
.carriedhead { margin: 0 0 6px; }
.carried { display: grid; grid-template-columns: 18px auto 1fr; column-gap: 10px; row-gap: 6px; align-items: start; font-size: 14px; }
.carried .ci svg { width: 18px; height: 18px; display: block; color: #5b6661; margin-top: 2px; }
.carried .ck { color: #5b6661; white-space: nowrap; }
.carried .cv { color: #1c2321; font-variant-numeric: tabular-nums; }
.carried .cv span { display: block; }
.callout a { color: #633806; white-space: nowrap; }
.callout a .ext svg { margin-left: 3px; }
.callout-icon svg { width: 20px; height: 20px; display: block; color: #b9770e; margin-top: 1px; }
a.again { margin-right: 16px; color: #1f5f4a; white-space: nowrap; }
a.again .ext svg { margin-left: 4px; }
