/* HER PRISM — site styles
   Provisional brand palette and typography until final brand assets are supplied.
   Palette intent: clinical-academic depth (forest), warm credibility (copper), restful surface (cream).
*/

:root {
  /* HER PRISM brand palette — pulled directly from the brand image (magenta-wine + warm gold + cream-peach gradient) and grounded with light sage as third anchor */
  --color-bg-base: #FBF6EC;          /* soft paper cream */
  --color-bg-surface: #F2E5D5;       /* warmer cream surface */
  --color-bg-blush: #ECCFC0;          /* peach-blush — echoes the cream-to-peach gradient in the brand image */
  --color-bg-sage: #DDE3D4;           /* light sage accent surface */
  --color-bg-deep: #5A1F3A;           /* deep magenta-wine — translates the brand's signature plum directly */
  --color-bg-deep-soft: #6E2A48;      /* slightly lifted magenta */
  --color-text-primary: #2B1820;      /* warm near-black with magenta undertone */
  --color-text-secondary: #4A363B;    /* deeper dusky rose-taupe — improved contrast on cream */
  --color-text-muted: #6E5359;        /* deeper warm gray — passes WCAG AA on cream backgrounds */
  --color-text-inverse: #FBF6EC;      /* paper cream on dark surfaces */
  --color-text-inverse-soft: #EFCDD3; /* dusty rose for muted text on wine */
  --color-brand: #BC8A3F;             /* warm gold ochre — translates the brand's amber-gold */
  --color-brand-hover: #9E7228;       /* deeper gold on hover */
  --color-sage: #8FA17C;              /* mid sage for restoration-coded accents */
  --color-sage-soft: #B6C4A4;         /* light sage for tags, dots */
  --color-border-subtle: #E5D6C0;     /* warm cream border */
  --color-border-strong: #C8B895;     /* deeper cream-gold border */
  /* Prism accent colors — used in the thin brand stripe at the top of each page; sourced from the multi-color logo */
  --prism-1: #5A1F3A; --prism-2: #A93055; --prism-3: #D67449; --prism-4: #BC8A3F; --prism-5: #8FA17C; --prism-6: #4F6B7A; --prism-7: #5A3E68;

  --font-display: "PT Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06);

  --transition-fast: 150ms ease;
  --transition-medium: 300ms ease;

  --content-max: 1200px;
  --content-narrow: 800px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-primary);
  background: var(--color-bg-base);
  isolation: isolate; /* establishes a stacking context so .ambient-bg z-index -1 renders inside body, above body's bg painting */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance; /* prevents orphan words on the last line of headings */
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; line-height: 1.3; }
h4 { font-size: 1.1rem; line-height: 1.4; font-weight: 500; }

p { margin: 0 0 var(--space-md) 0; text-wrap: pretty; }
li { text-wrap: pretty; }

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-md);
  display: block;
}

/* ---------------- TOP NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-logo span { color: var(--color-brand); }

.nav-logo picture,
.nav-logo img,
.nav-logo svg {
  display: block;
  height: 84px;
  width: auto;
  /* Smooth anti-aliasing for the transparent logo */
  image-rendering: auto;
}
.nav-logo picture img { height: 84px; width: auto; }
.nav { padding: 6px 0; }

/* Slightly smaller on narrow screens to keep the nav balanced */
@media (max-width: 700px) {
  .nav-logo picture,
  .nav-logo img,
  .nav-logo svg,
  .nav-logo picture img { height: 64px; }
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: 400;
}

.nav-links a:hover { color: var(--color-brand); }

.nav-cta {
  background: var(--color-brand);
  color: var(--color-text-inverse);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.nav-cta:hover {
  background: var(--color-brand-hover);
  color: var(--color-text-inverse);
}

/* Hamburger toggle button — injected by nav-mobile.js, hidden by default on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(188, 138, 63, 0.08); border-color: var(--color-brand); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-bg-deep);
  border-radius: 2px;
  transition: transform var(--transition-medium), opacity var(--transition-fast);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-inner {
    /* Allow the dropdown panel to overflow visibly below the nav row */
    position: relative;
  }

  /* Hide the links by default on mobile; show as a dropdown panel when toggled */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
    box-shadow: 0 8px 24px rgba(90, 31, 58, 0.08);
    padding: var(--space-sm) 0;
    margin: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }

  .nav-links li {
    list-style: none;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    color: var(--color-text-primary);
    width: 100%;
  }
  .nav-links a[aria-current="page"] {
    color: var(--color-brand);
    font-weight: 500;
    background: rgba(188, 138, 63, 0.06);
  }
  .nav-links a:hover,
  .nav-links a:focus { background: rgba(188, 138, 63, 0.10); color: var(--color-brand); }

  /* Prevent body scroll bleed when menu is open */
  body.nav-open { overflow: hidden; }
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.btn-on-dark {
  background: var(--color-brand);
  color: var(--color-text-inverse);
}

