:root {
  color-scheme: light;
  --ink: #20343d;
  --muted: #5e6b72;
  --paper: #f7f4ed;
  --surface: #ffffff;
  --surface-soft: #fcfaf5;
  --line: #d8d1c5;
  --green: #226b68;
  --green-dark: #114f4d;
  --sage: #e4efea;
  --clay: #91452d;
  --blue: #315f87;
  --amber-soft: #fff1c7;
  --shadow: 0 12px 32px rgba(32, 52, 61, 0.075);
  --shadow-soft: 0 5px 18px rgba(32, 52, 61, 0.055);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.compare-open,
body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--green-dark);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
}

details[class] > summary {
  position: relative;
  padding-right: 42px;
  padding-inline-end: 42px;
  list-style: none;
}

details[class] > summary::-webkit-details-marker {
  display: none;
}

details[class] > summary::marker {
  content: "";
}

details[class] > summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  inset-inline-end: 16px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  opacity: 0.68;
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

details[class][open] > summary::after {
  transform: translateY(-50%) rotate(135deg);
}

details[class] > summary:hover::after {
  opacity: 1;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  padding: 30px clamp(18px, 5vw, 72px) 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 12%, rgba(228, 239, 234, 0.72), transparent 28rem),
    var(--surface-soft);
}

