/* ChiroRuggers Alumni Directory — design system */

:root {
  --cr-purple:        #4a1d7a;
  --cr-purple-dark:   #2e0f4e;
  --cr-purple-light:  #6b3aa0;
  --cr-gold:          #c19a3d;
  --cr-gold-light:    #e2c87a;
  --cr-cream:         #faf6ec;
  --cr-ink:           #1a1230;
  --cr-body:          #3b2f4f;
  --cr-muted:         #6b6580;
  --cr-line:          #e7e3ed;
  --cr-surface:       #ffffff;
  --cr-bg:            #f6f2ec;
  --cr-success:       #15803d;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(74, 29, 122, 0.06);
  --shadow:    0 4px 16px rgba(74, 29, 122, 0.10);
  --shadow-lg: 0 10px 40px rgba(74, 29, 122, 0.14);

  --container: 1200px;
  --gap: 24px;

  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cr-body);
  background: var(--cr-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cr-purple); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cr-gold); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--cr-ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─────────────────────────────────────── */
.cr-header {
  background: var(--cr-purple);
  color: white;
  border-bottom: 3px solid var(--cr-gold);
  position: sticky; top: 0; z-index: 100;
}
.cr-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--container); margin: 0 auto;
}
.cr-brand {
  display: flex; align-items: center; gap: 12px;
  color: white; font-family: var(--font-serif); font-weight: 600;
  font-size: 1.15rem; letter-spacing: 0.01em;
}
.cr-brand:hover { color: var(--cr-gold-light); }
.cr-brand-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cr-gold);
  color: var(--cr-purple);
  font-family: var(--font-serif);
  font-weight: 800; font-size: 1.05rem;
  border-radius: 50%;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  border: 2px solid var(--cr-gold-light);
  box-shadow: 0 0 0 2px rgba(193,154,61,.25);
  position: relative;
}
.cr-brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(74,29,122,.2);
  border-radius: 50%;
  pointer-events: none;
}
.cr-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.cr-brand-text small { font-family: var(--font-sans); font-size: .7rem; opacity: .8; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.cr-nav { display: flex; gap: 28px; align-items: center; }
.cr-nav a {
  color: rgba(255,255,255,.88);
  font-size: .94rem;
  font-weight: 500;
}
.cr-nav a:hover { color: var(--cr-gold-light); }
.cr-nav .cr-cta {
  background: var(--cr-gold);
  color: var(--cr-purple);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.cr-nav .cr-cta:hover { background: var(--cr-gold-light); color: var(--cr-purple); }

.cr-menu-toggle {
  display: none; background: none; border: 0; color: white; cursor: pointer; padding: 8px; font-size: 1.2rem;
}

@media (max-width: 768px) {
  .cr-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cr-purple-dark); padding: 16px 24px; gap: 14px; }
  .cr-nav.open { display: flex; }
  .cr-menu-toggle { display: block; }
}

/* ─── Hero ───────────────────────────────────────── */
.cr-hero {
  background: linear-gradient(135deg, var(--cr-purple) 0%, var(--cr-purple-dark) 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--cr-gold);
}
.cr-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(193,154,61,.22) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(193,154,61,.12) 0%, transparent 50%);
  pointer-events: none;
}
.cr-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}
.cr-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.cr-hero h1 { color: white; margin-bottom: .4em; font-size: clamp(2.3rem, 4.5vw, 3.4rem); }
.cr-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cr-gold-light);
  text-transform: uppercase;
  font-size: .85rem; font-weight: 600; letter-spacing: 0.18em;
  margin-bottom: 22px;
}
.cr-hero .eyebrow::before,
.cr-hero .eyebrow::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--cr-gold);
  opacity: .6;
}
.cr-hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.92); margin-bottom: 32px; max-width: 660px; margin-left: auto; margin-right: auto; }
.cr-hero-stats {
  display: flex; justify-content: center; gap: 56px; margin-top: 44px;
  flex-wrap: wrap;
}
.cr-stat .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--cr-gold-light);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.cr-stat .label {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
}

