/* ============================================================
   Attachment Base — Main Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --bg:          #f4f5f8;
  --bg-2:        #eef0f4;
  --surface:     #fafbfc;
  --surface-2:   #e8ebf1;

  --ink:         #3d3f48;
  --ink-soft:    #70737f;
  --ink-faint:   #9fa2ad;
  --line:        #dde0e7;
  --line-soft:   #e8eaf0;

  --brand:       #5f78a6;
  --brand-deep:  #445a82;
  --brand-soft:  #dfe5f0;
  --brand-wash:  #f0f3f9;

  /* default accent = brand; overridden per path */
  --accent:      var(--brand);
  --accent-deep: var(--brand-deep);
  --accent-soft: var(--brand-soft);
  --accent-wash: var(--brand-wash);

  /* path-specific accent colors */
  --av-accent:   #5b8a83;
  --ax-accent:   #b98268;

  --serif:       'Newsreader', Georgia, 'Times New Roman', serif;
  --maxw:        1280px;
  --measure:     64ch;
  --radius:      18px;
  --radius-sm:   11px;
  --shadow:      0 1px 2px rgba(60,70,90,.04), 0 12px 34px rgba(60,70,90,.07);
  --shadow-soft: 0 1px 2px rgba(60,70,90,.04), 0 6px 18px rgba(60,70,90,.05);
  --ease:        cubic-bezier(.22,.61,.36,1);
}

/* ---------- Path accent overrides ---------- */
.path-avoidant {
  --accent:      var(--av-accent);
  --accent-deep: color-mix(in oklab, var(--av-accent) 80%, #1a1f28);
  --accent-soft: color-mix(in oklab, var(--av-accent) 16%, white);
  --accent-wash: color-mix(in oklab, var(--av-accent) 7%, var(--bg));
}
.path-anxious {
  --accent:      var(--ax-accent);
  --accent-deep: color-mix(in oklab, var(--ax-accent) 80%, #1a1608);
  --accent-soft: color-mix(in oklab, var(--ax-accent) 18%, white);
  --accent-wash: color-mix(in oklab, var(--ax-accent) 8%, var(--bg));
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0; }
em { font-style: italic; }
blockquote {
  margin: 2em 0;
  padding: 1.2em 1.6em;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Layout helpers ---------- */
.ab-wrap        { width: 100%; max-width: var(--maxw);  margin: 0 auto; padding: 0 40px; }
.ab-wrap-narrow { width: 100%; max-width: 760px;        margin: 0 auto; padding: 0 40px; }
.ab-measure     { max-width: var(--measure); }
.ab-center      { text-align: center; }
.ab-stack > * + * { margin-top: 1.1em; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.16; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem);   line-height: 1.22; }

.ab-eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
}
.ab-lede  { font-size: clamp(1.18rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); font-weight: 300; }
.ab-muted { color: var(--ink-soft); }
.ab-faint { color: var(--ink-faint); }
.ab-serif-italic { font-style: italic; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: .005em;
  padding: .82em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .35s var(--ease), background .3s var(--ease),
              box-shadow .35s var(--ease), border-color .3s var(--ease), color .3s;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--serif);
}
.ab-btn:hover   { transform: translateY(-1.5px); }
.ab-btn:active  { transform: translateY(0); }
.ab-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(60,70,90,.08), 0 8px 22px rgba(95,120,166,.25);
}
.ab-btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 1px 2px rgba(60,70,90,.1), 0 12px 30px rgba(95,120,166,.32);
  color: #fff;
}
.ab-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.ab-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-wash);
}
.ab-btn-soft {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.ab-btn-soft:hover {
  background: color-mix(in oklab, var(--accent-soft) 70%, var(--accent) 14%);
}

/* ---------- Sticky Header ---------- */
/* The WP template-part wrapper must also be sticky — inner sticky alone doesn't escape its parent */
.wp-site-blocks > header,
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header {
  position: relative;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 94%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

/* Brand logo */
.ab-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.ab-brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, color-mix(in oklab, var(--brand) 55%, white), var(--brand) 78%);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(95,120,166,.3);
}
.ab-brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg);
}
.ab-brand-mark::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--brand);
  z-index: 2;
}
.ab-brand-name { font-size: 1.22rem; letter-spacing: -0.015em; white-space: nowrap; }
.ab-brand-name strong { font-weight: 500; }