.title-block {
  width: min(1200px, 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(2.15rem, 4.15vw, 3.9rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.dataset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dataset-meta strong {
  color: var(--ink);
}

.page-content {
  display: grid;
  gap: 22px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 22px clamp(18px, 5vw, 72px) calc(52px + env(safe-area-inset-bottom));
}

.search-panel {
  display: grid;
  gap: 16px;
  padding: clamp(17px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-row {
  display: block;
}

.search-field {
  display: grid;
  gap: 7px;
}

.search-input-wrap {
  position: relative;
}

.search-field label {
  font-size: 1.05rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bdb5a8;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
}

#schoolSearch {
  min-height: 54px;
  padding-right: 54px;
  padding-left: 15px;
  font-size: 1.03rem;
}

#schoolSearch::-webkit-search-cancel-button {
  appearance: none;
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1;
  place-items: center;
  transform: translateY(-50%);
}

.clear-search:hover {
  background: #eee9df;
  color: var(--ink);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-details > summary {
  display: none;
}

.filter-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.filter-field {
  min-width: 0;
}

.reset-filters,
.compare-shortlist,
.clear-shortlist,
.card-detail-button,
.close-detail,
.pagination button {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 850;
}

.reset-filters {
  justify-self: stretch;
  white-space: nowrap;
}

.scope-note {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.project-disclaimer {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 2fr);
  gap: 12px 24px;
  align-items: center;
  padding: 14px clamp(17px, 3vw, 22px);
  border: 1px solid #d8bd73;
  border-radius: 14px;
  background: #fff8e6;
  color: #513f16;
}

.project-disclaimer-heading {
  display: grid;
  gap: 3px;
}

.project-disclaimer-kicker,
.project-disclaimer h2 {
  margin: 0;
}

.project-disclaimer-kicker {
  color: #74580f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.project-disclaimer h2 {
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.25;
}

.project-disclaimer-details {
  min-width: 0;
}

.project-disclaimer-details summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: #513f16;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  list-style: none;
}

.project-disclaimer-details summary::-webkit-details-marker {
  display: none;
}

.project-disclaimer-toggle {
  flex: 0 0 auto;
  color: #74580f;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.project-disclaimer-toggle::before {
  content: "Hide";
}

.project-disclaimer-details:not([open]) .project-disclaimer-toggle::before {
  content: "Read more";
}

.project-disclaimer-details > p {
  margin: 3px 0 2px;
  font-size: 0.88rem;
}

.results-section {
  display: grid;
  gap: 16px;
}

.shortlist-section {
  display: grid;
  gap: 16px;
  padding: clamp(17px, 3vw, 24px);
  border: 1px solid #b9cec7;
  border-radius: 14px;
  background: #eef5f1;
}

.shortlist-section .result-count {
  color: var(--green-dark);
}

.shortlist-count {
  font-weight: 900;
}

.shortlist-grid .school-card {
  border-color: #bfd2cc;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.result-count {
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.clear-shortlist {
  border-color: #bd7b68;
  color: #7b311f;
}

.shortlist-action-group {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.shortlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compare-shortlist {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #ffffff;
}

.compare-shortlist:disabled {
  border-color: #b8c5c0;
  background: #dce5e1;
  color: #66756f;
  cursor: not-allowed;
}

.shortlist-action-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

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

.school-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.campus-photo {
  min-width: 0;
  margin: 0;
}

.campus-photo-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e7ece8;
}

.campus-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.campus-photo-cover {
  object-fit: cover;
}

.campus-photo-contain {
  object-fit: contain;
}

.campus-photo-card {
  overflow: hidden;
  margin: -18px -18px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 13px 13px 0 0;
  background: #f4f6f3;
}

.campus-photo-card figcaption {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.campus-photo-credit {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
}

.campus-photo-credit a {
  color: var(--green-dark);
  font-weight: 800;
  text-underline-offset: 2px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.card-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.distance-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 27px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.15;
}

.distance-chip {
  background: var(--amber-soft);
  color: #664d0c;
  text-align: right;
}

.school-card h3 {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.22;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.card-meta p {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.42;
}

.card-meta .card-history {
  color: var(--green-dark);
}

.card-meta .card-history .card-label {
  color: #45665b;
}

.card-meta .card-cohorts {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid rgb(27 91 69 / 12%);
}

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

.card-highlights > :only-child {
  grid-column: 1 / -1;
}

.card-highlights p {
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #c6d8d1;
  border-radius: 9px;
  background: #f1f7f4;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.card-highlights .card-meals-none {
  border-color: #ddd1b7;
  background: #f7f2e8;
  color: #5e5544;
}

.card-highlights .card-meals-optional {
  border-color: #ddcca0;
  background: #fbf4df;
  color: #664d0c;
}

.card-label,
.detail-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.limited-data {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-footer {
  margin-top: auto;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.card-actions > * {
  min-width: 0;
  width: 100%;
}

.detail-primary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b9cec7;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.shortlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--surface);
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 850;
}

.shortlist-button[aria-pressed="true"] {
  background: var(--sage);
  color: var(--green-dark);
}

.shortlist-icon {
  font-size: 1.05rem;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .school-card:hover {
    border-color: #b8c9c3;
    box-shadow: 0 12px 28px rgba(32, 52, 61, 0.1);
    transform: translateY(-2px);
  }

  .card-detail-button:hover {
    background: var(--green);
    border-color: var(--green);
  }

  .compare-shortlist:not(:disabled):hover {
    border-color: var(--green);
    background: var(--green);
  }

  .card-action-link:hover,
  .shortlist-button:hover {
    border-color: var(--green);
    background: var(--sage);
  }
}

.empty-state {
  display: flex;
  grid-column: 1 / -1;
  gap: 16px;
  align-items: center;
  min-height: 170px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px dashed #aaa294;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
}

.empty-state-mark {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 1.8rem;
  font-weight: 850;
  place-items: center;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 1.18rem;
}

.empty-state p {
  margin-top: 3px;
}

.empty-reset {
  flex: 0 0 auto;
  min-height: 46px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--green-dark);
  border-radius: 10px;
  background: var(--green-dark);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.loading-state,
.load-error {
  grid-column: 1 / -1;
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.loading-state {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.loading-state::before {
  width: 22px;
  height: 22px;
  border: 3px solid #c8d8d2;
  border-top-color: var(--green);
  border-radius: 999px;
  content: "";
  animation: loading-spin 800ms linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.load-error h3,
.load-error p {
  margin: 0;
}

.load-error {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 9px;
  border-color: #bd7b68;
}

.load-error button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: 9px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 56px;
  margin: 4px auto 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pagination[hidden] {
  display: none;
}

.pagination button {
  min-width: 112px;
  border-color: #b9cec7;
  background: var(--surface-soft);
}

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

.pagination > span {
  min-width: 110px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.site-footer {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.data-details {
  color: var(--muted);
}

.data-details summary,
.source-disclosure summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.data-details-body {
  display: grid;
  gap: 10px;
  max-width: 900px;
  padding: 12px 0 0;
}

.data-details-body p {
  margin: 0;
}

.download-links,
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
}

.download-links a,
.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}

.school-detail-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 88% 0%, rgba(228, 239, 234, 0.82), transparent 34rem),
    var(--paper);
}

.school-page-toolbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(216 209 197 / 88%);
  background: rgb(252 250 245 / 94%);
  backdrop-filter: blur(14px);
}

.school-page-toolbar-inner {
  display: flex;
  width: min(1240px, 100%);
  min-height: calc(60px + env(safe-area-inset-top));
  margin: 0 auto;
  padding: env(safe-area-inset-top) clamp(18px, 4vw, 40px) 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.school-page-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #b9cec7;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}

.school-page-back > span:first-child {
  font-size: 1.1rem;
  line-height: 1;
}

.school-page-brand {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.school-detail-main {
  width: 100%;
}

.dialog-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.dialog-toolbar > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.close-detail {
  min-height: 44px;
}

.compare-dialog {
  width: min(1180px, calc(100% - 32px));
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-width: none;
  max-height: 900px;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(32, 52, 61, 0.25);
}

.compare-dialog.dialog-fallback-open {
  position: fixed;
  z-index: 70;
  inset: 16px;
}

body.compare-fallback-open::before {
  position: fixed;
  z-index: 65;
  inset: 0;
  background: rgba(16, 31, 38, 0.48);
  content: "";
}

.compare-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.compare-dialog::backdrop {
  background: rgba(16, 31, 38, 0.48);
  backdrop-filter: blur(2px);
}

.compare-toolbar-title {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.compare-toolbar-title > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.compare-toolbar-title h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.compare-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(18px, 3vw, 28px);
  padding-bottom: calc(clamp(18px, 3vw, 28px) + env(safe-area-inset-bottom));
}

.compare-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.compare-intro p {
  margin: 0;
}

#compareIntro {
  max-width: 760px;
  color: var(--muted);
}

.compare-selection-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
}

.compare-selection-count strong {
  color: var(--green-dark);
}

.compare-chooser {
  display: grid;
  min-width: 0;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border: 1px solid #bfd2cc;
  border-radius: 13px;
  background: #f2f7f4;
}

.compare-chooser legend {
  padding: 0 5px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.compare-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
}

.compare-option {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #c9d7d2;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.compare-option input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--green-dark);
}

.compare-option > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.compare-option strong,
.compare-option small {
  overflow-wrap: anywhere;
}

.compare-option strong {
  font-size: 0.84rem;
  line-height: 1.3;
}

.compare-option small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.compare-status {
  min-height: 1.3em;
  margin: 0;
  color: #7b311f;
  font-size: 0.8rem;
  font-weight: 800;
}

.compare-status-info {
  color: var(--muted);
}

.compare-status:empty {
  min-height: 0;
}

.compare-table-wrap {
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 860px;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  background: #ffffff;
}

.compare-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.compare-table th,
.compare-table td {
  min-width: 0;
  padding: 12px 13px;
  border-right: 1px solid #e4ded4;
  border-bottom: 1px solid #e4ded4;
  overflow-wrap: anywhere;
  vertical-align: top;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: left;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: 0;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #eaf3ef;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.35;
}

.compare-table thead th:first-child {
  z-index: 4;
}

.compare-table th:first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  width: 164px;
  background: #faf8f2;
  color: var(--ink);
  font-weight: 900;
}

.compare-value-unknown {
  color: var(--muted);
  font-style: italic;
}

.compare-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compare-links .card-action-link,
.compare-links .map-action-link {
  min-width: 0;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 0.8rem;
}

.compare-mobile {
  display: none;
}

.compare-caveat {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.compare-empty {
  display: grid;
  min-height: 170px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 24px;
  border: 1px dashed #aaa294;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.compare-empty h3,
.compare-empty p {
  margin: 0;
}

.compare-empty h3 {
  color: var(--ink);
}

.detail-panel {
  display: grid;
  align-content: start;
  gap: clamp(20px, 3vw, 30px);
  width: min(1240px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) clamp(18px, 4vw, 40px);
  padding-bottom: calc(clamp(42px, 6vw, 72px) + env(safe-area-inset-bottom));
}

.school-hero {
  display: grid;
  min-width: 0;
  gap: clamp(22px, 4vw, 42px);
  padding: clamp(24px, 4.5vw, 52px);
  border: 1px solid #cbd9d4;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 98%), rgb(241 247 244 / 96%));
  box-shadow: var(--shadow);
}

.school-hero-has-photo {
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  align-items: center;
}

.school-hero-no-photo {
  grid-template-columns: minmax(0, 820px);
}

.school-hero-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 16px;
}

.school-hero-kicker {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.school-hero-location {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.school-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.15rem, 5.2vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.school-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.school-hero-fact {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgb(185 206 199 / 78%);
  border-radius: 11px;
  background: rgb(255 255 255 / 78%);
}

.school-hero-fact span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.school-hero-fact strong {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.school-hero .detail-primary-actions {
  margin-top: 2px;
}

.school-hero .detail-primary-actions [data-map-action="directions"] {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #ffffff;
}

.school-profile-disclaimer {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px 12px;
  padding: 13px 16px;
  border: 1px solid #d8bd73;
  border-radius: 13px;
  background: #fff8e6;
  color: #5d4816;
  font-size: 0.84rem;
  line-height: 1.45;
}

.school-profile-disclaimer strong {
  flex: 0 0 auto;
  color: #654d10;
}

.campus-photo-panel {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f4f6f3;
  box-shadow: var(--shadow-soft);
}

.campus-photo-panel .campus-photo-frame {
  border-radius: 17px 17px 0 0;
}

.campus-photo-detail figcaption {
  display: grid;
  gap: 5px;
  padding: 11px 13px 12px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.4;
}

.campus-photo-detail figcaption p,
.campus-photo-detail figcaption small {
  margin: 0;
}

.campus-photo-detail figcaption p {
  color: var(--ink);
  font-weight: 750;
}

.campus-photo-detail figcaption small {
  color: var(--muted);
  font-size: 0.72rem;
}

.campus-photo-missing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed #a9b9b2;
  border-radius: 14px;
  background: #f4f7f5;
}

.campus-photo-missing-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e2ebe6;
  color: var(--green-dark);
  font-size: 1.25rem;
  place-items: center;
}

.campus-photo-missing h3,
.campus-photo-missing h2,
.campus-photo-missing p {
  margin: 0;
}

.campus-photo-missing h3,
.campus-photo-missing h2 {
  font-size: 1rem;
}

.campus-photo-missing p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.campus-photo-missing button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--green-dark);
  border-radius: 9px;
  background: #ffffff;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 850;
}

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

.detail-overview-section {
  display: grid;
  min-width: 0;
  gap: 15px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-section-heading {
  display: grid;
  gap: 2px;
}

.detail-section-heading p,
.detail-section-heading h2 {
  margin: 0;
}

.detail-section-heading p {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.detail-section-heading h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.school-detail-sections {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.school-detail-sections > section,
.school-detail-sections > details {
  scroll-margin-top: calc(78px + env(safe-area-inset-top));
}

.detail-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.detail-grid .detail-wide {
  grid-column: 1 / -1;
}

.detail-grid p {
  margin: 0;
}

.detail-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  align-items: center;
}

.detail-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--green-dark);
  font-weight: 750;
  text-underline-offset: 2px;
}

.contact-separator {
  color: #a59c8e;
}

.distance-note,
.technical-record {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-primary-actions {
  align-items: stretch;
}

.regulatory-data-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b9c8d2;
  border-radius: 14px;
  background: #f3f7f9;
}

.regulatory-data-heading h3,
.regulatory-record-heading h4,
.regulatory-data-caveat {
  margin: 0;
}

.regulatory-data-heading h3 {
  font-size: 1.08rem;
}

.regulatory-record {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgb(45 74 91 / 15%);
  border-radius: 10px;
  background: rgb(255 255 255 / 78%);
}

.regulatory-record-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.regulatory-record-heading h4 {
  font-size: 0.98rem;
}

.regulatory-status {
  flex: 0 1 auto;
  max-width: 24ch;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e3eee9;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.regulatory-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.regulatory-facts > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgb(45 74 91 / 10%);
  border-radius: 8px;
  background: rgb(244 248 250 / 76%);
}

.regulatory-facts .regulatory-fact-wide {
  grid-column: 1 / -1;
}

.regulatory-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.regulatory-facts dd {
  min-width: 0;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

.regulatory-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.regulatory-source-row > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 12px;
}

.regulatory-source-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green-dark);
  font-weight: 800;
  text-underline-offset: 2px;
}

.regulatory-programmes {
  display: grid;
  gap: 7px;
}

.regulatory-programmes h5,
.regulatory-notes strong,
.regulatory-extras strong,
.regulatory-extras p {
  margin: 0;
}

.regulatory-programmes h5 {
  color: var(--muted);
  font-size: 0.75rem;
}

.regulatory-programmes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.regulatory-programmes li {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgb(45 74 91 / 10%);
  border-radius: 8px;
  background: rgb(244 248 250 / 76%);
}

.regulatory-programmes li strong {
  font-size: 0.84rem;
}

.regulatory-programmes li span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.regulatory-extras {
  border: 1px solid rgb(45 74 91 / 12%);
  border-radius: 8px;
  background: rgb(244 248 250 / 70%);
}

.regulatory-extras summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.regulatory-extras > div {
  display: grid;
  gap: 3px;
  padding: 0 10px 10px;
}

.regulatory-extras p {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.regulatory-notes {
  display: grid;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f9f3e4;
  color: #5f4a20;
  font-size: 0.78rem;
  line-height: 1.45;
}

.regulatory-notes ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 17px;
}

.regulatory-data-caveat {
  padding-top: 10px;
  border-top: 1px solid rgb(45 74 91 / 13%);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.campus-data-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #c7c0aa;
  border-radius: 14px;
  background: #faf8f1;
}

.campus-data-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.campus-data-heading h3,
.campus-data-heading p,
.campus-fee-status,
.campus-data-caveat {
  margin: 0;
}

.campus-data-heading h3 {
  font-size: 1.08rem;
}

.campus-data-heading p {
  max-width: 42%;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: right;
}

.campus-data-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.campus-data-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgb(88 74 37 / 14%);
  border-radius: 9px;
  background: rgb(255 255 255 / 72%);
}

.campus-data-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.campus-data-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
}

.campus-data-groups {
  display: grid;
  gap: 8px;
}

.campus-data-group {
  overflow: clip;
  border: 1px solid rgb(88 74 37 / 18%);
  border-radius: 9px;
  background: rgb(255 255 255 / 74%);
}

.campus-data-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 850;
  list-style-position: inside;
}