/* ─── Search bar ────────────────────────────────── */
.cr-search-bar {
  max-width: 820px; margin: -44px auto 0;
  background: var(--cr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex; align-items: center; gap: 4px;
  position: relative; z-index: 2;
  border: 1px solid rgba(193,154,61,.25);
  flex-wrap: wrap;
}
.cr-search-bar::before {
  content: '⌕';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--cr-muted);
  pointer-events: none;
}
.cr-search-bar input {
  flex: 1;
  min-width: 180px;
  border: 0;
  padding: 14px 18px 14px 42px;
  font-size: 1rem;
  background: transparent;
  font-family: var(--font-sans);
  color: var(--cr-ink);
  outline: none;
}
.cr-search-bar input::placeholder { color: var(--cr-muted); }
.cr-search-bar select {
  border: 0;
  border-left: 1px solid var(--cr-line);
  padding: 14px 18px;
  font-size: .95rem;
  background: transparent;
  font-family: var(--font-sans);
  color: var(--cr-ink);
  outline: none;
  cursor: pointer;
  min-width: 160px;
}

/* ─── Trust strip ─────────────────────────────────── */
.cr-trust-strip {
  background: var(--cr-surface);
  border-bottom: 1px solid var(--cr-line);
  padding: 28px 0;
}
.cr-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 760px) { .cr-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.cr-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cr-trust-icon {
  width: 36px; height: 36px;
  background: var(--cr-cream);
  color: var(--cr-purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(193,154,61,.3);
}
.cr-trust-label { font-size: .8rem; color: var(--cr-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.cr-trust-value { font-family: var(--font-serif); font-size: 1.05rem; color: var(--cr-ink); font-weight: 600; }

/* ─── Buttons ───────────────────────────────────── */
.cr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 0; text-decoration: none;
  transition: all .15s ease;
}
.cr-btn-primary {
  background: var(--cr-gold); color: var(--cr-purple);
}
.cr-btn-primary:hover { background: var(--cr-gold-light); color: var(--cr-purple); transform: translateY(-1px); box-shadow: var(--shadow); }
.cr-btn-secondary {
  background: var(--cr-purple); color: white;
}
.cr-btn-secondary:hover { background: var(--cr-purple-dark); color: white; }
.cr-btn-outline {
  background: transparent; color: var(--cr-purple); border: 1.5px solid var(--cr-purple);
}
.cr-btn-outline:hover { background: var(--cr-purple); color: white; }

/* ─── Directory layout ────────────────────────────── */
.cr-directory { padding: 60px 0 80px; }
.cr-directory-layout {
  display: grid; grid-template-columns: 1fr; gap: var(--gap);
}
.cr-results-meta {
  margin-bottom: 16px;
  color: var(--cr-muted);
  font-size: .9rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cr-line);
}
.cr-results-meta strong { color: var(--cr-ink); margin: 0 2px; }
.cr-results-meta #cr-filter-info {
  margin-left: 6px;
  color: var(--cr-purple);
  font-weight: 500;
}
.cr-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* ─── Rugger card ──────────────────────────────────── */
.cr-card {
  background: var(--cr-surface);
  border: 1px solid var(--cr-line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  transition: all .18s ease;
  overflow: hidden;
  min-height: 92px;
  text-decoration: none;
}
.cr-card * { word-break: normal; overflow-wrap: break-word; }
.cr-card::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cr-gold) 0%, var(--cr-gold-light) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s ease;
}
.cr-card:hover {
  border-color: var(--cr-gold);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.cr-card:hover::before { transform: scaleY(1); }
.cr-card-body { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.cr-card-chev {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cr-cream);
  color: var(--cr-purple);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-6px);
  transition: all .18s ease;
}
.cr-card:hover .cr-card-chev {
  opacity: 1;
  transform: translateX(0);
  background: var(--cr-gold);
}
.cr-card-name {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--cr-ink);
  font-weight: 600; margin: 0 0 4px;
  line-height: 1.3;
}
.cr-card-practice {
  color: var(--cr-purple);
  font-weight: 500;
  font-size: .92rem;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-card-practice--muted {
  color: var(--cr-muted);
  font-weight: 400;
  font-style: italic;
  font-size: .88rem;
}
.cr-card-location {
  color: var(--cr-muted);
  font-size: .85rem;
  display: flex; align-items: flex-start; gap: 6px;
  line-height: 1.4;
}
.cr-card-meta {
  display: flex;
  gap: 10px;
  font-size: .78rem;
  color: var(--cr-muted);
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.cr-card-meta a { color: var(--cr-purple); font-weight: 500; }
.cr-card-meta-empty { font-style: italic; }
.cr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cr-cream);
  color: var(--cr-purple);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(193,154,61,.3);
}
.cr-badge.gold { background: var(--cr-gold); color: var(--cr-purple); border-color: var(--cr-gold); }
.cr-badge.gender-women { background: rgba(107, 58, 160, .12); color: var(--cr-purple-dark); border-color: rgba(107, 58, 160, .25); }
.cr-badge.gender-men { background: rgba(193, 154, 61, .12); color: #8a6e1f; border-color: rgba(193, 154, 61, .25); }

/* ─── Map page ───────────────────────────────────── */
.cr-map-page {
  min-height: calc(100vh - 79px);
  background: var(--cr-bg);
}
.cr-map-shell {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  height: calc(100vh - 79px);
  min-height: calc(100vh - 79px);
  overflow: hidden;
}
.cr-map-panel {
  background: var(--cr-surface);
  border-right: 1px solid var(--cr-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cr-map-titlebar {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--cr-line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}
.cr-map-titlebar h1 {
  font-size: 1.85rem;
  margin: 0;
}
.cr-map-breadcrumb {
  color: var(--cr-muted);
  margin-bottom: 6px;
}
.cr-map-breadcrumb a { color: var(--cr-purple); }
.cr-map-count {
  min-width: 82px;
  text-align: right;
  color: var(--cr-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cr-map-count strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--cr-purple);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}
.cr-map-controls {
  padding: 16px 18px;
  border-bottom: 1px solid var(--cr-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cr-map-controls label:first-child { grid-column: 1 / -1; }
.cr-map-controls input,
.cr-map-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--cr-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-sans);
  color: var(--cr-ink);
  background: white;
  font-size: .92rem;
}
.cr-map-controls input:focus,
.cr-map-controls select:focus {
  outline: none;
  border-color: var(--cr-gold);
  box-shadow: 0 0 0 3px rgba(193,154,61,.16);
}
.cr-map-controls .cr-btn {
  min-height: 42px;
  padding: 9px 12px;
}
.cr-map-list {
  overflow: auto;
  padding: 12px;
  flex: 1 1 auto;
  min-height: 0;
}
.cr-map-result {
  width: 100%;
  border: 1px solid transparent;
  border-bottom-color: var(--cr-line);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 13px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
}
.cr-map-result:hover,
.cr-map-result:focus {
  outline: none;
  background: var(--cr-cream);
  border-color: rgba(193,154,61,.35);
}
.cr-map-result strong {
  display: block;
  color: var(--cr-ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.25;
}
.cr-map-result em {
  display: block;
  color: var(--cr-purple);
  font-style: normal;
  font-weight: 600;
  font-size: .86rem;
  margin-top: 3px;
}
.cr-map-result small {
  display: block;
  color: var(--cr-muted);
  font-size: .8rem;
  margin-top: 4px;
  line-height: 1.35;
}
.cr-map-result .cr-badge { flex-shrink: 0; margin-top: 2px; }
.cr-map-empty {
  padding: 28px 16px;
  color: var(--cr-muted);
  text-align: center;
}
.cr-map-canvas-wrap {
  position: relative;
  min-height: calc(100vh - 79px);
  background: #e8e2d6;
}
.cr-map-canvas {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 79px);
  z-index: 1;
}
.cr-map-status {
  position: absolute;
  z-index: 400;
  left: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--cr-line);
  border-radius: var(--radius-sm);
  color: var(--cr-body);
  box-shadow: var(--shadow-sm);
  padding: 8px 11px;
  font-size: .82rem;
}
.cr-map-pin {
  background: transparent;
  border: 0;
}
.cr-map-pin span {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background: var(--cr-gold);
  border: 3px solid var(--cr-purple);
  box-shadow: 0 2px 8px rgba(26,18,48,.3);
}
.cr-map-pin span.women {
  background: var(--cr-purple-light);
  border-color: var(--cr-gold-light);
}
.cr-map-cluster {
  background: rgba(74,29,122,.2);
  border-radius: 50%;
}
.cr-map-cluster span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cr-purple);
  color: var(--cr-gold-light);
  border: 3px solid var(--cr-gold);
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgba(26,18,48,.28);
}
.cr-map-popup {
  min-width: 190px;
  color: var(--cr-body);
}
.cr-map-popup strong {
  display: block;
  color: var(--cr-ink);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.2;
}
.cr-map-popup span {
  display: block;
  color: var(--cr-purple);
  font-weight: 700;
  margin-top: 4px;
}
.cr-map-popup small {
  display: block;
  color: var(--cr-muted);
  margin-top: 4px;
}
.cr-map-popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.cr-map-popup-actions a {
  background: var(--cr-purple);
  color: white;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: .78rem;
  font-weight: 700;
}
.cr-map-popup-actions a:hover {
  background: var(--cr-gold);
  color: var(--cr-purple);
}
@media (max-width: 920px) {
  .cr-map-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .cr-map-panel {
    border-right: 0;
    border-bottom: 1px solid var(--cr-line);
  }
  .cr-map-list {
    max-height: 260px;
  }
  .cr-map-canvas-wrap,
  .cr-map-canvas {
    min-height: 62vh;
  }
}
@media (max-width: 560px) {
  .cr-map-titlebar {
    align-items: flex-start;
    padding: 18px;
  }
  .cr-map-titlebar h1 {
    font-size: 1.55rem;
  }
  .cr-map-controls {
    grid-template-columns: 1fr;
  }
  .cr-map-controls label:first-child {
    grid-column: auto;
  }
}

