@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .container { grid-template-columns: 1fr; gap: var(--sp-5); }
  .grid-aside { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* The full menu needs ~1250px next to the school name; below that, use the mobile menu. */
@media (max-width: 1300px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); flex-direction: column; align-items: stretch;
    padding: var(--sp-4); gap: var(--sp-3); overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; animation: fade-up 200ms ease both; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 12px; font-size: 1rem; border-bottom: 1px solid var(--ink-100); }
  .nav__actions { margin-left: 0; flex-direction: column; align-items: stretch; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: var(--sp-7) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { flex: 1 1 auto; }
  .brand__name { font-size: 0.84rem; white-space: normal; line-height: 1.2; }
  .brand__logo { width: 40px; height: 40px; }
  .topbar .container { justify-content: center; }
  .topbar__items:last-child { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta-band { padding: var(--sp-5); }
  .modal__foot { flex-wrap: wrap; }
  .modal__foot .btn { flex: 1; }
  .table th, .table td { padding: 8px; }
}

/* Wide laptops: the "Admissions" link remains; the extra call-to-action button is hidden to fit the menu. */
@media (min-width: 1301px) and (max-width: 1440px) {
  .nav__apply { display: none; }
}
