/* ═══════════════════════════════════════════════════════════════
   YOU ON TOP — Main Stylesheet
   Brand (locked per the 2026-09-28 V1+ Claude Code Build Spec, which
   supersedes the 2026-09-27 COLOR_HEX_AUTHORITY doc's #8A5CF6 lock):
          Electric Iris #5B30FF · Brilliant Periwinkle #706CFF · Cognitive Glow Gold #FFB703
          Renewal Green #20C55E · Executive Graphite #0F132B · Soft Cloud #F2F4FF
          YOU signature gradient: #5B30FF → #706CFF → #20C55E → #FFB703 (YOU only; onTOP is solid Executive Graphite)
   Type:  Manrope ExtraBold (logo) · Plus Jakarta Sans (headings) · Atkinson Hyperlegible (body)
          -- pending sitewide migration to Montserrat/Clash Display Bold per the Build Spec
═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Fixed brand colors (same on every page) ── */
  --iris:          #5B30FF;
  --iris-hover:    #706CFF;
  --iris-soft:     #9B85FF;
  --iris-tint:     #F2F4FF;
  --periwinkle:    #706CFF;
  --gold:          #FFB703;
  --gold-deep:     #B97C00;
  --green-brand:   #20C55E;
  --cloud:         #F2F4FF;
  --graphite:      #0F132B;
  --teal:          #20C55E;
  --bg:            #0F132B;
  --card:          #1B2145;
  --slate:         #2C3363;
  --aurora-text:   #F5F7FA;
  --aurora-muted:  #C7C9E8;
  --pueblo-tan:    #E6C88F;

  /* ── Page accent ramp (pages override these per pillar) ── */
  --green-deep:    #0F132B;
  --green-mid:     #5B30FF;
  --green-soft:    #706CFF;
  --green-pale:    #9B85FF;
  --green-tint:    #F2F4FF;
  --amber:         #9C6900;
  --amber-light:   #FFF3D6;
  --cream:         #FAFCFF;
  --beige:         #F2F4FF;
  --text-dark:     #0F132B;
  --text-mid:      #6B5CA5;
  --text-light:    #6B5CA5;
  --white:         #ffffff;
  --radius:        10px;
  --radius-lg:     18px;
  --shadow:        0 2px 14px rgba(91, 48, 255,.10);
  --shadow-md:     0 6px 30px rgba(91, 48, 255,.16);
  --transition:    .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* Visible keyboard focus indicator, sitewide. AA per WCAG 2.4.7. */
:focus-visible {
  outline: 3px solid var(--iris);
  outline-offset: 2px;
}

/* Users who have asked their OS for less motion get none. Everyone else is
   byte-for-byte unchanged. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link — first focusable element on every page. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  background: var(--white);
  color: var(--graphite);
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

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

body {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

em { color: var(--green-mid); font-style: italic; }

a { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-deep); }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--iris);
  color: var(--white);
  border-color: var(--iris);
  box-shadow: 0 4px 18px rgba(91, 48, 255,.28);
  /* White-on-#5B30FF is 4.25:1 at the base .btn size (below 4.5:1 AA for
     normal text). Bumping to true bold at >=18.66px qualifies as WCAG
     "large text" (3:1 threshold), which 4.25:1 clears, without touching
     the locked hex. Does not affect .btn-primary.btn-sm (font-size there
     is set later in the cascade by .btn-sm). */
  font-weight: 700;
  font-size: 1.2rem;
}
.btn-primary:hover {
  background: #6E4AC5;
  border-color: #6E4AC5;
  color: var(--white);
  box-shadow: 0 8px 28px rgba(91, 48, 255,.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--gold);
  color: var(--graphite);
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(255,183,3,.3);
}
.btn-secondary:hover {
  background: #EDA702;
  border-color: #EDA702;
  color: var(--graphite);
  box-shadow: 0 8px 28px rgba(255,183,3,.42);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--iris);
  border-color: var(--iris);
}
.btn-outline:hover {
  background: var(--green-tint);
  box-shadow: 0 0 16px rgba(91, 48, 255,.15);
}

.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── HEADER ─────────────────────────────────────────────────── */
/* Anchor jumps (/exercise#bone-strength etc.): keep the target section
   clear of the sticky 68px header */