.campus-data-group > summary span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-align: right;
}

.campus-data-group[open] > summary {
  border-bottom: 1px solid rgb(88 74 37 / 14%);
}

.campus-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.campus-metric-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgb(88 74 37 / 10%);
}

.campus-metric-list li:nth-child(odd) {
  border-right: 1px solid rgb(88 74 37 / 10%);
}

.campus-metric-list span,
.campus-metric-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.campus-metric-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.campus-metric-list strong {
  max-width: 15ch;
  font-size: 0.84rem;
  text-align: right;
}

.campus-status-yes {
  color: var(--green-dark);
}

.campus-status-no {
  color: #715126;
}

.campus-status-unknown {
  color: var(--muted);
  font-weight: 650;
}

.campus-fee-status {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.campus-data-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.campus-data-source a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--green-dark);
  font-weight: 800;
  text-underline-offset: 2px;
}

.campus-data-caveat {
  padding-top: 10px;
  border-top: 1px solid rgb(88 74 37 / 14%);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.enrollment-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b9cec7;
  border-radius: 14px;
  background: #f1f7f4;
}

.enrollment-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.enrollment-heading h3,
.enrollment-sections,
.enrollment-unavailable,
.enrollment-caveat,
.enrollment-meta p {
  margin: 0;
}

.enrollment-heading h3 {
  font-size: 1.08rem;
}

