:root {
  --maroon: #6d1a36;
  --maroon-dark: #4a1024;
  --gold: #c9a227;
  --logo-gold: #e09b22;
  --navy: #14344e;
  --surface: #f7f4f1;
  --card: #ffffff;
  --ink: #1c1b1f;
  --muted: #5c5650;
  --line: #e6dfd8;
  --ok: #1b7a4a;
  --warn: #b45309;
  --shadow: 0 10px 30px rgba(20, 52, 78, 0.08);
  --radius: 16px;
  --font: "DM Sans", "Noto Naskh Arabic", system-ui, sans-serif;
  --display: "Fraunces", "Noto Naskh Arabic", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100vh;
  background-color: #d7c4ab;
  background-image:
    linear-gradient(180deg, rgba(236, 224, 208, 0.5) 0%, rgba(247, 241, 232, 0.9) 68%),
    url("../img/theme/expat-path.jpg");
  background-size: cover;
  background-position: left 18%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.home-page {
  background-image:
    linear-gradient(180deg, rgba(236, 224, 208, 0.22) 0%, rgba(247, 241, 232, 0.94) 58%),
    url("../img/theme/expat-path.jpg");
}
@media (max-width: 900px) {
  body { background-attachment: scroll; }
}

a { color: inherit; }
button, input, select, textarea { font-family: inherit; }

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 4000;
  padding-top: env(safe-area-inset-top);
}
.quote-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 4px max(20px, env(safe-area-inset-right)) 4px max(20px, env(safe-area-inset-left));
  overflow: hidden;
  background: var(--maroon);
  color: #e8b42a;
  border-bottom: 1px solid var(--maroon-dark);
}
.quote-line {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 0.95rem;
  line-height: 1.2;
  font-style: italic;
  white-space: normal;
}
@media (min-width: 901px) {
  .quote-line, #quote-by { white-space: nowrap; }
}
.quote-mark {
  color: #f0c43a;
  font-style: normal;
  font-size: 1.15em;
  margin-inline-end: 6px;
}
#quote-by {
  font-style: normal;
  font-size: 0.72em;
  color: #f0c43a;
  margin-inline-start: 10px;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(247, 244, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  position: relative;
}
.lang-switch {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  position: absolute;
  z-index: 2;
  margin: 0;
  left: 46%;
  width: 50%;
  top: 2px;
  bottom: 47%;
  right: auto;
  padding: 0 0 2px;
  box-sizing: border-box;
  pointer-events: none;
}
.lang-tab {
  pointer-events: auto;
  min-width: 0;
  min-height: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--maroon);
  background: rgba(247, 244, 241, 0.94);
  color: var(--maroon);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  cursor: pointer;
}
.lang-tab.active {
  background: var(--maroon);
  color: var(--logo-gold);
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(340px, 70vw);
  object-fit: contain;
  object-position: start center;
}
.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  margin-inline-start: auto;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  background: #fff;
  color: var(--maroon);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--maroon);
  color: var(--logo-gold);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.nav-toggle-icon {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 auto;
}
.nav-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}
.nav.is-open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav.is-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
[dir="rtl"] .nav-toggle {
  flex: 0 0 auto;
  gap: 12px;
  min-width: max-content;
  padding-block: 8px;
  padding-inline-start: 18px;
  padding-inline-end: 20px;
}
[dir="rtl"] .nav-toggle-icon {
  flex: 0 0 18px;
  margin-inline-end: 2px;
}
[dir="rtl"] .nav-toggle-label {
  flex: 0 0 auto;
  line-height: 1.45;
  padding-inline-start: 0.15em;
  white-space: nowrap;
}
.nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 26, 54, 0.55) transparent;
}
.nav-scroll.is-overflowing { justify-content: flex-start; }
.nav-scroll::-webkit-scrollbar { height: 5px; }
.nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(109, 26, 54, 0.5);
  border-radius: 99px;
}
.nav-scroll > a,
.nav-scroll > button,
.nav-scroll > .account-menu { flex: 0 0 auto; }
.nav-scroll.can-scroll-end {
  mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
}
.nav-scroll.can-scroll-start {
  mask-image: linear-gradient(to right, transparent, #000 18px);
}
.nav-scroll.can-scroll-start.can-scroll-end {
  mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.nav a, .icon-btn, .btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.nav a,
#account-btn,
#schools-btn {
  padding: 11px 22px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--logo-gold);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav a.active,
.nav a:hover,
#account-btn:hover,
#account-btn[aria-expanded="true"],
#schools-btn:hover,
#schools-btn.active {
  background: var(--maroon-dark);
  color: #f0c43a;
}
.nav a .badge {
  background: var(--logo-gold);
  color: var(--maroon);
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-inline-start: 4px;
  border-radius: 99px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.7rem;
}
[hidden] { display: none !important; }
.icon-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--maroon);
}
.account-menu { position: relative; flex: 0 0 auto; }
.account-dropdown {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  min-width: 196px;
  padding-top: 8px;
  z-index: 4500;
}
.account-dropdown.is-open { display: block; }
.account-dropdown-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
}
.account-dropdown a:hover,
.account-dropdown button:hover {
  background: #efe6df;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }
body.home-page #app.wrap {
  max-width: none;
  padding: 0 0 64px;
}
body.home-page #app.wrap > :not(.path-stage) {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.path-stage {
  width: 100%;
  margin-bottom: 28px;
}
.path-stage-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #cbb79a;
}
.path-stage-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}
.path-stage-copy {
  position: absolute;
  z-index: 2;
  inset-inline-start: 2%;
  inset-inline-end: auto;
  top: 1.2%;
  width: min(54rem, 54%);
  max-width: 54%;
  padding: 10px 12px 8px;
  border-radius: 0;
  color: #fff;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
  text-shadow: 0 2px 14px rgba(12, 20, 28, 0.7);
}
.path-journey {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 14px 16px 16px;
  background: linear-gradient(90deg, #14344e 0%, #1c4d73 42%, #6d1a36 100%);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 231, 176, 0.7) transparent;
}
.path-journey:not(.is-overflowing) { justify-content: center; }
.path-journey::-webkit-scrollbar { height: 5px; }
.path-journey::-webkit-scrollbar-thumb {
  background: rgba(247, 231, 176, 0.65);
  border-radius: 99px;
}
.path-journey.can-scroll-end {
  mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
}
.path-journey.can-scroll-start {
  mask-image: linear-gradient(to right, transparent, #000 18px);
}
.path-journey.can-scroll-start.can-scroll-end {
  mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.path-journey li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.path-journey a,
.path-journey span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f7e7b0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 180, 42, 0.45);
  box-shadow: 0 0 16px rgba(80, 170, 255, 0.18);
}
.path-journey a:hover { background: rgba(232, 180, 42, 0.18); color: #fff; }
.path-journey .path-start {
  background: rgba(80, 170, 255, 0.22);
  border-color: rgba(120, 200, 255, 0.7);
}
.path-journey .path-end {
  background: rgba(232, 180, 42, 0.22);
  color: #ffe9a8;
}
.path-journey li + li::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #5ec8ff, #e8b42a);
  box-shadow: 0 0 10px rgba(94, 200, 255, 0.7);
}
body[dir="rtl"] .path-journey li + li::before {
  background: linear-gradient(90deg, #e8b42a, #5ec8ff);
}
@media (max-width: 800px) {
  .path-stage-visual { overflow: visible; }
  .path-stage-visual img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    object-position: center 35%;
  }
  .path-stage-copy {
    position: static;
    inset: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 16px 16px 4px;
    color: var(--navy);
    background: transparent;
    text-shadow: none;
  }
  .path-stage-copy h1 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    color: var(--navy);
  }
  .path-stage-copy .lede {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink);
  }
  .path-stage-copy .hero-actions { margin-top: 12px; }
  .path-stage-copy .btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
  }
  .path-journey { padding: 12px 12px 14px; gap: 8px; }
  .path-journey a,
  .path-journey span {
    min-height: 40px;
    padding: 8px 12px;
  }
  .path-journey li + li::before { width: 10px; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0 12px;
}
.kicker {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
h1, h2, h3 { font-family: var(--display); margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; color: var(--navy); }
.lede { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--navy); }
.btn-gold { background: var(--gold); color: #1c1408; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.path-stage-copy h1 {
  font-size: clamp(1.78rem, 3vw, 2.65rem);
  line-height: 1.14;
  margin-bottom: 8px;
  color: #fff;
}
.path-stage-copy .lede {
  display: block;
  max-width: none;
  font-size: 1.26rem;
  line-height: 1.38;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
}
.path-stage-copy .hero-actions {
  margin-top: 12px;
}
.path-stage-copy .btn {
  padding: 10px 17px;
  font-size: 1rem;
  text-shadow: none;
}
.path-stage-copy .btn-ghost {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
}
.path-stage-copy .btn-primary:hover,
.path-stage-copy .btn-ghost:hover {
  background: #e09b22;
  border-color: #e09b22;
  color: #fff;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
  min-width: 0;
  max-width: 100%;
}
.hero-card img { width: 100%; height: 280px; object-fit: cover; object-position: center; display: block; }
.hero-map-wrap {
  position: relative;
  z-index: 0;
  height: 280px;
  overflow: hidden;
  isolation: isolate;
}
.hero-map {
  width: 100%;
  height: 100%;
  background: #d7e2ea;
  z-index: 0;
}
.hero-map .leaflet-container,
.map-explorer-canvas .leaflet-container {
  z-index: 0 !important;
  height: 100% !important;
  width: 100% !important;
}
.hero-map .leaflet-tile-pane { z-index: 1 !important; }
.hero-map .leaflet-overlay-pane { z-index: 2 !important; }
.hero-map .leaflet-shadow-pane,
.hero-map .leaflet-marker-pane,
.hero-map .leaflet-tooltip-pane,
.hero-map .leaflet-popup-pane { z-index: 3 !important; }
.hero-map .leaflet-control-container,
.hero-map .leaflet-top,
.hero-map .leaflet-bottom {
  z-index: 4 !important;
}
.map-expand-btn {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 4;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 36px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.map-expand-btn:hover { background: #f7f4f1; }
body.map-explorer-page {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
body.map-explorer-page .site-chrome { flex-shrink: 0; }
body.map-explorer-page .footer { display: none; }
body.map-explorer-page #app.wrap {
  flex: 1;
  min-height: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}
.map-explorer {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
}
.map-explorer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: var(--card);
  flex-shrink: 0;
  font-size: 0.78rem;
}
.map-explorer-bar strong { font-size: 0.82rem; }
.map-explorer-bar .muted { font-size: 0.72rem; }
.map-explorer-bar .map-legend { margin-inline-start: 0; }
.map-explorer-bar .btn { margin-inline-start: auto; }
.map-explorer-canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #d7e2ea;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
}
.sq-popup-ar .leaflet-popup-content {
  font-family: "Noto Naskh Arabic", var(--font);
  text-align: right;
}
.map-legend {
  display: flex;
  gap: 12px;
  margin-inline-start: auto;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.map-legend .listed { background: var(--ok); }
.map-legend .other { background: #c43131; }
.sq-pin-wrap { background: transparent !important; border: 0 !important; }
.sq-pin {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(20, 24, 40, 0.35);
}
.sq-pin.listed { background: var(--ok); }
.sq-pin.other { background: #c43131; }
.leaflet-popup-content { font-family: var(--sans, "DM Sans", sans-serif); font-size: 0.88rem; }
.leaflet-popup-content .muted { margin: 4px 0 8px; color: var(--muted); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(109, 26, 54, 0.18);
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: var(--maroon);
  color: #fff;
}
.hero-card .pad { padding: 16px 18px 20px; }
.hero-card-map .pad {
  padding: 8px 12px 10px;
  font-size: 0.72rem;
}
.hero-card-map .pad .muted {
  font-size: 0.7rem;
  line-height: 1.35;
}
.hero-card-map .pill {
  font-size: 0.62rem;
  padding: 2px 8px;
}
.hero-card-map .map-legend {
  margin-inline-start: 0;
  margin-top: 4px;
}
.pill {
  display: inline-block;
  background: #f3e6ea;
  color: var(--maroon);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}
a.pill { text-decoration: none; }
.seo-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seo-intro { margin-top: 8px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
  margin: 0 0 14px;
  color: var(--muted);
}
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.45; }
.seo-shell { margin-top: 8px; }
.seo-shell > h1,
.seo-shell .seo-kicker + h1 { margin-bottom: 12px; }
.seo-kicker { margin: 0 0 8px; }
.seo-lede { max-width: 66ch; }
.seo-tip { margin: 16px 0 8px; }
.seo-tip p { margin: 0; color: var(--muted); }
.seo-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.seo-check li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.seo-check li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--maroon);
  flex: none;
}
.seo-related h2 { font-size: 1.35rem; }
.seo-cta-band {
  background: #f3e6ea;
  border-radius: var(--radius);
  padding: 22px 20px;
  margin: 8px 0 28px;
}
.seo-cta-band h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.seo-stepper { list-style: none; margin: 0; padding: 0; }
.seo-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.seo-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.seo-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.seo-step h3 { margin-bottom: 4px; font-size: 1.15rem; }
.seo-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.seo-docs li {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
}
.seo-disclaimer { border-inline-start: 4px solid var(--maroon); background: #f3e6ea; }
.seo-fee-note { font-size: 0.85rem; margin: 8px 0 0; }
.seo-blurb h3 { font-size: 1.15rem; margin-top: 14px; }
.seo-blurb h3:first-of-type { margin-top: 0; }
.seo-faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.seo-faq summary {
  cursor: pointer;
  font-family: var(--display);
  color: var(--navy);
  font-weight: 600;
}
.seo-faq details p { color: var(--muted); margin: 8px 0 0; }
a.seo-primer { display: block; color: inherit; text-decoration: none; }
a.seo-primer h3 { color: var(--navy); }
a.seo-primer p { color: var(--muted); margin: 8px 0 0; }
.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 auto 14px;
  max-width: 1120px;
}
.seo-footer-links a { color: var(--navy); text-decoration: none; }
.seo-footer-links a:hover { text-decoration: underline; }
.chip-link { text-decoration: none; color: inherit; }

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 5.5rem minmax(0, 1.15fr);
  gap: 10px 12px;
  align-items: end;
  background: var(--card);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 8px 0 0;
}
.search-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: stretch;
  margin: 0 0 22px;
}
.search-panel h1 { margin-bottom: 8px; }
.search-map {
  min-width: 0;
}
.search-map .hero-map-wrap {
  height: min(320px, 42vh);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.field label { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.filters .field-search,
.filters .field-fees {
  grid-column: 1 / -1;
}
.filters .field-fees {
  gap: 4px;
}
.filters .fees-amount {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.filters .field-fees input[type="range"] {
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: transparent;
  accent-color: var(--maroon);
}
.filters .field-age {
  min-width: 0;
}
.filters .field-age input {
  width: 5.5rem;
  max-width: 100%;
  padding-inline: 8px;
}
.filters.review-fields {
  grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1.3fr) minmax(8.5rem, 0.55fr) 5.25rem;
}
.filters.review-fields .field-rating select {
  padding-inline: 8px 4px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.school-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
}
.pager-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pager-pages .btn {
  min-width: 2.25rem;
  padding: 8px 10px;
  text-align: center;
}
.pager-status { margin-inline-start: auto; }
.pager [aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.school-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.school-card img { width: 100%; height: 160px; object-fit: cover; }
.school-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta { color: var(--muted); font-size: 0.85rem; }
.stars { color: var(--gold); letter-spacing: 1px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { flex: 1; text-align: center; padding: 9px 10px; }

.section { margin: 40px 0; }
.school-profile > .profile-facts { margin-top: 22px; }
.school-profile > .profile-summary + .profile-facts { margin-top: 0; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.soft {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.chart-wrap { height: 220px; }
.market-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.market-bar-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px 16px;
  align-items: baseline;
}
.market-bar-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-bar-meta span {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.market-bar-amt {
  font-weight: 700;
  color: var(--navy) !important;
  font-size: 0.9rem !important;
}
.market-bar-track {
  height: 8px;
  margin-top: 6px;
  background: #efe8e1;
  border-radius: 999px;
  overflow: hidden;
}
.market-bar-track i {
  display: block;
  height: 100%;
  background: var(--navy);
  border-radius: 999px;
}

.profile-hero { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 18px; }
.profile-identity-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.profile-hero .hero-actions { align-items: center; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--navy);
  padding: 8px 10px;
  min-height: 40px;
  font-weight: 600;
  box-shadow: none;
}
.btn-text:hover,
.btn-text:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text-icon,
.profile-outlink .ext-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.profile-contact { margin-top: 16px; }
.profile-contact-heading {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--navy);
}
.profile-contact .kv a {
  color: var(--ink);
  text-decoration: none;
}
.profile-contact .kv a:hover,
.profile-contact .kv a:focus-visible {
  color: var(--maroon);
  text-decoration: underline;
}
.profile-email-note {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.profile-contact-missing { margin: 4px 0 0; }
.profile-outbound {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.profile-outlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-outlink:hover,
.profile-outlink:focus-visible { color: var(--maroon); }
.profile-outbound .btn-quiet {
  padding: 8px 14px;
  font-size: 0.9rem;
  min-height: 40px;
}
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gallery img:first-child { min-height: 280px; grid-row: span 2; }
.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 8px 0; min-width: 0; }
.kv div > * { min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #efe8e1; border-radius: 999px; padding: 6px 10px; font-size: 0.85rem; }
.chip-has-tip { cursor: help; }
.chip-has-tip:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.chip-tip {
  position: fixed;
  z-index: 40;
  left: 0;
  top: 0;
  max-width: min(240px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--navy);
  border: 1px solid rgba(20, 52, 78, 0.12);
  border-inline-start: 3px solid var(--maroon);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 52, 78, 0.14);
  font-family: var(--font);
  pointer-events: auto;
  overflow-wrap: break-word;
}
.chip-tip-title {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: #14344e;
}
.chip-tip-gloss {
  margin: 4px 0 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(20, 52, 78, 0.72);
}
.chip-tip::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  left: var(--caret-x, 50%);
  transform: translateX(-50%);
}
.chip-tip[data-placement="above"]::after {
  top: 100%;
  border-top-color: #ffffff;
}
.chip-tip[data-placement="below"]::after {
  bottom: 100%;
  border-bottom-color: #ffffff;
}
.chip-tip[data-caret="off"]::after { display: none; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; }
th .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  margin-top: 8px;
}

.app-item { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 12px; }
.avail {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.avail-open { background: #e7f6ee; color: #1b6b3a; }
.avail-limited { background: #fff3d6; color: #8a5a00; }
.avail-high { background: #fde8e8; color: #9b1c1c; }
.avail-unknown { background: #eef1f4; color: #3d4a57; }
.avail-verified { background: #e7f6ee; color: #1b6b3a; }
.avail-estimated { background: #fff3d6; color: #8a5a00; }
.quality-when { font-size: 0.78rem; }
.reminder-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.reminder-item.urgent { background: #fde8e8; }
.reminder-item.soon { background: #fff6e8; }
.vault-box ul { margin: 10px 0 0; padding-inline-start: 18px; }
.checklist-box h2 { margin-bottom: 6px; }
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.checklist-progress {
  margin: 0;
  font-weight: 700;
  color: var(--maroon);
}
.checklist-box .progress-track { margin: 12px 0 4px; }
.checklist-disclaimer { margin: 12px 0 0; }
.checklist-list { display: grid; gap: 10px; margin-top: 14px; }
.checklist-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(140px, 0.7fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.checklist-item[data-state="have"] { border-color: #b7e0c6; background: #f4fbf7; }
.checklist-item[data-state="pending"] { border-color: #f0d7a8; }
.checklist-item[data-state="n/a"] { background: #f7f5f3; }
.checklist-item strong { display: block; color: var(--navy); margin-bottom: 4px; }
.checklist-item .btn { margin-top: 6px; min-height: 40px; }
.checklist-item .field + .field { margin-top: 8px; }
.docs-zone { display: grid; gap: 16px; }
.docs-zone > .section { margin: 0; }
.apply-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 32px;
}
.apply-confirm {
  width: min(720px, 100%);
}
.apply-confirm h1 { margin-top: 0; }
.apply-confirm .lede { max-width: none; }
.apply-school-name {
  margin: 4px 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
}
.apply-school-name a { color: var(--navy); text-decoration: none; }
.apply-school-name a:hover { text-decoration: underline; }
.apply-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.apply-chip { display: inline-flex; gap: 6px; align-items: baseline; }
.apply-chip-label { color: var(--muted); font-size: 0.82rem; }
.apply-student { max-width: 320px; }
.apply-auth-strip {
  margin: 4px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.apply-auth-strip p { margin: 0 0 10px; }
.apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.apply-actions .btn { min-height: 40px; line-height: 1.35; }
.account-empty p { margin: 0 0 8px; }
.account-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.account-empty-actions .btn { min-height: 40px; }
.app-progress-link { color: var(--navy); text-decoration: none; }
.app-progress-link:hover { text-decoration: underline; }
.metric-icon.navy { background: #e7eef4; color: var(--navy); }
.grade-table th[scope="row"] { white-space: nowrap; }
.pill.kind-advice { background: #e8eef8; color: var(--navy); }
.pill.kind-experience { background: #efe8f6; color: #5b2d8e; }
.toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  display: none;
  z-index: 2600;
  text-align: center;
}
.toast.show { display: block; }
.muted { color: var(--muted); }
.footer {
  border-top: 1px solid var(--line);
  padding: 24px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(247, 244, 241, 0.88);
}
.footer p { margin-bottom: 0; }
.footer-contact { margin-top: 6px; }
.quiet-mail { unicode-bidi: isolate; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat { min-width: 120px; }
.stat b { display: block; font-size: 1.3rem; color: var(--maroon); }
.inquiry { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.inquiry.new { border-color: var(--gold); }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 52, 78, 0.45);
  display: grid;
  place-items: center;
  z-index: 3000;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  position: relative;
  box-shadow: var(--shadow);
}
.auth-hold-card { width: min(440px, 100%); }
.auth-hold-card p { margin: 0 0 18px; line-height: 1.55; }
.auth-hold-card p:has(+ .auth-hold-contact) { margin-bottom: 8px; }
.auth-hold-card p.auth-hold-contact {
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-tabs .btn { padding: 8px 12px; font-size: 0.88rem; }
#auth-school-filter { margin-bottom: 8px; }
#auth-password-hint { margin: 6px 0 0; font-size: 0.8rem; }
#auth-new-school-field { margin-top: 10px; margin-bottom: 0; }
#portal-registration { margin: 12px 0 20px; }
#portal-registration p { margin: 0 0 6px; }
#portal-registration p:last-child { margin: 0; }
.modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
}
.modal-card .field { margin-bottom: 10px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#auth-error { color: var(--maroon); min-height: 1.2em; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.admin-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #efe8e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-tabs a.active { background: var(--maroon); color: #fff; }
.my-dash { display: flex; flex-direction: column; gap: 24px; }
.my-dash-title { margin-bottom: 4px; }
.my-dash-sub { margin: 0; max-width: 52ch; }
.my-dash-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.metric-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.metric-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.metric-icon svg { width: 22px; height: 22px; display: block; }
.metric-icon.blue { background: #e8f1ff; color: #4f8ef7; }
.metric-icon.green { background: #e6f8ef; color: #2fbf71; }
.metric-icon.yellow { background: #fff4cc; color: #e0a800; }
.metric-icon.purple { background: #f3e8ff; color: #a78bfa; }
.metric-copy { min-width: 0; }
.metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5b6470;
  line-height: 1.25;
  text-align: start;
}
.metric-value {
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 800;
  color: #1c1b1f;
  line-height: 1.15;
  text-align: start;
  margin-top: 2px;
}
.my-dash-columns {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 20px;
  align-items: start;
}
.my-dash-panel { padding: 20px; }
.my-dash-panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.app-progress-list { display: flex; flex-direction: column; gap: 12px; }
.app-progress-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}
.app-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.app-progress-head h3 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.badge-status {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-status.submitted { background: #e5f4eb; color: #146038; }
.badge-status.progress { background: #f7efd4; color: #8a6a12; }
.badge-status.draft { background: #eeeae6; color: #5c5650; }
.badge-status.urgent { background: #f3e6ea; color: var(--maroon); }
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #efe8e1;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
}
.progress-pct { font-size: 0.8rem; font-weight: 700; color: var(--navy); min-width: 2.6em; text-align: end; }
.quick-actions { display: flex; flex-direction: column; gap: 8px; }
.quick-actions .btn { width: 100%; text-align: center; }
.deadline-list { display: flex; flex-direction: column; gap: 10px; }
.deadline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.deadline-item:last-child { border-bottom: 0; padding-bottom: 0; }
.deadline-item strong { display: block; color: var(--navy); }
.tip-box {
  background: #efe8e1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.tip-box:last-child { margin-bottom: 0; }
.tip-box strong { display: block; margin-bottom: 4px; color: var(--maroon); font-size: 0.82rem; }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-inline-end: 6px;
}

@media (max-width: 920px) {
  .hero, .profile-hero, .cards-3, .app-item, .checklist-item, .my-dash-columns, .my-dash-metrics, .search-top { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; min-width: 0; }
  .filters.review-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(7.5rem, 0.7fr) 4.75rem;
  }
  .school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr; }
  .gallery img:first-child { min-height: 180px; grid-row: auto; }
  .nav { position: relative; margin-inline-start: auto; width: auto; order: 0; flex: 0 0 auto; }
  .app-bar {
    flex-wrap: nowrap;
    position: relative;
    padding: 8px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
    align-items: center;
  }
  .brand-logo { height: 64px; max-width: min(230px, 58vw); }
  .nav-toggle { display: inline-flex; }
  .nav-scroll {
    display: none;
    position: absolute;
    z-index: 6;
    inset-inline: auto;
    inset-inline-end: 0;
    top: 100%;
    width: max-content;
    max-width: calc(100vw - 24px);
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0 12px;
    background: rgba(247, 244, 241, 0.35);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 52, 78, 0.12);
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .nav.is-open .nav-scroll { display: flex; }
  .nav-scroll.can-scroll-start,
  .nav-scroll.can-scroll-end,
  .nav-scroll.can-scroll-start.can-scroll-end {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .nav-scroll > a,
  .nav-scroll > .account-menu,
  #account-btn,
  #schools-btn {
    width: max-content;
    max-width: 100%;
    align-self: flex-end;
    text-align: center;
  }
  .field input, .field select, .field textarea { font-size: 16px; }
  .filters .field-fees input[type="range"] { font-size: inherit; }
  table { font-size: 0.85rem; display: block; overflow-x: auto; max-width: 100%; }
  .modal {
    z-index: 3000;
    top: var(--chrome-h, 11rem);
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
  }
  .modal-card {
    width: 100%;
    max-height: calc(100dvh - var(--chrome-h, 11rem));
    height: auto;
    border-radius: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .auth-tabs .btn { min-height: 44px; }
  .wrap { padding: 16px 16px 48px; }
  .search-map .hero-map-wrap { height: min(280px, 46vh); }
}
@media (max-width: 760px) {
  .quote-line { font-size: 0.8rem; line-height: 1.35; }
  .quote-bar { min-height: 0; padding-top: 5px; padding-bottom: 5px; }
  .nav a,
  #account-btn,
  #schools-btn {
    padding: 8px 12px;
    min-height: 40px;
    font-size: 0.88rem;
  }
  .map-expand-btn { min-height: 40px; padding: 8px 14px; font-size: 0.85rem; }
}
@media (max-width: 800px) {
  .seo-docs { grid-template-columns: 1fr; }
}
@media (min-width: 800px) {
  .seo-check { grid-template-columns: 1fr 1fr; }
  .seo-docs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .seo-shell .hero-actions,
  .path-stage-copy .hero-actions { flex-direction: column; align-items: stretch; }
  .seo-shell .hero-actions .btn,
  .path-stage-copy .hero-actions .btn { width: 100%; text-align: center; }
  .profile-hero .hero-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .profile-hero .hero-actions > .btn-primary,
  .profile-hero .hero-actions > .btn-ghost {
    width: 100%;
    max-width: none;
    align-self: stretch;
    text-align: center;
  }
  .profile-hero .hero-actions > .btn-text {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
    text-align: start;
  }
}
@media (max-width: 560px) {
  .name-row { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filters.review-fields { grid-template-columns: minmax(0, 1fr) 4.75rem; }
  .filters.review-fields .field-author,
  .filters.review-fields .field-school { grid-column: 1 / -1; }
  .filters .field-age { justify-self: start; }
  .school-grid { grid-template-columns: 1fr; }
  .market-bar-meta { grid-template-columns: 1fr auto; }
  .market-bar-amt { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 920px) {
  .my-dash-metrics { grid-template-columns: 1fr 1fr; }
  .cards-3.stats-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 921px) {
  .cards-3.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .docs-zone.has-checklist {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
  .apply-actions { flex-wrap: nowrap; }
}
@media (max-width: 920px) {
  .apply-confirm .apply-actions { flex-direction: column; align-items: stretch; }
  .apply-confirm .apply-actions .btn { width: 100%; text-align: center; }
}

.compare-mobile { display: none; }
.compare-desktop { display: block; }
.compare-card {
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--chrome-h, 0px) + 4.75rem);
}
.compare-card-head { display: flex; flex-direction: column; gap: 8px; }
.compare-name {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.compare-name:hover,
.compare-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.compare-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compare-listing-quality:empty {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.compare-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 4px;
}
.compare-actions > .btn,
.compare-actions > .compare-profile,
.compare-desktop-actions .btn,
.compare-jump,
.compare-more,
.compare-sticky .btn {
  min-height: 40px;
}
.compare-actions > .btn-primary,
.compare-actions > .compare-profile {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.compare-actions-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.compare-remove { color: var(--muted); }
.compare-remove:hover,
.compare-remove:focus-visible { color: var(--maroon); }
.compare-kv .compare-k { color: var(--muted); font-weight: 600; }
.compare-kv .compare-v { color: var(--ink); font-weight: 600; text-align: end; }
.compare-kv div { align-items: flex-start; }
.compare-kv .compare-v:has(.compare-list),
.compare-kv .compare-v:has(.avail) { font-weight: 500; }
.compare-list { align-items: center; }
.compare-overflow { display: inline-flex; align-items: center; gap: 2px; }
.compare-more { padding: 6px 8px; }
.compare-more-count { font-weight: 700; }
.compare-jumps {
  position: sticky;
  top: var(--chrome-h, 0px);
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 8px 0;
  background: rgba(247, 244, 241, 0.96);
}
.compare-jump {
  flex: 0 0 auto;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #efe8e1;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  cursor: pointer;
}
.compare-jump[aria-current="true"] {
  background: var(--maroon);
  color: var(--logo-gold);
}
.compare-jump:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.compare-table {
  width: 100%;
  table-layout: fixed;
  overflow: visible;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  background: var(--card);
}
.compare-table th,
.compare-table td {
  overflow-wrap: anywhere;
  background: var(--card);
  color: var(--ink);
}
.compare-table thead th {
  position: sticky;
  top: var(--chrome-h, 0px);
  z-index: 2;
  background: var(--card);
  color: var(--navy);
  box-shadow: inset 0 -1px 0 var(--line);
}
.compare-table thead th:first-child,
.compare-table tbody th {
  width: 9.75rem;
  position: sticky;
  inset-inline-start: 0;
  z-index: 3;
  background: var(--card);
  color: var(--navy);
  font-weight: 700;
  border-inline-end: 1px solid var(--line);
}
.compare-table thead th:first-child { z-index: 4; }
.compare-table th .btn {
  color: var(--navy);
  border-color: var(--line);
  background: transparent;
  margin-top: 0;
}
.compare-table th .btn-primary {
  color: #fff;
  background: var(--maroon);
  border-color: transparent;
}
.compare-table th .btn-text { color: var(--navy); border: 0; }
.compare-table th .compare-remove { color: var(--muted); }
.compare-school-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.compare-desktop .compare-name { font-size: 1.02rem; }
.compare-desktop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.compare-apply-short {
  padding: 6px 12px;
  font-size: 0.85rem;
}
.compare-desktop-actions .compare-save,
.compare-desktop-actions .compare-remove {
  padding: 6px 8px;
}
.compare-desktop-actions .compare-save {
  min-width: 40px;
  justify-content: center;
}
.compare-rating { letter-spacing: 0.01em; }
.compare-sticky-stack {
  position: fixed;
  z-index: 2400;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.compare-sticky-stack > .compare-cap-gate-slot,
.compare-sticky-stack > .compare-sticky {
  pointer-events: auto;
}
.compare-sticky-stack > .compare-cap-gate-slot {
  width: min(100%, calc(100vw - 24px));
}
.compare-cap-gate-slot:empty { display: none; }
.compare-sticky {
  position: fixed;
  z-index: 2400;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: #f3e6ea;
  color: var(--navy);
  border-top: 1px solid #e4cfd6;
  box-shadow: 0 -8px 24px rgba(20, 52, 78, 0.08);
}
.compare-sticky-stack > .compare-sticky {
  position: relative;
  inset: auto;
  width: 100%;
  z-index: 1;
}
.compare-sticky .btn-primary { min-width: 11rem; }
body.has-compare-bar { padding-bottom: var(--compare-stack-h, calc(72px + env(safe-area-inset-bottom))); }
body.has-compare-bar .toast { bottom: calc(var(--compare-stack-h, calc(72px + env(safe-area-inset-bottom))) + 8px); }

.compare-cap-gate {
  width: 100%;
  margin: 0 0 8px;
  padding: 14px 16px;
  background: var(--card);
  color: var(--navy);
  border: 1px solid rgba(20, 52, 78, 0.12);
  border-inline-start: 3px solid var(--maroon);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 52, 78, 0.14);
  font-family: var(--font);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 6px;
  align-items: start;
}
.compare-cap-gate--tray {
  max-height: 40vh;
  overflow: auto;
  animation: compare-cap-in 180ms ease;
}
.compare-cap-gate--page {
  width: 100%;
  max-width: 42rem;
  margin: 16px 0;
  padding: 16px 18px;
}
.compare-cap-gate--inline {
  width: 100%;
  margin: 12px 0 0;
}
.compare-cap-gate-icon {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  color: var(--maroon);
  margin-top: 1px;
}
.compare-cap-gate-icon svg { display: block; }
.compare-cap-gate-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: var(--navy);
}
.compare-cap-gate--page .compare-cap-gate-title { font-size: 16px; }
.compare-cap-gate-body {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.compare-cap-gate--page .compare-cap-gate-body { font-size: 14px; }
.compare-cap-gate-benefits {
  grid-column: 1 / -1;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  min-height: 0;
}
.compare-cap-gate--tray .compare-cap-gate-benefits {
  max-height: 22vh;
  overflow: auto;
}
.compare-cap-gate-benefits li {
  position: relative;
  padding-inline-start: 14px;
  font-size: 13px;
  line-height: 1.4;
  text-align: start;
  color: var(--navy);
}
.compare-cap-gate-benefits li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maroon);
}
.compare-cap-gate-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.compare-cap-gate-actions .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.subscribe-stub {
  margin-top: 16px;
  max-width: 40rem;
}
.subscribe-stub h1,
.subscribe-stub h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
}
.subscribe-stub p { margin: 0; }
@keyframes compare-cap-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .compare-cap-gate { animation: none; }
  .nav-toggle-icon span { transition: none; }
}
@media (max-width: 920px) {
  .compare-mobile { display: block; }
  .compare-desktop { display: none; }
}
@media (max-width: 640px) {
  .compare-actions > .btn-primary,
  .compare-actions > .compare-profile { width: 100%; }
}
@media (min-width: 641px) and (max-width: 920px) {
  .compare-mobile .compare-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .compare-mobile .compare-actions-utility { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .compare-card { padding: 14px; }
  .compare-name { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  .compare-card { scroll-behavior: auto; }
}
