:root {
  color-scheme: light;
  --ink: #102a35;
  --evergreen: #0f5b4c;
  --sound-blue: #1b4b73;
  --amber: #c98a20;
  --cloud: #f4f7f6;
  --white: #ffffff;
  --slate: #5e6d73;
  --line: #d6dfdc;
  --soft-blue: #eaf1f5;
  --soft-green: #e8f1ee;
  --error: #9b2c2c;
  --shadow: 0 18px 48px rgb(16 42 53 / 14%);
  --radius-sm: 0.55rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--cloud);
  color: var(--ink);
  overflow: hidden;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a,
input,
select {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--amber);
}

a {
  color: var(--sound-blue);
}

.skip-link {
  background: var(--ink);
  border-radius: 0 0 var(--radius-sm) 0;
  color: var(--white);
  left: 0;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 160ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  background:
    radial-gradient(circle at 90% -40%, rgb(201 138 32 / 35%), transparent 34%),
    linear-gradient(120deg, #0b2530, var(--ink) 58%, #123d43);
  color: var(--white);
  display: flex;
  height: 5.5rem;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.brand-mark {
  border: 2px solid rgb(255 255 255 / 58%);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(16 42 53 / 20%);
  flex: 0 0 auto;
  height: 2.75rem;
  object-fit: contain;
  width: 2.75rem;
}

.eyebrow {
  color: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.24rem;
  text-transform: uppercase;
}

.site-header h1 {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.coverage-notice {
  color: rgb(255 255 255 / 78%);
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  line-height: 1.25;
  margin: 0.28rem 0 0;
  max-width: 72ch;
  white-space: normal;
}

.release-meta {
  align-items: center;
  color: rgb(255 255 255 / 76%);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
  gap: 0.65rem 1rem;
  justify-content: flex-end;
}

.mode-badge {
  background: var(--amber);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.72rem;
  text-transform: uppercase;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(17.5rem, 21rem) minmax(0, 1fr);
  height: calc(100% - 8.7rem);
  position: relative;
}

.pathway-home {
  margin: 0 auto;
  max-width: 72rem;
  min-height: calc(100vh - 11rem);
  padding: clamp(2rem, 7vw, 6rem) 1.25rem;
}

.pathway-home h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0 0 2rem;
  max-width: 14ch;
}

.pathway-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pathway-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  display: grid;
  gap: 0.55rem;
  min-height: 10rem;
  padding: 1.5rem;
  text-align: left;
}

.pathway-card strong { font-size: 1.35rem; }
.pathway-card span { color: var(--slate); line-height: 1.5; }
.pathway-card:disabled { cursor: not-allowed; opacity: 0.68; }
.pathway-surface { min-height: calc(100vh - 8rem); }
#facility-pathway {
  height: calc(100dvh - 8.05rem);
  min-height: 0;
  overflow: hidden;
}
#facility-pathway .app-layout { height: calc(100% - 3.5rem); }
#program-pathway {
  height: calc(100dvh - 8.05rem);
  min-height: 0;
  overflow: hidden;
}
#program-pathway .program-layout {
  height: calc(100% - 3.5rem);
  min-height: 0;
}
.pathway-back { margin: 0.75rem 1rem; }
.program-coming-soon { margin: 3rem auto; max-width: 42rem; padding: 2rem; }
.program-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  min-height: 70vh;
}
.program-controls { border-right: 1px solid var(--line); padding: 1rem; }
.program-controls > input { margin: 0.5rem 0 1rem; width: 100%; }
.program-main { padding: 1rem; }
.program-controls,
.program-main {
  min-height: 0;
  overflow-y: auto;
}
.detail-link-button { background: none; border: 0; color: var(--sound-blue); padding: 0; text-decoration: underline; }

.control-panel {
  background: var(--white);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 1.05rem 1rem 2rem;
  z-index: 3;
}

.control-section {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0 1.1rem;
}

.control-section:first-child {
  padding-top: 0;
}

.control-section:last-child {
  border-bottom: 0;
}

