:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #eef3f4;
  --text: #142126;
  --muted: #5d6b73;
  --line: #dce4e8;
  --accent: #0f5c73;
  --accent-soft: #dff1f7;
  --shadow: 0 12px 32px rgba(13, 37, 47, 0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

code {
  font-family: Consolas, Monaco, monospace;
  background: #f1f4f5;
  padding: 2px 6px;
  border-radius: 8px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.hero {
  background: linear-gradient(180deg, #eaf4f7 0%, #f5f7f8 100%);
  border-bottom: 1px solid var(--line);
}

.hero__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 48px 0 36px;
}

.eyebrow,
.section-kicker,
.card-state {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero__text {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero__meta {
  display: grid;
  gap: 12px;
}

.meta-card {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 92, 115, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.meta-card strong,
.meta-card span {
  display: block;
}

.meta-card span {
  margin-top: 4px;
  color: var(--muted);
}

.jumpbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 248, 0.82);
  border-bottom: 1px solid var(--line);
}

.jumpbar__inner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
}

.jumpbar__label {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
}

.jumpbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jumpbar__links a,
.city-links a,
.anchor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
}

.jumpbar__links a:hover,
.city-links a:hover,
.anchor-link:hover {
  border-color: rgba(15, 92, 115, 0.24);
  background: #f9fbfc;
}

.page {
  padding: 28px 0 72px;
}

.controls,
.guide details,
.state-section,
.city-section,
.school-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.controls,
.guide details,
.state-section,
.city-section,
.school-card {
  border-radius: var(--radius-lg);
}

.controls {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.search-box input,
.filters select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfc;
  border-radius: 14px;
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
  color: var(--text);
}

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

.filters label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

.guide {
  margin-bottom: 18px;
}

.guide details {
  padding: 18px;
}

.guide summary {
  cursor: pointer;
  font-weight: 600;
}

.guide__content {
  margin-top: 14px;
  color: var(--muted);
}

.guide__content ol {
  margin: 0;
  padding-left: 20px;
}

.state-section {
  padding: 22px;
  margin-bottom: 20px;
}

.section-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-heading h2,
.city-header h3,
.school-card h4 {
  margin: 0;
}

.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-section {
  padding: 18px;
  margin-top: 18px;
  background: #fcfdfd;
}

.city-header {
  margin-bottom: 16px;
}

.city-header p,
.school-description,
.footer,
.info-list {
  color: var(--muted);
}

.city-header p {
  margin: 6px 0 0;
}

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

.school-card {
  padding: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.school-card:hover {
  transform: translateY(-2px);
}

.school-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.school-card h4 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.school-description {
  margin: 0 0 14px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.info-list strong {
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

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

@media (max-width: 980px) {
  .hero__content,
  .controls,
  .school-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero__content {
    padding: 34px 0 28px;
  }

  .jumpbar__inner,
  .section-heading,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .state-section,
  .city-section,
  .school-card,
  .controls,
  .guide details {
    border-radius: 18px;
  }

  .jumpbar__links,
  .city-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .jumpbar__links a,
  .city-links a {
    white-space: nowrap;
  }

  .school-card__top {
    flex-direction: column;
    align-items: flex-start;
  }
}