[id] { scroll-margin-top: 84px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #E6E4F7;
  box-shadow: 0 2px 16px rgba(15,19,43,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ── PRIMARY WORDMARK: YOUonTOP® — per "YOU on TOP V1+ Brand Guidelines
   Board.png" (V1+/, 2026-09-18) — the current controlling visual asset.
   The stacked "U on TOP" graphic is a SECONDARY compact mark only (favicon/
   decorative use) — it must not stand in for the primary written brand. ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark .wm-you,
.wordmark .wm-on,
.wordmark .wm-top {
  background-size: 100% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* YOU signature gradient — locked, applies to "YOU" only (V1+ color authority, 2026-09-27) */
.wordmark .wm-you { background-image: linear-gradient(90deg, #5B30FF 0%, #706CFF 35%, #20C55E 68%, #FFB703 100%); }
/* onTOP is solid Charcoal — never gradient */
.wordmark .wm-on  { background-image: none; -webkit-text-fill-color: var(--graphite); color: var(--graphite); font-weight: 700; }
.wordmark .wm-top { background-image: none; -webkit-text-fill-color: var(--graphite); color: var(--graphite); }
.wordmark .wm-reg {
  font-size: .45em;
  font-weight: 700;
  vertical-align: super;
  margin-left: 1px;
  color: var(--periwinkle);
}
.wordmark--inline { display: inline-flex; align-items: baseline; font-size: 1.55rem; }
.wordmark--stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  font-size: 1.9rem;
}
.wordmark--stacked .wm-you { font-size: .5em; letter-spacing: .08em; }
.wordmark--stacked .wm-on  { font-size: .42em; text-transform: lowercase; }
.wordmark--stacked .wm-top { font-size: 1em; }
.wordmark--stacked .wm-reg { font-size: .35em; }
.footer-byline { font-size: 0.72rem; color: rgba(255,255,255,.78); font-weight: 400; margin-top: 2px; }
.footer-tagline-line { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: rgba(255,255,255,.85); text-align: center; margin-bottom: 4px; }
@keyframes iris-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}
.hero-tagline { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0.8rem 0 0.2rem;
  color: var(--text-mid);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-mid);
}
.main-nav a:hover { color: var(--iris); }
.nav-cta {
  background: var(--iris) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .88rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(91, 48, 255,.3);
}
.nav-cta:hover {
  box-shadow: 0 6px 24px rgba(91, 48, 255,.45) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--graphite);
  border-radius: 999px;
  font-family: var(--font-ui, inherit);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  color: var(--graphite);
  padding: 10px 18px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

/* ── DROPDOWN NAV ───────────────────────────────────────────── */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
/* Now a <button>, not an <a> -- reset default browser button chrome and
   match .main-nav a's look exactly, so it's visually identical to the
   direct-destination nav links beside it. */
.nav-parent {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
}
.nav-parent:hover { color: var(--iris); }
.nav-chevron {
  font-size: .65rem;
  opacity: .6;
  transition: transform var(--transition);
  display: inline-block;
}
.nav-item:hover .nav-chevron,
.nav-item.open .nav-chevron,
.nav-parent[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  /* Always in DOM — opacity hides it, no gap to cross */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate);
  min-width: 230px;
  padding: 8px 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Delay the *hide* by .2s so a diagonal mouse move toward the menu
     doesn't close it before you can click ("disappears before I can click"). */
  transition: opacity .18s ease .2s, transform .18s ease .2s, visibility 0s linear .38s;
  transform: translateX(-50%) translateY(6px);
}
/* Invisible bridge so moving from the label into the menu never crosses a dead gap */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--slate);
}
/* Show on hover, .open class (set by JS), OR keyboard focus within the item */
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;  /* show immediately; only hiding is delayed */
  transition-property: opacity, transform, visibility;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--aurora-muted);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: rgba(112,108,255,.16);
  color: var(--aurora-text);
  border-left-color: var(--periwinkle);
  padding-left: 22px;
}

/* Wide 2-column dropdown for long lists */
.nav-dropdown-wide {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
  gap: 2px;
}
.nav-dropdown-wide a { border-radius: 6px; border-left: none; }
.nav-dropdown-wide a:hover { padding-left: 18px; }

/* ── MOBILE NAV DRAWER ──────────────────────────────────────────
   Flat, five locked items, no nested accordions. Sits BELOW the sticky
   header rather than covering it (site-header is z-index:100, sticky) --
   the header, its logo, and the toggle button stay visible and clickable
   the whole time the drawer is open; the toggle's own label swaps
   Menu/Close, so there's no separate close control to go stale/duplicate
   the header's logo. Only reachable via the mobile hamburger (nav-toggle
   is display:none above 820px), so this stays hidden on desktop
   regardless of the .open class. */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--white);
  overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-title {
  color: var(--graphite);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin: 28px auto 4px;
  padding: 0 24px;
}
.mobile-drawer-links {
  max-width: 440px;
  margin: 16px auto 0;
  padding: 0 24px 32px;
}
.mobile-drawer-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--beige);
  min-height: 44px;
}
.mobile-drawer-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--graphite);
}
.mobile-drawer-desc {
  font-weight: 400;
  font-size: .88rem;
  color: var(--text-mid);
}
@media (min-width: 821px) {
  .mobile-drawer { display: none !important; }
}

