:root {
  color-scheme: light;
  --ink: #14211d;
  --muted: #65716d;
  --blue: #2c6f91;
  --paper: #f7f9f6;
  --line: #dce3dd;
  --accent: #e7eee4
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 15px;
  line-height: 1.6
}

a {
  color: var(--blue);
  text-underline-offset: 3px
}

button,input {
  font: inherit
}

button {
  cursor: pointer
}

button:disabled {
  cursor: wait;
  opacity: .65
}

[hidden] {
  display: none!important
}

:focus-visible {
  outline: 3px solid #2c6f91;
  outline-offset: 4px
}

.skip-link {
  position: absolute;
  top: -90px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 2000
}

.skip-link:focus {
  top: 8px
}

.report-header {
  padding: 15px 32px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.report-header nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap
}

.report-header nav>a {
  font-size: 13px;
  text-decoration: none;
  color: var(--ink)
}

.report-header [aria-current] {
  font-weight: 700
}

.report-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.5px;
  text-decoration: none;
  font-size: 19px;
  white-space: nowrap
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 13px;
  letter-spacing: 0
}

.primary,.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  min-height: 44px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent
}

.primary {
  background: var(--ink);
  color: #fff
}

.primary:hover {
  background: #2c463b
}

.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink)
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: #4b6658;
  margin: 0 0 17px
}

h1,h2,h3,p {
  margin-top: 0
}

h1 {
  font-size: clamp(28px,3vw,43px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.5px;
  margin-bottom: 14px
}

h3 {
  font-size: 15px
}

.muted {
  color: var(--muted);
  font-size: 13px
}

.report-picker {
  display: grid;
  grid-template-columns: 360px minmax(0,1fr);
  height: calc(100dvh - 76px);
  min-height: 570px
}

.picker-panel {
  padding: 35px 27px;
  overflow: auto;
  background: #fff;
  border-right: 1px solid var(--line)
}

.picker-panel h1 {
  font-size: 35px
}

.intro {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px
}

.picker-panel label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 8px
}

.address-input {
  display: flex;
  gap: 6px
}

.address-input input {
  width: 100%;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid #cbd6cf;
  border-radius: 8px;
  font-size: 12px
}

.map-status {
  font-size: 12px;
  min-height: 48px;
  padding: 13px 0;
  color: var(--muted);
  margin: 0
}

.map-status.is-error {
  color: #9b392c
}

.picker-explainer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 12px
}

.picker-explainer h2 {
  font-size: 16px
}

.picker-explainer p {
  font-size: 13px
}

.method-link {
  display: block;
  font-size: 12px;
  margin-top: 25px
}

.picker-map-wrap {
  position: relative;
  min-width: 0
}

#report-map {
  height: 100%;
  width: 100%;
  background: #e4eae1
}

.map-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 20px #14211d15;
  padding: 10px 18px;
  border-radius: 30px;
  white-space: nowrap;
  font-size: 12px;
  pointer-events: none
}

.report-popup {
  font-family: inherit;
  min-width: 220px;
  padding: 4px
}

.report-popup strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.3px
}

.report-popup p {
  font-size: 13px;
  margin: 12px 0
}

.report-popup .primary {
  color: #fff;
  width: 100%
}

.building-list {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px
}

.building-list summary {
  cursor: pointer;
  font-weight: 650
}

.building-list ul {
  list-style: none;
  padding: 0;
  max-height: 220px;
  overflow: auto
}

.building-list li {
  padding: 6px 0;
  border-top: 1px solid var(--line)
}

.report-page {
  max-width: 1200px;
  margin: auto;
  padding: 38px 32px 0
}

.report-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 55px;
  padding-bottom: 36px;
  align-items: center
}

.report-hero h1 {
  overflow-wrap: anywhere
}

.report-hero .muted {
  margin-bottom: 6px
}

.report-intro {
  font-size: 14px;
  max-width: 540px;
  margin-top: 20px;
  margin-bottom: 0
}

.report-hero .eyebrow {
  margin-bottom: 13px
}

#report-mini-map {
  height: 240px;
  border-radius: 16px;
  background: #e4eae1;
  border: 1px solid var(--line);
  z-index: 0
}

