@font-face {
  font-family: "DM Sans";
  src: url('/assets/dm-sans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --paper: #f5f7fc;
  --ink: #1d2b4b;
  --muted: #66738b;
  --blue: #3859d9;
  --blue-dark: #2947b4;
  --tint: #eaf0ff;
  --line: #e2e7f1;
  --yellow: #f4ca61;
  --white: #fff;
  font-family: "DM Sans",sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,input,select {
  font: inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color: transparent;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

a {
  color: var(--blue);
}

button {
  color: inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #8d9ff2;
  outline-offset: 4px;
}

button {
  border: 0;
}

svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none!important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  height: 85px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1220px;
  padding: 0 30px;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  border-radius: 11px;
  width: 37px;
  height: 39px;
  margin-right: 10px;
  transform: rotate(-5deg);
}

.brand-mark .icon {
  width: 25px;
  height: 25px;
  transform: rotate(5deg);
}

.brand-period {
  color: var(--blue);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 33px;
}

.county {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.county .icon {
  width: 17px;
  height: 17px;
}

.text-button {
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  padding: 6px 0;
  text-decoration: none;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-right .text-button {
  color: var(--ink);
}

.header-right .text-button .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.page {
  max-width: 1220px;
  margin: auto;
  padding: 0 30px;
}

.intro {
  padding: 40px 0 32px;
}

.local-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 7px;
}

.local-label>span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

h1 {
  font-size: 46px;
  line-height: 1.14;
  letter-spacing: -2px;
  font-weight: 650;
  margin: 16px 0;
}

.intro-copy>p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.primary-button,.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 9px;
  min-height: 45px;
  padding: 11px 18px;
}

.primary-button {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 3px 5px #3859d91a;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.secondary-button {
  background: white;
  border: 1px solid #d5ddec;
  color: var(--blue);
}

.secondary-button:hover {
  background: var(--tint);
}

.finder {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: visible;
}

.location-description {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.location-description strong {
  font-size: 12px;
  font-weight: 600;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  flex: 1;
  height: 47px;
  min-width: 150px;
  color: var(--muted);
}

.search-field:focus-within {
  border-color: var(--blue);
}

.search-field input {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  width: 100%;
  height: 100%;
  font-size: 12px;
  color: var(--ink);
}

.search-field input::placeholder {
  color: #77839a;
}

.search-field input:focus-visible {
  outline: none;
}

.select-field {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  min-height: 47px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}

select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px 7px 0;
  max-width: 100%;
}

.grade-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 20px 18px;
}

.grade-filter {
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  padding: 8px 15px;
}

.grade-filter.active {
  background: var(--tint);
  color: var(--blue);
  font-weight: 650;
}

.grade-filter:hover {
  background: #f0f3fa;
}

.grade-filter.active:hover {
  background: #dfe7ff;
}

.notice {
  font-size: 12px;
  padding: 13px 20px;
  background: #fff5d8;
  color: #73581d;
  line-height: 1.6;
  border-bottom: 1px solid #f3e5ba;
}

.notice.success {
  background: #eaf5f0;
  color: #28654f;
  border-color: #d1e8dd;
}

.notice a {
  color: inherit;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 28px;
  margin-top: 31px;
  align-items: start;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  min-height: 42px;
}

.results-header h2 {
  font-size: 19px;
  letter-spacing: -.5px;
  font-weight: 650;
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.results-header h2 span {
  font-size: 11px;
  letter-spacing: 0;
  background: #e7ecf8;
  color: #526381;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
}

.results-header h2 span:empty {
  display: none;
}

.results-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.sort-label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.sort-label .icon {
  width: 13px;
  height: 13px;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.school-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 0;
  min-height: 249px;
  transition: border-color .15s;
}

.school-card:hover {
  border-color: #b5c2ec;
}

.school-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.school-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #526cc7;
  background: #eef2ff;
}

.school-symbol .icon {
  width: 22px;
  height: 22px;
}

.school-number {
  position: absolute;
  bottom: -3px;
  right: -5px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #dce3f7;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #526cc7;
}

.state-grade {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
}

.grade-badge {
  width: 29px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e8f4ee;
  color: #357657;
  font-size: 18px;
  font-weight: 650;
}

.grade-badge.grade-b {
  background: #edf1ff;
  color: #526cbd;
}

.grade-badge.grade-c {
  background: #fff4dc;
  color: #94731c;
}

.grade-badge.grade-d,.grade-badge.grade-f {
  background: #fcece8;
  color: #a55842;
}

.grade-badge.grade-na {
  background: #f0f2f6;
  color: #7d879b;
  font-size: 16px;
}

.school-card h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.25px;
  margin: 17px 0 7px;
}

