/* ChristianStudents — restored from original purple SPA (uxpilot tokens)
   Brand purple #333C77 · beige page #F5F0E7 · Inter/Open Sans */

:root {
  --purple: #333c77;
  --purple-alt: #3d2f72;
  --purple-name: #5f4b8b;
  --purple-soft: #333c771a;
  --purple-100: #f3e8ff;
  --purple-800: #6b21a8;
  --beige: #f5f0e7;
  --off-white: #f8f7f4;
  --tan: #e0d9c7;
  --tan-light: #eaeaea;
  --dark: #2c2c2c;
  --gray: #666666;
  --link: #565692;
  --blue: #4a6bba;
  --green: #59a670;
  --green-100: #dcfce7;
  --green-800: #166534;
  --yellow: #ffd700;
  --yellow-badge: #fbd85e;
  --orange-brown: #8c6f4b;
  --white: #ffffff;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --radius: 12px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --max: 80rem; /* max-w-7xl */
  --font: Inter, "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--beige);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--purple);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(45rem, calc(100% - 2rem));
}

.muted {
  color: var(--gray);
}

/* ========== Header (purple sticky) ========== */
.site-header {
  background: var(--purple);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.brand-text span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-alt);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--dark);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--dark);
}

.btn-yellow:hover {
  background: #ffdf33;
  color: var(--dark);
}

.btn-outline-purple {
  background: transparent;
  border: 1px solid var(--purple);
  color: var(--purple);
  box-shadow: none;
}

.btn-outline-purple:hover {
  background: var(--purple);
  color: #fff;
}

/* ========== Hero / page heads ========== */
.hero,
.page-hero {
  padding: 2.5rem 0 2rem;
}

.hero-inner,
.page-hero .wrap {
  text-align: center;
}

.page-hero-directory .wrap {
  text-align: left;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.lede {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 40rem;
  margin: 0 auto 1.25rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
}

.eyebrow a {
  color: var(--gray);
  text-decoration: none;
}

.eyebrow a:hover {
  color: var(--purple);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Search panel (directory) */
.search-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 42rem;
  margin: 0 auto 1rem;
  text-align: left;
}

.school-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .school-filters {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.school-filters input,
.school-filters select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--dark);
  width: 100%;
}

.school-filters input:focus,
.school-filters select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.filter-status {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  text-align: center;
}

.az-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 1rem;
}

.az-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--purple);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.az-link.is-empty {
  opacity: 0.35;
  box-shadow: none;
}

/* ========== Sections ========== */
.section {
  padding: 2rem 0 3rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid rgba(0, 0, 0, 0.04);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-head h2,
.guide-group h2,
.related h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
  margin: 0;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
  white-space: nowrap;
}

.text-link:hover {
  color: var(--purple);
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-media {
  height: 12rem; /* h-48 */
  overflow: hidden;
  background: var(--tan);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-empty {
  background: linear-gradient(135deg, var(--tan), var(--purple-soft));
}

.card-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple);
  margin: 0.4rem 0 0.4rem;
  line-height: 1.3;
}

.card-body p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.55;
}

.card-cta {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--link);
}

.card:hover .card-cta {
  color: var(--purple);
}

.place {
  color: var(--gray) !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.35rem !important;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--tan);
  color: var(--dark);
}

.chip-soft,
.chip-denom {
  background: var(--purple-100);
  color: var(--purple-800);
}

.chip-high-school-students {
  background: var(--yellow-badge);
  color: var(--dark);
}

.chip-career-switchers {
  background: #dbeafe;
  color: #1e40af;
}

.chip-ministry-students {
  background: var(--purple-100);
  color: var(--purple-800);
}

.chip-general-guidance {
  background: var(--green-100);
  color: var(--green-800);
}

/* Paths */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.path-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.path-card h3 {
  margin: 0 0 0.5rem;
  color: var(--purple);
  font-size: 1.15rem;
}

.path-card p {
  margin: 0 0 0.85rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.path-card a {
  font-weight: 600;
  text-decoration: none;
}

/* Filters on guides */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.filter-chip {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--dark);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.filter-chip:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.guide-group {
  margin-bottom: 2.5rem;
  text-align: left;
}

.guide-group h2 {
  margin-bottom: 1rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
}

/* ========== School profile (original SPA rhythm) ========== */
.profile-top {
  padding: 1.5rem 0 0;
}

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1rem;
}

.profile-back:hover {
  color: var(--dark);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0 0 1.25rem;
  list-style: none;
  padding: 0;
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--purple);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #9ca3af;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .profile-hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.profile-hero-main {
  flex: 1;
  min-width: 0;
}

.profile-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.place-lg {
  color: var(--gray);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.web-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--link);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.web-link:hover {
  color: var(--purple);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-type {
  background: var(--tan);
  color: var(--dark);
}

.badge-denom {
  background: var(--purple-100);
  color: var(--purple-800);
}

.badge-accr {
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid #bbf7d0;
}

.badge-accr.is-candidate {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}

.badge-accr.is-other {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}

.profile-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  width: min(100%, 22rem);
  flex-shrink: 0;
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

@media (min-width: 960px) {
  .profile-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.panel h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.85rem;
}

.panel h2.purple {
  color: var(--purple);
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.fact-list li:last-child {
  border-bottom: 0;
}

.fact-list span {
  color: var(--gray);
}

.fact-list strong {
  color: var(--dark);
  text-align: right;
  font-weight: 600;
}

.cta-panel {
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}

.cta-panel p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-panel .btn {
  background: #fff;
  color: var(--purple);
}

.cta-panel .btn:hover {
  background: var(--off-white);
  color: var(--purple-alt);
}

/* Article */
.article {
  padding-bottom: 3rem;
}

.article-header {
  padding: 2rem 0 1rem;
  text-align: left;
}

.article-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--purple);
  margin: 0.35rem 0 0.65rem;
  line-height: 1.2;
  text-align: left;
}