/* Main nav */
.ab-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  flex-wrap: nowrap;
}
.ab-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 1rem;
  padding: .5em .8em;
  border-radius: 999px;
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.ab-nav a:hover          { color: var(--ink); }
.ab-nav a.current-menu-item { color: var(--brand-deep); }

/* Path pills */
.ab-nav-paths {
  display: flex;
  gap: 6px;
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
  flex-shrink: 0;
}
.ab-nav-pill {
  text-decoration: none;
  font-size: .93rem;
  padding: .44em .9em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all .28s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  white-space: nowrap;
}
.ab-nav-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ab-nav-pill.avoidant .dot { background: var(--av-accent); }
.ab-nav-pill.anxious  .dot { background: var(--ax-accent); }
.ab-nav-pill:hover {
  border-color: rgba(60,70,90,.3);
  color: var(--ink);
  background: var(--surface);
}
.ab-nav-quiz {
  background: var(--brand);
  color: white !important;
  border-color: var(--brand);
}
.ab-nav-quiz:hover {
  background: var(--brand-deep) !important;
  border-color: var(--brand-deep);
  color: white !important;
}

/* Mobile hamburger */
.ab-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.ab-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Mobile menu drawer */
.ab-mobile-menu {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 0 24px;
}
.ab-mobile-menu[hidden] { display: none; }
.ab-mobile-menu a {
  display: flex;
  align-items: center;
  padding: 13px 40px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1.08rem;
  transition: color .2s;
  min-height: 48px;
}
.ab-mobile-menu a:hover { color: var(--ink); }
.ab-mobile-quiz-link { color: var(--brand-deep) !important; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-inner {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col h4 {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 2px 0;
  font-size: .97rem;
  line-height: 1.5;
  transition: color .2s;
}
.footer-col a:hover { color: var(--brand-deep); }
.footer-about {
  max-width: 30ch;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: .92rem;
}

/* ---------- Sections ---------- */
.ab-section       { padding: clamp(64px, 9vw, 120px) 0; }
.ab-section-tight { padding: clamp(44px, 6vw, 76px) 0; }
.ab-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ab-wash   { background: var(--accent-wash); }
.ab-bg-soft { background: var(--bg-2); }

/* ---------- Organic blobs (decorative) ---------- */
.ab-blob {
  position: absolute;
  border-radius: 47% 53% 68% 32% / 42% 51% 49% 58%;
  filter: blur(2px);
  opacity: .5;
  pointer-events: none;
}
.ab-blob-2 { border-radius: 63% 37% 41% 59% / 54% 38% 62% 46%; }

/* ---------- HERO ---------- */
.ab-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 8vw, 96px);
}
.ab-hero .ab-wrap   { position: relative; z-index: 2; }
.ab-hero-blob-a {
  width: 560px; height: 520px;
  background: var(--accent-soft);
  top: -140px; right: -120px;
}
.ab-hero-blob-b {
  width: 380px; height: 360px;
  background: var(--brand-soft);
  bottom: -160px; left: -120px;
  opacity: .4;
}
.ab-hero h1      { max-width: 16ch; }
.ab-hero .ab-lede { max-width: 46ch; margin-top: 1.4em; }
.ab-hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 2.4em;
}