.school-address {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0 0 14px;
}

.school-address .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.school-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}

.school-tag {
  font-size: 9px;
  color: #5e6c83;
  background: #f3f5f9;
  border-radius: 4px;
  padding: 4px 6px;
}

.card-bottom {
  margin-top: auto;
  border-top: 1px solid #edf0f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  gap: 8px;
}

.distance {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
}

.distance span {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
}

.card-bottom .text-button {
  font-size: 10px;
  gap: 4px;
}

.card-bottom .icon {
  width: 14px;
  height: 14px;
}

.sidebar {
  padding-top: 1px;
}

.neighborhood-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 19px 19px 12px;
}

.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-heading h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.2px;
  margin: 0;
}

.map-heading>span {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 5px;
}

.neighborhood-card>p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}

.neighborhood-plot {
  position: relative;
  height: 258px;
  margin: 14px -5px 8px;
  background: radial-gradient(circle,#f1f4ff 0, #f8faff 64%,white 65%);
  isolation: isolate;
}

.plot-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border: 1px solid #e1e7f5;
  border-radius: 50%;
  aspect-ratio: 1;
}

.outer-ring {
  width: 88%;
}

.middle-ring {
  width: 59%;
}

.inner-ring {
  width: 29%;
}

.crosshair {
  position: absolute;
  z-index: -1;
}

.horizontal {
  height: 1px;
  background: #eaf0fa;
  left: 6%;
  right: 6%;
  top: 50%;
}

.vertical {
  width: 1px;
  background: #eaf0fa;
  top: 4%;
  bottom: 4%;
  left: 50%;
}

.north {
  position: absolute;
  top: 0;
  right: 4px;
  color: #8c98b1;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.north>span {
  font-size: 15px;
}

.center-point {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: var(--yellow);
  color: #755819;
  width: 33px;
  height: 33px;
  border: 4px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px #f4ca6126;
  z-index: 2;
}

.center-point .icon {
  width: 15px;
  height: 15px;
}

.map-pin {
  position: absolute;
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  background: var(--blue);
  border: 2px solid white;
  color: #fff;
  font-size: 9px;
  font-weight: 650;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  box-shadow: 0 2px 4px #23428826;
  z-index: 3;
}

.map-pin:hover,.map-pin:focus-visible {
  background: var(--blue-dark);
  z-index: 4;
  box-shadow: 0 0 0 4px #3859d922;
}

.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
}

.map-legend>span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.legend-school {
  background: var(--blue);
}

.legend-center {
  background: var(--yellow);
}

.neighborhood-card>p.map-note {
  text-align: center;
  font-size: 9px;
  margin-top: 12px;
  line-height: 1.5;
}

.good-to-know {
  margin-top: 17px;
  background: #edf1fa;
  border-radius: 12px;
  padding: 21px 22px;
}

.book-icon {
  color: #6a7faa;
  display: inline-flex;
  margin-bottom: 8px;
}

.good-to-know h2 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -.25px;
  margin: 0 0 9px;
  max-width: 205px;
}

.good-to-know p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 13px;
}

.good-to-know .text-button {
  font-size: 11px;
}

.good-to-know .icon {
  width: 16px;
  height: 16px;
}

.distance-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin: 21px 0;
}

.distance-note .icon {
  width: 13px;
  height: 13px;
}

.load-more {
  display: flex;
  margin: 22px auto 0;
  min-width: 200px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 26px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}