.btn-secondary-on-dark {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary-on-dark:hover {
  border-color: var(--color-text-inverse);
  color: var(--color-text-inverse);
}

/* ---------------- LAYOUT ---------------- */
.section {
  padding: var(--space-3xl) var(--space-lg);
}

.section-narrow {
  padding: var(--space-2xl) var(--space-lg);
}

/* When two sections stack, halve the gap between them — avoids 96+96=192px of dead space between consecutive prose blocks. */
.section + .section { padding-top: var(--space-xl); }

/* Unified prose measure — headings and body text share the same right edge. Scoped to direct children of section containers so cards, grids, and components are untouched. */
.section > .container > h2,
.section > .container-narrow > h2,
.section > .container > h3,
.section > .container-narrow > h3 { max-width: 36ch; }
.section > .container > p,
.section > .container-narrow > p { max-width: 65ch; }

/* When a section container is centered (text-align: center), the constrained-width children must also auto-center as blocks — otherwise their max-width keeps them visually anchored to the left even though their inner text is centered. */
.section > .container[style*="text-align: center"] > h1,
.section > .container[style*="text-align: center"] > h2,
.section > .container[style*="text-align: center"] > h3,
.section > .container[style*="text-align: center"] > p,
.section > .container-narrow[style*="text-align: center"] > h1,
.section > .container-narrow[style*="text-align: center"] > h2,
.section > .container-narrow[style*="text-align: center"] > h3,
.section > .container-narrow[style*="text-align: center"] > p {
 margin-left: auto;
 margin-right: auto;
 text-wrap: balance;
}

.section-deep {
  background: var(--color-bg-deep);
  color: var(--color-text-inverse);
}

.section-deep h1, .section-deep h2, .section-deep h3, .section-deep h4 {
  color: var(--color-text-inverse);
}

.section-deep .eyebrow {
  color: var(--color-brand);
}

/* Section backgrounds use slight transparency so the ambient prism blobs subtly tint each section,
   keeping motion visible site-wide while preserving each section's color identity for text contrast. */
.section-surface {
  background: rgba(242, 229, 213, 0.82); /* cream-peach surface */
}

.section-sage {
  background: rgba(221, 227, 212, 0.82); /* light sage */
}

.section-blush {
  background: rgba(236, 207, 192, 0.85); /* peach blush */
}

/* Thin prism stripe — 4px brand-color signature band sourced from the multi-color logo. Sits above the nav on every page. */
.prism-bar {
  display: flex;
  height: 4px;
  width: 100%;
}
.prism-bar > span { flex: 1; }
.prism-bar > span:nth-child(1) { background: var(--prism-1); }
.prism-bar > span:nth-child(2) { background: var(--prism-2); }
.prism-bar > span:nth-child(3) { background: var(--prism-3); }
.prism-bar > span:nth-child(4) { background: var(--prism-4); }
.prism-bar > span:nth-child(5) { background: var(--prism-5); }
.prism-bar > span:nth-child(6) { background: var(--prism-6); }
.prism-bar > span:nth-child(7) { background: var(--prism-7); }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
}

.container-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

/* ---------------- AMBIENT PRISM LIGHT (site-wide background) ---------------- */
/* Five large, soft, blurred prism-colored blobs that drift independently behind every page.
   Visible on cream surfaces; on deep-wine surfaces they read as refracted light through the wine.
   Each blob animates on its own duration and path, so the motion is organic, never lockstep.
   Respects prefers-reduced-motion. */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
  /* No blend mode — keeps colors as soft tints rather than darkening the page underneath. */
}