.enrollment-total {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: clamp(1.6rem, 6vw, 2.15rem);
  line-height: 1;
}

.enrollment-sections,
.enrollment-unavailable {
  color: var(--ink);
  font-weight: 750;
}

.enrollment-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  padding-top: 11px;
  border-top: 1px solid rgb(39 92 72 / 16%);
}

.enrollment-meta p {
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.enrollment-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-left: 7px;
  color: var(--green-dark);
  font-weight: 800;
  text-underline-offset: 2px;
}

.enrollment-caveat {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.enrollment-breakdown {
  border-top: 1px solid rgb(39 92 72 / 16%);
}

.enrollment-breakdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 850;
}

.enrollment-breakdown summary span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.enrollment-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.enrollment-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.enrollment-table-wrap th,
.enrollment-table-wrap td {
  padding: 9px 8px;
  border-top: 1px solid rgb(39 92 72 / 13%);
  text-align: right;
  white-space: nowrap;
}

.enrollment-table-wrap th:first-child {
  width: 100%;
  text-align: left;
  white-space: normal;
}

.enrollment-table-wrap thead th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.enrollment-table-wrap tbody th {
  color: var(--ink);
  font-weight: 750;
}

.food-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9cba8;
  border-radius: 14px;
  background: #fbf7ec;
}

