/* Spiritual Compass Navigators — brand aligned with Formation Assistant Management */

:root {
  --ink: #0b0b0b;
  --ink-soft: #5c574e;
  --paper: #f5f3ef;
  --paper-elevated: #ffffff;
  --line: #e4dfd6;
  --gold: #c8a870;
  --gold-strong: #a8864d;
  --gold-soft: #efe6d4;
  --accent: var(--gold);
  --accent-strong: var(--gold-strong);
  --accent-soft: var(--gold-soft);
  --warn: #9a4d1c;
  --danger: #9b2c2c;
  --success: #1f6b3a;
  --info: #2f5d8c;
  --shadow: 0 18px 50px rgba(11, 11, 11, 0.07);
  --radius: 12px;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --brand-black: #0b0b0b;
  --brand-black-elevated: #141414;
  --header-height: 72px;
  --max-content: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

a {
  color: var(--gold-strong);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* —— Site shell —— */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 168, 112, 0.28);
}

.site-header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #f5f3ef;
  min-width: 0;
}
.brand-link:hover { text-decoration: none; color: #f5f3ef; }

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text { min-width: 0; }
.brand-kicker {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f5f3ef;
  line-height: 1.15;
}
.brand-title {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(200, 168, 112, 0.35);
  background: transparent;
  color: #f5f3ef;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(200, 168, 112, 0.1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: rgba(245, 243, 239, 0.72);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 120ms ease, background 120ms ease;
}
.site-nav a:hover {
  background: rgba(200, 168, 112, 0.1);
  color: #f5f3ef;
  text-decoration: none;
}
.site-nav a.active {
  background: rgba(200, 168, 112, 0.14);
  color: var(--gold);
}

.site-tagline {
  border-top: 1px solid rgba(200, 168, 112, 0.18);
  background: rgba(20, 20, 20, 0.98);
}
.site-tagline-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  text-align: center;
}
.site-tagline a {
  color: rgba(245, 243, 239, 0.82);
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.6vw, 1.02rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: 0;
}
.site-tagline a:hover {
  color: var(--gold);
  text-decoration: none;
}

.site-main {
  flex: 1;
  min-width: 0;
}

.footer-tagline {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
}
.footer-tagline a {
  color: rgba(245, 243, 239, 0.92);
  margin-right: 0;
}
.footer-tagline a:hover { color: var(--gold); }
.footer-mission {
  margin: 0 0 1rem;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(245, 243, 239, 0.62);
}

.site-footer {
  background: var(--brand-black);
  color: rgba(245, 243, 239, 0.72);
  border-top: 1px solid rgba(200, 168, 112, 0.22);
  padding: 2rem 1.25rem;
  margin-top: auto;
}
.site-footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer-grid {
  align-items: start;
  gap: 2rem;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0;
  margin-bottom: 0.85rem;
}
.site-footer a {
  color: rgba(245, 243, 239, 0.78);
  margin-right: 1rem;
  font-size: 0.92rem;
}
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer .copy {
  font-size: 0.88rem;
  opacity: 0.75;
}
.footer-newsletter {
  flex: 1 1 280px;
  max-width: 360px;
}
.newsletter-compact .field {
  margin-bottom: 0.75rem;
}

/* —— Layout helpers —— */
.container-brand {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}
.section-tight { padding: 2.5rem 0; }
.section-paper { background: var(--paper); }
.section-elevated { background: var(--paper-elevated); }
.section-muted {
  background: #efebe3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}
.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

/* —— Dark brand hero —— */
.brand-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200, 168, 112, 0.18), transparent 55%),
    var(--brand-black);
  color: #f5f3ef;
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.brand-hero .eyebrow { color: var(--gold); }
.brand-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  color: #f5f3ef;
}
.brand-hero .lede {
  margin: 0 auto 1.75rem;
  max-width: 640px;
  color: rgba(245, 243, 239, 0.72);
  font-size: 1.1rem;
  line-height: 1.55;
}
.brand-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.brand-hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 1.1rem;
  display: block;
  /* Never invert product marks — especially Formation Assistant */
  filter: none;
}
.brand-hero-logo.icon-light-plate {
  background: #ffffff;
  border-radius: 18px;
  padding: 0.35rem;
  box-sizing: content-box;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-split .copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}
.hero-split .copy .lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
}
.hero-split .visual {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
  overflow: hidden;
}
.hero-split .visual img {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  max-height: 520px;
  background: #f8f6f1;
}

/* —— Buttons —— */
.btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-strong); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: #f5f3ef;
  border: 1px solid rgba(200, 168, 112, 0.4);
}
.btn-ghost:hover {
  background: rgba(200, 168, 112, 0.12);
  border-color: var(--gold);
  color: #fff;
}
.btn-lg { padding: 0.9rem 1.4rem; font-size: 1.02rem; }

