/* components.css — the hand-written MeroABC component classes (np-*, detail-*, cmp-*,
   .action-circle, .btn-brand, auth-*, mobile-bottom-nav, ...). Fully editable; this is our CSS.
   Loads after base.css. */
.\!container {
  width: 100% !important;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}

.site-logo-img {
  transition: opacity .15s ease;
  filter: none;
}

.site-logo-img--reverse {
  display: none;
}

.dark .site-logo-img--standard {
  display: none !important;
}

@media (min-width: 640px) {
  .dark .site-logo-img--reverse {
    display: block;
  }
}

.edu-type-icon {
  display: inline-block;
  width: max(1.08rem, 1em);
  height: max(1.08rem, 1em);
  flex-shrink: 0;
  background-color: currentColor;
  vertical-align: -0.18em;
  -webkit-mask: var(--edu-type-icon-mask) center / contain no-repeat;
  mask: var(--edu-type-icon-mask) center / contain no-repeat;
}

.edu-type-icon--school {
  --edu-type-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2021h18%27%2F%3E%3Cpath%20d%3D%27M5%2021V9l7-4%207%204v12%27%2F%3E%3Cpath%20d%3D%27M9%2021v-5h6v5%27%2F%3E%3Cpath%20d%3D%27M8.5%2012h1%27%2F%3E%3Cpath%20d%3D%27M14.5%2012h1%27%2F%3E%3C%2Fsvg%3E");
}

.edu-type-icon--plus-two {
  --edu-type-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%2021V5.8c0-1%20.8-1.8%201.8-1.8h8.4c1%200%201.8.8%201.8%201.8V21%27%2F%3E%3Cpath%20d%3D%27M4%2021h16%27%2F%3E%3Cpath%20d%3D%27M9%208h2%27%2F%3E%3Cpath%20d%3D%27M13%208h2%27%2F%3E%3Cpath%20d%3D%27M9%2012h2%27%2F%3E%3Cpath%20d%3D%27M13%2012h2%27%2F%3E%3Cpath%20d%3D%27M9%2016h2%27%2F%3E%3Cpath%20d%3D%27M13%2016h2%27%2F%3E%3Cpath%20d%3D%27M11%2021v-3h2v3%27%2F%3E%3C%2Fsvg%3E");
}

.edu-type-icon--a-level {
  --edu-type-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%208l9-4%209%204-9%204-9-4z%27%2F%3E%3Cpath%20d%3D%27M7%2010.5v4.2c0%201.8%202.2%203.3%205%203.3s5-1.5%205-3.3v-4.2%27%2F%3E%3Cpath%20d%3D%27M21%208v6%27%2F%3E%3C%2Fsvg%3E");
}

.edu-type-icon--college {
  --edu-type-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.9'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M22%2010%2012%205%202%2010l10%205%2010-5z'%2F%3E%3Cpath%20d%3D'M6%2012.5V16c0%202%202.7%203.5%206%203.5s6-1.5%206-3.5v-3.5'%2F%3E%3Cpath%20d%3D'M22%2010v5'%2F%3E%3Cpath%20d%3D'M21%2017h2'%2F%3E%3C%2Fsvg%3E");
}

.edu-type-icon--technical {
  --edu-type-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M14.7%206.3a4%204%200%200%200-5%205L4%2017v3h3l5.7-5.7a4%204%200%200%200%205-5l-2.8%202.8-2.9-2.9%202.7-2.9z%27%2F%3E%3C%2Fsvg%3E");
}

.edu-type-icon--university {
  --edu-type-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%209l9-5%209%205%27%2F%3E%3Cpath%20d%3D%27M4%2010h16%27%2F%3E%3Cpath%20d%3D%27M6%2010v8%27%2F%3E%3Cpath%20d%3D%27M10%2010v8%27%2F%3E%3Cpath%20d%3D%27M14%2010v8%27%2F%3E%3Cpath%20d%3D%27M18%2010v8%27%2F%3E%3Cpath%20d%3D%27M4%2018h16%27%2F%3E%3Cpath%20d%3D%27M3%2021h18%27%2F%3E%3C%2Fsvg%3E");
}

.edu-type-icon--generic {
  --edu-type-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%274%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%2713%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%2713%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3C%2Fsvg%3E");
}

/* Mobile primary navigation */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1285;
  padding: 0;
  pointer-events: none;
}

@media (max-width: 1023.98px) {
  .mobile-bottom-nav {
    display: block;
  }
}

.mobile-bottom-nav__shell {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: .15rem;
  width: 100%;
  margin: 0;
  padding: .42rem .5rem calc(.42rem + env(safe-area-inset-bottom));
  border: 1px solid rgba(206, 208, 212, .9);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  backdrop-filter: blur(16px);
}

.dark .mobile-bottom-nav__shell {
  border-color: rgba(78, 79, 80, .9);
  background: rgba(36, 37, 38, .96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36);
}

.mobile-bottom-nav__item {
  min-width: 0;
  min-height: 3.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  border: 1px solid transparent;
  border-radius: .625rem;
  color: #64748b;
  text-align: center;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.mobile-bottom-nav__item:hover,
  .mobile-bottom-nav__item:focus-visible {
  color: #334155;
  border-color: rgba(148, 163, 184, .24);
  background: rgba(15, 23, 42, .05);
  outline: none;
}

.mobile-bottom-nav__item--disabled,
  .mobile-bottom-nav__item:disabled {
  cursor: not-allowed;
  color: #9CA3AF;
  opacity: .72;
}

.mobile-bottom-nav__item--disabled:hover,
  .mobile-bottom-nav__item--disabled:focus-visible,
  .mobile-bottom-nav__item:disabled:hover,
  .mobile-bottom-nav__item:disabled:focus-visible {
  color: #9CA3AF;
  border-color: transparent;
  background: transparent;
  outline: none;
  transform: none;
  box-shadow: none;
}

.dark .mobile-bottom-nav__item {
  color: #9da9bb;
}

.dark .mobile-bottom-nav__item:hover,
  .dark .mobile-bottom-nav__item:focus-visible {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, .18);
  background: rgba(148, 163, 184, .10);
}

.dark .mobile-bottom-nav__item--disabled,
  .dark .mobile-bottom-nav__item:disabled {
  color: #6B7280;
  opacity: .76;
}

.dark .mobile-bottom-nav__item--disabled:hover,
  .dark .mobile-bottom-nav__item--disabled:focus-visible,
  .dark .mobile-bottom-nav__item:disabled:hover,
  .dark .mobile-bottom-nav__item:disabled:focus-visible {
  color: #6B7280;
  border-color: transparent;
  background: transparent;
}

.mobile-bottom-nav__item.is-active {
  border-color: #C9D4E5;
  background: #EFF4FB;
  color: #050505;
  box-shadow: none;
}

.mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon {
  color: #0057FF;
}

.dark .mobile-bottom-nav__item.is-active {
  border-color: #4E4F50;
  background: #3A3B3C;
  color: #E4E6EB;
  box-shadow: none;
}

.dark .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon {
  color: #2D88FF;
}

.mobile-bottom-nav__avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  -o-object-fit: cover;
     object-fit: cover;
}

.mobile-bottom-nav__avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0057FF;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}

.mobile-bottom-nav__icon {
  font-size: 1rem;
  line-height: 1;
}

.mobile-bottom-nav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .66rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  background: #0057FF;
  box-shadow: 0 4px 12px rgba(0,87,255,0.22);
}

.btn-brand:hover {
  background: #0047D6;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0,87,255,0.26);
  transform: translateY(-1px);
}

.btn-brand-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  background: #0057FF;
  box-shadow: 0 3px 10px rgba(0,87,255,0.20);
}

.btn-brand-sm:hover {
  background: #0047D6;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(0,87,255,0.24);
  transform: translateY(-1px);
}

.btn-brand-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(0 87 255 / var(--tw-border-opacity));
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(0 87 255 / var(--tw-text-opacity));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.dark .btn-brand-outline {
  border-color: #2D88FF;
  color: #2D88FF;
}

.btn-brand-outline:hover
  a:hover *,.btn-brand-outline:hover
  button:hover * {
  color: inherit;
}

.btn-brand-outline:hover
  a:hover,.btn-brand-outline:hover
  button:hover {
  color: #fff;
}