/* ── FLASH MESSAGES ─────────────────────────────────────────── */
.flash-bar { padding: 12px 24px; }
.flash {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: .95rem;
  max-width: 700px;
  margin: 0 auto;
}
.flash-success { background: var(--green-tint); border: 1px solid var(--green-pale); color: var(--green-deep); }
.flash-error   { background: #fff3f3; border: 1px solid #ffcdd2; color: #b71c1c; }

/* ── SECTION EYEBROW / HEADER ───────────────────────────────── */
.section-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-sub { color: var(--text-light); font-size: 1.05rem; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #FFFFFF 0%, #F2F4FF 55%, #E9E6FF 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  display: flex;
  align-items: center;
}
.hero .hero-inner { width: 100%; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 78% 0%, rgba(112,108,255,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  gap: 32px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-inner > * { min-width: 0; }
.hero-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  /* Was an infinitely-animating 4-color gradient (#12B5CB/#60A5FA/#706CFF/
     #FB7185 -- none in the locked palette, each failing contrast on its own,
     2.47:1-2.69:1 on white). Raw --iris only clears 4.25:1 at this size,
     still short of 4.5:1 AA -- using --text-mid (5.68:1), the same
     already-accessible violet token used for body copy elsewhere. No
     animation, so this also resolves the WCAG 2.2.2 gap (auto-updating
     content >5s needs a pause control, which this never had). */
  color: var(--text-mid);
}
/* Hero headline only — larger than the sitewide h1, per the approved brand
   spec's Hero H1 target (64-80px desktop / 36-48px mobile). Other pages'
   h1 elements are untouched. */
.hero-text h1 {
  /* Clash Display Bold is locked for hero headlines but isn't a free/Google
     font; Space Grotesk is the closest free lookalike (geometric, bold,
     squared counters) until Clash Display is licensed and self-hosted. */
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.25rem, 6vw, 5rem);
  margin-bottom: 20px;
  color: var(--graphite);
}
.hero-text h1 .hero-accent { color: var(--iris); }
.hero-sub {
  font-size: 1.3rem;
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero-badge {
  background: var(--white);
  border: 1.5px solid #DDD9FF;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: 0 2px 12px rgba(91, 48, 255,.08);
}
/* ── TOP FRAMEWORK (under hero) ──────────────────────────────── */
.top-framework {
  background: var(--white);
  border-bottom: 1px solid #E6E4F7;
  padding: 56px 0 48px;
}
.top-framework-head {
  text-align: center;
  margin-bottom: 32px;
}
.top-framework-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iris);
  margin-bottom: 8px;
}
.top-framework-head h2 {
  font-size: 1.7rem;
  color: var(--graphite);
}
.top-framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 16px;
  padding: 0 24px;
}
.top-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 18px;
  border: 1px solid #E6E4F7;
  border-radius: 14px;
  text-decoration: none;
  transition: background var(--transition);
}
.top-card:hover { background: var(--cloud); }
.top-card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.top-card-icon svg { width: 36px; height: 36px; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.top-card-t .top-card-icon svg { stroke: var(--iris); }
.top-card-o .top-card-icon svg { stroke: var(--green-brand); }
.top-card-p .top-card-icon svg { stroke: var(--gold); }
.top-card-letter {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--iris);
}
.top-card h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--graphite);
}
.top-card p {
  font-size: .86rem;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 220px;
}
.top-foundation {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.top-foundation-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border: 1px solid var(--periwinkle);
  background: var(--cloud);
  border-radius: 14px;
  padding: 22px 26px;
  text-decoration: none;
  transition: background var(--transition);
}
.top-foundation-inner:hover { background: #EAE7FF; }
.top-foundation-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.top-foundation-icon svg { width: 36px; height: 36px; stroke: var(--periwinkle); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.top-foundation-text { flex: 1; min-width: 200px; }
.top-foundation-text .top-card-letter { color: var(--periwinkle); }
.top-foundation-text h3 { font-size: .98rem; font-weight: 700; color: var(--graphite); margin-top: 2px; }
.top-foundation-text p { font-size: .86rem; color: var(--text-light); line-height: 1.5; margin-top: 2px; }
.top-foundation-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--periwinkle);
  white-space: nowrap;
}
@media (max-width: 780px) {
  .top-framework-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .top-foundation { padding: 0 20px; }
  .top-foundation-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ── ABOUT ──────────────────────────────────────────────────── */
.section-about {
  padding: 96px 0;
  background: var(--white);
}
.about-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.avatar-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-deep);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--green-soft);
}
.about-image-placeholder { display: flex; justify-content: center; padding-top: 8px; }
.avatar-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-soft);
}
.about-text .section-eyebrow { margin-bottom: 10px; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--text-mid); margin-bottom: 16px; font-size: 1.05rem; }
.about-text .btn { margin-top: 8px; }
.about-bio-long { display: none; }
.about-bio-long.open { display: block; }
.about-expand {
  background: none;
  border: none;
  color: var(--iris);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.about-expand:hover { color: var(--iris-hover); text-decoration: underline; }

/* ── CONDITIONS SECTION ─────────────────────────────────────── */
.section-conditions {
  padding: 80px 0 72px;
  background: linear-gradient(150deg, #0F132B 0%, #1B2145 100%);
}
.conditions-primary-cta {
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 600;
  margin: 4px 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.conditions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  margin-bottom: 28px;
}
.condition-chip {
  border-radius: 50px;
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  transition: all .2s ease;
  cursor: pointer;
  text-decoration: none;
}
.condition-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  filter: brightness(1.1);
}

/* Section heading text on dark background */
.section-conditions .section-header h2 { color: #fff; }
.section-conditions .section-header p   { color: rgba(255,255,255,.80); }

/* ── Brand color cycling across condition chips ── */
.conditions-grid .condition-chip:nth-child(4n+1) { background:rgba(112,108,255,.22) !important; color:#fff !important; border-color:rgba(112,108,255,.65) !important; }
.conditions-grid .condition-chip:nth-child(4n+2) { background:rgba(32,197,94,.18)   !important; color:#fff !important; border-color:rgba(32,197,94,.6)    !important; }
.conditions-grid .condition-chip:nth-child(4n+3) { background:rgba(255,183,3,.18)   !important; color:#fff !important; border-color:rgba(255,183,3,.6)    !important; }
.conditions-grid .condition-chip:nth-child(4n+4) { background:rgba(91, 48, 255,.3)    !important; color:#fff !important; border-color:rgba(167,145,251,.65) !important; }

.conditions-note { color: rgba(255,255,255,.75) !important; }
.conditions-note a { color: var(--gold) !important; }

.chip-icon { font-size: 1rem; line-height: 1; }
.conditions-note {
  text-align: center;
  font-size: .93rem;
  color: var(--text-light);
  margin-top: 8px;
}
.conditions-note a { color: var(--green-mid); font-weight: 600; }
.conditions-note a:hover { color: var(--green-deep); }

/* ── BLOG PREVIEW ───────────────────────────────────────────── */
.section-blog {
  padding: 80px 0;
  background: var(--white);
}
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.blog-preview-card {
  background: #fff;
  border-radius: 14px; overflow: hidden;
  border: 1.5px solid rgba(91, 48, 255,.12);
  box-shadow: 0 2px 14px rgba(91, 48, 255,.07);
  transition: box-shadow .2s, transform .15s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.blog-preview-card:hover {
  box-shadow: 0 10px 36px rgba(91, 48, 255,.18);
  transform: translateY(-4px);
  border-color: rgba(91, 48, 255,.28);
}
.blog-preview-banner {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.blog-preview-body {
  padding: 20px 22px 26px;
  flex: 1; display: flex; flex-direction: column;
}
.blog-preview-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--green-mid);
  margin-bottom: 7px;
}
.blog-preview-body h3 {
  font-size: 1rem; font-weight: 700; color: #1E1B4B;
  line-height: 1.4; margin-bottom: 8px;
}
.blog-preview-body p {
  font-size: .87rem; color: #475569; line-height: 1.6; flex: 1;
}
.blog-read-more {
  display: inline-block; margin-top: 14px;
  font-size: .82rem; font-weight: 700; color: var(--green-mid);
}
.blog-preview-card:hover .blog-read-more { text-decoration: underline; }

/* ── EMAIL CAPTURE ──────────────────────────────────────────── */
.section-email-capture {
  padding: 52px 0;
  background: linear-gradient(150deg, #0F132B 0%, #1B2145 100%);
}
.email-capture-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.email-capture-text {
  flex: 1 1 300px;
}
.email-capture-text h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-wrap: balance;
}
.email-capture-text p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}
.email-capture-form {
  flex: 1 1 320px;
}
.email-capture-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.email-capture-row input[type="email"] {
  flex: 1 1 200px;
  padding: 12px 16px;
  border: 1.5px solid rgba(112,108,255,.5);
  border-radius: 8px;
  background: #ffffff;
  color: #1a1a2e;
  font-size: .95rem;
  transition: border-color .2s;
}
.email-capture-row input[type="email"]::placeholder { color: rgba(0,0,0,.62); }
.email-capture-row input[type="email"]:focus { border-color: var(--green-mid); }
.email-capture-row .btn { white-space: nowrap; }
.email-capture-status {
  margin-top: 8px;
  font-size: .82rem;
  min-height: 1.2em;
}

/* ── TOPICS GRID ────────────────────────────────────────────── */
.section-topics {
  padding: 96px 0;
  background: var(--beige);
  position: relative;
  overflow: hidden;
}
.section-topics .container { position: relative; z-index: 1; }
.topics-network-accent {
  position: absolute;
  top: -40px; right: -70px;
  width: 440px; height: auto;
  opacity: .14;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .topics-network-accent { display: none; }
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.topic-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.topic-card-featured {
  background: var(--green-tint);
  border: 2px solid var(--green-pale);
}
.topic-icon { font-size: 2rem; }
.topic-card h3 { color: var(--green-deep); }
.topic-card p { color: var(--text-mid); font-size: .95rem; }
.topic-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.topic-points li {
  font-size: .88rem;
  color: var(--text-light);
  padding-left: 16px;
  position: relative;
}
.topic-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green-soft);
}
.topic-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: auto;
}
.topic-link:hover { color: var(--green-deep); }

/* ── SIX PILLARS GRID ───────────────────────────────────────── */
.pillars-six-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 48px;
}
.pillar-mini {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--iris);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar-mini:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillars-six-grid .pillar-mini:nth-child(1) { border-top-color: var(--iris); }
.pillars-six-grid .pillar-mini:nth-child(2) { border-top-color: var(--green-brand); }
.pillars-six-grid .pillar-mini:nth-child(3) { border-top-color: var(--gold); }
.pillars-six-grid .pillar-mini:nth-child(4) { border-top-color: var(--periwinkle); }
.pillars-six-grid .pillar-mini:nth-child(5) { border-top-color: var(--iris); }
.pillars-six-grid .pillar-mini:nth-child(6) { border-top-color: var(--green-brand); }
.pillar-mini-icon { font-size: 1.8rem; margin-bottom: 10px; }
.pillar-mini h4 { font-size: .95rem; color: var(--green-deep); margin-bottom: 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.pillar-mini p  { font-size: .87rem; color: var(--text-mid); line-height: 1.55; }

/* ── HOW THEY WORK TOGETHER ─────────────────────────────────── */
.pillars-mechanism {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.mechanism-heading {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mechanism-card { display: flex; flex-direction: column; gap: 8px; }
.mechanism-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--iris), var(--periwinkle));
  color: #fff;
  font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
  box-shadow: 0 0 12px rgba(91, 48, 255,.30);
}
.mechanism-card:nth-child(2) .mechanism-num { background: linear-gradient(135deg, var(--gold-deep), var(--gold)); color: var(--graphite); box-shadow: 0 0 12px rgba(255,183,3,.30); }
.mechanism-card:nth-child(3) .mechanism-num { background: linear-gradient(135deg, #0D8A50, var(--green-brand)); color: #fff; box-shadow: 0 0 12px rgba(32,197,94,.30); }
.mechanism-card h4 { font-size: .95rem; color: var(--green-deep); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.mechanism-card p  { font-size: .88rem; color: var(--text-mid); line-height: 1.6; }

/* ── BENEFITS STRIP ─────────────────────────────────────────── */
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.benefit-card {
  background: linear-gradient(135deg, #1B1550 0%, #2A2170 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--slate);
}
.benefits-strip .benefit-card:nth-child(2) { background: linear-gradient(135deg, #0B4A22 0%, #12692F 100%); }
.benefits-strip .benefit-card:nth-child(3) { background: linear-gradient(135deg, #5C4100 0%, #8A6200 100%); }
.benefit-icon { font-size: 1.8rem; }
.benefit-card h4 { font-size: .95rem; font-weight: 700; color: var(--white); font-family: 'Plus Jakarta Sans', sans-serif; }
.benefit-card p  { font-size: .87rem; color: rgba(255,255,255,.82); line-height: 1.55; }

/* ── RESPONSIVE: PILLARS ────────────────────────────────────── */
@media (max-width: 900px) {
  .pillars-six-grid { grid-template-columns: repeat(2, 1fr); }
  .mechanism-grid   { grid-template-columns: 1fr; gap: 20px; }
  .benefits-strip   { grid-template-columns: 1fr; }
  .pillars-mechanism { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .pillars-six-grid { grid-template-columns: 1fr; }
}

/* ── CHECKLIST PREVIEW ──────────────────────────────────────── */
.section-checklist-preview {
  padding: 96px 0;
  background: #0F132B;
  color: var(--white);
  position: relative;
}
.section-checklist-preview::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(112,108,255,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 60%, rgba(255,183,3,.06) 0%, transparent 55%);
  pointer-events: none;
}
.checklist-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.checklist-text .section-eyebrow { color: var(--amber-light); }
.checklist-text h2 { color: var(--white); margin-bottom: 16px; }
.checklist-text p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 1.05rem; }
.checklist-parts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.checklist-part {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
}
.part-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.part-green .part-dot  { background: #20C55E; }
.part-yellow .part-dot { background: #FFB703; }
.part-red .part-dot    { background: #d9534f; }

.checklist-card-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: .9rem;
}
.mock-header {
  padding: 10px 18px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--white);
}
.mock-green  { background: #159447; }
.mock-yellow { background: #DB9B00; }
.mock-red    { background: #f44336; }
.mock-item {
  padding: 9px 18px;
  border-bottom: 1px solid var(--beige);
  color: var(--text-mid);
}
.mock-item:last-child { border-bottom: none; }

/* ── RESOURCES ──────────────────────────────────────────────── */
.section-resources {
  padding: 96px 0;
  background: var(--cream);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.resource-category {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}
.resource-cat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-pale);
}
.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resource-list li { }
.resource-list a {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.4;
  display: block;
  padding: 4px 0 4px 14px;
  position: relative;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.resource-list a::before {
  content: "→";
  position: absolute;
  left: -2px;
  font-size: .75rem;
  color: var(--green-soft);
}
.resource-list a:hover {
  color: var(--green-deep);
  border-left-color: var(--green-soft);
  padding-left: 18px;
}

/* ── CONTACT ────────────────────────────────────────────────── */
.section-contact {
  padding: 96px 0;
  background: var(--beige);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-text .section-eyebrow { margin-bottom: 10px; }
.contact-text h2 { margin-bottom: 16px; }
.contact-text p { color: var(--text-mid); margin-bottom: 12px; font-size: 1.02rem; }
.contact-assurance {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.assurance-item { font-size: .93rem; color: var(--green-deep); font-weight: 500; }

.contact-email {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--green-pale);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-email-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
}
.contact-email-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-mid);
  word-break: break-all;
}
.contact-email-link:hover { color: var(--green-deep); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-privacy-note {
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin: -8px 0 0;
}
.contact-privacy-note a { color: var(--iris); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.required { color: #c0392b; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 15px;
  border: 1.5px solid #D9D6F5;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-soft); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.88);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--slate);
}
.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  background: var(--white);
  border-radius: 16px;
  padding: 12px 16px;
}
.footer-brand .footer-logo strong { color: var(--white); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; }
.footer-brand .logo-leaf { font-size: 1.3rem; }
.footer-brand p { font-size: .85rem; line-height: 1.6; margin-bottom: 14px; max-width: 260px; }
.footer-email { font-size: 1rem; color: var(--white); word-break: break-all; font-weight: 500; }
.footer-email:hover { color: var(--green-brand); }
.footer-phone { font-size: 1rem; color: var(--white); font-weight: 500; display: block; margin-top: 4px; }
.footer-phone:hover { color: var(--green-brand); }

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-brand);
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.footer-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.65); max-width: 640px; margin: 0 auto 12px; line-height: 1.5; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.65); }
.footer-deployed { font-size: .7rem; color: rgba(255,255,255,.4); margin-top: 4px; }

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

/* ── CHECKLIST PAGE ─────────────────────────────────────────── */
.checklist-page { padding: 64px 0 96px; }
.checklist-page-header { text-align: center; margin-bottom: 48px; }
.checklist-page-header h1 { margin-bottom: 12px; }
.checklist-page-header p { color: var(--text-light); max-width: 600px; margin: 0 auto 24px; }
.print-btn { margin: 0 auto; display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }

.checklist-section {
  max-width: 780px;
  margin: 0 auto 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.checklist-section-header {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.cs-green  .checklist-section-header { background: #159447; }
.cs-yellow .checklist-section-header { background: #DB9B00; }
.cs-red    .checklist-section-header { background: #c62828; }
.cs-teal   .checklist-section-header { background: #0d9488; }
.jr-related-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cloud);
  border: 1px solid var(--beige);
  color: var(--graphite);
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 18px;
  border-radius: 99px;
  text-decoration: none;
}
.jr-related-link:hover { background: var(--beige); }

/* Single-tool checklist pages (via /checklist/<slug>) only ever render the
   requested section(s) as "open" -- everything else is fully hidden, not
   just visually collapsed, so a visitor who wants one tool never scrolls
   past headers for the other eleven. */
.checklist-section.collapsed { display: none !important; }

/* ── Topic pages (cognitive_health.html etc.): accordion sections ──
   Only one topic open at a time by default, so landing on the page is a
   short scroll (hero + 4 headers), not the full page of every topic. */
.topic-section > .container > .topic-section-header {
  cursor: pointer;
  position: relative;
}
.topic-section > .container > .topic-section-header::after {
  content: "\2212";
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.4rem;
  color: var(--text-mid);
}
.topic-section.collapsed > .container > .topic-section-header::after {
  content: "+";
}
.topic-section.collapsed > .container > *:not(.topic-section-header) {
  display: none;
}
.topic-section.collapsed > .container > .topic-section-header {
  margin-bottom: 0;
}
.topic-section.collapsed > .container > .topic-section-header .section-lead {
  display: none;
}
.checklist-items {
  background: var(--white);
  padding: 20px 28px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--beige);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  margin-top: 3px;
  width: 24px;
  height: 24px;
  accent-color: var(--green-mid);
  flex-shrink: 0;
}
.item-content, label.item-content {
  cursor: pointer;
}
.item-content strong {
  display: block;
  font-size: .95rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.item-content span { font-size: .88rem; color: var(--text-light); }

.app-guide-section { max-width: 780px; margin: 56px auto 0; }
.app-guide-section h2 { margin-bottom: 8px; }
.app-guide-section > p { color: var(--text-light); margin-bottom: 32px; }
.app-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.app-card h3 { color: var(--green-deep); margin-bottom: 12px; }
.app-steps { display: flex; flex-direction: column; gap: 10px; }
.app-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-deep);
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.app-step p { font-size: .9rem; color: var(--text-mid); }

/* ═══════════════════════════════════════════════════════════════
   CONDITIONS PAGE
═══════════════════════════════════════════════════════════════ */
.cond-category { padding: 64px 0; }
.cond-category-header { margin-bottom: 40px; }
.cond-category-badge {
  display: inline-block;
  color: #fff;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.cond-block { margin-bottom: 48px; }
.cond-block:last-child { margin-bottom: 0; }
.cond-block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cond-block-header h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 0;
}
.cond-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.strategy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.strategy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.strategy-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.strategy-icon { font-size: 1.6rem; }
.strategy-card h4 { font-size: .93rem; font-weight: 700; color: var(--text-dark); font-family: 'Plus Jakarta Sans', sans-serif; }
.strategy-card p  { font-size: .86rem; color: var(--text-mid); line-height: 1.6; }

@media (max-width: 900px) {
  .strategy-cards { grid-template-columns: repeat(2, 1fr); }
  .cond-block-header h2 { font-size: 1.1rem; }
}
@media (max-width: 640px) {
  .strategy-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   TOPIC PAGES (Gut-Brain, Exercise, Learning)
═══════════════════════════════════════════════════════════════ */

/* ── TOPIC PAGE HERO ────────────────────────────────────────── */
/* Was a dark navy-to-purple gradient (var(--green-deep) -> var(--green-mid)).
   Per Cindy's sitewide reconciliation: this shared class doesn't determine
   information architecture, but every current usage (Learn/blog/privacy --
   pure content pages, not DO-first front doors) calls for the same calm
   Soft-Cloud treatment already established on /start, /conditions,
   /cognitive-health, and /toolkits. Matches the V1+ page-brand rule for
   Learn/Research pages: "predominantly Soft Cloud/white with deep graphite
   text." */
.topic-page-hero {
  background: var(--cloud);
  padding: 64px 0 48px;
  border-bottom: none;
}
.topic-page-hero .breadcrumb,
.tk-hero .breadcrumb {
  font-size: .82rem;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.topic-page-hero .breadcrumb a,
.tk-hero .breadcrumb a { color: var(--iris); }
.topic-page-hero .breadcrumb a:hover,
.tk-hero .breadcrumb a:hover { color: var(--graphite); }
.topic-page-hero h1 { margin-bottom: 14px; color: var(--graphite); }
.topic-page-hero .hero-lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ── SUB-TOPIC NAVIGATION ───────────────────────────────────── */
.subtopic-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.subtopic-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  background: var(--white);
  border: 1.5px solid var(--green-pale);
  color: var(--text-mid);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.subtopic-nav a:hover {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

/* ── TOPIC SECTION ──────────────────────────────────────────── */
.topic-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--slate);
}
.topic-section:nth-child(even) { background: var(--beige); }
.topic-section:nth-child(odd)  { background: var(--cream); }

.topic-section-header {
  margin-bottom: 40px;
}
.topic-section-header .section-eyebrow { margin-bottom: 8px; }
.topic-section-header h2 { margin-bottom: 12px; }
.topic-section-header .section-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 680px;
}

/* ── CALLOUT / INFO BOX ─────────────────────────────────────── */
.callout {
  background: var(--green-tint);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .97rem;
  color: var(--text-mid);
}
.callout strong { color: var(--green-deep); }
.callout-amber {
  background: var(--amber-light);
  border-left-color: var(--amber);
}

/* ── TRACKER TABLE ──────────────────────────────────────────── */
.tracker-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.tracker-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .9rem;
}
.tracker-table th {
  background: var(--green-mid);
  color: var(--white);
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
}
.tracker-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--beige);
  color: var(--text-mid);
}
.tracker-table tr:last-child td { border-bottom: none; }
.tracker-table tr:nth-child(even) td { background: var(--cream); }
.tracker-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
}

/* ── PROTOCOL / EMERGENCY CARDS ─────────────────────────────── */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.protocol-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green-mid);
}
.protocol-card.amber-top { border-top-color: var(--amber); }
.protocol-card h4 {
  font-size: .95rem;
  color: var(--green-deep);
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .8rem;
}
.protocol-card .lie {
  font-size: .9rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--beige);
  border-radius: var(--radius);
}
.protocol-card .override {
  font-size: .93rem;
  color: var(--text-mid);
}
.protocol-card .override strong { color: var(--green-deep); }

/* ── PHASE CARDS ────────────────────────────────────────────── */
.phase-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.phase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}
.phase-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-deep);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phase-body h4 { font-size: 1rem; color: var(--green-deep); margin-bottom: 8px; }
.phase-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.phase-body ul li {
  font-size: .91rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
}
.phase-body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--green-soft);
  font-size: .8rem;
}

/* ── HABIT STACK TABLE ──────────────────────────────────────── */
.habit-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.habit-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .9rem;
}
.habit-table th {
  background: var(--amber);
  color: var(--white);
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
}
.habit-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--beige);
  color: var(--text-mid);
  vertical-align: top;
}
.habit-table tr:last-child td { border-bottom: none; }
.habit-table .trigger-col { font-weight: 500; color: var(--text-dark); }