.report-summary {
  padding: 25px 0 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px
}

.section-heading>span {
  font-size: 12px;
  color: var(--muted)
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px
}

.summary-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 18px;
  color: var(--ink)
}

.summary-card small {
  font-size: 11px;
  color: var(--muted)
}

.summary-card strong {
  font-size: 23px;
  letter-spacing: -.6px;
  margin: 7px 0;
  line-height: 1.25
}

.summary-card span {
  font-size: 11px;
  color: var(--muted)
}

.report-body {
  display: grid;
  grid-template-columns: 205px minmax(0,1fr);
  gap: 36px;
  padding-top: 32px
}

.report-index {
  align-self: start;
  position: sticky;
  top: 22px;
  font-size: 12px
}

.report-index summary {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  cursor: pointer
}

.report-index a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 5px 0
}

.report-index a:hover {
  color: var(--ink)
}

.report-section {
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 26px;
  margin-bottom: 18px;
  overflow-wrap: anywhere
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start
}

.scope {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 7px
}

.status-badge {
  font-size: 10px;
  white-space: nowrap;
  border-radius: 20px;
  padding: 4px 9px;
  background: #f0f2ef;
  color: var(--muted)
}

.status-available {
  background: #f0f2ef;
  color: #52605a
}

.has-result-color {
  border-top: 4px solid var(--result-color)
}

.result-visuals {
  display: grid;
  gap: 12px;
  margin: 6px 0 20px
}

.result-visual {
  padding: 15px 16px 12px;
  background: #f7f9f6;
  border: 1px solid #e7ece5;
  border-radius: 9px;
  break-inside: avoid
}

.result-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12px;
  line-height: 1.45
}

.result-caption b {
  margin-left: auto;
  font-size: 13px
}

.result-dot {
  display: inline-block;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--result-color, #c6ceca);
  border: 1px solid #14211d26
}

.result-track {
  position: relative;
  height: 7px;
  margin: 18px 7px 10px;
  border-radius: 8px
}

.result-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  background: var(--result-color);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #14211d
}

.result-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 10px;
  color: #52605a
}

.result-endpoints>span:last-child {
  text-align: right
}

.result-scale-label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted)
}

.result-visual--compact {
  padding: 10px 12px
}

.summary-card .result-visual {
  border: 0;
  padding: 0;
  background: none;
  margin-top: auto
}

.summary-card .result-caption {
  display: none
}

.summary-card .result-endpoints span {
  font-size: 10px
}

.result-unavailable,.result-context,.scale-explainer {
  font-size: 12px;
  color: var(--muted)
}

.summary-card .result-unavailable {
  display: block;
  border-top: 3px solid #c6ceca;
  padding-top: 10px;
  margin-top: 18px
}

.scale-explainer {
  margin: 16px 0 0
}

.report-index a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--toc-color, var(--result-color, #c6ceca))
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap
}

.status-error {
  background: #fff0e6;
  color: #8d451f
}

.report-rows {
  margin: 0
}

.report-rows>div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0eb
}

.report-rows dt {
  font-size: 12px;
  color: var(--muted)
}

.report-rows dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600
}

.section-note {
  font-size: 12px;
  color: var(--muted);
  margin: 17px 0
}

.source-meta {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px
}

.section-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
  margin-top: 14px
}

.source-details {
  font-size: 11px;
  margin-top: 12px;
  color: var(--muted)
}

.source-details summary,.report-items>summary {
  cursor: pointer
}

.source-details ul {
  padding-left: 18px
}

.report-items {
  margin-top: 15px;
  font-size: 12px
}

.report-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line)
}

.report-item h3 {
  margin-bottom: 4px
}

.empty-state {
  font-size: 14px;
  padding: 13px 0;
  color: var(--muted)
}

.partial-notice {
  font-size: 12px;
  background: #fff5e9;
  padding: 9px 12px;
  border-radius: 8px;
  color: #875222
}

.report-footer {
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  margin-top: 35px;
  padding: 25px 0
}

.report-loading {
  padding: 75px 0
}

.report-loading p {
  color: var(--muted)
}

