:root {
  --mapp-bg: #f8fafc;
  --mapp-surface: #ffffff;
  --mapp-surface-soft: #f1f5f9;
  --mapp-text: #0f172a;
  --mapp-muted: #475569;
  --mapp-border: #e2e8f0;
  --mapp-primary: #4f46e5;
  --mapp-primary-dark: #3730a3;
  --mapp-secondary: #7c3aed;
  --mapp-accent: #0f766e;
  --mapp-radius-sm: 8px;
  --mapp-radius-md: 14px;
  --mapp-radius-lg: 24px;
  --mapp-shadow: 0 20px 70px rgba(15, 23, 42, 0.16);
  --mapp-shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.08);
  --mapp-max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mapp-bg);
  color: var(--mapp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--mapp-max-width));
  min-height: 76px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--mapp-text);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand img {
  max-height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav ul,
.site-nav li {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--mapp-muted);
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav .nav-current a {
  color: var(--mapp-text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.75rem 1.08rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.nav-cta,
.button-primary {
  background: var(--mapp-primary);
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.25);
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--mapp-primary-dark);
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.11);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--mapp-border);
  border-radius: 999px;
  background: var(--mapp-surface);
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--mapp-text);
}

.hero {
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 82% 40%, rgba(124, 58, 237, 0.45), transparent 34%),
    linear-gradient(135deg, #312e81 0%, #4f46e5 54%, #7c3aed 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100% - 2rem, var(--mapp-max-width));
  min-height: 620px;
  margin: 0 auto;
  padding: 5rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--mapp-primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.65rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero-lede {
  max-width: 610px;
  margin: 1.45rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.gap-preview {
  color: var(--mapp-text);
}

.gap-preview h2 {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-align: center;
}

.gap-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--mapp-radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--mapp-shadow);
}

.gap-card-head {
  display: grid;
  gap: 0.7rem;
}

.gap-card-head span {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.gap-card-head small {
  color: #64748b;
  font-size: 0.85rem;
}

.gap-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.2rem;
}

.gap-summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 0.85rem;
  background: #facc15;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 900;
}

.gap-summary span {
  color: #64748b;
  font-size: 0.9rem;
}

.gap-scale + .gap-scale {
  margin-top: 1rem;
}

.gap-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.28rem;
  color: #020617;
  font-size: 0.86rem;
  font-weight: 650;
}

.gap-scale-labels strong {
  font-weight: 900;
  text-align: right;
}

.gap-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #d1d5db;
}

.gap-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.gap-fill-self {
  width: 92%;
  background: linear-gradient(90deg, #2563eb, #6366f1);
}

.gap-fill-observer {
  width: 64%;
  background: #8aa0bc;
}

.gap-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  margin-top: 1.55rem;
  color: #9ca3af;
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gap-marker span {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #fde68a;
}

.gap-marker em {
  margin-left: 0.25rem;
  font-style: normal;
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-soft {
  background: #ffffff;
}

.landing-benefits {
  position: relative;
  overflow: hidden;
}

.landing-benefits::before {
  position: absolute;
  top: 5rem;
  right: max(-8rem, -10vw);
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12), transparent 68%);
  content: "";
  pointer-events: none;
}

.trust-strip {
  padding: 1rem 0;
  border-bottom: 1px solid var(--mapp-border);
  background: #ffffff;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-strip-inner div {
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--mapp-radius-md);
  background: #f8fafc;
}

.trust-strip-inner strong,
.trust-strip-inner span {
  display: block;
}

.trust-strip-inner strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.trust-strip-inner span {
  margin-top: 0.22rem;
  color: var(--mapp-muted);
  font-size: 0.86rem;
}