/* ── SUNDAY RESET PHASES ────────────────────────────────────── */
.reset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.reset-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.reset-card h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.reset-checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reset-checklist li {
  font-size: .9rem;
  color: var(--text-mid);
  padding-left: 22px;
  position: relative;
}
.reset-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--green-soft);
}

/* ── SNACK CARDS ────────────────────────────────────────────── */
.snack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.snack-category h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-pale);
}
.snack-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.snack-list li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: .9rem;
  color: var(--text-mid);
}
.snack-list li strong { display: block; color: var(--text-dark); margin-bottom: 2px; }
.snack-protein {
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-pale);
  padding: 2px 8px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 4px;
}

/* ── WORKOUT SCHEDULE ───────────────────────────────────────── */
.workout-schedule { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.workout-day {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 140px 1fr;
}
.workout-day-label {
  background: var(--green-deep);
  color: var(--white);
  padding: 16px 18px;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
}
.workout-day-label.rest   { background: var(--text-light); }
.workout-day-label.active { background: var(--green-mid); }
.workout-day-label.recover{ background: var(--amber); }
.workout-day-content { padding: 14px 20px; }
.workout-day-content strong { display: block; font-size: .9rem; color: var(--text-dark); margin-bottom: 4px; }
.workout-day-content .exercises { font-size: .85rem; color: var(--text-mid); }
.workout-day-content .ef-tip {
  margin-top: 6px;
  font-size: .8rem;
  color: var(--amber);
  font-style: italic;
}

/* ── STRETCH LIST ───────────────────────────────────────────── */
.stretch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.stretch-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--green-soft);
}
.stretch-card h5 {
  font-size: .9rem;
  color: var(--green-deep);
  margin-bottom: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.stretch-card p { font-size: .85rem; color: var(--text-light); }

/* ── HOBBY CARDS ────────────────────────────────────────────── */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.hobby-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.hobby-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hobby-icon { font-size: 1.8rem; }
.hobby-card h4 { font-size: 1rem; color: var(--green-deep); }
.hobby-card p { font-size: .88rem; color: var(--text-mid); flex: 1; }
.hobby-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--amber);
}
.hobby-link:hover { color: var(--green-deep); }
.hobby-tip {
  font-size: .8rem;
  color: var(--text-light);
  font-style: italic;
  padding: 8px 12px;
  background: var(--beige);
  border-radius: var(--radius);
}

