:root {
  color-scheme: light;
  --shell: #f3f6f6;
  --panel: #fcfdfdf8;
  --line: #d7dfe0;
  --muted: #496065;
  --ink: #122b30;
  --mint: #2c7a81;
  --warm: #aa691b;
  --lift: 0 2px 14px #10292f24;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; color: var(--ink); background: var(--shell); font: 14px/1.43 Inter,"Helvetica Neue",Arial,sans-serif; font-variant-numeric: tabular-nums }
button, select, input { font: inherit; accent-color: var(--mint) }
button, select { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px }
button, select, summary { cursor: pointer }
button:disabled { opacity: .45; cursor: default }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #318696; outline-offset: 2px }
button:hover:not(:disabled) { border-color: var(--mint) }
button[aria-pressed=true] { background: #e2f0f0; color: #19555a; border-color: #a7c6c8 }
h1, h2, h3, p { margin: 0 }
h2 { font-size: 18px; letter-spacing: -.03em }
h3 { font-size: 24px; letter-spacing: -.035em; font-weight: 590 }
small, .subtitle, .scope { color: var(--muted) }
.header { height: 50px; display: flex; align-items: center; gap: 15px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line) }
.project, .brief { display: grid; border-left: 1px solid var(--line); padding-left: 15px; line-height: 1.2 }
.project h1 { font-size: 15px; font-weight: 650 }
.project span, .brief span { font-size: 10px; color: var(--muted); margin-top: 2px }
.brief b { font-size: 13px }
#tour { margin-left: auto; white-space: nowrap }
.primary { color: white; background: var(--mint); border-color: var(--mint); font-weight: 600 }
#sources { padding: 4px 8px; font-size: 17px }
main { position: relative; height: calc(100svh - 50px) }
#stage { position: absolute; inset: 0; isolation: isolate; overflow: hidden; background: #afc7c8 }
#map, #google-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none }
#maplabels { position: absolute; inset: 0; pointer-events: none }
.tag { position: absolute; transform: translate(-50%,-100%); white-space: nowrap; background: #13383aeb; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px }
.tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; height: 5px; border-left: 1px solid currentColor }
nav, .layers, .design, .period, #overview, #legend { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift) }
nav, .layers, .design, .period, #overview, #legend, #status, #attribution { position: absolute; z-index: 2 }
nav { display: flex; gap: 2px; top: 12px; left: 232px; padding: 4px }
nav button { background: transparent; border: 1px solid transparent; font-size: 13px }
.layers { width: 208px; left: 12px; top: 12px; padding: 10px 12px }
.layers summary { font-weight: 650 }
.layer-items { display: grid; gap: 8px; padding-top: 9px; font-size: 12px }
.layer-items > label { display: flex; align-items: center; gap: 5px }
.layer-items > label[for] { margin-bottom: -5px; color: var(--muted); font-size: 11px }
.layer-items select { width: 100%; padding: 4px 3px; font-size: 11px }
.layer-items input { margin: 0 }
.layer-items button { text-align: left; color: #24666c; font-size: 12px; padding: 5px 7px }
.icon-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; background: var(--shell); border: 1px solid var(--line); border-radius: 8px; padding: 3px }
.icon-controls { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2px }
.icon-picker button, .icon-controls button { display: flex; align-items: center; gap: 4px; padding: 4px; border-color: transparent; background: transparent; font-size: 11px }
.icon-picker button[aria-pressed=true], .icon-controls button[aria-pressed=true] { background: #e2f0f0; border-color: #a7c6c8 }
.icon-controls button { justify-content: center; padding: 4px 1px }
.icon-picker svg, .icon-controls svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; fill: none }
#layer-note { color: var(--muted); font-size: 11px }

#overview { left: 12px; bottom: 16px; width: 132px; height: 100px; overflow: hidden; padding: 0 }
#overview img { object-fit: cover; width: 100%; height: 100% }
#overview i { position: absolute; top: 45%; left: 45%; width: 13px; height: 13px; border: 1px solid #fff3a9; border-radius: 2px }
#overview span { position: absolute; bottom: 0; left: 0; right: 0; color: white; background: #14272ae8; padding: 3px; font-size: 10px }
#legend { left: 12px; bottom: 127px; width: 208px; padding: 7px 10px; font-size: 11px }
#legend .ramp { height: 6px; border-radius: 3px; margin: 4px 0 }
#legend .ends { display: flex; justify-content: space-between }
#status { top: 61px; left: 232px; max-width: calc(100% - 230px); background: #13383aeb; color: white; padding: 5px 8px; border-radius: 5px; font-size: 12px }
#attribution { right: 8px; bottom: 3px; color: white; background: #142324dc; padding: 1px 5px; font-size: 10px }
.design { right: 12px; top: 12px; width: 280px; max-height: calc(100% - 70px); padding: 14px; overflow: auto }
.subtitle { margin-top: 2px; font-size: 12px }
.scenarios { display: grid; gap: 3px; margin: 12px 0 }
.scenarios button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border-color: transparent; background: transparent }
.scenarios button[aria-pressed=true] { background: #e2f0f0; border-color: #a7c6c8 }
.scenarios button i { width: 8px; height: 8px; border-radius: 50%; background: var(--scenario) }
.result { border-top: 1px solid var(--line); padding-top: 12px }
.result-head { display: flex; gap: 8px; align-items: center; justify-content: space-between }
#result-status { font-size: 10px; text-align: right; color: var(--muted); line-height: 1.2 }
#scenario-description { color: var(--muted); font-size: 12px; min-height: 35px }
#age-control { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-top: 8px }
#age-control select { padding: 3px 6px }
.metric-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; padding: 10px 0; border-block: 1px solid var(--line) }
.metric-pair span { display: block; color: var(--muted); font-size: 10px }
.metric-pair strong { display: block; font-size: 22px; font-weight: 620; letter-spacing: -.045em; white-space: nowrap }
#delta[data-cooling=true] { color: #24666c }
.scope { font-size: 11px }
dl { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 10px 0; align-items: start; font-size: 11px }
dt { color: var(--muted) }
dd { margin: 0; text-align: right }
#compare { width: 100%; font-size: 12px }
#comparison-note { padding-top: 6px }
.period { left: 50%; bottom: 15px; transform: translateX(-50%); min-width: 305px; max-width: calc(100% - 340px); padding: 9px 12px; display: flex; gap: 12px; align-items: center }
.period-label { display: grid; font-size: 12px; white-space: nowrap }
.period-label small { font-size: 10px }
.period-tabs { display: flex; gap: 2px; border-radius: 7px; background: var(--shell); padding: 2px }
.period-tabs button { border-color: transparent; font-size: 11px; background: transparent; white-space: nowrap }
.period-tabs button[aria-pressed=true] { background: #e2f0f0; border-color: #a7c6c8 }
#split { position: absolute; inset: 0; z-index: 1; pointer-events: none; --divider: 50% }
#split-line { position: absolute; inset-block: 0; left: var(--divider); width: 1px; background: #fff; box-shadow: 0 0 4px #13292c }
#divider { position: absolute; inset: auto -17px 24%; appearance: none; width: calc(100% + 34px); margin: 0; background: transparent; pointer-events: none }
#divider:focus-visible { outline: 0 }
#divider:focus-visible::-webkit-slider-thumb { outline: 2px solid #318696; outline-offset: 2px }
#divider:focus-visible::-moz-range-thumb { outline: 2px solid #318696; outline-offset: 2px }
#divider::-webkit-slider-thumb { appearance: none; height: 34px; width: 34px; border-radius: 50%; border: 1px solid #a7c6c8; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='m13 12-5 5 5 5m8-10 5 5-5 5' stroke='%232c7a81' fill='none' stroke-width='1.7'/%3E%3C/svg%3E"); pointer-events: auto; cursor: ew-resize }
#divider::-moz-range-thumb { height: 31px; width: 31px; border-radius: 50%; border: 1px solid #a7c6c8; background: #fff; pointer-events: auto; cursor: ew-resize }
#split span { position: absolute; bottom: 33%; transform: translateX(-50%); white-space: nowrap; color: white; background: #1b393df1; border-radius: 5px; padding: 3px 7px; font-size: 11px }
#before-label { left: calc(var(--divider) - 61px) }
#after-label { left: calc(var(--divider) + 61px) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
dialog { width: min(490px,90vw); padding: 20px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift) }
dialog::backdrop { background: #10292f77 }
dialog p { margin: 10px 0; color: var(--muted); font-size: 13px }
dialog a { color: #24666c }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px }
#google-form input { display: block; width: 100%; padding: 7px; margin-top: 4px; border: 1px solid var(--line); border-radius: 5px }
#google-error { color: #8a4227 }
.intro { width: min(520px,calc(100vw - 30px)); padding: 28px 32px }
.intro::backdrop, .intro-open::after { background: #10292f31 }
.intro-open::after { content: ""; position: fixed; inset: 0; z-index: 10 }
.intro-open .intro[open] { position: fixed; inset: 0; margin: auto; height: max-content; z-index: 11 }
#stage { background-position: center; background-size: cover }
.intro img { display: block; margin-bottom: 17px }
.intro h2 { max-width: 425px; font-size: clamp(23px,4.7vw,32px); font-weight: 650; line-height: 1.05 }
.intro p { margin: 13px 0 19px; max-width: 360px; font-size: 14px }
.intro-actions { display: flex; gap: 8px; flex-wrap: wrap }
#scenario-chart { display: grid; gap: 4px; margin-top: 11px; font-size: 11px }
.chart-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 6px }
.chart-row .track { height: 8px; border-radius: 20px; background: var(--shell); overflow: hidden }
.chart-row .track i { display: block; height: 100%; width: var(--width); border-radius: inherit; background: var(--marker) }
.chart-row > b { font-size: 10px }
.chart-row[aria-current=true] { font-weight: 600; color: #23616a }
.cesium-viewer-bottom { left: auto !important; right: 12px !important; bottom: 26px !important }
@media (max-width: 760px) { .intro { padding: 20px } .cesium-viewer-bottom { right: 6px !important; bottom: 16px !important } }
@media (min-width: 761px) and (max-width: 970px) {
  .design { width: 238px }
  .layers { width: 158px }
  #legend { width: 158px }
  nav, #status { left: 181px }
  .period { left: 44%; max-width: calc(100% - 300px) }
}
@media (max-width: 760px) {
  .header { height: 49px; gap: 8px; padding: 0 10px }
  .header img { width: 82px }
  .project { padding-left: 8px }
  .project h1 { font-size: 13px }
  .brief { display: none }
  #tour { font-size: 12px; padding-inline: 5px }
  #sources { font-size: 14px; padding-inline: 5px }
  main { height: auto; display: flex; flex-direction: column }
  #stage { position: relative; height: 57svh; min-height: 340px }
  .design { position: static; width: auto; border-radius: 0; box-shadow: none; max-height: none; padding: 14px 14px 22px }
  .scenarios { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px }
  .scenarios button { font-size: 12px; padding: 5px }
  .period { order: 0; position: static; transform: none; max-width: none; min-width: 0; border-radius: 0; box-shadow: none }
  #stage { order: -2 }
  .design { order: -1 }
  nav { top: 7px; left: 7px }
  nav button { font-size: 12px; padding: 5px 7px }
  .layers { top: auto; left: 7px; bottom: 10px; width: 155px; padding: 6px 8px }
  .layers summary { font-size: 12px }
  .layer-items { gap: 5px }
  #legend { top: 69px; right: 7px; bottom: auto; left: auto; width: 123px; font-size: 10px }
  #status { top: 54px; left: 7px; max-width: calc(100% - 14px) }
  #overview { left: auto; right: 7px; top: 7px; width: 64px; height: 53px }
  #overview span { font-size: 8px; line-height: 10px }
  #split span { bottom: 39% }
  #divider { bottom: 29% }
  #attribution { font-size: 8px; bottom: 2px }
}
@media (max-width: 350px) {
  .header img { width: 67px }
  .project h1 { font-size: 11px }
  .period { gap: 5px; padding-inline: 5px }
}
#tour-dialog { position: fixed; inset: auto auto 74px 16px; margin: 0; width: min(340px,calc(100vw - 32px)); padding: 16px; z-index: 5; background: var(--panel); border-top: 3px solid var(--mint) }
#tour-count { display: block; margin-bottom: 4px; color: var(--mint); font-weight: 700 }
#tour-dialog h2 { line-height: 1.15 }
#tour-dialog p { margin: 7px 0 12px }
#design-gap { margin: 9px 0; color: var(--ink); font-size: 12px }
#design-gap p { margin: 4px 0; color: var(--muted) }
@media (max-width: 760px) { #tour-dialog { left: 8px; bottom: 8px; width: calc(100vw - 16px) } }
#cycling::before { content: ""; display: inline-block; vertical-align: middle; width: 15px; margin-right: 6px; border-top: 3px solid hsl(178 100% 35%) }
#cycle-summary { padding: 7px 6px; border-left: 3px solid hsl(178 100% 35%); color: var(--ink) }
#cycle-summary b, #cycle-summary strong { display: block }
#cycle-summary strong { font-size: 19px }
#cycle-summary p { margin-top: 3px; font-size: 11px; color: var(--muted) }
.ground-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px }
.ground-switch button { text-align: center }
#material-key { font-size: 11px }
#material-key summary { font-size: 11px; font-weight: 600 }
#material-key ul { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; list-style: none; margin: 6px 0; padding: 0 }
#material-key li { display: flex; align-items: center; gap: 4px; line-height: 1.12 }
#material-key i { display: inline-block; width: 13px; height: 13px; flex-shrink: 0; border: 1px solid #8c877b; border-radius: 2px }
#material-key .paved { background: #e6dccb } #material-key .apron { background: #d9cec0 }
#material-key .road { background: #9a9b95 } #material-key .planted { background: #94a879 }
#material-key .water { background: #70afb7 } #material-key .building { background: #c5c1b5 }
#material-key .assumed { background: repeating-linear-gradient(45deg,#c7c2b5 0 4px,#a59f91 4px 5px) }
#material-key .garden { background: repeating-linear-gradient(45deg,#b6bea4 0 4px,#94a383 4px 5px) }
#material-key p { line-height: 1.3; color: var(--muted) }
#paving-detail { margin-top: 6px; font-size: 12px; color: var(--mint) }
.paving-section { margin: 18px 0 22px }
.dimension, .detail-key { display: grid; grid-template-columns: 3fr 1fr 3fr 1fr; text-align: center; font-size: 12px }
.dimension b { border-inline-start: 1px solid #567160; border-bottom: 1px solid #567160; padding-bottom: 4px }
.dimension b:last-child { border-inline-end: 1px solid #567160 }
.paving-grain { height: 90px; margin-block: 4px; background: repeating-linear-gradient(90deg,transparent 0% 37.5%,#d0c3a9 37.5% 50%),repeating-linear-gradient(65deg,#858f56 0 1px,#91a669 1px 3px,#829b60 3px 4px) }
.detail-key { color: var(--muted) }
#open-frequency { margin-top: 9px; color: var(--mint); border-color: #aac7c4; font-weight: 650; width: 100%; text-align: left }
.scenarios { grid-template-columns: repeat(2,minmax(0,1fr)) }
.scenarios button { padding: 5px; line-height: 1.22; font-size: 12px }
#frequency-dialog { width: min(780px,95vw); max-height: 92svh; overflow-y: auto }
.frequency-heading, .frequency-table-head { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.frequency-heading h2 { font-size: 24px }
.frequency-controls { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1fr; gap: 9px; margin-top: 17px }
.frequency-controls label,.frequency-table-head label { display: grid; gap: 2px; color: var(--muted); font-size: 11px }
.frequency-controls select,.frequency-table-head select { width: 100%; font-size: 12px; color: var(--ink) }
#frequency-readouts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px }
#frequency-readouts div { border-left: 4px solid #7d9f75; background: #eef1ea; border-radius: 3px; padding: 9px 12px }
#frequency-readouts [data-band=cold] { border-color: #6895a8; background: #eaf1f3 }
#frequency-readouts [data-band=heat] { border-color: #ba724a; background: #f8ede4 }
#frequency-readouts b,#frequency-readouts small,#frequency-readouts strong,#frequency-readouts span { display: block }
#frequency-readouts strong { font-size: clamp(23px,3.7vw,35px); line-height: 1.25; margin-top: 5px }
#frequency-readouts span { color: var(--muted); font-size: 12px }
.frequency-table-head h3 { font-size: 17px }
#frequency-table { border-collapse: collapse; width: 100%; font-size: 12px; margin: 7px 0 14px }
#frequency-table td,#frequency-table th { text-align: left; padding: 7px 5px; border-bottom: 1px solid var(--line) }
#frequency-table tbody th { font-weight: 500; width: 34% }
#frequency-table tbody tr[aria-current=true] { background: #edf3f1 }
#frequency-table td:nth-child(2) { position: relative; width: 36%; isolation: isolate }
#frequency-table td i { position: absolute; inset: 3px auto 3px 0; max-width: 100%; background: #d2e3db; z-index: -1 }
.frequency-method summary { color: var(--mint); font-weight: 650 }
@media(max-width:620px) {
  #frequency-dialog { padding: 13px }
  .frequency-heading h2 { font-size: 19px }
  .frequency-controls { grid-template-columns: 1fr 1fr }
  #frequency-readouts { gap: 3px }
  #frequency-readouts div { padding: 5px; font-size: 11px }
}
.frequency-change { font-weight: 650; color: var(--ink) }
#tour-dialog .dialog-actions { flex-wrap: wrap }
#public-space-pdf { margin-top: 5px; width: 100%; text-align: left; font-size: 12px }

/* Give map selection and navigation a consistent visual priority. */
:root {
  --shell: #edf2f1;
  --panel: #fafcfbfa;
  --line: #cad7d6;
  --muted: #4b5c5e;
  --ink: #162528;
  --mint: #196d74;
  --lift: 0 2px 7px #142a2b20;
  --control-bar: #232c2e;
  --bar-text: #f1f6f5;
  --bar-muted: #b5c7c7;
  --bar-edge: #485b5d;
  --bar-teal: #247982;
  --teal-tint: #dcefed;
  --teal-edge: #72a5a4;
  --fire-ink: #903833;
}
.header {
  color: var(--bar-text);
  background: var(--control-bar);
  border-color: var(--bar-edge);
}
.header img { filter: brightness(0) invert(1); }
.header .project, .header .brief { border-color: var(--bar-edge); }
.header .project span, .header .brief span { color: var(--bar-muted); }
.header button:not(.primary) { background: #303e40; color: var(--bar-text); border-color: var(--bar-edge); }
.header .primary { background: var(--bar-teal); border-color: #65aeb0; }
.header .primary:hover { background: #206b73; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #186c73;
  outline-offset: 2px;
}
.header :focus-visible { outline-color: #a4eddf; }
.layers, .design, dialog { border-radius: 8px; }
nav, .period, #overview, #legend { border-radius: 6px; }
nav, #overview, #legend { box-shadow: 0 1px 4px #152b2c22; }
.layers summary, .design > h2 { font-weight: 700; }
.icon-picker { border-radius: 5px; }
button[aria-pressed=true], .icon-picker button[aria-pressed=true], .icon-controls button[aria-pressed=true],
.period-tabs button[aria-pressed=true], .scenarios button[aria-pressed=true] {
  background: var(--teal-tint);
  color: #15535a;
  border-color: var(--teal-edge);
}
.scenarios button[aria-pressed=true], nav button[aria-pressed=true] { font-weight: 700; }
.chart-row { grid-template-columns: 98px minmax(0, 1fr) auto; }
.chart-row .track { border-radius: 2px; }
.chart-row[aria-current=true] > b { color: #15535a; }
#open-frequency { background: #edf6f4; color: #15535a; border-color: var(--teal-edge); }
#open-frequency:hover:not(:disabled) { background: var(--teal-tint); }
.layers [data-layer=smoke] { color: var(--fire-ink); }
#google-error { color: var(--fire-ink); }
@media (min-width:761px) {
  .design { max-height: calc(100% - 37px); }
}
@media (max-width:760px) {
  .design, .period { border-radius: 0; }
}