/* ---------- Path hero variants ---------- */
.ab-hero.path-avoidant .ab-hero-blob-a { background: var(--av-soft, #d8eae8); }
.ab-hero.path-anxious  .ab-hero-blob-a { background: var(--ax-soft, #f0e0d5); }

.ab-path-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-deep);
  margin-bottom: 1em;
}
.ab-path-tag .pn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---------- In-page path sub-nav (sticky) ---------- */

/*
  position:sticky breaks when any ancestor has overflow != visible.
  WP sets overflow:hidden on wp-block-group. Force the entire ancestor
  chain on path pages to overflow:visible so sticky can escape.
*/
.path-avoidant.wp-block-group,
.path-anxious.wp-block-group,
.path-avoidant.wp-block-group > *,
.path-anxious.wp-block-group > *,
.path-avoidant .wp-block-group,
.path-anxious .wp-block-group,
.path-avoidant .wp-block-html,
.path-anxious .wp-block-html {
  overflow: visible !important;
}

.ab-subnav {
  position: sticky !important;
  top: 74px;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  transition: opacity .28s ease, transform .28s ease;
}
.ab-subnav-past {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
.ab-subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 58px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ab-subnav-inner::-webkit-scrollbar { display: none; }
.ab-subnav-label {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ab-subnav a {
  color: var(--ink-soft);
  font-size: .98rem;
  padding: .5em .85em;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .25s, background .25s;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.ab-subnav a:hover      { color: var(--ink); background: var(--surface-2); }
.ab-subnav a.active     { color: var(--accent-deep); background: var(--accent-wash); }

/* ---------- Two-column grid ---------- */
.ab-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ab-threecol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------- Path cards (home) ---------- */
.ab-path-card {
  position: relative;
  overflow: hidden;
  padding: 40px 38px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 330px;
}
.ab-path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(95,120,166,.4);
}
.ab-path-card .pc-blob {
  position: absolute;
  width: 240px; height: 230px;
  background: var(--accent-soft);
  top: -90px; right: -70px;
  border-radius: 47% 53% 68% 32% / 42% 51% 49% 58%;
  opacity: .6;
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.ab-path-card:hover .pc-blob { transform: scale(1.12) translate(-6px, 6px); }
.ab-path-card h3 { position: relative; z-index: 2; margin-top: 14px; font-size: 1.85rem; }
.ab-path-card p  { position: relative; z-index: 2; color: var(--ink-soft); margin-top: .7em; font-weight: 300; }
.ab-path-card .pc-foot {
  position: relative; z-index: 2;
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: center; gap: .5em;
  color: var(--accent-deep);
}
.pc-themes { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.ab-chip {
  font-size: .85rem;
  padding: .3em .8em;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  border: 1px solid rgba(95,120,166,.18);
}

/* ---------- Feature row (home How-it-works) ---------- */
.ab-featrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ab-feat .feat-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-wash);
  border: 1px solid rgba(95,120,166,.16);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ab-feat .feat-ic span {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}
.ab-feat h3 { font-size: 1.32rem; margin-bottom: .4em; }
.ab-feat p  { color: var(--ink-soft); font-weight: 300; }

/* ---------- Quiz invite band ---------- */
.ab-invite {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(40px, 5vw, 68px);
  background: var(--brand-wash);
  border: 1px solid var(--brand-soft);
}
.ab-invite .ab-blob { width: 300px; height: 300px; background: var(--brand-soft); opacity: .55; top: -100px; right: -60px; }
.ab-invite-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}

/* ---------- Path section layout ---------- */
.ab-path-section {
  padding: clamp(44px, 6vw, 76px) 0;
  position: relative;
}
.ab-path-section:nth-child(even) { background: var(--bg-2); }

.ab-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1px solid var(--accent-soft);
  color: var(--accent-deep);
  font-size: .78rem;
  font-weight: 500;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ab-bullets { list-style: none; margin: 1em 0; padding: 0; }
.ab-bullets li {
  display: flex; gap: .75em; align-items: flex-start;
  color: var(--ink-soft); font-weight: 300; margin-bottom: .6em;
}
.ab-bullets li::before {
  content: "";
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .6em;
  flex-shrink: 0;
}

.ab-resource-links { margin: 1.4em 0; }
.ab-resource-links a {
  display: flex; align-items: center; gap: .55em;
  padding: .7em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .97rem;
  transition: border-color .25s, color .25s, background .25s;
  margin-bottom: 8px;
  min-height: 48px;
}
.ab-resource-links a:hover {
  border-color: var(--accent-soft);
  color: var(--accent-deep);
  background: var(--accent-wash);
}
.ab-resource-tag {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .2em .55em;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.ab-free-box {
  background: var(--accent-wash);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 20px;
}
.ab-free-box .free-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: .4em;
}

/* ---------- Course grid & cards ---------- */
.ab-course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.ab-course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px 28px;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  text-decoration: none; color: inherit;
}
.ab-course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}
.ab-course-card.featured::before {
  content: "Recommended first step";
  display: block;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px; font-weight: 500;
}
.ab-course-card h3 { font-size: 1.42rem; margin-bottom: .35em; }
.ab-course-card .course-promise { color: var(--ink-soft); font-weight: 300; margin-bottom: 1em; }
.ab-course-card .course-meta {
  font-size: .88rem; color: var(--ink-faint);
  display: flex; align-items: center; gap: .5em;
  margin-bottom: 18px;
}
.ab-course-card .course-curric { margin: 1em 0; list-style: none; padding: 0; }
.ab-course-card .course-curric li {
  font-size: .95rem; color: var(--ink-soft); font-weight: 300;
  padding: .45em 0; border-bottom: 1px solid var(--line);
  display: flex; gap: .6em; align-items: flex-start;
}
.ab-course-card .course-curric li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-soft);
  margin-top: .65em; flex-shrink: 0;
}
.ab-course-card .course-cta { margin-top: auto; padding-top: 22px; }
.ab-cgroup-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px;
}
.ab-cgroup-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Quiz page redesign ---------- */
.ab-quiz-section {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: flex-start;
}
.ab-quiz-blob-left {
  position: absolute;
  width: 640px; height: 600px;
  background: var(--brand-soft);
  top: -160px; left: -280px;
  opacity: .45;
  border-radius: 47% 53% 68% 32% / 42% 51% 49% 58%;
  filter: blur(3px);
  pointer-events: none;
}
.ab-quiz-blob-right {
  position: absolute;
  width: 440px; height: 400px;
  background: var(--brand-wash);
  bottom: -100px; right: -180px;
  opacity: .5;
  border-radius: 63% 37% 41% 59% / 54% 38% 62% 46%;
  filter: blur(2px);
  pointer-events: none;
}

