.search-hero {
  padding-block: clamp(2.6rem, 7vw, 5.4rem);
}
.search-hero::after {
  position: absolute;
  z-index: -1;
  inset: -12rem -10rem auto auto;
  width: clamp(25rem, 78vw, 53rem);
  aspect-ratio: 1;
  border: 1px solid rgb(234 220 255 / .22);
  border-radius: 50%;
  box-shadow: 0 0 0 3.4rem rgb(234 220 255 / .06), 0 0 0 7.5rem rgb(234 220 255 / .04), 0 0 0 12.5rem rgb(234 220 255 / .03);
  pointer-events: none;
  content: "";
}
.search-hero > .shell > p:not(.eyebrow) {
  color: #eeebfc;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.search-form {
  max-width: 45rem;
  margin-top: 1.9rem;
}
.search-form > label {
  display: block;
  margin-bottom: .42rem;
  font-weight: 750;
}
.search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: .65rem;
}
.search-input-wrap {
  display: flex;
  min-height: 56px;
  gap: .52rem;
  align-items: center;
  padding: .3rem .62rem .3rem .88rem;
  border: 1px solid #dfd8ee;
  border-radius: .48rem;
  background: #fff;
  color: var(--navy);
}
.search-input-wrap:focus-within { outline: 3px solid #ffd38e; outline-offset: 3px; }
.search-input-wrap > svg { flex: 0 0 auto; }
.search-input-wrap > input {
  min-width: 0;
  flex: 1;
  padding: .56rem 0;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--navy);
  background: transparent;
}
.search-input-wrap > input::-webkit-search-cancel-button { display: none; }
.search-clear,
.search-shortcuts > button,
.search-filters > button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: .36rem .7rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--navy);
  background: var(--white);
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
}
.search-clear { min-height: 37px; }
.search-clear:hover,
.search-filters > button:hover { background: #f0eaf7; }
.search-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-top: 1rem;
}
.search-shortcuts > span { margin-right: .15rem; color: #eeebfc; font-weight: 700; font-size: .88rem; }
.search-shortcuts > button {
  min-height: 38px;
  border-color: rgb(255 255 255 / .32);
  color: #fff;
  background: rgb(255 255 255 / .09);
}
.search-shortcuts > button:hover { background: rgb(255 255 255 / .21); }
.search-content { min-height: 42vh; }
.search-section-header {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.3rem;
}
.search-section-header h2 {
  font: 400 clamp(1.85rem, 4vw, 3rem)/1.1 Georgia, serif;
  letter-spacing: -.035em;
}
#school-search-status { min-height: 1.5em; margin-top: .46rem; color: var(--muted); overflow-wrap: anywhere; }
.search-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.search-filters > button[aria-pressed="true"] { border-color: var(--navy); color: #fff; background: var(--navy); }
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .82rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.search-result {
  height: 100%;
  padding: 1.12rem;
  transition: border-color .18s ease, transform .18s ease;
}
.search-result:hover, .search-result:focus-within { transform: translateY(-2px); border-color: #b1a7cb; }
.search-result .search-category {
  display: block;
  color: var(--red-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.search-result h3 { margin: .28rem 0 .45rem; font-size: 1.1rem; }
.search-result a { color: var(--navy); text-decoration-thickness: .08em; text-underline-offset: .18em; }
.search-result p, .search-empty p { color: var(--muted); font-size: .94rem; }
.search-empty { max-width: 38rem; }
.search-empty p { margin-top: .4rem; }
.search-empty a { display: inline-block; margin-top: .65rem; }
@media (max-width: 58rem) { .search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) {
  .search-results-grid { grid-template-columns: minmax(0, 1fr); }
  .search-controls { gap: .4rem; }
  .search-controls > button { padding-inline: .68rem; }
  .search-input-wrap { padding-left: .62rem; gap: .38rem; }
  .search-shortcuts > span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .search-result { transition: none; } .search-result:hover, .search-result:focus-within { transform: none; } }