/* ── TIME MANAGEMENT TOOLS ──────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.tool-card h4 { font-size: 1rem; color: var(--green-deep); margin-bottom: 8px; }
.tool-card p { font-size: .9rem; color: var(--text-mid); margin-bottom: 10px; }
.tool-card a { font-size: .85rem; font-weight: 600; color: var(--amber); }

/* ── COGNITIVE THREE TOOLS ──────────────────────────────────── */
.ef-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.ef-tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.ef-tool-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-deep);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.ef-tool-card h4 { font-size: .95rem; color: var(--green-deep); margin-bottom: 8px; }
.ef-tool-card p { font-size: .87rem; color: var(--text-mid); }

/* ── EXERCISE INFO GRID ─────────────────────────────────────── */
.exercise-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.exercise-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green-soft);
}
.exercise-info-card h4 { font-size: .95rem; color: var(--green-deep); margin-bottom: 8px; }
.exercise-info-card p { font-size: .9rem; color: var(--text-mid); }

/* ── STRATEGY STEPS ─────────────────────────────────────────── */
.strategy-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.strategy-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.strategy-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber-light);
  color: var(--amber);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.strategy-body h4 { font-size: .95rem; color: var(--text-dark); margin-bottom: 5px; }
.strategy-body p { font-size: .9rem; color: var(--text-mid); }

