@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --sky:    #D4EAF7;
  --sage:   #C8DFD0;
  --peach:  #F2CDBF;
  --lavender: #DDD5F0;
  --marigold: #F5D990;
  --ink:    #1A1A2E;
  --ink-mid: #3D3D5C;
  --ink-soft:#7070A0;
  --white:  #FAFBFF;
  --surface:#F0F2FA;
  --accent: #5B4FCF;
  --accent-light: #EBE9FA;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(250,251,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91,79,207,0.1);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; line-height: 1; }
.nav-logo svg { display: block; }
.footer-logo-svg text { fill: #F0F2FF !important; }
.footer-logo-svg .tagline-text { fill: #9090C0 !important; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-mid);
  text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: white !important;
  padding: 8px 20px; border-radius: 20px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #4940B0 !important; color: white !important; }
.nav-links { margin-left: auto; }
.nav-auth { display: flex; align-items: center; gap: 12px; margin-left: 24px; }
.nav-auth-user { font-size: 13px; font-weight: 600; color: var(--ink); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-auth-btn {
  font: 600 13px 'Inter', sans-serif; color: var(--accent); background: white;
  border: 1.5px solid var(--accent); border-radius: 20px; padding: 7px 16px; cursor: pointer;
  transition: background 0.2s;
}
.nav-auth-btn:hover { background: var(--accent-light); }

/* ── AUTH DIALOG ── */
.auth-dialog {
  margin: auto; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  border: none; border-radius: 24px; padding: 36px 32px 28px; background: white; color: var(--ink);
  box-shadow: 0 30px 80px rgba(26,26,46,0.28);
}
.auth-dialog::backdrop { background: rgba(26,26,46,0.45); backdrop-filter: blur(3px); }
.auth-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.auth-close:hover { color: var(--ink); }
.auth-title { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 6px; }
.auth-reason { font-size: 13.5px; line-height: 1.55; color: var(--ink-mid); margin-bottom: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); margin-bottom: 18px; }
.auth-tab { border: none; background: none; padding: 9px; border-radius: 10px; font: 600 13px 'Inter', sans-serif; color: var(--ink-mid); cursor: pointer; }
.auth-tab.active { background: white; color: var(--accent); box-shadow: 0 2px 8px rgba(26,26,46,0.08); }
.auth-form { display: grid; gap: 14px; }
.auth-body { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-mid); }
.auth-field input {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid rgba(91,79,207,0.2); background: var(--white);
  font: 400 14px 'Inter', sans-serif; color: var(--ink);
}
.auth-field input:focus-visible { outline: 3px solid rgba(91,79,207,0.25); outline-offset: 1px; border-color: var(--accent); }
.auth-hint, .auth-note { font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; }
.auth-note { font-size: 13px; color: var(--ink-mid); }
.auth-type { border: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-type legend { font-size: 12.5px; font-weight: 600; color: var(--ink-mid); margin-bottom: 6px; }
.auth-type-opt {
  display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid rgba(91,79,207,0.2); background: var(--white); transition: border-color 0.2s, background 0.2s;
}
.auth-type-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-light); }
.auth-type-opt input { margin-top: 3px; accent-color: var(--accent); }
.auth-type-opt strong { display: block; font-size: 13.5px; color: var(--ink); }
.auth-type-opt em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.auth-status { font-size: 13px; line-height: 1.5; color: var(--ink-mid); min-height: 0; }
.auth-status:empty { display: none; }
.auth-status.error { color: #A44832; }
.auth-status.success { color: #1F6A3D; font-weight: 600; }
.auth-submit { border: none; cursor: pointer; font-family: 'Inter', sans-serif; width: 100%; text-align: center; }
.auth-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.auth-alt { text-align: center; }
.auth-alt:empty { display: none; }
.auth-link { border: none; background: none; font: 600 13px 'Inter', sans-serif; color: var(--accent); cursor: pointer; }
.auth-link:hover { text-decoration: underline; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 48px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #F8F6FF 0%, #EFF7F5 40%, #FDF5F2 70%, #F8F6FF 100%);
}
/* floating spectrum circles */
.hero-circles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden;
}
.hc {
  position: absolute; border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hc-1 { width: 420px; height: 420px; background: var(--lavender); opacity: 0.35; top: -80px; right: -60px; animation-delay: 0s; }
.hc-2 { width: 260px; height: 260px; background: var(--sage); opacity: 0.4; bottom: 60px; right: 160px; animation-delay: 2s; }
.hc-3 { width: 180px; height: 180px; background: var(--peach); opacity: 0.45; top: 30%; left: 55%; animation-delay: 4s; }
.hc-4 { width: 120px; height: 120px; background: var(--marigold); opacity: 0.4; bottom: 120px; right: 80px; animation-delay: 1s; }
@keyframes float {
  0%,100% { transform: translateY(0px) scale(1); }
  50%      { transform: translateY(-20px) scale(1.03); }
}

.hero-layout {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  column-gap: 64px; align-items: center;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 32px; height: 2px; background: var(--accent);
}
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08; color: var(--ink);
  margin-bottom: 28px;
}
h1 em {
  font-style: italic; color: var(--accent);
}
.hero-sub {
  font-size: 17px; line-height: 1.7; color: var(--ink-mid);
  max-width: 540px; margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: white;
  padding: 14px 32px; border-radius: 28px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(91,79,207,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(91,79,207,0.38); }
.btn-secondary {
  background: white; color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 14px 32px; border-radius: 28px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; display: inline-block;
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--accent-light); }

.hero-stats {
  position: relative; z-index: 2;
  grid-column: 1 / -1;
  display: flex; gap: 48px; margin-top: 64px;
  padding-top: 40px; border-top: 1px solid rgba(91,79,207,0.15);
}
.stat-item { }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px; color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12.5px; color: var(--ink-soft);
  margin-top: 4px; max-width: 120px; line-height: 1.4;
}