.footer-brand {
  font-weight: 550;
  color: #52617c;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

.site-footer a {
  font-size: 10px;
}

.results-message {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 35px 25px;
  line-height: 1.7;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.results-message h3 {
  color: var(--ink);
  font-size: 18px;
  margin: 8px 0;
}

.results-message p {
  max-width: 400px;
  margin: 10px auto 18px;
}

.results-message .icon {
  color: var(--blue);
  width: 28px;
  height: 28px;
}

.skeleton {
  height: 250px;
  background: linear-gradient(100deg,#fff 30%,#eef2fa 50%,#fff 70%);
  background-size: 250% 100%;
  animation: shimmer 1.6s ease infinite;
  border: 1px solid var(--line);
  border-radius: 12px;
}

@keyframes shimmer {
  to {
    background-position: -180% 0;
  }
}

dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 25px 100px #1d2b4b26;
  padding: 27px;
  width: calc(100% - 32px);
  max-width: 500px;
  max-height: 88dvh;
  color: var(--ink);
}

dialog::backdrop {
  background: #17244966;
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.dialog-header h2 {
  font-size: 21px;
  letter-spacing: -.5px;
  font-weight: 650;
  margin: 0;
}

.icon-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #f1f4fa;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

dialog>p,.info-content p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

dialog>.primary-button {
  width: 100%;
  margin-top: 10px;
}

.coordinate-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.coordinate-fields label {
  font-size: 12px;
  color: var(--muted);
}

.coordinate-fields input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 7px;
  color: var(--ink);
}

#coordinates-form .secondary-button {
  width: 100%;
}

.demo-button {
  width: 100%;
  margin-top: 15px;
}

.info-content h3 {
  font-size: 14px;
  margin: 23px 0 6px;
}

.info-content p {
  margin: 0;
}

.info-content a {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
}

.school-dialog {
  max-width: 620px;
}

.detail-eyebrow {
  font-size: 12px;
  color: var(--muted);
}

#school-detail h2 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -.7px;
  margin: 5px 0 14px;
  font-weight: 650;
}

#school-detail .school-tags {
  margin-top: 16px;
}

.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 21px;
}

.detail-section h3 {
  font-size: 15px;
  letter-spacing: -.2px;
  font-weight: 650;
  margin: 0 0 14px;
}

.detail-section p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.academic-table th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.academic-table td,.academic-table th {
  border-bottom: 1px solid #edf0f6;
  padding: 12px 6px;
}

.academic-table td:first-child,.academic-table th:first-child {
  padding-left: 0;
}

.gain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gain-grid>div {
  background: var(--paper);
  border-radius: 9px;
  padding: 13px;
}

.gain-grid strong {
  display: block;
  font-size: 23px;
  font-weight: 600;
}

.gain-grid span {
  font-size: 10px;
  color: var(--muted);
}

.source-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
}

.detail-warning {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  background: #f5f7fc;
  padding: 14px;
  border-radius: 9px;
  margin-top: 24px;
}

.campus-detail {
  margin: 10px 0;
}

.campus-detail strong {
  font-size: 12px;
}

.campus-detail p {
  margin: 4px 0;
}

.noscript {
  padding: 30px;
  text-align: center;
}

@media(min-width:1450px) {
  .page,.header-inner {
    max-width: 1280px;
  }
  .intro {
    grid-template-columns: 1fr 400px;
  }
  .results-layout {
    grid-template-columns: minmax(0,1fr) 330px;
    gap: 30px;
  }
  .neighborhood-plot {
    height: 278px;
  }
  .school-card {
    min-height: 256px;
  }
}

@media(max-width:1050px) {
  h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .intro-copy>p {
    font-size: 13px;
  }
  .desktop-break {
    display: none;
  }
  .results-layout {
    grid-template-columns: minmax(0,1fr) 270px;
    gap: 20px;
  }
  .school-card {
    padding: 16px 14px 0;
  }
  .school-card h3 {
    font-size: 14px;
  }
  .state-grade {
    font-size: 8px;
    gap: 5px;
  }
  .sort-label {
    display: none;
  }
  .neighborhood-card {
    padding: 17px 14px 12px;
  }
  .neighborhood-plot {
    height: 226px;
  }
  .select-field {
    gap: 7px;
    padding: 0 9px;
  }
  .select-field>span {
    display: none;
  }
  .site-footer p {
    order: 3;
    flex-basis: 100%;
  }
}

@media(max-width:800px) {
  .intro {
    padding: 32px 0;
  }
  h1 {
    font-size: 33px;
    letter-spacing: -1.2px;
  }
  .intro-copy>p {
    font-size: 12px;
  }
  .local-label {
    font-size: 10px;
  }
  .results-layout {
    grid-template-columns: 1fr 235px;
    gap: 18px;
  }
  .school-grid {
    grid-template-columns: 1fr;
  }
  .neighborhood-plot {
    height: 195px;
  }
  .map-legend {
    gap: 14px;
    font-size: 9px;
  }
  .map-heading h2 {
    font-size: 13px;
  }
  .map-heading>span {
    font-size: 8px;
  }
  .results-header h2 {
    font-size: 17px;
  }
  .good-to-know {
    padding: 18px;
  }
  .results-header {
    margin-bottom: 15px;
  }
  .school-card {
    min-height: 235px;
  }
}

