/* Global Spiritual Care — brand stylesheet */

:root {
  --purple: #4A1D80;
  --purple-deep: #2E1065;
  --saffron: #F5A623;
  --saffron-deep: #D97706;
  --gold: #b88917;
  --cream: #FDF6E3;
  --ink: #2a1246;
  --muted: #666;
  --white: #ffffff;
  --border: rgba(74, 29, 128, 0.1);
  --max: 1160px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.6 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--purple);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.5px; }
h2 { font-size: clamp(24px, 3.5vw, 34px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }

p { margin: 0 0 16px; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--saffron-deep); }

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

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* A display: rule on a class must never un-hide an element the script hid.
   Without this, .pkg-grid { display: grid } showed both providers' prices at once. */
[hidden] { display: none !important; }
main { min-height: 60vh; padding: 40px 0 80px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
}

/* Wordmark */
.wordmark { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark .mark {
  font: 800 20px/1 'Cabin', sans-serif;
  letter-spacing: 3px;
  color: var(--purple);
  text-transform: uppercase;
}
.wordmark .mark .accent { color: var(--saffron-deep); }
.wordmark .provenance {
  font: 500 10px/1 'Cabin', sans-serif;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 5px;
}

/* Nav */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.site-nav a {
  font: 600 14px/1 'Cabin', sans-serif;
  color: var(--ink);
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover {
  color: var(--purple);
  border-bottom-color: var(--saffron);
}

/* Page hero */
.page-hero {
  padding: 48px 0 32px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 8px; }
.page-hero .subtitle {
  font: 400 18px/1.5 'Cabin', sans-serif;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Content */
.page-content { max-width: 780px; margin: 0 auto; }
.page-content > * + * { margin-top: 20px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font: 700 14px/1 'Cabin', sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-deep); color: var(--white); box-shadow: 0 4px 12px rgba(74,29,128,0.25); transform: translateY(-1px); }
.btn-accent { background: var(--saffron-deep); color: var(--white); }
.btn-accent:hover { background: var(--saffron); color: var(--white); box-shadow: 0 4px 12px rgba(217,119,6,0.3); transform: translateY(-1px); }

/* Footer */
.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 28px;
  margin-top: 60px;
}
.site-footer .container { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer h4 {
  font: 700 11px/1 'Cabin', sans-serif;
  letter-spacing: 3px;
  color: var(--saffron);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,0.85); font-size: 14px; }
.site-footer a:hover { color: var(--saffron); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  grid-column: 1 / -1;
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 32px 0; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,29,128,0.08); }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