/* ── HERO PHOTO (rotates daily) ── */
.hero-photo { position: relative; z-index: 2; margin: 0; min-width: 0; }
.hero-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 32px; overflow: hidden;
  background: var(--lavender);
  box-shadow: 0 30px 70px rgba(26,26,46,0.20);
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
#hero-photo { opacity: 0; transition: opacity 0.6s ease; }
#hero-photo.is-loaded { opacity: 1; }
.hero-photo-credit {
  margin-top: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.03em;
  color: var(--ink-soft); line-height: 1.5;
}

/* ── SECTION BASE ── */
section { padding: 100px 48px; }
.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15; color: var(--ink);
  margin-bottom: 20px; max-width: 640px;
}
.section-lead {
  font-size: 16px; line-height: 1.75; color: var(--ink-mid);
  max-width: 600px; margin-bottom: 56px;
}

/* ── AUDIENCE TABS ── */
.audience { background: var(--surface); }

.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.resource-card {
  background: white; border-radius: 16px;
  padding: 28px; border: 1px solid rgba(91,79,207,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(91,79,207,0.12); }
.rc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 16px;
}
.badge-blue   { background: var(--sky);      color: #1A5F8A; }
.badge-green  { background: var(--sage);     color: #1A5F3A; }
.badge-peach  { background: var(--peach);    color: #8A3520; }
.badge-purple { background: var(--lavender); color: #4A3590; }
.badge-gold   { background: var(--marigold); color: #6A5010; }

.rc-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.rc-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 18px; }
.rc-link {
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.rc-link:hover { gap: 10px; }
.rc-link::after { content: '→'; }

/* ── FAMILY EVENTS ── */
.events-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(245,217,144,0.42), transparent 24%),
    radial-gradient(circle at 92% 78%, rgba(200,223,208,0.55), transparent 26%),
    #FFFDF8;
  position: relative; overflow: hidden;
}
.events-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px; align-items: end; margin-bottom: 42px;
}
.events-head .section-lead { margin-bottom: 0; }
.events-stamp {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #6A5010; background: rgba(245,217,144,0.55);
  border: 1px solid rgba(106,80,16,0.16); border-radius: 999px;
  padding: 9px 14px; white-space: nowrap;
}
.event-location {
  display: grid; grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center; gap: 14px; margin-bottom: 24px;
  padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,0.78); border: 1px solid rgba(91,79,207,0.12);
}
.location-marker {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-light); border-radius: 12px;
}
.location-marker svg { width: 20px; height: 20px; }
.location-copy { min-width: 0; }
.location-copy strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.location-copy span { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.event-location[data-state="loading"] .location-marker { animation: locationPulse 1.4s ease-in-out infinite; }
.event-location[data-state="error"] .location-marker { color: #8A3520; background: var(--peach); }
.location-override { display: flex; align-items: end; gap: 8px; }
.location-field { display: grid; gap: 5px; }
.location-field label {
  color: var(--ink-soft); font: 600 9.5px 'DM Mono', monospace;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.zip-help { color: var(--ink-soft); font-size: 10.5px; }
.location-field input {
  width: 150px; min-height: 38px; padding: 8px 12px;
  border: 1px solid rgba(91,79,207,0.2); border-radius: 10px;
  background: white; color: var(--ink-mid); font: 500 12.5px 'Inter', sans-serif;
}
.location-field input[aria-invalid="true"] { border-color: #A44832; background: #FFF8F5; }
.location-field input:focus-visible, .location-apply:focus-visible, .location-reset:focus-visible { outline: 3px solid rgba(91,79,207,0.25); outline-offset: 2px; }
.location-apply {
  min-height: 38px; padding: 8px 14px; border: 0; border-radius: 10px;
  background: var(--accent); color: white; cursor: pointer;
  font: 700 12px 'Inter', sans-serif; transition: transform 0.2s, background 0.2s;
}
.location-apply:hover { transform: translateY(-1px); background: #4940B0; }
.location-apply:disabled { cursor: wait; opacity: 0.65; transform: none; }
.location-reset {
  min-height: 38px; padding: 8px 3px; border: 0; background: transparent;
  color: var(--accent); cursor: pointer; font: 700 11.5px 'Inter', sans-serif;
}
.location-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.location-reset[hidden] { display: none; }
@keyframes locationPulse { 50% { transform: scale(0.92); opacity: 0.6; } }
.event-filter-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 22px 34px; margin-bottom: 30px; }
.event-filter-group { display: grid; gap: 8px; }
.event-filter-label {
  color: var(--ink-soft); font: 600 9.5px 'DM Mono', monospace;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.event-result-count {
  margin-left: auto; align-self: end; padding: 9px 0;
  color: var(--ink-soft); font: 500 11px 'DM Mono', monospace;
}
.event-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.event-filter {
  appearance: none; border: 1px solid rgba(91,79,207,0.18);
  background: rgba(255,255,255,0.82); color: var(--ink-mid);
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
  font: 600 12.5px 'Inter', sans-serif; transition: transform 0.2s, background 0.2s, color 0.2s;
}
.event-filter:hover { transform: translateY(-1px); color: var(--accent); }
.event-filter:focus-visible { outline: 3px solid rgba(91,79,207,0.25); outline-offset: 2px; }
.event-filter.active { background: var(--ink); border-color: var(--ink); color: white; }
.events-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 20px; align-items: stretch; grid-auto-flow: dense; scroll-margin-top: 110px;
}
.event-card {
  grid-column: span 4; min-height: 310px;
  display: flex; flex-direction: column; position: relative;
  background: rgba(255,255,255,0.9); border: 1px solid rgba(26,26,46,0.08);
  border-radius: 18px; padding: 24px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(62,54,33,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.event-card:nth-child(1) { grid-column: span 5; }
.event-card:nth-child(2) { grid-column: span 7; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(62,54,33,0.1); }
.event-card.local-match { border-color: rgba(91,79,207,0.4); box-shadow: 0 14px 38px rgba(91,79,207,0.12); }
.event-card[hidden] { display: none; }
.event-empty {
  margin-top: 20px; padding: 28px; text-align: center;
  border: 1px dashed rgba(91,79,207,0.25); border-radius: 18px;
  background: rgba(255,255,255,0.62); color: var(--ink-mid); font-size: 13.5px; line-height: 1.6;
}
.event-empty[hidden] { display: none; }
.event-match {
  position: absolute; top: 0; right: 22px; padding: 6px 11px;
  border-radius: 0 0 10px 10px; background: var(--accent); color: white;
  font: 600 9.5px 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase;
}
.event-format {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  margin-bottom: 13px; padding: 5px 10px; border-radius: 999px;
  color: #1A5F3A; background: rgba(200,223,208,0.65);
  font: 700 10px 'DM Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase;
}
.event-format::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.event-format.online { color: #4A3590; background: rgba(221,213,240,0.72); }
.event-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.event-date {
  font-family: 'DM Mono', monospace; font-size: 11.5px; line-height: 1.45;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.event-icon {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px;
  display: grid; place-items: center; color: var(--ink);
  background: var(--marigold);
}
.event-card:nth-child(2n) .event-icon { background: var(--sage); }
.event-card:nth-child(3n) .event-icon { background: var(--lavender); }
.event-icon svg { width: 22px; height: 22px; }
.event-title { font-family: 'DM Serif Display', serif; font-size: 25px; line-height: 1.15; color: var(--ink); margin-bottom: 10px; }
.event-desc { font-size: 13.5px; color: var(--ink-mid); line-height: 1.65; margin-bottom: 20px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; margin-bottom: 20px; }
.event-meta span {
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border-radius: 999px; padding: 5px 10px;
}
.event-link { color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; width: fit-content; }
.event-link::after { content: '  ↗'; }
.event-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-finders {
  margin-top: 28px; display: grid; grid-template-columns: 1.1fr 1fr 1fr;
  background: var(--ink); border-radius: 20px; overflow: hidden;
}
.finder-intro, .finder-link { padding: 26px 28px; }
.finder-intro { background: rgba(255,255,255,0.04); }
.finder-intro strong { display: block; font-family: 'DM Serif Display', serif; font-size: 22px; color: white; margin-bottom: 6px; }
.finder-intro span { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.finder-link { color: white; text-decoration: none; border-left: 1px solid rgba(255,255,255,0.1); transition: background 0.2s; }
.finder-link:hover { background: rgba(255,255,255,0.08); }
.finder-link small { display: block; color: var(--marigold); font: 500 10px 'DM Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 7px; }
.finder-link strong { font-size: 14px; }

/* ── BEST PRACTICES ── */
.best-practices { background: white; }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.bp-card {
  background: var(--surface);
  border-radius: 20px; padding: 36px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(91,79,207,0.06);
}
.bp-card::before {
  content: attr(data-num);
  position: absolute; top: -12px; right: 20px;
  font-family: 'DM Serif Display', serif;
  font-size: 100px; color: var(--accent); opacity: 0.06;
  line-height: 1;
}
.bp-icon { font-size: 32px; margin-bottom: 16px; }
.bp-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.bp-text { font-size: 14.5px; color: var(--ink-mid); line-height: 1.7; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bp-tag {
  font-size: 11.5px; font-weight: 500; padding: 4px 12px; border-radius: 12px;
  background: white; color: var(--ink-soft); border: 1px solid rgba(91,79,207,0.15);
}

/* ── ORGANIZATIONS ── */
.orgs { background: var(--ink); }
.orgs .section-eyebrow { color: var(--marigold); }
.orgs .section-title { color: white; }
.orgs .section-lead { color: rgba(255,255,255,0.6); }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.org-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 24px;
  transition: background 0.2s, border-color 0.2s;
}
.org-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(91,79,207,0.4); }
.org-name { font-size: 15px; font-weight: 600; color: white; margin-bottom: 8px; }
.org-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 16px; }
.org-link {
  font-size: 12.5px; font-weight: 600; color: var(--marigold);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.org-link:hover { gap: 10px; }
.org-link::after { content: '↗'; }

.research-feed { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.research-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.research-title { font-size: 22px; font-weight: 600; color: white; margin-bottom: 8px; }
.research-lead { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 640px; }
.research-updated { font-size: 12px; color: rgba(255,255,255,0.45); }
.research-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.research-filter {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: rgba(255,255,255,0.7); background: transparent;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 6px 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.research-filter:hover { border-color: rgba(255,255,255,0.45); color: white; }
.research-filter.active { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.research-filter:focus-visible { outline: 2px solid var(--marigold); outline-offset: 2px; }
.research-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.research-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.research-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(91,79,207,0.4); }
.research-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11.5px; color: rgba(255,255,255,0.5); }
.research-type {
  font-weight: 600; color: var(--ink); background: var(--marigold);
  border-radius: 999px; padding: 2px 10px;
}
.research-card-title { font-size: 14.5px; font-weight: 600; color: white; line-height: 1.45; }
.research-source { font-weight: 600; color: var(--marigold); text-transform: uppercase; letter-spacing: 0.04em; }
.research-topic { font-weight: 600; color: white; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 1px 9px; }
.research-summary { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.55; }
.research-journal { font-size: 12.5px; color: rgba(255,255,255,0.6); font-style: italic; }
.research-authors { font-size: 12px; color: rgba(255,255,255,0.45); }
.research-card .org-link { margin-top: auto; }
.research-status, .research-note { font-size: 13px; color: rgba(255,255,255,0.5); }
.research-more { display: block; margin: 24px auto 0; }
.research-more[hidden] { display: none; }
.research-note { margin-top: 20px; font-size: 12px; }

/* ── TOOLS ── */
.tools-section { background: var(--surface); }
.tools-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-item {
  background: white; border-radius: 14px; padding: 24px 28px;
  display: flex; align-items: flex-start; gap: 20px;
  border: 1px solid rgba(91,79,207,0.08);
  transition: box-shadow 0.2s;
}
.tool-item:hover { box-shadow: 0 8px 24px rgba(91,79,207,0.1); }
.tool-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ti-purple { background: var(--lavender); }
.ti-green  { background: var(--sage); }
.ti-blue   { background: var(--sky); }
.ti-peach  { background: var(--peach); }
.ti-gold   { background: var(--marigold); }
.tool-info .tool-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.tool-info .tool-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.tool-info a { color: var(--accent); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.tool-info a:hover { text-decoration: underline; }

/* ── EARLY SIGNS ── */
.early-signs { background: white; }
.signs-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.signs-intro h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px; color: var(--ink); margin-bottom: 16px;
}
.signs-intro p { font-size: 15px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 24px; }
.age-block { margin-bottom: 32px; }
.age-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.age-label::after { content: ''; flex: 1; height: 1px; background: rgba(91,79,207,0.2); }
.sign-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 24px; margin: 4px;
  font-size: 13.5px; color: var(--ink-mid);
  background: var(--surface); border: 1px solid rgba(91,79,207,0.1);
}
.sign-pill::before { content: '·'; color: var(--accent); font-size: 20px; line-height: 0; }

.alert-box {
  background: linear-gradient(135deg, var(--lavender), var(--sky));
  border-radius: 16px; padding: 28px 32px;
  margin-top: 32px;
}
.alert-box h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.alert-box p { font-size: 14px; color: var(--ink-mid); line-height: 1.65; }

/* ── GLOSSARY ── */
.glossary { background: var(--surface); }
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gloss-card {
  background: white; border-radius: 12px; padding: 22px;
  border-left: 4px solid var(--accent);
}
.gloss-term { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.gloss-def { font-size: 13.5px; color: var(--ink-mid); line-height: 1.6; }

/* ── INCLUSIVE JOBS ── */
.jobs-section { background: linear-gradient(180deg, #F7F9F4 0%, var(--white) 100%); }
.jobs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 40px; }
.jobs-head .section-lead { margin-bottom: 0; }
.jobs-invite-btn { border: none; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; }
.jobs-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.jobs-search {
  flex: 1 1 280px; min-height: 44px; padding: 10px 16px;
  border: 1px solid rgba(91,79,207,0.2); border-radius: 12px;
  background: white; color: var(--ink); font: 500 14px 'Inter', sans-serif;
}
.jobs-mode-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.jobs-count { color: var(--ink-soft); font: 500 11px 'DM Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; margin-left: auto; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.job-card {
  background: white; border-radius: 18px; padding: 26px;
  border: 1px solid rgba(91,79,207,0.1);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(91,79,207,0.1); }
.job-business { font: 500 11px 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.job-title { font-family: 'DM Serif Display', serif; font-size: 24px; line-height: 1.2; color: var(--ink); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-tag { font-size: 11.5px; font-weight: 600; color: var(--ink-mid); background: var(--surface); border-radius: 999px; padding: 5px 11px; }
.job-tag.mode { background: var(--sage); color: #1F4A30; }
.job-summary { font-size: 13.5px; line-height: 1.65; color: var(--ink-mid); }
.job-accom { font-size: 13px; line-height: 1.6; color: var(--ink-mid); background: #FBF6E6; border-left: 3px solid var(--marigold); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.job-accom strong { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #6A5010; margin-bottom: 4px; }
.job-contact { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(91,79,207,0.18); display: grid; gap: 4px; font-size: 13px; color: var(--ink-mid); }
.job-contact a { color: var(--accent); text-decoration: none; font-weight: 600; word-break: break-word; }
.job-contact a:hover { text-decoration: underline; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.job-jd {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: white; text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 20px;
}
.job-jd:hover { background: var(--accent); }
.job-apply { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 20px; border: 1.5px solid var(--accent); color: var(--accent); text-decoration: none; }
.job-apply:hover { background: var(--accent-light); }
.job-date { font: 400 10.5px 'DM Mono', monospace; color: var(--ink-soft); }
.jobs-empty { padding: 44px; text-align: center; border: 1.5px dashed rgba(91,79,207,0.25); border-radius: 18px; color: var(--ink-mid); font-size: 14.5px; line-height: 1.6; background: white; }
.jobs-empty strong { display: block; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 22px; color: var(--ink); margin-bottom: 6px; }

.employer-invite {
  margin-top: 64px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0;
  border-radius: 28px; overflow: hidden; background: white;
  border: 1px solid rgba(91,79,207,0.12); box-shadow: 0 24px 60px rgba(26,26,46,0.08);
}
.employer-pitch { background: var(--ink); color: rgba(255,255,255,0.75); padding: 48px 44px; }
.employer-pitch .section-eyebrow { color: var(--marigold); }
.employer-pitch h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; color: white; margin-bottom: 18px; }
.employer-pitch p { font-size: 14.5px; line-height: 1.7; margin-bottom: 24px; }
.employer-points { list-style: none; display: grid; gap: 14px; }
.employer-points li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.55; }
.employer-points li span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(245,217,144,0.16); color: var(--marigold); font-size: 13px; }
.employer-points b { color: white; font-weight: 600; }
.job-form { padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-content: start; }
.job-form fieldset { border: none; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.job-form legend { grid-column: 1 / -1; font: 500 11px 'DM Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; padding-top: 6px; }
.jf-field { display: grid; gap: 6px; min-width: 0; }
.jf-field.full { grid-column: 1 / -1; }
.jf-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-mid); }
.jf-field label em { font-style: normal; color: var(--ink-soft); font-weight: 400; }
.jf-field input, .jf-field select, .jf-field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid rgba(91,79,207,0.2); background: var(--white);
  font: 400 14px 'Inter', sans-serif; color: var(--ink);
}
.jf-field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.jf-field input:focus-visible, .jf-field select:focus-visible, .jf-field textarea:focus-visible,
.jobs-search:focus-visible, .jf-drop:focus-within { outline: 3px solid rgba(91,79,207,0.25); outline-offset: 1px; border-color: var(--accent); }
.jf-hint { font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; }
.jf-drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 4px;
  padding: 22px; border-radius: 14px; border: 1.5px dashed rgba(91,79,207,0.35);
  background: var(--accent-light); color: var(--ink-mid); font-size: 13.5px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.jf-drop.dragging, .jf-drop:hover { background: #E1DEF8; border-color: var(--accent); }
.jf-drop.has-file { background: #E6F2EA; border-color: #4C8A62; border-style: solid; }
.jf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.jf-drop strong { color: var(--accent); }
.jf-auth {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  background: #FFF6DC; border: 1px solid rgba(192,144,32,0.35); color: var(--ink-mid);
}
.jf-auth:empty { display: none; }
.jf-auth.signed-in { background: #E6F2EA; border-color: rgba(76,138,98,0.35); color: #1F6A3D; }
.jf-auth strong { color: inherit; }
.jf-auth-btn {
  font: 600 12.5px 'Inter', sans-serif; color: var(--accent); background: white;
  border: 1.5px solid var(--accent); border-radius: 16px; padding: 5px 12px; cursor: pointer;
}
.jf-auth-btn:hover { background: var(--accent-light); }
.jf-consent-wrap { grid-column: 1 / -1; display: grid; gap: 6px; }
.jf-required { display: inline-block; margin-left: 4px; font: 600 10px 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #A44832; }
.jf-consent-hint { font-size: 11.5px; color: #A44832; padding-left: 26px; }
.jf-consent-hint[hidden] { display: none; }
.jf-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--ink-mid); }
.jf-consent input { margin-top: 3px; accent-color: var(--accent); }
.jf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jf-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jf-submit button { border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.jf-submit button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.jf-status { font-size: 13px; line-height: 1.5; color: var(--ink-mid); }
.jf-status.error { color: #A44832; }
.jf-status.success { color: #1F6A3D; font-weight: 600; }

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, #5B4FCF, #8A7FDF);
  padding: 80px 48px; text-align: center;
}
.newsletter h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 44px); color: white;
  margin-bottom: 14px;
}
.newsletter p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 36px; }
.nl-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.nl-form input {
  flex: 1; padding: 14px 20px; border-radius: 24px; border: none;
  font-size: 15px; outline: none; font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,0.92);
}
.nl-form button {
  padding: 14px 28px; border-radius: 24px; border: none;
  background: white; color: var(--accent);
  font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: transform 0.2s;
}
.nl-form button:hover { transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 60px 48px 40px;
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px;
}
.footer-brand .nav-logo { color: white; display: flex; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; max-width: 280px; }
.footer-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--marigold); }
.footer-bottom {
  background: var(--ink); padding: 20px 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.3); }
.disclaimer {
  font-size: 11.5px; color: rgba(255,255,255,0.25);
  max-width: 460px; line-height: 1.55; text-align: right;
}

/* ── ABOUT ── */
.about-section { background: white; }
.about-inner { display: grid; grid-template-columns: 1fr 340px; gap: 72px; align-items: start; }
.about-text p { font-size: 16px; line-height: 1.8; color: var(--ink-mid); margin-bottom: 18px; }
.about-text strong { color: var(--accent); font-weight: 600; }
.about-closing { font-style: italic; color: var(--ink) !important; }
.about-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.about-card { background: var(--surface); border-radius: 16px; padding: 28px; border: 1px solid rgba(91,79,207,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.about-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(91,79,207,0.1); }
.about-card-icon { font-size: 28px; margin-bottom: 10px; }
.about-card-label { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.about-card-desc { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }

/* responsive */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-auth-user { display: none; }
  section { padding: 70px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-layout { grid-template-columns: 1fr; row-gap: 44px; }
  .hero-photo { max-width: 420px; }
  .hero-photo-frame { aspect-ratio: 5 / 4; }
  .bp-grid { grid-template-columns: 1fr; }
  .signs-wrapper { grid-template-columns: 1fr; gap: 32px; }
  footer { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .disclaimer { text-align: center; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .nl-form { flex-direction: column; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .about-card { flex: 1 1 200px; }
  .jobs-head { grid-template-columns: 1fr; gap: 20px; }
  .employer-invite { grid-template-columns: 1fr; }
  .employer-pitch, .job-form { padding: 36px 24px; }
  .events-head { grid-template-columns: 1fr; gap: 16px; }
  .events-stamp { width: fit-content; }
  .event-card, .event-card:nth-child(1), .event-card:nth-child(2) { grid-column: span 6; }
  .event-finders { grid-template-columns: 1fr; }
  .finder-link { border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .event-location { grid-template-columns: auto minmax(0, 1fr); }
  .location-override { grid-column: 1 / -1; padding-left: 54px; }
}

@media (max-width: 620px) {
  .event-card, .event-card:nth-child(1), .event-card:nth-child(2) { grid-column: 1 / -1; min-height: 0; }
  .job-form, .job-form fieldset { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .jobs-count { margin-left: 0; width: 100%; }
  .event-filter { padding: 8px 12px; }
  .event-filter-toolbar, .event-filter-group { width: 100%; }
  .event-result-count { width: 100%; margin-left: 0; padding-top: 0; }
  .event-location { align-items: start; }
  .location-override { padding-left: 0; display: grid; grid-template-columns: 1fr auto; width: 100%; }
  .location-field input { width: 100%; }
  .location-reset { grid-column: 1 / -1; justify-self: start; min-height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc { animation: none; }
  #hero-photo { transition: none; }
}

/* ── PERSONA CHOOSER (home) ── */
.persona-kicker { font: 500 10.5px 'DM Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); }

/* ── PERSONA HUB (home) ── */
.hero-roles a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(91,79,207,0.35); }
.hero-roles a:hover { border-color: var(--accent); }
.hub-search { display: none; }
.hub-tabs { display: none; }
.hub.is-enhanced .hub-search {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 16px;
  padding: 14px 18px; margin-bottom: 18px; border-radius: 16px; background: white; border: 1px solid rgba(91,79,207,0.12);
}
.hub-search-label { font: 500 10.5px 'DM Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.hub-search-input {
  width: 100%; font: 400 15px 'Inter', sans-serif; color: var(--ink); padding: 11px 14px;
  border-radius: 12px; border: 1.5px solid rgba(91,79,207,0.18); background: var(--white);
}
.hub-search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,79,207,0.15); }
.hub-search-status { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.hub.is-enhanced .hub-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.hub-tab {
  --tint: var(--lavender); --deep: #4A3590;
  font: 600 14px 'Inter', sans-serif; color: var(--ink-mid); text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px;
  background: white; border: 1.5px solid rgba(91,79,207,0.12); transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hub-tab span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--tint); font-size: 18px; }
.hub-tab:hover { border-color: var(--tint); color: var(--ink); }
.hub-tab:focus-visible { outline: 3px solid rgba(91,79,207,0.3); outline-offset: 2px; }
.hub-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.hub-panel {
  --tint: var(--lavender); --deep: #4A3590;
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 32px;
  padding: 34px 32px 30px; border-radius: 20px; background: white; border: 1px solid rgba(91,79,207,0.1);
  overflow: hidden; margin-bottom: 18px;
}
.hub.is-enhanced .hub-panel { margin-bottom: 0; }
.hub-panel[hidden] { display: none; }
.hub-panel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--tint); }
.hub-panel:focus-visible { outline: 3px solid rgba(91,79,207,0.3); outline-offset: 3px; }
.hub-tab.persona-parents, .hub-panel.persona-parents { --tint: var(--sky); --deep: #1A5F8A; }
.hub-tab.persona-schools, .hub-panel.persona-schools { --tint: var(--sage); --deep: #1A5F3A; }
.hub-tab.persona-clinics, .hub-panel.persona-clinics { --tint: var(--lavender); --deep: #4A3590; }
.hub-tab.persona-employers, .hub-panel.persona-employers { --tint: var(--marigold); --deep: #6A5010; }
.hub-intro { display: flex; flex-direction: column; gap: 10px; }
.hub-title { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink); }
.hub-desc { font-size: 14px; line-height: 1.65; color: var(--ink-soft); flex: 1; }
.hub-guide {
  align-self: flex-start; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: white; text-decoration: none;
  background: var(--accent); padding: 11px 20px; border-radius: 999px; transition: background 0.2s;
}
.hub-guide::after { content: ' →'; }
.hub-guide:hover { background: var(--ink); }
.hub-col-title { font: 500 10.5px 'DM Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); margin-bottom: 12px; }
.hub-tasks, .hub-resources, .hub-results-list { list-style: none; display: grid; gap: 6px; }
.hub-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: 10px; background: var(--surface); transition: background 0.2s, color 0.2s;
}
.hub-link::after { content: '→'; color: var(--accent); flex: none; }
.hub-link[target="_blank"]::after { content: '↗'; }
.hub-link:hover { background: var(--accent-light); color: var(--accent); }
.hub-res {
  display: grid; gap: 2px; padding: 10px 34px 10px 14px; position: relative; text-decoration: none;
  border-radius: 10px; border: 1px solid rgba(91,79,207,0.12); transition: border-color 0.2s, background 0.2s;
}
.hub-res::after { content: '↗'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--accent); }
.hub-res:not([target="_blank"])::after { content: '→'; }
.hub-res b { font-size: 14px; font-weight: 600; color: var(--ink); }
.hub-res span { font-size: 12px; color: var(--ink-soft); }
.hub-res:hover { border-color: var(--accent); background: var(--accent-light); }
.hub-res:focus-visible, .hub-link:focus-visible, .hub-guide:focus-visible { outline: 3px solid rgba(91,79,207,0.3); outline-offset: 2px; }
.hub-results { padding: 26px 28px; border-radius: 20px; background: white; border: 1px solid rgba(91,79,207,0.1); }
.hub-results-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.hub-empty { font-size: 14px; color: var(--ink-mid); line-height: 1.7; }
.hub-empty a { color: var(--accent); font-weight: 600; }
@media (max-width: 1000px) {
  .hub-panel { grid-template-columns: 1fr 1fr; }
  .hub-intro { grid-column: 1 / -1; }
  .hub.is-enhanced .hub-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .hub-panel { grid-template-columns: 1fr; padding: 28px 20px 22px; gap: 24px; }
  .hub.is-enhanced .hub-search { grid-template-columns: 1fr; }
  .hub-tab { font-size: 13px; padding: 12px; }
}

.jobs-employer-cta {
  margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: 20px; background: #FBF6E6; border: 1px solid rgba(106,80,16,0.14);
}
.jobs-employer-cta strong { display: block; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.jobs-employer-cta span { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }

/* ── PERSONA PAGES ── */
.persona-hero {
  --tint: var(--lavender); --deep: #4A3590;
  position: relative; overflow: hidden; padding: 150px 48px 70px;
  background: linear-gradient(135deg, #F8F6FF 0%, var(--white) 70%);
}
.persona-hero::after {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: var(--tint); opacity: 0.45; top: -120px; right: -100px; pointer-events: none;
}
.persona-hero > * { position: relative; z-index: 1; }
.persona-hero h1 { font-size: clamp(40px, 5.5vw, 66px); max-width: 820px; margin-bottom: 22px; }
.persona-hero h1 em { font-style: italic; color: var(--deep); }
.persona-hero .hero-eyebrow { color: var(--deep); }
.persona-hero .hero-eyebrow::before { background: var(--deep); }
.persona-hero .hero-sub { max-width: 640px; margin-bottom: 34px; }
.page-parents   { --tint: var(--sky);      --deep: #1A5F8A; }
.page-schools   { --tint: var(--sage);     --deep: #1A5F3A; }
.page-clinics   { --tint: var(--lavender); --deep: #4A3590; }
.page-employers { --tint: var(--marigold); --deep: #6A5010; }
.persona-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.persona-switch a {
  font-size: 13px; font-weight: 600; color: var(--ink-mid); text-decoration: none;
  padding: 9px 16px; border-radius: 999px; background: white; border: 1px solid rgba(91,79,207,0.15);
  transition: color 0.2s, border-color 0.2s;
}
.persona-switch a:hover { color: var(--accent); border-color: var(--accent); }
.persona-switch a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: white; }
.persona-resources { background: var(--surface); }
.persona-next { background: white; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.next-card {
  display: block; padding: 24px; border-radius: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid rgba(91,79,207,0.08); transition: transform 0.2s, box-shadow 0.2s;
}
.next-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(91,79,207,0.1); }
.next-card b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 6px; }
.next-card span { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.next-card i { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: 12px; }

/* employer page */
.hiring-section { background: white; }
.hiring-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hiring-steps li {
  counter-increment: step; position: relative; padding: 26px 24px 24px; border-radius: 16px;
  background: var(--surface); border: 1px solid rgba(91,79,207,0.08);
}
.hiring-steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 12px;
  font: 500 12px 'DM Mono', monospace; letter-spacing: 0.1em; color: #6A5010;
}
.hiring-steps b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.hiring-steps p { font-size: 13.5px; line-height: 1.65; color: var(--ink-mid); }
.talent-stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 30px; margin-top: 10px; border-top: 1px solid rgba(106,80,16,0.18); }
.post-job-section { background: linear-gradient(180deg, #F7F9F4 0%, var(--white) 100%); padding-top: 40px; }
.post-job-section .employer-invite { margin-top: 0; }
.jf-status a { color: inherit; }
.jf-editing {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  background: var(--accent-light); border: 1px solid rgba(91,79,207,0.3); color: var(--accent);
}
.jf-editing[hidden] { display: none; }
.jf-editing .jf-auth-btn { margin-left: auto; }
.job-manage { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.job-manage:hover { text-decoration: underline; }

/* Employer's own postings */
.my-jobs {
  margin-top: 28px; padding: 36px 44px; border-radius: 28px; background: white;
  border: 1px solid rgba(91,79,207,0.12); box-shadow: 0 24px 60px rgba(26,26,46,0.06);
}
.my-jobs[hidden] { display: none; }
.my-jobs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 18px; }
.my-jobs-head h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--ink); }
.my-jobs-head p { max-width: 420px; font-size: 13.5px; line-height: 1.6; color: var(--ink-mid); }
.my-jobs-status { font-size: 13px; line-height: 1.5; color: var(--ink-mid); }
.my-jobs-status:empty { display: none; }
.my-jobs-status.error { color: #A44832; }
.my-jobs-status.success { color: #1F6A3D; font-weight: 600; }
.my-jobs-list { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.my-jobs-empty { padding: 22px; text-align: center; border: 1.5px dashed rgba(91,79,207,0.25); border-radius: 14px; font-size: 13.5px; color: var(--ink-mid); }
.my-job {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(91,79,207,0.15); background: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.my-job.editing { border-color: var(--accent); background: var(--accent-light); }
.my-job-info { display: grid; gap: 3px; min-width: 0; }
.my-job-info strong { font-size: 15px; color: var(--ink); }
.my-job-info span { font-size: 12.5px; color: var(--ink-soft); }
.my-job-jd { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; word-break: break-all; }
.my-job-jd:hover { text-decoration: underline; }
.my-job-actions { display: flex; gap: 8px; }
.my-job-btn {
  font: 600 12.5px 'Inter', sans-serif; color: var(--accent); background: white;
  border: 1.5px solid var(--accent); border-radius: 16px; padding: 7px 16px; cursor: pointer;
}
.my-job-btn:hover { background: var(--accent-light); }
.my-job-btn.danger { color: #A44832; border-color: #A44832; }
.my-job-btn.danger:hover { background: #FBEAE5; }
.my-job-btn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 620px) { .my-jobs { padding: 28px 22px; } }

@media (max-width: 900px) {
  .persona-hero { padding: 120px 24px 56px; }
  footer { grid-template-columns: 1fr 1fr; }
}

/* ── LEGAL / DISCLAIMER ── */
.page-legal { --tint: var(--peach); --deep: #8A3F24; }
.legal-section { background: var(--surface); }
.legal-body {
  max-width: 760px; padding: 48px 52px; border-radius: 24px; background: white;
  border: 1px solid rgba(91,79,207,0.1); box-shadow: 0 24px 60px rgba(26,26,46,0.05);
}
.legal-body h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ink); margin: 34px 0 12px; }
.legal-body p { font-size: 15.5px; line-height: 1.8; color: var(--ink-mid); }
.legal-body .legal-ack { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(91,79,207,0.15); color: var(--ink); font-weight: 500; }
.jobs-disclaimer { margin-top: 14px; max-width: 600px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.jobs-disclaimer a, .jf-consent a { color: var(--accent); font-weight: 600; }
.disclaimer a { color: rgba(255,255,255,0.5); }
.disclaimer a:hover { color: var(--marigold); }
@media (max-width: 620px) { .legal-body { padding: 32px 22px; } }