/* Magenta — top-left, large, slow drift right & down */
.ambient-blob-1 {
  width: 620px; height: 620px;
  top: -160px; left: -180px;
  background: rgba(169, 48, 85, 0.20);
  animation: ambient-drift-1 24s ease-in-out infinite alternate;
}
/* Coral — top-right, drifts left & down */
.ambient-blob-2 {
  width: 540px; height: 540px;
  top: 5%; right: -180px;
  background: rgba(214, 116, 73, 0.18);
  animation: ambient-drift-2 20s ease-in-out infinite alternate;
}
/* Sage — middle-right, gentle figure-eight */
.ambient-blob-3 {
  width: 720px; height: 720px;
  top: 45%; right: -200px;
  background: rgba(143, 161, 124, 0.18);
  animation: ambient-drift-3 28s ease-in-out infinite alternate;
}
/* Gold — middle-left, slow upward drift */
.ambient-blob-4 {
  width: 580px; height: 580px;
  top: 60%; left: -150px;
  background: rgba(188, 138, 63, 0.18);
  animation: ambient-drift-4 22s ease-in-out infinite alternate;
}
/* Plum — bottom-center, slow lateral drift */
.ambient-blob-5 {
  width: 660px; height: 660px;
  bottom: -200px; left: 30%;
  background: rgba(90, 62, 104, 0.18);
  animation: ambient-drift-5 26s ease-in-out infinite alternate;
}

@keyframes ambient-drift-1 {
  0%   { transform: translate(0, 0)         scale(1); }
  50%  { transform: translate(280px, 180px) scale(1.15); }
  100% { transform: translate(140px, 360px) scale(0.92); }
}
@keyframes ambient-drift-2 {
  0%   { transform: translate(0, 0)          scale(1); }
  50%  { transform: translate(-340px, 220px) scale(1.10); }
  100% { transform: translate(-180px, 420px) scale(0.95); }
}
@keyframes ambient-drift-3 {
  0%   { transform: translate(0, 0)           scale(1); }
  50%  { transform: translate(-260px, -180px) scale(1.12); }
  100% { transform: translate(-90px, -380px)  scale(1.05); }
}
@keyframes ambient-drift-4 {
  0%   { transform: translate(0, 0)         scale(1); }
  50%  { transform: translate(180px, -260px) scale(1.14); }
  100% { transform: translate(360px, -130px) scale(1); }
}
@keyframes ambient-drift-5 {
  0%   { transform: translate(0, 0)        scale(1); }
  50%  { transform: translate(300px, -140px) scale(1.10); }
  100% { transform: translate(-180px, -220px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob { animation: none; }
}

/* On deep-wine sections the multiply blend will deepen rather than lighten — switch to screen
   so the blobs read as refracted light on the wine. */
.hero, .section-deep, .apply-banner, .tk-cover, .tk-optin-hero {
  isolation: isolate;
}

/* ---------------- HERO ---------------- */
.hero {
  padding: var(--space-5xl) var(--space-lg) var(--space-4xl);
  background: var(--color-bg-deep);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: var(--color-text-inverse);
  max-width: 22ch;
  margin-bottom: var(--space-lg);
}

.hero .subhead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-inverse-soft);
  max-width: 60ch;
  margin-bottom: var(--space-2xl);
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-credibility {
  font-size: 0.85rem;
  color: var(--color-text-inverse-soft);
  max-width: 70ch;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-lg);
}

/* ---------------- PROBLEM SECTION ---------------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
}

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  border-left: 4px solid var(--color-sage);
  padding-left: var(--space-lg);
  margin: 0;
  font-style: italic;
}

/* ---------------- 3-COLUMN GRID ---------------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

@media (max-width: 900px) {
  .three-col { grid-template-columns: 1fr; gap: var(--space-xl); }
}

.col-item h3 {
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-brand);
}

.col-item p {
  color: var(--color-text-secondary);
}

/* ---------------- METHOD PRINCIPLES ---------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  align-items: stretch;
}

@media (max-width: 1100px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .principles { grid-template-columns: 1fr; } }

.principle {
  background: var(--color-bg-base);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
}
.principle p { flex-grow: 1; margin-top: var(--space-xs); }

.principle-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin-bottom: 4px;
}

.principle h4 {
  margin: 0 0 var(--space-sm) 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
@media (max-width: 1100px) {
  .principle h4 { white-space: normal; font-size: 1.05rem; }
}

.principle p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}
.principle p strong { color: var(--color-text-primary); }

/* ---------------- TOOLS ---------------- */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }

.tool {
  text-align: left;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.tool h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.tool p {
  color: var(--color-text-secondary);
}

/* On the wine/deep background (e.g., index.html method section), force light text
   so The Lens / The Compass / The Spark headers and bodies read well. */
.section-deep .tool h3 {
  color: var(--color-text-inverse);
}

.section-deep .tool p {
  color: var(--color-text-inverse-soft);
}

/* ---------------- TWO-COLUMN ---------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: var(--space-xl); } }

.two-col h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand);
  font-weight: 500;
}

/* ---------------- RESEARCH CALLOUT ---------------- */
.research-callout {
  background: var(--color-bg-deep);
  color: var(--color-text-inverse);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
  border-left: 4px solid var(--color-brand);
}

.research-callout p { color: var(--color-text-inverse-soft); margin-bottom: var(--space-sm); }
.research-callout strong { color: var(--color-text-inverse); }

/* ---------------- MODULE STRIP ---------------- */
.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (max-width: 700px) { .modules { grid-template-columns: 1fr; } }

.module {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--space-md);
}

.module-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-brand);
  flex-shrink: 0;
  width: 40px;
  line-height: 1;
}

.module h4 {
  margin: 0 0 var(--space-xs) 0;
  font-size: 1rem;
  font-weight: 500;
}

.module p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.module .module-week {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

/* ---------------- INCLUDED LIST ---------------- */
.included {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-2xl);
  margin-top: var(--space-2xl);
  list-style: none;
  padding: 0;
}

@media (max-width: 700px) { .included { grid-template-columns: 1fr; } }

.included li {
  padding-left: var(--space-lg);
  position: relative;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-brand);
  border-radius: 50%;
}

/* ---------------- OUTCOMES ---------------- */
.outcomes {
  list-style: none;
  padding: 0;
  margin: var(--space-2xl) 0 0;
}

.outcomes li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: baseline;
}

.outcomes .outcome-label {
  white-space: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  font-weight: 500;
}

@media (max-width: 700px) {
  .outcomes li { grid-template-columns: 1fr; gap: var(--space-xs); }
}