@media(max-width:620px) {
  .site-header {
    height: 71px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    width: 33px;
    height: 35px;
  }
  .header-right {
    gap: 0;
  }
  .county {
    display: none;
  }
  .header-right .text-button {
    font-size: 11px;
  }
  .page {
    padding: 0 20px;
  }
  .intro {
    display: block;
    padding: 29px 0 25px;
  }
  .local-label {
    font-size: 10px;
  }
  h1 {
    font-size: 37px;
    line-height: 1.14;
    margin: 14px 0;
    letter-spacing: -1.5px;
  }
  .intro-copy>p {
    font-size: 13px;
    max-width: 330px;
  }
  .location-description {
    gap: 7px;
  }
  .location-description strong {
    font-size: 11px;
  }
  .search-field {
    grid-column: 1/-1;
    height: 45px;
  }
  .select-field {
    justify-content: space-between;
    padding: 0 10px;
    min-height: 41px;
    gap: 5px;
  }
  .select-field:first-of-type>span {
    display: inline;
  }
  select {
    font-size: 11px;
    max-width: 100%;
    padding-right: 5px;
  }
  .grade-filters {
    padding: 13px;
    gap: 3px;
    justify-content: space-between;
  }
  .grade-filter {
    font-size: 10px;
    padding: 8px;
  }
  .results-layout {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    gap: 24px;
  }
  .results {
    width: 100%;
  }
  .results-header {
    margin-bottom: 15px;
  }
  .results-header h2 {
    font-size: 19px;
  }
  .results-header p {
    font-size: 10px;
  }
  .sort-label {
    display: flex;
    font-size: 9px;
  }
  .school-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .school-card {
    padding: 19px 19px 0;
    min-height: 235px;
  }
  .school-card h3 {
    font-size: 16px;
    margin-top: 15px;
  }
  .school-address {
    font-size: 11px;
  }
  .state-grade {
    font-size: 10px;
    gap: 8px;
  }
  .school-tags {
    margin-bottom: 17px;
  }
  .school-tag {
    font-size: 10px;
  }
  .card-bottom .text-button {
    font-size: 11px;
  }
  .distance {
    font-size: 12px;
  }
  .card-bottom {
    min-height: 47px;
  }
  .sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .neighborhood-card {
    padding: 20px;
  }
  .neighborhood-plot {
    height: auto;
    aspect-ratio: 1.1;
    max-width: 360px;
    margin: 15px auto;
  }
  .map-heading h2 {
    font-size: 16px;
  }
  .map-heading>span {
    font-size: 10px;
  }
  .map-legend {
    font-size: 11px;
    gap: 25px;
  }
  .good-to-know {
    margin: 0;
    padding: 22px;
  }
  .good-to-know h2 {
    max-width: 100%;
    font-size: 16px;
  }
  .good-to-know p {
    font-size: 12px;
  }
  .site-footer {
    margin-top: 26px;
    padding-bottom: 25px;
  }
  .site-footer p {
    font-size: 10px;
  }
  .notice {
    padding: 12px 14px;
  }
  .dialog-header h2 {
    font-size: 19px;
  }
  dialog {
    padding: 22px;
  }
  .gain-grid {
    gap: 8px;
  }
  .academic-table {
    font-size: 11px;
  }
  .academic-table th {
    font-size: 9px;
  }
  .source-links {
    font-size: 10px;
  }
}

/* One search entry point for schools and nearby exploration. */
.filter-bar {
  display: block;
  margin: 22px 22px 0;
}

.search-composer {
  position: relative;
}

.search-composer .search-field {
  height: 60px;
  padding: 0 18px;
  border-color: #bfcbed;
  border-radius: 10px;
}

.search-composer .search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--tint);
}

.search-composer input {
  font-size: 16px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 5;
  background: white;
  border: 1px solid #cbd4e7;
  border-radius: 10px;
  box-shadow: 0 12px 32px #1d2b4b1f;
  padding: 8px;
}

.search-suggestions p {
  margin: 8px 10px;
  color: #52617c;
  font-size: 12px;
  line-height: 1.6;
}

#neighborhood-options {
  max-height: 248px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.area-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

.area-option:hover, .area-option[aria-selected="true"] {
  background: var(--tint);
  color: var(--blue-dark);
}

.area-option .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.area-action {
  margin-left: auto;
  color: #52617c;
  font-size: 12px;
}

#neighborhood-retry {
  padding: 12px;
}