.btn-brand-outline:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(0 87 255 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.dark .btn-brand-outline:hover {
  background-color: #2D88FF;
}

.btn-brand-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(0 87 255 / var(--tw-border-opacity));
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(0 87 255 / var(--tw-text-opacity));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.dark .btn-brand-outline-sm {
  border-color: #2D88FF;
  color: #2D88FF;
}

.btn-brand-outline-sm:hover
  a:hover *,.btn-brand-outline-sm:hover
  button:hover * {
  color: inherit;
}

.btn-brand-outline-sm:hover
  a:hover,.btn-brand-outline-sm:hover
  button:hover {
  color: #fff;
}

.btn-brand-outline-sm:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(0 87 255 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.dark .btn-brand-outline-sm:hover {
  background-color: #2D88FF;
}

.btn-brand:hover *,
  .btn-brand-sm:hover *,
  .btn-brand-outline:hover *,
  .btn-brand-outline-sm:hover *,
  .home-hero-action-primary:hover *,
  a.bg-brand:hover *,
  button.bg-brand:hover *,
  a.hover\:bg-brand:hover *,
  button.hover\:bg-brand:hover *,
  a.hover\:bg-brand-dark:hover *,
  button.hover\:bg-brand-dark:hover * {
  color: inherit !important;
}

.btn-brand-outline:hover,
  .btn-brand-outline-sm:hover,
  a.bg-brand:hover,
  button.bg-brand:hover,
  a.hover\:bg-brand:hover,
  button.hover\:bg-brand:hover,
  a.hover\:bg-brand-dark:hover,
  button.hover\:bg-brand-dark:hover {
  color: #fff !important;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.btn-ghost:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}

.btn-ghost:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity));
}

.btn-ghost:hover:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}

/* Account auth pages */

.auth-page {
  min-height: 100vh;
  background: #EFF4FB;
}

.dark .auth-page {
  background: #18191A;
}

.dark .auth-topbar {
  background: rgba(36,37,38,0.88);
}

.auth-shell {
  width: 100%;
  max-width: 72rem;
  overflow: hidden;
  border: 1px solid #E3EAF5;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15,23,42,0.10);
}

.dark .auth-shell {
  border-color: #3A3B3C;
  background: #242526;
  box-shadow: 0 18px 44px rgba(0,0,0,0.24);
}

.auth-side {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.auth-side-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: 72% center;
     object-position: 72% center;
  opacity: 0.82;
  filter: saturate(0.92) contrast(1.02);
}

.auth-side-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.58);
}

.auth-side-glow {
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0;
}

.auth-side-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: -moz-fit-content;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.86);
  padding: 0.35rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-proof-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.09);
  padding: 0.8rem 0.9rem;
  color: rgba(255,255,255,0.84);
  backdrop-filter: blur(12px);
}

.auth-form-panel {
  background: #fff;
}

.dark .auth-form-panel {
  background: #242526;
}

.auth-input {
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid rgba(148,163,184,0.36);
  background: rgba(255,255,255,0.92);
  color: var(--c-text);
  font-size: 0.9375rem;
  outline: none;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-input:focus {
  border-color: var(--c-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,87,255,0.14);
}

.auth-input.auth-input-invalid {
  border-color: #f87171;
}

.auth-input.auth-input-invalid:focus {
  box-shadow: 0 0 0 3px rgba(248,113,113,0.15);
}

.dark .auth-input {
  border-color: #3A3B3C;
  background: #18191A;
  color: #E4E6EB;
}

.dark .auth-input:focus {
  border-color: var(--c-brand);
  background: #18191A;
}

.auth-primary-btn {
  width: 100%;
  border-radius: 0.625rem;
  background: var(--c-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.875rem 1rem;
  box-shadow: 0 4px 12px rgba(0,87,255,0.22);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-primary-btn:hover {
  background: var(--c-brand-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,87,255,0.26);
  transform: translateY(-1px);
}

.auth-primary-btn:active {
  transform: translateY(0);
}

.auth-card {
  border: 1px solid var(--c-border);
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.dark .auth-card {
  background: #242526;
  box-shadow: 0 16px 38px rgba(0,0,0,0.22);
}

.flow-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  padding: 0;
  white-space: nowrap;
}

.flow-step-circle {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 800;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dark .flow-step-circle {
  background: rgba(31,41,55,0.9);
  color: #9ca3af;
}

.flow-step.is-active {
  color: var(--c-brand);
  font-weight: 700;
}

.flow-step.is-active .flow-step-circle {
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,87,255,0.22);
}

.flow-step.is-complete {
  color: var(--c-brand-dark);
  font-weight: 700;
}

.flow-step.is-complete .flow-step-circle {
  background: var(--c-brand);
  color: #fff;
  box-shadow: none;
}

.flow-step-line {
  width: 2rem;
  height: 1px;
  background: #e5e7eb;
}

.dark .flow-step-line {
  background: #374151;
}

.flow-step-line.is-complete {
  background: #0057FF;
}

/* ── Smart Match wizard ──────────────────────────────── */

/* Story-style segmented progress */

.wiz-progress {
  display: flex;
  gap: 0.4rem;
}

.wiz-seg {
  flex: 1;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--c-border);
  cursor: default;
  transition: background-color .25s ease;
}

.wiz-seg.is-done {
  background: var(--c-brand);
  cursor: pointer;
}

.wiz-seg.is-active {
  background: var(--c-brand);
}

.wiz-label {
  margin-bottom: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Tappable option card — single visual language for every choice */

.wiz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--c-border-strong);
  border-radius: 0.75rem;
  background: var(--c-bg-card);
  padding: 0.85rem 1rem;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.wiz-card:hover {
  border-color: var(--c-brand);
}

.wiz-card.is-selected {
  border-color: var(--c-brand);
  background: #F0F5FF;
  box-shadow: inset 0 0 0 1px var(--c-brand);
}

.dark .wiz-card {
  background: #242526;
}

.dark .wiz-card.is-selected {
  background: rgba(0,87,255,0.12);
}

.wiz-card--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wiz-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}

.wiz-card-hint {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--c-text-3);
}

/* Radio indicator for row cards */

.wiz-radio {
  position: relative;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--c-border-strong);
  transition: border-color .15s ease;
}

.wiz-card.is-selected .wiz-radio {
  border-color: var(--c-brand);
}

.wiz-card.is-selected .wiz-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--c-brand);
}

/* Text input shell — same shape as the option cards */

.wiz-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--c-border-strong);
  border-radius: 0.75rem;
  background: var(--c-bg-card);
  padding: 0.8rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.dark .wiz-input {
  background: #242526;
}

.wiz-input:focus-within {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.12);
}

/* ── Card action circles (like / compare / enquire) ──── */

/* Big, obvious, labelled — designed for non-technical parents. */

.action-circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--c-border-strong);
  background: var(--c-bg-card);
  color: #64748B;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(5,10,30,0.05);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.action-circle:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  transform: translateY(-1px);
}

.dark .action-circle {
  color: #B0B3B8;
}

.action-circle.business-like-toggle,
  .action-circle.compare-toggle {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}

.action-circle.business-like-toggle .fas,
  .action-circle.compare-toggle .fas {
  font-size: 0.75rem;
}

.action-circle.business-like-toggle .action-count {
  top: -5px;
  right: -7px;
  min-width: 0.95rem;
  height: 0.95rem;
  font-size: 0.58rem;
}

.action-circle--brand {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,87,255,0.25);
}

.action-circle--brand:hover {
  background: var(--c-brand-dark);
  color: #fff;
}

.action-circle--warn {
  border-color: #F59E0B;
  background: #F59E0B;
  color: #fff;
}

.action-circle--warn:hover {
  background: #D97706;
  color: #fff;
}

/* Safety net: enquiry JS may inject label text meant for the old
     rectangular buttons — circles are icon-only, so mute stray text. */

.action-circle.business-enquiry-trigger,
  .action-circle.business-enquiry-profile-link {
  font-size: 0;
}

.action-circle.business-enquiry-trigger .fas,
  .action-circle.business-enquiry-profile-link .fas,
  .action-circle.business-enquiry-trigger svg,
  .action-circle.business-enquiry-profile-link svg {
  font-size: 0.875rem;
}

.action-circle-label {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-text-3);
  white-space: nowrap;
}

.action-count {
  position: absolute;
  top: -4px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--c-bg-card);
}

.dark .action-count {
  background: #E4E6EB;
  color: #18191A;
}

/* ── Compare bucket ──────────────────────────────────── */

/* Card toggle: + becomes a blue ✓ when added */

.compare-toggle .compare-icon-added {
  display: none;
}

.compare-toggle.is-active {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,87,255,0.25);
}

.compare-toggle.is-active:hover {
  background: var(--c-brand-dark);
  color: #fff;
}

.compare-toggle.is-active .compare-icon-add {
  display: none;
}

.compare-toggle.is-active .compare-icon-added {
  display: inline;
}

.compare-label-added {
  display: none;
  color: var(--c-brand);
}

.compare-toggle .compare-label-added {
  display: none;
}

.compare-toggle.is-active .compare-label-add {
  display: none;
}

.compare-toggle.is-active .compare-label-added {
  display: inline;
  color: inherit;
}

.compare-toggle.is-active + .action-circle-label .compare-label-add {
  display: none;
}

.compare-toggle.is-active + .action-circle-label .compare-label-added {
  display: inline;
}

/* Floating bucket (desktop only — mobile uses the bottom nav) */

