/* Article Generator — Shared Styles
   All classes prefixed cea-. All custom props prefixed --cea-.
   Self-contained: no external dependencies, no global selectors.
*/

/* Smooth scroll for TOC anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

.cea-article {
  /* Brand color custom properties — set per article */
  --cea-brand: #1B4D89;
  --cea-brand-tint: #e8eef5;
  --cea-brand-dark: #0f2d52;
  --cea-brand-border: rgba(27, 77, 137, 0.3);
  /* Accent / secondary color — falls back to primary when not supplied */
  --cea-brand-accent: var(--cea-brand);

  /* Typography */
  --cea-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cea-font-size: 17px;
  --cea-line-height: 1.65;
  --cea-color-text: #1a1a1a;
  --cea-color-muted: #555;
  --cea-color-bg: #ffffff;

  /* Scale */
  --cea-h1: 2.5rem;
  --cea-h2: 1.75rem;
  --cea-h3: 1.25rem;

  /* Spacing */
  --cea-space-1: 8px;
  --cea-space-2: 16px;
  --cea-space-3: 24px;
  --cea-space-4: 32px;
  --cea-space-5: 40px;
  --cea-space-6: 48px;
  --cea-space-8: 64px;
  --cea-space-12: 96px;

  /* Layout */
  --cea-max-prose: 760px;
  --cea-max-wide: 1100px;
  --cea-radius: 8px;
  --cea-radius-sm: 4px;

  /* Shadows */
  --cea-shadow: 0 1px 2px rgba(0,0,0,0.05);

  font-family: var(--cea-font);
  font-size: var(--cea-font-size);
  line-height: var(--cea-line-height);
  color: var(--cea-color-text);
  background: var(--cea-color-bg);
  box-sizing: border-box;

  /*
   * Full-bleed breakout — escapes WordPress's content container (.entry-content,
   * .wp-block-post-content, etc.) so the article spans the full viewport width.
   * The inner blocks (.cea-article__inner, hero inner, etc.) still apply their
   * own max-width to keep prose readable at large breakpoints.
   */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip; /* prevents horizontal scroll from the vw bleed */
}

.cea-article *, .cea-article *::before, .cea-article *::after {
  box-sizing: inherit;
}

/* Prose typography */
.cea-article p { margin: 0 0 var(--cea-space-2); }
.cea-article p:last-child { margin-bottom: 0; }
.cea-article strong { font-weight: 600; }
.cea-article em { font-style: italic; }
.cea-article a { color: var(--cea-brand); text-decoration: underline; text-underline-offset: 3px; }
.cea-article a:hover { color: var(--cea-brand-dark); }
.cea-article ul, .cea-article ol { margin: 0 0 var(--cea-space-2); padding-left: var(--cea-space-4); }
.cea-article li { margin-bottom: var(--cea-space-1); }
.cea-article code { font-size: 0.9em; background: #f4f4f5; padding: 2px 5px; border-radius: var(--cea-radius-sm); }

/* Headings */
.cea-h1 {
  font-family: var(--cea-font-heading, inherit);
  font-size: var(--cea-h1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--cea-space-3);
  color: var(--cea-color-text);
}
.cea-h2 {
  font-family: var(--cea-font-heading, inherit);
  font-size: var(--cea-h2);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--cea-space-2);
  color: var(--cea-color-text);
  border-bottom: 2px solid var(--cea-brand);
  padding-bottom: var(--cea-space-1);
  display: inline-block;
}
.cea-h3 {
  font-family: var(--cea-font-heading, inherit);
  font-size: var(--cea-h3);
  font-weight: 600;
  line-height: 1.35;
  margin: var(--cea-space-3) 0 var(--cea-space-1);
  color: var(--cea-color-text);
}

/* Quick Answer block (shared, always present) */
.cea-quick-answer {
  background: var(--cea-brand-tint);
  border: none;
  border-radius: var(--cea-radius);
  padding: var(--cea-space-4) var(--cea-space-5, 2rem);
  margin: 0 0 var(--cea-space-6);
}
.cea-quick-answer__label {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--cea-brand-dark);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cea-brand-border);
}
.cea-quick-answer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cea-quick-answer li {
  margin-bottom: 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.65;
  break-inside: avoid;
}
.cea-quick-answer li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cea-brand);
  line-height: 1.65;
}

/* Table of Contents */
.cea-toc {
  border: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  padding: var(--cea-space-3) var(--cea-space-4);
  margin: 0 0 var(--cea-space-6);
  background: #fff;
}
.cea-toc__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cea-brand);
  margin: 0 0 var(--cea-space-2);
}
.cea-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: var(--cea-space-6);
}
.cea-toc__item {
  padding: 3px 0;
  break-inside: avoid;
  counter-increment: toc-counter;
  display: flex;
  gap: var(--cea-space-1);
  align-items: baseline;
}
.cea-toc__item::before {
  content: counter(toc-counter) ".";
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cea-brand);
  flex-shrink: 0;
  min-width: 1.5em;
}
.cea-toc__list { counter-reset: toc-counter; }
.cea-toc__item a {
  font-size: 0.9rem;
  color: var(--cea-color-text);
  text-decoration: none;
  line-height: 1.4;
}
.cea-toc__item a:hover { color: var(--cea-brand); text-decoration: underline; }
@media (max-width: 640px) {
  .cea-toc__list { columns: 1; }
}