.food-heading {
  display: grid;
  gap: 2px;
}

.food-heading h3,
.food-caveat {
  margin: 0;
}

.food-heading h3 {
  font-size: 1.08rem;
}

.food-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.food-status-list li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgb(102 77 12 / 14%);
  border-radius: 9px;
  background: rgb(255 255 255 / 64%);
}

.food-status-list li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.food-status-list li > div > span {
  color: var(--ink);
  font-weight: 800;
}

.food-status-list small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.food-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 0.69rem;
  line-height: 1.25;
  text-align: right;
}

.food-status-provided {
  background: #dcece5;
  color: var(--green-dark);
}

.food-status-optional_or_paid {
  background: #f2e5bd;
  color: #664d0c;
}

.food-status-not_provided {
  background: #ebe7de;
  color: #5e5544;
}

.food-caveat {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.food-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 9px;
  border-top: 1px solid rgb(102 77 12 / 14%);
}

.food-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.history-panel {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid #c9d9d3;
  border-radius: 14px;
  background: #f4f8f6;
}

.history-heading {
  display: grid;
  gap: 3px;
}

.history-heading h3,
.history-empty,
.graduation-empty,
.history-caveat {
  margin: 0;
}

.history-heading h3 {
  font-size: 1rem;
}

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

.history-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 10px 0 0;
  border-top: 1px solid rgb(27 91 69 / 13%);
}

.history-list li > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.history-kind {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.25;
}

.history-list strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.35;
}

.history-list small,
.history-caveat,
.graduation-empty,
.history-empty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.graduation-history-row strong {
  color: var(--green-dark);
}

.graduation-empty strong {
  color: var(--ink);
}

.history-source a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
  text-underline-offset: 2px;
}

.pricing-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d9cba8;
  border-radius: 14px;
  background: #fbf7ec;
}

.pricing-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pricing-heading h3,
.pricing-summary,
.pricing-note {
  margin: 0;
}

.pricing-heading h3 {
  font-size: 1rem;
}

.pricing-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pricing-summary {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.pricing-items {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding-top: 7px;
  border-top: 1px solid rgb(102 77 12 / 14%);
}

.pricing-items strong {
  text-align: right;
}

.pricing-items small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.35;
}

.pricing-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.school-news {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b9cbd7;
  border-radius: 14px;
  background: #f4f8fa;
}