/* ─── Profile page ────────────────────────────────── */
.cr-profile-hero {
  background: linear-gradient(135deg, var(--cr-purple) 0%, var(--cr-purple-dark) 100%);
  color: white;
  padding: 60px 0 50px;
  position: relative;
  border-bottom: 3px solid var(--cr-gold);
}
.cr-profile-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(193,154,61,.16) 0%, transparent 50%);
  pointer-events: none;
}
.cr-profile-hero .container { position: relative; z-index: 1; }
.cr-profile-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cr-gold-light); text-transform: uppercase; font-size: .8rem; letter-spacing: .14em; font-weight: 600; }
.cr-profile-hero .eyebrow::before { content: '◆'; color: var(--cr-gold); font-size: .7rem; }
.cr-profile-hero h1 { color: white; margin: 10px 0 8px; }
.cr-profile-hero .practice-name { font-size: 1.3rem; color: var(--cr-gold-light); margin-bottom: 16px; font-family: var(--font-serif); font-weight: 500; }
.cr-profile-hero p { color: rgba(255,255,255,.88); }

.cr-profile-body { padding: 50px 0 30px; }
.cr-profile-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .cr-profile-grid { grid-template-columns: 1fr; } }
.cr-profile-grid h2 { font-size: 1.6rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--cr-line); }
.cr-profile-grid p { line-height: 1.7; color: var(--cr-body); }
.cr-info-card {
  background: var(--cr-surface);
  border: 1px solid var(--cr-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.cr-info-card h3 {
  font-size: .8rem; color: var(--cr-muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 14px; font-family: var(--font-sans); font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cr-line);
}
.cr-info-card dl { margin: 0; }
.cr-info-card .row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cr-line); font-size: .92rem; overflow-wrap: anywhere; }
.cr-info-card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.cr-info-card .row dt { color: var(--cr-muted); flex: 0 0 80px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding-top: 2px; }
.cr-info-card .row dd { margin: 0; color: var(--cr-ink); font-weight: 500; flex: 1; min-width: 0; line-height: 1.5; }
.cr-info-card .row dd a { color: var(--cr-purple); word-break: break-word; }