.cmp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1280;
  display: none;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #050505, #0B1020 70%);
  color: #fff;
  padding: 0.85rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(5,10,30,0.35), 0 2px 8px rgba(5,10,30,0.2);
  transition: transform .15s ease, box-shadow .15s ease;
}

@media (min-width: 1024px) {
  .cmp-fab {
    display: inline-flex;
  }
}

.cmp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(5,10,30,0.4), 0 2px 8px rgba(5,10,30,0.2);
}

.cmp-fab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Red count on the mobile bottom nav */

.mobile-bottom-nav__badge {
  position: absolute;
  top: -5px;
  right: -11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.95);
}

.dark .mobile-bottom-nav__badge {
  box-shadow: 0 0 0 2px rgba(36,37,38,0.96);
}

/* Full-page deck panel — expands from the bottom-right like a chat window */

.cmp-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-bg);
  transform-origin: bottom right;
  animation: cmp-pop-in .35s cubic-bezier(.16,1,.3,1) both;
}

@media (min-width: 640px) {
  .cmp-panel {
    inset: 1rem;
    border: 1px solid var(--c-border);
    border-radius: 0.875rem;
    box-shadow: 0 40px 120px rgba(0,0,0,0.45);
  }
}

@media (min-width: 1280px) {
  .cmp-panel {
    inset: 1.5rem max(2.5rem, calc((100vw - 1280px) / 2));
  }
}

.cmp-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #050505 0%, #0B1020 55%, #0A1A3F 100%);
  padding: 0.9rem 1.25rem;
}

.cmp-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.cmp-close-btn:hover {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.14);
  color: #fff;
  transform: translateY(-1px);
}

.cmp-close-btn:active {
  transform: translateY(0);
}

/* Deck grid */

/* Solid edge-to-edge spec table — no floating sheet, no gaps */

.cmp-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
  background: var(--c-bg-card);
}

.cmp-sheet {
  min-width: 100%;
  width: -moz-max-content;
  width: max-content;
  background: var(--c-bg-card);
}

.cmp-grid {
  display: grid;
  perspective: 1100px;
  /* Mobile: no label column — labels become full-width bands. */
  grid-template-columns: repeat(var(--cmp-cols, 1), minmax(150px, 1fr));
}

@media (min-width: 640px) {
  .cmp-grid {
    grid-template-columns: minmax(104px, 132px) repeat(var(--cmp-cols, 1), minmax(196px, 1fr));
  }
}

.cmp-corner {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 3;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border-strong);
  border-right: 1px solid var(--c-border);
}

.dark .cmp-corner {
  background: #0E1626;
}

@media (min-width: 640px) {
  .cmp-corner {
    display: block;
  }
}

.cmp-col-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border-strong);
  padding: 0.7rem 0.6rem 0.6rem;
  animation: cmp-col-in .5s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--col-i, 0) * 80ms);
}

.dark .cmp-col-head {
  background: #0E1626;
}

.cmp-col-head + .cmp-col-head {
  border-left: 1px solid var(--c-border);
}

.cmp-col-head img {
  width: 40px;
  height: 40px;
  -o-object-fit: contain;
     object-fit: contain;
  border: 1px solid var(--c-border);
  border-radius: 0.625rem;
  background: #fff;
}

@media (min-width: 640px) {
  .cmp-col-head {
    border-left: 1px solid var(--c-border);
    padding: 0.8rem 0.75rem 0.7rem;
  }

  .cmp-col-head img {
    width: 44px;
    height: 44px;
  }
}

.cmp-col-name {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}

.cmp-col-name:hover {
  color: var(--c-brand);
}

.cmp-col-city {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.cmp-col-action-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-height: 1.7rem;
}

.cmp-col-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.9);
  color: #B42318;
  padding: 0.34rem 0.58rem;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(5,10,30,0.04);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.cmp-col-remove .fas {
  font-size: 0.68rem;
}

.cmp-col-remove:hover {
  border-color: rgba(239,68,68,0.42);
  background: #FEF2F2;
  color: #DC2626;
  box-shadow: 0 4px 12px rgba(220,38,38,0.12);
  transform: translateY(-1px);
}

.cmp-col-remove:active {
  transform: translateY(0);
}

.dark .cmp-col-remove {
  border-color: rgba(248,113,113,0.26);
  background: rgba(127,29,29,0.16);
  color: #FCA5A5;
  box-shadow: none;
}

.dark .cmp-col-remove:hover {
  border-color: rgba(248,113,113,0.42);
  background: rgba(127,29,29,0.28);
  color: #FECACA;
}

.cmp-label {
  /* Mobile: full-width band above each metric row */
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.dark .cmp-label {
  background: #0E1626;
}

/* Band text stays in view while columns scroll sideways */

.cmp-label > span {
  display: inline-block;
  position: sticky;
  left: 0.9rem;
}

@media (min-width: 640px) {
  .cmp-label {
    grid-column: auto;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--c-bg-soft);
    border-right: 1px solid var(--c-border);
    padding: 0.7rem 0.85rem;
  }

  .dark .cmp-label {
    background: #0E1626;
  }

  .cmp-label > span {
    position: static;
  }
}

.cmp-cell {
  border-bottom: 1px solid var(--c-border);
  border-left: 1px solid var(--c-border);
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-text-2);
  background: var(--c-bg-card);
}

.cmp-cell:nth-child(2) {
  border-left: 0;
}

@media (min-width: 640px) {
  .cmp-cell:nth-child(2) {
    border-left: 1px solid var(--c-border);
  }
}

.cmp-cell--actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.cmp-view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-text-3);
  transition: color .15s ease;
}

.cmp-view-link:hover {
  color: var(--c-brand);
}

.cmp-best {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
  border-radius: 999px;
  background: rgba(22,163,74,0.12);
  color: var(--c-leaf);
  padding: 0.15rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--c-border-strong);
  padding: 0.2rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-text-3);
}

.cmp-pill--leaf {
  border-color: rgba(22,163,74,0.3);
  background: rgba(22,163,74,0.08);
  color: var(--c-leaf);
}

.cmp-muted {
  color: var(--c-text-muted);
}

/* Anzo mini icon */

.icon-mini {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(0,87,255,0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FF 100%);
  box-shadow: 0 8px 20px rgba(5,10,30,0.12), 0 1px 2px rgba(5,10,30,0.06);
}

.dark .icon-mini {
  border-color: rgba(176,179,184,0.22);
  background: linear-gradient(180deg, #F5F6F7 0%, #E4E6EB 100%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.icon-mini img {
  display: block;
  width: 76%;
  height: 76%;
  -o-object-fit: contain;
     object-fit: contain;
  transform: translateY(1px);
}

.icon-mini--xs {
  width: 28px;
  height: 28px;
}

.icon-mini--sm {
  width: 36px;
  height: 36px;
}

.icon-mini--md {
  width: 52px;
  height: 52px;
}

.icon-mini--lg {
  width: 84px;
  height: 84px;
}

.cmp-panel .cmp-anzo-bar .icon-mini--md {
  animation: icon-mini-roll-in 1.25s cubic-bezier(.16,1,.3,1) .16s both;
}

.cmp-anzo-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  padding: 0.85rem;
}

.dark .cmp-anzo-bar {
  background: #242526;
}

.cmp-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: 0.875rem;
  border-bottom-left-radius: 4px;
  background: var(--c-bg-card);
  padding: 0.65rem 0.85rem;
  box-shadow: 0 1px 2px rgba(5,10,30,0.04), 0 4px 14px rgba(5,10,30,0.05);
}

.cmp-anzo-bar .icon-mini--md {
  width: 46px;
  height: 46px;
}

.cmp-bubble-text {
  max-height: 5.4em;
  overflow-y: auto;
  font-weight: 700;
  color: var(--c-text);
}

@media (max-width: 639.98px) {
  .cmp-anzo-bar {
    background: var(--c-bg-card);
    padding: 0.9rem 0.85rem calc(0.9rem + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 28px rgba(5,10,30,0.08);
  }

  .dark .cmp-anzo-bar {
    background: #242526;
    box-shadow: 0 -10px 28px rgba(0,0,0,0.26);
  }

  .cmp-bubble {
    border-radius: 0.75rem;
    border-bottom-left-radius: 5px;
    padding: 0.8rem 0.9rem;
  }

  .cmp-bubble-text {
    max-height: 6.5em;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.5;
  }

  .cmp-anzo-bar .btn-brand-sm {
    min-height: 2.35rem;
    font-weight: 800;
  }
}

@media (min-width: 640px) {
  .cmp-anzo-bar {
    align-items: flex-end;
    gap: 0.9rem;
    padding: 0.9rem 1.25rem;
  }

  .cmp-anzo-bar .icon-mini--md {
    width: 52px;
    height: 52px;
  }

  .cmp-bubble {
    padding: 0.8rem 1rem;
  }

  .cmp-bubble-text {
    max-height: none;
    overflow: visible;
  }
}

/* Chat window: full-screen sheet on mobile, docked bottom-right on desktop */

.cmp-chat {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-bg-card);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform-origin: bottom right;
}