.ab-quiz-intro {
  text-align: center;
  max-width: 540px;
  margin: 0 auto clamp(52px, 8vw, 88px);
}
.ab-quiz-intro .ab-eyebrow { margin-bottom: .75em; }
.ab-quiz-intro h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin: 0 0 .7em;
  max-width: 100%;
}
.ab-quiz-intro .ab-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.ab-quiz-meta {
  margin-top: 1em;
  font-size: .88rem;
  color: var(--ink-faint);
}

.ab-quiz-wrap {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Counter + rule */
.ab-quiz-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 2.2em;
}
.ab-quiz-counter {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.ab-quiz-rule {
  flex: 1;
  height: 1px;
  border: none;
  background: var(--line);
  margin: 0;
}

/* Question */
.ab-quiz-question {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 1.8em;
  font-weight: 400;
}

/* Options */
.ab-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ab-quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1.1em 1.3em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
  font-size: 1.02rem;
  color: var(--ink-soft);
  background: var(--surface);
  text-align: left;
  font-family: var(--serif);
  line-height: 1.48;
  min-height: 52px;
}
.ab-quiz-option:hover {
  border-color: var(--brand);
  background: var(--brand-wash);
  color: var(--ink);
}
.ab-quiz-option.selected {
  border-color: var(--brand);
  background: var(--brand-wash);
  color: var(--brand-deep);
  transform: translateX(4px);
}
.ab-quiz-option:disabled {
  cursor: default;
}
.ab-quiz-option-radio {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  margin-top: 3px;
  transition: border-color .22s, background .22s;
  position: relative;
}
.ab-quiz-option:hover .ab-quiz-option-radio {
  border-color: var(--brand);
}
.ab-quiz-option.selected .ab-quiz-option-radio {
  border-color: var(--brand);
  background: var(--brand);
}
.ab-quiz-option.selected .ab-quiz-option-radio::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
}