/* ── RESPONSIVE: TOPIC PAGES ────────────────────────────────── */
@media (max-width: 900px) {
  .protocol-grid,
  .reset-grid,
  .snack-grid,
  .stretch-grid,
  .tool-grid,
  .ef-tools-grid,
  .exercise-info-grid { grid-template-columns: 1fr; }

  .hobby-grid { grid-template-columns: repeat(2, 1fr); }
  .workout-day { grid-template-columns: 100px 1fr; }
}

@media (max-width: 640px) {
  .hobby-grid { grid-template-columns: 1fr; }
  .subtopic-nav a { font-size: .82rem; padding: 8px 14px; }
  .phase-card { grid-template-columns: 36px 1fr; gap: 14px; }
  .workout-day { grid-template-columns: 1fr; }
  .workout-day-label { padding: 10px 16px; }
}

/* ── COMPLETE DAY CELEBRATION ───────────────────────────────── */
.complete-day-wrap {
  max-width: 780px;
  margin: 48px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.complete-day-btn {
  font-size: 1.1rem;
  padding: 16px 48px;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease;
}
.complete-day-btn:active { transform: scale(.97); }
.complete-day-note {
  font-size: .85rem;
  color: var(--text-light);
}
.success-msg {
  background: var(--green-tint);
  border: 2px solid var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  animation: fadeInUp .5s ease;
}
.success-icon { font-size: 3rem; }
.success-msg h2 { color: var(--green-deep); margin: 0; }
.success-msg p  { color: var(--text-mid); font-size: 1rem; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PRINT STYLES ───────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .print-btn, .checklist-page-header p + *, .checklist-jumpnav, .checklist-back-link { display: none !important; }
  .checklist-page { padding: 20px 0; }
  .checklist-page-header h1 { font-size: 1.8rem; }
  .checklist-section { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .section-print-btn { display: none !important; }
  body { background: white; }

  /* Print a single checklist section: body[data-print-only="<id>"] set by printSection() in checklist.html */
  body[data-print-only] .wm-toolkit-block,
  body[data-print-only] .checklist-section,
  body[data-print-only] .my-list-section,
  body[data-print-only] .app-guide-section,
  body[data-print-only] .complete-day-wrap,
  body[data-print-only] .checklist-page-header {
    display: none !important;
  }
  body[data-print-only="morning"] #morning,
  body[data-print-only="tasks"] #tasks,
  body[data-print-only="evening"] #evening,
  body[data-print-only="word-finding"] #word-finding,
  body[data-print-only="weekly"] #weekly,
  body[data-print-only="metacognition"] #metacognition {
    display: block !important;
  }

  @page {
    margin: 20mm;
    @bottom-right {
      content: counter(page);
      font-family: sans-serif;
      font-size: 10pt;
      color: #666;
    }
  }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Tablet range (821–900px): stack main grids but keep desktop nav */
  .hero-inner,
  .about-inner,
  .checklist-preview-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero { padding: 72px 0 60px; }
  .hero-visual { display: none; }

  .topics-grid { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr; }

  .about-image-placeholder { justify-content: flex-start; }
  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  /* ── Mobile nav — applies to all phones AND foldable unfolded screens (≤820px) ── */
  .main-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: #0F132B;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    z-index: 99;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: rgba(255,255,255,.88); }
  .main-nav a:hover { color: var(--periwinkle); }
  .nav-toggle { display: block; }

  /* Mobile dropdown overrides */
  .nav-item { flex-wrap: wrap; align-items: center; gap: 0; }
  .nav-chevron { display: none; }
  .nav-dropdown {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(255,255,255,.2);
    border-radius: 0;
    background: transparent;
    padding: 4px 0 4px 12px;
    width: 100%;
    margin-top: 4px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .2s ease, max-height .25s ease;
  }
  .nav-dropdown-wide { grid-template-columns: 1fr; min-width: unset; }
  .nav-dropdown::before { display: none; }
  .nav-item.open .nav-dropdown {
    opacity: 1;
    max-height: 600px;
    pointer-events: auto;
  }
  .nav-item:hover .nav-dropdown { opacity: 0; pointer-events: none; }
  .nav-item.open .nav-dropdown { opacity: 1 !important; pointer-events: auto !important; }
  .nav-dropdown a { padding: 7px 10px; font-size: .85rem; white-space: normal; color: rgba(255,255,255,.72); }

  /* Single-column layouts */
  .hero-inner,
  .about-inner,
  .checklist-preview-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero { padding: 64px 0 56px; }
  .hero-visual { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }

  .topics-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }

  .about-image-placeholder { justify-content: flex-start; }
  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Phones (covers the ~375-428px range most phones actually use) ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: clamp(1.7rem, 7.2vw, 2.3rem); }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.8rem); }
  .hero { padding: 44px 0 36px; }
  .hero-sub { font-size: .92rem; }
  .btn { padding: 10px 18px; font-size: .88rem; }
  .hero-actions { gap: 8px; }
  .conditions-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .condition-chip { font-size: .75rem; padding: 6px 10px; }
  .goodjob-bar span { display: none; }
}

