@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

/* Base components. Responsive rules are grouped at the end. */
:root {
  font-family: 'Noto Sans KR',system-ui,sans-serif;
  color: #243b35;
  background: #f7f8f4;
  font-synthesis: none;
  font-size: 14px;
  --line: #e2e7e0;
  --green: #176a55;
  --muted: #526158;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
input {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}
button:focus-visible {
  outline: 3px solid #176a55;
  outline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid #176a55;
  outline-offset: 3px;
}
input:focus-visible {
  outline: 3px solid #176a55;
  outline-offset: 3px;
}
button {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  -webkit-tap-highlight-color: transparent;
  color: var(--green);
}
.masthead {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf5;
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brandmark {
  background: #214e3f;
  color: #dce6a8;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px 15px 4px 15px;
  font-size: 37px;
  font-weight: 600;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--muted);
}
.brand-dot {
  color: #ba933e;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.city-badge {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.city-badge>span {
  width: 6px;
  height: 6px;
  background: #67977c;
  border-radius: 50%;
  display: inline-block;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #67977c;
  border-radius: 50%;
  display: inline-block;
}
.quiet-button {
  font-size: 12px;
  border-bottom: 1px solid #ced8cc;
  padding: 8px 0;
}
.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0,1fr);
  height: calc(100dvh - 82px);
  min-height: 440px;
}
.side-heading {
  padding: 26px 25px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
}
h1 {
  font-size: 19px;
  letter-spacing: -.8px;
  margin: 9px 0 0;
}
.search-box {
  margin: 0 24px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce3d8;
  border-radius: 8px;
  background: #f3f5ef;
  padding: 0 12px;
  min-height: 44px;
}
.search-box>span {
  font-size: 27px;
  line-height: 1;
  color: var(--muted);
}
.search-box:focus-within {
  border-color: #4e937c;
}
.filters {
  padding: 0 24px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 17px;
  min-width: 0;
}
legend button {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  padding: 0;
}
legend button:first-of-type {
  margin-left: auto;
}
.kind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 11px;
}
.kindergarten-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px 11px;
}
.kindergarten-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.kindergarten-settings p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.vocational input {
  accent-color: #25755f;
  width: 13px;
  height: 13px;
  margin: 0;
}
.check-label small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.owner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.vocational>input {
  position: absolute;
  opacity: 0;
}
.vocational small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.toggle {
  margin-left: auto;
  width: 29px;
  height: 17px;
  border-radius: 15px;
  background: #d4dbd3;
  position: relative;
  flex-shrink: 0;
}
.toggle:after {
  content: '';
  width: 11px;
  height: 11px;
  position: absolute;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}