@media (min-width: 640px) {
  .cmp-chat {
    inset: auto 0.75rem 0.75rem auto;
    width: min(380px, calc(100% - 1.5rem));
    height: min(480px, calc(100% - 5rem));
    border: 1px solid var(--c-border);
    border-radius: 0.875rem;
  }
}

.cmp-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, #050505, #0B1020 70%);
  padding: 0.65rem 0.9rem;
}

.cmp-chat-head .icon-mini--xs {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.cmp-chat-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  background: var(--c-bg);
  padding: 0.9rem;
}

.cmp-msg {
  align-self: flex-start;
  max-width: 88%;
  border: 1px solid var(--c-border);
  border-radius: 0.75rem;
  border-bottom-left-radius: 4px;
  background: var(--c-bg-card);
  padding: 0.6rem 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--c-text-2);
  white-space: pre-line; /* bilingual scripted lines: English \n Nepali */
  animation: cmp-msg-print .42s cubic-bezier(.16,1,.3,1) both;
}

.cmp-msg--user {
  align-self: flex-end;
  border: 0;
  border-radius: 0.75rem;
  border-bottom-right-radius: 4px;
  background: var(--c-brand);
  color: #fff;
}

.cmp-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.7rem 0.8rem;
}

.cmp-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--c-text-muted);
  animation: cmp-dot 1.55s ease-in-out infinite;
}

.cmp-typing span:nth-child(2) {
  animation-delay: .15s;
}

.cmp-typing span:nth-child(3) {
  animation-delay: .3s;
}

.cmp-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.25rem;
}

.cmp-chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(0,87,255,0.35);
  border-radius: 999px;
  background: rgba(0,87,255,0.06);
  color: var(--c-brand);
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background-color .15s ease, color .15s ease;
}

.cmp-chat-chip:hover {
  background: var(--c-brand);
  color: #fff;
}

.cmp-chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-card);
  padding: 0.6rem 0.75rem;
}

.cmp-chat-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--c-text);
}

.cmp-chat-input button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
  transition: background-color .15s ease;
}

.cmp-chat-input button[type="submit"]:hover {
  background: var(--c-brand-dark);
}

@media (min-width: 1024px) and (min-height: 860px) {
  .auth-shell {
    min-height: calc(100vh - 8rem);
  }
}

/* ── Search shell (SearchBox partial) ────────────────── */

.search-shell {
  position: relative;
  overflow: visible;
  z-index: 30;
}

.search-shell:focus-within {
  z-index: 130;
}

.search-shell form {
  overflow: visible;
}

.search-shell input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  width: 100%;
  color: var(--c-text);
  font-size: 0.875rem;
  padding: 0.625rem 0.75rem;
  min-width: 0;
}

.search-shell input[type="search"]::-moz-placeholder {
  color: var(--c-text-muted);
}

.search-shell input[type="search"]::placeholder {
  color: var(--c-text-muted);
}

.search-shell input[type="search"]:focus {
  outline: none;
  box-shadow: none;
}

/* Remove browser search clear button */

.search-shell input[type="search"]::-webkit-search-decoration,
  .search-shell input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

/* ── Header search pill wrapper ──────────────────────── */

@media (max-width: 575.98px) {
  /* Outer flex (logo | content) stacks: logo full-width at top, content below */

  .school-listing-card .school-listing-card__body > .header-search-pill {
    flex-direction: column;
  }

  /* Inner content wrapper (info + actions) gets padding on mobile */
}

.header-search-pill {
  display: flex;
  width: 100%;
  align-items: center;
  border-radius: 9999px;
  border-width: 2px;
  border-color: transparent;
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.header-search-pill:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}

.header-search-pill:focus-within {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.header-search-pill:focus-within:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}

.header-search-pill:focus-within {
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
}

/* ── Alert variants ─────────────────────────────────────
     JS sets these classes on alert elements dynamically. */

/* Tailwind-native UI primitives */

.ui-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: .625rem;
  background: var(--c-bg-card);
  color: var(--c-text);
  box-shadow: 0 1px 2px rgba(5, 10, 30, .04), 0 4px 14px rgba(5, 10, 30, .05);
}

.dark .ui-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .30), 0 4px 14px rgba(0, 0, 0, .25);
}

.ui-card-header {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  padding: .85rem 1.25rem;
}

.ui-card-body {
  padding: 1.25rem;
}

.ui-tile {
  height: 100%;
  border: 1px solid var(--c-border);
  border-radius: .625rem;
  background: var(--c-bg-card);
  padding: .75rem;
}

.ui-field-label {
  display: block;
  margin-bottom: .35rem;
  color: var(--c-text-2);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
}

.ui-field-help {
  margin-top: .35rem;
  color: var(--c-text-muted);
  font-size: .75rem;
  line-height: 1.45;
}

.ui-input,
  .ui-select {
  display: block;
  width: 100%;
  min-height: 2.625rem;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: .625rem;
  background-color: rgba(255, 255, 255, .94);
  color: var(--c-text);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  padding: .625rem .85rem;
  box-shadow: 0 1px 2px rgba(5, 10, 30, .04);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.ui-input::-moz-placeholder {
  color: var(--c-text-muted);
  font-weight: 500;
}

.ui-input::placeholder {
  color: var(--c-text-muted);
  font-weight: 500;
}

.ui-input:hover,
  .ui-select:hover {
  border-color: #C9D4E5;
  background-color: #fff;
}

.ui-input:focus,
  .ui-select:focus {
  border-color: var(--c-brand);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .14);
  outline: none;
}

.dark .ui-input,
  .dark .ui-select {
  border-color: #4E4F50;
  background-color: rgba(36, 37, 38, .96);
  color: #E4E6EB;
}

.dark .ui-input:hover,
  .dark .ui-select:hover,
  .dark .ui-input:focus,
  .dark .ui-select:focus {
  background-color: #242526;
}

.ui-select {
  padding-right: 2.4rem;
  background-image:
      linear-gradient(45deg, transparent 50%, #5A7184 50%),
      linear-gradient(135deg, #5A7184 50%, transparent 50%);
  background-position:
      calc(100% - 1.08rem) 50%,
      calc(100% - .76rem) 50%;
  background-repeat: no-repeat;
  background-size: .34rem .34rem, .34rem .34rem;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

.ui-select option {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
}

.dark .ui-select option {
  background: #242526;
  color: #E4E6EB;
}

.ui-input-invalid {
  border-color: #ef4444 !important;
}

.ui-input-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .2);
}

.ui-field-error {
  margin-top: .35rem;
  color: #dc2626;
  font-size: .75rem;
  line-height: 1.35;
}

.ui-field-error:empty {
  display: none;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.5rem;
  border: 1px solid transparent;
  border-radius: .625rem;
  padding: .55rem 1rem;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ui-btn:hover {
  text-decoration: none;
}

.ui-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .18);
}

.ui-btn-sm {
  min-height: 2.05rem;
  border-radius: .5rem;
  padding: .35rem .75rem;
  font-size: .75rem;
}

.ui-btn-primary {
  color: #fff;
  background: var(--c-brand);
  border-color: var(--c-brand);
  box-shadow: 0 3px 10px rgba(0, 87, 255, .20);
}

.ui-btn-primary:hover {
  color: #fff;
  background: var(--c-brand-dark);
  border-color: var(--c-brand-dark);
  box-shadow: 0 5px 14px rgba(0, 87, 255, .24);
  transform: translateY(-1px);
}

.ui-btn-outline {
  color: var(--c-brand);
  background: transparent;
  border-color: rgba(0, 87, 255, .38);
}

.ui-btn-outline:hover {
  color: #fff;
  background: var(--c-brand);
  border-color: var(--c-brand);
}

.ui-btn-warning {
  color: #fff;
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 3px 10px rgba(245, 158, 11, .18);
}

.ui-btn-warning:hover {
  color: #fff;
  background: #d97706;
  border-color: #d97706;
}

.business-enquiry-trigger--warning {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #fff !important;
}

.business-enquiry-trigger--warning:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #fff !important;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .23rem .58rem;
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.ui-badge-primary {
  color: #0057FF;
  background: #E8F0FF;
  border-color: #CFE0FF;
}

.ui-badge-success {
  color: #0f8f49;
  background: #E8F7EF;
  border-color: #CDEEDB;
}

.ui-badge-info {
  color: #0E7490;
  background: #E8F6FF;
  border-color: #BFE8FF;
}

.ui-badge-warning {
  color: #B7791F;
  background: #FFF7E6;
  border-color: #FDEBC2;
}

.ui-badge-danger {
  color: #DC2626;
  background: #FEEEEE;
  border-color: #F8CCCC;
}

.ui-badge-secondary {
  color: #5A7184;
  background: #EFF2F6;
  border-color: #DCE2EA;
}