/* ---------------- PRICING TIERS (program.html) ---------------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-top: var(--space-xl); align-items: stretch; }
.tier { background: var(--color-bg-surface); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; flex-direction: column; position: relative; }

/* Per-tier color progression — each tier "speaks" a different temperature */
.tier-1 { background: #FBF6EC; border-top: 3px solid #C4B79A; }                            /* sand/cream — entry */
.tier-2 { background: #F4E4D5; border-top: 3px solid #D67449; }                            /* warm blush — most chosen */
.tier-3 { background: #E8EBDC; border-top: 3px solid #8FA17C; }                            /* sage — deepest cohort version */
.tier-4 { background: var(--color-bg-deep); border: 2px solid var(--color-brand); border-top: 3px solid var(--color-brand); color: var(--color-text-inverse); box-shadow: 0 16px 40px rgba(90,31,58,0.28); position: relative; }
.tier-4::after { content: ""; position: absolute; top: 0; left: 6px; right: 6px; height: 3px; background: linear-gradient(90deg, #5A1F3A, #A93055, #D67449, #BC8A3F, #8FA17C, #4F6B7A, #5A3E68); border-radius: 2px; }

.tier-featured { color: var(--color-text-inverse); }
.tier-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-brand); color: var(--color-bg-deep); font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(90,31,58,0.25); z-index: 5; }
.tier-badge-soft { background: var(--color-bg-deep); color: var(--color-brand); box-shadow: none; font-weight: 500; }
.tier-eyebrow { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.tier-featured .tier-eyebrow { color: var(--color-brand); }
.tier h3 { font-size: 1.15rem; margin: 0 0 var(--space-md); line-height: 1.3; text-wrap: balance; min-height: calc(1.3em * 2); display: flex; align-items: flex-end; }
.tier-featured h3 { color: var(--color-text-inverse); }
.tier-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--color-bg-deep); line-height: 1.1; margin-bottom: 4px; font-weight: 700; }
.tier-featured .tier-price { color: var(--color-text-inverse); }
.tier-price-strike { font-size: 1rem; color: var(--color-text-muted); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.tier-featured .tier-price-strike { color: var(--color-text-inverse-soft); }
.tier-price-note { color: var(--color-text-muted); font-size: 0.82rem; margin-bottom: var(--space-lg); }
.tier-featured .tier-price-note { color: var(--color-brand); }
.tier-desc { color: var(--color-text-secondary); font-size: 0.95rem; margin: 0 0 var(--space-lg); line-height: 1.55; }
.tier-featured .tier-desc { color: var(--color-text-inverse-soft); }
.tier-fit { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; margin: 0 0 var(--space-md); padding: var(--space-md); background: rgba(188, 138, 63, 0.08); border-left: 2px solid var(--color-brand); border-radius: 4px; font-style: italic; min-height: 13em; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start; }
.tier-fit strong { color: var(--color-bg-deep); font-style: normal; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.72rem; display: block; margin-bottom: 4px; }
.tier-featured .tier-fit { background: rgba(251, 246, 236, 0.08); color: var(--color-text-inverse-soft); border-left-color: var(--color-brand); }
.tier-featured .tier-fit strong { color: var(--color-brand); }

/* Pending-pricing notice — clean, consistent across all four tiers */
.tier-pending { font-family: var(--font-body); font-size: 0.82rem; color: var(--color-text-muted); letter-spacing: 0.04em; text-transform: uppercase; padding: var(--space-sm) 0; margin: 0 0 var(--space-md); border-top: 1px dashed var(--color-border-subtle); border-bottom: 1px dashed var(--color-border-subtle); text-align: center; line-height: 1.4; }
.tier-featured .tier-pending { color: var(--color-brand); border-color: rgba(188, 138, 63, 0.3); }
.tier-list { list-style: none; padding: 0; margin: 0 0 var(--space-xl); display: flex; flex-direction: column; gap: var(--space-sm); font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; min-height: 8em; }
.tier-featured .tier-list { color: var(--color-text-inverse-soft); }
.tier-list li::before { content: "✓ "; color: var(--color-sage); margin-right: 4px; font-weight: 700; }
.tier-2 .tier-list li::before { color: #D67449; }
.tier-3 .tier-list li::before { color: var(--color-bg-deep); }
.tier-featured .tier-list li::before { color: var(--color-brand); }
.tier-list li strong { color: var(--color-text-primary); }
.tier-featured .tier-list li strong { color: var(--color-text-inverse); }
.tier .btn { margin-top: auto; text-align: center; }
.tier-featured .btn-primary { background: var(--color-brand); color: var(--color-bg-deep); border-color: var(--color-brand); }
.tier-featured .btn-primary:hover { background: #d49b4d; }
.founding-banner { background: var(--color-bg-blush); border-left: 4px solid var(--color-brand); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); margin-bottom: var(--space-2xl); max-width: 70ch; }
.founding-banner strong { color: var(--color-bg-deep); }
.founding-banner span { color: var(--color-text-secondary); }
.section > .container > p.pricing-foot,
.section > .container-narrow > p.pricing-foot,
p.pricing-foot { margin: var(--space-2xl) 0 0 !important; padding-top: var(--space-lg); border-top: 1px solid var(--color-border-subtle); color: var(--color-text-secondary); font-size: 0.9rem; max-width: none !important; line-height: 1.6; text-align: center; }
@media (max-width: 1100px) { .tiers { grid-template-columns: 1fr 1fr; } .tier-featured { transform: none; } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } .tier-featured { margin: var(--space-md) 0; } }
.tier-eyebrow-sage { color: var(--color-sage) !important; }

.outcomes li:last-child { border-bottom: none; }

.outcomes .outcome-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand);
  font-weight: 500;
}

@media (max-width: 700px) {
  .outcomes li { grid-template-columns: 1fr; gap: var(--space-xs); }
}

/* ---------------- WHO FOR ---------------- */
.who-for {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
}

@media (max-width: 900px) { .who-for { grid-template-columns: 1fr; gap: var(--space-xl); } }

.who-for h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.who-yes h3 { color: var(--color-brand); }
.who-no h3  { color: var(--color-text-muted); }

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

.check-list li {
  padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
  position: relative;
  color: var(--color-text-secondary);
  border-bottom: 1px dashed var(--color-border-subtle);
}

.check-list li:last-child { border-bottom: none; }

.who-yes .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: var(--space-sm);
  color: var(--color-sage);
  font-weight: 500;
}