/* Key Facts block (shared, always present) */
/*
  --cea-kf-cols-base is set per-element (inline style) based on item count so
  rows are always full. --cea-kf-cols is then derived from it in CSS so that
  media-query overrides (which can't beat inline style) still work correctly.
*/
.cea-key-facts {
  --cea-kf-cols: var(--cea-kf-cols-base, 3);
  display: grid;
  grid-template-columns: repeat(var(--cea-kf-cols), minmax(0, 1fr));
  gap: var(--cea-space-2);
  max-width: var(--cea-max-wide);
  margin: 0 auto var(--cea-space-8);
  padding: 0 var(--cea-space-2);
}
/* Responsive overrides — redefine --cea-kf-cols (not the base) so they win */
@media (max-width: 640px) {
  .cea-key-facts { --cea-kf-cols: 2; }
}
@media (max-width: 380px) {
  .cea-key-facts { --cea-kf-cols: 1; }
}
.cea-key-fact {
  background: #fff;
  border: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  padding: var(--cea-space-2) var(--cea-space-3);
  box-shadow: var(--cea-shadow);
}
.cea-key-fact__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cea-brand);
  line-height: 1.1;
  display: block;
  word-break: break-word;
}
/* Long-value fallback — applied by render.js when value exceeds ~20 chars */
.cea-key-fact--verbose .cea-key-fact__value {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.cea-key-fact__label {
  font-size: 0.8rem;
  color: var(--cea-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Alternating section tint — every other section gets a very light brand wash.
   Uses brand-tint at 50% opacity so it reads as rhythm, not decoration. */
.cea-section--tinted {
  background: color-mix(in srgb, var(--cea-brand-tint) 55%, white);
  border-bottom-color: var(--cea-brand-border);
}
/* Fallback for browsers without color-mix (rare, pre-2023) */
@supports not (background: color-mix(in srgb, white, white)) {
  .cea-section--tinted { background: var(--cea-brand-tint); }
}

/* Article wrapper */
.cea-article__inner {
  max-width: var(--cea-max-wide);
  margin: 0 auto;
  padding: 0 var(--cea-space-4);
}

/* Markdown tables inside section bodies */
.cea-article table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--cea-space-3) 0 var(--cea-space-4);
  font-size: 0.93rem;
  line-height: 1.45;
}
.cea-article th,
.cea-article td {
  padding: 9px var(--cea-space-2);
  border: 1px solid var(--cea-brand-border);
  text-align: left;
  vertical-align: top;
}
.cea-article th {
  background: var(--cea-brand-tint);
  font-weight: 700;
  color: var(--cea-brand-dark);
  white-space: nowrap;
}
.cea-article tr:nth-child(even) td {
  background: #f8f9fb;
}
.cea-article caption {
  font-size: 0.8rem;
  color: var(--cea-color-muted);
  margin-bottom: var(--cea-space-1);
  text-align: left;
}
@media (max-width: 640px) {
  .cea-article table { font-size: 0.84rem; }
  .cea-article th,
  .cea-article td { padding: 7px var(--cea-space-1); }
}


.cea-hero--full-bleed {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-color: var(--cea-brand-dark);
  background-size: cover;
  background-position: center;
}
.cea-hero--full-bleed__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.3) 100%
  );
  z-index: 0;
}
.cea-hero--full-bleed__inner {
  position: relative;
  z-index: 1;
  max-width: var(--cea-max-prose);
  margin: 0 auto;
  padding: var(--cea-space-12) var(--cea-space-4);
  text-align: left;
}
.cea-hero--full-bleed .cea-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 var(--cea-space-2);
}
.cea-hero--full-bleed .cea-hero__h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  margin-bottom: var(--cea-space-3);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cea-hero--full-bleed .cea-hero__subhead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 var(--cea-space-5);
}
/* Compact stat pill — sits between eyebrow and H1 */
.cea-hero--full-bleed__stat-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--cea-space-2);
  background: var(--cea-brand);
  border-radius: 99px;
  padding: 5px 16px 5px 12px;
  margin-bottom: var(--cea-space-3);
}
.cea-hero--full-bleed__stat-chip .cea-hero__stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.cea-hero--full-bleed__stat-chip .cea-hero__stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .cea-hero--full-bleed { min-height: 360px; }
  .cea-hero--full-bleed__inner { padding: var(--cea-space-8) var(--cea-space-4); }
}


.cea-section--two-col-left {
  padding: var(--cea-space-8) var(--cea-space-4);
  border-bottom: 1px solid #f0f0f0;
}
.cea-section--two-col-left:last-of-type { border-bottom: none; }
.cea-section--two-col-left__inner {
  max-width: var(--cea-max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: var(--cea-space-8);
  align-items: start;
}
.cea-section--two-col-left__img-col {
  position: sticky;
  top: var(--cea-space-4);
}
/* Frame wrapper — dark outer mat + accent inner ring */
.cea-section--two-col__img-frame {
  background: var(--cea-brand-dark);
  border-radius: var(--cea-radius);
  padding: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  display: block;
}
.cea-section--two-col__img {
  width: 100%;
  border-radius: calc(var(--cea-radius) - 3px);
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 2px solid var(--cea-brand-accent);
}
.cea-section--two-col__img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--cea-brand-tint) 0%, var(--cea-brand-border) 100%);
  border-radius: calc(var(--cea-radius) - 3px);
  border: 2px solid var(--cea-brand-accent);
}
.cea-section--two-col-left__content .cea-section__body { margin-top: var(--cea-space-3); }
.cea-section--two-col-left__content .cea-section__link {
  margin-top: var(--cea-space-3);
  font-size: 0.95rem;
  color: var(--cea-brand);
}
.cea-section--two-col-left__content .cea-section__link a { color: var(--cea-brand); font-weight: 600; }
@media (max-width: 640px) {
  .cea-section--two-col-left__inner { grid-template-columns: 1fr; gap: var(--cea-space-4); }
  .cea-section--two-col-left__img-col { position: static; }
}


.cea-callout--stat {
  display: flex;
  align-items: center;
  gap: var(--cea-space-4);
  padding: var(--cea-space-3) var(--cea-space-4);
  background: #fff;
  border: 2px solid var(--cea-brand);
  border-radius: var(--cea-radius);
  margin: var(--cea-space-3) 0;
}
.cea-callout__stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cea-brand);
  line-height: 1;
  white-space: nowrap;
}
.cea-callout__stat-body { flex: 1; }
.cea-callout__stat-body p { margin: 0; font-size: 0.9rem; color: var(--cea-color-muted); }
.cea-callout__stat-body .cea-callout__label { color: var(--cea-color-text); font-size: 1rem; }


.cea-section--two-col-right {
  padding: var(--cea-space-8) var(--cea-space-4);
  border-bottom: 1px solid #f0f0f0;
}
.cea-section--two-col-right:last-of-type { border-bottom: none; }
.cea-section--two-col-right__inner {
  max-width: var(--cea-max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 42%;
  gap: var(--cea-space-8);
  align-items: start;
}
.cea-section--two-col-right__img-col {
  position: sticky;
  top: var(--cea-space-4);
}
.cea-section--two-col-right__content .cea-section__body { margin-top: var(--cea-space-3); }
.cea-section--two-col-right__content .cea-section__link {
  margin-top: var(--cea-space-3);
  font-size: 0.95rem;
  color: var(--cea-brand);
}
.cea-section--two-col-right__content .cea-section__link a { color: var(--cea-brand); font-weight: 600; }
@media (max-width: 640px) {
  .cea-section--two-col-right__inner { grid-template-columns: 1fr; }
  .cea-section--two-col-right__img-col { position: static; order: -1; }
}


.cea-section--full {
  padding: var(--cea-space-8) var(--cea-space-4);
  border-bottom: 1px solid #f0f0f0;
}
.cea-section--full:last-of-type { border-bottom: none; }
.cea-section--full .cea-section__inner {
  max-width: var(--cea-max-prose);
  margin: 0 auto;
}
.cea-section__body { margin-top: var(--cea-space-3); }
.cea-section__link {
  margin-top: var(--cea-space-3);
  font-size: 0.95rem;
  color: var(--cea-brand);
}
.cea-section__link a { color: var(--cea-brand); font-weight: 600; }


.cea-callout {
  display: flex;
  gap: var(--cea-space-2);
  padding: var(--cea-space-3);
  border-radius: var(--cea-radius);
  margin: var(--cea-space-3) 0;
}
.cea-callout--tip {
  background: var(--cea-brand-tint);
  border: 1px solid var(--cea-brand-border);
}
.cea-callout__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.cea-callout__content { flex: 1; }
.cea-callout__content p { margin: 0; font-size: 0.95rem; }
.cea-callout__label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--cea-brand-dark); }


.cea-list--checked {
  list-style: none;
  padding: 0;
  margin: var(--cea-space-3) 0;
}
.cea-list--checked .cea-list__item {
  padding: var(--cea-space-1) 0 var(--cea-space-1) var(--cea-space-5);
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.cea-list--checked .cea-list__item:last-child { border-bottom: none; }
.cea-list--checked .cea-list__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cea-brand);
  font-weight: 700;
}