.section-inner {
  width: min(100% - 2rem, var(--mapp-max-width));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

.section-heading h2,
.archive-hero h1,
.article-header h1 {
  margin: 0;
  color: var(--mapp-text);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-heading p:not(.eyebrow),
.archive-hero p,
.article-header p {
  margin: 1rem 0 0;
  color: var(--mapp-muted);
  font-size: 1.08rem;
}

.feature-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.post-card {
  border: 1px solid var(--mapp-border);
  border-radius: var(--mapp-radius-lg);
  background: var(--mapp-surface);
  box-shadow: var(--mapp-shadow-soft);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--mapp-radius-lg);
  background: var(--mapp-surface);
  box-shadow: var(--mapp-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card::before {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  content: "";
  pointer-events: none;
}

.feature-card::after {
  position: absolute;
  top: -56px;
  right: -56px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  content: "";
  opacity: 0.55;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.13);
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card-blue::before {
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.feature-card-blue::after {
  background: #60a5fa;
}

.feature-card-purple::before {
  background: linear-gradient(145deg, rgba(245, 243, 255, 0.98), rgba(255, 255, 255, 0.9));
}

.feature-card-purple::after {
  background: #a78bfa;
}

.feature-card-teal::before {
  background: linear-gradient(145deg, rgba(240, 253, 250, 0.98), rgba(255, 255, 255, 0.9));
}

.feature-card-teal::after {
  background: #5eead4;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  border-radius: 15px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.feature-card-blue .feature-number {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.24);
}

.feature-card-purple .feature-number {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 12px 22px rgba(124, 58, 237, 0.24);
}

.feature-card-teal .feature-number {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.22);
}

.feature-card h3 {
  margin: 0;
  max-width: 14rem;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.feature-card p {
  margin: 0.65rem 0 0;
  color: var(--mapp-muted);
}

.landing-cta-section {
  padding-top: 0;
}

.landing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: var(--mapp-radius-lg);
  background:
    radial-gradient(circle at 88% 22%, rgba(124, 58, 237, 0.34), transparent 28%),
    linear-gradient(135deg, #111827 0%, #312e81 52%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: var(--mapp-shadow);
}

.landing-cta .eyebrow {
  color: #c4b5fd;
}

.landing-cta h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.landing-cta p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.landing-cta-card {
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--mapp-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.landing-cta-card ul {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.landing-cta-card li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.landing-cta-card li::before {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #facc15;
  content: "";
}

.audience-section {
  padding-top: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.audience-section .section-heading-row > p {
  max-width: 360px;
  margin: 0;
  color: var(--mapp-muted);
  font-size: 1rem;
}

.audience-grid,
.value-grid,
.couple-grid,
.research-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.audience-card,
.value-card,
.process-card,
.checklist-card {
  border: 1px solid var(--mapp-border);
  border-radius: var(--mapp-radius-lg);
  background: #ffffff;
  box-shadow: var(--mapp-shadow-soft);
}

.audience-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 1.45rem;
}

.audience-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 10%, rgba(79, 70, 229, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  content: "";
}

.audience-card > * {
  position: relative;
  z-index: 1;
}

.audience-card span {
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--mapp-primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-card h3,
.value-card h2,
.process-card h2,
.checklist-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.audience-card p,
.value-card p,
.process-card p,
.checklist-card p {
  margin: 0.8rem 0 0;
  color: var(--mapp-muted);
}

.audience-card a {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--mapp-primary);
  font-size: 0.92rem;
  font-weight: 900;
}

.disclaimer-section {
  padding-top: 0;
}

.mapp-disclaimer {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid #fde68a;
  border-radius: var(--mapp-radius-md);
  background: #fffbeb;
  color: #78350f;
  font-size: 0.92rem;
}

.mapp-disclaimer strong {
  flex: 0 0 auto;
  font-weight: 900;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: var(--mapp-radius-lg);
  background:
    radial-gradient(circle at 88% 22%, rgba(124, 58, 237, 0.32), transparent 32%),
    linear-gradient(135deg, #111827, #312e81 58%, #4f46e5);
  color: #ffffff;
  box-shadow: var(--mapp-shadow-soft);
}

.article-cta .eyebrow {
  color: #c4b5fd;
}

.article-cta h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.article-cta p {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px solid var(--mapp-border);
  border-radius: var(--mapp-radius-lg);
  background: #ffffff;
  box-shadow: var(--mapp-shadow-soft);
}

.author-box img {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  object-fit: cover;
}

.author-box h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.author-box p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: var(--mapp-muted);
  font-size: 0.95rem;
}

.article > .mapp-disclaimer {
  margin-top: 2rem;
}

.related-posts {
  padding-top: 0;
  background: #ffffff;
}

.custom-landing-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 78% 18%, rgba(79, 70, 229, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

.custom-landing-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.custom-landing-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 1.2rem auto 0;
  color: var(--mapp-muted);
  font-size: 1.18rem;
}

.process-card,
.value-card,
.checklist-card {
  padding: 1.45rem;
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
}

.clinician-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.clinician-layout h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.clinician-layout p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--mapp-muted);
  font-size: 1.08rem;
}

.checklist-card ul {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-card li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--mapp-muted);
}

.checklist-card li::before {
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mapp-primary);
  content: "";
}

.post-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-content {
  padding: 1.25rem;
}

.post-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.65rem;
  color: var(--mapp-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.post-card p {
  margin: 0.7rem 0 0;
  color: var(--mapp-muted);
  font-size: 0.95rem;
}

.text-link {
  color: var(--mapp-primary);
  font-weight: 850;
}

.archive-hero {
  padding: 5rem 0 3rem;
}

.article {
  width: min(100% - 2rem, 780px);
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.article-image {
  width: 100%;
  margin-top: 2rem;
  border-radius: var(--mapp-radius-lg);
  box-shadow: var(--mapp-shadow-soft);
}

.page-feature-image {
  width: min(100% - 2rem, 920px);
  margin: -1.5rem auto 3rem;
}

.article > .page-feature-image {
  width: 100%;
  margin: -0.5rem auto 2.5rem;
}

.page-feature-image img {
  display: block;
  width: 100%;
  height: 360px;
  border-radius: var(--mapp-radius-lg);
  box-shadow: var(--mapp-shadow-soft);
  object-fit: cover;
  object-position: center center;
}

/* Standard article/page images. Keeps mixed source images visually consistent. */
.post-template .article-image,
.page-template .article-image,
.content > img,
.content .kg-image-card:not(.kg-bookmark-card):not(.kg-gallery-card):not(.kg-width-wide):not(.kg-width-full),
.content figure:not(.kg-bookmark-card):not(.kg-gallery-card):not(.kg-width-wide):not(.kg-width-full) {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.post-template .article-image,
.page-template .article-image,
.content > img,
.content .kg-image-card:not(.kg-bookmark-card):not(.kg-gallery-card):not(.kg-width-wide):not(.kg-width-full) img,
.content figure:not(.kg-bookmark-card):not(.kg-gallery-card):not(.kg-width-wide):not(.kg-width-full) img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 360px;
  border-radius: var(--mapp-radius-lg);
  object-fit: cover;
  object-position: center center;
}

.post-template figcaption,
.page-template figcaption,
.content .kg-image-card figcaption,
.content figure:not(.kg-bookmark-card) figcaption {
  display: none;
}

.content {
  color: #1f2937;
  font-size: 1.08rem;
}

.content > * + * {
  margin-top: 1.2em;
}

.content h2,
.content h3 {
  color: var(--mapp-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.content h2 {
  margin-top: 2em;
  font-size: 2rem;
}

.content h3 {
  margin-top: 1.6em;
  font-size: 1.45rem;
}

.content a {
  color: var(--mapp-primary);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--mapp-primary);
  border-radius: 0 var(--mapp-radius-md) var(--mapp-radius-md) 0;
  background: #eef2ff;
  color: #312e81;
  font-weight: 700;
}

.content .pull-quote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border-left: none;
  border-radius: var(--mapp-radius-md);
  background: var(--mapp-surface-soft);
  color: var(--mapp-text);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.01em;
  position: relative;
}
.content .pull-quote::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--mapp-primary);
  border-radius: var(--mapp-radius-md) 0 0 var(--mapp-radius-md);
}
.content .pull-quote p {
  margin: 0;
}

.content img {
  border-radius: var(--mapp-radius-lg);
}

.content .kg-width-wide {
  width: min(100vw - 2rem, 1040px);
  max-width: 1040px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.content .kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.content .kg-width-wide img,
.content .kg-width-full img {
  width: 100%;
  height: auto;
  border-radius: var(--mapp-radius-lg);
  object-fit: cover;
}

.content .kg-width-full img {
  border-radius: 0;
}

.kg-button-card a.kg-btn {
  border-radius: 999px;
  background: var(--mapp-primary);
  color: #ffffff;
  font-weight: 850;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  color: var(--mapp-muted);
  font-weight: 800;
}

.subscribe-section {
  background: var(--mapp-bg);
}

.subscribe-card {
  padding: 2.5rem;
  border: 1px solid var(--mapp-border);
  border-radius: var(--mapp-radius-lg);
  background: var(--mapp-surface);
  box-shadow: var(--mapp-shadow-soft);
  text-align: center;
}

.subscribe-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid var(--mapp-border);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 1.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  width: min(100% - 2rem, var(--mapp-max-width));
  margin: 0 auto;
  padding: 3rem 0;
}

.footer-inner p {
  max-width: 520px;
  margin: 0.65rem 0 0;
  color: var(--mapp-muted);
}

.footer-about small {
  display: block;
  max-width: 520px;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  color: var(--mapp-muted);
  font-weight: 750;
}

.footer-links strong {
  color: var(--mapp-text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--mapp-primary);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    border: 1px solid var(--mapp-border);
    border-radius: var(--mapp-radius-lg);
    background: #ffffff;
    box-shadow: var(--mapp-shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.95rem;
    border-radius: var(--mapp-radius-md);
  }

  .nav-cta {
    margin-top: 0.4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 5.4rem);
  }

  .trust-strip-inner,
  .feature-grid,
  .post-grid,
  .audience-grid,
  .value-grid,
  .couple-grid,
  .research-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .landing-cta,
  .clinician-layout,
  .article-cta {
    grid-template-columns: 1fr;
  }

  .mapp-disclaimer {
    display: grid;
  }

  .section-heading-row,
  .footer-inner {
    display: grid;
  }

  .footer-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .nav-shell,
  .section-inner,
  .hero-inner,
  .article,
  .footer-inner {
    width: min(100% - 1.25rem, var(--mapp-max-width));
  }

  .hero-inner {
    padding: 3.5rem 0;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .footer-link-grid {
    grid-template-columns: 1fr;
  }

  .article-cta,
  .landing-cta {
    padding: 1.35rem;
  }

  .custom-landing-hero {
    text-align: left;
  }

  .gap-preview h2 {
    text-align: left;
  }

  .gap-scale-labels {
    display: grid;
    gap: 0.1rem;
  }

  .gap-scale-labels strong {
    text-align: left;
  }

  .post-template .article-image,
  .page-template .article-image,
  .page-feature-image img,
  .content > img,
  .content .kg-image-card:not(.kg-bookmark-card):not(.kg-gallery-card):not(.kg-width-wide):not(.kg-width-full) img,
  .content figure:not(.kg-bookmark-card):not(.kg-gallery-card):not(.kg-width-wide):not(.kg-width-full) img {
    height: 260px;
  }
}

.articles-topic-lede {
  max-width: 380px;
  margin: 0;
  color: var(--mapp-muted);
}

.articles-page-content {
  padding-top: 0;
}

/* ==================================================
   Articles topic gateway
   Used by custom-articles.hbs so the Articles page
   does not need CSS in Ghost Code Injection.
================================================== */

.articles-topic-section {
  position: relative;
  overflow: hidden;
}

.articles-topic-section::before {
  position: absolute;
  top: 7rem;
  right: max(-10rem, -12vw);
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.11), transparent 68%);
  content: "";
  pointer-events: none;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.topic-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--mapp-radius-lg);
  background: var(--mapp-surface);
  color: var(--mapp-text);
  box-shadow: var(--mapp-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.topic-card::before,
.topic-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.topic-card::before {
  inset: 0;
  opacity: 0.95;
}

.topic-card::after {
  top: -58px;
  right: -58px;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  opacity: 0.5;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.13);
}