.who-no .check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: var(--space-sm);
  color: var(--color-text-muted);
}

/* ---------------- FOUNDER ---------------- */
.founder {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

.founder-photo {
  aspect-ratio: 4 / 5;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------------- APPLY CTA SECTION ---------------- */
.apply-banner {
  background: var(--color-bg-deep);
  color: var(--color-text-inverse);
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.apply-banner h2 {
  color: var(--color-text-inverse);
  max-width: 38ch;
  margin: 0 auto var(--space-md);
  line-height: 1.2;
}

.apply-banner p {
  color: var(--color-text-inverse-soft);
  max-width: 60ch;
  margin: 0 auto var(--space-2xl);
  font-size: 1.1rem;
}

/* ---------------- FOOTER ---------------- */
.footer {
  background: #3A1224;
  color: var(--color-text-inverse-soft);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-cols { grid-template-columns: 1fr; } }

.footer-cols h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-cols li { margin-bottom: var(--space-sm); }

.footer-cols a {
  color: var(--color-text-inverse-soft);
}

.footer-cols a:hover { color: var(--color-text-inverse); }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.footer-brand-tagline {
  color: var(--color-text-inverse-soft);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-disclaimer strong { color: var(--color-text-inverse-soft); }

/* Coach certification credit */
.footer-cert {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: var(--color-text-inverse-soft);
  line-height: 1.5;
  flex-wrap: wrap;
}
.footer-cert img {
  height: 64px;
  width: auto;
  display: block;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}
.footer-cert .footer-cert-text { max-width: 520px; }
.footer-cert .footer-cert-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text-inverse);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.footer-cert .footer-cert-text span {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-text-inverse-soft); }

/* ---------------- TABLE ---------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-xl);
}

.spec-table th, .spec-table td {
  text-align: left;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: top;
  font-size: 0.95rem;
}

.spec-table th {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------- FAQ ---------------- */
.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-lg) 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--color-brand);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-answer {
  margin-top: var(--space-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------------- ACCESSIBILITY ---------------- */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------------- PAGE HEADER (sub-pages) ---------------- */
.page-header {
  background: var(--color-bg-surface);
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  border-bottom: 1px solid var(--color-border-subtle);
}

.page-header .container { text-align: left; }

.page-header h1 {
  max-width: 28ch;
  margin-bottom: var(--space-md);
}

.page-header p {
  color: var(--color-text-secondary);
  font-size: 1.15rem;
  max-width: 60ch;
}

/* ---------------- RETREATS PAGE ---------------- */
.retreat-card {
  background: var(--color-bg-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 2px 8px rgba(90,31,58,0.04);
}

.form-inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-inline input[type="text"],
.form-inline input[type="email"] {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
}

.form-inline input[type="text"]:focus,
.form-inline input[type="email"]:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-color: var(--color-brand);
}

.form-inline button {
  margin-top: var(--space-xs);
}

/* Illustration placeholders — drop your own images in to replace these */
.illustration-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--color-bg-blush);
  border: 2px dashed var(--color-brand);
  border-radius: var(--radius-lg);
  color: var(--color-bg-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  margin: var(--space-2xl) auto;
  min-height: 280px;
  width: 100%;
  max-width: 720px;
}

.illustration-placeholder::before {
  content: "✶";
  font-size: 2rem;
  color: var(--color-brand);
  letter-spacing: 0;
}

.illustration-placeholder .placeholder-hint {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: none;
  font-style: italic;
  max-width: 50ch;
  line-height: 1.5;
}

.illustration-placeholder.illustration-wide {
  max-width: 1100px;
  min-height: 360px;
}

.illustration-placeholder.illustration-narrow {
  max-width: 480px;
  min-height: 220px;
}

.illustration-placeholder.illustration-square {
  max-width: 480px;
  min-height: 480px;
}

/* Convergence diagram on the Method page */
.convergence-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.convergence-svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .convergence-svg text {
    font-size: 16px;
  }
}