.ab-quiz-footnote {
  margin-top: 2em;
  font-size: .88rem;
  color: var(--ink-faint);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* Quiz question transition — fade + lift on answer */
.ab-quiz-header,
.ab-quiz-question,
.ab-quiz-options,
.ab-quiz-footnote {
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.ab-quiz-fading .ab-quiz-header,
.ab-quiz-fading .ab-quiz-question,
.ab-quiz-fading .ab-quiz-options,
.ab-quiz-fading .ab-quiz-footnote {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Quiz result */
.ab-quiz-result {
  padding: 2em 0;
}
.ab-result-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-deep);
  margin-bottom: 1.2em;
}
.ab-result-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 2.4em;
}
.ab-result-ctas a {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ---------- Attachment styles page ---------- */
.ab-styles-qualities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ab-quality-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  display: flex; gap: 14px; align-items: flex-start;
}
.ab-quality-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: .55em;
  flex-shrink: 0;
}

/* ---------- Article body ---------- */
.ab-article-body > * + * { margin-top: 1.4em; }
.ab-inline-course {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--accent-wash);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 2em 0;
}
.ic-kind { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); font-weight: 500; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 1; transform: none; }
.ab-reveal-on [data-reveal].ab-pre { opacity: 0; transform: translateY(16px); }
.ab-reveal-on [data-reveal].ab-in  { animation: abRevealIn .85s var(--ease) forwards; }
@keyframes abRevealIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ── Global WP button reset — pill shape on every variant ── */
.wp-block-button__link,
.wp-element-button {
  border-radius: 999px !important;
  font-family: var(--serif) !important;
}
/* The outer wrapper div should never show a background of its own */
.wp-block-buttons .wp-block-button {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ── WP block overrides for nav ── */
/* Align nav items to the right on desktop (mirrors user's header inline style) */
@media (min-width: 1025px) {
  .site-header .ab-nav { justify-content: flex-end; }
  .site-header .ab-nav .wp-block-navigation__container { justify-content: flex-end; }
}
.ab-nav .wp-block-navigation__container { gap: 0; display: flex; align-items: center; }
.ab-nav .wp-block-navigation-item__content {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 1rem;
  padding: .5em .8em;
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.ab-nav .wp-block-navigation-item__content:hover { color: var(--ink); }
.ab-nav .current-menu-item .wp-block-navigation-item__content { color: var(--brand-deep); }

/* ── WP block button overrides ── */
.wp-block-button.ab-btn-primary .wp-block-button__link,
.wp-block-button.ab-btn-primary .wp-element-button {
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(60,70,90,.08), 0 8px 22px rgba(95,120,166,.25);
  transition: background .3s, box-shadow .3s, transform .35s var(--ease);
}
.wp-block-button.ab-btn-primary .wp-block-button__link:hover {
  background: var(--accent-deep);
  transform: translateY(-1.5px);
}
.wp-block-button.ab-btn-ghost .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .25s, color .25s, background .25s;
}
.wp-block-button.ab-btn-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--accent);
  color: var(--accent-deep) !important;
  background: var(--accent-wash);
}

/* ═══════════════════════════════════════════════
   BLOG — ARCHIVE
   ═══════════════════════════════════════════════ */

.ab-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ab-blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  text-decoration: none;
  color: inherit;
}
.ab-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-soft);
}

.ab-blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.ab-blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-blog-card-img figure { margin: 0; height: 100%; }
.ab-blog-card-img .wp-block-post-featured-image { height: 100%; }

.ab-blog-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }

.ab-post-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ab-post-cats a {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25em .7em;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  text-decoration: none;
  transition: background .2s;
}
.ab-post-cats a:hover { background: var(--brand-soft); }

.ab-blog-card-title {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem) !important;
  line-height: 1.22 !important;
  margin: 0 0 .5em !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}
.ab-blog-card-title a { text-decoration: none; color: inherit; }
.ab-blog-card-title a:hover { color: var(--brand-deep); }

.ab-blog-card-excerpt {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: .97rem;
  line-height: 1.6;
  flex: 1;
}

.ab-blog-card-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: .5em;
}
.ab-post-date { font-size: .85rem; color: var(--ink-faint); }

/* Pagination */
.ab-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 60px;
}
.ab-pagination a, .ab-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  transition: all .25s var(--ease);
}
.ab-pagination a:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-wash); }
.ab-pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ═══════════════════════════════════════════════
   BLOG — SINGLE POST
   ═══════════════════════════════════════════════ */

.ab-post-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 90px) 0 clamp(32px, 4vw, 52px);
}
.ab-post-hero .ab-wrap-narrow { position: relative; z-index: 2; }

.ab-post-crumbs {
  display: flex;
  align-items: center;
  gap: .4em;
  font-size: .83rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ab-post-crumbs a { text-decoration: none; color: var(--ink-faint); transition: color .2s; }
.ab-post-crumbs a:hover { color: var(--brand-deep); }
.ab-sep { color: var(--ink-faint); opacity: .5; }
.ab-crumb-current { color: var(--ink-soft); }

.ab-post-eyebrow {
  margin-bottom: .8em;
  color: var(--brand-deep);
}

.ab-post-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem) !important;
  line-height: 1.1 !important;
  max-width: 20ch;
  margin-bottom: .5em !important;
}

.ab-post-meta {
  display: flex;
  align-items: center;
  gap: .6em;
  color: var(--ink-faint);
  font-size: .9rem;
  margin-top: 1.2em;
  flex-wrap: wrap;
}
.ab-meta-sep { opacity: .5; }
.ab-post-author { font-weight: 500; color: var(--ink-soft); }
.ab-post-readtime { color: var(--ink-faint); }

/* Featured image */
.ab-post-featured-image { padding: 0; }
.ab-post-featured-image .ab-wrap { padding-top: 0; }
.ab-post-featured-image img {
  width: 100%;
  height: clamp(260px, 42vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.ab-post-featured-image figure { margin: 0; }

/* Post body */
.ab-post-body {
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--ink);
}
.ab-post-body > * + * { margin-top: 1.4em; }
.ab-post-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  margin-top: 2.4em;
  margin-bottom: .5em;
  color: var(--ink);
}
.ab-post-body h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin-top: 1.8em;
  margin-bottom: .4em;
}
.ab-post-body p { line-height: 1.78; }
.ab-post-body a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.ab-post-body a:hover { color: var(--brand); }
.ab-post-body ul, .ab-post-body ol { padding-left: 1.4em; }
.ab-post-body li { margin-bottom: .4em; }
.ab-post-body blockquote {
  margin: 2em 0;
  padding: 1.2em 1.6em;
  border-left: 3px solid var(--brand-soft);
  background: var(--brand-wash);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-soft);
}
.ab-post-body figure { margin: 2em 0; }
.ab-post-body figure img { border-radius: var(--radius-sm); }
.ab-post-body figcaption {
  font-size: .82rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: .6em;
}
.ab-post-body > p:first-child { font-size: 1.14rem; line-height: 1.72; }

/* Author box */
.ab-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ab-avatar {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--line);
}
.ab-author-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: .25em; }
.ab-author-name  { font-size: 1.12rem; font-weight: 500; color: var(--ink); margin-bottom: .4em; }
.ab-author-bio   { color: var(--ink-soft); font-size: .95rem; font-weight: 300; line-height: 1.6; margin: 0; }