.control-section h2,
.control-section label {
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.section-heading-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.text-button,
.icon-button {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.text-button {
  color: var(--sound-blue);
  font-size: 0.78rem;
  font-weight: 750;
}

.filter-heading-actions,
.result-actions {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.mobile-filter-button,
.mobile-filter-close {
  display: none;
}

.mobile-filter-button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 2.45rem;
  padding: 0.45rem 0.7rem;
}

.search-box {
  align-items: center;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 0.55rem;
  padding: 0 0.75rem;
}

.search-box:focus-within {
  border-color: var(--sound-blue);
  box-shadow: 0 0 0 3px rgb(27 75 115 / 12%);
}

.search-box svg {
  fill: none;
  height: 1rem;
  stroke: var(--slate);
  stroke-linecap: round;
  stroke-width: 2;
  width: 1rem;
}

.search-box input {
  background: transparent;
  border: 0;
  min-width: 0;
  padding: 0.75rem 0;
  width: 100%;
}

.search-box input:focus {
  outline: 0;
}

.filter-controls {
  display: grid;
  gap: 0.65rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
}

.active-filters[hidden] {
  display: none;
}

.active-filter-chip,
.active-filter-clear {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--sound-blue) 32%, transparent);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.58rem;
}

.active-filter-chip:hover,
.active-filter-chip:focus-visible {
  border-color: var(--sound-blue);
}

.active-filter-clear {
  background: transparent;
  border-color: transparent;
  color: var(--sound-blue);
  text-decoration: underline;
}

.filter-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.filter-group legend {
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 780;
  margin-bottom: 0.35rem;
}

.filter-option {
  align-items: center;
  border-radius: 0.4rem;
  cursor: pointer;
  display: flex !important;
  font-size: 0.78rem !important;
  font-weight: 620 !important;
  gap: 0.45rem;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 0.27rem 0.35rem;
  text-transform: none !important;
}

.filter-option:hover {
  background: var(--cloud);
}

.filter-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.48;
}

.filter-option input {
  accent-color: var(--evergreen);
  height: 1rem;
  margin: 0;
  width: 1rem;
}

.legend {
  display: grid;
  gap: 0.55rem;
}

.map-legend-card {
  background: rgb(255 255 255 / 94%);
  border: 1px solid rgb(16 42 53 / 18%);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgb(16 42 53 / 16%);
  left: 1rem;
  max-width: 19rem;
  padding: 0.72rem 0.8rem;
  position: absolute;
  top: 1rem;
  width: max-content;
  z-index: 10;
}

.map-legend-card summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  list-style-position: inside;
  text-transform: uppercase;
}

.map-legend-card[open] summary {
  margin-bottom: 0.7rem;
}

.legend-item {
  align-items: flex-start;
  display: flex;
  font-size: 0.82rem;
  gap: 0.65rem;
}

.legend-copy {
  display: grid;
  gap: 0.16rem;
}

.legend-label {
  font-weight: 700;
}

.legend-description {
  color: var(--slate);
  font-size: 0.72rem;
  line-height: 1.35;
  max-width: 28rem;
}

.legend-swatch {
  background: var(--legend-color);
  display: inline-block;
  flex: 0 0 auto;
  height: 0.85rem;
  width: 0.85rem;
}

.legend-swatch[data-shape="circle"] {
  border-radius: 50%;
}

.legend-swatch[data-shape="diamond"] {
  transform: rotate(45deg) scale(0.82);
}