.cr-related h2 { font-size: 1.4rem; margin-bottom: 16px; }
.cr-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

/* ─── Section + headings ────────────────────────── */
.cr-section { padding: 70px 0; }
.cr-section.alt { background: var(--cr-cream); }
.cr-section h2 { text-align: center; margin-bottom: 14px; }
.cr-section .section-lead { text-align: center; max-width: 620px; margin: 0 auto 44px; color: var(--cr-muted); font-size: 1.05rem; line-height: 1.6; }

.cr-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 800px) { .cr-how { grid-template-columns: 1fr; } }
.cr-how-step {
  background: var(--cr-surface);
  border: 1px solid var(--cr-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
}
.cr-how-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--cr-purple);
  color: var(--cr-gold-light);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.cr-how-step h3 { margin-bottom: 6px; font-size: 1.15rem; }
.cr-how-step p { font-size: .95rem; color: var(--cr-body); margin: 0; }

/* ─── Form ──────────────────────────────────────── */
.cr-form-wrap { max-width: 680px; margin: 0 auto; }
.cr-form-card {
  background: var(--cr-surface);
  border: 1px solid var(--cr-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.cr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .cr-form-grid { grid-template-columns: 1fr; } }
.cr-form label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; color: var(--cr-ink); font-weight: 500; }
.cr-form input, .cr-form textarea, .cr-form select {
  border: 1px solid var(--cr-line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--cr-surface);
  color: var(--cr-ink);
  transition: border-color .15s ease;
}
.cr-form input:focus, .cr-form textarea:focus, .cr-form select:focus { outline: none; border-color: var(--cr-gold); }
.cr-form textarea { resize: vertical; min-height: 100px; }
.cr-form .full { grid-column: 1 / -1; }
.cr-form-note { font-size: .85rem; color: var(--cr-muted); margin-top: 12px; }