.dark .ui-badge-primary {
  color: #77A7FF;
  background: rgba(45, 136, 255, .14);
  border-color: rgba(45, 136, 255, .28);
}

.dark .ui-badge-success {
  color: #86EFAC;
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .24);
}

.dark .ui-badge-info {
  color: #7DD3FC;
  background: rgba(14, 165, 233, .12);
  border-color: rgba(14, 165, 233, .24);
}

.dark .ui-badge-warning {
  color: #FCD34D;
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .24);
}

.dark .ui-badge-danger {
  color: #FCA5A5;
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .24);
}

.dark .ui-badge-secondary {
  color: #B0B3B8;
  background: rgba(78, 79, 80, .48);
  border-color: #4E4F50;
}

.ui-alert {
  border-radius: .625rem;
  padding: .75rem 1rem;
  border: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  color: var(--c-text-2);
  font-size: .875rem;
  line-height: 1.5;
}

.ui-alert-light {
  background: rgba(255, 255, 255, .72);
  color: var(--c-text-2);
  border-color: var(--c-border);
}

.ui-alert-secondary {
  background: #EFF2F6;
  color: #5A7184;
  border-color: #DCE2EA;
}

.ui-alert-info {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

.ui-alert-warning {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.ui-alert-danger {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.dark .ui-alert-light,
  .dark .ui-alert-secondary {
  background: rgba(78, 79, 80, .34);
  color: #B0B3B8;
  border-color: #4E4F50;
}

.dark .ui-alert-info {
  background: rgba(29, 78, 216, .12);
  color: #93C5FD;
  border-color: rgba(29, 78, 216, .30);
}

.dark .ui-alert-warning {
  background: rgba(180, 83, 9, .12);
  color: #FCD34D;
  border-color: rgba(180, 83, 9, .30);
}

.dark .ui-alert-danger {
  background: rgba(220, 38, 38, .12);
  color: #FCA5A5;
  border-color: rgba(220, 38, 38, .30);
}

.ui-alert-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ui-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -.125em;
  border: .2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ui-spinner .75s linear infinite;
}

@keyframes ui-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ── Enquiry modal chat bubbles ──────────────────────── */

.profile-enquiry-chat-cluster {
  max-width: min(100%, 52rem);
}

.profile-enquiry-chat-cluster--me {
  margin-left: auto;
}

.profile-enquiry-chat-cluster--them {
  margin-right: auto;
}

.profile-enquiry-chat-row {
  display: flex;
  width: 100%;
}

.profile-enquiry-chat-row--me {
  justify-content: flex-end;
}

.profile-enquiry-chat-row--them {
  justify-content: flex-start;
}

.profile-enquiry-chat-row--system {
  justify-content: center;
}

.profile-enquiry-chat-bubble {
  max-width: min(100%, 42rem);
  min-width: 0;
  border-radius: 0.625rem;
  padding: 0.65rem 0.95rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  font-size: 0.875rem;
}

.profile-enquiry-chat-bubble--me {
  background: var(--c-brand);
  color: #fff;
}

.profile-enquiry-chat-bubble--me .profile-enquiry-chat-meta {
  color: rgba(255,255,255,0.8);
}

.profile-enquiry-chat-bubble--them {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  color: var(--c-text-3);
}

.profile-enquiry-chat-bubble--system {
  max-width: min(95%, 40rem);
  background: #fef9c3;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.8125rem;
}

.dark .profile-enquiry-chat-bubble--system {
  background: rgba(234,179,8,0.1);
  border-color: rgba(234,179,8,0.2);
  color: #fde68a;
}

/* ── School listing card ─────────────────────────────── */

.school-listing-card {
  border: 1px solid var(--c-border);
  border-radius: 0.625rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  background: var(--c-bg-card);
  box-shadow: 0 1px 2px rgba(5,10,30,0.04), 0 4px 14px rgba(5,10,30,0.05);
}

.dark .school-listing-card {
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 14px rgba(0,0,0,0.25);
}

.school-listing-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: #C9D4E5;
}

.dark .school-listing-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.26);
  border-color: #4E4F50;
}

.school-listing-card .school-listing-card__body {
  padding: 1.25rem 1.5rem;
}

.school-listing-thumb-square {
  width: 88px;
  height: 88px;
  position: relative;
  border-radius: 0.625rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}

@media (min-width: 576px) {
  .school-listing-thumb-square {
    width: 108px;
    height: 108px;
  }
}

.school-listing-thumb-square img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.school-listing-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}

.school-listing-title:hover {
  color: var(--c-brand);
}

.school-meta-item {
  font-size: 0.8125rem;
  color: var(--c-text-3);
}

@media (max-width: 575.98px) {
  .school-listing-card {
    border-radius: 0.625rem;
  }

  .school-listing-card .school-listing-card__body {
    padding: 0 !important;
  }

  /* Outer flex (logo | content) stacks: logo full-width at top, content below */

  .school-listing-card .school-listing-card__body > .flex {
    flex-direction: column;
  }

  /* Inner content wrapper (info + actions) gets padding on mobile */

  .listing-inner-wrap {
    padding: 0.75rem;
  }

  .school-listing-thumb-square {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3;
    border-radius: 0.625rem 0.625rem 0 0 !important;
    flex-shrink: unset;
  }

  .school-listing-thumb-square img {
    border-radius: 0 !important;
  }
}

/* ── School detail: hero ─────────────────────────────── */

.school-hero-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem 0.625rem 0 0;
}

.school-hero-cover {
  width: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  height: 220px;
}

@media (min-width: 576px)  {
  .school-hero-cover {
    height: 260px;
  }
}

@media (min-width: 992px)  {
  .school-hero-cover {
    height: 300px;
  }
}

@media (min-width: 1200px) {
  .school-hero-cover {
    height: 320px;
  }
}

.school-hero-cover-fallback {
  width: 100%;
  display: block;
  height: 220px;
  background: #EFF4FB;
}

@media (min-width: 576px)  {
  .school-hero-cover-fallback {
    height: 260px;
  }
}

@media (min-width: 992px)  {
  .school-hero-cover-fallback {
    height: 300px;
  }
}

@media (min-width: 1200px) {
  .school-hero-cover-fallback {
    height: 320px;
  }
}

.school-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
  pointer-events: none;
}

.school-hero-identity {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 0.875rem;
}

.school-hero-logo {
  width: 88px;
  height: 88px;
  -o-object-fit: contain;
     object-fit: contain;
  background: #fff;
  border-radius: 0.625rem;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .school-hero-logo {
    width: 108px;
    height: 108px;
  }
}

@media (min-width: 992px) {
  .school-hero-logo {
    width: 120px;
    height: 120px;
  }
}

.school-hero-name {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
  margin-bottom: 0.25rem;
  font-family: 'Baloo 2', system-ui, sans-serif;
}

@media (min-width: 576px) {
  .school-hero-name {
    font-size: 1.65rem;
  }
}

@media (min-width: 992px) {
  .school-hero-name {
    font-size: 1.875rem;
  }
}

/* ── School detail: section nav ──────────────────────── */

.school-section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg-card);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid var(--c-border);
}

.dark .school-section-nav {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.school-section-nav::-webkit-scrollbar {
  display: none;
}

.school-section-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  flex-wrap: nowrap;
  min-width: -moz-max-content;
  min-width: max-content;
}

.school-section-nav .ssnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--c-text-3);
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  line-height: 1;
}

.school-section-nav .ssnav-btn:hover {
  background: #EFF4FB;
  color: var(--c-brand);
  border-color: #C9D4E5;
}

.school-section-nav .ssnav-btn.active,
  .school-section-nav .ssnav-btn[aria-current="true"] {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
  box-shadow: none;
}

/* ── School detail: section headers ─────────────────── */

.detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--c-border);
}

.detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Baloo 2', system-ui, sans-serif;
}

.detail-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--c-brand);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Info tiles ──────────────────────────────────────── */

.info-tile {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 0.625rem;
  padding: 1rem 1.25rem;
  height: 100%;
}

.info-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.info-tile-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text-2);
  line-height: 1.45;
}

/* ── Breadcrumb ──────────────────────────────────────── */

.detail-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

.detail-breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.12s;
}

.detail-breadcrumb a:hover {
  color: var(--c-brand);
}

