/* Registry-driven interior surfaces. Homepage v3 never loads this asset. */
body.cmg-shell-v2:not(.cmg-template-home) {
  --cmg-stage: 66rem;
  --cmg-reading: 47.5rem;
  margin: 0 !important;
  padding: 0 !important;
  background: #f7faf8;
  color: #0b2233;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif !important;
}

body.cmg-shell-v2:not(.cmg-template-home) :where(.cmg-home-header, .cmg-home-footer) [aria-current]:not(.cmg-home-header__action) {
  color: #235f57 !important;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-home-header__nav a[aria-current] {
  box-shadow: inset 0 -2px 0 #2f7c70;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-home-mobile-menu a[aria-current]:not(.cmg-home-header__action) {
  background: #edf7f3;
}

body.cmg-shell-v2:not(.cmg-template-home) .site-content > .ast-container {
  display: block;
  width: min(calc(100% - 3rem), var(--cmg-stage));
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-flag-primary-tool,
  .cmg-template-archive,
  .cmg-template-search
) { --cmg-stage: 74rem; }

body.cmg-shell-v2:not(.cmg-template-home) :where(#primary, .site-main) {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.cmg-shell-v2:not(.cmg-template-home) :where(.ast-separate-container .ast-article-single, .ast-article-single) {
  width: 100%;
  max-width: none;
  margin: 3.25rem auto 6rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cmg-shell-v2:not(.cmg-template-home) :where(.entry-header, .entry-content) {
  width: 100%;
  max-width: var(--cmg-reading);
  margin-right: auto;
  margin-left: auto;
}

body.cmg-shell-v2:not(.cmg-template-home) .entry-header { margin-bottom: 1.25rem; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-header::before { display: none !important; content: none !important; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-header > .entry-title { margin-bottom: 0; }
body.cmg-shell-v2:not(.cmg-template-home) :where(.entry-title, h1) {
  max-width: 18ch;
  margin: 0 0 1.25rem;
  color: #0b2233;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: clamp(2.875rem, 5vw, 3.625rem) !important;
  font-weight: 750 !important;
  letter-spacing: -0.045em;
  line-height: 1.02 !important;
}

body.cmg-shell-v2:not(.cmg-template-home) .entry-content {
  color: #163447;
  font-size: 1.0625rem !important;
  line-height: 1.72;
}

body.cmg-shell-v2:not(.cmg-template-home) .entry-content h2 {
  margin: 3.5rem 0 1rem;
  padding: 0;
  color: #0b2233;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 2.25rem !important;
  font-weight: 740 !important;
  letter-spacing: -0.035em;
  line-height: 1.12 !important;
}

body.cmg-shell-v2:not(.cmg-template-home) .entry-content h2::before { display: none; content: none; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content h3 {
  margin: 2.25rem 0 0.75rem;
  color: #163447;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 1.4375rem !important;
  font-weight: 730 !important;
  line-height: 1.28 !important;
}

body.cmg-shell-v2:not(.cmg-template-home) .entry-content :where(p, ul, ol, blockquote) { max-width: 100%; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content :where(ul, ol) { padding-left: 1.25rem; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content li { padding-left: 0.125rem; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content pre {
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body.cmg-shell-v2:not(.cmg-template-home) :where(.rank-math-breadcrumb, .ast-breadcrumbs-wrapper) {
  display: flex;
  width: min(calc(100% - 3rem), 74rem);
  min-height: 2.75rem;
  margin: 0 auto;
  padding: 0.65rem 0;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #d7e1de;
  color: #60736e;
  font-size: 0.75rem;
  line-height: 1.35;
}

body.cmg-shell-v2:not(.cmg-template-home) :where(.rank-math-breadcrumb, .ast-breadcrumbs-wrapper) a {
  color: #45645d !important;
  font-weight: 650;
  text-decoration: none !important;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context {
  display: flex;
  min-height: 3.25rem;
  margin: 0 0 1.75rem;
  padding: 0.75rem 1rem;
  align-items: center;
  border: 1px solid #cfe0da;
  border-radius: 0.75rem;
  background: #edf7f3;
  color: #45645d;
  font-size: 0.75rem;
  line-height: 1.35;
  gap: 0.55rem 0.9rem;
  flex-wrap: wrap;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context strong {
  color: #235f57;
  font-size: 0.6875rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context > ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  list-style: none;
  gap: 0.4rem 0.75rem;
  flex-wrap: wrap;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context > ul > li {
  display: inline-flex;
  margin: 0;
  padding: 0;
  align-items: center;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context a { color: #235f57 !important; font-weight: 700; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content > .cmg-surface-context + p {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #163447;
  font-size: 1.125rem;
  line-height: 1.68;
}

/* Gateway surfaces open up without changing stored blocks or links. */
body.cmg-layout-gateway:not(.cmg-template-home) { --cmg-reading: 56.25rem; }
body.cmg-layout-gateway:not(.cmg-template-home) .entry-header { max-width: 56.25rem; text-align: center; }
body.cmg-layout-gateway:not(.cmg-template-home) .entry-title { max-width: 20ch; margin-right: auto; margin-left: auto; }
body.cmg-layout-gateway:not(.cmg-template-home) .entry-content > :is(.wp-block-columns, .cmg-card-grid, .cmg-home-card-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.cmg-layout-gateway:not(.cmg-template-home) .entry-content > :is(.wp-block-columns, .cmg-card-grid, .cmg-home-card-grid) > * {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #d7e1de;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgb(11 34 51 / 5%);
}

/* Directory and data collections get a wider library stage and clear identity. */
body:is(.cmg-layout-directory, .cmg-layout-data):not(.cmg-template-home) { --cmg-reading: 60rem; }
body:is(.cmg-layout-directory, .cmg-layout-data):not(.cmg-template-home) .entry-header {
  box-sizing: border-box;
  max-width: 60rem;
  padding-left: 1.5rem;
  border-left: 5px solid #2f7c70;
}

body.cmg-layout-data:not(.cmg-template-home) .entry-header { border-left-color: #c49a55; }
body:is(.cmg-layout-directory, .cmg-layout-data):not(.cmg-template-home) .entry-title { max-width: 20ch; }

/* Legal pages are deliberately restrained and carry no author/reviewer list. */
body.cmg-layout-legal:not(.cmg-template-home) { --cmg-stage: 55rem; --cmg-reading: 47.5rem; }
body.cmg-layout-legal:not(.cmg-template-home) .entry-title { max-width: 22ch; }
body.cmg-layout-legal:not(.cmg-template-home) .cmg-surface-context--legal {
  display: inline-flex;
  min-height: 2.25rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.75rem;
}

/* Interactive surfaces retain every control and script while gaining a clear tool frame. */
body.cmg-flag-primary-tool:not(.cmg-template-home) { --cmg-reading: 65rem; }
body.cmg-flag-primary-tool:not(.cmg-template-home) .entry-header { max-width: 60rem; }
body.cmg-flag-primary-tool:not(.cmg-template-home) .entry-content > :is(
  .cmg-fee-tool,
  [class*="calculator"],
  [class*="estimator"],
  [class*="scorecard"]
) {
  margin: 2rem 0 3rem;
  padding: 2rem !important;
  border: 1px solid #cfe0da !important;
  border-radius: 1.375rem !important;
  background: linear-gradient(180deg, #fff 0%, #f4faf7 100%) !important;
  box-shadow: 0 18px 48px rgb(11 34 51 / 8%) !important;
}

body.cmg-flag-primary-tool:not(.cmg-template-home) .entry-content :is(
  .cmg-fee-tool,
  [class*="calculator"],
  [class*="estimator"],
  [class*="scorecard"]
) h2 {
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 2.375rem !important;
  line-height: 1.08 !important;
}

body.cmg-flag-interactive:not(.cmg-template-home) .entry-content :where(input, select, textarea) {
  max-width: 100%;
  border-color: #b8cbc5;
}

/* Partner modules remain byte-identical; only their containers receive a surface. */
body.cmg-flag-partners:not(.cmg-template-home) .entry-content :is(.cmg-wa, .cmg-adv, .cmg-ld, .cmg-ms, .cmg-bz, .cmg-partner) {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid #bcd8cf;
  border-radius: 1rem;
  background: #edf7f3;
  box-shadow: 0 10px 26px rgb(11 34 51 / 5%);
}

body.cmg-flag-partners:not(.cmg-template-home) .entry-content :is(
  .cmg-wa-btn,
  .cmg-adv-btn,
  .cmg-ld-btn,
  .cmg-ms-btn,
  .cmg-bz-btn,
  .cmg-kw-btn
) {
  border-color: #2f7c70 !important;
  background: #2f7c70 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgb(35 95 87 / 18%) !important;
  text-decoration: none !important;
}

body.cmg-flag-partners:not(.cmg-template-home) .entry-content :is(
  .cmg-wa-btn,
  .cmg-adv-btn,
  .cmg-ld-btn,
  .cmg-ms-btn,
  .cmg-bz-btn,
  .cmg-kw-btn
):is(:hover, :focus-visible) {
  border-color: #235f57 !important;
  background: #235f57 !important;
  color: #fff !important;
}

/* Canonical table containment, including the legacy mobile wrapper alias. */
body.cmg-flag-table:not(.cmg-template-home) .entry-content :is(
  .cmg-table-wrap,
  .cmg-tablewrap,
  .cmg-mobile-table-scroll,
  .wp-block-table
) {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body.cmg-flag-table:not(.cmg-template-home) .entry-content table {
  width: 100%;
  margin: 1.75rem 0 2.25rem;
  border: 1px solid #d7e1de !important;
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 8px 24px rgb(11 34 51 / 4%);
}

/* Archive and search results. */
body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) .site-main { margin: 3.25rem 0 6rem; }
body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) .page-title { max-width: 20ch; margin-bottom: 2rem; }
.cmg-search-results__header { margin: 0 0 2rem; padding: 1.5rem; border: 1px solid #d7e1de; border-radius: 1rem; background: #fff; }
.cmg-search-results__eyebrow { margin: 0 0 0.35rem; color: #2f7c70; font-size: 0.6875rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.cmg-search-results__title { max-width: 24ch !important; margin: 0 0 1rem !important; color: #0b2233; font-size: clamp(2rem, 4vw, 3rem) !important; line-height: 1.06 !important; }
.cmg-search-results__header .cmg-site-search { margin-bottom: 0; }
body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-row, .cmg-search-results__grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-article-post, .cmg-search-card) {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid #d7e1de;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgb(11 34 51 / 5%);
}

body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-article-post, .cmg-search-card) .entry-title {
  max-width: none;
  font-size: clamp(1.45rem, 3vw, 1.9rem) !important;
  letter-spacing: -0.025em;
  line-height: 1.15 !important;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-article-post, .cmg-search-card) .entry-title a {
  color: #0b2233 !important;
  text-decoration: none !important;
}

body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-article-post, .cmg-search-card) .entry-title a:is(:hover, :focus-visible) {
  color: #235f57 !important;
  text-decoration: underline !important;
}

body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-article-post, .cmg-search-card) .entry-content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.cmg-template-search:not(.cmg-template-home) .cmg-search-card .entry-content > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.cmg-site-search { width: 100%; max-width: 48rem; margin: 1.5rem 0 2rem; }
.cmg-site-search label { display: block; margin-bottom: 0.5rem; color: #163447; font-size: 0.875rem; font-weight: 750; }
.cmg-site-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.625rem; }
.cmg-site-search input { min-width: 0; min-height: 3.25rem; padding: 0 1rem; border: 1px solid #b8cbc5; border-radius: 0.75rem; background: #fff; }
.cmg-site-search button { min-height: 3.25rem; padding: 0.75rem 1.25rem; border: 0; border-radius: 0.75rem; background: #2f7c70; color: #fff; font: 750 0.875rem/1 "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif; }

/* Plugin-owned 404: skip target is the real main element. */
body.cmg-template-404:not(.cmg-template-home) .site-content > .ast-container { --cmg-stage: 55rem; }
body.cmg-template-404:not(.cmg-template-home) .cmg-recovery {
  max-width: none;
  margin: 3.25rem auto 6rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cmg-recovery__panel { padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid #d7e1de; border-radius: 1.25rem; background: #fff; box-shadow: 0 18px 48px rgb(11 34 51 / 7%); }
.cmg-recovery__eyebrow { margin: 0 0 0.75rem; color: #2f7c70; font-size: 0.75rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.cmg-recovery__panel h1 { max-width: 16ch; }
.cmg-recovery__routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.cmg-recovery__routes a { display: flex; min-height: 3.25rem; padding: 0.75rem 1rem; align-items: center; justify-content: center; border: 1px solid #cfe0da; border-radius: 0.75rem; background: #edf7f3; color: #235f57 !important; font-weight: 750; text-align: center; text-decoration: none !important; }

@media (max-width: 900px) {
  body.cmg-shell-v2:not(.cmg-template-home) #apsCards { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 700px) {
  body.cmg-shell-v2:not(.cmg-template-home) { --cmg-stage: calc(100vw - 2rem); --cmg-reading: 100%; }
  body.cmg-shell-v2:not(.cmg-template-home) .site-content > .ast-container { width: calc(100% - 2rem); }
  body.cmg-shell-v2:not(.cmg-template-home) :where(.ast-separate-container .ast-article-single, .ast-article-single) { margin: 1.75rem auto 4rem; }
  body.cmg-shell-v2:not(.cmg-template-home) :where(.entry-title, h1) { max-width: none; margin-bottom: 1rem; font-size: 2.3125rem !important; letter-spacing: -0.04em; line-height: 1.05 !important; }
  body.cmg-shell-v2:not(.cmg-template-home) .entry-content { font-size: 1rem !important; line-height: 1.68; }
  body.cmg-shell-v2:not(.cmg-template-home) .entry-content h2 { margin-top: 2.75rem; font-size: 1.875rem !important; }
  body.cmg-shell-v2:not(.cmg-template-home) .entry-content h3 { font-size: 1.3125rem !important; }
  body.cmg-shell-v2:not(.cmg-template-home) :where(.rank-math-breadcrumb, .ast-breadcrumbs-wrapper) { width: calc(100% - 2rem); min-height: 2.75rem; }
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context { min-height: 0; margin-bottom: 1.25rem; padding: 0.625rem 0.75rem; gap: 0.35rem 0.65rem; }
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context > ul { gap: 0.3rem 0.55rem; }
  body.cmg-shell-v2:not(.cmg-template-home) .entry-content > .cmg-surface-context + p { margin-bottom: 1.5rem; font-size: 1.0625rem; }
  body.cmg-layout-gateway:not(.cmg-template-home) .entry-header { text-align: left; }
  body.cmg-layout-gateway:not(.cmg-template-home) .entry-title { margin-left: 0; }
  body.cmg-layout-gateway:not(.cmg-template-home) .entry-content > :is(.wp-block-columns, .cmg-card-grid, .cmg-home-card-grid),
  body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-row, .cmg-search-results__grid),
  .cmg-recovery__routes { grid-template-columns: 1fr; }
  body:is(.cmg-layout-directory, .cmg-layout-data):not(.cmg-template-home) .entry-header { padding-left: 1rem; border-left-width: 4px; }
  body.cmg-flag-primary-tool:not(.cmg-template-home) .entry-content > :is(.cmg-fee-tool, [class*="calculator"], [class*="estimator"], [class*="scorecard"]) { padding: 1rem !important; border-radius: 1rem !important; }
  body.cmg-flag-primary-tool:not(.cmg-template-home) .entry-content :is(.cmg-fee-tool, [class*="calculator"], [class*="estimator"], [class*="scorecard"]) h2 { font-size: 1.9375rem !important; }
  body.cmg-flag-table:not(.cmg-template-home) .entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.cmg-shell-v2:not(.cmg-template-home) #hourly-estimator .grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.cmg-shell-v2:not(.cmg-template-home) #hourly-estimator .grid > * { min-width: 0 !important; }
  body.cmg-shell-v2:not(.cmg-template-home) #hse_presets > div { grid-template-columns: minmax(0, 1fr) !important; }
  body.cmg-shell-v2:not(.cmg-template-home) #hse_presets fieldset { min-width: 0 !important; }
  body.cmg-shell-v2:not(.cmg-template-home) #hourly-estimator .task {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: start !important;
  }
  body.cmg-shell-v2:not(.cmg-template-home) #hourly-estimator .task > * { min-width: 0 !important; }
  body.cmg-shell-v2:not(.cmg-template-home) #hourly-estimator .task .t-hours { margin-left: 0 !important; }
  body.cmg-shell-v2:not(.cmg-template-home) #apsCards { grid-template-columns: minmax(0, 1fr) !important; }
  body.cmg-shell-v2:not(.cmg-template-home) #aps_tool > div[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cmg-site-search > div { grid-template-columns: 1fr; }
}

@media print {
  body.cmg-shell-v2:not(.cmg-template-home) :where(.cmg-home-trust-bar, .cmg-home-header, .cmg-home-footer, .cmg-surface-context) { display: none !important; }
  body.cmg-shell-v2:not(.cmg-template-home) .site-content > .ast-container { width: 100%; }
  body.cmg-shell-v2:not(.cmg-template-home) :where(.ast-article-single, .site-main) { margin: 0; }
}

/* Advisor-finder reference surface: intentionally isolated to page 2572. */
body.cmg-cohort-find-a-financial-advisor { --cmg-reading: 72rem; }
body.page-id-2572.cmg-cohort-find-a-financial-advisor,
body.page-id-2572.cmg-cohort-find-a-financial-advisor #page,
body.page-id-2572.cmg-cohort-find-a-financial-advisor .site-content { background: #fff; }
body.page-id-2572.cmg-cohort-find-a-financial-advisor .main-header-bar.ast-header-breadcrumb { display: none !important; }
body.page-id-2572.cmg-cohort-find-a-financial-advisor :where(.rank-math-breadcrumb, .ast-breadcrumbs-wrapper) { display: none !important; }
body.page-id-2572.cmg-cohort-find-a-financial-advisor .entry-header { padding-top: 1rem; }
body.cmg-cohort-find-a-financial-advisor .entry-header { max-width: 72rem; text-align: left; }
body.cmg-cohort-find-a-financial-advisor .entry-title { max-width: 17ch; margin-left: 0; }
body.cmg-cohort-find-a-financial-advisor .entry-content { max-width: 72rem; }
body.cmg-cohort-find-a-financial-advisor .cmg-editorial-meta { margin-bottom: 2.25rem; }
body.cmg-cohort-find-a-financial-advisor .cmg-advisor-finder-v2,
body.cmg-cohort-find-a-financial-advisor .cmg-advisor-finder-v2 * { box-sizing: border-box; }
.cmg-advisor-finder-v2 { --af-navy: #0b2233; --af-ink: #163447; --af-green: #2f7c70; --af-line: #d7e1de; --af-mint: #edf7f3; }
.cmg-af-hero { display: grid; margin: 0 0 5rem; align-items: stretch; grid-template-columns: minmax(0, 1.02fr) minmax(22rem, .98fr); gap: 2rem; }
.cmg-af-hero__copy { display: flex; padding: 1.5rem 0; flex-direction: column; justify-content: center; }
.cmg-advisor-finder-v2 .cmg-af-eyebrow { margin: 0 0 .75rem; color: var(--af-green); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.cmg-advisor-finder-v2 .cmg-af-deck { max-width: 24ch; margin: 0 0 1.75rem; color: var(--af-navy); font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 720; letter-spacing: -.025em; line-height: 1.2; }
.cmg-af-proof { display: grid; margin: 0 0 1.5rem !important; padding: 0 !important; list-style: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.cmg-af-proof li { margin: 0 !important; padding: .85rem !important; border: 1px solid var(--af-line); border-radius: .75rem; background: #fff; }
.cmg-af-proof strong,.cmg-af-proof span { display: block; }
.cmg-af-proof strong { color: var(--af-navy); font-size: .83rem; }
.cmg-af-proof span { margin-top: .25rem; color: #60736e; font-size: .72rem; line-height: 1.35; }
.cmg-advisor-finder-v2 .cmg-af-text-link { width: fit-content; color: #235f57 !important; font-weight: 800; text-decoration: none !important; }
.cmg-advisor-finder-v2 .cmg-af-text-link:hover { text-decoration: underline !important; }
body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-advisor-finder-v2 .cmg-af-match { margin: 0; padding: clamp(1.35rem, 3vw, 1.75rem); border: 0; border-radius: 1.35rem; background: linear-gradient(145deg,#0b2233,#123c4b); color: #fff; box-shadow: 0 24px 55px rgb(11 34 51 / 18%); }
.cmg-af-match__eyebrow { margin: 0 0 .6rem !important; color: #8dcdbb; font-size: .7rem !important; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-match h2 { margin: 0 0 .8rem; color: #fff; font-size: clamp(1.85rem, 3.2vw, 2.45rem) !important; }
body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-match > p { margin-bottom: .9rem; color: #e6f1ee; }
.cmg-af-match__facts { display: flex; margin: 0 0 1rem !important; padding: 0 !important; color: #d8ebe6; font-size: .76rem; font-weight: 750; list-style: none; gap: .4rem .9rem; flex-wrap: wrap; }
.cmg-af-match__facts li { margin: 0 !important; padding: 0 !important; }
.cmg-af-match__facts li::before { margin-right: .35rem; color: #8dcdbb; content: "✓"; }
.cmg-af-match .cmg-adv-fine { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: .75rem; background: rgb(255 255 255 / 8%); color: #dceae7; font-size: .78rem; line-height: 1.5; }
.cmg-af-match .cmg-adv-fine p { margin: 0 0 .6rem; color: inherit; }
.cmg-af-match .cmg-adv-fine details { border-top: 1px solid rgb(255 255 255 / 14%); }
.cmg-af-match .cmg-adv-fine summary { padding-top: .65rem; color: #fff; font-weight: 800; cursor: pointer; }
.cmg-af-match .cmg-adv-fine details div { padding-top: .65rem; }
.cmg-af-match .cmg-adv-mount { min-height: 104px; }
body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-match .cmg-adv-btn { width: 100%; min-height: 3.25rem; border-color: #f2c779 !important; border-radius: .7rem; background: #f2c779 !important; color: #0b2233 !important; font-weight: 850; }
body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-match .cmg-adv-btn:hover { border-color: #ffd998 !important; background: #ffd998 !important; }
.cmg-af-match .cmg-adv-fb { margin: .55rem 0 0 !important; color: #c6d9d4 !important; font-size: .72rem !important; text-align: center; }
.cmg-af-match .cmg-adv-mount.is-open { margin: 1rem -2rem -2rem; }
.cmg-af-match .cmg-adv-mount iframe { display: block; width: 100%; height: 780px; border: 0; border-radius: 0 0 1.35rem 1.35rem; background: #fff; }
.cmg-af-match .cmg-adv-load { display: flex; height: 780px; align-items: center; justify-content: center; background: #fff; color: #45645d; }
.cmg-af-section { margin: 0 0 5.5rem; }
.cmg-af-section__head { max-width: 48rem; margin-bottom: 1.75rem; }
body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-section h2 { margin: 0 0 .8rem; }
.cmg-af-section__head > p:last-child { margin-bottom: 0; color: #45645d; font-size: 1.08rem; }
.cmg-af-paths,.cmg-af-steps,.cmg-af-decision { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.cmg-af-path { position: relative; padding: 1.5rem; border: 1px solid var(--af-line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 30px rgb(11 34 51 / 5%); }
.cmg-af-path > span { position: absolute; top: 1.25rem; right: 1.25rem; color: #9ab3ac; font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.cmg-advisor-finder-v2 .cmg-af-path h3 { max-width: 18ch; margin: 0 2rem .55rem 0; color: var(--af-navy); font-size: 1.2rem !important; }
.cmg-af-path p { margin-bottom: 1rem !important; color: #60736e; font-size: .9rem; }
.cmg-af-path ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.cmg-af-path li { margin: .45rem 0 0 !important; padding: 0 !important; }
.cmg-af-fee-grid { display: grid; align-items: start; grid-template-columns: minmax(0,1.35fr) minmax(17rem,.65fr); gap: 1.25rem; }
body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-fees table { margin: 0; }
.cmg-af-tools { padding: 1.35rem; border: 1px solid #bcd8cf; border-radius: 1rem; background: var(--af-mint); }
.cmg-advisor-finder-v2 .cmg-af-tools h3 { margin: 0 0 .8rem; color: var(--af-navy); font-size: 1.15rem !important; }
.cmg-af-tools ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.cmg-af-tools li { display: flex; margin: 0 !important; padding: .55rem 0 !important; justify-content: space-between; border-bottom: 1px solid #cfe0da; gap: .5rem; }
.cmg-af-tools li:last-child { border: 0; }
.cmg-af-steps { margin: 0 !important; padding: 0 !important; list-style: none; }
.cmg-af-steps > li { display: grid; margin: 0 !important; padding: 1.35rem !important; border-top: 3px solid #8dcdbb; border-radius: .75rem; background: #fff; grid-template-columns: 2rem 1fr; gap: .75rem; }
.cmg-af-steps > li > span { color: var(--af-green); font-weight: 850; }
.cmg-advisor-finder-v2 .cmg-af-steps h3 { margin: 0 0 .35rem; font-size: 1.08rem !important; }
.cmg-af-steps p { margin: 0 !important; color: #60736e; font-size: .9rem; }
.cmg-af-questions { padding: clamp(1.5rem,4vw,2.5rem); border-radius: 1.25rem; background: var(--af-navy); color: #e9f2f0; }
body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-questions h2,.cmg-af-questions .cmg-af-eyebrow { color: #fff; }
.cmg-af-questions > ol { display: grid; margin: 0 !important; padding: 0 !important; counter-reset: afq; list-style: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem 1.5rem; }
.cmg-af-questions > ol > li { position: relative; margin: 0 !important; padding: .9rem .9rem .9rem 2.75rem !important; border-top: 1px solid rgb(255 255 255 / 18%); color: #e9f2f0; counter-increment: afq; }
.cmg-af-questions > ol > li::before { position: absolute; left: .25rem; color: #8dcdbb; font-weight: 850; content: counter(afq,decimal-leading-zero); }
.cmg-af-decision article { padding: 1.35rem; border: 1px solid var(--af-line); border-radius: 1rem; background: #fff; }
.cmg-advisor-finder-v2 .cmg-af-decision h3 { margin: 0 0 .7rem; font-size: 1.15rem !important; }
.cmg-af-decision ul { margin-bottom: 0 !important; }
.cmg-af-regions { display: grid; align-items: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.cmg-af-region { border: 1px solid var(--af-line); border-radius: .85rem; background: #fff; }
.cmg-af-region summary { display: flex; padding: 1rem 1.15rem; align-items: center; justify-content: space-between; color: var(--af-navy); font-weight: 800; cursor: pointer; }
.cmg-af-region summary span { color: #60736e; font-size: .72rem; font-weight: 650; }
.cmg-af-region ul { display: grid; margin: 0 !important; padding: 0 1.15rem 1rem !important; border-top: 1px solid #e6eeeb; list-style: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .2rem .8rem; }
.cmg-af-region li { margin: 0 !important; padding: .5rem 0 0 !important; font-size: .82rem; }
.cmg-af-method { display: grid; padding-top: 2rem; border-top: 1px solid var(--af-line); grid-template-columns: minmax(14rem,.7fr) minmax(0,1.3fr); gap: 2rem; }
.cmg-af-method p { color: #60736e; font-size: .9rem; }
.cmg-af-final-cta { display: grid; margin: -2rem 0 5rem; padding: clamp(1.35rem,3vw,2rem); align-items: center; border: 1px solid #bcd8cf; border-radius: 1.1rem; background: var(--af-mint); grid-template-columns: minmax(0,1.35fr) minmax(15rem,.65fr); gap: 1.5rem; }
.cmg-af-final-cta p { margin-bottom: .5rem !important; }
.cmg-advisor-finder-v2 .cmg-af-final-cta__title { max-width: 24ch; color: var(--af-navy); font-size: clamp(1.45rem,2.5vw,1.9rem); font-weight: 850; letter-spacing: -.02em; line-height: 1.15; }
.cmg-af-final-cta__action { display: flex; min-height: 3.2rem; padding: .75rem 1rem; align-items: center; justify-content: center; border: 1px solid var(--af-green); border-radius: .7rem; background: #fff; color: #235f57 !important; font-weight: 850; text-align: center; text-decoration: none !important; }
.cmg-af-final-cta__action:hover { background: #dceee8; }
.cmg-af-final-cta small { display: block; margin-top: .55rem; color: #60736e; font-size: .7rem; line-height: 1.4; text-align: center; }

@media (max-width: 820px) {
  .cmg-af-hero,.cmg-af-fee-grid,.cmg-af-method,.cmg-af-final-cta { grid-template-columns: 1fr; }
  .cmg-af-hero__copy { padding-top: 0; }
  .cmg-advisor-finder-v2 .cmg-af-deck { max-width: 30ch; }
  .cmg-af-match .cmg-adv-mount.is-open { margin-right: -2rem; margin-left: -2rem; }
}
@media (max-width: 600px) {
  body.page-id-2572.cmg-cohort-find-a-financial-advisor #primary { padding-top: 0; }
  body.page-id-2572.cmg-cohort-find-a-financial-advisor #post-2572 { margin-top: 0; }
  body.page-id-2572.cmg-cohort-find-a-financial-advisor .entry-header { margin-bottom: 2px; padding-top: 40px; }
  body.page-id-2572.cmg-cohort-find-a-financial-advisor .entry-title { font-size: 32px !important; line-height: 1.05 !important; }
  body.page-id-2572.cmg-cohort-find-a-financial-advisor .cmg-editorial-meta { margin-bottom: 0; }
  .cmg-af-hero { margin-bottom: 4rem; gap: 1.25rem; }
  .cmg-af-match { order: -1; }
  .cmg-af-hero__copy { order: 2; }
  body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-advisor-finder-v2 .cmg-af-match { padding: 1rem; }
  body.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-match h2 { margin-bottom: .55rem; font-size: 1.65rem !important; line-height: 1.08 !important; }
  .cmg-af-match .cmg-adv-lead,.cmg-af-match .cmg-adv-fb { display: none; }
  .cmg-af-match__facts { margin-bottom: .6rem !important; font-size: .67rem; gap: .2rem .55rem; }
  .cmg-af-match .cmg-adv-fine { margin-bottom: .65rem; padding: .6rem .7rem; font-size: .78125rem; line-height: 1.5; }
  .cmg-af-match .cmg-adv-fine p { margin-bottom: .35rem; }
  .cmg-af-match .cmg-adv-fine summary { padding-top: .4rem; }
  .cmg-af-proof,.cmg-af-paths,.cmg-af-steps,.cmg-af-decision,.cmg-af-questions > ol,.cmg-af-regions { grid-template-columns: 1fr; }
  .cmg-af-proof { gap: .5rem; }
  .cmg-af-proof li { display: grid; grid-template-columns: 4.25rem 1fr; gap: .35rem; }
  .cmg-af-match .cmg-adv-mount.is-open { margin-right: -1.35rem; margin-left: -1.35rem; }
  .cmg-af-match .cmg-adv-mount iframe,.cmg-af-match .cmg-adv-load { height: 860px; }
  .cmg-af-section { margin-bottom: 4rem; }
  .cmg-af-region ul { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  body.page-id-2572.cmg-cohort-find-a-financial-advisor .cmg-af-match__eyebrow { margin-bottom: .35rem !important; }
  body.page-id-2572.cmg-cohort-find-a-financial-advisor .entry-content .cmg-af-match h2 { margin-bottom: .35rem; }
  body.page-id-2572.cmg-cohort-find-a-financial-advisor .cmg-af-match__facts { margin-bottom: .35rem !important; }
  body.page-id-2572.cmg-cohort-find-a-financial-advisor .cmg-af-match .cmg-adv-fine { margin-bottom: .4rem; padding: .4rem .7rem; }
}

/* 0.4.0 product-quality interior system. Every structural rule is registry- or
   template-scoped; the homepage and the bespoke advisor finder remain isolated. */
body.cmg-shell-v2:not(.cmg-template-home) {
  --cmg-surface-accent: #8dcdbb;
  --cmg-surface-label: "Clear Money Guide";
  --cmg-surface-hero-width: 66rem;
  --cmg-surface-reading: 50rem;
  background: #fff;
}

body.cmg-shell-v2:not(.cmg-template-home) :is(#page, .site-content) { background: #fff; }

body.cmg-layout-guide:not(.cmg-template-home) {
  --cmg-surface-label: "Practical money guide";
  --cmg-surface-accent: #8dcdbb;
  --cmg-surface-hero-width: 66rem;
  --cmg-surface-reading: 50rem;
}

body.cmg-family-post:not(.cmg-template-home) {
  --cmg-surface-label: "Clear Money Guide analysis";
  --cmg-surface-accent: #a8dfcf;
}

body.cmg-cohort-table-guide:not(.cmg-template-home) { --cmg-surface-label: "Comparison guide"; }
body.cmg-cohort-series:not(.cmg-template-home) { --cmg-surface-label: "State-by-state guide"; }
body.cmg-cohort-review:not(.cmg-template-home) {
  --cmg-surface-label: "Independent review";
  --cmg-surface-accent: #f2c779;
  --cmg-surface-hero-width: 68rem;
  --cmg-surface-reading: 54rem;
}

body.cmg-layout-gateway:not(.cmg-template-home) {
  --cmg-surface-label: "Decision hub";
  --cmg-surface-accent: #a8dfcf;
  --cmg-surface-hero-width: 74rem;
  --cmg-surface-reading: 60rem;
}

body.cmg-layout-directory:not(.cmg-template-home) {
  --cmg-surface-label: "Local financial advice";
  --cmg-surface-accent: #8dcdbb;
  --cmg-surface-hero-width: 74rem;
  --cmg-surface-reading: 62rem;
}

body.cmg-layout-data:not(.cmg-template-home) {
  --cmg-surface-label: "Original data & research";
  --cmg-surface-accent: #f2c779;
  --cmg-surface-hero-width: 74rem;
  --cmg-surface-reading: 62rem;
}

body.cmg-flag-interactive:not(.cmg-template-home) {
  --cmg-surface-label: "Interactive guide";
  --cmg-surface-hero-width: 70rem;
  --cmg-surface-reading: 60rem;
}

body.cmg-flag-primary-tool:not(.cmg-template-home) {
  --cmg-surface-label: "Interactive decision tool";
  --cmg-surface-accent: #7fd2bc;
  --cmg-surface-hero-width: 74rem;
  --cmg-surface-reading: 65rem;
}

body.cmg-layout-legal:not(.cmg-template-home) {
  --cmg-surface-label: "Trust & transparency";
  --cmg-surface-accent: #2f7c70;
  --cmg-surface-hero-width: 56rem;
  --cmg-surface-reading: 49rem;
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) :where(.ast-separate-container .ast-article-single, .ast-article-single) {
  margin: 1.25rem auto 6rem;
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) .entry-header {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--cmg-surface-hero-width);
  min-height: clamp(13rem, 18vw, 17rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 88% 18%, rgb(127 210 188 / 22%) 0 11rem, transparent 11.1rem),
    linear-gradient(145deg, #0b2233 0%, #123c4b 100%);
  box-shadow: 0 24px 62px rgb(11 34 51 / 15%);
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) .entry-header::before {
  position: relative;
  z-index: 2;
  display: inline-flex !important;
  margin: 0 0 0.75rem;
  align-items: center;
  color: var(--cmg-surface-accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  content: var(--cmg-surface-label) !important;
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) .entry-header::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgb(255 255 255 / 3%), 0 0 0 7rem rgb(255 255 255 / 2%);
  content: "";
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) .entry-header :where(.entry-title, h1) {
  position: relative;
  z-index: 2;
  max-width: 24ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
  font-weight: 750 !important;
  letter-spacing: -0.052em;
  line-height: 1.04 !important;
  text-wrap: balance;
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) .entry-header .entry-meta {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
  color: #cfe0da;
}

body.cmg-layout-gateway:not(.cmg-template-home):not(.cmg-cohort-find-a-financial-advisor) .entry-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
}

body.cmg-layout-gateway:not(.cmg-template-home):not(.cmg-cohort-find-a-financial-advisor) .entry-title {
  max-width: 15ch;
  margin-right: 0;
  margin-left: 0;
}

body.cmg-layout-data:not(.cmg-template-home) .entry-header {
  border-left: 0;
  background:
    radial-gradient(circle at 88% 18%, rgb(242 199 121 / 21%) 0 11rem, transparent 11.1rem),
    linear-gradient(145deg, #102a3a 0%, #173f4b 100%);
}

body.cmg-layout-legal:not(.cmg-template-home) .entry-header {
  min-height: clamp(13rem, 24vw, 18rem);
  border-color: #cfe0da;
  background:
    radial-gradient(circle at 88% 18%, rgb(47 124 112 / 9%) 0 9rem, transparent 9.1rem),
    linear-gradient(145deg, #f4faf7 0%, #e8f3ef 100%);
  box-shadow: 0 18px 48px rgb(11 34 51 / 8%);
}

body.cmg-layout-legal:not(.cmg-template-home) .entry-header :where(.entry-title, h1) { color: #0b2233; }
body.cmg-layout-legal:not(.cmg-template-home) .entry-header::after { border-color: rgb(47 124 112 / 12%); box-shadow: 0 0 0 3.5rem rgb(47 124 112 / 3%), 0 0 0 7rem rgb(47 124 112 / 2%); }

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) .entry-content {
  box-sizing: border-box;
  max-width: var(--cmg-surface-reading);
  padding-top: 1rem;
}

body.cmg-shell-v2:not(.cmg-template-home):not(.cmg-cohort-find-a-financial-advisor) .entry-content > :is(
  .cmg-surface-context,
  .cmg-policy-intro
):first-child {
  position: relative;
  z-index: 3;
  margin-top: -0.5rem;
}

body.cmg-shell-v2:not(.cmg-template-home):not(.cmg-cohort-find-a-financial-advisor) .cmg-surface-context {
  min-height: 4.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #cfe0da;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 34px rgb(11 34 51 / 8%);
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context__mark {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 2.2rem;
  border-radius: 50%;
  background: #dff1eb;
  color: #235f57;
  font-size: 1rem;
  font-weight: 900;
  place-items: center;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context__mark::before { content: "✓"; }

body.cmg-shell-v2:not(.cmg-template-home) .cmg-policy-intro {
  display: grid;
  padding: 1.15rem 1.25rem;
  border: 1px solid #cfe0da;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 34px rgb(11 34 51 / 8%);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-policy-intro__mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: #dff1eb;
  color: #235f57;
  font-size: 1.25rem;
  font-weight: 850;
  place-items: center;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-policy-intro strong { display: block; color: #0b2233; font-size: 0.95rem; }
body.cmg-shell-v2:not(.cmg-template-home) .cmg-policy-intro p { margin: 0.2rem 0 0; color: #60736e; font-size: 0.82rem; line-height: 1.45; }

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-decision {
  margin: 0 0 2.25rem;
  padding: 1.25rem;
  border: 1px solid #d7e1de;
  border-radius: 1.15rem;
  background: #f7faf8;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-decision__label {
  margin: 0 0 0.8rem !important;
  color: #235f57 !important;
  font-size: 0.7rem !important;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-surface-decision ol {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: cmg-surface-step;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-surface-decision li {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0.9rem 0.9rem 0.9rem 2.8rem;
  border: 1px solid #d7e1de;
  border-radius: 0.85rem;
  background: #fff;
  counter-increment: cmg-surface-step;
}

body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-surface-decision li::before {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #dff1eb;
  color: #235f57;
  font-size: 0.7rem;
  font-weight: 850;
  content: counter(cmg-surface-step);
  place-items: center;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-decision strong { display: block; color: #0b2233; font-size: 0.84rem; line-height: 1.25; }
body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-decision span { display: block; margin-top: 0.3rem; color: #60736e; font-size: 0.74rem; line-height: 1.4; }

body.cmg-cohort-review:not(.cmg-template-home) .cmg-surface-decision {
  border-color: #ead7ae;
  background: #fffaf0;
}

body.cmg-layout-data:not(.cmg-template-home) .cmg-surface-decision {
  border-color: #e7d5b4;
  background: #fffaf2;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-on-page-nav {
  display: grid;
  margin: 0 0 2.5rem;
  padding: 1.25rem;
  border: 1px solid #cfe0da;
  border-radius: 1.15rem;
  background: #edf7f3;
  grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1.65fr);
  gap: 1.25rem;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-on-page-nav__title { margin: 0; color: #0b2233; font-size: 1rem; font-weight: 850; }
body.cmg-shell-v2:not(.cmg-template-home) .cmg-on-page-nav__hint { display: block; margin-top: 0.25rem; color: #60736e; font-size: 0.74rem; line-height: 1.4; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-on-page-nav ol { display: grid; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1rem; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-on-page-nav li { min-width: 0; margin: 0; padding: 0; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-on-page-nav a { display: block; padding: 0.3rem 0; color: #235f57 !important; font-size: 0.82rem; font-weight: 750; line-height: 1.35; text-decoration: none !important; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-on-page-nav a::before { margin-right: 0.4rem; color: #78a99b; content: "↳"; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-on-page-nav a:hover { text-decoration: underline !important; }

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) .entry-content > h2 {
  position: relative;
  margin-top: 4.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid #dfe8e5;
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor) .entry-content > h2::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: block;
  width: 3.5rem;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: var(--cmg-surface-accent);
  content: "";
}

/* Gateways convert existing top-level block groups into a deliberate card deck. */
body.cmg-layout-gateway:not(.cmg-template-home):not(.cmg-cohort-find-a-financial-advisor) .entry-content > :is(
  .wp-block-columns,
  .cmg-card-grid,
  .cmg-home-card-grid
) > * {
  position: relative;
  overflow: hidden;
  border-top: 4px solid #8dcdbb;
  box-shadow: 0 14px 34px rgb(11 34 51 / 7%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.cmg-layout-gateway:not(.cmg-template-home):not(.cmg-cohort-find-a-financial-advisor) .entry-content > :is(
  .wp-block-columns,
  .cmg-card-grid,
  .cmg-home-card-grid
) > *:hover {
  box-shadow: 0 20px 44px rgb(11 34 51 / 11%);
  transform: translateY(-2px);
}

/* Location libraries and data products receive distinct, scannable navigation. */
body.cmg-layout-directory:not(.cmg-template-home) .entry-content > h2:first-of-type + ul > li {
  border-top: 3px solid #8dcdbb;
  box-shadow: 0 10px 24px rgb(11 34 51 / 6%);
}

body.cmg-layout-directory:not(.cmg-template-home) .entry-content > h2:first-of-type + ul a { display: block; text-decoration: none !important; }
body.cmg-layout-directory:not(.cmg-template-home) .entry-content > h2:first-of-type + ul a:hover { text-decoration: underline !important; }

body.cmg-layout-data:not(.cmg-template-home) .entry-content > :is(.wp-block-columns, .cmg-card-grid) > * {
  padding: 1.25rem;
  border: 1px solid #e5d5b7;
  border-top: 4px solid #d3a557;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgb(11 34 51 / 6%);
}

body:is(.cmg-layout-directory, .cmg-layout-data):not(.cmg-template-home) .entry-content table th {
  border-bottom-color: #234b57 !important;
  background: #123c4b;
  color: #fff;
}

body:is(.cmg-layout-directory, .cmg-layout-data):not(.cmg-template-home) .entry-content table caption {
  padding: 0 0 0.65rem;
  color: #45645d;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

/* Exact tool cohorts gain a product frame without changing controls, IDs or scripts. */
body.cmg-flag-primary-tool:not(.cmg-template-home) .entry-content > :is(
  .cmg-fee-tool,
  [class*="calculator"],
  [class*="estimator"],
  [class*="scorecard"]
) {
  position: relative;
  border-top: 5px solid #2f7c70 !important;
  background: linear-gradient(180deg, #fff 0%, #edf7f3 100%) !important;
  box-shadow: 0 24px 58px rgb(11 34 51 / 12%) !important;
}

body.cmg-flag-primary-tool:not(.cmg-template-home) .entry-content fieldset {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #cfe0da;
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 78%);
}

body.cmg-flag-primary-tool:not(.cmg-template-home) .entry-content legend { padding: 0 0.4rem; color: #0b2233; font-weight: 800; }

/* Review and partner surfaces emphasize the decision, disclosure and action rail. */
body.cmg-cohort-review:not(.cmg-template-home) .entry-content > table:first-of-type { border-top: 4px solid #d3a557 !important; }
body.cmg-cohort-review.cmg-flag-partners:not(.cmg-template-home) .entry-content :is(.cmg-wa, .cmg-adv, .cmg-ld, .cmg-ms, .cmg-bz, .cmg-partner) {
  position: relative;
  border: 1px solid #bcd8cf;
  border-top: 5px solid #2f7c70;
  background: linear-gradient(145deg, #f4faf7 0%, #fff 100%);
  box-shadow: 0 16px 38px rgb(11 34 51 / 9%);
}

body.cmg-layout-legal:not(.cmg-template-home) .entry-content > form {
  margin: 2rem 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #cfe0da;
  border-radius: 1.1rem;
  background: #f4faf7;
  box-shadow: 0 12px 30px rgb(11 34 51 / 6%);
}

/* Search, archive and recovery are product surfaces rather than theme leftovers. */
body:is(.cmg-template-archive, .cmg-template-search, .cmg-template-404):not(.cmg-template-home) :is(#page, .site-content) { background: #fff; }

body.cmg-template-archive:not(.cmg-template-home) .page-title,
body.cmg-template-search:not(.cmg-template-home) .cmg-search-results__header,
body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__panel {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 88% 18%, rgb(127 210 188 / 22%) 0 9rem, transparent 9.1rem),
    linear-gradient(145deg, #0b2233 0%, #123c4b 100%);
  color: #e6f1ee;
  box-shadow: 0 24px 60px rgb(11 34 51 / 15%);
}

body.cmg-template-archive:not(.cmg-template-home) .page-title {
  max-width: none;
  margin: 0 0 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 4.25rem) !important;
  line-height: 1.02 !important;
}

body.cmg-template-search:not(.cmg-template-home) .cmg-search-results__header { padding: clamp(1.5rem, 5vw, 3.25rem); }
body.cmg-template-search:not(.cmg-template-home) .cmg-search-results__eyebrow { color: #8dcdbb; }
body.cmg-template-search:not(.cmg-template-home) .cmg-search-results__title { color: #fff; }
body.cmg-template-search:not(.cmg-template-home) .cmg-search-results__header .cmg-site-search label { color: #e6f1ee; }

body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-article-post, .cmg-search-card) {
  border-top: 4px solid #8dcdbb;
  box-shadow: 0 14px 34px rgb(11 34 51 / 7%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-article-post, .cmg-search-card):hover {
  box-shadow: 0 20px 44px rgb(11 34 51 / 11%);
  transform: translateY(-2px);
}

body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__panel { padding: clamp(2rem, 6vw, 4.5rem); }
body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__eyebrow { color: #8dcdbb; }
body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__panel h1 { color: #fff; font-size: clamp(3rem, 6vw, 4.75rem) !important; }
body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__panel > p:not(.cmg-recovery__eyebrow) { max-width: 42rem; color: #d2e2de; }
body.cmg-template-404:not(.cmg-template-home) .cmg-site-search label { color: #e6f1ee; }
body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__routes a { border-color: rgb(255 255 255 / 18%); background: rgb(255 255 255 / 8%); color: #fff !important; }
body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__routes a:hover { border-color: #8dcdbb; background: rgb(141 205 187 / 16%); }

@media (max-width: 700px) {
  body.cmg-shell-v2:not(.cmg-template-home):is(
    .cmg-layout-guide,
    .cmg-layout-gateway,
    .cmg-layout-directory,
    .cmg-layout-data,
    .cmg-layout-legal
  ):not(.cmg-cohort-find-a-financial-advisor) :where(.ast-separate-container .ast-article-single, .ast-article-single) { margin-top: 0.75rem; }

  body.cmg-shell-v2:not(.cmg-template-home):is(
    .cmg-layout-guide,
    .cmg-layout-gateway,
    .cmg-layout-directory,
    .cmg-layout-data,
    .cmg-layout-legal
  ):not(.cmg-cohort-find-a-financial-advisor) .entry-header {
    min-height: 11.5rem;
    padding: 1rem;
    border-radius: 1.15rem;
  }

  body.cmg-shell-v2:not(.cmg-template-home):is(
    .cmg-layout-guide,
    .cmg-layout-gateway,
    .cmg-layout-directory,
    .cmg-layout-data,
    .cmg-layout-legal
  ):not(.cmg-cohort-find-a-financial-advisor) .entry-header :where(.entry-title, h1) {
    font-size: clamp(1.82rem, 8.5vw, 2.45rem) !important;
    letter-spacing: -0.045em;
    line-height: 1.04 !important;
  }

  body.cmg-shell-v2:not(.cmg-template-home):is(
    .cmg-layout-guide,
    .cmg-layout-gateway,
    .cmg-layout-directory,
    .cmg-layout-data,
    .cmg-layout-legal
  ):not(.cmg-cohort-find-a-financial-advisor) .entry-header::before { margin-bottom: 0.5rem; }

  body.cmg-layout-legal:not(.cmg-template-home) .entry-header { min-height: 11rem; }
  body.cmg-shell-v2:not(.cmg-template-home):not(.cmg-cohort-find-a-financial-advisor) .entry-content > :is(.cmg-surface-context, .cmg-policy-intro):first-child { margin-top: -0.25rem; }
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-context__mark { display: none; }
  body.cmg-shell-v2:not(.cmg-template-home):not(.cmg-cohort-find-a-financial-advisor) .cmg-surface-context { min-height: 0; padding: 0.75rem; border-radius: 0.8rem; }
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-policy-intro { padding: 0.9rem; border-radius: 0.8rem; }
  body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-surface-decision ol,
  body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-on-page-nav ol { grid-template-columns: 1fr; }
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-on-page-nav { grid-template-columns: 1fr; gap: 0.75rem; }
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-surface-decision { padding: 0.9rem; }
  body.cmg-shell-v2:not(.cmg-template-home):is(.cmg-layout-guide, .cmg-layout-gateway, .cmg-layout-directory, .cmg-layout-data, .cmg-layout-legal):not(.cmg-cohort-find-a-financial-advisor) .entry-content > h2 { margin-top: 3.5rem; }
  body.cmg-template-archive:not(.cmg-template-home) .page-title,
  body.cmg-template-search:not(.cmg-template-home) .cmg-search-results__header,
  body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__panel { border-radius: 1.1rem; }
  body.cmg-template-404:not(.cmg-template-home) .cmg-recovery__panel h1 { font-size: 2.65rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.cmg-layout-gateway:not(.cmg-template-home) .entry-content > :is(.wp-block-columns, .cmg-card-grid, .cmg-home-card-grid) > *,
  body:is(.cmg-template-archive, .cmg-template-search):not(.cmg-template-home) :is(.ast-article-post, .cmg-search-card) { transition: none; }
}

/* 0.4.0 reviewed archetype layer. These selectors consume the exact v2
   per-object contract; the original rendered content remains an untouched
   sibling subtree after the module. */
body.cmg-archetype-gateway { --cmg-surface-label: "Decision hub"; --cmg-surface-reading: 62rem; }
body.cmg-archetype-location { --cmg-surface-label: "Local money guide"; --cmg-surface-reading: 62rem; }
body.cmg-archetype-data { --cmg-surface-label: "Data product"; --cmg-surface-accent: #f2c779; --cmg-surface-reading: 62rem; }
body.cmg-archetype-atlas { --cmg-surface-label: "State comparison"; --cmg-surface-accent: #f2c779; --cmg-surface-reading: 60rem; }
body.cmg-archetype-interactive { --cmg-surface-label: "Interactive decision tool"; --cmg-surface-accent: #7fd2bc; --cmg-surface-reading: 62rem; }
body.cmg-archetype-review { --cmg-surface-label: "Independent review"; --cmg-surface-accent: #f2c779; --cmg-surface-reading: 56rem; }
body.cmg-archetype-series { --cmg-surface-label: "State-by-state guide"; --cmg-surface-reading: 54rem; }
body.cmg-archetype-longform { --cmg-surface-label: "Evidence-first guide"; }
body.cmg-archetype-legal { --cmg-surface-label: "Trust & transparency"; }
body.cmg-archetype-about { --cmg-surface-label: "About Clear Money Guide"; --cmg-surface-hero-width: 66rem; --cmg-surface-reading: 54rem; }
body.cmg-archetype-contact { --cmg-surface-label: "Contact & support"; --cmg-surface-hero-width: 62rem; --cmg-surface-reading: 54rem; }

body.cmg-archetype-about:not(.cmg-template-home) .entry-header {
  min-height: clamp(13rem, 20vw, 17rem);
  border-color: rgb(255 255 255 / 10%);
  background:
    radial-gradient(circle at 88% 18%, rgb(127 210 188 / 22%) 0 10rem, transparent 10.1rem),
    linear-gradient(145deg, #0b2233 0%, #123c4b 100%);
}
body.cmg-archetype-about:not(.cmg-template-home) .entry-header :where(.entry-title, h1) { color: #fff; }
body.cmg-archetype-contact:not(.cmg-template-home) .entry-header {
  min-height: clamp(13rem, 24vw, 18rem);
  border-color: #cfe0da;
  background:
    radial-gradient(circle at 88% 18%, rgb(47 124 112 / 10%) 0 9rem, transparent 9.1rem),
    linear-gradient(145deg, #f4faf7 0%, #e8f3ef 100%);
}
body.cmg-archetype-contact:not(.cmg-template-home) .entry-header :where(.entry-title, h1) { color: #0b2233; }

body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  margin: 0.75rem 0 2.25rem;
  padding: clamp(1.05rem, 2.4vw, 1.4rem);
  overflow: hidden;
  border: 1px solid #cfe0da;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #f4faf7 0%, #fff 72%);
  box-shadow: 0 16px 42px rgb(11 34 51 / 9%);
}

body:is(.cmg-archetype-legal,.cmg-archetype-about):not(.cmg-template-home) .entry-content > .cmg-product-module:first-child {
  margin-top: -0.5rem;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__header { max-width: 46rem; }
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-product-module__eyebrow {
  margin: 0 0 0.45rem;
  color: #2f7c70;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-product-module h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #0b2233;
  font-size: clamp(1.55rem, 3vw, 2.1rem) !important;
  letter-spacing: -0.025em;
  line-height: 1.08 !important;
}
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-product-module__header > p:last-child {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  color: #526b64;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__grid,
body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__outline {
  display: grid;
  margin-top: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__outline { grid-template-columns: repeat(2, minmax(0, 1fr)); }

body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-product-module__item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 4.5rem;
  padding: 0.78rem 2.4rem 0.78rem 0.9rem;
  border: 1px solid #d7e1de;
  border-radius: 0.9rem;
  background: #fff;
  color: #0b2233 !important;
  box-shadow: 0 8px 20px rgb(11 34 51 / 5%);
  flex-direction: column;
  justify-content: center;
  text-decoration: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
body.cmg-shell-v2:not(.cmg-template-home) .entry-content a.cmg-product-module__item:hover {
  border-color: #8dcdbb;
  box-shadow: 0 12px 28px rgb(11 34 51 / 9%);
  transform: translateY(-2px);
}
body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__item strong { font-size: 0.87rem; line-height: 1.3; }
body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__item span { margin-top: 0.3rem; color: #60736e; font-size: 0.74rem; line-height: 1.45; }
body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__item i { position: absolute; top: 50%; right: 0.9rem; color: #2f7c70; font-style: normal; transform: translateY(-50%); }
body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__item--label { min-height: 3.25rem; padding-right: 1rem; border-left: 3px solid #8dcdbb; box-shadow: none; }

body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-product-module__action {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.72rem 1rem;
  border-radius: 0.7rem;
  background: #2f7c70;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 800;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
}
body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-product-module__action:hover { background: #235f57; }

body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-product-module__table-note {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #d7e1de;
  color: #60736e;
  font-size: 0.74rem;
  line-height: 1.45;
}
body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__table-note span { margin-right: 0.35rem; color: #2f7c70; font-weight: 900; }

body.cmg-archetype-gateway:not(.cmg-template-home) .cmg-product-module {
  border-color: #a9d4c8;
  background: linear-gradient(145deg, #eaf7f2 0%, #fff 75%);
}
body.cmg-archetype-data:not(.cmg-template-home) .cmg-product-module,
body.cmg-archetype-atlas:not(.cmg-template-home) .cmg-product-module,
body.cmg-archetype-review:not(.cmg-template-home) .cmg-product-module {
  border-color: #ead7ae;
  background: linear-gradient(145deg, #fff8e9 0%, #fff 74%);
}
body.cmg-archetype-review:not(.cmg-template-home) .cmg-product-module__disclosure {
  display: flex;
  margin: calc(-1 * clamp(1.2rem, 3vw, 1.8rem)) calc(-1 * clamp(1.2rem, 3vw, 1.8rem)) 1.35rem;
  padding: 0.75rem clamp(1.2rem, 3vw, 1.8rem);
  border-bottom: 1px solid #ead7ae;
  background: #fff3d8;
  color: #5d4a24;
  font-size: 0.74rem;
  line-height: 1.45;
  align-items: baseline;
  gap: 0.55rem;
}
body.cmg-archetype-review:not(.cmg-template-home) .cmg-product-module__disclosure a { color: #235f57 !important; font-weight: 800; }

body.cmg-view-variant-tool-first:not(.cmg-template-home) .cmg-product-module {
  border-color: #9ccfc0;
  border-top: 5px solid #2f7c70;
  background: linear-gradient(145deg,#e8f6f1 0%,#fff 72%);
}
body.cmg-view-variant-tool-first:not(.cmg-template-home) .cmg-product-module__action { padding: 0.82rem 1.15rem; box-shadow: 0 8px 22px rgb(47 124 112 / 20%); }
body.cmg-archetype-interactive:not(.cmg-template-home) .entry-content [id] { scroll-margin-top: 7rem; }
body.cmg-archetype-interactive:not(.cmg-template-home) .cmg-anchor-target { display: block; width: 0; height: 0; scroll-margin-top: 7rem; }
body.cmg-shell-v2:not(.cmg-template-home) :is(.cmg-product-module--guide-summary,.cmg-product-module--mixed-summary) .cmg-product-module__item--label {
  border-left-color: #2f7c70;
  background: rgb(255 255 255 / 76%);
}
body.cmg-view-variant-tool-first:not(.cmg-template-home) .entry-content > :is([id*="calculator"],[id*="estimator"],[id*="scorecard"],[id$="-tool"],[class*="calculator"],[class*="estimator"]) {
  scroll-margin-top: 7rem;
  border-top: 5px solid #2f7c70 !important;
  box-shadow: 0 22px 54px rgb(11 34 51 / 11%) !important;
}
body.cmg-view-variant-article-with-utility:not(.cmg-template-home) .cmg-product-module {
  border-left: 5px solid #8dcdbb;
  background: #f7faf8;
  box-shadow: 0 12px 30px rgb(11 34 51 / 7%);
}

body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module + p:first-of-type {
  padding: 1.2rem 1.35rem;
  border-left: 4px solid #2f7c70;
  border-radius: 0 0.8rem 0.8rem 0;
  background: #f4faf7;
  color: #193d45;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Contact is an intentional CSS-only member because its shortcode emits
   request-time IDs/tokens. The existing form subtree remains untouched. */
body.cmg-archetype-contact:not(.cmg-template-home) .entry-content :is(.wpforms-container, form) {
  box-sizing: border-box;
  max-width: 48rem;
  margin: 1.5rem auto 3rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid #cfe0da;
  border-top: 5px solid #2f7c70;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 18px 44px rgb(11 34 51 / 9%);
}
body.cmg-archetype-contact:not(.cmg-template-home) .entry-content .wpforms-container form { margin: 0; padding: 0; border: 0; box-shadow: none; }

/* ID 22131 is a request-volatile, CSS-only SureForms surface. Contain its
   generated description without depending on the volatile numeric form ID. */
body.page-id-22131.cmg-structural-module-css-only:not(.cmg-template-home) .entry-content :is([class*="srfm-form-container"], form) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
body.page-id-22131.cmg-structural-module-css-only:not(.cmg-template-home) .entry-content [id^="srfm-description-"] {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 0.4.1: the module itself is the rendered-hash gate. Once that exact module
   exists, the long Astra/Rank Math trail is redundant with the labeled product
   surface and can leave layout without changing its DOM, schema or stored SEO
   data. The approved home/finder and volatile CSS-only pages never match. */
body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor):has(
  .entry-content > .cmg-product-module[data-cmg-rendered-module="0.4.0"]
) .main-header-bar.ast-header-breadcrumb {
  display: none !important;
}

/* Astra's post row can contain an empty “By” value. Keep its real category
   link as a compact topic chip while the adjacent CMG context card carries the
   complete published-by/editorial/disclosure context. */
body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor):has(
  .entry-content > .cmg-product-module[data-cmg-rendered-module="0.4.0"]
) .entry-header .entry-meta {
  display: flex;
  max-width: 100%;
  margin-top: 0.5rem;
  align-items: center;
  color: #cfe0da;
  font-size: 0;
  line-height: 1;
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor):has(
  .entry-content > .cmg-product-module[data-cmg-rendered-module="0.4.0"]
) .entry-header .entry-meta .ast-terms-link {
  display: inline-flex;
  min-width: 0;
  padding: 0.22rem 0.5rem;
  align-items: center;
  border: 1px solid rgb(207 224 218 / 35%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: #e5f2ee;
  font-size: 0.65rem;
  font-weight: 750;
  line-height: 1.15;
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor):has(
  .entry-content > .cmg-product-module[data-cmg-rendered-module="0.4.0"]
) .entry-header .entry-meta .ast-terms-link::before {
  margin-right: 0.35rem;
  color: #9ed8c8;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  content: "Topic";
}

body.cmg-shell-v2:not(.cmg-template-home):is(
  .cmg-layout-guide,
  .cmg-layout-gateway,
  .cmg-layout-directory,
  .cmg-layout-data,
  .cmg-layout-legal
):not(.cmg-cohort-find-a-financial-advisor):has(
  .entry-content > .cmg-product-module[data-cmg-rendered-module="0.4.0"]
) .entry-header .entry-meta .ast-terms-link a {
  overflow: hidden;
  color: inherit !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hash-gated Page 2567 archive. */
body.cmg-archetype-blog-index:not(.cmg-template-home) :is(#page,.site-content) { background: #fff; }
.cmg-blog-index { width: min(74rem, calc(100% - 2rem)); margin: 2.25rem auto 6rem; }
.cmg-blog-index__hero {
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: 1.6rem;
  background: radial-gradient(circle at 88% 18%, rgb(127 210 188 / 22%) 0 11rem, transparent 11.1rem), linear-gradient(145deg,#0b2233,#123c4b);
  color: #d8e8e3;
  box-shadow: 0 24px 62px rgb(11 34 51 / 15%);
}
.cmg-blog-index__eyebrow { margin: 0 0 1rem; color: #8dcdbb; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
body.cmg-archetype-blog-index:not(.cmg-template-home) .cmg-blog-index__hero h1 { max-width: 13ch; margin: 0; color: #fff !important; font-size: clamp(3rem,6vw,4.75rem) !important; letter-spacing: -0.052em; line-height: 1.02 !important; }
.cmg-blog-index__hero > p:last-of-type { max-width: 43rem; margin: 1.2rem 0 0; color: #cfe0da; font-size: 1.05rem; line-height: 1.65; }
.cmg-blog-index__routes { display: flex; margin-top: 1.5rem; flex-wrap: wrap; gap: 0.55rem; }
.cmg-blog-index__routes a { padding: 0.62rem 0.85rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px; background: rgb(255 255 255 / 7%); color: #fff !important; font-size: 0.76rem; font-weight: 750; text-decoration: none !important; }
.cmg-blog-index__library { margin-top: 4rem; }
.cmg-blog-index__section-heading > p { margin: 0 0 0.35rem; color: #2f7c70; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.cmg-blog-index__section-heading h2 { margin: 0 0 1.5rem; color: #0b2233; font-size: clamp(2rem,4vw,3rem); letter-spacing: -0.035em; }
.cmg-blog-index__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.cmg-blog-card { display: flex; min-width: 0; min-height: 18rem; padding: 1.35rem; border: 1px solid #d7e1de; border-top: 4px solid #8dcdbb; border-radius: 1rem; background: #fff; box-shadow: 0 12px 30px rgb(11 34 51 / 7%); flex-direction: column; }
.cmg-blog-card__meta { margin: 0 0 0.75rem; color: #60736e; font-size: 0.7rem; font-weight: 750; }
.cmg-blog-card h3 { margin: 0; color: #0b2233; font-size: 1.2rem; line-height: 1.25; }
.cmg-blog-card h3 a { color: inherit !important; text-decoration: none !important; }
.cmg-blog-card__excerpt { margin-top: 0.8rem; color: #526b64; font-size: 0.84rem; line-height: 1.55; }
.cmg-blog-card__excerpt p { margin: 0; }
.cmg-blog-card__link { margin-top: auto; padding-top: 1rem; color: #235f57 !important; font-size: 0.8rem; font-weight: 800; text-decoration: none !important; }
.cmg-blog-index__pagination { margin-top: 2rem; }
.cmg-blog-index__pagination .page-numbers { display: flex; margin: 0; padding: 0; list-style: none; gap: 0.4rem; }
.cmg-blog-index__pagination a,.cmg-blog-index__pagination span { display: grid; min-width: 2.5rem; height: 2.5rem; padding: 0 0.5rem; border: 1px solid #cfe0da; border-radius: 0.6rem; color: #235f57 !important; place-items: center; text-decoration: none !important; }

.cmg-archive { width: min(74rem, calc(100% - 2rem)); margin: 2.25rem auto 6rem; }
.cmg-archive__hero { padding: clamp(2rem,6vw,5rem); overflow: hidden; border-radius: 1.6rem; background: radial-gradient(circle at 88% 18%,rgb(127 210 188 / 22%) 0 11rem,transparent 11.1rem),linear-gradient(145deg,#0b2233,#123c4b); color: #d8e8e3; box-shadow: 0 24px 62px rgb(11 34 51 / 15%); }
.cmg-archive__eyebrow { margin: 0 0 1rem; color: #8dcdbb; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
body.cmg-template-archive:not(.cmg-template-home) .cmg-archive__hero h1 { max-width: 15ch; margin: 0; color: #fff !important; font-size: clamp(3rem,6vw,4.75rem) !important; letter-spacing: -0.052em; line-height: 1.02 !important; }
.cmg-archive__hero > p,.cmg-archive__description { max-width: 43rem; margin: 1.2rem 0 0; color: #cfe0da; font-size: 1rem; line-height: 1.65; }
.cmg-archive__description p { margin: 0; }
.cmg-archive__library { margin-top: 3rem; }
.cmg-archive__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.cmg-archive-card { display: flex; min-width: 0; min-height: 18rem; padding: 1.35rem; border: 1px solid #d7e1de; border-top: 4px solid #8dcdbb; border-radius: 1rem; background: #fff; box-shadow: 0 12px 30px rgb(11 34 51 / 7%); flex-direction: column; }
.cmg-archive-card__meta { margin: 0 0 0.75rem; color: #60736e; font-size: 0.7rem; font-weight: 750; }
.cmg-archive-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.cmg-archive-card h2 a { color: #0b2233 !important; text-decoration: none !important; }
.cmg-archive-card__excerpt { margin-top: 0.8rem; color: #526b64; font-size: 0.84rem; line-height: 1.55; }
.cmg-archive-card__excerpt p { margin: 0; }
.cmg-archive-card__link { margin-top: auto; padding-top: 1rem; color: #235f57 !important; font-size: 0.8rem; font-weight: 800; text-decoration: none !important; }
.cmg-archive .navigation.pagination { margin-top: 2rem; }

@media (max-width: 700px) {
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module { margin-top: 0.65rem; padding: 0.9rem; border-radius: 1rem; }
  body:is(.cmg-archetype-legal,.cmg-archetype-about):not(.cmg-template-home) .entry-content > .cmg-product-module:first-child { margin-top: -0.25rem; }
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__grid,
  body.cmg-shell-v2:not(.cmg-template-home) .cmg-product-module__outline { grid-template-columns: 1fr; }
  body.cmg-shell-v2:not(.cmg-template-home) .entry-content .cmg-product-module__item { min-height: 0; }
  body.cmg-archetype-review:not(.cmg-template-home) .cmg-product-module__disclosure {
    display: grid;
    margin: -0.9rem -0.9rem 0.8rem;
    padding: 0.55rem 0.9rem;
    gap: 0.15rem;
  }
  body.cmg-archetype-review:not(.cmg-template-home) .cmg-product-module__outline { margin-top: 0.6rem; }
  body.cmg-archetype-review:not(.cmg-template-home) .entry-content .cmg-product-module__item { min-height: 0; padding-block: 0.45rem; }
  .cmg-blog-index { width: min(100% - 1rem,74rem); margin-top: 1rem; }
  .cmg-blog-index__hero { padding: 1.5rem; border-radius: 1.15rem; }
  body.cmg-archetype-blog-index:not(.cmg-template-home) .cmg-blog-index__hero h1 { font-size: clamp(2.45rem,12vw,3.35rem) !important; }
  .cmg-blog-index__grid { grid-template-columns: 1fr; }
  .cmg-archive { width: min(100% - 1rem,74rem); margin-top: 1rem; }
  .cmg-archive__hero { padding: 1.5rem; border-radius: 1.15rem; }
  body.cmg-template-archive:not(.cmg-template-home) .cmg-archive__hero h1 { font-size: clamp(2.45rem,12vw,3.35rem) !important; }
  .cmg-archive__grid { grid-template-columns: 1fr; }
}