/* Home hero */
.home-hero {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: var(--white);
  padding: 72px var(--gutter) 60px;
  text-align: center;
  border-radius: 16px;
  margin: 24px auto;
  max-width: var(--max);
}
.home-hero h1 { color: var(--white); margin-bottom: 16px; }
.home-hero .lead {
  font: 400 20px/1.5 'Cabin', sans-serif;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; gap: 12px; }
  .site-nav ul { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Services grid.

   Was a scroll-snap carousel. With one to four services per category, most
   rails had nothing to scroll and their arrows never appeared, while the one
   that did opened with a disabled arrow — buttons that did nothing. A grid
   shows the whole catalogue.
   --------------------------------------------------------------------------- */

.svc-section { margin: 0 0 44px; }
.svc-section h2 { margin: 0 0 20px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(74,29,128,0.12);
  border-color: rgba(74,29,128,0.25);
  color: inherit;
}
.svc-card:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

/* Spans made block, never <p> or <h3>: block elements inside an anchor survive
   a markdown pass badly, and this page has been broken that way once already.
   The foot's children need the rule too — a child combinator does not reach
   them, which ran the provider name and the price together on one line. */
.svc-card > *,
.svc-card .foot > * { display: block; }
/* The photograph bleeds to the card's edges above the text. */
.svc-card .pic {
  margin: -24px -24px 18px;
  aspect-ratio: 16 / 10;
  background: #f4ecdc;
}
.svc-card .pic > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.svc-card:hover .pic > img:first-child { transform: scale(1.03); }
/* The provider, on the same gold ring the share card gives them. */
.svc-card .pic { position: relative; overflow: visible; }
.svc-card .pic > img:first-child { border-radius: 14px 14px 0 0; }
.svc-card .pic img.face {
  position: absolute;
  left: 20px;
  bottom: -22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--saffron-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  object-fit: cover;
  background: var(--white);
  transition: none;
}
.svc-card .pic + .title { margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { .svc-card:hover .pic img { transform: none; } }
.svc-card .title {
  font: 700 20px/1.25 'Playfair Display', Georgia, serif;
  color: var(--purple);
  margin: 0 0 10px;
}
.svc-card .blurb { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.svc-card .foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.svc-card .by { font: 600 13px/1.4 'Cabin', sans-serif; color: var(--purple); }
.svc-card .price { color: var(--muted); font-size: 13px; margin-top: 4px; }

.fees-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
  margin: 44px auto 0;
}

.safety-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  margin-top: 40px;
}

/* Package chooser on a service detail page */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 24px 0; }
.pkg {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pkg:hover { border-color: rgba(74,29,128,0.3); }
.pkg.selected { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 6px 18px rgba(74,29,128,0.22); }
.pkg.selected .label, .pkg.selected .amount, .pkg.selected .note { color: #fff; }
.pkg .amount { font: 700 26px/1 'Playfair Display', serif; color: var(--purple); margin: 6px 0; }
.pkg .label { font: 600 13px/1.3 'Cabin', sans-serif; }
.pkg .note { font-size: 12px; color: var(--muted); margin: 0; }

/* Provider chooser, shown only when a service has more than one */
.who-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0; }
.who {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 10px 22px;
  font: 600 14px/1 'Cabin', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s;
}
.who:hover { border-color: rgba(74,29,128,0.3); }
.who.selected { background: var(--purple); border-color: var(--purple); color: #fff; }

/* Post-payment intake */
.booking-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 28px;
}
.booking-summary .line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  font-size: 14px;
}
.booking-summary .line:last-child { margin-bottom: 0; }
.booking-summary .line span { color: var(--muted); }
.booking-summary .line b { color: var(--purple); text-align: right; }

.fld { display: block; margin: 0 0 20px; }
.fld > span { display: block; font: 600 14px/1.4 'Cabin', sans-serif; margin-bottom: 6px; }
.fld > span b { color: var(--purple); }
.fld input, .fld textarea {
  width: 100%;
  font: 400 15px/1.5 'Cabin', sans-serif;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  resize: vertical;
}
.fld input:focus, .fld textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
}
.fine { font-size: 13px; color: var(--muted); }


/* ---------------------------------------------------------------------------
   Coordinator screen at /admin/. Not linked from anywhere and noindex'd; the
   token gate is what actually protects it, since the functions behind it
   refuse an unauthenticated request.
   --------------------------------------------------------------------------- */

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  font: 500 13px/1.4 'Cabin', sans-serif;
  color: var(--muted);
}
.admin-bar .chk { margin-right: 12px; cursor: pointer; }
.admin-bar .chk input { margin-right: 5px; }

.bk {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 16px;
}
.bk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.bk-head b { font-size: 17px; color: var(--purple); }
.bk-mail { color: var(--muted); font-size: 13px; margin-left: 8px; }
.bk-what { margin: 0 0 4px; font-size: 15px; }
.bk-meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.bk-when { margin: 10px 0 0; font-size: 14px; }
.bk-intake {
  background: var(--cream);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0 0;
  font-size: 14px;
}
.bk-intake p { margin: 0 0 6px; white-space: pre-wrap; }
.bk-intake p:last-child { margin: 0; }
.bk-said { margin: 8px 0 0; }

.bk-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.bk-form input {
  flex: 1 1 190px;
  font: 400 14px/1.4 'Cabin', sans-serif;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
}
.bk-form input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
}
.bk-form .btn { padding: 9px 20px; font-size: 13px; letter-spacing: 0.5px; }