.detail-breadcrumb-sep {
  color: var(--c-text-muted);
  font-size: 0.7rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.detail-breadcrumb-current {
  color: var(--c-text-2);
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Sticky sidebar ──────────────────────────────────── */

.detail-action-rail {
  position: static;
  top: auto;
  z-index: 20;
  max-height: none;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: auto;
  padding-right: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
}

@media (min-width: 1024px) and (min-height: 900px) {
  .detail-action-rail {
    position: sticky;
    top: calc(61px + 1rem);
  }
}

.detail-action-rail::-webkit-scrollbar {
  width: 5px;
}

.detail-action-rail::-webkit-scrollbar-track {
  background: transparent;
}

.detail-action-rail::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border-radius: 999px;
}

.detail-rail-kicker {
  color: var(--c-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.detail-rail-title {
  color: var(--c-text);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.detail-rail-copy {
  max-width: 18rem;
  color: var(--c-text-3);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.detail-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(22, 163, 74, .22);
  border-radius: 999px;
  background: rgba(22, 163, 74, .10);
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.38rem 0.62rem;
}

.dark .detail-status-pill {
  color: #86efac;
  border-color: rgba(34, 197, 94, .24);
  background: rgba(34, 197, 94, .12);
}

.detail-side-list {
  display: grid;
  gap: 0;
}

.detail-side-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  border-top: 1px solid var(--c-border);
  padding: 0.8rem 1rem;
}

.detail-side-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--c-text-muted);
  font-size: 0.8rem;
}

.detail-side-label {
  color: var(--c-text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.15;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.detail-side-value {
  color: var(--c-text-2);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.detail-side-empty {
  border: 1px dashed var(--c-border-strong);
  border-radius: 0.75rem;
  color: var(--c-text-3);
  background: var(--c-bg-soft);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.75rem 0.85rem;
}

.detail-side-body {
  padding: 1rem;
}

.detail-side-address {
  color: var(--c-text-2);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.detail-route-summary {
  min-width: 0;
  overflow: hidden;
  border-radius: 0.8rem !important;
  padding: 0.75rem !important;
}

.detail-route-summary-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  line-height: 1.25;
}

.detail-route-summary-main [data-route-label] {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-route-summary-metric {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.school-detail-map-embed-wrap {
  overflow: hidden;
  border-radius: 0.85rem;
}

@media (min-width: 1024px) {
  .cmp-fab {
    right: auto;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 44;
  }
}

/* ── Business type strip (search page) ───────────────── */

.btype-strip-card {
  background: var(--c-bg-card);
  border-radius: 0.625rem;
  border: 1px solid var(--c-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.dark .btype-strip-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btype-strip-scroll {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.btype-strip-scroll::-webkit-scrollbar {
  display: none;
}

.btype-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.875rem 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-3);
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
  position: relative;
}

.btype-tab:hover {
  color: var(--c-text-2);
  background: #EFF4FB;
  text-decoration: none;
}

.dark .btype-tab:hover {
  background: #3A3B3C;
}

.btype-tab.active {
  color: var(--c-text);
  font-weight: 700;
  border-bottom-color: var(--c-brand);
  background: #EFF4FB;
}

.dark .btype-tab.active {
  background: #3A3B3C;
}

.btype-tab .btype-icon {
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--c-text-3);
  opacity: 0.92;
}

.btype-tab.active .btype-icon {
  color: #fff; /* icon must read on the solid brand pill, matching the label */
  opacity: 1;
}

.btype-tab + .btype-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--c-border);
}

/* ── Filter sidebar ──────────────────────────────────── */

.dark .filter-sidebar {
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
}

/* ── Filter drawer (mobile — full-screen modal) ──────── */

.filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--c-bg);
}

@supports (height: 100dvh) {
  .filter-drawer {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: calc(0.8rem + env(safe-area-inset-top)) 1rem 0.8rem;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-card);
  flex-shrink: 0;
}

.filter-drawer-header h6 {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-text);
  font-family: 'Baloo 2', system-ui, sans-serif;
}

.filter-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border: 1px solid var(--c-border);
  border-radius: 0.625rem;
  background: var(--c-bg-soft);
  color: var(--c-text-3);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.filter-drawer-close:hover {
  border-color: var(--c-border-strong);
  background: var(--c-bg);
  color: var(--c-text-2);
}

.filter-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--c-bg);
}

.filter-drawer .business-filter-panel--drawer {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.filter-drawer .business-filter-panel--drawer form {
  min-height: 100%;
}

.filter-drawer .business-filter-panel--drawer form > .p-4 {
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.filter-drawer-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -1rem calc(-1rem - env(safe-area-inset-bottom));
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-card);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
}

/* ── Results header ──────────────────────────────────── */

.results-header-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  font-family: 'Baloo 2', system-ui, sans-serif;
}

/* ── Mobile sticky nav (search page) ────────────────── */

@media (max-width: 991.98px) {
  .mobile-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: stretch;
    background: var(--c-bg-card);
    border-bottom: 1px solid var(--c-border);
    margin: 0 -0.75rem 0.75rem;
    padding: 0 0.55rem;
  }

  .mobile-nav-scroll {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    overflow: hidden;
    scrollbar-width: none;
    padding: 0.45rem 0;
  }

  .mobile-nav-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-text-3);
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    flex: 1 1 0;
    min-width: 0;
  }

  .mobile-nav-tab > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-tab:hover, .mobile-nav-tab.active {
    color: var(--c-text-2);
    text-decoration: none;
  }

  .mobile-nav-tab.active {
    font-weight: 700;
    border-bottom-color: var(--c-brand);
  }

  .mobile-nav-icon {
    font-size: 1.05rem;
    line-height: 1;
    color: var(--c-text-3);
    opacity: 0.92;
  }

  .mobile-nav-tab.active .mobile-nav-icon {
    color: var(--c-text-2);
    opacity: 1;
  }

  .mobile-filter-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    margin-left: 0.45rem;
    background: transparent;
    border: none;
    border-left: 1px solid var(--c-border);
    color: var(--c-text-3);
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
  }

  .mobile-filter-btn:hover {
    color: var(--c-brand);
  }

  .mobile-filter-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}

/* ── Pagination ──────────────────────────────────────── */

.pager-list,
  .app-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pager-link,
  .app-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pager-link:hover,
  .app-page-link:hover {
  background: #EFF4FB;
  color: var(--c-brand);
}

.pager-item.is-active .pager-link,
  .app-page-item.is-active .app-page-link {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}

.pager-item.is-disabled .pager-link,
  .app-page-item.is-disabled .app-page-link {
  color: var(--c-text-muted);
  pointer-events: none;
}

/* ── Scroll-to-top button ────────────────────────────── */

.scroll-top-btn {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 1050;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,87,255,0.24);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  font-size: 1rem;
}

.scroll-top-btn:hover {
  background: var(--c-brand-dark);
  transform: translateY(-2px);
}

/* ── Region stats ────────────────────────────────────── */

.dark .region-home-summary-stats .region-stat-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.45) !important;
}

/* Region homepage story cards */

.region-story-count .fas {
  font-size: 0.4375rem;
}

/* School detail story carousel */

.school-detail-stories-track {
  gap: 0.875rem;
}

.school-detail-story-card {
  width: 9.75rem;
  height: 14.625rem;
}

.school-detail-story-count {
  gap: 0.15rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.5625rem;
  line-height: 1;
}

.school-detail-story-count .fas {
  font-size: 0.4375rem;
}

.school-detail-story-readable-overlay {
  background: rgba(0,0,0,0.42);
}

.school-detail-story-copy {
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.45);
}

.school-detail-story-title {
  font-size: 0.6875rem;
}

.school-detail-story-progress span {
  height: 2px;
}

@media (min-width: 640px) {
  .school-detail-stories-track {
    gap: 1rem;
  }

  .school-detail-story-card {
    width: 11.25rem;
    height: 16.875rem;
  }

  .school-detail-story-title {
    font-size: 0.75rem;
  }
}

/* ── City cards ──────────────────────────────────────── */

/* ── Section nav sticky offset (below 61px header) ─── */

.school-section-nav {
  top: 61px;
}

/* ── Soft gradient design tokens ────────────────────── */

/* Hero section background */

.dark .hero-gradient {
  background: #18191A;
}

/* =======================================================
     HOMEPAGE — "ink on paper, blue as the pin"
     Grey/ink surfaces dominate; #0057FF appears only as the
     precision accent (the pin). Subtle radii, hairline borders.
     ======================================================= */

/* ── Hero canvas ─────────────────────────────────────── */

.np-hero {
  background: linear-gradient(180deg, #FAFBFC 0%, #F4F5F7 100%);
}

.dark .np-hero {
  background: linear-gradient(180deg, #242526 0%, #18191A 100%);
}

.np-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Fine drafting grid, faded out toward the edges */

.np-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
      linear-gradient(to right, rgba(5,5,5,0.035) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(5,5,5,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 65% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 85% at 65% 0%, #000 25%, transparent 78%);
}

.dark .np-hero-grid {
  background-image:
      linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
}

/* A whisper of brand blue — deliberately faint */

.np-hero-bloom {
  position: absolute;
  top: -240px;
  right: -160px;
  width: 660px;
  height: 660px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,87,255,0.08), transparent 65%);
}

.dark .np-hero-bloom {
  background: radial-gradient(circle, rgba(52,119,255,0.14), transparent 65%);
}

/* ── Hero eyebrow chip ───────────────────────────────── */

.dark .np-eyebrow {
  border-color: #4E4F50;
  background: rgba(255,255,255,0.06);
  color: #E4E6EB;
}

.np-eyebrow-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
}