/* Next steps / article CTA */
.ab-article-cta { gap: 16px; }
.ab-nextstep {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ab-nextstep-free { border-color: var(--brand-soft); background: var(--brand-wash); }
.ab-nextstep.path-avoidant { border-color: var(--av-soft, #d8eae8); background: var(--av-wash, #eef5f4); }
.ns-kind {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
}
.ab-nextstep h4 { font-size: 1.15rem; margin: 0; color: var(--ink); }

/* Post navigation */
.ab-post-nav .ab-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ab-post-nav-prev, .ab-post-nav-next {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .97rem;
  transition: color .25s;
  max-width: 45%;
}
.ab-post-nav-next { text-align: right; }
.ab-post-nav-prev:hover, .ab-post-nav-next:hover { color: var(--brand-deep); }
.wp-block-post-navigation-link a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════════
   ARCHIVE — no-results
   ═══════════════════════════════════════════════ */
.ab-no-results { padding: 80px 0; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — comprehensive 5-breakpoint system
   ═══════════════════════════════════════════════ */

/* ── ≤1280px — wide layout tweaks ── */
@media (max-width: 1280px) {
  :root { --maxw: 1160px; }
}

/* ── ≤1024px — tablet + mobile: hamburger, collapse nav ── */
@media (max-width: 1024px) {
  /* !important needed — WP navigation block has its own responsive CSS */
  .ab-nav,
  .ab-nav .wp-block-navigation,
  .ab-nav .wp-block-navigation__container,
  .ab-nav .wp-block-navigation__responsive-container,
  .ab-nav .wp-block-navigation__responsive-container-open,
  .ab-nav-paths { display: none !important; }
  .ab-menu-toggle { display: flex !important; }

  /* Push logo to far-left, toggle to far-right matching the wrap padding */
  .header-inner { justify-content: space-between; }

  .ab-twocol    { grid-template-columns: 1fr; }
  .ab-threecol  { grid-template-columns: 1fr 1fr; }
  .ab-featrow   { grid-template-columns: 1fr 1fr; }
  .ab-course-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .ab-blog-grid { grid-template-columns: 1fr 1fr; }
  .ab-styles-qualities { grid-template-columns: 1fr 1fr; }

  .ab-invite-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ── ≤768px — small tablet / large mobile ── */
@media (max-width: 768px) {
  .ab-threecol  { grid-template-columns: 1fr; }
  .ab-featrow   { grid-template-columns: 1fr; }
  .ab-course-grid { grid-template-columns: 1fr; }
  .ab-styles-qualities { grid-template-columns: 1fr; }

  .ab-hero { padding: clamp(56px, 10vw, 96px) 0 clamp(40px, 7vw, 72px); }
  .ab-subnav-label { display: none; }
}

/* ── ≤640px — mobile ── */
@media (max-width: 640px) {
  .ab-wrap, .ab-wrap-narrow { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .ab-blog-grid { grid-template-columns: 1fr; }
  .ab-hero-ctas { flex-direction: column; align-items: flex-start; }

  .ab-post-title { font-size: clamp(1.8rem, 7vw, 2.6rem) !important; }
  .ab-author-box { flex-direction: column; }
  .ab-article-cta .wp-block-columns { flex-direction: column; }
  .ab-post-nav-prev, .ab-post-nav-next { max-width: 100%; }
  .ab-post-nav-next { text-align: left; }

  .ab-quiz-question { font-size: clamp(1.35rem, 5.5vw, 1.7rem); }
  .ab-result-ctas { gap: 10px; }
}

/* ── ≤480px — tiny mobile ── */
@media (max-width: 480px) {
  .ab-wrap, .ab-wrap-narrow { padding: 0 16px; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .ab-lede { font-size: clamp(1.05rem, 4.5vw, 1.2rem); }
  .ab-quiz-wrap { padding-left: 0; padding-right: 0; }
  .ab-mobile-menu a { padding: 13px 16px; }
  .header-inner { gap: 16px; }
}