/* Quiet retreat banner used on the home page */
.retreat-line {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-bg-blush);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.retreat-line .eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
}

.retreat-line p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  max-width: 56ch;
  margin: 0 auto var(--space-md);
  color: var(--color-bg-deep);
}

.retreat-line a {
  color: var(--color-brand);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--color-brand);
  padding-bottom: 1px;
}
.retreat-line a:hover { opacity: 0.85; }

/* ---------------- INDEX — PROBLEM SECTION INTRO + EVIDENCE CARD ---------------- */
.problem-intro { display: grid; grid-template-columns: 1fr 280px; gap: var(--space-2xl); align-items: start; }
@media (max-width: 900px) { .problem-intro { grid-template-columns: 1fr; } .evidence-card { max-width: 320px; margin: 0 auto; } }

.evidence-card { background: var(--color-bg-base); border: 1px solid var(--color-border-subtle); border-left: 3px solid var(--color-brand); border-radius: var(--radius-md); padding: var(--space-lg); font-family: var(--font-body); position: relative; }
.evidence-card-eyebrow { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.evidence-card-stat { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--color-bg-deep); font-weight: 700; }
.evidence-card-stat span { display: inline-block; }
.evidence-card-label { font-size: 0.85rem; color: var(--color-text-secondary); letter-spacing: 0.04em; margin-top: 2px; }
.evidence-card-rule { width: 28px; height: 2px; background: var(--color-brand); margin: var(--space-md) 0; opacity: .65; }
.evidence-card-meta { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.4; }
.evidence-card-meta-soft { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 2px; }
.evidence-card-split { display: flex; align-items: baseline; gap: 8px; margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px dashed var(--color-border-subtle); }
.evidence-card-split-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-brand); font-weight: 700; line-height: 1; }
.evidence-card-split-divider { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-text-muted); }
.evidence-card-split-label { font-size: 0.78rem; color: var(--color-text-muted); line-height: 1.4; margin-top: 4px; font-style: italic; }

/* ====================================================================
   ALIGNMENT HARMONIZATION LAYER
   Added in the site-wide tightening pass. Establishes one source of
   truth for max-widths, padding, border-radius, and border treatment
   across all auxiliary content blocks, callouts, and slim lines.

   Strategy: utility classes for new use, plus normalizing rules that
   catch the most common existing inline-style patterns — so the visual
   harmonization happens without touching every page's inline styles.
   ==================================================================== */

/* --- Measure tokens (max-width primitives) --- */
:root {
  --measure-prose: 65ch;     /* running body prose */
  --measure-narrow: 56ch;    /* tight prose, eyebrow paragraphs */
  --measure-box: 760px;      /* auxiliary lines, slim cards */
  --measure-box-wide: 820px; /* wider content cards */
}

.measure-prose  { max-width: var(--measure-prose);    margin-left: auto; margin-right: auto; }
.measure-narrow { max-width: var(--measure-narrow);   margin-left: auto; margin-right: auto; }
.measure-box    { max-width: var(--measure-box);      margin-left: auto; margin-right: auto; }
.measure-box-wide { max-width: var(--measure-box-wide); margin-left: auto; margin-right: auto; }

/* --- Aux-line: the slim centered auxiliary paragraph pattern --- */
/* Used for "For institutions —" and "Beyond the 16 weeks —" parallel lines */
.aux-line {
  margin: var(--space-2xl) auto 0;
  max-width: var(--measure-box);
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.aux-line + .aux-line { margin-top: var(--space-md); }
.aux-line--divided {
  padding-top: var(--space-lg);
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--color-border-subtle);
}
.aux-line strong { color: var(--color-bg-deep); font-weight: 600; }
.aux-line a { color: var(--color-brand); text-decoration: underline; }
.aux-line a:hover { color: var(--color-brand-hover); }

/* --- Callout: unified background-box pattern --- */
/* One padding, one radius, one border treatment. Variants pick the background. */
.callout {
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-brand);
  max-width: var(--measure-box);
  margin-left: auto;
  margin-right: auto;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child  { margin-bottom: 0; }