.cea-section--sidebar-pullquote {
  padding: var(--cea-space-8) var(--cea-space-4);
  border-bottom: 1px solid #f0f0f0;
}
.cea-section--sidebar-pullquote:last-of-type { border-bottom: none; }
.cea-section--sidebar-pullquote__inner {
  max-width: var(--cea-max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--cea-space-8);
  align-items: start;
}
.cea-section--sidebar-pullquote__main .cea-section__body { margin-top: var(--cea-space-3); }
.cea-section--sidebar-pullquote__main .cea-section__link {
  margin-top: var(--cea-space-3);
  font-size: 0.95rem;
  color: var(--cea-brand);
}
.cea-section--sidebar-pullquote__main .cea-section__link a { color: var(--cea-brand); font-weight: 600; }
.cea-section--sidebar-pullquote__sidebar {
  position: sticky;
  top: var(--cea-space-6);
}
.cea-pullquote {
  margin: 0;
  padding: var(--cea-space-4);
  border-left: 4px solid var(--cea-brand);
  background: var(--cea-brand-tint);
  border-radius: 0 var(--cea-radius) var(--cea-radius) 0;
}
.cea-pullquote__text {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--cea-brand-dark);
  margin: 0;
  font-style: italic;
  position: relative;
}
.cea-pullquote__text::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--cea-brand);
  opacity: 0.3;
  position: absolute;
  top: -12px;
  left: -8px;
  font-family: Georgia, serif;
  line-height: 1;
}
@media (max-width: 640px) {
  .cea-section--sidebar-pullquote__inner { grid-template-columns: 1fr; }
  .cea-section--sidebar-pullquote__sidebar {
    position: static;
    order: -1;
  }
}


.cea-cta--button-row {
  padding: var(--cea-space-8) var(--cea-space-4);
  background: var(--cea-brand-tint);
  border-top: 3px solid var(--cea-brand);
  text-align: center;
}
.cea-cta--button-row__inner {
  max-width: 640px;
  margin: 0 auto;
}
.cea-cta--button-row__headline {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--cea-color-text);
  margin: 0 0 var(--cea-space-2);
  line-height: 1.25;
  border: none;
  display: block;
  padding: 0;
}
.cea-cta--button-row__body {
  font-size: 1rem;
  color: var(--cea-color-muted);
  margin: 0 0 var(--cea-space-4);
  line-height: 1.6;
}
.cea-cta--button-row__buttons {
  display: flex;
  gap: var(--cea-space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cea-btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--cea-radius);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
  white-space: nowrap;
}
.cea-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cea-btn:active { transform: translateY(0); }
.cea-btn--primary {
  background: var(--cea-brand);
  color: #ffffff;
}
.cea-btn--secondary {
  background: transparent;
  color: var(--cea-brand);
  border: 2px solid var(--cea-brand);
}


.cea-faq--accordion {
  padding: var(--cea-space-8) var(--cea-space-4);
  background: #fafafa;
}
.cea-faq--accordion .cea-faq__inner {
  max-width: var(--cea-max-prose);
  margin: 0 auto;
}
.cea-faq__list { margin-top: var(--cea-space-4); }
.cea-faq__item {
  border: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  margin-bottom: var(--cea-space-2);
  background: #ffffff;
  overflow: hidden;
}
.cea-faq__item[open] { box-shadow: var(--cea-shadow); }
.cea-faq__q {
  font-size: 1rem;
  font-weight: 600;
  padding: var(--cea-space-3);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cea-color-text);
}
.cea-faq__q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--cea-brand);
  flex-shrink: 0;
  margin-left: var(--cea-space-2);
  transition: transform 0.2s;
}
.cea-faq__item[open] .cea-faq__q::after { content: '−'; }
.cea-faq__q::-webkit-details-marker { display: none; }
.cea-faq__a {
  padding: 0 var(--cea-space-3) var(--cea-space-3);
  color: var(--cea-color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.cea-faq__a p { margin: 0; }


.cea-closer--next-steps {
  padding: var(--cea-space-8) var(--cea-space-4);
  background: var(--cea-brand-dark);
  color: #fff;
}
.cea-closer--next-steps__inner {
  max-width: var(--cea-max-prose);
  margin: 0 auto;
}
.cea-closer--next-steps__inner .cea-h2 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.35);
}
.cea-closer--next-steps__list {
  list-style: none;
  padding: 0;
  margin: var(--cea-space-4) 0;
  counter-reset: step-counter;
}
.cea-closer--next-steps__item {
  counter-increment: step-counter;
  padding: var(--cea-space-2) 0 var(--cea-space-2) var(--cea-space-8);
  position: relative;
  font-size: 1rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}
.cea-closer--next-steps__item:last-child { border-bottom: none; }
.cea-closer--next-steps__item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: var(--cea-space-2);
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}
.cea-closer--next-steps__action {
  margin-top: var(--cea-space-5);
  text-align: center;
}
.cea-btn--next-steps {
  display: inline-block;
  background: #ffffff;
  color: var(--cea-brand-dark);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--cea-radius);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.cea-btn--next-steps:hover { opacity: 0.9; transform: translateY(-1px); }
.cea-closer--next-steps__note {
  margin: var(--cea-space-3) auto 0;
  max-width: 480px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.52);
}


/* Rocky Mountain Surrogacy — Article Theme Overrides
   Transforms cea- components to match the RMS article-preview design system:
   Cormorant Garamond + Inter, oklch dusty-rose palette, 1.25rem radius cards,
   middot bullets, italic serif numbers, warm blush washes, no left-border accents.
   Appended last — cascades over _shared.css and all block CSS.
*/

/* ── Google Fonts fallback (WP theme already loads these; @import only fires if missing) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

/* Smooth scroll for TOC anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* ══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ══════════════════════════════════════════════════════════════ */

.cea-article {
  /* Brand colors — oklch dusty rose palette */
  --cea-brand:         oklch(0.60 0.105 20);
  --cea-brand-tint:    oklch(0.94 0.025 60 / 0.40);
  --cea-brand-dark:    oklch(0.55 0.105 20);
  --cea-brand-border:  oklch(0.90 0.02 70);
  --cea-brand-accent:  oklch(0.74 0.12 70);

  /* Typography */
  --cea-font:         "Inter", system-ui, -apple-system, sans-serif;
  --cea-font-heading: "Cormorant Garamond", Georgia, serif;
  --cea-font-size:    16px;
  --cea-line-height:  1.6;
  --cea-color-text:   oklch(0.28 0.025 150);
  --cea-color-muted:  oklch(0.48 0.025 150);
  --cea-color-bg:     oklch(0.985 0.012 70);

  /* Scale */
  --cea-h1: clamp(2.25rem, 5vw, 3rem);
  --cea-h2: clamp(1.5rem, 3vw, 1.875rem);
  --cea-h3: 1.25rem;

  /* Layout */
  --cea-max-prose: 56rem;
  --cea-max-wide:  80rem;
  --cea-radius:    1.25rem;
  --cea-radius-sm: 0.5rem;

  /* Shadows — warm rose tint */
  --cea-shadow: 0 6px 24px oklch(0.60 0.105 20 / 0.08);

  /* RMS-specific tokens */
  --rms-card:       oklch(0.995 0.006 80);
  --rms-blush:      oklch(0.94 0.025 20);
  --rms-primary-fg: oklch(0.99 0.005 80);

  font-feature-settings: "ss01", "cv11";
  background-color: var(--cea-color-bg);
}