.vocational input:checked~.toggle {
  background: #24715b;
}
.vocational input:checked~.toggle:after {
  transform: translateX(12px);
}
.vocational input:focus-visible~.toggle {
  outline: 3px solid #176a55;
}
.result-heading {
  padding: 18px 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.result-heading strong {
  font-size: 20px;
  margin-left: 5px;
  color: var(--green);
}
.muted {
  color: var(--muted);
  font-size: 12px;
  margin-left: 3px;
}
.text-button {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 0;
}
.school-row:hover {
  background: #f0f4eb;
}
.school-row.selected {
  background: #eaf1e5;
}
.school-icon {
  width: 29px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb,var(--color) 11%,white);
  color: #294133;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.school-copy {
  min-width: 0;
  flex: 1;
}
.row-arrow {
  font-size: 15px;
  color: var(--muted);
}
.empty {
  padding: 30px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 13px 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.map-shell {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #e9eee5;
}
#map {
  isolation: isolate;
  z-index: 0;
  position: absolute;
  inset: 0;
}
.bookmarks button {
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--muted);
}
.bookmarks button.active {
  background: #e7eddd;
  color: #315837;
  font-weight: 700;
}
.bookmarks button:hover {
  background: #eff3ea;
}
.map-tools {
  position: absolute;
  top: 22px;
  right: 23px;
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: 12px;
  background: #fcfdf9;
  box-shadow: 0 4px 20px #29472c0b;
  gap: 2px;
}
.map-tools button:hover {
  background: #edf2e7;
}
.map-tools button[aria-pressed=true] {
  background: #e5eddd;
  color: #28643c;
}
.map-caption h2 {
  font-size: 20px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 9px 0;
}
.map-caption p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 15px;
}
.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.legend-note {
  margin-left: 4px;
  color: var(--muted);
}
.map-notice {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  background: #244c3bef;
  color: white;
  border-radius: 20px;
  padding: 8px 15px;
  max-width: 85%;
  text-align: center;
  z-index: 2;
}
.map-notice[hidden] {
  display: none;
}
.selection h3 {
  font-size: 19px;
  margin: 12px 0 9px;
  letter-spacing: -.7px;
  padding-right: 15px;
}
.icon-button {
  font-size: 23px;
  width: 28px;
  height: 28px;
  line-height: 1;
}
.type-tag {
  color: var(--green);
  font-size: 12px;
  background: #e7eee1;
  padding: 5px 8px;
  border-radius: 5px;
  display: inline-block;
}
.selection dt {
  color: var(--muted);
}
.mobile-only {
  display: none;
}
dialog {
  width: min(680px,calc(100% - 32px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: #fcfcf8;
  color: #294133;
  max-height: 85dvh;
  box-shadow: 0 20px 100px #172d3440;
}
dialog::backdrop {
  background: #213b344c;
  backdrop-filter: blur(4px);
}
.dialog-header h2 {
  margin: 7px 0;
  font-size: 22px;
}
.dialog-body h3 {
  font-size: 14px;
  margin: 20px 0 8px;
}
.source-item a {
  font-weight: 600;
  text-decoration: none;
}
.data-summary {
  padding: 15px;
  background: #edf2e5;
  border-radius: 9px;
}
.maplibregl-ctrl-attrib {
  font-family: inherit!important;
  font-size: 12px!important;
  background: #fcfdf9!important;
}
.maplibregl-ctrl-scale {
  font-family: inherit!important;
  border-color: #678169!important;
  background: #fcfdf9!important;
  color: #536a55!important;
  font-size: 12px!important;
}
.maplibregl-ctrl-bottom-left {
  left: 18px;
  bottom: 5px;
}
.maplibregl-canvas:focus-visible {
  outline: 3px solid #176a55;
  outline-offset: -3px;
}
.detail-card {
  border: 1px solid #d9e5d5;
  background: #f0f5eb;
  padding: 12px;
  border-radius: 9px;
  margin: 14px 0;
}
.detail-badge {
  font-size: 12px;
  color: #28664e;
  font-weight: 700;
}
.detail-card summary {
  cursor: pointer;
}
.detail-view {
  display: block;
  width: 100%;
  border: 1px solid #b6ceaa;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  background: #e2edd9;
  color: #315e40;
}
.map-shell:has(.selection:not([hidden])) .map-caption {
  display: none;
}
.selection-close {
  position: sticky;
  top: 0;
  right: auto;
  float: right;
  z-index: 2;
  background: #fcfdfa;
  border-radius: 5px;
}
.region-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 24px 12px;
  font-size: 12px;
}
.source-item summary {
  cursor: pointer;
  font-weight: 600;
}
.brand strong {
  font-size: 21px;
  letter-spacing: -1px;
}
.building-card ul {
  padding-left: 16px;
  line-height: 1.8;
}
.building-card li {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.touch-gesture {
  display: none;
}
.school-copy strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.school-copy small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.selection a {
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  margin: 5px 10px 5px 0;
}
.detail-card p {
  font-size: 13px;
  margin: 7px 0;
  line-height: 1.8;
}
.detail-card details {
  font-size: 13px;
  margin-top: 10px;
  color: var(--muted);
}
.detail-card a {
  font-size: 13px;
}
.dialog-body {
  padding: 14px 29px 30px;
  font-size: 13px;
  line-height: 1.9;
}
.selection .fineprint {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
}
.source-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.coverage-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 3px 24px 10px;
}
.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #243b35;
  min-width: 0;
}
.search-box input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.check-label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.owner-row .check-label {
  font-size: 13px;
}
.vocational {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  cursor: pointer;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}
legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
}
.check-label input {
  accent-color: #25755f;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.school-row {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid #edf0e9;
  border-radius: 7px;
  min-height: 64px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  background: #fbfcf5;
  border-right: 1px solid var(--line);
  min-height: 0;
  z-index: 4;
  overflow-y: auto;
}
.sidebar>*:not(.result-list) {
  flex-shrink: 0;
}
.result-list {
  overflow: auto;
  min-height: 140px;
  flex: 1 1 180px;
  padding: 0 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: #d6dfd1 transparent;
}
.bookmarks [hidden] {
  display: none;
}
.bookmarks {
  display: flex;
  flex-wrap: wrap;
  background: #f9fbf2;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffff;
  box-shadow: none;
  padding: 5px;
  border-radius: 10px;
  pointer-events: auto;
  max-height: 120px;
  overflow: auto;
  border-color: #dbe2ce;
}
.map-top {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 228px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  pointer-events: none;
  flex-direction: column;
}
.selection {
  position: absolute;
  top: 86px;
  right: 85px;
  width: 300px;
  max-height: calc(100% - 125px);
  overflow: auto;
  background: #fcfdfa;
  border: 1px solid #fff;
  box-shadow: 0 12px 40px #1d342c22;
  border-radius: 14px;
  padding: 21px;
  backdrop-filter: blur(10px);
  z-index: 3;
  max-width: calc(100% - 24px);
}
.selection dl {
  font-size: 13px;
  display: grid;
  grid-template-columns: 85px minmax(0,1fr);
  gap: 10px;
  margin: 18px 0;
}
.selection dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.source-item {
  margin: 13px 0;
  padding-top: 10px;
  border-top: 1px solid #e8ecdf;
  overflow-wrap: anywhere;
}
.selection .detail-view {
  font-size: 13px;
}
.result-more {
  display: block;
  margin: 12px auto;
  padding: 10px 16px;
  font-size: 13px;
  color: #176a55;
  border: 1px solid #799886;
  border-radius: 6px;
}
.source-item dl {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  gap: 7px;
  font-size: 13px;
}
.source-item dd {
  margin: 0;
}
.source-item dt {
  color: var(--muted);
}
.source-item h4 {
  font-size: 14px;
  margin: 12px 0;
}
.selection p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.dialog-body p {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.dialog-header {
  padding: 25px 29px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fcfcf8;
}
.map-tools button {
  width: 41px;
  height: 48px;
  font-size: 18px;
  border-radius: 7px;
  padding: 2px;
}
.map-tools button span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.terrain-status {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 73px;
  padding: 6px 10px;
  border: 1px solid #c9d6ba;
  border-radius: 7px;
  background: #fcfdf6ee;
  color: #3d5b46;
  font-size: 12px;
  pointer-events: none;
}
.region-hover {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  padding: 9px 14px;
  border: 1px solid #cba467;
  border-radius: 9px;
  box-shadow: 0 5px 18px #43331522;
  background: #fffcf2;
  color: #65451e;
  pointer-events: none;
  white-space: nowrap;
}
.region-hover span {display: block; font-size: 12px; margin-bottom: 2px; color: #766144;}
.region-hover strong {font-size: 15px;}
.region-hover em {display: block; margin-top: 6px; font-size: 12px; font-style: normal; color: #294971; white-space: pre-line; line-height: 1.6;}
.region-hover em[hidden] {display: none;}
.region-hover[hidden] {display: none;}
.map-gesture-hint {
  position: absolute;
  top: auto;
  left: 25px;
  right: 85px;
  width: fit-content;
  max-width: calc(100% - 110px);
  border-radius: 6px;
  padding: 6px 9px;
  background: #fcfdf9;
  color: #536e60;
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
  bottom: 43px;
}
.map-caption {
  position: absolute;
  bottom: 108px;
  left: 28px;
  pointer-events: none;
  padding: 20px 22px;
  border-radius: 12px;
  background: #fcfdf9;
  box-shadow: 0 8px 28px #263d2410;
  max-width: calc(100% - 55px);
  border: 1px solid #d8e2cf;
}
.coverage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 24px;
}
.coverage-table th {
  padding: 9px 12px;
  border-bottom: 1px solid #d4ddd2;
  text-align: right;
}
.coverage-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #d4ddd2;
  text-align: right;
}
.coverage-table th:first-child {
  text-align: left;
}
.coverage-table thead {
  background: #edf2e9;
  color: #315247;
}
.record-review {
  font-size: 13px;
  margin: 14px 0;
}
.record-review p {
  font-size: 12px;
}
.coverage-table-wrap {
  overflow-x: auto;
}
.colocated {
  margin: 12px 0;
  padding: 10px;
  background: #edf2f7;
  border-radius: 8px;
}
.colocated p {
  margin: 0 0 7px;
  color: #3c5368;
  font-size: 12px;
}
.colocated button {
  display: block;
  width: 100%;
  padding: 8px;
  margin: 4px 0;
  border: 1px solid #7b91a8;
  border-radius: 5px;
  background: #fff;
  color: #29476a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.colocated button[aria-pressed=true] {
  background: #365b86;
  color: #fff;
}
#city-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cbd7c6;
  border-radius: 8px;
  background: #edf2e7;
  color: #315247;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#selected-city-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#regions-dialog[open] {
  display: flex;
  flex-direction: column;
  width: min(660px,calc(100% - 24px));
  max-height: 85dvh;
  overflow: hidden;
}
#regions-dialog .dialog-header {
  flex-shrink: 0;
  gap: 16px;
}
#regions-help {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}
.region-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  flex-shrink: 0;
  border-bottom: 1px solid #d4ddd2;
}
.region-actions button {
  font-size: 14px;
  min-height: 36px;
}
#regions-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.region-options {
  overflow-y: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  padding: 16px 24px;
  overscroll-behavior: contain;
}
.region-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #d4ddd2;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
}
.region-options label:has(input:checked) {
  background: #e7eee1;
  border-color: #83a48c;
  color: #244f3b;
}
.region-options input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: #326a54;
  margin: 0;
}
.region-options small {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.region-dialog-footer {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  border-top: 1px solid #d4ddd2;
  background: #fcfcf8;
}
.region-dialog-footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.region-dialog-footer>div {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.region-dialog-footer button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 14px;
}
.region-apply {
  background: #326a54;
  color: white;
  font-weight: 600;
}
.region-apply:disabled {
  background: #d9e0d9;
  color: #536158;
  cursor: not-allowed;
}

/* Atlas navigation and landscape controls. */
.map-region-row {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 100%;
}
.region-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 78px;
  overflow: auto;
  pointer-events: auto;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #b5c9b6;
  background: #f7faed;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #315847;
}
.region-chip span {
  font-size: 17px;
  line-height: 1;
}
.region-chip:hover {
  background: #e7efd9;
}
.region-chip-all {
  cursor: default;
}
.jurisdiction-open {
  pointer-events: auto;
  flex-shrink: 0;
  border: 1px solid #a7bad4;
  border-radius: 20px;
  padding: 8px 12px;
  background: #f4f8ff;
  color: #294971;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.jurisdiction-open:hover {background: #e6effc;}
#jurisdiction-dialog[open] {display: flex; flex-direction: column; overflow: hidden;}
#jurisdiction-dialog .dialog-header {flex-shrink: 0;}
#jurisdiction-title {word-break: keep-all;}
.jurisdiction-help {padding: 0 28px; font-size: 13px; line-height: 1.8; color: var(--muted);}
.jurisdiction-list {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 10px 28px 28px; min-height: 0; overflow: auto;}
.jurisdiction-card {text-align: left; padding: 17px; border: 1px solid #bed0e7; border-radius: 12px; background: #f5f8fd; color: #294971;}
.jurisdiction-card:hover {background: #e8f0fc; border-color: #456caa;}
.jurisdiction-card strong {display: block; font-size: 15px; margin-top: 8px; line-height: 1.6; word-break: keep-all;}
.jurisdiction-card span,.jurisdiction-card small {font-size: 12px;}
.jurisdiction-card p {font-size: 14px; margin: 5px 0 12px;}
.jurisdiction-badge,.jurisdiction-city-tags span {display: inline-block; font-size: 12px; border-radius: 6px; padding: 5px 8px; background: #e9f0fa; color: #294971;}
.jurisdiction-city-tags {display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0;}
.jurisdiction-note {margin: 12px 0; padding: 12px; border: 1px solid #bed0e7; border-radius: 9px; background: #f1f6fd; color: #294971; font-size: 13px;}
.jurisdiction-note .text-button {color: #294971;}
.jurisdiction-actions {display: grid; gap: 6px;}
.jurisdiction-actions .detail-view {margin: 0; width: 100%;}
.jurisdiction-actions .detail-view:last-child {background: #365b86; color: #fff; border-color: #365b86;}
.map-shell:has(.selection:not([hidden])) .bookmarks {
  display: none;
}
.appearance-menu {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 84px;
  font-size: 12px;
  color: #345647;
}
.appearance-menu summary {
  cursor: pointer;
  border: 1px solid #cfdbcb;
  background: #fcfdf6;
  border-radius: 9px;
  padding: 10px 14px;
  box-shadow: 0 3px 14px #183c2410;
}
.appearance-menu>div {
  position: absolute;
  right: 0;
  top: 48px;
  width: 244px;
  max-width: calc(100vw - 90px);
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #c5d6bd;
  border-radius: 12px;
  padding: 15px;
  background: #fcfdf6;
  box-shadow: 0 8px 30px #24483222;
}
.appearance-menu label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 13px;
}
.appearance-menu input {
  width: 16px;
  height: 16px;
  accent-color: #346f52;
}
.appearance-menu select {
  max-width: 112px;
  font: inherit;
  color: #294e3e;
  background: #fffef6;
  border: 1px solid #b8c9b5;
  border-radius: 6px;
  padding: 5px;
}
.appearance-menu .landmark-scale-control,
.appearance-menu .terrain-scale-control {
  justify-content: space-between;
}
.appearance-menu button {
  font-size: 13px;
  padding: 12px 0 8px;
  color: #245f47;
  border-top: 1px solid #d6dfcc;
  margin-top: 8px;
  width: 100%;
  text-align: left;
}
.appearance-menu p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 9px 0 0;
}
.appearance-menu summary:focus-visible {
  outline: 3px solid #176a55;
  outline-offset: 3px;
}

.landmark-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  padding: 8px 22px 24px;
  overflow-y: auto;
  max-height: 62vh;
}
.landmark-card {
  text-align: left;
  border: 1px solid #d5dfcb;
  border-radius: 12px;
  overflow: hidden;
  background: #fafcf4;
  padding: 0 0 16px;
  color: #274b3c;
}
.landmark-card:hover {
  border-color: #538967;
  background: #f2f7e9;
}
.landmark-thumb {
  height: 165px;
  background: #eaf0e1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landmark-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.landmark-card>span,.landmark-card>strong,.landmark-card>small,.landmark-card>em {
  display: block;
  padding: 0 15px;
}
.landmark-card>span {
  margin-top: 12px;
  font-size: 12px;
  color: #586c58;
}
.landmark-card>strong {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
}
.landmark-card>small {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.landmark-card>em {
  margin-top: 12px;
  font-size: 12px;
  font-style: normal;
  color: #286b4c;
}
.landmark-preview {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #eaf0e1;
  border-radius: 9px;
}
.landmark-help {
  padding: 0 24px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
#landmarks-dialog {
  max-width: 740px;
}
#landmark-count {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 7px 0 0;
}
.bookmarks .landmark-launch {
  color: #76512d;
  border-left: 1px solid #d9dfce;
  border-radius: 0;
  margin-left: 5px;
  padding-left: 14px;
}

@media(min-width:1500px) {
  .workspace {
    grid-template-columns: 370px minmax(0,1fr);
  }
  .side-heading {
    padding-top: 32px;
  }
  .filters {
    padding-bottom: 8px;
  }
  .kind-grid {
    gap: 11px 15px;
  }
  .school-row {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .search-box {
    margin-bottom: 27px;
  }
  .map-caption {
    left: 40px;
    padding: 26px 30px;
  }
  .map-caption h2 {
    font-size: 28px;
  }
}

@media(max-width:1050px) {
  .masthead {
    padding: 0 22px;
  }
  .map-top {
    left: 16px;
    top: 16px;
  }
  .bookmarks button {
    padding: 8px;
  }
  .map-tools {
    right: 15px;
    top: 16px;
  }
  .selection {
    right: 74px;
    width: 265px;
  }
  .map-caption {
    left: 18px;
    padding: 16px;
  }
  .map-caption h2 {
    font-size: 19px;
  }
  .map-caption p {
    font-size: 12px;
  }
  .map-gesture-hint {
    left: 17px;
    right: 75px;
    font-size: 12px;
    max-width: calc(100% - 92px);
  }
  .workspace {
    grid-template-columns: 330px minmax(0,1fr);
  }
}

@media(max-height:680px) {
  .sidebar {
    overflow-y: auto;
  }
  .result-list {
    max-height: 35dvh;
  }
  .sidebar-footer {
    flex-shrink: 0;
  }
  .side-heading {
    padding-top: 16px;
    padding-bottom: 13px;
  }
  .search-box {
    margin-bottom: 15px;
  }
  .result-heading {
    padding-top: 11px;
  }
}

@media(min-width:701px) and (max-width:1050px) {
  .selection {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 43px;
    width: auto;
    max-height: 47%;
    padding: 18px;
  }
}

@media(max-width:700px) {
  .landmark-list {
    grid-template-columns: 1fr;
    padding: 8px 14px 18px;
    max-height: 59vh;
  }
  .landmark-help {
    padding: 0 18px;
  }
  .landmark-thumb {
    height: 150px;
  }
  .appearance-menu {
    top: 12px;
    right: 64px;
  }
  .appearance-menu summary {
    padding: 10px;
  }
  .map-top {
    right: 64px;
    left: 12px;
    top: 12px;
    display: block;
  }
  .map-region-row {
    padding-right: 85px;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .jurisdiction-open {padding: 6px 10px; margin-top: 3px;}
  .jurisdiction-help {padding: 0 18px;}
  .jurisdiction-list {grid-template-columns: 1fr; padding: 8px 18px 18px;}
  .selection[data-view="jurisdiction"] {max-height: 35%; bottom: 48px;}
  .region-chips {
    max-height: 42px;
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .region-chip {
    padding: 5px 10px;
    white-space: nowrap;
  }
  .map-caption {
    padding: 15px 17px;
    left: 12px;
    max-width: calc(100% - 24px);
  }
  .map-caption .eyebrow {
    letter-spacing: .6px;
  }
  .map-caption h2 {
    font-size: 18px;
  }
  .map-caption p {
    max-width: 34ch;
    line-height: 1.65;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .masthead {
    height: 74px;
    padding: 0 17px;
  }
  .brandmark {
    width: 35px;
    height: 36px;
    font-size: 30px;
  }
  .brand {
    gap: 10px;
  }
  .header-right {
    gap: 8px;
  }
  .city-badge {
    display: none;
  }
  .quiet-button {
    white-space: nowrap;
    font-size: 12px;
  }
  .map-shell {
    height: 100%;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-only {
    display: block;
  }

  .map-button {
    pointer-events: auto;
    background: #fcfdf9ef;
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 14px #233d3812;
  }
  .map-tools {
    right: 10px;
    top: 12px;
    padding: 3px;
  }

  .selection h3 {
    margin: 8px 0;
    font-size: 18px;
  }
  .selection dl {
    gap: 7px;
    margin: 12px 0;
  }
  .selection p {
    margin: 8px 0;
  }
  .dialog-header {
    padding: 19px;
  }
  .dialog-body {
    padding: 10px 19px 24px;
  }
  .brand strong {
    font-size: 17px;
  }
  .workspace {
    height: calc(100dvh - 74px);
    display: block;
    min-height: 0;
  }
  .sidebar {
    position: absolute;
    top: 74px;
    bottom: 0;
    left: 0;
    width: min(370px,96vw);
    transform: translateX(-101%);
    transition: transform .2s;
    box-shadow: 10px 0 35px #233d3820;
    z-index: 8;
  }
  .side-heading {
    padding-top: 18px;
    padding: 16px 18px 12px;
  }
  .filters {
    padding: 0 18px;
  }
  .region-picker {
    margin-left: 18px;
    margin-right: 18px;
  }
  .search-box {
    margin-left: 18px;
    margin-right: 18px;
    margin-bottom: 14px;
  }
  .kind-grid {
    gap: 7px 10px;
  }
  .bookmarks {
    width: max-content;
    max-width: 100%;
    padding: 3px;
    gap: 1px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .bookmarks button {
    padding: 7px 6px;
    font-size: 12px;
    min-height: 36px;
  }

  .map-gesture-hint {
    display: none;
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 3px 6px;
    font-size: 12px;
  }
  .brand small {
    letter-spacing: .3px;
  }

  .legend {
    font-size: 12px;
    gap: 8px;
  }
  .map-notice {
    bottom: 10px;
    font-size: 12px;
    max-width: 72%;
  }
  .map-tools button span {
    font-size: 12px;
  }
  .map-tools button {
    width: 42px;
    font-size: 16px;
  }
  .selection {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 100px;
    width: auto;
    max-height: 55%;
    padding: 18px;
  }
  .source-item dl {
    grid-template-columns: 112px minmax(0,1fr);
  }
  .region-options {
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 12px;
    gap: 6px;
  }
  .region-options label {
    gap: 6px;
    padding: 8px 6px;
  }
  .region-actions {
    padding: 8px 14px;
    gap: 14px;
  }
  .region-dialog-footer {
    padding: 12px 14px;
    flex-wrap: wrap;
  }
  .region-dialog-footer>div {
    margin-left: auto;
  }
  #regions-dialog .dialog-header {
    padding: 17px;
  }
  #regions-count {
    font-size: 12px;
  }
}

@media(pointer:coarse) {
  .mouse-gesture {
    display: none;
  }
  .touch-gesture {
    display: inline;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important;
  }
}