/* —— Cards / product tiles —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.product-card,
.card {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  transition: border-color 140ms ease, transform 140ms ease;
}
.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.product-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--brand-black);
  border: 1px solid var(--line);
  filter: none;
}
.product-card .icon.icon-light-plate {
  background: #ffffff;
  padding: 0.2rem;
}
.product-card h3 {
  margin: 0;
  font-size: 1.25rem;
}
.product-card p {
  margin: 0;
  color: var(--ink-soft);
  flex: 1;
}
.product-card .features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-card .features li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.product-card .features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}
.product-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.35rem;
}

.tool-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}
.tool-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.15rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, background 120ms ease;
}
.tool-link:hover {
  border-color: var(--gold);
  background: #fff;
  text-decoration: none;
}
.tool-link strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.tool-link span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.pilot-banner {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.pilot-banner strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.25rem;
}
.pilot-banner p {
  margin: 0;
  color: var(--ink-soft);
}
.pilot-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* —— Pricing page —— */
.pricing-card {
  scroll-margin-top: 5.5rem;
}
.pricing-eyebrow {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}
.pricing-model {
  margin: 0 !important;
  font-weight: 600;
  color: var(--ink) !important;
  flex: 0 !important;
}
.pricing-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex: 0 !important;
}
.pricing-card--free {
  border-color: #c9e4d2;
}

/* —— Chips —— */
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: var(--gold-soft);
  color: var(--ink);
  width: fit-content;
}
.chip-success { background: #e7f3eb; color: var(--success); border-color: #c9e4d2; }
.chip-warn { background: #f8efe6; color: var(--warn); border-color: #ecd9c4; }
.chip-info { background: #e8f0f7; color: var(--info); border-color: #c9dceb; }
.chip-muted { background: #f0ebe3; color: var(--ink-soft); }

/* —— Feature list —— */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  margin-top: 0.1rem;
}

/* —— Product detail / carousel —— */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}
.carousel-shell {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.85rem;
  overflow: hidden;
}

.simple-carousel {
  width: 100%;
}
.simple-carousel-viewport {
  min-height: 220px;
}
.simple-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.simple-carousel-dots {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.simple-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cfc7b8;
  cursor: pointer;
}
.simple-carousel-dot.active {
  background: var(--gold-strong);
  width: 1.25rem;
}
.feature-carousel-shell {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}
.feature-slide {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 280px;
}
.feature-slide:hover { text-decoration: none; color: inherit; }
.feature-slide-inner {
  display: grid;
  gap: 0.85rem;
  height: 100%;
  padding: 0.5rem 0.5rem 1rem;
}
.feature-slide-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8f6f1;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.feature-slide-copy {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.35rem;
}
.feature-slide-copy strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.feature-slide-copy span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}
.feature-slide-copy em {
  font-style: normal;
  color: var(--gold-strong);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.feature-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.feature-index a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}
.feature-index a:hover { color: var(--gold-strong); }
.carousel-shell .e-carousel,
.carousel-shell .e-carousel-item {
  background: #f8f6f1;
  border-radius: 10px;
}
.carousel-slide-img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: contain;
  display: block;
  background: #f8f6f1;
}
.product-meta h2 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
}
.product-meta .lede {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.download-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.store-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
}
.store-row .btn {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .store-row {
    flex-wrap: wrap;
  }
}