.news-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.news-heading h3,
.news-checked,
.news-status,
.news-caveat,
.news-refreshing {
  margin: 0;
}

.news-heading h3 {
  font-size: 1.08rem;
}

.news-checked,
.news-status,
.news-refreshing {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.news-list {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  min-width: 0;
}

.news-article-link {
  display: grid;
  min-width: 0;
  min-height: 58px;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgb(49 95 135 / 16%);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
}

.news-article-link strong,
.news-article-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-article-link strong {
  font-size: 0.9rem;
}

.news-article-link > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.news-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 2px;
}

.news-search-link,
.news-method-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-underline-offset: 2px;
}

.news-caveat {
  padding-top: 9px;
  border-top: 1px solid rgb(49 95 135 / 14%);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.news-empty,
.news-error,
.news-refresh-warning {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgb(49 95 135 / 14%);
  border-radius: 10px;
  background: rgb(255 255 255 / 72%);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.news-empty strong,
.news-error strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.news-error button,
.news-refresh-warning button {
  width: fit-content;
  min-height: 44px;
  margin-top: 5px;
  padding: 8px 13px;
  border: 1px solid var(--green-dark);
  border-radius: 9px;
  background: #ffffff;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 850;
}

.news-refreshing {
  margin-top: 8px;
  color: var(--green-dark);
  font-weight: 750;
}

.news-refresh-warning {
  margin-top: 9px;
  border-color: #d8bd73;
  background: #fff8e6;
  color: #665221;
}

@media (hover: hover) and (pointer: fine) {
  .news-article-link:hover {
    border-color: var(--blue);
    background: #f8fbfd;
  }

  .news-error button:hover,
  .news-refresh-warning button:hover {
    background: var(--sage);
  }
}

.map-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--green);
  border-radius: 9px;
  background: var(--surface);
  color: var(--green-dark);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.school-notes {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #b9cec7;
  border-radius: 14px;
  background: #f1f7f4;
}

.notes-heading {
  display: grid;
  gap: 3px;
}

.notes-heading h3,
.notes-heading h2,
.notes-heading p {
  margin: 0;
}

.notes-heading h3,
.notes-heading h2 {
  font-size: 1.08rem;
}

.notes-heading p,
.image-help,
.note-editor-meta,
.note-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.note-form {
  display: grid;
  gap: 10px;
}

.note-form > label:first-child {
  font-weight: 850;
}

.note-form textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #aaa398;
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.note-form textarea:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
}

.note-editor-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}

.image-picker {
  display: grid;
  gap: 6px;
  font-weight: 850;
}

.image-picker input {
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  background: #ffffff;
}

.image-help,
.note-status {
  margin: -3px 0 0;
}

.note-status {
  min-height: 1.25em;
  color: var(--green-dark);
  font-weight: 750;
}

.note-status.error,
.note-error {
  color: #7b311f;
}

.note-error {
  margin: 0;
  font-weight: 750;
}

.note-gallery,
.pending-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pending-images:empty {
  display: none;
}

.note-image,
.pending-image {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
}

.note-image img,
.pending-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #ece8df;
}

.note-image figcaption,
.pending-image figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-note-image,
.save-note,
.delete-note {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.remove-note-image,
.delete-note {
  color: #7b311f;
}

.save-note {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.save-note:disabled,
.delete-note:disabled,
.remove-note-image:disabled {
  cursor: wait;
  opacity: 0.65;
}

.note-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggest-update-panel {
  border: 1px solid #c7c0b4;
  border-radius: 14px;
  background: var(--surface-soft);
}

.global-suggestion-section {
  border: 1px solid #b9d0c7;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(228, 239, 234, 0.76), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.global-suggestion-panel > summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px clamp(16px, 2.5vw, 22px);
  color: var(--ink);
  cursor: pointer;
  list-style-position: inside;
}

.global-suggestion-panel > summary > span:last-child {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.global-suggestion-summary-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.global-suggestion-summary-copy strong {
  font-size: 1.02rem;
}

.global-suggestion-summary-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.global-suggestion-panel[open] > summary {
  border-bottom: 1px solid #cdded7;
}

.global-suggestion-body {
  display: grid;
  max-width: 1000px;
  gap: 15px;
  padding: clamp(16px, 2.5vw, 22px);
}

.global-suggestion-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.suggest-update-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.suggest-update-panel > summary span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.suggest-update-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}

.suggest-update-body {
  display: grid;
  gap: 15px;
  padding: 16px;
}

.suggest-update-intro,
.global-suggestion-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.suggest-update-form {
  display: grid;
  gap: 15px;
}

.suggestion-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.suggestion-field > span,
.suggestion-fieldset legend {
  color: var(--ink);
  font-weight: 850;
}

.suggestion-field > span small,
.suggestion-fieldset legend small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.suggestion-field input[readonly] {
  background: #eeeae2;
  color: var(--muted);
}

.suggestion-field textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #aaa398;
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.suggestion-field textarea:focus-visible,
.suggestion-field-options input:focus-visible,
.suggestion-consent input:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
}

.suggestion-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.suggestion-fieldset legend {
  margin-bottom: 8px;
}

.suggestion-field-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.suggestion-field-options label {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
}

.suggestion-field-options input[type="checkbox"],
.suggestion-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--green-dark);
}