/* Selection highlight */
.cea-article ::selection {
  background: oklch(0.94 0.025 20);
  color: oklch(0.36 0.035 150);
}


/* ══════════════════════════════════════════════════════════════
   2. BASE TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */

.cea-article p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: oklch(0.28 0.025 150 / 0.85);
  margin: 0 0 1.25rem;
}
.cea-article p:last-child { margin-bottom: 0; }

.cea-article strong {
  font-weight: 600;
  color: var(--cea-color-text);
}

/* Links — dusty rose, subtle underline */
.cea-article a {
  color: var(--cea-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: oklch(0.60 0.105 20 / 0.40);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.cea-article a:hover {
  color: oklch(0.55 0.105 20);
  text-decoration-color: oklch(0.55 0.105 20);
}

/* Inline code */
.cea-article code {
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  background: oklch(0.94 0.025 60);
  color: var(--cea-color-text);
}

/* Default UL — middot bullets */
.cea-article ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.cea-article ul > li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
  color: oklch(0.28 0.025 150 / 0.85);
  margin-bottom: 0;
}
.cea-article ul > li::before {
  content: "\00B7";
  position: absolute;
  left: 0;
  color: var(--cea-brand);
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Default OL — italic Cormorant numbers */
.cea-article ol {
  list-style: none;
  counter-reset: article-ol;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.cea-article ol > li {
  counter-increment: article-ol;
  padding-left: 2.5rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
  color: oklch(0.28 0.025 150 / 0.85);
  margin-bottom: 0;
}
.cea-article ol > li::before {
  content: counter(article-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--cea-font-heading);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 400;
  color: oklch(0.55 0.105 20);
  line-height: 1.7;
}

/* Markdown tables */
.cea-article table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.cea-article th {
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--cea-brand-border);
  border-right: none;
  border-left: none;
  border-top: none;
  background: oklch(0.94 0.025 60);
  color: var(--cea-color-text);
  white-space: normal;
}
.cea-article td {
  padding: 0.875rem 1rem;
  border: none;
  border-bottom: 1px solid var(--cea-brand-border);
  color: oklch(0.28 0.025 150 / 0.85);
}
.cea-article tr:nth-child(even) td {
  background: transparent;
}
.cea-article tbody tr:hover td {
  background: oklch(0.94 0.025 60 / 0.30);
}


/* ══════════════════════════════════════════════════════════════
   3. HEADINGS
   ══════════════════════════════════════════════════════════════ */

.cea-h1 {
  font-family: var(--cea-font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--cea-color-text);
}

.cea-h2 {
  font-family: var(--cea-font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border-bottom: none;
  padding-bottom: 0;
  display: block;
  margin: 3rem 0 0.75rem;
  color: var(--cea-color-text);
}

.cea-h3 {
  font-family: var(--cea-font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.5rem;
  color: var(--cea-color-text);
}

/* H4 — stays sans-serif */
.cea-article h4 {
  font-family: var(--cea-font);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}


/* ══════════════════════════════════════════════════════════════
   4. ARTICLE INNER WRAPPER
   ══════════════════════════════════════════════════════════════ */

.cea-article__inner {
  max-width: var(--cea-max-wide);
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 0;
}


/* ══════════════════════════════════════════════════════════════
   5. QUICK ANSWER
   ══════════════════════════════════════════════════════════════ */

.cea-quick-answer {
  background: var(--rms-blush);
  border: none;
  border-radius: var(--cea-radius);
  padding: 2rem 2.5rem;
  box-shadow: none;
  max-width: var(--cea-max-prose);
  margin-inline: auto;
}
.cea-quick-answer__label {
  font-family: var(--cea-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--cea-brand-dark);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid oklch(0.60 0.105 20 / 0.2);
}
.cea-quick-answer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cea-quick-answer li {
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--cea-color-text);
  margin-bottom: 0;
}
.cea-quick-answer li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cea-brand);
  line-height: 1.65;
}


/* ══════════════════════════════════════════════════════════════
   6. TABLE OF CONTENTS
   ══════════════════════════════════════════════════════════════ */

.cea-toc {
  background: transparent;
  border: none;
  border-left: 3px solid var(--cea-brand);
  border-radius: 0;
  padding: 0.25rem 0 0.25rem 2rem;
  max-width: var(--cea-max-prose);
  margin-inline: auto;
}
.cea-toc__label {
  font-family: var(--cea-font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--cea-brand-dark);
  margin: 0 0 1rem;
}
.cea-article .cea-toc__list {
  counter-reset: toc-counter;
  columns: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.cea-article .cea-toc__item {
  padding: 0.45rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  border-bottom: none;
  counter-increment: toc-counter;
}
.cea-article .cea-toc__item::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: static;
  left: auto;
  display: block;
  width: auto;
  min-width: 1.5em;
  font-family: var(--cea-font-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--cea-brand);
  flex-shrink: 0;
  line-height: 1.4;
}
.cea-toc__item a {
  font-size: 0.9375rem;
  color: var(--cea-color-text);
  text-decoration: none;
  transition: color 0.15s;
}
.cea-toc__item a:hover {
  color: var(--cea-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ══════════════════════════════════════════════════════════════
   7. KEY FACTS
   ══════════════════════════════════════════════════════════════ */

.cea-key-facts {
  max-width: var(--cea-max-prose);
  gap: 1.25rem;
  padding: 0;
  --cea-kf-cols: min(var(--cea-kf-cols-base, 3), 3);
}
@media (max-width: 640px) {
  .cea-key-facts { --cea-kf-cols: 2; }
}
@media (max-width: 380px) {
  .cea-key-facts { --cea-kf-cols: 1; }
}
.cea-key-fact {
  background: oklch(0.94 0.025 60 / 0.40);
  border: none;
  border-radius: var(--cea-radius);
  padding: 1.5rem 1.25rem;
  box-shadow: none;
  text-align: center;
}
.cea-key-fact__value {
  font-family: var(--cea-font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cea-brand);
  line-height: 1.1;
  word-break: break-word;
}
.cea-key-fact--verbose .cea-key-fact__value {
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
}
.cea-key-fact__label {
  font-size: 0.875rem;
  color: var(--cea-color-muted);
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0.25rem;
}


/* ══════════════════════════════════════════════════════════════
   8. SECTIONS — ALL LAYOUTS
   ══════════════════════════════════════════════════════════════ */

/* Remove generic section borders */
.cea-section--full,
.cea-section--two-col-left,
.cea-section--two-col-right,
.cea-section--sidebar-pullquote {
  border-bottom: none;
}
.cea-section--full:last-of-type,
.cea-section--two-col-left:last-of-type,
.cea-section--two-col-right:last-of-type,
.cea-section--sidebar-pullquote:last-of-type {
  border-bottom: none;
}

/* Alternating tint — warm blush wash */
.cea-section--tinted {
  background: oklch(0.94 0.025 60 / 0.20);
}
@supports not (background: color-mix(in srgb, white, white)) {
  .cea-section--tinted {
    background: oklch(0.94 0.025 60 / 0.20);
  }
}

/* Section body typography */
.cea-section__body {
  margin-top: 0.75rem;
}

/* Section internal link arrow */
.cea-section__link {
  font-size: 0.9375rem;
  margin-top: 1.5rem;
}
.cea-section__link a {
  color: var(--cea-brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: oklch(0.60 0.105 20 / 0.40);
}
.cea-section__link a:hover {
  color: oklch(0.55 0.105 20);
  text-decoration-color: oklch(0.55 0.105 20);
}

/* Full-width sections */
.cea-section--full .cea-section__inner {
  max-width: var(--cea-max-prose);
}

/* Two-col sections — max width + softer spacing */
.cea-section--two-col-left__inner,
.cea-section--two-col-right__inner {
  max-width: var(--cea-max-prose);
  gap: 2.5rem;
}

/* Image frame — dark border matching hero panel tone */
.cea-section--two-col__img-frame {
  background: transparent;
  border-radius: var(--cea-radius);
  padding: 0;
  box-shadow: none;
}
.cea-section--two-col__img {
  border-radius: var(--cea-radius);
  border: 3px solid var(--cea-brand-dark);
  box-shadow: 0 4px 20px oklch(0.60 0.105 20 / 0.08);
  aspect-ratio: 3/4;
  object-fit: cover;
}
.cea-section--two-col__img-placeholder {
  border-radius: var(--cea-radius);
  border: 3px solid var(--cea-brand-dark);
  background: linear-gradient(135deg, oklch(0.94 0.025 60), oklch(0.94 0.025 20));
}

/* Sidebar pullquote section */
.cea-section--sidebar-pullquote__inner {
  max-width: var(--cea-max-prose);
}


/* ══════════════════════════════════════════════════════════════
   9. PULLQUOTE
   ══════════════════════════════════════════════════════════════ */

.cea-pullquote {
  margin: 0;
  padding: 2.5rem 2rem;
  text-align: center;
  background: oklch(0.55 0.105 20);
  border: none;
  border-left: none;
  border-radius: var(--cea-radius);
}
.cea-pullquote__text {
  font-family: var(--cea-font-heading);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--rms-primary-fg);
  margin: 0;
}
.cea-pullquote__text::before {
  content: none;
}


/* ══════════════════════════════════════════════════════════════
   10. CALLOUT BLOCKS
   ══════════════════════════════════════════════════════════════ */

/* Base callout — card style, no icon layout */
.cea-callout {
  display: block;
  padding: 1.75rem;
  border-radius: var(--cea-radius);
  margin: 2rem 0;
  gap: 0;
}

/* Hide emoji icons */
.cea-callout__icon {
  display: none;
}

/* Callout content takes full width */
.cea-callout__content {
  flex: none;
}

/* Label — uppercase eyebrow style */
.cea-callout__label {
  display: block;
  font-family: var(--cea-font);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}
.cea-callout__content p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: oklch(0.28 0.025 150 / 0.85);
}

/* Tip — blush wash bg, sage label */
.cea-callout--tip {
  background: oklch(0.94 0.025 60 / 0.40);
  border: none;
  border-color: transparent;
}
.cea-callout--tip .cea-callout__label {
  color: oklch(0.45 0.06 150);
}

/* Warning — card bg, warm-tinted border */
.cea-callout--warning {
  background: var(--rms-card);
  border: 1px solid oklch(0.55 0.15 25 / 0.25);
  border-left: 1px solid oklch(0.55 0.15 25 / 0.25);
}
.cea-callout--warning .cea-callout__label {
  color: oklch(0.55 0.15 25);
}
.cea-callout--warning .cea-callout__content p {
  color: oklch(0.28 0.025 150 / 0.85);
}

/* Quote callout — card style with faded opening quote mark */
.cea-callout--quote {
  background: var(--rms-card);
  border: 1px solid var(--cea-brand-border);
  border-left: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}
.cea-callout--quote::before {
  content: "\201C";
  position: static;
  display: block;
  font-family: var(--cea-font-heading);
  font-size: 3rem;
  line-height: 1;
  color: oklch(0.55 0.105 20);
  opacity: 1;
  margin-bottom: 0.25rem;
  top: auto;
  left: auto;
  pointer-events: auto;
}
.cea-callout--quote__text {
  font-family: var(--cea-font-heading);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: oklch(0.28 0.025 150 / 0.88);
  margin: 0 0 1rem;
}
.cea-callout--quote__cite {
  display: block;
  font-family: var(--cea-font);
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cea-color-muted);
}

/* Stat callout — rose bg with italic serif number */
.cea-callout--stat {
  background: oklch(0.55 0.105 20);
  border: none;
  border-radius: var(--cea-radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cea-callout__stat-value {
  font-family: var(--cea-font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--rms-primary-fg);
  line-height: 1;
  white-space: nowrap;
}
.cea-callout__stat-body .cea-callout__label {
  color: var(--rms-primary-fg);
  font-size: 0.6875rem;
}
.cea-callout__stat-body p {
  color: oklch(0.99 0.005 80 / 0.85);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Comparison callout — card columns */
.cea-callout--comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.cea-callout--comparison__col {
  padding: 2rem;
  border-radius: var(--cea-radius);
  background: var(--rms-card);
  border: 1px solid var(--cea-brand-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cea-callout--comparison__col:hover {
  border-color: oklch(0.60 0.105 20 / 0.40);
  box-shadow: 0 6px 24px oklch(0.60 0.105 20 / 0.08);
}
.cea-callout--comparison__col--yes {
  background: var(--rms-card);
}
.cea-callout--comparison__col--no {
  background: var(--rms-card);
}
.cea-callout--comparison__divider {
  display: none;
}
.cea-callout--comparison__heading {
  font-family: var(--cea-font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 1rem;
}
.cea-callout--comparison__col--yes .cea-callout--comparison__heading {
  color: var(--cea-color-text);
}
.cea-callout--comparison__col--no .cea-callout--comparison__heading {
  color: var(--cea-color-text);
}
.cea-callout--comparison__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cea-callout--comparison__item {
  padding: 0 0 0 2rem;
  position: relative;
  font-size: 0.9375rem;
  border-bottom: none;
  line-height: 1.5;
  color: oklch(0.28 0.025 150 / 0.80);
}
.cea-callout--comparison__item:last-child {
  border-bottom: none;
}
.cea-callout--comparison__col--yes .cea-callout--comparison__item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 1rem;
  color: var(--cea-brand);
  font-weight: 600;
  line-height: 1;
}
.cea-callout--comparison__col--no .cea-callout--comparison__item::before {
  content: "\2717";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 1rem;
  color: oklch(0.55 0.15 25);
  font-weight: 600;
  line-height: 1;
}
@media (max-width: 640px) {
  .cea-callout--comparison { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   11. LIST BLOCKS
   ══════════════════════════════════════════════════════════════ */

/* Checked list — icon list style with checkmarks */
.cea-list--checked {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 1.5rem 0;
}
.cea-list--checked .cea-list__item {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: oklch(0.28 0.025 150 / 0.85);
  line-height: 1.5;
  padding: 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: none;
}
.cea-list--checked .cea-list__item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--cea-brand);
}

/* Numbered list — card items with italic numbers */
/* Re-assert counters — .cea-article ol clobbers counter-reset at lower specificity */
.cea-article .cea-list--numbered {
  list-style: none;
  counter-reset: tips;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 0.75rem;
}
.cea-article .cea-list--numbered .cea-list__item {
  counter-increment: tips;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  background: var(--rms-card);
  border: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: oklch(0.28 0.025 150 / 0.85);
  display: block;
}
.cea-article .cea-list--numbered .cea-list__item::before {
  content: counter(tips, decimal-leading-zero);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: auto;
  height: auto;
  min-width: auto;
  background: none;
  border-radius: 0;
  display: block;
  font-family: var(--cea-font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: oklch(0.55 0.105 20);
  line-height: 1;
  align-items: initial;
  justify-content: initial;
  margin-top: 0;
}

/* Icon grid — card tiles */
.cea-list--icon-grid {
  gap: 1.25rem;
}
.cea-list--icon-grid .cea-list__item {
  background: var(--rms-card);
  border: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  padding: 1.75rem;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cea-list--icon-grid .cea-list__item:hover {
  border-color: oklch(0.60 0.105 20 / 0.40);
  box-shadow: 0 6px 24px oklch(0.60 0.105 20 / 0.08);
}

/* Accordion list — rounded cards */
.cea-list--accordion {
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cea-list--accordion__item {
  border: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  border-bottom: 1px solid var(--cea-brand-border);
  background: var(--rms-card);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cea-list--accordion__item:last-child {
  border-bottom: 1px solid var(--cea-brand-border);
}
.cea-list--accordion__item[open] {
  background: var(--rms-card);
  box-shadow: 0 6px 24px oklch(0.60 0.105 20 / 0.08);
}
.cea-list--accordion__label {
  font-family: var(--cea-font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  color: var(--cea-color-text);
}
.cea-list--accordion__label::after {
  font-weight: 300;
  color: var(--cea-brand);
  transition: transform 0.2s ease;
}
.cea-list--accordion__item[open] .cea-list--accordion__label {
  color: var(--cea-brand);
}
.cea-list--accordion__body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}


/* ══════════════════════════════════════════════════════════════
   12. CTA BLOCKS
   ══════════════════════════════════════════════════════════════ */

/* Button base — pill shape */
.cea-btn {
  border-radius: 99px;
  padding: 0.625rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--cea-font);
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.cea-btn:hover {
  text-decoration: none;
  opacity: 1;
  transform: none;
}

/* Primary button — rose fill, white text */
.cea-btn--primary {
  background: var(--cea-brand);
  color: var(--rms-primary-fg);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.12);
}
.cea-btn--primary:hover {
  background: oklch(0.55 0.105 20);
  color: var(--rms-primary-fg);
}
/* Remove underline from button links */
.cea-article .cea-btn,
.cea-article .cea-btn:hover {
  text-decoration: none;
  text-decoration-color: transparent;
}
.cea-article .cea-btn--primary,
.cea-article .cea-btn--primary:hover {
  color: var(--rms-primary-fg);
}

/* Secondary / outline button */
.cea-btn--secondary {
  background: transparent;
  color: var(--cea-color-text);
  border: 1.5px solid oklch(0.60 0.105 20 / 0.30);
}
.cea-btn--secondary:hover {
  border-color: var(--cea-brand);
  color: var(--cea-brand);
}

/* CTA Banner — deep rose bg */
.cea-cta--banner {
  background: oklch(0.55 0.105 20);
  padding: 3rem 2rem;
  border-top: none;
  border-radius: var(--cea-radius);
}
/* Body text must beat .cea-article p (0-1-1) */
.cea-article .cea-cta--banner__body {
  color: oklch(0.99 0.005 80 / 0.80);
}
.cea-cta--banner__inner {
  max-width: var(--cea-max-prose);
}
.cea-cta--banner__headline {
  font-family: var(--cea-font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  color: var(--rms-primary-fg);
}
.cea-cta--banner__text .cea-cta--banner__headline {
  color: var(--rms-primary-fg);
}
.cea-cta--banner__body {
  color: oklch(0.99 0.005 80 / 0.80);
  font-family: var(--cea-font);
}
.cea-btn--banner {
  background: var(--rms-primary-fg);
  color: oklch(0.45 0.10 20);
  border-radius: 99px;
  padding: 0.625rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.cea-btn--banner:hover {
  background: oklch(0.985 0.012 70);
  color: oklch(0.45 0.10 20);
  transform: none;
}
.cea-article .cea-btn--banner,
.cea-article .cea-btn--banner:hover {
  color: oklch(0.45 0.10 20);
  text-decoration: none;
}

/* CTA Button Row — deep rose bg, centered */
.cea-cta--button-row {
  background: oklch(0.55 0.105 20);
  border-top: none;
  border-radius: var(--cea-radius);
  padding: 3rem 2rem;
  text-align: center;
}
.cea-cta--button-row__inner {
  max-width: 30rem;
}
.cea-cta--button-row__headline {
  font-family: var(--cea-font-heading);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  color: var(--rms-primary-fg);
}
/* Must beat .cea-article p (0-1-1) */
.cea-article .cea-cta--button-row__body {
  color: oklch(0.99 0.005 80 / 0.80);
  max-width: 30rem;
  margin-inline: auto;
}
.cea-cta--button-row .cea-btn--primary,
.cea-cta--button-row .cea-btn--secondary {
  background: var(--rms-primary-fg);
  color: oklch(0.45 0.10 20);
  border: none;
  box-shadow: none;
  border-radius: 99px;
}
.cea-cta--button-row .cea-btn--primary:hover,
.cea-cta--button-row .cea-btn--secondary:hover {
  background: oklch(0.985 0.012 70);
  color: oklch(0.45 0.10 20);
}
.cea-article .cea-cta--button-row .cea-btn--primary,
.cea-article .cea-cta--button-row .cea-btn--primary:hover,
.cea-article .cea-cta--button-row .cea-btn--secondary,
.cea-article .cea-cta--button-row .cea-btn--secondary:hover {
  color: oklch(0.45 0.10 20);
  text-decoration: none;
}

/* CTA Inline Link */
.cea-cta--inline-link {
  max-width: var(--cea-max-prose);
}
.cea-cta--inline-link__text {
  color: var(--cea-color-muted);
}
.cea-cta--inline-link__anchor {
  color: var(--cea-brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: oklch(0.60 0.105 20 / 0.40);
  border-bottom: none;
  padding-bottom: 0;
}
.cea-cta--inline-link__anchor:hover {
  color: oklch(0.55 0.105 20);
  text-decoration-color: oklch(0.55 0.105 20);
  border-color: transparent;
}


/* ══════════════════════════════════════════════════════════════
   13. FAQ BLOCKS
   ══════════════════════════════════════════════════════════════ */

/* FAQ Accordion */
.cea-faq--accordion {
  background: oklch(0.94 0.025 60 / 0.20);
  padding: 4rem clamp(1.25rem, 4vw, 2rem);
}
.cea-faq--accordion .cea-faq__inner {
  max-width: var(--cea-max-prose);
}
.cea-faq--accordion .cea-h2 {
  text-align: center;
  margin-bottom: 0.75rem;
}
.cea-faq__list {
  margin-top: 1.5rem;
}
.cea-faq__item {
  background: var(--rms-card);
  border: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  margin-bottom: 0.75rem;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cea-faq__item[open] {
  box-shadow: 0 6px 24px oklch(0.60 0.105 20 / 0.08);
}
.cea-faq__q {
  font-family: var(--cea-font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  color: var(--cea-color-text);
}
.cea-faq__q::after {
  content: '+';
  font-weight: 300;
  color: var(--cea-brand);
  transition: transform 0.2s ease;
}
.cea-faq__item[open] .cea-faq__q::after {
  content: '+';
  transform: rotate(45deg);
  color: var(--cea-brand);
}
.cea-faq__item[open] .cea-faq__q {
  color: var(--cea-brand);
}
.cea-faq__a {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: oklch(0.28 0.025 150 / 0.85);
}

/* FAQ Numbered */
.cea-faq--numbered {
  background: var(--cea-color-bg);
  padding: 4rem clamp(1.25rem, 4vw, 2rem);
}
.cea-faq--numbered__inner {
  max-width: var(--cea-max-prose);
}
.cea-faq--numbered__item {
  padding-left: 4rem;
  border-bottom-color: var(--cea-brand-border);
}
.cea-faq--numbered__item::before {
  content: counter(faq-counter, decimal-leading-zero);
  background: none;
  border: none;
  width: auto;
  height: auto;
  display: block;
  font-family: var(--cea-font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: oklch(0.55 0.105 20);
  border-radius: 0;
  align-items: initial;
  justify-content: initial;
}
.cea-faq--numbered__q {
  font-family: var(--cea-font-heading);
  font-weight: 500;
}
.cea-faq--numbered__a {
  color: oklch(0.28 0.025 150 / 0.85);
}

/* FAQ Two Column */
.cea-faq--two-column {
  background: oklch(0.94 0.025 60 / 0.20);
  padding: 4rem clamp(1.25rem, 4vw, 2rem);
}
.cea-faq--two-column__inner {
  max-width: var(--cea-max-prose);
}
.cea-faq--two-column__card {
  background: var(--rms-card);
  border: 1px solid var(--cea-brand-border);
  border-radius: var(--cea-radius);
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cea-faq--two-column__card:hover {
  border-color: oklch(0.60 0.105 20 / 0.40);
  box-shadow: 0 6px 24px oklch(0.60 0.105 20 / 0.08);
}
.cea-faq--two-column__q {
  font-family: var(--cea-font-heading);
  font-weight: 500;
}
.cea-faq--two-column__a {
  color: oklch(0.28 0.025 150 / 0.85);
}


/* ══════════════════════════════════════════════════════════════
   14. CLOSER BLOCKS
   ══════════════════════════════════════════════════════════════ */

/* Closer Next Steps — deep rose bg, full-bleed (no border-radius) */
.cea-closer--next-steps {
  background: oklch(0.55 0.105 20);
  border-radius: 0;
}
.cea-closer--next-steps__inner {
  max-width: var(--cea-max-prose);
}
.cea-closer--next-steps__inner .cea-h2 {
  font-family: var(--cea-font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--rms-primary-fg);
  border-bottom: none;
}
/* Re-assert counters — generic .cea-article ol overrides clobber step-counter */
.cea-article .cea-closer--next-steps__list {
  counter-reset: step-counter;
}
.cea-article .cea-closer--next-steps__item {
  counter-increment: step-counter;
  border-bottom-color: oklch(0.99 0.005 80 / 0.15);
  color: oklch(0.99 0.005 80 / 0.90);
  font-size: 0.9375rem;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
/* Must beat .cea-article ol > li::before (0-1-2) — use .cea-article prefix (0-2-1) */
.cea-article .cea-closer--next-steps__item::before {
  content: counter(step-counter, decimal-leading-zero);
  position: static;
  left: auto;
  background: none;
  border: none;
  width: auto;
  height: auto;
  min-width: 2em;
  font-family: var(--cea-font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: oklch(0.99 0.005 80 / 0.35);
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  text-align: right;
  align-items: initial;
  justify-content: initial;
  line-height: 1;
  margin-top: 0;
}
.cea-btn--next-steps {
  background: var(--rms-primary-fg);
  color: oklch(0.45 0.10 20);
  border-radius: 99px;
  padding: 0.625rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.cea-btn--next-steps:hover {
  background: oklch(0.985 0.012 70);
  color: oklch(0.45 0.10 20);
  transform: none;
}
.cea-article .cea-btn--next-steps,
.cea-article .cea-btn--next-steps:hover {
  color: oklch(0.45 0.10 20);
  text-decoration: none;
}
.cea-closer--next-steps__note {
  color: oklch(0.99 0.005 80 / 0.50);
}

/* Closer Comparison Table */
.cea-closer--comparison-table {
  background: oklch(0.94 0.025 60 / 0.30);
  border-top: none;
  padding: 4rem clamp(1.25rem, 4vw, 2rem);
}
.cea-closer--comparison-table__inner {
  max-width: var(--cea-max-prose);
}
.cea-closer--comparison-table__wrap {
  border-radius: var(--cea-radius);
  box-shadow: 0 4px 20px oklch(0.60 0.105 20 / 0.08);
  overflow: hidden;
}
.cea-closer--comparison-table__table {
  background: var(--rms-card);
}
.cea-closer--comparison-table__th {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
}
.cea-closer--comparison-table__th--feature {
  background: oklch(0.55 0.105 20);
  color: oklch(0.99 0.005 80 / 0.70);
}
.cea-closer--comparison-table__th--a {
  background: var(--cea-brand);
  color: var(--rms-primary-fg);
}
.cea-closer--comparison-table__th--b {
  background: oklch(0.48 0.025 150);
  color: var(--rms-primary-fg);
}
.cea-closer--comparison-table__row:nth-child(even) {
  background: oklch(0.94 0.025 60 / 0.15);
}
.cea-closer--comparison-table__row:hover {
  background: oklch(0.94 0.025 60 / 0.30);
}
.cea-closer--comparison-table__feature {
  border-right-color: var(--cea-brand-border);
}
.cea-closer--comparison-table__val {
  border-right-color: var(--cea-brand-border);
  color: oklch(0.28 0.025 150 / 0.85);
}


/* ══════════════════════════════════════════════════════════════
   15. HERO BLOCKS
   ══════════════════════════════════════════════════════════════ */

/* All hero eyebrows — rose pill */
.cea-hero__eyebrow {
  font-family: var(--cea-font);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Hero Centered Minimal — rounded tile */
.cea-hero--centered-minimal {
  background: oklch(0.55 0.105 20) !important;
  border-radius: var(--cea-radius);
  max-width: 90rem;
  margin: 1.5rem 2rem;
  overflow: hidden;
}
.cea-hero--centered-minimal .cea-hero__eyebrow {
  color: oklch(0.99 0.005 80 / 0.70);
}
.cea-hero--centered-minimal .cea-hero__h1 {
  font-family: var(--cea-font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rms-primary-fg);
}
.cea-hero--centered-minimal .cea-hero__subhead {
  color: oklch(0.99 0.005 80 / 0.80);
}
.cea-hero--centered-minimal .cea-hero__stat {
  background: oklch(0.99 0.005 80 / 0.12);
  border: 1px solid oklch(0.99 0.005 80 / 0.25);
  border-radius: var(--cea-radius);
}
.cea-hero--centered-minimal .cea-hero__stat-value {
  font-family: var(--cea-font-heading);
  font-style: italic;
  font-weight: 400;
}

/* Hero Full Bleed — rounded tile */
.cea-hero--full-bleed {
  background-color: oklch(0.55 0.105 20);
  border-radius: var(--cea-radius);
  max-width: 90rem;
  margin: 1.5rem 2rem;
  overflow: hidden;
}
.cea-hero--full-bleed__overlay {
  background: linear-gradient(
    135deg,
    oklch(0.20 0.02 20 / 0.72) 0%,
    oklch(0.25 0.02 20 / 0.45) 60%,
    oklch(0.30 0.02 20 / 0.30) 100%
  );
}
.cea-hero--full-bleed__inner {
  max-width: var(--cea-max-prose);
}
.cea-hero--full-bleed .cea-hero__eyebrow {
  color: oklch(0.99 0.005 80 / 0.70);
}
.cea-hero--full-bleed .cea-hero__h1 {
  font-family: var(--cea-font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rms-primary-fg);
  text-shadow: none;
}
.cea-hero--full-bleed .cea-hero__subhead {
  color: oklch(0.99 0.005 80 / 0.85);
}
.cea-hero--full-bleed__stat-chip {
  background: oklch(0.99 0.005 80 / 0.15);
  border: 1px solid oklch(0.99 0.005 80 / 0.25);
  border-radius: 99px;
}
.cea-hero--full-bleed__stat-chip .cea-hero__stat-value {
  font-family: var(--cea-font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
}

/* Hero Image Left — rounded tile */
.cea-hero--image-left {
  background: oklch(0.55 0.105 20);
  border-radius: var(--cea-radius);
  max-width: 90rem;
  margin: 1.5rem 2rem;
  overflow: hidden;
}
.cea-hero--image-left__img {
  object-fit: cover;
}
.cea-hero--image-left__img-placeholder {
  background: linear-gradient(135deg, oklch(0.94 0.025 60), oklch(0.94 0.025 20));
}
.cea-hero--image-left__content {
  background: transparent;
  padding: 4rem 3rem;
}
.cea-hero--image-left__content .cea-hero__eyebrow {
  color: oklch(0.99 0.005 80 / 0.70);
}
.cea-hero--image-left__content .cea-hero__h1 {
  font-family: var(--cea-font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rms-primary-fg);
}
.cea-hero--image-left__content .cea-hero__subhead {
  color: oklch(0.99 0.005 80 / 0.80);
}
.cea-hero--image-left__content .cea-hero__stat {
  background: oklch(0.99 0.005 80 / 0.12);
  border: 1px solid oklch(0.99 0.005 80 / 0.25);
  border-radius: var(--cea-radius);
}
.cea-hero--image-left__content .cea-hero__stat-value {
  font-family: var(--cea-font-heading);
  font-style: italic;
  font-weight: 400;
}

/* Hero Split Stat — rounded tile */
.cea-hero--split-stat {
  border-radius: var(--cea-radius);
  max-width: 90rem;
  margin: 1.5rem 2rem;
  overflow: hidden;
}
.cea-hero--split-stat__stat-panel {
  background: oklch(0.55 0.105 20);
}
.cea-hero--split-stat__stat-panel .cea-hero__eyebrow {
  color: oklch(0.99 0.005 80 / 0.65);
}
.cea-hero--split-stat__stat-value {
  font-family: var(--cea-font-heading);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.cea-hero--split-stat__content-panel {
  background: oklch(0.50 0.095 20);
}
.cea-hero--split-stat__content-panel .cea-hero__h1 {
  font-family: var(--cea-font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.cea-hero--split-stat--with-img .cea-hero--split-stat__left {
  background: oklch(0.55 0.105 20);
}
.cea-hero--split-stat__left .cea-hero__h1 {
  font-family: var(--cea-font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
}


/* ══════════════════════════════════════════════════════════════
   16. DARK-PANEL TEXT SAFETY — no black text on deep rose backgrounds
   ══════════════════════════════════════════════════════════════ */

/* All deep-rose-bg components: force light text on ALL child elements.
   .cea-article prefix bumps specificity to beat .cea-article p (0-1-1)
   and .cea-article ol > li (0-1-1) from base typography section. */

.cea-article .cea-callout--stat,
.cea-article .cea-callout--stat p,
.cea-article .cea-callout--stat strong,
.cea-article .cea-callout--stat .cea-callout__label,
.cea-article .cea-callout--stat .cea-callout__stat-body,
.cea-article .cea-callout--stat .cea-callout__stat-body p,
.cea-article .cea-callout--stat .cea-callout__stat-body .cea-callout__label {
  color: var(--rms-primary-fg);
}
.cea-article .cea-callout--stat .cea-callout__stat-body p {
  color: oklch(0.99 0.005 80 / 0.85);
}

.cea-article .cea-cta--banner,
.cea-article .cea-cta--banner p,
.cea-article .cea-cta--banner strong,
.cea-article .cea-cta--banner a:not(.cea-btn) {
  color: oklch(0.99 0.005 80 / 0.85);
}
.cea-article .cea-cta--banner .cea-cta--banner__headline,
.cea-article .cea-cta--banner h2 {
  color: var(--rms-primary-fg);
}

.cea-article .cea-cta--button-row,
.cea-article .cea-cta--button-row p,
.cea-article .cea-cta--button-row strong {
  color: oklch(0.99 0.005 80 / 0.80);
}
.cea-article .cea-cta--button-row .cea-cta--button-row__headline,
.cea-article .cea-cta--button-row h2 {
  color: var(--rms-primary-fg);
}

.cea-article .cea-closer--next-steps,
.cea-article .cea-closer--next-steps p,
.cea-article .cea-closer--next-steps strong,
.cea-article .cea-closer--next-steps li,
.cea-article .cea-closer--next-steps a:not(.cea-btn) {
  color: oklch(0.99 0.005 80 / 0.90);
}
.cea-article .cea-closer--next-steps .cea-h2,
.cea-article .cea-closer--next-steps h2 {
  color: var(--rms-primary-fg);
}

.cea-article .cea-pullquote,
.cea-article .cea-pullquote p,
.cea-article .cea-pullquote strong {
  color: var(--rms-primary-fg);
}

/* Links inside dark panels — lighter rose, no dark underline */
.cea-article .cea-callout--stat a,
.cea-article .cea-cta--banner a:not(.cea-btn),
.cea-article .cea-cta--button-row a:not(.cea-btn),
.cea-article .cea-closer--next-steps a:not(.cea-btn) {
  color: oklch(0.99 0.005 80 / 0.90);
  text-decoration-color: oklch(0.99 0.005 80 / 0.40);
}


/* ══════════════════════════════════════════════════════════════
   17. MOTION — no translateY transforms per RMS design rules
   ══════════════════════════════════════════════════════════════ */

@keyframes cea-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cea-btn:hover,
.cea-btn--banner:hover,
.cea-btn--next-steps:hover {
  transform: none;
}


/* ══════════════════════════════════════════════════════════════
   18. HORIZONTAL RULES
   ══════════════════════════════════════════════════════════════ */

.cea-article hr {
  border: none;
  height: 1px;
  background: var(--cea-brand-border);
  margin: 3rem 0;
}