/* ── Blog ─────────────────────────────────────────────────── */

.blog-section { padding: 4rem 0; }
.blog-section-title { margin-bottom: 0.5rem; }
.blog-section-sub { color: var(--text-light); margin-bottom: 2.5rem; }
.blog-empty { color: var(--text-light); font-style: italic; }

/* Hidden by default — the blog filter JS shows it only when zero posts match */
.no-results { display: none; color: var(--text-light); font-style: italic; grid-column: 1 / -1; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--green-pale);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  color: inherit;
  text-decoration: none;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-title { font-size: 1.2rem; margin: 0.25rem 0 0.75rem; }

.blog-date { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.25rem; }
.blog-excerpt { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 1rem; line-height: 1.6; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.blog-tag {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}

/* Blog article */
.blog-article { max-width: 740px; padding-top: 3rem; padding-bottom: 4rem; }
.back-link { font-size: 0.875rem; color: var(--text-light); display: inline-block; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--green-deep); }
.blog-article-title { margin-bottom: 0.5rem; }
.blog-tags-article { margin: 0.75rem 0 2rem; }

.blog-body { margin-top: 2rem; }
.blog-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.blog-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.blog-body p { margin-bottom: 1.1rem; line-height: 1.8; }
.blog-body ul, .blog-body ol { margin: 0.75rem 0 1.1rem 1.5rem; line-height: 1.8; }
.blog-body li { margin-bottom: 0.35rem; }
.blog-body strong { color: var(--text-dark); }
.blog-body em { color: var(--green-mid); }
.blog-body blockquote {
  border-left: 4px solid var(--green-pale);
  padding: 0.75rem 1.25rem;
  color: var(--text-mid);
  font-style: italic;
  margin: 1.5rem 0;
  background: var(--green-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Admin ────────────────────────────────────────────────── */

.admin-wrap { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 2px solid var(--green-pale); padding-bottom: 1rem; }
.admin-header h1 { margin: 0; font-size: 1.75rem; }
.admin-nav a { font-size: 0.875rem; color: var(--text-light); margin-left: 1rem; }
.admin-nav a:hover { color: var(--green-deep); }

.admin-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; font-size: 0.9rem; }
.admin-table th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--green-pale); color: var(--text-mid); font-weight: 600; }
.admin-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--green-tint); vertical-align: middle; }
.admin-table tr:hover td { background: var(--green-tint); }