.suggestion-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.suggestion-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.45;
}

.suggestion-consent input {
  margin-top: 2px;
}

.suggestion-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.suggestion-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.submit-suggestion,
.global-suggestion-submit {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid var(--green-dark);
  border-radius: 9px;
  background: var(--green-dark);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.submit-suggestion:disabled,
.global-suggestion-submit:disabled {
  border-color: #aaa398;
  background: #d8d3ca;
  color: #5e5544;
  cursor: not-allowed;
}

.suggestion-status {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.suggestion-status:empty {
  display: none;
}

.suggestion-status[data-state="success"] {
  color: var(--green-dark);
}

.suggestion-status[data-state="error"],
.suggestion-status[data-state="offline"] {
  color: #7b311f;
}

.source-disclosure {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.source-disclosure[open] {
  display: grid;
  gap: 10px;
}

.source-disclosure summary {
  padding-top: 10px;
}

.school-route-not-found {
  display: grid;
  width: min(720px, 100%);
  min-height: min(520px, calc(100svh - 170px));
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: clamp(26px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.school-route-not-found h1,
.school-route-not-found p {
  margin: 0;
}

.school-route-not-found h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

.school-route-not-found p:not(.school-hero-kicker) {
  max-width: 580px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (pointer: coarse) {
  .remove-note-image,
  .save-note,
  .delete-note,
  .source-disclosure summary,
  .detail-contact a {
    min-height: 44px;
  }

  .source-disclosure summary,
  .download-links a,
  .source-links a {
    display: inline-flex;
    align-items: center;
    padding-block: 8px;
  }
}

@media (max-width: 1100px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reset-filters {
    justify-self: start;
  }

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

@media (max-width: 700px) {
  .topbar {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: 20px;
  }

  .page-content {
    gap: 16px;
    padding-top: 16px;
  }

  .school-page-toolbar-inner {
    min-height: calc(58px + env(safe-area-inset-top));
    padding-right: 16px;
    padding-left: 16px;
  }

  .school-page-brand {
    font-size: 0.68rem;
  }

  .school-hero-has-photo,
  .school-hero-no-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-hero {
    gap: 22px;
    padding: 24px;
    border-radius: 18px;
  }

  .school-hero h1 {
    font-size: clamp(2rem, 10vw, 3.35rem);
  }

  .school-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #eee9df;
    color: var(--ink);
    cursor: pointer;
    font-weight: 850;
    list-style-position: inside;
  }

  .filter-details > summary span:last-child {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-align: right;
  }

  .filter-details[open] > summary {
    margin-bottom: 12px;
  }

  .reset-filters {
    width: 100%;
  }

  .scope-note {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .empty-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
  }

  .empty-reset {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
  }

  .pagination button {
    min-width: 0;
  }

  .compare-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .compare-dialog.dialog-fallback-open {
    inset: 0;
  }

  .compare-panel {
    gap: 14px;
    padding: 16px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .compare-intro {
    display: grid;
    align-items: start;
    gap: 7px;
  }

  .compare-options {
    grid-template-columns: minmax(0, 1fr);
    max-height: 220px;
  }

  .compare-table-wrap {
    display: none;
  }

  .compare-mobile {
    display: grid;
    gap: 12px;
  }

  .compare-mobile-row {
    display: grid;
    min-width: 0;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }

  .compare-mobile-row h3 {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: var(--green-dark);
    font-size: 0.95rem;
  }

  .compare-mobile-row dl {
    display: grid;
    gap: 0;
    margin: 0;
  }

  .compare-mobile-row dl > div {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid #ece7de;
  }

  .compare-mobile-row dl > div:first-child {
    padding-top: 0;
  }

  .compare-mobile-row dl > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .compare-mobile-row dt,
  .compare-mobile-row dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }

  .compare-mobile-row dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
  }

  .compare-mobile-row dd {
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

@media (max-width: 560px) {
  .topbar,
  .page-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: 18px;
  }

  h1 {
    font-size: clamp(1.92rem, 9.6vw, 2.35rem);
    line-height: 1;
  }

  .lede {
    margin-top: 9px;
    font-size: 0.94rem;
  }

  .dataset-meta {
    display: block;
    margin-top: 10px;
    font-size: 0.84rem;
  }

  .page-content {
    gap: 14px;
    padding-top: 14px;
  }

  .project-disclaimer {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 14px;
  }

  .project-disclaimer-kicker {
    font-size: 0.68rem;
  }

  .project-disclaimer h2 {
    font-size: 0.98rem;
  }

  .project-disclaimer-details summary {
    gap: 9px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .project-disclaimer-details > p {
    margin-top: 5px;
    font-size: 0.82rem;
  }

  .project-disclaimer-toggle {
    font-size: 0.69rem;
  }

  .search-panel {
    gap: 12px;
    padding: 14px;
  }

  .school-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid .detail-wide {
    grid-column: auto;
  }

  .regulatory-record-heading,
  .regulatory-source-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .regulatory-status {
    max-width: none;
    text-align: left;
  }

  .regulatory-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .regulatory-programmes ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .regulatory-facts .regulatory-fact-wide {
    grid-column: auto;
  }

  .regulatory-source-row > div {
    justify-content: flex-start;
  }

  .regulatory-source-row > span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .campus-data-heading {
    display: grid;
  }

  .campus-data-heading p {
    max-width: none;
    text-align: left;
  }

  .campus-data-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-metric-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .campus-metric-list li:nth-child(odd) {
    border-right: 0;
  }

  .campus-data-source {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .history-source a {
    text-align: left;
  }

  .section-heading {
    align-items: start;
  }

  .shortlist-section .section-heading {
    flex-direction: column;
  }

  .shortlist-action-group {
    width: 100%;
    justify-items: stretch;
  }

  .shortlist-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-shortlist,
  .clear-shortlist {
    width: 100%;
  }

  .shortlist-action-hint {
    text-align: left;
  }

  .school-card {
    min-height: 0;
    padding: 16px;
  }

  .campus-photo-card {
    margin: -16px -16px 0;
  }

  .campus-photo-missing {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .campus-photo-missing button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pagination button {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.9rem;
  }

  .pagination button span {
    display: none;
  }

  .pagination > span {
    min-width: 96px;
    font-size: 0.84rem;
  }

  .card-heading {
    gap: 9px;
  }

  .shortlist-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    overflow-x: auto;
    padding-bottom: 7px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .shortlist-grid .school-card {
    scroll-snap-align: start;
  }

  .detail-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .detail-primary-actions > * {
    width: 100%;
  }

  .detail-primary-actions .shortlist-button {
    grid-column: 1 / -1;
  }

  .pricing-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .enrollment-panel {
    padding: 14px;
  }

  .card-highlights,
  .food-status-list {
    grid-template-columns: 1fr;
  }

  .card-highlights > :only-child {
    grid-column: auto;
  }

  .food-panel {
    padding: 14px;
  }

  .enrollment-meta {
    grid-template-columns: 1fr;
  }

  .enrollment-meta a {
    min-height: 44px;
    margin-left: 0;
    margin-right: 8px;
  }

  .enrollment-table-wrap th,
  .enrollment-table-wrap td {
    padding-right: 6px;
    padding-left: 6px;
  }

  .pricing-items li {
    grid-template-columns: 1fr;
  }

  .pricing-items strong {
    text-align: left;
  }

  .dialog-toolbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .compare-toolbar {
    min-height: 68px;
  }

  .detail-panel {
    gap: 18px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .school-hero {
    padding: 20px;
  }

  .school-hero-facts {
    grid-template-columns: 1fr;
  }

  .school-profile-disclaimer {
    display: grid;
    gap: 3px;
  }

  .detail-primary-actions [data-map-action="directions"] {
    grid-column: 1 / -1;
  }

  .detail-overview-section {
    padding: 16px;
  }

  .school-notes {
    padding: 16px;
  }

  .suggest-update-body {
    padding: 14px;
  }

  .global-suggestion-panel > summary {
    min-height: 62px;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .global-suggestion-panel > summary > span:last-child {
    padding-top: 2px;
    font-size: 0.72rem;
  }

  .global-suggestion-body {
    padding: 14px;
  }

  .global-suggestion-fields {
    grid-template-columns: 1fr;
  }

  .suggestion-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-suggestion {
    width: 100%;
  }

  .global-suggestion-submit {
    width: 100%;
  }

  .note-gallery,
  .pending-images {
    gap: 8px;
  }
}

@media (max-width: 340px) {
  .topbar {
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-bottom: 14px;
  }

  h1 {
    font-size: 1.86rem;
  }

  .lede {
    margin-top: 7px;
    font-size: 0.9rem;
  }

  .dataset-meta {
    margin-top: 8px;
  }

  .page-content {
    gap: 12px;
    padding-top: 12px;
  }

  .search-panel {
    padding: 12px;
  }

  #schoolSearch {
    min-height: 50px;
  }

  .project-disclaimer {
    padding: 9px 12px;
  }

  .shortlist-grid .card-meta {
    grid-template-columns: 1fr;
  }

  .suggestion-field-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  details[class] > summary::after {
    transition: none;
  }

  .school-card {
    transition: none;
  }

  .loading-state::before {
    animation: none;
  }
}