/* ── Hero search card ────────────────────────────────── */

.np-search-card {
  border: 1px solid rgba(5,5,5,0.08);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 18px 50px rgba(5,10,30,0.10), 0 2px 8px rgba(5,10,30,0.05);
  backdrop-filter: blur(12px);
}

.dark .np-search-card {
  border-color: rgba(255,255,255,0.08);
  background: rgba(20,28,46,0.85);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}

.np-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--c-border-strong);
  border-radius: 0.625rem;
  background: var(--c-bg-card);
  color: var(--c-text-2);
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color .15s ease, color .15s ease;
}

.np-hero-secondary:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

/* ── Education type chips ────────────────────────────── */

.np-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-bg-card);
  color: var(--c-text-2);
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.np-type-chip:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: #F5F8FF;
}

.dark .np-type-chip:hover {
  background: rgba(0,87,255,0.12);
}

/* ── Hero trust stats ────────────────────────────────── */

/* ── Hero floating proof cards (lg+ only, decorative) ── */

.dark .np-route {
  color: rgba(255,255,255,0.16);
}

.dark .np-pin-watermark {
  color: rgba(52,119,255,0.14);
}

.dark .np-float-card {
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.np-float-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
  color: var(--c-brand);
  font-size: 0.8rem;
  box-shadow: 0 8px 20px rgba(5,10,30,0.10);
  animation: np-bob 9s ease-in-out infinite;
}

/* ── Budget slider illustration (hero card B) ────────── */

/* ── Shared card surface — "live but subtle" ─────────── */

.np-card {
  border: 1px solid var(--c-border);
  border-radius: 0.875rem;
  background: var(--c-bg-card);
  box-shadow: 0 1px 2px rgba(5,10,30,0.04), 0 4px 14px rgba(5,10,30,0.05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.np-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-border-strong);
  box-shadow: 0 2px 4px rgba(5,10,30,0.04), 0 14px 32px rgba(5,10,30,0.09);
}

.dark .np-card {
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 14px rgba(0,0,0,0.25);
}

.dark .np-card:hover {
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
}

.np-card:hover .np-bento-icon {
  background: var(--c-brand);
}

.home-carousel {
  position: relative;
  overflow: hidden;
}

.home-carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 1rem 0.75rem;
  scroll-behavior: smooth;
  scroll-padding-left: 1rem;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: grab;
}

.home-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.home-carousel-track.is-dragging .home-carousel-card {
  pointer-events: none;
}

.home-carousel-card {
  flex: 0 0 min(68vw, 17rem);
  width: min(68vw, 17rem);
}

.home-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--c-border);
  border-radius: 0.625rem;
  background: var(--c-bg-card);
  color: var(--c-text-2);
  box-shadow: 0 1px 2px rgba(5,10,30,0.04);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, opacity .15s ease;
}

.home-carousel-btn:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.home-carousel-btn:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
}

.home-carousel-btn:disabled {
  cursor: default;
  opacity: .38;
}

.home-carousel-btn:disabled:hover {
  border-color: var(--c-border);
  color: var(--c-text-2);
}

.dark .home-carousel-btn {
  box-shadow: 0 1px 2px rgba(0,0,0,0.28);
}

@media (min-width: 480px) and (max-width: 639.98px) {
  .home-carousel-card {
    flex-basis: min(44vw, 16rem);
    width: min(44vw, 16rem);
  }
}

@media (min-width: 640px) {
  .home-carousel-track {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    scroll-padding-left: 1.5rem;
  }

  .home-carousel-card {
    flex-basis: 15.75rem;
    width: 15.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-carousel-track {
    scroll-behavior: auto;
  }
}

/* ── Section eyebrow (brand tick + label) ────────────── */

.np-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.np-section-eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: var(--c-brand);
}

/* ── How it works — ghost-number steps ───────────────── */

.np-step {
  position: relative;
  background: #fff;
  padding: 2rem 1.75rem 2.25rem;
}

.dark .np-step {
  background: #111827;
}

.np-step-num {
  display: block;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #CDD3DC;
  transition: -webkit-text-stroke-color .25s ease;
}

.dark .np-step-num {
  -webkit-text-stroke-color: #4E4F50;
}

.np-step:hover .np-step-num {
  -webkit-text-stroke-color: var(--c-brand);
}

.np-step-title {
  margin-top: 1.1rem;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
}

.np-step-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--c-text-3);
}

/* ── City tiles (typographic) ────────────────────────── */

.np-city-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 0.875rem;
  background: var(--c-bg-card);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: 0 1px 2px rgba(5,10,30,0.04), 0 4px 14px rgba(5,10,30,0.05);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dark .np-city-tile {
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 14px rgba(0,0,0,0.25);
}

.np-city-tile:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(5,10,30,0.08);
}

.dark .np-city-tile:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}

.np-city-index {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--c-border-strong);
}

.np-city-count {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--c-text-3);
}

.np-city-name {
  margin-top: 1rem;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.np-city-caption {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text-3);
}

.np-city-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-2);
  transition: color .2s ease;
}

.np-city-arrow {
  font-size: 0.7rem;
  transition: transform .2s ease;
}

.np-city-tile:hover .np-city-cta {
  color: var(--c-brand);
}

.np-city-tile:hover .np-city-arrow {
  transform: translateX(4px);
}

.np-city-pin {
  position: absolute;
  right: -0.6rem;
  bottom: -1.2rem;
  font-size: 5.5rem;
  color: rgba(0,87,255,0.05);
  transform: rotate(-8deg);
  transition: color .25s ease, transform .25s ease;
  pointer-events: none;
}

.dark .np-city-pin {
  color: rgba(52,119,255,0.08);
}

.np-city-tile:hover .np-city-pin {
  color: rgba(0,87,255,0.12);
  transform: rotate(-4deg) translateY(-4px);
}

/* ── Benefits bento grid ─────────────────────────────── */

.np-bento {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: 0.875rem;
  background: var(--c-bg-soft);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(5,10,30,0.03), 0 4px 14px rgba(5,10,30,0.04);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dark .np-bento {
  background: #0E1626;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 14px rgba(0,0,0,0.25);
}

.np-bento:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(5,10,30,0.07);
}

.dark .np-bento:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}

.np-bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.625rem;
  background: #050505;
  color: #fff;
  font-size: 1rem;
  transition: background-color .2s ease;
}

.dark .np-bento-icon {
  background: rgba(255,255,255,0.10);
}

.np-bento:hover .np-bento-icon {
  background: var(--c-brand);
}

.np-bento-title {
  margin-top: 1.1rem;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
}

.np-bento-text {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--c-text-3);
}

/* Dot-map flourish inside the wide tile */

.np-bento-mapdots {
  position: relative;
  flex-shrink: 0;
  width: 230px;
  height: 150px;
  border: 1px solid var(--c-border);
  border-radius: 0.625rem;
  background-image: radial-gradient(circle, rgba(5,5,5,0.10) 1px, transparent 1px);
  background-size: 14px 14px;
}

.dark .np-bento-mapdots {
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
}

.np-mapdot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c-brand);
}

.np-mapdot--ring {
  animation: np-pulse 3s ease-out infinite;
}

/* Ink CTA tile */

.np-bento-cta {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #050505 0%, #0B1020 55%, #0A1A3F 100%);
  padding: 2rem;
}

.np-bento-cta-pin {
  position: absolute;
  right: -1rem;
  bottom: -1.6rem;
  font-size: 9rem;
  color: rgba(0,87,255,0.16);
  transform: rotate(-8deg);
  pointer-events: none;
}

/* =======================================================
     STATIC PAGES — shared hero ornament, CTA band, doc
     numbers and the error scene. All reuse the np-hero
     canvas plus the data-scene pointer parallax.
     ======================================================= */

/* Cursor-tracked layers drift smoothly (JS sets transform) */

[data-scene] [data-depth] {
  will-change: transform;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

/* ── Hero ornament: pin orbited by a dashed ring ─────── */

.np-page-orb {
  position: relative;
  width: 230px;
  height: 210px;
}

.np-page-orb-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border: 1.5px dashed rgba(0,87,255,0.35);
  border-radius: 999px;
  animation: np-orb-spin 28s linear infinite;
}

.dark .np-page-orb-ring {
  border-color: rgba(52,119,255,0.4);
}

.np-page-orb-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -42px 0 0 -42px;
  animation: np-bob 6s ease-in-out infinite;
}

.np-page-orb-dot1 {
  right: 6px;
  top: 18px;
}

.np-page-orb-dot2 {
  left: 2px;
  bottom: 12px;
  animation-delay: -3s;
}

/* ── Ink CTA band (shared by all static pages) ───────── */

.np-cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #050505 0%, #0B1020 55%, #0A1A3F 100%);
  padding: 2.25rem 1.75rem;
}