.tag {
  font: 700 10px/1 'Cabin', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 50px;
  white-space: nowrap;
}
.t-awaiting-intake  { background: #FEF3C7; color: #92400E; }
.t-needs-scheduling { background: #FEE2E2; color: #991B1B; }
.t-scheduled        { background: #DBEAFE; color: #1E40AF; }
.t-complete         { background: #D1FAE5; color: #065F46; }

.bk:has(.t-needs-scheduling) { border-left-color: #DC2626; }
.bk:has(.t-awaiting-intake)  { border-left-color: #F59E0B; }
.bk:has(.t-scheduled)        { border-left-color: #3B82F6; }
.bk:has(.t-complete)         { border-left-color: #10B981; }

/* Terms of service on the intake form */
.consent {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 20px;
  max-height: 260px;
  overflow-y: auto;
}
.consent .clause { margin: 0 0 16px; }
.consent .clause:last-of-type { margin-bottom: 12px; }
.consent .clause p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.consent .clause .n {
  font: 700 12px/1.4 'Cabin', sans-serif;
  color: var(--purple);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.agree {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}
.agree input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; }

/* Provider introduction video and background, on a service page */
.intro-video { margin: 0 0 28px; }
.intro-video video {
  width: 100%;
  display: block;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 8px 26px rgba(74,29,128,0.14);
}
.intro-video figcaption {
  font: 500 13px/1.5 'Cabin', sans-serif;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.provider-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 28px 0;
}
.provider-block .pv-name { font: 700 17px/1.3 'Cabin', sans-serif; color: var(--purple); margin: 0 0 3px; }
.provider-block .pv-cred { font-size: 13px; color: var(--purple); margin: 0 0 12px; line-height: 1.5; }
.provider-block .pv-bio { font-size: 14.5px; color: var(--ink); margin: 0 0 10px; line-height: 1.6; }
.provider-block .pv-bio:last-child { margin-bottom: 0; }
.provider-block .pv-rule { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* Provider directory */
.pv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 0 auto 20px;
  max-width: 780px;
}
.pv-card h2 { font-size: 24px; margin: 0 0 4px; }
.pv-card .pv-cred { font-size: 13.5px; color: var(--purple); margin: 0 0 16px; line-height: 1.55; }
.pv-card .pv-bio { font-size: 15px; color: var(--ink); margin: 0 0 12px; line-height: 1.65; }
.pv-card .intro-video { margin: 0 0 18px; }
.pv-card .pv-offers {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font: 600 14px/1.7 'Cabin', sans-serif;
}

/* Job-fit reflection */
.q {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 18px 20px;
  margin: 0 0 14px;
}
.q legend {
  font: 600 15px/1.5 'Cabin', sans-serif;
  color: var(--ink);
  padding: 0 6px;
}
.q-scale { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.q-scale label {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.q-scale label:hover { border-color: rgba(74,29,128,0.3); }
.q-scale input { margin: 0; flex: 0 0 auto; }
.q-scale input:checked + span { font-weight: 700; color: var(--purple); }
.q-scale label:has(input:checked) { border-color: var(--saffron-deep); background: #fffaf2; }

.area {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 12px;
}
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.area-name { font: 700 17px/1.3 'Cabin', sans-serif; color: var(--purple); }
.area-band {
  font: 700 10px/1 'Cabin', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.area-bar { height: 7px; border-radius: 4px; background: rgba(74,29,128,0.08); margin: 10px 0 10px; overflow: hidden; }
.area-bar i { display: block; height: 100%; border-radius: 4px; background: var(--purple); }
.area-def { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

.area.b-hard  { border-left-color: #DC2626; }
.area.b-hard  .area-bar i { background: #DC2626; }
.area.b-hard  .area-band { color: #991B1B; }
.area.b-mixed { border-left-color: #F59E0B; }
.area.b-mixed .area-bar i { background: #F59E0B; }
.area.b-mixed .area-band { color: #92400E; }
.area.b-ok    { border-left-color: #10B981; }
.area.b-ok    .area-bar i { background: #10B981; }
.area.b-ok    .area-band { color: #065F46; }

.res-next {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 28px 0 0;
}
.res-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }

.assess-nudge {
  background: #fffaf2;
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  margin: 20px 0;
}

/* Job Satisfaction Assessment — steps, priority ordering, remedies */
.step-mark {
  font: 700 10px/1 'Cabin', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 10px;
}
.fld select {
  width: 100%;
  font: 400 15px/1.5 'Cabin', sans-serif;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}

.prio { list-style: none; counter-reset: none; padding: 0; margin: 20px 0 0; }
.prio li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 8px;
  cursor: grab;
}
.prio li.dragging { opacity: 0.45; }
.prio .rank {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font: 700 14px/30px 'Cabin', sans-serif;
  text-align: center;
}
.prio .txt { flex: 1 1 auto; font-size: 14px; line-height: 1.45; }
.prio .moves { flex: 0 0 auto; display: flex; gap: 4px; }
.prio .moves button {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 7px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--purple);
  font-size: 14px;
}
.prio .moves button[disabled] { opacity: 0.3; cursor: default; }

.q-area {
  font: 700 11px/1.4 'Cabin', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin: 26px 0 10px;
}

.rem {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 14px;
}
.rem h3 { font-size: 17px; margin: 0 0 12px; }
.rem ul { margin: 0; padding-left: 20px; }
.rem li { font-size: 14.5px; line-height: 1.6; margin-bottom: 8px; }
.rem b { color: var(--saffron-deep); font-size: 12px; letter-spacing: 0.5px; }
.proto {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}
.proto-title { font: 700 13px/1.4 'Cabin', sans-serif; color: var(--purple); margin: 0 0 8px; }
.proto ol { margin: 0; padding-left: 20px; }
.proto li { font-size: 13.5px; line-height: 1.55; margin-bottom: 6px; }

/* Assessment result */
.score-card {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  border-radius: 16px;
  padding: 30px 28px;
  text-align: center;
  margin: 0 0 8px;
}
.score-card .score-label {
  font: 700 11px/1 'Cabin', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--saffron);
  margin: 0 0 12px;
}
.score-card .score-big {
  font: 700 52px/1 'Playfair Display', Georgia, serif;
  color: #fff;
  margin: 0 0 16px;
}
.score-card .score-big span { font-size: 22px; color: rgba(255,255,255,0.6); }
.score-card .area-bar { background: rgba(255,255,255,0.18); }
.score-card .area-bar i { background: var(--saffron); }
.score-card .fine { color: rgba(255,255,255,0.75); }

.dim-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  margin: 0 0 7px;
}
.dim-rank {
  flex: 0 0 26px; height: 26px;
  border-radius: 50%;
  background: rgba(74,29,128,0.08);
  color: var(--purple);
  font: 700 12px/26px 'Cabin', sans-serif;
  text-align: center;
}
.dim-name { flex: 1 1 auto; font-size: 14px; }
.dim-score { flex: 0 0 auto; font: 700 15px/1.2 'Cabin', sans-serif; text-align: right; }
.dim-score em { display: block; font: 400 11px/1.3 'Cabin', sans-serif; color: var(--muted); }
.dim-score.b-ok    { color: #065F46; }
.dim-score.b-mixed { color: #92400E; }
.dim-score.b-hard  { color: #991B1B; }

.prio .txt em { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* Service motif — a decorative figure above the copy */
.svc-motif {
  display: block;
  width: 280px;
  height: auto;
  margin: 4px auto 26px;
}
@media (max-width: 640px) { .svc-motif { width: 150px; } }

/* A quoted teaching on a service page */
.teaching {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--white);
  border-left: 4px solid rgba(74,29,128,0.5);
  border-radius: 0 12px 12px 0;
}
.teaching blockquote { margin: 0; }
.teaching blockquote p {
  font: italic 400 16px/1.65 'Cabin', sans-serif;
  color: var(--ink);
  margin: 0 0 12px;
}
.teaching blockquote p:last-child { margin-bottom: 0; }
.teaching figcaption {
  font: 600 13px/1.5 'Cabin', sans-serif;
  color: var(--muted);
  margin-top: 14px;
}

/* Provider portrait beside the name */
.pv-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.pv-head > div { flex: 1 1 auto; min-width: 0; }
.pv-head h2, .pv-head .pv-name { margin-bottom: 4px; }
.pv-head .pv-cred { margin-bottom: 0; }
.pv-photo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(184,137,23,0.35);
  background: var(--cream);
}
.provider-block .pv-photo { width: 72px; height: 72px; border-width: 2px; }
@media (max-width: 520px) { .pv-photo { width: 68px; height: 68px; } }

/* ---------------------------------------------------------------------------
   Service pages are read by people in their sixties, seventies and eighties,
   often on a tablet held at arm's length. Body type here is 18px rather than
   the site's 16, and the method is broken into cards so a reader can find
   their place again after looking away.
   --------------------------------------------------------------------------- */

.service-page .page-content { font-size: 18px; line-height: 1.75; }
.service-page .page-content > p { margin: 0 0 22px; }
.svc-lede { font: 400 21px/1.6 'Cabin', sans-serif; color: var(--ink); margin: 0 0 26px; }

.method {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 32px 26px;
  margin: 34px 0;
}
.method-intro { font-size: 18px; margin: 0 0 8px; }
.method-after {
  font-size: 17px;
  margin: 4px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.svc-steps { margin: 24px 0; padding: 0; list-style: none; counter-reset: svcstep; }
.svc-steps li {
  counter-increment: svcstep;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--cream);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 12px;
}
.svc-steps li:last-child { margin-bottom: 0; }
.svc-steps li::before {
  content: counter(svcstep);
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font: 700 20px/44px 'Playfair Display', Georgia, serif;
  text-align: center;
}
.svc-steps li span { font-size: 17.5px; line-height: 1.6; padding-top: 8px; }

@media (max-width: 640px) {
  .method { padding: 22px 18px 20px; }
  .svc-steps li { gap: 13px; padding: 14px; }
  .svc-steps li::before { width: 36px; height: 36px; font-size: 17px; line-height: 36px; }
  .svc-steps li span { font-size: 16.5px; padding-top: 5px; }
}

/* A closing mark: a provider's motif, small, at the end of their argument */
.svc-mark { margin: 40px 0 8px; text-align: center; }
.svc-mark img { width: 130px; height: auto; display: inline-block; opacity: 0.95; }
.svc-mark figcaption {
  font: 500 13px/1.5 'Cabin', sans-serif;
  color: var(--muted);
  margin-top: 8px;
}

/* A phone-shot introduction: portrait video, constrained rather than blown up */
.intro-video.is-portrait video {
  max-width: 330px;
  margin: 0 auto;
  border-radius: 18px;
}

/* Video transcript — collapsed, but present in the page for search and reading */
.transcript {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 22px;
  margin: -14px 0 28px;
}
.transcript summary {
  cursor: pointer;
  font: 600 15px/1.5 'Cabin', sans-serif;
  color: var(--purple);
  padding: 14px 0;
  list-style-position: outside;
}
.transcript summary::marker { color: var(--saffron-deep); }
.transcript p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}
.transcript p:last-child { margin-bottom: 18px; }

/* Free-form service sections */
.svc-sec { margin: 36px 0; }
.svc-sec h2 { font-size: 24px; margin: 0 0 14px; }
.svc-sec .sec-after {
  font-weight: 600;
  color: var(--purple);
  border-left: 3px solid rgba(74,29,128,0.45);
  padding-left: 16px;
  margin-top: 18px;
}
.svc-sec.tone-quiet {
  background: rgba(74,29,128,0.04);
  border-radius: 12px;
  padding: 20px 24px;
}
.svc-sec.tone-quiet h2 { font-size: 17px; }
.svc-sec.tone-quiet p { font-size: 15px; color: var(--muted); margin: 0; }

.svc-list { margin: 16px 0; padding-left: 0; list-style: none; }
.svc-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.6;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

/* Fear → understanding, and the rest */
.svc-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0; }
.svc-points .pt { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.svc-points .pt-h {
  font: 700 12px/1 'Cabin', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 6px;
}
.svc-points .pt-b { font-size: 15.5px; margin: 0; line-height: 1.5; }

/* This is / this is not */
.svc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.svc-compare > div { border-radius: 12px; padding: 20px 22px; }
.svc-compare .is { background: #f0f9f4; border: 1px solid rgba(16,185,129,0.3); }
.svc-compare .isnt { background: #fdf3f3; border: 1px solid rgba(220,38,38,0.22); }
.svc-compare .c-h {
  font: 700 12px/1 'Cabin', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.svc-compare .is .c-h { color: #065F46; }
.svc-compare .isnt .c-h { color: #991B1B; }
.svc-compare ul { margin: 0; padding-left: 18px; }
.svc-compare li { font-size: 15.5px; line-height: 1.55; margin-bottom: 8px; }
@media (max-width: 600px) { .svc-compare { grid-template-columns: 1fr; } }

/* A free resource a provider offers alongside the service (the 20 questions). */
.resource {
  margin: 36px 0;
  padding: 26px 28px 24px;
  background: #fffaf2;
  border: 1px solid rgba(217,119,6,0.35);
  border-left: 5px solid var(--purple);
  border-radius: 12px;
}
.resource .res-eyebrow {
  margin: 0 0 6px;
  font: 700 12px/1 'Cabin', sans-serif;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--purple);
}
.resource h2 { margin: 0 0 10px; font-size: 24px; }
.resource p { margin: 0 0 14px; }
.resource .res-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }

/* The 20-questions instrument. */
.tq { border: 1px solid rgba(74,29,128,0.14); border-radius: 12px; padding: 16px 18px 14px; margin: 0 0 18px; background: var(--white); min-width: 0; }
.tq legend.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tq-head { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 8px; }
.tq-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--purple); color: var(--white); font: 700 13px/26px 'Cabin', sans-serif; text-align: center; }
.tq-text { margin: 6px 0 12px; font-size: 15.5px; line-height: 1.5; }
.tq-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.tq-status label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid rgba(74,29,128,0.25); border-radius: 999px; font-size: 14px; cursor: pointer; }
.tq-status label:has(input:checked) { background: var(--purple); color: var(--white); border-color: var(--purple); }
.tq-status input { margin: 0; }
.tq textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(0,0,0,0.15); border-radius: 8px; font: 14px/1.4 'Cabin', sans-serif; resize: vertical; }
.tq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.tq-nav #back[hidden] { display: none; }
.tq-tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 26px; }
.tq-tally div { text-align: center; padding: 16px 8px; border-radius: 12px; background: #f4f1f8; }
.tq-tally div.warn { background: #fff4e5; }
.tq-tally b { display: block; font: 800 34px/1 'Playfair Display', serif; color: var(--purple); margin-bottom: 6px; }
.tq-tally span { font-size: 13px; color: var(--muted); }
.tq-open { list-style: none; padding-left: 0; }
.tq-open li { margin: 0 0 12px; line-height: 1.5; }
.tq-open em { color: var(--muted); }
.tq-keep { margin: 26px 0; padding: 20px 22px; border: 1px solid rgba(217,119,6,0.35); border-radius: 12px; background: #fffaf2; }
.tq-keep h2 { margin: 0 0 8px; }
.tq-keep p { margin: 0 0 12px; }
.tq-close { margin: 30px 0; padding: 18px 20px; background: #f4f1f8; border-left: 4px solid var(--purple); border-radius: 0 10px 10px 0; }
.tq-close h2 { margin: 0 0 8px; font-size: 20px; }
.tq-close p { margin: 0 0 8px; }
@media (max-width: 560px) { .tq-tally { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .res-next, #again, .tq-nav, .safety-note { display: none !important; }
  .tq-close { break-inside: avoid; }
}

/* A quiet secondary button: purple outline, fills on hover. */
.btn-outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }

/* ---- Service page: content beside a booking rail that follows the reader ---- */
.svc-layout { max-width: 780px; margin: 0 auto; }
.svc-layout .page-content { max-width: none; margin: 0; }
@media (min-width: 1024px) {
  .svc-layout.has-rail {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 44px;
    justify-content: center;
    align-items: start;
  }
}
.book-rail { display: none; }
@media (min-width: 1024px) {
  /* The rail holds the price, so it stays out of the opening screen and
     fades in once the reader is into the page. .is-revealed is set by the
     scroll handler in services-detail.njk. */
  .book-rail {
    display: block; position: sticky; top: 92px;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity .4s ease, transform .4s ease;
  }
  .book-rail.is-revealed { opacity: 1; transform: none; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .book-rail { transition: none; }
}
.rail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(74,29,128,0.10);
}
.rail-who { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.rail-face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--saffron-deep); }
.rail-name { margin: 0; font: 700 16px/1.25 'Cabin', sans-serif; color: var(--purple); }
.rail-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.rail-whos { display: flex; gap: 6px; margin: 0 0 12px; }
.rail-who-btn {
  flex: 1 1 0; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font: 600 12.5px/1.2 'Cabin', sans-serif; color: var(--purple); cursor: pointer;
}
.rail-who-btn.selected { background: var(--purple); color: #fff; border-color: var(--purple); }
.rail-pkgs { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.rail-pkg {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); color: var(--ink); cursor: pointer; text-align: left;
  font-family: 'Cabin', sans-serif;
}
.rail-pkg:hover { border-color: rgba(74,29,128,0.45); }
.rail-pkg.selected { background: var(--purple); border-color: var(--purple); color: #fff; }
.rail-pkg-l { display: flex; flex-direction: column; font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.rail-pkg-l small { font-weight: 500; font-size: 12px; opacity: .8; margin-top: 2px; }
.rail-pkg-p { font: 800 18px/1 'Playfair Display', Georgia, serif; }
.rail-book { width: 100%; font-size: 16px; padding: 15px 18px; }
.rail-fine { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* The phone gets a bar instead of a rail. */
.book-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(74,29,128,0.10);
}
.book-bar .bar-price { font-size: 15px; color: var(--ink); }
.book-bar .bar-price b { font: 800 20px/1 'Playfair Display', Georgia, serif; color: var(--purple); }
.book-bar .bar-price small { color: var(--muted); font-size: 12.5px; }
.book-bar .btn { padding: 11px 22px; font-size: 15px; }
@media (max-width: 1023px) {
  .svc-layout.has-rail .book-bar {
    display: flex;
    transform: translateY(110%); transition: transform .35s ease;
  }
  .svc-layout.has-rail .book-bar.is-revealed { transform: none; }
  body:has(.svc-layout.has-rail) .site-footer { padding-bottom: 76px; }
}

/* The rail sends an unsigned reader to the terms and points at them. */
.agree.attention { outline: 3px solid var(--saffron-deep); outline-offset: 6px; border-radius: 8px; }

/* Who these providers are to the Institute, stated once, plainly. */
.board-line { max-width: 640px; margin: 14px auto 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.pv-board { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pv-bio a { color: var(--purple); white-space: nowrap; }
.pv-scope { margin: 10px 0 0; padding: 10px 14px; background: #f4f1f8; border-left: 3px solid var(--purple); border-radius: 0 8px 8px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.rail-code { margin: 10px 0 0; text-align: center; font-size: 13px; }
.rail-code a { color: var(--purple); }

/* The five things every service here is, stated under the Board line. */
.tenets { list-style: none; max-width: 700px; margin: 22px auto 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.tenets li { font-size: 15px; line-height: 1.5; color: var(--ink); padding-left: 18px; position: relative; }
.tenets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.tenets b { color: var(--purple); }