.search-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  min-height: 44px;
}

.search-context .location-description {
  gap: 8px;
  padding: 0 10px;
  min-height: 44px;
  color: #52617c;
}

.search-context .location-description strong {
  font-size: 13px;
}

.search-context .has-location {
  background: var(--tint);
  color: var(--blue-dark);
  border-radius: 7px;
  padding-right: 0;
}

#countywide-button {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--blue-dark);
}

#countywide-button .icon {
  width: 16px;
  height: 16px;
}

.radius-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #52617c;
}

.radius-field select {
  min-height: 44px;
  font-size: 13px;
}

#locate-button {
  margin-left: auto;
  min-height: 44px;
}

.filter-options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 22px 18px;
}

.filter-options .grade-filters {
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.filter-options .grade-filter {
  min-height: 44px;
}

.more-filters {
  flex-shrink: 0;
  min-width: 115px;
}

.more-filters > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  list-style: none;
}

.more-filters > summary::-webkit-details-marker {
  display: none;
}

.more-filters > summary::after {
  content: '+';
  font-size: 18px;
}

.more-filters[open] > summary::after {
  content: '−';
}

.more-filters[open] {
  flex-basis: 100%;
  min-width: 0;
}

.more-filters .select-field {
  margin-top: 8px;
}

.more-filters .priorities {
  padding: 20px 0 0;
  border-bottom: 0;
}

.select-field {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 7px 12px;
  min-width: 0;
}

.select-field>span {
  display: block;
  font-size: 10px;
}

.select-field select {
  min-height: 28px;
  padding: 3px 0;
  width: 100%;
}

select:disabled {
  color: #6b7280;
  cursor: not-allowed;
}

.select-field:has(select:disabled) {
  background: #f3f5f9;
}

.scope-help {
  color: #52617c;
  font-size: 12px;
  line-height: 1.7;
  margin: 5px 32px 0;
  max-width: 80ch;
}

.sort-label {
  display: flex;
}

.comparison-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  background: #edf1fa;
  border: 1px solid #dce3f7;
  border-radius: 13px;
  padding: 18px 20px;
  margin-top: 20px;
}

.comparison-tray h2 {
  font-size: 15px;
  margin: 0 0 5px;
}

#compare-count {
  color: #52617c;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

.comparison-tray p {
  color: #52617c;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

#compare-selections {
  display: flex;
  flex: 1 1 280px;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#compare-selections:empty {
  display: none;
}

#compare-selections li {
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid #d5ddec;
  border-radius: 8px;
  padding: 3px 3px 3px 10px;
  font-size: 11px;
  max-width: 100%;
}

#compare-selections li span {
  overflow-wrap: anywhere;
}

#compare-selections .icon-button {
  background: transparent;
  min-width: 40px;
  height: 40px;
}

.compare-toggle {
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--blue);
  text-align: left;
  font-size: 11px;
  min-height: 44px;
  padding: 10px 0;
}

.compare-toggle[aria-pressed="true"] {
  color: #28654f;
  font-weight: 650;
}

.distance {
  line-height: 1.5;
}

.distance-note {
  text-align: center;
  line-height: 1.7;
}

.school-card,.results,.sidebar {
  min-width: 0;
}

.school-card h3,.campus-detail,.evidence-source,.zone-match {
  overflow-wrap: anywhere;
}

.countywide-map-note {
  background: #f5f7fc;
  border-radius: 10px;
  padding: 25px 18px;
  margin-top: 18px;
}

.countywide-map-note>.icon {
  color: var(--blue);
  width: 30px;
  height: 30px;
}

.countywide-map-note h3 {
  font-size: 15px;
  margin: 14px 0 10px;
}

.countywide-map-note p,.zoning-card p {
  color: #52617c;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 15px;
}

.zoning-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  margin-top: 17px;
}

.zoning-card h2 {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.zoning-card button {
  width: 100%;
  margin-top: 5px;
}

#exact-coordinates p {
  color: #52617c;
  font-size: 12px;
  line-height: 1.8;
}

#neighborhood-status:empty {
  display: none;
}

#exact-coordinates {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--blue);
  line-height: 1.8;
}

summary:focus-visible {
  outline: 3px solid #8d9ff2;
  outline-offset: 4px;
}

.exact-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #52617c;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.exact-confirm input {
  flex-shrink: 0;
  margin-top: 4px;
}