/* —— Misc content —— */
.page-header {
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.page-header p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.faq .accordion-item,
.accordion-item {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.contact-card,
.form-card {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(200, 168, 112, 0.35);
  border-color: var(--gold);
}

.alert-error,
.alert-success,
.alert-info {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.alert-error { background: #f8e8e8; color: var(--danger); border: 1px solid #efcccc; }
.alert-success { background: #e7f3eb; color: var(--success); border: 1px solid #c9e4d2; }
.alert-info { background: #e8f0f7; color: var(--info); border: 1px solid #c9dceb; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}

#blazor-error-ui {
  background: #fff3f3;
  bottom: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  display: none;
  left: 0;
  padding: 0.75rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
#blazor-error-ui .reload { margin-left: 0.75rem; }

/* Soften Bootstrap leftovers so brand wins */
.bg-primary,
.hero-section.bg-primary {
  background: var(--brand-black) !important;
  color: #f5f3ef !important;
}
.btn-outline-primary {
  border-color: var(--gold) !important;
  color: var(--gold-strong) !important;
}
.btn-outline-primary:hover {
  background: var(--gold-soft) !important;
  color: var(--ink) !important;
}
.text-primary { color: var(--gold-strong) !important; }

@media (max-width: 900px) {
  .hero-split,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }
  .site-header-inner { flex-wrap: wrap; }
  .site-nav.open { display: flex; }
  .brand-kicker { font-size: 0.95rem; }
}

/* —— Blog —— */
.brand-hero-compact {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.brand-hero-compact h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 40rem;
}

.blog-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(245, 243, 239, 0.45);
  background: transparent;
  padding: 0;
}

.blog-breadcrumb .breadcrumb-item,
.blog-breadcrumb .breadcrumb-item a,
.blog-hero-meta,
.blog-hero-author {
  color: rgba(245, 243, 239, 0.82);
}

.blog-breadcrumb .breadcrumb-item a:hover {
  color: var(--gold);
}

.blog-breadcrumb .breadcrumb-item.active {
  color: rgba(245, 243, 239, 0.55);
}

.blog-card,
.blog-sidebar-card {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-card-body,
.blog-sidebar-card {
  padding: 1.5rem;
}

.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-filter-clear {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.blog-sidebar-card .list-group-item {
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
}

.blog-sidebar-card .list-group-item.active {
  color: var(--gold-strong);
  font-weight: 600;
  background: transparent;
}

.blog-cta-card p {
  margin-bottom: 1rem;
}

.blog-featured-image,
.blog-related-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--gold-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.blog-related-image {
  max-height: 180px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.blog-excerpt {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.blog-post-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.blog-post-content > *:first-child {
  margin-top: 0;
}

.blog-post-content h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.55rem;
}

.blog-post-content h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
}

.blog-post-content p {
  margin: 0 0 1.15rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.blog-post-content li {
  margin-bottom: 0.45rem;
}

.blog-post-content a {
  color: var(--gold-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post-content strong {
  color: var(--ink);
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.98rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-post-content th,
.blog-post-content td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.blog-post-content th {
  background: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 600;
}

.blog-post-content tr:nth-child(even) td {
  background: rgba(245, 243, 239, 0.55);
}

@media (max-width: 700px) {
  .blog-post-content table {
    display: block;
    overflow-x: auto;
  }
}

/* —— Formation Assistant module / role pages —— */
.module-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: rgba(245, 243, 239, 0.75);
}
.module-breadcrumbs a {
  color: rgba(245, 243, 239, 0.88);
  text-decoration: none;
}
.module-breadcrumbs a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.module-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.module-role-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-elevated);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.module-role-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--gold-strong);
  transform: translateY(-2px);
}
.module-role-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8f6f1;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.module-role-card div {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.2rem 0.35rem;
}
.module-role-card strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}
.module-role-card span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}
.module-role-card em {
  font-style: normal;
  color: var(--gold-strong);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
.module-role-card .chip {
  margin-bottom: 0.15rem;
}

.module-carousel-shell {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
  max-width: 760px;
  margin: 0 auto 1.75rem;
}
.module-screen-slide {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.module-screen-image-wrap {
  background: #f8f6f1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
}
.module-screen-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}
.module-screen-caption h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.module-screen-caption p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.98rem;
}

.module-screen-index {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.module-screen-index li {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold-strong);
  background: rgba(245, 243, 239, 0.55);
  border-radius: 0 10px 10px 0;
}
.module-screen-index strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.module-screen-index span {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .module-role-grid {
    grid-template-columns: 1fr;
  }
}

/* —— About / trust signals —— */
.founder-split {
  align-items: center;
}
.founder-photo-wrap {
  justify-self: center;
}
.founder-photo {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #e8e2d8;
}
.founder-role {
  margin: 0 0 1rem;
  color: var(--gold-strong);
  font-weight: 600;
  font-size: 0.98rem;
}
.founder-scripture {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.founder-scripture p {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}
.founder-scripture cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-strong);
}

.founder-bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 2.5rem;
  align-items: start;
}
.founder-narrative {
  max-width: 42rem;
}
.founder-narrative p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.founder-narrative p:last-child {
  margin-bottom: 0;
}
.founder-lede {
  font-family: var(--font-display);
  font-size: 1.35rem !important;
  line-height: 1.4 !important;
  color: var(--ink) !important;
}
.founder-personal {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-style: italic;
}

.at-a-glance {
  padding: 1.25rem 1.35rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 1.25rem;
}
.at-a-glance h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--ink);
}
.at-a-glance dl {
  margin: 0;
  display: grid;
  gap: 0.95rem;
}
.at-a-glance dl > div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.at-a-glance dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.at-a-glance dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-strong);
}
.at-a-glance dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.4;
}

.team-photo-pair {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.75rem;
}
.team-photo-pair .founder-photo {
  width: 140px;
  aspect-ratio: 1;
}
.shared-mission {
  max-width: 46rem;
  margin: 0 auto;
}
.shared-mission p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}