@media (min-width: 640px) {
  .np-cta-band {
    padding: 2.5rem 2.75rem;
  }
}

.np-cta-band-pin {
  position: absolute;
  right: -1rem;
  bottom: -1.6rem;
  font-size: 8rem;
  color: rgba(0,87,255,0.16);
  transform: rotate(-8deg);
  pointer-events: none;
}

/* ── Legal/doc section number (ghost outline) ────────── */

.np-doc-num {
  display: block;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #CDD3DC;
  transition: -webkit-text-stroke-color .25s ease;
}

.dark .np-doc-num {
  -webkit-text-stroke-color: #2A3650;
}

.np-card:hover .np-doc-num {
  -webkit-text-stroke-color: var(--c-brand);
}

/* ── Error scene (404 / 500 / 401) ───────────────────── */

.np-err {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding: 3.5rem 1rem;
}

.np-err-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 2vw, 1rem);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.np-err-num {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(6.5rem, 22vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 3px #CDD3DC;
}

.dark .np-err-num {
  -webkit-text-stroke-color: #2A3650;
}

/* The pin takes the place of the middle zero */

.np-err-pin {
  width: clamp(5rem, 16vw, 8.5rem);
  height: clamp(5rem, 16vw, 8.5rem);
  animation: np-bob 5.5s ease-in-out infinite;
}

.np-err-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(5,5,5,0.14);
  pointer-events: none;
}

.dark .np-err-route {
  color: rgba(255,255,255,0.10);
}

.np-err-dot1 {
  left: 12%;
  top: 22%;
}

.np-err-dot2 {
  right: 14%;
  top: 30%;
  animation-delay: -2.5s;
}

.np-err-dot3 {
  right: 22%;
  bottom: 18%;
  animation-delay: -4s;
}

/* ── Nepali / Devanagari display ─────────────────────────
     Mukta and Baloo 2 both ship Devanagari glyphs, so no font
     change is needed — but Devanagari needs taller leading and
     must never be letter-spaced or force-uppercased (matras and
     conjuncts break). Mark Nepali copy with lang="ne" (preferred)
     or the legacy .np-devanagari class. */

.np-devanagari,
  [lang="ne"],
  :lang(ne) {
  line-height: 1.5;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Headings tolerate slightly tighter Devanagari leading */

h1:lang(ne), h2:lang(ne), h3:lang(ne),
  h1 [lang="ne"], h2 [lang="ne"], h3 [lang="ne"] {
  line-height: 1.35;
}

/* Bilingual pair: English primary + Nepali secondary on one label */

.dark .home-hero-action-secondary {
  border-color: #3A3B3C;
  background: #242526;
  color: #E4E6EB;
}

.dark .home-hero-action-secondary:hover {
  border-color: #2D88FF;
  color: #2D88FF;
}

.dark .home-hero-search-panel {
  box-shadow: 0 18px 44px rgba(0,0,0,0.32);
}

.dark .home-hero-panel-head {
  background: #242526;
}

.dark .home-hero-panel-body {
  background: #242526;
}

.dark .home-hero-signal-chip {
  background: rgba(255,255,255,0.06);
}

.home-wizard-choice {
  border: 1px solid var(--c-border-strong);
  border-radius: 0.625rem;
  background: #fff;
  color: #5A7184;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.home-wizard-choice:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: #F5F8FF;
}

.home-wizard-choice.is-selected {
  border-color: #0057FF;
  background: #0057FF;
  color: #fff;
  box-shadow: none;
}

.home-wizard-choice:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.dark .home-wizard-choice {
  border-color: #3A3B3C;
  background: #242526;
  color: #B0B3B8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dark .home-wizard-choice:hover {
  border-color: #4E4F50;
  color: #2D88FF;
  background: #3A3B3C;
}

.dark .home-wizard-choice.is-selected {
  border-color: #2D88FF;
  background: #2D88FF;
  color: #fff;
}

/* Right-side image overlay: blends hero bg into photo */

.dark .hero-img-blend-right {
  background: rgba(24,25,26,0.68);
}

/* Mobile hero overlay: softens image on small screens */

.dark .hero-mobile-overlay {
  background: rgba(24,25,26,0.84);
}

/* Section-level soft highlight (very subtle -- hero-adjacent sections only) */

.section-soft-highlight {
  background: #F4F5F7;
}

.dark .section-soft-highlight {
  background: #18191A;
}


/* ══════════════════════════════════════════════════════════════════════════
   Compare deck v2 — toolbar, "only differences", sections, winner tint,
   and a thumb-first mobile layout (snap columns, compact sticky headers).
   ══════════════════════════════════════════════════════════════════════════ */

.cmp-deck {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── Deck toolbar ── */
.cmp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.9rem;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
}

.dark .cmp-toolbar {
  background: #0E1626;
}

.cmp-count-note {
  font-size: 0.8125rem;
  color: var(--c-text-3);
  white-space: nowrap;
}

.cmp-count-note strong {
  color: var(--c-text);
}

.cmp-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

/* ── "Only differences" switch ── */
.cmp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.7rem 0.32rem 0.42rem;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-bg-card);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-text-2);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.cmp-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cmp-toggle-track {
  position: relative;
  width: 1.9rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--c-border-strong);
  transition: background-color .15s ease;
}

.cmp-toggle-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.1rem - 4px);
  height: calc(1.1rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform .15s ease;
}

.cmp-toggle.is-on {
  border-color: rgba(0, 87, 255, 0.35);
  color: var(--c-brand);
}

.cmp-toggle.is-on .cmp-toggle-track {
  background: var(--c-brand);
}

.cmp-toggle.is-on .cmp-toggle-dot {
  transform: translateX(0.8rem);
}

.dark .cmp-toggle {
  background: transparent;
}

/* ── Add-more + clear ── */
.cmp-add-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px dashed var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-bg-card);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-text-2);
  transition: border-color .15s ease, color .15s ease;
}

.cmp-add-chip:hover {
  border-color: rgba(0, 87, 255, 0.45);
  color: var(--c-brand);
}

.dark .cmp-add-chip {
  background: transparent;
}

.cmp-clear-btn {
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-text-muted);
  transition: color .15s ease, background-color .15s ease;
}

.cmp-clear-btn:hover {
  color: #DC2626;
  background: rgba(239, 68, 68, 0.06);
}

/* ── Section bands (full-width, brand-marked) ── */
.cmp-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border-strong);
  border-bottom: 1px solid var(--c-border);
  box-shadow: inset 3px 0 0 var(--c-brand);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

.dark .cmp-section {
  background: #0E1626;
}

/* Text stays put while columns scroll sideways */
.cmp-section > span {
  display: inline-block;
  position: sticky;
  left: 0.9rem;
}

.cmp-section--note {
  box-shadow: none;
  border-top: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-text-muted);
}

/* ── Winner cell: instant scanning without shouting ── */
.cmp-cell--best {
  background: rgba(22, 163, 74, 0.05);
  box-shadow: inset 2px 0 0 rgba(22, 163, 74, 0.35);
}

.dark .cmp-cell--best {
  background: rgba(22, 163, 74, 0.10);
}

/* ── Mobile: thumb-first deck ── */
@media (max-width: 639.98px) {
  /* Two columns fill the screen; extra schools snap-scroll into view */
  .cmp-grid {
    grid-template-columns: repeat(var(--cmp-cols, 1), minmax(46vw, 1fr));
  }

  .cmp-scroll {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .cmp-col-head {
    scroll-snap-align: start;
    gap: 0.25rem;
    padding: 0.45rem 0.5rem 0.5rem;
  }

  .cmp-col-head img {
    width: 32px;
    height: 32px;
  }

  .cmp-col-name {
    font-size: 0.9375rem;
    line-height: 1.2;
  }

  .cmp-col-city {
    font-size: 0.75rem;
  }

  /* Remove becomes icon-only on small screens */
  .cmp-col-remove > span:not(.fas) {
    display: none;
  }

  .cmp-col-remove {
    padding: 0.34rem 0.45rem;
  }

  /* Row-label bands stay quiet under the stronger section bands */
  .cmp-label {
    padding: 0.35rem 0.9rem;
    font-size: 0.6875rem;
  }

  .cmp-toolbar {
    padding: 0.5rem 0.75rem;
  }

  .cmp-count-note {
    font-size: 0.75rem;
  }
}

/* Like heart: universally red — outline when not liked, solid when liked.
   FA renders SVG here, so the outline state is drawn by stroking the path. */
.action-circle.business-like-toggle .fa-heart {
  color: #EF4444;
}

.action-circle.business-like-toggle svg.fa-heart path {
  fill: none;
  stroke: currentColor;
  stroke-width: 38px;
}

.action-circle.business-like-toggle.liked svg.fa-heart path {
  fill: currentColor;
  stroke: none;
}

.action-circle.business-like-toggle:hover {
  border-color: #EF4444;
}