/* ─── Footer ─────────────────────────────────────── */
.cr-footer {
  background: var(--cr-purple-dark);
  color: rgba(255,255,255,.7);
  padding: 50px 0 30px;
  margin-top: 60px;
  font-size: .9rem;
}
.cr-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
@media (max-width: 768px) { .cr-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.cr-footer h4 { color: white; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-sans); margin-bottom: 12px; }
.cr-footer a { color: rgba(255,255,255,.75); display: block; padding: 4px 0; }
.cr-footer a:hover { color: var(--cr-gold-light); }
.cr-footer-brand p { color: rgba(255,255,255,.88); }
.cr-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* ─── Page hero (non-home) ──────────────────────── */
.cr-page-hero {
  background: var(--cr-purple);
  color: white;
  padding: 50px 0;
  border-bottom: 3px solid var(--cr-gold);
}
.cr-page-hero h1 { color: white; margin-bottom: 8px; }
.cr-page-hero p { color: rgba(255,255,255,.85); max-width: 600px; }
.cr-breadcrumb { color: rgba(255,255,255,.65); font-size: .85rem; margin-bottom: 12px; }
.cr-breadcrumb a { color: var(--cr-gold-light); }

/* ─── Utility ────────────────────────────────────── */
.cr-empty { text-align: center; padding: 60px 20px; color: var(--cr-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