.trust-org-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.trust-org-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.trust-org-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.trust-org-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.trust-org-list a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.trust-org-list a:hover {
  color: var(--gold-strong);
  text-decoration: underline;
}
.trust-org-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.testimonial {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.testimonial-sample {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-strong);
  background: var(--gold-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.testimonial p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
  font-family: var(--font-display);
}
.testimonial footer {
  display: grid;
  gap: 0.15rem;
}
.testimonial footer strong {
  color: var(--ink);
  font-size: 0.95rem;
}
.testimonial footer span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .founder-bio-layout,
  .trust-org-columns,
  .testimonial-grid,
  .newsletter-page-grid {
    grid-template-columns: 1fr;
  }
  .at-a-glance {
    position: static;
  }
}

/* —— Newsletter —— */
.newsletter-page-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}
.newsletter-signup .newsletter-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}
.newsletter-signup .newsletter-intro {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  line-height: 1.45;
}

/* Footer compact form — must win over .newsletter-signup .newsletter-intro (dark ink on dark footer) */
.newsletter-signup.newsletter-compact .newsletter-heading {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #f5f3ef;
}
.newsletter-signup.newsletter-compact .newsletter-intro {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: rgba(245, 243, 239, 0.92);
  line-height: 1.45;
}
.newsletter-signup.newsletter-compact .field label,
.newsletter-signup.newsletter-compact .newsletter-consent span {
  color: rgba(245, 243, 239, 0.92);
  font-weight: 500;
}
.newsletter-signup.newsletter-compact .field input[type="email"],
.newsletter-signup.newsletter-compact .field input[type="text"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 168, 112, 0.45);
  color: #f5f3ef;
}
.newsletter-signup.newsletter-compact .field input::placeholder {
  color: rgba(245, 243, 239, 0.55);
}
.newsletter-signup.newsletter-compact .newsletter-consent a {
  color: var(--gold);
  margin-right: 0;
}
.newsletter-signup.newsletter-compact .validation-message {
  color: #f0b4b4;
}

.newsletter-consent label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.4;
}
.newsletter-consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.newsletter-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* —— Training / Help / Services —— */
.services-option-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-option,
.help-topic {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

a.service-option:hover,
a.help-topic:hover {
  border-color: var(--gold);
  background: #fff;
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.service-option-static {
  cursor: default;
}

.service-option h3,
.help-topic h3 {
  margin: 0;
  font-size: 1.28rem;
  font-family: var(--font-display);
}

.service-option p,
.help-topic p {
  margin: 0;
  color: var(--ink-soft);
  flex: 1;
  line-height: 1.45;
  font-size: 0.98rem;
}

.service-option-cta {
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--gold-strong);
  font-size: 0.92rem;
}

.help-topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.services-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.services-list li {
  margin-bottom: 0.65rem;
}

.services-list li strong {
  color: var(--ink);
}

/* —— Discernment map —— */
.discernment-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.discernment-stats > div {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.discernment-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ink);
}
.discernment-stats span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.discernment-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.discernment-legend-note {
  font-size: 0.88rem;
}
.swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: -0.1rem;
  box-sizing: border-box;
}
.swatch-discerning {
  background: rgba(200, 168, 112, 0.7);
  border: 2px solid #a8864d;
}
.swatch-supporting {
  background: rgba(47, 93, 140, 0.55);
  border: 2px solid #2f5d8c;
}
.discernment-map-frame {
  position: relative;
  isolation: isolate;
  z-index: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8e4dc;
}
.discernment-map-frame.is-empty {
  min-height: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.discernment-map-frame.is-empty .discernment-map {
  display: none;
}
.discernment-map {
  height: min(70vh, 640px);
  min-height: 420px;
  width: 100%;
}
.discernment-status {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.discernment-privacy {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.discern-marker {
  background: transparent !important;
  border: none !important;
}
.discern-pair {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discern-circle {
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.discern-circle.discerning {
  background: rgba(200, 168, 112, 0.62);
  border: 2px solid #a8864d;
  margin-right: -10px;
  z-index: 1;
}
.discern-circle.supporting {
  background: rgba(47, 93, 140, 0.5);
  border: 2px solid #2f5d8c;
}
.discernment-popup {
  font-family: var(--font-ui);
  min-width: 180px;
}
.discernment-popup p {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.discernment-popup-title {
  font-family: var(--font-display);
  color: var(--ink) !important;
  font-size: 1rem !important;
  margin-bottom: 0.5rem !important;
}
.discernment-popup strong {
  color: var(--ink);
}
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: var(--shadow);
}