.callout--blush  { background: var(--color-bg-blush);   border-left-color: var(--color-brand); }
.callout--sage   { background: var(--color-bg-sage);    border-left-color: var(--color-sage); }
.callout--cream  { background: var(--color-bg-surface); border-left-color: var(--color-brand); }
.callout--wine   { background: var(--color-bg-deep);    border-left-color: var(--color-brand); color: var(--color-text-inverse); }
.callout--wine h2, .callout--wine h3, .callout--wine h4 { color: var(--color-text-inverse); }
.callout--wine p { color: var(--color-text-inverse-soft); }
.callout--wide   { max-width: var(--measure-box-wide); }
.callout--full   { max-width: 100%; }

/* --- Card-block: clean bordered card (no accent stripe) --- */
.card-block {
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-base);
  max-width: var(--measure-box);
  margin-left: auto;
  margin-right: auto;
}
.card-block > :first-child { margin-top: 0; }
.card-block > :last-child  { margin-bottom: 0; }
.card-block--surface { background: var(--color-bg-surface); }
.card-block--wide    { max-width: var(--measure-box-wide); }

/* --- Normalize legacy inline-style border-left widths to 3px --- */
/* The audit found mix of 3px and 4px accent strokes across the site.
   Force 3px everywhere for visual consistency. */
[style*="border-left: 4px solid var(--color-brand)"],
[style*="border-left:4px solid var(--color-brand)"] {
  border-left-width: 3px !important;
}
[style*="border-left: 4px solid var(--color-bg-deep)"],
[style*="border-left:4px solid var(--color-bg-deep)"] {
  border-left-width: 3px !important;
}

/* --- Normalize legacy hardcoded max-widths to the new tokens --- */
/* Snap the most common drift values to the standardized box widths. */
[style*="max-width: 760px"] { max-width: var(--measure-box) !important; }
[style*="max-width: 820px"] { max-width: var(--measure-box-wide) !important; }
[style*="max-width: 800px"] { max-width: var(--content-narrow) !important; }

/* --- Existing .founding-banner: unify radius + border width with the new system --- */
.founding-banner {
  border-left-width: 3px !important;
  padding: var(--space-lg) var(--space-xl);
  max-width: var(--measure-box);
  margin-left: auto;
  margin-right: auto;
}

/* --- Section rhythm: prevent double-margins from inline overrides --- */
/* When a section starts with an element that has margin-top:var(--space-3xl)
   on top of the section's own padding-top, the rhythm doubles. This rule
   keeps the first child of a section flush so the section padding
   provides the only vertical breathing room. */
.section > .container > *:first-child:not(.eyebrow),
.section > .container-narrow > *:first-child:not(.eyebrow) {
  margin-top: 0;
}

/* --- Retreats photo grid alignment fix --- */
/* The audit found Costa Rica (height:260px) and Ikaria (height:320px)
   imgs out of sync. Force an aspect-ratio so all retreat photos align
   in their grid cells regardless of source image dimensions. */
.retreat-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.retreat-photo-grid img,
.retreat-photo-grid figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  margin: 0;
}
@media (max-width: 700px) {
  .retreat-photo-grid { grid-template-columns: 1fr 1fr; }
}
/* Normalize legacy hardcoded photo heights in retreats grid.
   The grid divs use inline display:grid without class names, but the
   imgs all live inside <figure> tags. Catch them via figure > img and
   force an aspect-ratio so rows align cleanly. */
figure > img[style*="height: 260px"],
figure > img[style*="height:260px"] {
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover;
}
figure > img[style*="height: 320px"],
figure > img[style*="height:320px"] {
  height: auto !important;
  aspect-ratio: 16 / 7 !important;
  object-fit: cover;
}

/* --- Footer alignment: ensure 4-col grid stays consistent --- */
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* --- Prism facets list (used on program.html) — unify with measure --- */
.prism-facets-wrap {
  max-width: var(--measure-box);
  margin: var(--space-3xl) auto 0;
  padding: var(--space-xl);
  background: var(--color-bg-blush);
  border-radius: var(--radius-md);
}
.prism-facets-wrap > :first-child { margin-top: 0; }
.prism-facets-wrap > :last-child  { margin-bottom: 0; }

/* ==================================================================== */
/* END ALIGNMENT HARMONIZATION LAYER                                    */
/* ==================================================================== */