#print-url {
  overflow-wrap: anywhere
}

.noscript {
  padding: 25px;
  color: #9b392c
}

html {
  scroll-behavior: smooth
}

@media(max-width:900px) {
  .report-picker {
    grid-template-columns: 310px minmax(0,1fr)
  }
  .picker-panel {
    padding: 25px 20px
  }
  .picker-panel h1 {
    font-size: 30px
  }
  .report-hero {
    gap: 25px
  }
  .report-body {
    grid-template-columns: 160px minmax(0,1fr);
    gap: 22px
  }
  .summary-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .report-header {
    padding: 12px 20px
  }
  .report-header nav {
    gap: 12px
  }
}

@media(max-width:650px) {
  .report-header {
    padding: 12px 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px
  }
  .report-brand {
    font-size: 17px
  }
  .report-header nav {
    gap: 12px
  }
  .report-header .primary,.report-header .secondary {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 11px
  }
  .report-picker {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0
  }
  .picker-panel {
    padding: 24px 20px;
    border: 0
  }
  .picker-panel h1 {
    font-size: 31px
  }
  .picker-panel h1 br {
    display: none
  }
  .picker-panel .intro {
    margin-bottom: 20px
  }
  .picker-explainer,.method-link {
    display: none
  }
  .map-status {
    min-height: 0
  }
  .building-list {
    margin-top: 2px;
    padding-top: 8px
  }
  .picker-map-wrap {
    height: 58dvh;
    min-height: 360px
  }
  .map-hint {
    font-size: 10px;
    padding: 8px 12px;
    bottom: 28px
  }
  .report-page {
    padding: 26px 18px 0
  }
  .report-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 24px
  }
  #report-mini-map {
    height: 195px
  }
  .report-hero h1 {
    font-size: 32px
  }
  .report-body {
    display: block;
    padding-top: 22px
  }
  .report-index {
    position: static;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
    padding-bottom: 10px
  }
  .report-index nav {
    columns: 2;
    column-gap: 20px
  }
  .report-index a {
    break-inside: avoid
  }
  .report-section {
    padding: 20px 17px
  }
  .report-section h2 {
    font-size: 19px
  }
  .report-rows>div {
    grid-template-columns: 1fr 1.1fr;
    gap: 14px
  }
  .report-rows dd {
    font-size: 13px
  }
  .summary-card {
    padding: 15px
  }
  .summary-card strong {
    font-size: 20px
  }
  .section-heading {
    display: block
  }
  .section-heading>span {
    display: block;
    margin-bottom: 14px
  }
  .section-top {
    gap: 6px
  }
  .status-badge {
    font-size: 9px
  }
  .report-summary {
    padding-top: 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

@media print {
  .result-visual,.has-result-color,.report-index a::before {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact
  }
  @page {
    margin: 15mm
  }
  body {
    background: white;
    font-size: 11px
  }
  .report-header,.skip-link,.report-index,#retry-report,.report-loading {
    display: none!important
  }
  .report-page {
    max-width: none;
    padding: 0
  }
  .report-hero {
    grid-template-columns: 1.3fr 1fr;
    gap: 20px
  }
  h1 {
    font-size: 29px
  }
  .report-body {
    display: block
  }
  .report-section,.summary-card {
    break-inside: avoid
  }
  .report-section {
    padding: 16px;
    margin-bottom: 14px
  }
  .report-summary {
    padding: 18px 0
  }
  .summary-grid {
    grid-template-columns: repeat(4,minmax(0,1fr))
  }
  .summary-card strong {
    font-size: 18px
  }
  .summary-card {
    padding: 12px
  }
  .report-section h2 {
    font-size: 18px
  }
  .report-items,.source-details {
    display: block
  }
  .report-items>summary,.source-details>summary {
    list-style: none
  }
  .section-links {
    display: none
  }
  .leaflet-control-zoom {
    display: none
  }
  .report-footer {
    font-size: 9px
  }
  .report-hero .eyebrow {
    font-size: 9px
  }
  #report-mini-map {
    height: 190px
  }
  .source-meta {
    font-size: 9px
  }
  a {
    color: var(--ink);
    text-decoration: none
  }
}