.subhead {
  color: var(--gray);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.byline {
  color: var(--gray);
  font-size: 0.95rem;
}

.article-hero-img {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tldr {
  background: #fff;
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.tldr strong {
  display: block;
  color: var(--purple);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.tldr p {
  margin: 0;
  color: var(--dark);
}

.prose {
  font-size: 1.05rem;
  color: var(--dark);
}

.prose p {
  margin: 0 0 1.05rem;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple);
  margin: 1.75rem 0 0.65rem;
}

.prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.related h2 {
  margin-bottom: 1rem;
}

.back-link {
  margin-top: 1.5rem;
  font-weight: 600;
}

.back-link a {
  text-decoration: none;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--purple);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 1rem;
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.7);
  max-width: 28rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--yellow-badge);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy p {
  margin: 0;
}

/* P0: filters, compare, communities, journeys */
.school-filters-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem 1rem;
  width: 100%;
}

.filter-grow {
  grid-column: 1 / -1;
}

.chip-limited,
.badge-limited {
  background: #fef3c7;
  color: #92400e;
}

.path-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.path-card-link:hover {
  color: inherit;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* High-contrast outline on purple / dark heroes */
.btn-outline-light {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  box-shadow: none;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
}

/* Split homepage hero */
.hero-split {
  padding: 2.25rem 0 2.5rem;
  background: linear-gradient(135deg, #2a3266 0%, var(--purple) 55%, #4a3d8a 100%);
  color: #fff;
}

.hero-split-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  color: #fff;
  text-align: left;
  margin: 0 0 0.85rem;
}

.hero-copy .lede-left,
.lede-left {
  margin-left: 0;
  margin-right: 0;
  max-width: 36rem;
  text-align: left;
}

.hero-split .lede {
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions-left {
  justify-content: flex-start;
}

.eyebrow-on-light {
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  max-height: 360px;
}

.hero-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.hero-stat-pills span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* Path cards with images */
.path-card-visual {
  padding: 0;
  overflow: hidden;
}

.path-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tan);
}

.path-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.path-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.path-card-body h3 {
  margin-top: 0;
}

/* Content split + layout pages */
.content-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.content-split-copy h2 {
  color: var(--purple);
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.content-split-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.content-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.prose-left {
  text-align: left;
}

.prose-left > *:first-child {
  margin-top: 0;
}

/* Page banners (about, faith, communities, guides) */
.page-banner {
  position: relative;
  color: #fff;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}

.page-banner-short {
  padding: 2.25rem 0 1.75rem;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: scale(1.02);
}

.page-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(42, 50, 102, 0.88), rgba(51, 60, 119, 0.72));
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 48rem;
}

.page-banner h1 {
  color: #fff;
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}

.eyebrow-on-dark {
  color: rgba(255, 255, 255, 0.85);
}

.lede-on-dark {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 40rem;
}

.filter-row-on-dark {
  margin-top: 1.1rem;
}

.filter-row-on-dark .filter-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-row-on-dark .filter-chip:hover {
  background: #fff;
  color: var(--purple);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.content-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-sm);
}

.content-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.side-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--purple);
}

.side-card-cta {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.side-card-cta p {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.side-card-cta .btn-primary {
  background: #fff;
  color: var(--purple);
  width: 100%;
}

.side-card-cta .btn-primary:hover {
  background: var(--yellow);
  color: var(--dark);
}

.side-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.side-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 200px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  color: var(--dark);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pillar-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gray);
  font-size: 0.92rem;
}

.pillar-list li {
  margin: 0.3rem 0;
}

.section-intro {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: var(--gray);
}

.directory-intro {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  text-align: left;
}

.directory-intro h1 {
  text-align: left;
}

.directory-thumb {
  margin: 0;
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.directory-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.page-hero-directory .search-panel {
  margin-left: 0;
  max-width: none;
}

.page-hero-directory .lede {
  text-align: left;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.footer-logo {
  flex-shrink: 0;
  border-radius: 8px;
}

.footer-brand-block .footer-brand {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-split-inner,
  .content-split,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .directory-thumb {
    display: none;
  }
}

.school-card {
  position: relative;
}

.compare-toggle {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.compare-toggle.is-on,
.compare-toggle[aria-pressed="true"] {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.compare-bar {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.compare-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.compare-bar-inner p {
  margin: 0;
}

.compare-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.compare-list .linkish {
  border: 0;
  background: none;
  color: var(--gray);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.compare-modal {
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.45);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.compare-modal[hidden] {
  display: none;
}

.compare-modal-dialog {
  background: #fff;
  border-radius: var(--radius);
  max-width: 56rem;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.compare-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.compare-modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--purple);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  vertical-align: top;
  text-align: left;
}

.compare-table th {
  background: var(--purple-100);
  color: var(--purple);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

.notice-panel {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
}

.notice-panel p {
  margin: 0;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  margin: 0 0 0.5rem;
}

.small {
  font-size: 0.875rem;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.community-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.community-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--purple);
}

.resource-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.resource-list li {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.resource-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resource-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.resource-list span {
  display: block;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.5;
}

.resource-links {
  margin-top: 0.35rem !important;
  font-size: 0.85rem !important;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
    min-height: auto;
  }

  .hero,
  .page-hero {
    padding-top: 1.75rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo {
    width: 100%;
  }

  .nav {
    flex-wrap: wrap;
  }
}