.legend-swatch[data-shape="hexagon"] {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.legend-swatch[data-shape="triangle"] {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.legend-swatch[data-shape="school_lock"] {
  border: 2px solid #fff;
  clip-path: polygon(50% 0, 100% 35%, 88% 35%, 88% 100%, 12% 100%, 12% 35%, 0 35%);
  height: 1.05rem;
  position: relative;
  width: 1.05rem;
}

.legend-swatch[data-shape="school_lock"]::after {
  border: 2px solid #fff;
  bottom: 2px;
  content: "";
  height: 6px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 6px;
}

.legend-swatch[data-shape="ring"],
.legend-swatch[data-shape="outline"] {
  background: transparent;
  border: 2px solid var(--legend-color);
  border-radius: 50%;
}

.legend-swatch[data-shape="line"] {
  height: 0.18rem;
}

.legend-swatch[data-shape="cluster"] {
  align-items: center;
  background: var(--ink);
  border: 2px solid rgb(255 255 255 / 82%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(16 42 53 / 22%);
  color: var(--white);
  display: inline-flex;
  font-size: 0.52rem;
  font-weight: 850;
  height: 1.1rem;
  justify-content: center;
  width: 1.1rem;
}

.legend-empty,
.empty-results {
  color: var(--slate);
  font-size: 0.82rem;
}

.result-summary p {
  font-size: 0.84rem;
  font-weight: 750;
  margin: 0 0 0.75rem;
}

.view-toggle {
  background: var(--cloud);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.2rem;
}

.view-toggle button {
  background: transparent;
  border: 0;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.55rem;
}

.view-toggle button[aria-pressed="true"] {
  background: var(--white);
  box-shadow: 0 2px 9px rgb(16 42 53 / 12%);
  color: var(--evergreen);
}

.main-content,
.map-view,
#map-canvas,
.list-view {
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.main-content {
  position: relative;
}

.map-view {
  background: #dce7e4;
  position: relative;
}

.map-fallback {
  background: var(--soft-blue);
  inset: 1.2rem;
  padding: 2rem;
  position: absolute;
}

.map-fallback h2 {
  margin-top: 0;
}

.list-view {
  background: var(--cloud);
  overflow-y: auto;
  padding: 1rem;
}

.results-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 58rem;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: grid;
  gap: 0.26rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.9rem 1rem;
  text-align: left;
  width: 100%;
}

.result-card:hover,
.result-card[aria-current="true"] {
  border-color: var(--sound-blue);
  box-shadow: 0 8px 22px rgb(16 42 53 / 10%);
}

.result-card__name {
  font-weight: 850;
}

.result-card__place,
.result-card__type {
  color: var(--slate);
  font-size: 0.78rem;
  grid-column: 1;
}

.result-card__badge {
  align-self: start;
  background: var(--soft-green);
  border-radius: 999px;
  color: var(--evergreen);
  font-size: 0.64rem;
  font-weight: 850;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0.32rem 0.5rem;
  text-transform: uppercase;
}

.result-card__location,
.result-card__offerings {
  color: var(--slate);
  font-size: 0.72rem;
  grid-column: 1;
}

.result-card__location--needed {
  color: #79500c;
  font-weight: 750;
}

.result-card__status--needed {
  background: #fff4df;
  color: #79500c;
}

.facility-drawer {
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 100%;
  max-width: min(28rem, 92vw);
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 28rem;
  z-index: 10;
}

.drawer-header {
  align-items: flex-start;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 1.25rem;
}

.drawer-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

.icon-button {
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  padding: 0;
}

.drawer-content {
  padding: 1.25rem;
}

.detail-section {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0 1rem;
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h3 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin: 1rem 0 0.7rem;
  text-transform: uppercase;
}

.detail-section dl {
  display: grid;
  gap: 0.18rem 0.85rem;
  grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1.3fr);
  margin: 0;
}

.detail-section dt,
.detail-section dd {
  font-size: 0.8rem;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0.25rem 0;
}

.detail-section dt {
  color: var(--slate);
  font-weight: 700;
}

.detail-section dd {
  font-weight: 620;
}

.school-access-notice {
  background: #fff4df;
  border: 2px solid var(--amber);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  margin: 0.8rem 0;
  overflow-wrap: anywhere;
  padding: 0.85rem 1rem;
}

.school-access-notice h3,
.school-access-notice dt,
.school-access-notice dd {
  color: var(--ink);
  font-weight: 700;
}

.runtime-status {
  background: var(--soft-green);
  border-left: 4px solid var(--evergreen);
  bottom: 3.7rem;
  box-shadow: 0 8px 30px rgb(16 42 53 / 18%);
  font-size: 0.78rem;
  left: calc(21rem + 1rem);
  max-width: 25rem;
  padding: 0.7rem 0.9rem;
  position: fixed;
  z-index: 20;
}

.runtime-status[hidden] {
  display: none;
}

.site-footer {
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--slate);
  display: flex;
  font-size: 0.72rem;
  min-height: 2.55rem;
  padding: 0.25rem 1rem;
  position: relative;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.footer-nav > * {
  align-items: center;
  display: inline-flex;
  min-height: 2rem;
  white-space: nowrap;
}

.footer-nav > * + * {
  border-left: 1px solid var(--line);
  margin-left: 0.65rem;
  padding-left: 0.65rem;
}

.footer-nav a,
.footer-disclosure summary,
.footer-link-button {
  color: var(--evergreen);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

.creator-credit {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-credits {
  flex-shrink: 0;
  gap: 0.5rem;
  min-width: 0;
}

.network-attribution {
  color: var(--slate);
  font-weight: 600;
}

.network-attribution::after {
  color: var(--line);
  content: "·";
  margin-left: 0.5rem;
}

.footer-disclosure {
  color: var(--ink);
  position: relative;
  width: fit-content;
}

.footer-disclosure summary {
  cursor: pointer;
  list-style: none;
}

.footer-disclosure summary::-webkit-details-marker {
  display: none;
}

.footer-popover {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  bottom: calc(100% + 0.55rem);
  box-shadow: var(--shadow);
  color: var(--slate);
  font-size: 0.78rem;
  left: 0;
  line-height: 1.5;
  max-height: min(70dvh, 34rem);
  max-width: min(44rem, calc(100vw - 2rem));
  overflow-wrap: anywhere;
  overflow-y: auto;
  padding: 1rem;
  position: absolute;
  white-space: normal;
  width: max-content;
  z-index: 35;
}

.footer-disclosure:not([open]) > .footer-popover {
  display: none;
}

.atlas-updates-card {
  max-width: min(42rem, calc(100vw - 2rem));
}

.atlas-update-entry {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.atlas-update-entry h3 {
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
}

.atlas-update-entry p,
.atlas-update-invitation {
  line-height: 1.45;
  margin: 0;
}

.atlas-update-invitation {
  background: var(--mist);
  border-left: 0.22rem solid var(--gold);
  margin-top: 1rem;
  padding: 0.75rem;
}

.attribution-card {
  left: auto;
  max-width: min(30rem, calc(100vw - 2rem));
  right: 0;
}

.atlas-disclaimer-card strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.atlas-disclaimer-card p {
  margin: 0.55rem 0 0;
}

.correction-cta {
  width: fit-content;
}

.footer-nav a:hover,
.footer-disclosure summary:hover,
.footer-link-button:hover {
  color: var(--sound-blue);
}

.footer-link-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  width: fit-content;
}

#contributors-dialog {
  background: transparent;
  border: 0;
  max-width: min(42rem, calc(100vw - 2rem));
  padding: 0;
}

#contributors-dialog::backdrop {
  background: rgb(16 42 53 / 48%);
}

.contributors-dialog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-height: min(42rem, calc(100dvh - 2rem));
  overflow: auto;
}

.contributors-dialog-header {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.contributors-dialog-header h2 { margin: 0; }

#contributors-content { padding: 1.25rem; }

.contributors-empty { color: var(--slate); line-height: 1.55; margin: 0; }

.contributors-list { display: grid; gap: 0.8rem; list-style: none; margin: 0; padding: 0; }

.contributor-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem; }
.contributor-card h3, .contributor-card p { margin: 0 0 0.45rem; }
.contributor-card p { color: var(--slate); font-size: 0.85rem; }
.contributor-card ul { margin: 0.65rem 0 0; padding-left: 1.1rem; }

.correction-cta:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid var(--amber);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

[hidden] {
  display: none !important;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .footer-nav {
    row-gap: 0.1rem;
  }

  .footer-credits {
    flex-basis: 100%;
  }

  .footer-nav > * {
    min-height: 1.75rem;
  }
}

@media (max-width: 760px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .program-layout { grid-template-columns: 1fr; }
  .program-controls { border-bottom: 1px solid var(--line); border-right: 0; }
  body {
    overflow: auto;
  }

  #facility-pathway {
    height: auto;
    min-height: calc(100vh - 8rem);
    overflow: visible;
  }

  #facility-pathway .app-layout {
    height: calc(100dvh - 9.5rem);
  }

  #program-pathway {
    height: auto;
    min-height: calc(100vh - 8rem);
    overflow: visible;
  }

  #program-pathway .program-layout {
    height: auto;
    min-height: 70vh;
  }

  .program-controls,
  .program-main {
    overflow-y: visible;
  }

  .site-header {
    align-items: flex-start;
    height: auto;
    min-height: 5.1rem;
    padding: 0.85rem 1rem;
  }

  .brand-mark {
    height: 2.25rem;
    width: 2.25rem;
  }

  .release-meta {
    max-width: 8rem;
  }

  .coverage-notice {
    max-width: min(58vw, 48ch);
  }

  #last-verified {
    display: none;
  }

  .app-layout {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 9.5rem);
  }

  .control-panel {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    flex: 0 0 auto;
    max-height: 44%;
    padding: 0.75rem 1rem;
  }

  .control-section:not(.search-section, .result-summary) {
    display: none;
  }

  .mobile-filter-button,
  .mobile-filters-open .filter-section,
  .mobile-filters-open .mobile-filter-close {
    display: block;
  }

  .mobile-filters-open .filter-section {
    background: var(--white);
    border: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    bottom: 0;
    box-shadow: 0 -12px 40px rgb(16 42 53 / 24%);
    left: 0;
    max-height: min(78dvh, 44rem);
    overflow-y: auto;
    padding: 1rem 1rem 2rem;
    position: fixed;
    right: 0;
    z-index: 40;
  }

  .search-section {
    border-bottom: 0;
    padding-bottom: 0.4rem;
  }

  .result-summary {
    align-items: center;
    border-bottom: 0;
    display: flex;
    gap: 0.7rem;
    justify-content: space-between;
    padding: 0.25rem 0 0;
  }

  .result-summary p {
    margin: 0;
  }

  .view-toggle {
    min-width: 8.5rem;
  }

  .main-content {
    flex: 1 1 auto;
  }

  .map-legend-card {
    left: 1rem;
    max-height: min(54dvh, 24rem);
    max-width: calc(100% - 2rem);
    overflow-y: auto;
    padding: 0.62rem 0.72rem;
    top: 0.75rem;
  }

  .map-legend-card .legend {
    gap: 0.45rem;
  }

  .map-legend-card .legend-item {
    font-size: 0.76rem;
  }

  .facility-drawer {
    border-left: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    bottom: 0;
    height: min(72dvh, 42rem);
    max-width: none;
    position: fixed;
    top: auto;
    width: 100%;
  }

  .runtime-status {
    bottom: 3.1rem;
    left: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .site-footer {
    min-height: 0;
    padding: 0.3rem 0.6rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    row-gap: 0.1rem;
  }

  .footer-nav > * {
    min-height: 2.25rem;
  }

  .footer-nav > * + * {
    margin-left: 0.45rem;
    padding-left: 0.45rem;
  }

  .footer-credits {
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }

  .network-attribution::after {
    margin-left: 0.5rem;
  }

  .footer-popover {
    bottom: 0.5rem;
    left: 0.5rem;
    max-width: none;
    padding: 1rem 1rem 4.25rem;
    position: fixed;
    right: 0.5rem;
    width: auto;
  }

  .footer-disclosure[open] > summary {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    bottom: 1rem;
    box-shadow: 0 4px 16px rgb(16 42 53 / 16%);
    padding: 0.65rem 0.8rem;
    position: fixed;
    z-index: 36;
  }

  .footer-disclosure[open] > summary::after {
    content: " · Close";
  }

  .atlas-disclaimer[open] > summary {
    left: 1rem;
  }

  .footer-attribution[open] > summary {
    right: 1rem;
  }

  .atlas-disclaimer[open] ~ .footer-attribution[open] > summary {
    bottom: 4.5rem;
  }

  .atlas-disclaimer[open] ~ .footer-attribution[open] > .footer-popover {
    padding-bottom: 7.75rem;
  }

  .footer-attribution .footer-popover {
    left: 0.5rem;
    right: 0.5rem;
  }

  #contributors-dialog { max-width: calc(100vw - 1rem); }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