.topic-card > * {
  position: relative;
  z-index: 1;
}

.topic-card span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 1rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-card h2 {
  margin: 0;
  font-size: 1.34rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.topic-card p {
  margin: 0.78rem 0 0;
  color: var(--mapp-muted);
  line-height: 1.62;
}

.topic-card-personality::before {
  background: linear-gradient(145deg, rgba(238, 242, 255, 0.98), rgba(255, 255, 255, 0.84));
}
.topic-card-personality::after {
  background: #c7d2fe;
}
.topic-card-personality span {
  color: #4338ca;
}

.topic-card-self::before {
  background: linear-gradient(145deg, rgba(240, 253, 250, 0.98), rgba(255, 255, 255, 0.84));
}
.topic-card-self::after {
  background: #99f6e4;
}
.topic-card-self span {
  color: #0f766e;
}

.topic-card-observer::before {
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.84));
}
.topic-card-observer::after {
  background: #bfdbfe;
}
.topic-card-observer span {
  color: #1d4ed8;
}

.topic-card-couples::before {
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.84));
}
.topic-card-couples::after {
  background: #fed7aa;
}
.topic-card-couples span {
  color: #c2410c;
}

.topic-card-clinicians::before {
  background: linear-gradient(145deg, rgba(245, 243, 255, 0.98), rgba(255, 255, 255, 0.84));
}
.topic-card-clinicians::after {
  background: #ddd6fe;
}
.topic-card-clinicians span {
  color: #6d28d9;
}

.topic-card-research::before {
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.84));
}
.topic-card-research::after {
  background: #cbd5e1;
}
.topic-card-research span {
  color: #334155;
}

.articles-page-content {
  margin-top: 0;
}

@media (max-width: 900px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .topic-card {
    min-height: auto;
  }
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

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