.compare-dialog {
  max-width: 1080px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.comparison-table caption {
  text-align: left;
  padding: 14px;
  color: #52617c;
  line-height: 1.7;
}

.comparison-table td,.comparison-table th {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 14px;
  vertical-align: top;
  min-width: 195px;
  max-width: 300px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.comparison-table thead th,.comparison-table tbody th {
  background: #f5f7fc;
}

.comparison-table th:first-child {
  min-width: 155px;
  width: 18%;
}

.comparison-table .text-button {
  text-align: left;
}

.compare-school-id {
  display: block;
  color: #52617c;
  font-weight: 400;
}

.comparison-table .school-tag {
  display: inline-block;
  margin: 0 3px 5px 0;
}

.comparison-table p,.evidence-source p {
  font-size: 11px;
  color: #52617c;
  line-height: 1.8;
}

.evidence-source {
  margin-top: 17px;
  font-size: 12px;
}

.zone-match {
  border-left: 3px solid #dce3f7;
  margin-top: 15px;
  padding-left: 14px;
  font-size: 13px;
}

.campus-detail {
  padding-bottom: 10px;
}

.campus-detail>a {
  font-size: 12px;
}

@media(max-width:1050px) {
  .comparison-tray>div {
    flex: 1 1 100%;
  }
  .sort-label {
    white-space: normal;
    text-align: right;
  }
}

@media(max-width:620px) {
  .filter-bar {
    margin: 14px 14px 0;
  }
  .search-composer .search-field {
    height: 56px;
    padding: 0 10px;
    gap: 8px;
  }
  .search-composer input {
    font-size: 16px;
  }
  .area-action {
    display: none;
  }
  .search-context {
    gap: 0 8px;
  }
  #locate-button {
    margin-left: 10px;
  }
  .scope-help {
    margin: 6px 24px 0;
    font-size: 11px;
  }
  .filter-options {
    padding: 12px 14px 14px;
    flex-wrap: wrap;
    gap: 0;
  }
  .more-filters > summary {
    justify-content: flex-start;
    padding-left: 8px;
  }
  .comparison-tray {
    padding: 16px;
    gap: 12px;
  }
  #compare-selections {
    flex-basis: 100%;
  }
  #compare-button {
    width: 100%;
  }
  .grade-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .zoning-card {
    margin: 0;
  }
  .sort-label {
    font-size: 10px;
  }
  .coordinate-fields {
    gap: 10px;
  }
  #results-heading {
    font-size: 18px;
  }
}

/* Shortlisting extends the existing local-school palette and typography.
   Evidence groups carry meaning; they are not ratings or decorative ranks. */
.shortlist-start { display: inline-flex; text-decoration: none; margin-top: 20px; }
.priorities { padding: 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.priorities-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.priorities-heading h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.5px; }
.priorities-heading p, .priority-help, .gain-preferences p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; max-width: 78ch; }
.priorities .priority-bands { padding: 0; margin: 0 0 22px; }
.priority-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.priority-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.priority-fields select, .priority-fields input { width: 100%; min-height: 46px; border: 1px solid #c7d0e2; border-radius: 8px; padding: 10px; background: white; color: var(--ink); }
.priority-help { margin-top: 12px; }
.gain-preferences { margin-top: 18px; font-size: 13px; }
.gain-preferences summary, .shortlist-method summary { cursor: pointer; color: var(--blue-dark); min-height: 28px; }
.gain-preferences p { margin: 8px 0 14px; }
.shortlist-summary { font-size: 13px; line-height: 1.6; color: var(--ink); }
.shortlist-method { margin: 12px 0 22px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.shortlist-method p { max-width: 78ch; }
.shortlist-group-heading { grid-column: 1/-1; margin: 12px 0 0; font-size: 17px; }
.shortlist-group-heading span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.shortlist-evidence { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; font-size: 12px; line-height: 1.6; }
.shortlist-evidence ul { padding-left: 17px; margin: 5px 0 10px; }
.shortlist-evidence strong { font-weight: 650; }
.match-label { display: inline-block; font-weight: 650; margin-bottom: 12px; color: #285c50; }
.match-needs_verification { color: #765306; }
.match-alternatives { color: #77504c; }
.match-explore { color: var(--muted); }
.verification-note { color: var(--muted); font-size: 11px; margin-bottom: 14px; }
@media(max-width:620px) {
  .priorities { padding: 20px 16px; }
  .priorities-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .priority-fields { grid-template-columns: 1fr; gap: 12px; }
  .shortlist-start { margin-top: 16px; }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}