.admin-btn { padding: 0.35rem 0.85rem; border: 1px solid var(--green-pale); border-radius: var(--radius); background: var(--white); color: var(--green-deep); font-size: 0.82rem; cursor: pointer; transition: background var(--transition); }
.admin-btn:hover { background: var(--green-tint); }
.admin-btn-danger { border-color: #e0b0b0; color: #b44; }
.admin-btn-danger:hover { background: #fff0f0; }
.admin-btn-primary { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }
.admin-btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); }

.admin-field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-mid); margin-bottom: 0.35rem; }
.admin-field input[type="text"],
.admin-field input[type="password"],
.admin-field textarea {
  width: 100%; padding: 0.6rem 0.85rem;
  border: 1px solid var(--green-pale); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; color: var(--text-dark);
  background: var(--white); transition: border-color var(--transition);
}
.admin-field input:focus, .admin-field textarea:focus {
  outline: none; border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(0,168,132,.12);
}

.admin-editor { font-family: 'Courier New', monospace; font-size: 0.82rem; min-height: 520px; resize: vertical; }
.admin-status { font-size: 0.875rem; color: var(--text-light); margin-top: 0.5rem; min-height: 1.4em; }
.admin-status a { color: var(--green-mid); text-decoration: underline; }

.submission-card {
  border: 1px solid var(--green-pale); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; margin-bottom: 1rem; background: var(--white);
}
.submission-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.submission-name { font-weight: 600; color: var(--text-dark); }
.submission-ts { font-size: 0.8rem; color: var(--text-light); }
.submission-email { font-size: 0.875rem; color: var(--green-mid); margin-bottom: 0.5rem; }
.submission-subject { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.submission-message { font-size: 0.9rem; color: var(--text-mid); white-space: pre-wrap; line-height: 1.6; }
