/* ============================================================
   Baby Sleep Advice — styles.css
   Concept: Blue Hour · The hour after sunset

   The parent stands at the window. Outside: a soft nursery
   blue sky, calm and wide. Behind them: a lamp is on,
   throwing old-rose warmth across the room. The baby is about
   to sleep. They feel confident and at peace.

   Design principle: the page holds both temperatures
   simultaneously — soft blue and warm rose-lamp.
   Neither dominates. 70% warm surfaces, 30% blue depth.
   The blue reads as sky: trusted, open, calm.
   The rose reads as home: warm, safe, human.

   Palette:
     --blue-night  #2A5F7A  — deep anchor: nav, footer, hero
     --blue-deep   #89BDD3  — nursery sky: testimonials
     --blue-mid    #5A9AB8  — sky luminous: links, accents
     --dusk        #7AB0C8  — horizon: eyebrows, rings
     --amber       #C98B90  — the lamp: CTAs, structural bars
     --amber-pale  #F9EEED  — glow: warm highlights
     --ivory       #FDFAF5  — page base: paper in lamplight
     --warm-white  #F7F2EC  — alternating section surface
     --parchment   #EEE4D4  — warmest room: programs

   Type:
     Playfair Display — headings, warm italic
     Lora             — reading warmth (quotes, bio)
     DM Sans          — precise UI
     Caveat           — 3 hand-on-shoulder moments max

   The rose bar (4 reserved uses):
     1. Nav logo right border
     2. Trust row top border
     3. Final CTA top border
     4. Footer top border
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Sky blues */
  --blue-night:  #2A5F7A;   /* deep anchor — nav, footer, hero overlay    */
  --blue-deep:   #89BDD3;   /* nursery sky — testimonials, accents        */
  --blue-deep-2: #9ECADC;   /* slightly lighter — cards on deep bg        */
  --blue-deep-3: #B4D5E4;   /* borders on deep bg                         */
  --blue-deep-4: #CADEEA;   /* muted text on deep bg                      */
  --blue-mid:    #5A9AB8;   /* sky luminous — accent, links               */
  --blue-pale:   #D4EAF4;   /* sky in water — pale tints, borders         */
  --blue-xpale:  #EDF6FA;   /* faintest sky — newsletter bg               */

  --dusk:        #7AB0C8;   /* horizon: eyebrow bars, photo rings, dots   */
  --dusk-lt:     #9EC8D8;   /* lighter dusk                               */
  --dusk-pale:   #D4E8F0;   /* very pale dusk — borders on warm surfaces  */

  --amber:       #C98B90;   /* old rose: action, CTAs, structural bars    */
  --amber-lt:    #D4A0A4;   /* hover                                      */
  --amber-pale:  #F9EEED;   /* glow: warm highlights, section bg          */
  --amber-mid:   #E8C4C6;   /* mid — warm borders                         */

  --ivory:       #FDFAF5;   /* page base: paper in lamplight              */
  --warm-white:  #F7F2EC;   /* alternating section surface                */
  --parchment:   #EEE4D4;   /* warmest room: programs                     */

  --ink:         #1A3040;   /* deep blue-night: primary headings & type   */
  --ink-2:       #2C4A5E;   /* body text                                  */
  --ink-3:       #5C8298;   /* muted: labels, meta                        */
  --ink-4:       #96B8C8;   /* very muted                                 */

  /* Semantic */
  --bg:          var(--ivory);
  --surface:     var(--warm-white);
  --surface-2:   var(--amber-pale);
  --cta:         var(--amber);
  --cta-hover:   var(--amber-lt);
  --cta-ink:     #ffffff;
  --line:        var(--dusk-pale);
  --line-2:      #E8EFF6;

  /* Type stacks */
  --display: "Playfair Display", ui-serif, Georgia, serif;
  --reading: "Lora", ui-serif, Georgia, serif;
  --sans:    "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --hand:    "Caveat", cursive;
  --mono:    ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw:        1200px;
  --maxw-narrow:  720px;
  --gutter:       56px;

  /* Radii — warm but grounded */
  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  36px;

  /* The amber bar — 4 structural uses only */
  --bar: 4px;

  --shadow-blue: 0 2px 6px rgba(137,189,211,0.10), 0 12px 32px rgba(137,189,211,0.16);
  --shadow-lift: 0 4px 10px rgba(137,189,211,0.10), 0 24px 56px rgba(137,189,211,0.20);
  --shadow-warm: 0 2px 6px rgba(201,139,144,0.10), 0 12px 32px rgba(201,139,144,0.14);
}

@media (max-width: 1024px) { :root { --gutter: 40px; } }
@media (max-width:  720px) { :root { --gutter: 24px; } }
@media (max-width:  420px) { :root { --gutter: 16px; } }

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0; padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Paper texture ──────────────────────────────────────────
   SVG fractal noise at 3% opacity. Makes every surface feel
   like paper in lamplight rather than a glowing screen.
   Perceptible as warmth, never consciously read as texture.
────────────────────────────────────────────────────────────── */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.030;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px; background-repeat: repeat;
}
body > * { position: relative; z-index: 1; }

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

a {
  color: var(--blue-mid);
  text-decoration: underline;
  text-decoration-color: rgba(74,111,165,0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--amber); text-decoration-color: rgba(196,120,42,0.40); }
::selection { background: var(--blue-pale); color: var(--ink); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container-narrow {
  width: 100%; max-width: var(--maxw-narrow);
  margin-inline: auto; padding-inline: var(--gutter);
}

/* Section spacing — vertical only */
.section    { padding-block: 88px; }
.section-sm { padding-block: 48px; }
.section-lg { padding-block: 120px; }

@media (max-width: 720px) {
  .section    { padding-block: 56px; }
  .section-sm { padding-block: 32px; }
  .section-lg { padding-block: 72px; }
}

/* ── Section backgrounds ──────────────────────────────────
   The 70/30 warm-to-blue rhythm:
   Sky (blue-deep): nav, testimonials, footer — three uses.
   Room (warm): everything else.
────────────────────────────────────────────────────────────── */

/* The sky — used for nav, testimonials, footer */
.section--sky {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.90);
}
.section--sky h1,
.section--sky h2,
.section--sky h3,
.section--sky h4 { color: #fff; }
.section--sky h1 em,
.section--sky h2 em,
.section--sky h3 em { color: var(--amber-pale); }
.section--sky a { color: var(--amber-pale); }
.section--sky p { color: rgba(255,255,255,0.75); }

/* Warm room sections */
.section--warm   { background: var(--warm-white); }
.section--parch  { background: var(--parchment);  }

/* The glow: consultant section.
   Ambient amber radial from the lamp-side (left),
   blue-xpale at the window-side (right).
   The whole room is lit from within.                       */
.section--glow {
  background:
    radial-gradient(ellipse 75% 70% at 20% 50%,
      var(--amber-pale) 0%,
      var(--warm-white) 60%,
      var(--blue-xpale) 100%
    );
}

/* Blue hour wash — newsletter.
   The palest blue surface, like looking at the last of the
   sky before full night. Warm borders keep it from cold.   */
.section--dusk-wash { background: var(--blue-xpale); }

/* Grid */
.grid   { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5          { grid-template-columns: repeat(2, 1fr); }
  .grid-2          { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400; line-height: 1.08; margin: 0;
  letter-spacing: -0.015em; text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.22; }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.28; }
h4 { font-size: 20px; line-height: 1.32; }
h5 {
  font-family: var(--sans); font-weight: 600; margin: 0;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}

/* Playfair italic — the em in amber on light, amber-pale on dark */
h1 em, h2 em, h3 em { font-style: italic; color: var(--amber); }
.section--sky h1 em,
.section--sky h2 em,
.section--sky h3 em { color: var(--amber-pale); }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* Eyebrow — dusk bar prefix.
   On sky sections: dusk-lt. On warm sections: dusk.        */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 20px; height: 3px;
  background: var(--dusk); border-radius: 2px; flex-shrink: 0;
}
.section--sky .eyebrow        { color: rgba(255,255,255,0.52); }
.section--sky .eyebrow::before { background: var(--dusk-lt); }
.section--glow .eyebrow::before { background: var(--amber); }

/* Handnote — Caveat, dusk colour. 3 uses max per page. */
.handnote {
  font-family: var(--hand); font-size: 26px; font-weight: 500;
  line-height: 1.3; color: var(--dusk); display: block;
}
.section--sky   .handnote { color: var(--amber-pale); }
.section--glow  .handnote { color: var(--amber); }

.h-display {
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.00; letter-spacing: -0.02em;
}

/* Bar-left — dusk or amber variant */
.bar-left        { border-left: var(--bar) solid var(--amber); padding-left: 20px; }
.bar-left--dusk  { border-left-color: var(--dusk); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--amber); background: var(--amber);
  color: var(--cta-ink); cursor: pointer;
  transition: transform .14s, background .15s, border-color .15s, box-shadow .18s;
  box-shadow: var(--shadow-warm);
}
.btn:hover {
  background: var(--amber-lt); border-color: var(--amber-lt);
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 6px 12px rgba(196,120,42,0.22), 0 20px 40px rgba(196,120,42,0.24);
}
.btn:active { transform: translateY(0); }

/* Ghost on light backgrounds */
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--dusk-pale); box-shadow: none;
}
.btn-ghost:hover {
  background: var(--blue-xpale); border-color: var(--dusk); color: var(--ink);
}

/* Ghost on dark/sky backgrounds */
.btn-ghost--light {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.36); box-shadow: none;
}
.btn-ghost--light:hover {
  background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.65); color: #fff;
}

/* Blue button — for CTA variety on light sections */
.btn-blue {
  background: var(--blue-deep); border-color: var(--blue-deep); color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-blue:hover {
  background: var(--blue-deep-2); border-color: var(--blue-deep-2); color: #fff;
}

.btn-lg    { padding: 17px 36px; font-size: 16px; }
.btn-sm    { padding: 9px 18px;  font-size: 13px; }
.btn-block { width: 100%; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Nav — blue-deep sky, amber bar on logo ───────────────── */
.nav {
  background: var(--blue-night);
  border-bottom: 1px solid var(--blue-deep-3);
  position: sticky; top: 0; z-index: 30;
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex; align-items: stretch; min-height: 68px;
}

.brand-logo { height: 52px; width: auto; display: block; }
@media (max-width: 880px) { .brand-logo { height: 44px; } }
@media (max-width: 480px) { .brand-logo { height: 38px; } }

/* Amber bar: use #1 — nav logo right border */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
  padding-right: 36px;
  border-right: var(--bar) solid var(--amber);
  margin-right: 28px;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex; list-style: none; margin: 0; padding: 0;
  flex: 1; align-items: stretch;
}
.nav-links li { display: flex; align-items: stretch; }
.nav-links a {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  text-decoration: none; color: rgba(255,255,255,0.62);
  padding: 0 18px; display: flex; align-items: center;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: #fff; border-bottom-color: var(--dusk-lt); }

.nav-cta {
  display: flex; gap: 12px; align-items: center;
  margin-left: auto; padding-left: 28px;
}

.nav-mobile-toggle {
  display: none; background: transparent;
  border: 1.5px solid var(--blue-deep-3);
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  cursor: pointer; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.80); flex-shrink: 0;
}

@media (max-width: 880px) {
  .nav-inner { flex-wrap: wrap; padding-block: 14px; min-height: auto; gap: 12px; }
  .nav-logo  { border-right: none; margin-right: 0; padding-right: 0; flex: 1; }
  .nav-cta   { margin-left: 0; padding-left: 0; gap: 8px; }
  .nav-mobile-toggle { display: inline-flex; order: 10; }
  /* Desktop nav links hidden on mobile — overlay takes over */
  .nav-links { display: none; }
  /* Hide the nav bar's "Get started" on small screens to keep header tight */
  .nav-cta-btn { display: none; }
}
@media (min-width: 881px) {
  .nav-mobile-toggle { display: none; }
}

/* ── Full-screen nav overlay ──────────────────────────────────
   Covers the entire viewport. Deep blue-deep background with
   the amber lamp warmth bleeding in — the brand at its most
   immersive. Links are large, centered, easy to tap.
   Slides up from bottom on open; fades out on close.
────────────────────────────────────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0; z-index: 50;
  background:
    radial-gradient(ellipse 80% 60% at 80% 100%,
      rgba(201,139,144,0.12) 0%,
      transparent 65%
    ),
    var(--blue-night);
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .28s ease, transform .30s cubic-bezier(0.32, 0.72, 0, 1);
}
.nav-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-overlay__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--blue-deep-3);
  flex-shrink: 0;
}
.nav-overlay__close {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-deep-3); background: transparent;
  color: rgba(255,255,255,0.80); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s, background .15s;
}
.nav-overlay__close:hover {
  border-color: var(--dusk-lt); color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-overlay__body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px var(--gutter);
}
.nav-overlay__links {
  list-style: none; margin: 0; padding: 0;
  text-align: center;
}
.nav-overlay__links li {
  overflow: hidden;
}
.nav-overlay__links a {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.15;
  color: rgba(255,255,255,0.72);
  text-decoration: none; padding: 12px 0;
  letter-spacing: -0.015em;
  transition: color .18s, letter-spacing .18s;
}
.nav-overlay__links a:hover {
  color: #fff; letter-spacing: 0.01em;
}
/* Italic em-style on hover — the brand's warm italic */
.nav-overlay__links a:hover em,
.nav-overlay__links a:focus em { color: var(--amber-pale); }

.nav-overlay__foot {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--blue-deep-3);
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}

/* ── Desktop nav dropdown: Advice menu ───────────────────────
   Hover/focus driven, CSS-only. Mobile uses nav-overlay (no
   nested expand). Matches the blue-night nav surface.
────────────────────────────────────────────────────────────── */
@media (min-width: 881px) {
  .has-dropdown { position: relative; }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -8px;
    min-width: 300px;
    background: var(--blue-night);
    border: 1px solid var(--blue-deep-3);
    border-radius: var(--radius);
    padding: 10px 0 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .22s ease, visibility .2s;
    z-index: 100;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  }
  .has-dropdown:hover > .dropdown-menu,
  .has-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Keep parent link visually active while dropdown is open */
  .has-dropdown:hover > a,
  .has-dropdown:focus-within > a { color: #fff; }

  .dropdown-menu ul { list-style: none; margin: 0; padding: 0; }
  .dropdown-menu li { display: block; }

  .dropdown-menu a {
    display: block;
    padding: 9px 22px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    border-bottom: none;
    transition: color .15s, background .15s;
    letter-spacing: -0.005em;
  }
  .dropdown-menu a em {
    font-family: var(--display);
    font-style: italic;
    color: var(--amber-pale);
    font-weight: 500;
  }
  .dropdown-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: none;
  }

  .dropdown-divider {
    border-top: 1px solid var(--blue-deep-3);
    margin: 8px 14px;
  }

  .dropdown-allbtn {
    color: var(--amber-pale) !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .dropdown-allbtn .arrow { display: inline-block; transition: transform .2s; }
  .dropdown-allbtn:hover .arrow { transform: translateX(3px); }

  /* Small chevron indicator on the parent link */
  .has-dropdown > a::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
    opacity: 0.6;
  }
  .has-dropdown:hover > a::after,
  .has-dropdown:focus-within > a::after {
    transform: rotate(225deg) translateY(0);
    opacity: 1;
  }
}

/* ── Hero — blue hour overlay: deep sky left → amber right ── */
.hero-fb {
  position: relative; width: 100%;
  min-height: 70vh; display: flex; align-items: center;
  overflow: hidden; background: var(--blue-night);
}
.hero-fb__bg {
  position: absolute; inset: 0;
  background-image: url('../image-files/bsabg.jpg');
  background-size: cover; background-position: center 30%;
}

/* The blue hour overlay:
   Left: deep blue-night (sky, dusk, trust).
   Right: warm amber light bleeds in (the lamp through the window).
   Vertical: grounded at bottom, open at top.               */
.hero-fb__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(42,95,122,0.90) 0%,
      rgba(42,95,122,0.72) 38%,
      rgba(42,95,122,0.35) 60%,
      rgba(201,139,144,0.18) 80%,
      rgba(201,139,144,0.06) 100%
    ),
    linear-gradient(to bottom,
      rgba(42,95,122,0.10) 0%,
      rgba(42,95,122,0.00) 35%,
      rgba(42,95,122,0.52) 100%
    );
}

.hero-fb__content {
  position: relative; z-index: 1; width: 100%;
  padding: clamp(64px, 9vw, 112px) 0 clamp(64px, 8vw, 96px);
}
.hero-fb__inner { max-width: 640px; }

.hero-fb__inner h1 {
  color: #fff; margin-top: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.20);
}
.hero-fb__inner h1 em { color: var(--amber-pale); }

/* Lora for hero lead — warmth in the letterforms */
.hero-fb__lead {
  font-family: var(--reading);
  font-size: 19px; color: rgba(255,255,255,0.82);
  margin-top: 20px; max-width: 50ch; line-height: 1.70;
}
.hero-fb__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-fb__trust {
  display: flex; gap: 20px; align-items: center; margin-top: 36px;
  flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.52);
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.10);
}
.hero-fb__trust strong { color: #fff; }
.hero-fb__trust .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.22); flex-shrink: 0;
}
.hero-fb__trust .stars { color: var(--amber-pale); letter-spacing: 1px; }

.hero-fb__scroll {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.30);
  animation: fb-bounce 2.4s ease-in-out infinite;
}
@keyframes fb-bounce {
  0%,100% { transform: translateX(-50%) translateY(0);   opacity:.30; }
  50%      { transform: translateX(-50%) translateY(6px); opacity:.52; }
}

@media (max-width: 720px) {
  .hero-fb { min-height: auto; align-items: flex-start; }
  .hero-fb__bg::after {
    background: linear-gradient(to bottom,
      rgba(42,95,122,0.65) 0%,
      rgba(42,95,122,0.38) 45%,
      rgba(42,95,122,0.75) 100%
    );
  }
  .hero-fb__content { padding: 28px 0 36px; }
  .hero-fb__inner h1 { font-size: clamp(28px, 7.5vw, 44px); }
  .hero-fb__lead { font-size: 16px; margin-top: 14px; }
  .hero-fb__ctas { margin-top: 22px; }
  .hero-fb__trust { margin-top: 24px; padding-top: 20px; }
  .hero-fb__scroll { display: none; }
}

/* ── Trust quiet — one warm sentence, nothing more ─────────── */
.trust-quiet {
  border-top: var(--bar) solid var(--amber);
  background: var(--ivory);
  padding-block: 36px;
}
.trust-quiet__line {
  font-family: var(--reading); font-style: italic;
  font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65;
  color: var(--ink-2); text-align: center;
  max-width: 680px; margin-inline: auto; margin-block: 0;
}

/* ── Testimonial slider — sky section, lamp-lit cards ──────
   Like looking at the night sky through the window:
   deep blue all around, with warm light glowing on each card.
────────────────────────────────────────────────────────────── */
.ts-controls { display: flex; gap: 8px; }
.ts-arrow {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-deep-3); background: transparent; color: #fff;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s, background .15s;
}
.ts-arrow:hover { border-color: var(--dusk-lt); color: var(--dusk-lt); }

.ts-rail {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 8px; scrollbar-width: none;
}
.ts-rail::-webkit-scrollbar { display: none; }

/* Cards — the lamp's glow on the wall. Warm amber-pale
   against the blue-deep background. Like lamplight.        */
.ts-card {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
  background: rgba(253,240,220,0.10);
  border: 1px solid var(--blue-deep-3);
  border-top: var(--bar) solid var(--amber);  /* amber top bar — lamp glow */
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; min-height: 280px;
  transition: transform .2s, box-shadow .25s, background .2s;
}
.ts-card:hover {
  background: rgba(253,240,220,0.17);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

.ts-stars { color: var(--amber-pale); letter-spacing: 2px; font-size: 13px; }

/* Lora italic — the warmth is in the letterforms */
.ts-quote {
  font-family: var(--reading); font-style: italic;
  font-size: 17.5px; line-height: 1.65;
  color: rgba(255,255,255,0.88); margin: 0; flex: 1;
}
.ts-quote p { margin: 0 0 0.85em; }
.ts-quote p:last-child { margin-bottom: 0; }
/* clamp: max-height is more reliable than line-clamp when p tags are inside */
.ts-quote .clamp {
  max-height: calc(1.65em * 6);
  overflow: hidden;
}

.ts-more {
  background: none; border: 0; padding: 0;
  color: var(--amber-pale); font-family: var(--sans);
  font-size: 13px; font-weight: 600; cursor: pointer; align-self: flex-start;
}
.ts-more:hover { color: var(--amber-mid); text-decoration: underline; }

.ts-foot {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--blue-deep-3);
}
.ts-photo {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--dusk);   /* dusk ring — the horizon colour */
}
.ts-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.92); }
.ts-meta { font-size: 12px; color: rgba(255,255,255,0.48); margin-top: 1px; }

.ts-dots {
  display: flex; gap: 6px; justify-content: center; padding-top: 24px;
}
.ts-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-deep-3); transition: background .2s, width .2s;
}
.ts-dots span.active { background: var(--dusk-lt); width: 24px; border-radius: 999px; }

/* Modal */
.ts-modal {
  position: fixed; inset: 0; background: rgba(26,39,68,0.72);
  backdrop-filter: blur(6px); display: none;
  align-items: center; justify-content: center; z-index: 80; padding: 20px;
}
.ts-modal.open { display: flex; }
.ts-modal-card {
  background: var(--ivory); border-radius: var(--radius-xl);
  max-width: 540px; width: 100%; padding: 40px;
  position: relative;
  border-top: var(--bar) solid var(--amber);
  box-shadow: 0 32px 80px rgba(26,39,68,0.32);
  max-height: 85vh;
  overflow-y: auto;
}
.ts-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border: 1px solid var(--line);
  background: var(--warm-white); border-radius: 50%;
  cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.ts-modal-close:hover { background: var(--blue-xpale); }
.ts-modal-quote {
  font-family: var(--reading); font-style: italic;
  font-size: 21px; line-height: 1.55; color: var(--ink);
  margin: 16px 0 24px;
}
.ts-modal-quote a, .ts-quote a { color: inherit; text-decoration: underline; }
.ts-modal-quote p { margin: 0 0 0.9em; }
.ts-modal-quote p:last-child { margin-bottom: 0; }
.ts-modal-stars { color: var(--amber); letter-spacing: 2px; }

@media (max-width: 1024px) { .ts-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) {
  .ts-card    { flex-basis: 84%; min-height: 240px; padding: 22px; }
  .ts-quote   { font-size: 16px; }
  .ts-controls { display: none; }
  /* Modal mobile fixes:
     - align to top so card starts in view
     - full-height scroll with padding for close button
     - smaller font
     - close button fixed to top-right of viewport */
  .ts-modal {
    align-items: flex-start;
    padding: 0;
    overflow-y: auto;
  }
  .ts-modal-card {
    max-width: 100%;
    border-radius: 0;
    padding: 60px 24px 40px;
    min-height: 100dvh;
  }
  .ts-modal-close {
    position: fixed;
    top: 12px; right: 12px;
    z-index: 90;
    background: var(--ivory);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  .ts-modal-quote {
    font-size: 17px;
  }
}

/* ── Program cards — editorial: photo top, warm text below ───
   Light, airy photos deserve to be seen. A soft gradient kiss
   at the bottom of the image melts it into the ivory card
   body. Dark text on light surface — readable, scannable,
   converts better for digital products.
────────────────────────────────────────────────────────────── */
.prog-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  overflow: hidden; /* clips title link ::after to card bounds */
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-blue);
  transition: transform .24s ease, box-shadow .26s ease;
  position: relative;
}
.prog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(42,95,122,0.12), 0 28px 56px rgba(42,95,122,0.16);
}

/* Flagship accent — amber top bar signals the hero product */
.prog-card--flagship {
  border-top: var(--bar) solid var(--amber);
}

/* ── Image zone ── */
.prog-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.prog-card__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  transition: transform .50s ease;
}
.prog-card:hover .prog-card__img { transform: scale(1.04); }

/* The gradient kiss — ivory fade at the bottom so the photo
   melts seamlessly into the card body, no hard edge          */
.prog-card__img-wrap::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 48%;
  background: linear-gradient(to top,
    var(--ivory) 0%,
    rgba(253,250,245,0.60) 45%,
    rgba(253,250,245,0.00) 100%
  );
  pointer-events: none;
}

/* ── Badges — float over photo top ── */
.prog-card__badges {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 2;
}
.prog-badge {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px;
  font-weight: 600; letter-spacing: 0.05em;
}
.prog-badge--age {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.60);
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.prog-badge--tagline {
  background: rgba(201,139,144,0.15);
  border: 1px solid rgba(201,139,144,0.40);
  color: #7A3A3E;
}
.prog-card--flagship .prog-badge--tagline {
  background: rgba(196,120,42,0.14);
  border-color: rgba(196,120,42,0.38);
  color: #7A4A10;
}

/* ── Card body — ivory, dark text ── */
.prog-card__body {
  padding: 18px 24px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}

/* Stars — amber, small, no review count — trust signal only */
.prog-card__stars {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 9px;
}

.prog-card__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.18; color: var(--ink);
  margin: 0 0 10px; letter-spacing: -0.01em;
}
.prog-card__desc {
  font-family: var(--reading);
  font-size: 14px; line-height: 1.65;
  color: var(--ink-2); margin: 0; flex: 1;
}

/* ── Card footer: price left, CTA right ── */
.prog-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.prog-card__price {
  font-family: var(--sans); font-size: 15px; font-weight: 400;
  color: var(--ink-3); letter-spacing: -0.01em;
}

/* Whole-card click overlay link.
   An invisible <a> as first child of .prog-card, stretched to cover
   the entire card via absolute positioning. The card is position:relative
   and overflow:hidden so the link is clipped exactly to card bounds.
   CTA button and badges sit above it via z-index:1. */
.prog-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

/* CTA inherits .btn .btn-sm — override colour per card type */
.prog-card__cta {
  background: var(--amber); border-color: var(--amber); color: #fff;
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 15px;
  position: relative;
  z-index: 1; /* sits above the title link ::after overlay */
}
/* Whole-card click: handled by .prog-card__overlay-link (see above).
   Title link styled for appearance only. */
.prog-card__title a {
  color: inherit; text-decoration: none;
}
/* Ensure CTA and badges sit above the overlay */
.prog-card__badges,
.prog-card__foot-wrap { position: relative; z-index: 1; }
.prog-card__cta:hover {
  background: var(--amber-lt); border-color: var(--amber-lt); color: #fff;
}
.prog-card--flagship .prog-card__cta {
  background: #C4782A; border-color: #C4782A;
}
.prog-card--flagship .prog-card__cta:hover {
  background: #D4892F; border-color: #D4892F;
}

/* ── "Good if your baby…" strip ──────────────────────────────
   Amber-pale band that breaks out of the card body padding,
   sitting flush edge-to-edge between description and footer.
   Small-caps via font-variant give it a quiet label quality —
   warmer than uppercase, lighter than body text.
────────────────────────────────────────────────────────────── */
.prog-for-you {
  margin: 18px -24px 0;
  padding: 13px 24px;
  background: var(--amber-pale);
  border-top: 1px solid rgba(196,120,42,0.18);
  border-bottom: 1px solid rgba(196,120,42,0.18);
}
.prog-for-you__label {
  display: block;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.prog-for-you__tags {
  display: flex; flex-wrap: wrap; gap: 5px 4px;
}
.prog-for-you__tag {
  font-family: var(--sans);
  font-variant: small-caps;
  font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.04em;
  color: #7A4A10;
  display: inline-flex; align-items: center; gap: 6px;
}
/* Amber dot separator between tags — first tag has no dot */
.prog-for-you__tag::before {
  content: "";
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--amber); opacity: 0.55; flex-shrink: 0;
}
.prog-for-you__tag:first-child::before { display: none; }

/* Footer wrapper — gives the foot padding outside prog-card__body */
.prog-card__foot-wrap {
  padding: 0 24px 24px;
}

/* Responsive — tablet: 2 col, third card spans full width  */
@media (max-width: 900px) and (min-width: 641px) {
  .grid-3 .prog-card:last-child {
    grid-column: 1 / -1;
  }
  .grid-3 .prog-card:last-child .prog-card__img-wrap {
    aspect-ratio: 16/6;
  }
  .grid-3 .prog-card:last-child .prog-card__img {
    object-position: center 35%;
  }
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(17px, 1.8vw, 21px);
  cursor: pointer; gap: 16px; color: var(--ink);
  padding: 22px 0; transition: color .15s;
}
.faq-q:hover { color: var(--blue-mid); }
.faq-q .caret {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 18px; font-weight: 300;
  color: var(--ink-3); transition: background .2s, border-color .2s, color .2s, transform .25s;
}
.faq-item.open .faq-q .caret {
  background: var(--blue-mid); border-color: var(--blue-mid);
  color: #fff; transform: rotate(45deg);
}

/* Lora for FAQ answers — warm and readable */
.faq-a {
  font-family: var(--reading); color: var(--ink-2);
  padding-bottom: 22px; max-width: 64ch;
  font-size: 16px; line-height: 1.72;
}

/* ── Section header ───────────────────────────────────────── */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}
.sec-head h2 { max-width: 22ch; }

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  color: var(--ink-2); background: var(--ivory); text-decoration: none;
}
.tag-amber { background: var(--amber-pale); border-color: var(--amber-mid);   color: var(--ink); }
.tag-blue  { background: var(--blue-pale);  border-color: var(--dusk-pale);   color: var(--ink); }
.tag-sky   { background: var(--blue-deep);  border-color: var(--blue-deep);   color: #fff; }

/* ── Pf badge ─────────────────────────────────────────────── */
.pf-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--blue-xpale); font-size: 12px;
  color: var(--ink); font-weight: 500; border: 1px solid var(--line-2);
}
.pf-badge .pf-icon {
  width: 16px; height: 16px; background: var(--blue-mid); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700;
}

/* ── Forms ────────────────────────────────────────────────── */
label { font-size: 13px; color: var(--ink-2); display: block; margin-bottom: 6px; font-weight: 500; }
input[type=text], input[type=email], input[type=search], textarea, select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; font: inherit; font-size: 15px;
  background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: 0; border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(74,111,165,0.14);
}
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 16px; }

/* Newsletter form on dusk-wash section */
.nl-form input, .nl-form select {
  background: rgba(255,255,255,0.85); border-color: var(--dusk-pale);
}
.nl-form input:focus, .nl-form select:focus {
  background: rgba(255,255,255,0.96); border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(74,111,165,0.14);
}

/* ── Newsletter strategies list ──────────────────────────────
   Benefit is the hero (Playfair italic, dark ink).
   Strategy name is the muted label beneath (DM Sans small-caps).
   Number anchors left in rose Playfair italic.
────────────────────────────────────────────────────────────── */
.nl-strategies { display: flex; flex-direction: column; margin-top: 24px; }
.nl-strategy {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 0 16px; align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(123,155,184,0.20);
}
.nl-strategy:first-child { border-top: 1px solid rgba(123,155,184,0.20); }
.nl-strategy__num {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--amber); line-height: 1; padding-top: 4px;
}
.nl-strategy__body { display: flex; flex-direction: column; gap: 4px; }
.nl-strategy__outcome {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 17px; color: var(--ink); line-height: 1.2;
}
.nl-strategy__name {
  font-family: var(--sans); font-variant: small-caps;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--dusk);
}

/* EU consent row — checkbox + label side by side */
.nl-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px;
}
.nl-consent input[type="checkbox"] {
  flex-shrink: 0; margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--blue-mid);
  background: rgba(255,255,255,0.85);
  border: none; box-shadow: none;
}
.nl-consent label {
  font-size: 12px; line-height: 1.55;
  color: var(--ink-3); cursor: pointer;
  margin: 0;
}
.nl-consent label a {
  color: var(--blue-mid); text-decoration: underline;
}

.newsletter-brand {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 720px) { .newsletter-brand { grid-template-columns: 1fr; gap: 40px; } }

/* Earphones image — floats bottom-left behind the copy */
.nl-copy {
  position: relative;
}
.nl-earphones {
  position: absolute;
  bottom: -32px; right: -40px;
  width: 52%;
  opacity: 0.27;
  pointer-events: none;
  z-index: 0;
}
.nl-copy > *:not(.nl-earphones) {
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .nl-earphones {
    width: 40%;
    bottom: -16px; right: -16px;
    opacity: 0.24;
  }
}

/* ── Newsletter inline thank-you — replaces form on submit ──
   Same width and position as the form it replaces.
   Warm, calm, on-brand — no redirect, no jarring page jump.
────────────────────────────────────────────────────────────── */
.nl-thankyou {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--dusk-pale);
  border-radius: var(--radius-lg);
  text-align: center;
}
.nl-thankyou[hidden] { display: none; }
.nl-thankyou__icon {
  font-size: 28px; color: var(--amber);
  margin: 0 0 16px; line-height: 1;
}
.nl-thankyou h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--ink); margin: 0 0 12px;
  line-height: 1.2;
}
.nl-thankyou p {
  font-family: var(--reading); font-size: 15px;
  line-height: 1.65; color: var(--ink-2);
  margin: 0; max-width: 36ch; margin-inline: auto;
}

/* ── Answer box ───────────────────────────────────────────── */
.answer-box {
  border-left: var(--bar) solid var(--blue-mid);
  padding: 20px 24px; margin: 28px 0;
  background: var(--blue-xpale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--reading); font-size: 16px;
  color: var(--ink); line-height: 1.68;
}

/* ── Blockquote ───────────────────────────────────────────── */
blockquote.gentle {
  font-family: var(--reading); font-style: italic;
  font-size: 22px; line-height: 1.50; color: var(--ink);
  border: 0; margin: 32px 0; padding: 28px 32px 28px 36px;
  background: var(--amber-pale);
  border-left: var(--bar) solid var(--dusk);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* ── Article cards — editorial card list ─────────────────────
   Vertical list. Each article is a card: ivory background,
   dusk top border, radius, shadow on hover.
   Three-column grid: topic/time · title+desc · badge+CTA.
   Collapses to single column on mobile.
────────────────────────────────────────────────────────────── */
.art-card-list {
  display: flex; flex-direction: column; gap: 14px;
}
.art-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: var(--bar) solid var(--dusk);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 0 24px;
  align-items: center;
  transition: transform .18s ease, box-shadow .22s ease;
  position: relative; /* whole-card click target anchor */
}
.art-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42,95,122,0.10), 0 2px 6px rgba(42,95,122,0.07);
}

/* Left — topic + read time */
.art-card__meta {
  display: flex; flex-direction: column; gap: 5px;
}
.art-card__topic {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--blue-mid);
}
.art-card__time {
  font-size: 12px; color: var(--ink-4); font-weight: 400;
}

/* Middle — title + description */
.art-card__body { min-width: 0; }
.art-card__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.22; color: var(--ink);
  margin: 0 0 7px;
}
.art-card__title a { color: inherit; text-decoration: none; transition: color .15s; }
.art-card__title a:hover { color: var(--blue-mid); }
.art-card__desc {
  font-family: var(--reading); font-size: 14px;
  line-height: 1.60; color: var(--ink-2); margin: 0;
}

/* Right — badge + CTA */
.art-card__right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 12px; flex-shrink: 0;
}
.art-card__cta {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--blue-mid); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .15s;
}
.art-card__cta:hover { color: var(--amber); }
.art-card__cta .arrow { display: inline-block; transition: transform .2s; }
.art-card__cta:hover .arrow { transform: translateX(3px); }

/* Whole-card click overlay link — invisible <a> as first child of .art-card,
   stretched via inset:0. art-card is position:relative so this is bounded exactly. */
.art-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

/* Nudge row — amber-pale, amber top bar, same card rhythm */
.art-nudge {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-top: 20px; padding: 20px 26px;
  background: var(--amber-pale);
  border: 1px solid var(--amber-mid);
  border-top: var(--bar) solid var(--amber);
  border-radius: var(--radius-lg);
}
.art-nudge span {
  font-family: var(--reading); font-style: italic;
  font-size: 16px; color: var(--ink-2);
}

/* Tablet — hide description, tighten grid */
@media (max-width: 820px) and (min-width: 641px) {
  .art-card {
    grid-template-columns: 120px 1fr auto;
    gap: 0 18px;
  }
  .art-card__desc { display: none; }
}

/* Mobile — switch to flex column so children stack naturally */
@media (max-width: 640px) {
  .art-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
  }
  .art-card__meta { flex-direction: row; align-items: center; gap: 10px; }
  .art-card__body { min-width: 0; width: 100%; }
  .art-card__desc { display: block; }
  /* Badge + CTA sit on one full-width row below the title */
  .art-card__right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-shrink: unset;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

/* Desktop: full portrait with amber shadow */
.consultant-photo--desktop {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; background: var(--warm-white);
  box-shadow: -8px 0 0 0 var(--amber);
}
.consultant-photo--desktop img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top; display: block;
}

/* Consultant photo — float treatment on tablet/mobile.
   No crop, no frame. Sits in the text like a personal letter. */
.consultant-portrait-mobile { display: none; }
.consultant-float-img {
  float: right;
  width: 140px;
  margin: 4px 0 16px 24px;
  border-radius: var(--radius);
  object-fit: cover; object-position: center top;
  display: block;
}

@media (max-width: 900px) {
  .consultant-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .consultant-photo--desktop { display: none; }
  .consultant-portrait-mobile { display: block; }
}
@media (max-width: 520px) {
  .consultant-float-img { width: 110px; margin-left: 18px; }
}

/* ── Footer — blue-deep sky, amber top bar ────────────────── */
/* Amber bar: use #4 — footer top */
.footer {
  background: var(--blue-night);
  border-top: var(--bar) solid var(--amber);
  padding: 72px 0 36px;
  font-size: 14px; color: rgba(255,255,255,0.58);
}
.footer h5 { color: var(--dusk-lt); margin-bottom: 16px; font-size: 11px; letter-spacing: 0.14em; }
.footer ul  { list-style: none; padding: 0; margin: 0; }
.footer li  { margin-bottom: 10px; }
.footer a   { color: rgba(255,255,255,0.56); text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,0.90); }
.footer-base {
  border-top: 1px solid var(--blue-deep-3); margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,0.32);
}
.footer-base a { color: rgba(255,255,255,0.48); }
.footer-base a:hover { color: rgba(255,255,255,0.85); }
.footer-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

/* ── Scribble ─────────────────────────────────────────────── */
.scribble { display: flex; justify-content: center; align-items: center; margin: 40px 0; color: var(--dusk); opacity: .45; }

/* ── Utilities ────────────────────────────────────────────── */
@media (max-width: 720px) { .hide-mobile { display: none !important; } }
.show-mobile { display: none; }
@media (max-width: 720px) { .show-mobile { display: block !important; } }

@keyframes gentle-pulse {
  0%,100% { transform: translateY(0); opacity:.85; }
  50%      { transform: translateY(-3px); opacity:1; }
}
.pulse-z { animation: gentle-pulse 3.4s ease-in-out infinite; }

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; }
.read-progress .bar { height: 100%; width: 0; background: var(--amber); transition: width .1s linear; }

/* Visually hidden: semantic heading without visible rendering. */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Method essence pull-quote ────────────────────────────────
   The mission in one breath. Lifted from the flow, not shouted.
────────────────────────────────────────────────────────────── */
.method-essence {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--amber-pale);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--reading);
  font-size: clamp(16px, 1.7vw, 18px);
  font-style: italic;
  line-height: 1.70;
  color: var(--ink-2);
}

/* ── Rose em — inline warm emphasis, used sparingly ──────── */
.rose-em {
  font-family: var(--display);
  font-style: italic;
  color: var(--amber);
}

/* ── Whisper label — quiet signpost, not a heading ────────── */
.whisper-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE TEMPLATE COMPONENTS  v2
   All new classes added below existing styles.
   No existing rules modified.
═══════════════════════════════════════════════════════════════ */

/* ── Article body prose helper ───────────────────────────────── */
.art-prose {
  font-family: var(--reading);
  font-size: clamp(16px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 1.1em;
}

/* Heading rhythm — space above and below h2/h3/h4 in article body. */
.art-content h2 { margin-top: 1.6em; margin-bottom: 0.7em; }
.art-content h3 { margin-top: 1.4em; margin-bottom: 0.6em; }
.art-content h4 { margin-top: 1.2em; margin-bottom: 0.8em; font-size: 22px; color: var(--dusk); }

/* ── Age-group card ───────────────────────────────────────────
   Wraps each age-group block in "Wake windows month by month".
   Two explicit modifier classes handle the alternation reliably —
   nth-child cannot be used here because sibling nudge divs and
   other elements would throw the count off.
   --a: warm-white (clearly distinct from the ivory page bg)
   --b: amber-pale (the rose tint used for pull-quotes and answer
        boxes — warm, on-brand, readable)
   Dusk top border signals entry into a new section, matching
   the .contents-box pattern.
   overflow:hidden contains floated images within each card.
   ─────────────────────────────────────────────────────────── */
.age-group {
  border-top: 3px solid var(--dusk);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-top: 28px;
  overflow: hidden;
}
.age-group--a { background: var(--warm-white); }
.age-group--b { background: var(--amber-pale); }

/* H3 inside a card: the card border + padding already provide
   visual separation — suppress the default top margin */
.age-group h3 { margin-top: 0; }

/* clear:both divs inside cards are structural only —
   collapse their margin so they don't add unwanted space */
.age-group div[style*="clear"] { margin: 0; }

/* Ordered and unordered lists in article body.
   margin-top gives breathing room above the list as a whole.
   li + li adds space between items so bold labels don't crowd.
   The bold label is inline — never wrapped in a block-level element —
   so the list number and label sit on the same line. */
.art-content ol,
.art-content ul {
  padding-left: 1.5em;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}
.art-content li {
  font-family: var(--reading);
  font-size: clamp(16px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--ink-2);
}
.art-content li + li {
  margin-top: 1.2em;
}

/* Link color — standard readable blue with solid matching underline.
   Overrides the global muted underline for article body legibility. */
.art-content a {
  color: #0000EE;
  text-decoration-color: #0000EE;
}
.art-content a:visited {
  color: #551A8B;
  text-decoration-color: #551A8B;
}
/* Whole-card clickable overlay must not inherit link underline */
.art-card__cta::after,
.prog-card__cta::after,
.art-sidebar__btn::after { text-decoration: none; }

/* ── Article header image ─────────────────────────────────────── */
.art-header__img-wrap {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.art-header__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.art-breadcrumb {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}
ol.breadcrumb {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
  align-items: center;
  font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-3);
}
ol.breadcrumb li { display: flex; align-items: center; gap: 4px; }
ol.breadcrumb li + li::before {
  content: "›";
  color: var(--ink-4);
}
ol.breadcrumb a {
  color: var(--ink-3); text-decoration: none;
  transition: color .15s;
}
ol.breadcrumb a:hover { color: var(--blue-mid); }
ol.breadcrumb li[aria-current="page"] { color: var(--ink); }

/* ── Article header ───────────────────────────────────────────── */
.art-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.art-header__inner {
  max-width: var(--maxw-narrow);
}

.art-lead {
  font-family: var(--reading);
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.72;
  color: var(--ink-2);
  margin-top: 20px;
  max-width: 58ch;
}

/* Byline row */
.art-byline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.art-byline__author {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.art-byline__photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover; object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--dusk-pale);
}
.art-byline__name {
  display: block;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  transition: color .15s;
}
.art-byline__name:hover { color: var(--blue-mid); }

/* Expert checked — amber checkmark only, text matches factcheck colour */
.art-byline__expertcheck {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-3); margin-top: 4px;
}
.art-byline__expertcheck a {
  color: var(--ink-3); text-decoration: none; font-weight: 500;
}
.art-byline__expertcheck a:hover { text-decoration: underline; }

/* Fact-checked — blue, optional per article */
.art-byline__factcheck {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-3); margin-top: 3px;
}
.art-byline__factcheck a {
  color: var(--blue-mid); text-decoration: none; font-weight: 500;
}
.art-byline__factcheck a:hover { text-decoration: underline; }

/* Meta: read time + reviewed date */
.art-byline__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.art-byline__readtime {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-3);
}
/* "Reviewed with care" — Caveat font, warm and human */
.art-byline__reviewed {
  font-family: var(--hand);
  font-size: 15px;
  color: var(--dusk);
  white-space: nowrap;
}
.art-byline__reviewed-date {
  color: var(--ink-3);
  font-family: var(--hand);
}

@media (max-width: 640px) {
  .art-byline { flex-direction: column; gap: 12px; }
  .art-byline__meta { align-items: flex-start; flex-direction: row; gap: 12px; }
}

/* ── Article layout: content + sidebar ───────────────────────── */
/* Default (mobile + tablet): single column */
.art-layout {
  display: block;
}

/* Mobile/tablet: show inline nudge, hide desktop sidebar */
.art-nudge-mobile { display: block; margin: 32px 0; }
.art-nudge-desktop { display: none; }

/* Desktop 1024px+: grid layout, show sidebar, hide inline nudge */
@media (min-width: 1024px) {
  .art-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 48px;
    align-items: start;
  }
  .art-content {
    grid-column: 1;
    grid-row: 1;
  }
  /* Desktop sidebar — aligned with article image.
     Adjust margin-top if header height changes. */
  .art-nudge-desktop {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 88px;
    align-self: start;
    margin-top: var(--art-header-offset, 220px);
  }
  /* Hide the inline mobile copy on desktop */
  .art-nudge-mobile { display: none; }
}

/* ── Article content column ──────────────────────────────────── */
.art-content {
  min-width: 0;
}

/* ── Sidebar card base styles (shared by both copies) ───────────── */
.art-sidebar {
  /* No position/margin here — controlled by art-nudge-mobile/desktop wrappers */
}
.art-sidebar__card {
  background: var(--amber-pale);
  border: 1px solid var(--amber-mid);
  border-top: var(--bar) solid var(--amber);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden; /* clips ::after to card bounds — prevents bounce and overlap */
}
.art-sidebar__main {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.art-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.art-sidebar__eyebrow {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4);
}
.art-sidebar__age {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 500;
  padding: 2px 9px; border-radius: 99px;
  background: var(--blue-xpale);
  color: var(--blue-night);
  border: 1px solid var(--dusk-pale);
  white-space: nowrap;
  flex-shrink: 0;
}
.art-sidebar__stars {
  color: var(--amber);
  font-size: 12px; letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.art-sidebar__title {
  font-family: var(--display); font-weight: 400;
  font-size: 15px; line-height: 1.22;
  color: var(--ink); margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.art-sidebar__features {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.art-sidebar__features li {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-2);
}
.art-sidebar__price {
  font-family: var(--sans);
  font-size: 13px; color: var(--ink-3);
  margin: 0 0 12px;
}
.art-sidebar__btn {
  width: 100%;
  justify-content: center;
  padding: 11px 14px;
  font-size: 13.5px;
  position: relative;
  z-index: 1; /* sits above the ::after overlay */
}
/* Whole-card click: stretch button hit area to card edges.
   .art-sidebar__card is position:relative, so these values reach its edges. */
.art-sidebar__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Expand upward/sideways to reach card edges from button position.
     These are bounded by the card's position:relative — no overflow. */
  top: -300px; bottom: -100px; left: -100px; right: -100px;
}
/* Ensure all card content sits above the overlay */
.art-sidebar__main > *,
.art-sidebar__testimonial { position: relative; z-index: 1; }

/* Sidebar testimonial zone */
.art-sidebar__testimonial {
  border-top: 1px solid var(--amber-mid);
  padding: 12px 18px 14px;
  background: rgba(253,250,245,0.55);
}
.art-sidebar__tstars {
  color: var(--amber);
  font-size: 11px; letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.art-sidebar__quote {
  font-family: var(--reading);
  font-style: italic;
  font-size: 12.5px; line-height: 1.60;
  color: var(--ink-2);
  margin: 0 0 10px;
  border: 0; padding: 0; background: none;
}
.art-sidebar__tfoot {
  display: flex; align-items: center; gap: 8px;
}
.art-sidebar__tavatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-deep);
  border: 1.5px solid var(--dusk);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: #fff; flex-shrink: 0;
}
.art-sidebar__tname {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  color: var(--ink);
}
.art-sidebar__tmeta {
  font-family: var(--sans); font-size: 11px;
  color: var(--ink-3);
}

/* Mobile + tablet (below 1024px): compact inline card styles */
@media (max-width: 1023px) {
  /* Hide program-level stars on mobile — testimonial stars are enough */
  .art-sidebar__stars { display: none; }
  /* Hide feature list — keep card compact */
  .art-sidebar__features { display: none; }
  /* Hide name/avatar in testimonial — stars + quote is enough */
  .art-sidebar__tfoot { display: none; }
  /* Append guarantee to price line */
  .art-sidebar__price::after {
    content: " · No crying, guaranteed";
    color: var(--ink-3);
  }
  .art-sidebar__card { border-radius: var(--radius); }
}

/* ── Article trust close ─────────────────────────────────────── */
.art-trust-close {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.art-author-bio {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 20px;
}
.art-author-bio__photo {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover; object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--dusk-pale);
}
.art-author-bio__text { flex: 1; min-width: 0; }
.art-author-bio__name {
  display: block;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  margin-bottom: 6px;
}
.art-author-bio__name:hover { color: var(--blue-mid); }
.art-author-bio__body {
  font-family: var(--reading);
  font-size: 14.5px; line-height: 1.68;
  color: var(--ink-2); margin: 0 0 10px;
}
.art-author-bio__link {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--blue-mid); text-decoration: none;
}
.art-author-bio__link:hover { text-decoration: underline; }

/* Pediatrician badge at article close */
.art-ped-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: var(--blue-xpale);
  border: 1px solid var(--dusk-pale);
  border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-2); margin-bottom: 16px;
}
.art-ped-badge a { color: var(--blue-mid); }

/* Disclaimer — quiet, small, ink-3 */
.art-disclaimer {
  font-family: var(--sans);
  font-size: 12px; line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* ── Contents box — numbered jump list for long articles ────────
   Used when an article has 5+ named sections worth linking to.
   Floats right on desktop (1024px+), full width below.
   Dusk top border signals "structured list" (matches art-card).
   Links styled as ink-2, not body-link blue — navigation not prose.
   ─────────────────────────────────────────────────────────────── */
.contents-box {
  background: var(--ivory);
  border: 1px solid var(--dusk-pale);
  border-top: 3px solid var(--dusk);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}
.contents-box__label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 14px;
}
.contents-box ol {
  padding-left: 1.5em;
  margin: 0;
}
.contents-box li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.contents-box li + li {
  margin-top: 8px;
}
.contents-box a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--dusk);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.contents-box a:hover {
  color: var(--blue-mid);
  text-decoration-color: var(--blue-mid);
}

/* Desktop only: float right with text wrap */
@media (min-width: 1024px) {
  .contents-box--float {
    float: right;
    width: 290px;
    margin: 4px 0 24px 32px;
  }
}

/* ── Contents box — numbered jump list for long articles ────────
   Used when an article has 5+ named sections worth linking to.
   Floats right on desktop (1024px+) with text wrapping left.
   Full width, no float on tablet and mobile.
   Dusk top border signals "structured list" (matches art-card).
   Links styled as ink-2, not body-link blue — navigation not prose.
   ─────────────────────────────────────────────────────────────── */
.contents-box {
  background: var(--ivory);
  border: 1px solid var(--dusk-pale);
  border-top: 3px solid var(--dusk);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 24px;
}
.contents-box__label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 14px;
}
.contents-box ol {
  padding-left: 1.5em;
  margin: 0;
}
.contents-box li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.contents-box li + li {
  margin-top: 8px;
}
.contents-box a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--dusk);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.contents-box a:hover {
  color: var(--blue-mid);
  text-decoration-color: var(--blue-mid);
}

/* Desktop only: float right so prose wraps around the box */
@media (min-width: 1024px) {
  .contents-box--float {
    float: right;
    width: 290px;
    margin: 4px 0 24px 32px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   PROGRAMS PAGE COMPONENTS
   baby-sleep-programs.html
   Editorial decider layout: hero + 4 parent-voice tiles +
   flagship block + 3 focused cards + comparison + trust + FAQ.
   All within Blue Hour design system. No new tokens introduced.
═══════════════════════════════════════════════════════════════ */

/* ── Page header ─────────────────────────────────────────────
   The one warm question. H1 sits inside container, lead in
   Lora, Caveat note hanging beneath as the soft whisper. */
.progs-header {
  background: var(--ivory);
  text-align: center;
  padding-top: 32px;
}
.progs-header__inner {
  max-width: 760px;
  margin: 0 auto;
}
.progs-header .eyebrow { justify-content: center; }
.progs-header__inner h1 em {
  font-style: italic;
  color: var(--amber);
}

/* ── Decider strip ───────────────────────────────────────────
   Four parent-voice tiles. Mobile: 2x2. Desktop: 4 across.
   The single most important conversion moment on the page:
   each tile scroll-anchors to its matching program block. */
.progs-decider {
  background: var(--ivory);
  padding-top: 8px;
}
.progs-decider__intro {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin: 0 0 24px;
}
.decider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 880px) {
  .decider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

.decider-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 20px;
  background: var(--warm-white);
  border: 1px solid var(--dusk-pale);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .24s ease,
              border-color .2s ease, background .2s ease;
  position: relative;
  min-height: 110px;
}
.decider-tile:hover {
  transform: translateY(-3px);
  background: var(--ivory);
  border-color: var(--dusk-lt);
  box-shadow: var(--shadow-blue);
}
.decider-tile:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
}
.decider-tile__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--amber-pale);
  color: var(--amber);
  flex-shrink: 0;
}
.decider-tile__copy {
  font-family: var(--reading);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
}
.decider-tile__copy em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500;
}

@media (min-width: 880px) {
  .decider-tile { min-height: 138px; padding: 22px 20px 24px; }
  .decider-tile__copy { font-size: 16px; }
}

/* Scroll-arrival pulse on the destination program block.
   Triggered by JS adding .prog-arrival for ~2.4s. */
@keyframes prog-arrival-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,139,144,0.45); }
  60%  { box-shadow: 0 0 0 12px rgba(201,139,144,0.00); }
  100% { box-shadow: 0 0 0 0 rgba(201,139,144,0.00); }
}
.prog-arrival {
  animation: prog-arrival-pulse 2.0s ease-out 1;
}
.prog-arrival > .prog-feature,
.prog-arrival.prog-card {
  /* slight ring while pulse plays */
  outline: 2px solid var(--amber);
  outline-offset: -1px;
  border-radius: var(--radius-lg);
  transition: outline-color .4s ease;
}
.prog-arrival > .prog-feature {
  outline-offset: 4px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .prog-arrival { animation: none; }
  .decider-tile { transition: none; }
}

/* ── Flagship block: Overcome Frequent Waking ────────────────
   Full-width editorial. Larger than .prog-card. Amber accent
   bar on top (component-internal accent, same precedent as
   .prog-card--flagship). Image left, body right on desktop;
   stacked on mobile. */
.progs-flagship {
  background: var(--ivory);
}
.prog-feature {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  border-top: var(--bar) solid var(--amber);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-warm);
  position: relative;
}
@media (min-width: 880px) {
  .prog-feature {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
  }
}

.prog-feature__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
@media (min-width: 880px) {
  .prog-feature__media { aspect-ratio: auto; min-height: 100%; }
}
.prog-feature__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}
.prog-feature__badges {
  position: absolute; top: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 2;
  gap: 8px;
}

.prog-feature__body {
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 880px) {
  .prog-feature__body {
    padding: 44px 48px 44px 40px;
  }
}

.prog-feature__eyebrow {
  font-size: 24px;
  color: var(--amber);
  margin-bottom: 6px;
}

.prog-feature__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.prog-feature__title em {
  font-style: italic;
  color: var(--amber);
}

.prog-feature__desc {
  font-family: var(--reading);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0 0 18px;
}

.prog-feature__stars {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.prog-feature__stars-meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prog-feature__included {
  margin: 0 0 22px;
  padding: 18px 20px;
  background: var(--amber-pale);
  border-radius: var(--radius);
  border: 1px solid var(--amber-mid);
}
.prog-feature__included .whisper-label {
  margin-bottom: 10px;
}
.prog-feature__list {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}
.prog-feature__list li {
  font-family: var(--reading);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 24px;
  position: relative;
}
.prog-feature__list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.7;
}
.prog-feature__list strong { color: var(--ink); font-weight: 600; }
.prog-feature__list--bonus {
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px dashed var(--amber-mid);
}
.prog-feature__list--bonus::before {
  top: 18px !important;
  background: var(--amber) !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
}

.prog-feature__quote {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: var(--bar) solid var(--dusk);
  font-family: var(--reading);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.prog-feature__quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.prog-feature__foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 4px;
}
@media (min-width: 600px) {
  .prog-feature__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}
.prog-feature__price-block {
  display: flex; flex-direction: column; gap: 4px;
}
.prog-feature__price {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.prog-feature__guarantee {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.prog-feature__cta {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
  flex-shrink: 0;
}
.prog-feature__cta:hover {
  background: var(--amber-lt);
  border-color: var(--amber-lt);
  color: #fff;
}

/* ── Focused programs section ───────────────────────────────── */
.progs-focused__sub {
  font-family: var(--reading);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 10px 0 0;
}

/* Stack the 3 focused cards to one column on mobile */
@media (max-width: 640px) {
  .progs-focused .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Comparison table ────────────────────────────────────────
   Collapsed by default on all viewports via <details>. The
   table itself is horizontally scrollable on narrow viewports
   so the 5 columns (label + 4 programs) never crush. */
.progs-compare {
  background: var(--ivory);
}
.sec-head--center {
  justify-content: center;
  text-align: center;
}
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center h2 { max-width: 100%; }

.compare-wrap {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.compare-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  list-style: none;
  user-select: none;
  transition: background .2s ease, color .2s ease;
}
.compare-toggle::-webkit-details-marker { display: none; }
.compare-toggle:hover {
  background: var(--amber-pale);
  color: var(--ink);
}
.compare-toggle__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink-3);
  transition: transform .25s ease, background .2s ease,
              border-color .2s ease, color .2s ease;
}
.compare-wrap[open] .compare-toggle__icon {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: #fff;
  transform: rotate(180deg);
}
.compare-wrap[open] .compare-toggle {
  border-bottom: 1px solid var(--line);
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-2);
  line-height: 1.5;
}
.compare-table thead th {
  background: var(--amber-pale);
  border-bottom: 2px solid var(--amber-mid);
  vertical-align: bottom;
  padding-top: 22px;
  padding-bottom: 18px;
}
.compare-table tbody th[scope="row"] {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  background: var(--warm-white);
  width: 160px;
  border-right: 1px solid var(--line-2);
}
.compare-table__rowhead {
  background: var(--amber-pale) !important;
  width: 160px;
}
.compare-table__name {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: color .15s ease;
}
.compare-table__name:hover { color: var(--amber); }
.compare-table__pillanchor {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare-table__price-row td { font-size: 16px; }
.compare-table__price-row strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}
.compare-table__cta-row th,
.compare-table__cta-row td {
  border-bottom: none;
  padding-top: 18px;
  padding-bottom: 22px;
  background: var(--warm-white);
}

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

/* ── Trust strip ─────────────────────────────────────────────
   Calm row of stat blocks. No amber bar above (that's reserved
   for the structural .trust-row above the final CTA). */
.progs-trust {
  background: var(--warm-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.progs-trust__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 720px) {
  .progs-trust__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px;
  }
}
.progs-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.progs-trust__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.progs-trust__label {
  font-family: var(--reading);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 22ch;
}
.progs-trust__item--award .progs-trust__award-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.progs-trust__item--award .progs-trust__award-name {
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 4px;
}

/* ── FAQ , reuse existing .faq-item / .faq-q / .faq-a / .caret
   but driven by <details>/<summary> instead of JS .open class.
   Visually identical to existing FAQ pattern. ──────────────── */
.progs-faq {
  background: var(--warm-white);
}
.progs-faq .sec-head {
  margin-bottom: 24px;
  justify-content: flex-start;
}
.progs-faq__note {
  margin-top: 8px;
  font-size: 22px;
  color: var(--amber);
}

.progs-faq .faq-list {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}

/* <details>/<summary> styling , overrides for native widget */
.progs-faq .faq-item summary.faq-q {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.progs-faq .faq-item summary.faq-q::-webkit-details-marker { display: none; }
.progs-faq .faq-item summary.faq-q::marker { content: ""; }

/* Rotate caret + style change when <details> is open */
.progs-faq .faq-item[open] .caret {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: #fff;
  transform: rotate(45deg);
}


/* ═══════════════════════════════════════════════════════════════
   OUTCOME-LED CARD HEADLINE PATTERN
   The H2/H3 inside .prog-feature, .prog-card and .art-sidebar now
   carries an outcome-led headline ("Sleep through the night").
   The program name is demoted to a quiet subtitle directly below.
   Italic Lora at 14px in muted ink-3.
═══════════════════════════════════════════════════════════════ */

.prog-feature__subtitle {
  font-family: var(--reading);
  font-style: italic;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-3);
  margin: -8px 0 16px;
  letter-spacing: 0.01em;
}

.prog-card__subtitle {
  font-family: var(--reading);
  font-style: italic;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-3);
  margin: -2px 0 10px;
  letter-spacing: 0.01em;
}

.art-sidebar__subtitle {
  font-family: var(--reading);
  font-style: italic;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-3);
  margin: -2px 0 10px;
  letter-spacing: 0.01em;
}

/* ── Video-style image wrapper for prog-cards ─────────────────
   Cards whose image is a video preview (GIF/MP4) keep the same
   4/3 wrap as photo cards (so text aligns across the row), but
   the image displays at its natural aspect ratio via contain.
   Apply alongside .prog-card__img-wrap. */
.prog-card__img-wrap--video {
  background: var(--ivory);
}
.prog-card__img-wrap--video .prog-card__img {
  object-fit: contain;
  object-position: center top;
}

/* ── Scroll-anchor offset for sticky header ──────────────────
   Universal: any element targeted via #anchor gets clearance
   above so its top edge isn't hidden behind the sticky nav.
   Covers modern id="" anchors and the legacy <a name=""> pattern
   still used in older articles. Applies sitewide automatically,
   no per-ID maintenance required. Only activates when scrolled
   to via an anchor link, no side effects elsewhere.
   Works on mobile, tablet, and desktop. */
[id], a[name] {
  scroll-margin-top: 80px;
}

/* ── Dollar sign uses the sans font (single-stroke glyph) ─────
   Playfair Display renders $ with a double stroke; wrapping the
   symbol in .price-symbol and setting DM Sans gives the more
   familiar single-stroke $. */
.price-symbol {
  font-family: var(--sans);
}

/* ── Comparison table: fixed column widths for consistency ───
   Row-label column plus four program columns. OFW (column 2) is
   wider as the flagship; the other three are equal.
   For all four equal instead: set columns 2-5 all to 21%. */
.compare-table thead th:nth-child(1) { width: 16%; }
.compare-table thead th:nth-child(2) { width: 24%; }
.compare-table thead th:nth-child(3),
.compare-table thead th:nth-child(4),
.compare-table thead th:nth-child(5) { width: 20%; }

/* ── Secondary note inside a comparison row label ────────────
   Sentence-case parenthetical under the uppercase row title.
   Overrides the label's uppercase and letter-spacing so it
   reads as quiet fine print, not a shouted caption. */
.compare-table__note {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-4);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: baby-sleep-advice.html (Advice hub)
   The topic-index hub. Header + start cards + four clusters of
   topic cards + footer connectors.
   No new amber bar structural uses. Uses --reading and --sans only.
   ═══════════════════════════════════════════════════════════════ */

/* ── Hub hero ────────────────────────────────────────────────
   Soft sky wash background (section--dusk-wash). Lead in Lora
   for reading warmth. Tagline in italic Playfair amber: the
   "Truly no tears" punch.
────────────────────────────────────────────────────────────── */
.hub-hero { max-width: 680px; }
.hub-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hub-hero__lead {
  font-family: var(--reading);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 60ch;
}
.hub-hero__tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--amber);
  margin: 0;
  letter-spacing: -0.01em;
}
.hub-hero__tagline sup {
  font-size: 0.5em;
  font-style: normal;
  margin-left: 3px;
  vertical-align: super;
  font-family: var(--sans);
  color: var(--amber);
}

/* ── Cluster head: lean h2 category label + intro paragraph ─ */
.cluster-head {
  max-width: 640px;
  margin-bottom: 32px;
}
.cluster-head h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cluster-head__intro {
  font-family: var(--reading);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-2);
  margin: 0;
  max-width: 62ch;
}

/* ── Topic grid + topic cards (the "mini cards") ───────────
   Icon + title + chevron. 1-col mobile, 2-col tablet, 3-col wide.
   On warm sections, the icon swatch inverts to amber-pale.
────────────────────────────────────────────────────────────── */
.topic-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px)  { .topic-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (min-width: 1024px) { .topic-grid { grid-template-columns: 1fr 1fr 1fr; } }

.topic-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  min-height: 64px;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .18s;
  position: relative;
}
.section--warm .topic-card { background: #fff; }
.topic-card:hover {
  border-color: var(--dusk);
  background: var(--blue-xpale);
  box-shadow: 0 4px 12px rgba(42,95,122,0.06);
  text-decoration: none;
  color: var(--ink);
}
.topic-card:active { transform: scale(0.995); }

.topic-card__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-xpale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-mid);
  transition: background .15s, color .15s;
}
.section--warm .topic-card__icon { background: var(--amber-pale); color: var(--amber); }
.topic-card:hover .topic-card__icon { background: #fff; }
.section--warm .topic-card:hover .topic-card__icon { background: var(--blue-xpale); color: var(--blue-mid); }
.topic-card__icon svg { width: 18px; height: 18px; }

.topic-card__title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.32;
  flex: 1;
  letter-spacing: -0.005em;
}
.topic-card__title sup {
  font-size: 0.55em;
  vertical-align: super;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 2px;
}
.topic-card__note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.topic-card__new {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

.topic-card__arrow {
  flex-shrink: 0;
  color: var(--ink-4);
  font-size: 18px;
  margin-left: 4px;
  font-family: var(--display);
  transition: transform .2s, color .15s;
}
.topic-card:hover .topic-card__arrow {
  color: var(--blue-mid);
  transform: translateX(2px);
}

/* ── Footer connectors: Product recs + Care professionals ── */
.connectors__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: 640px;
}
.connectors__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .15s;
}
.connectors__list li:first-child .connectors__link { border-top: 1px solid var(--line); }
.connectors__link:hover { color: var(--amber); text-decoration: none; }
.connectors__link .arrow {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-4);
  transition: transform .2s, color .15s;
}
.connectors__link:hover .arrow { transform: translateX(3px); color: var(--amber); }

/* ════════════════════════════════════════════════════════════
   NAV SEARCH: icon trigger + dropdown panel
   Desktop: panel drops down from icon, right-aligned.
   Mobile (overlay): inline expansion below overlay head.
   Toggle button shows magnifying glass when closed, X when open
   (controlled via aria-expanded for accessibility + CSS).
   ═══════════════════════════════════════════════════════════ */

/* ── Search trigger button (desktop, in nav-cta) ─────────── */
.nav-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  cursor: pointer;
  transition: color .15s, background .15s;
  padding: 0;
  flex-shrink: 0;
}
.nav-search-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-search-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Toggle open/close icon swap based on aria-expanded */
.nav-search-toggle__close { display: none; }
.nav-search-toggle[aria-expanded="true"] .nav-search-toggle__open { display: none; }
.nav-search-toggle[aria-expanded="true"] .nav-search-toggle__close { display: block; }
.nav-search-toggle[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ── Desktop search panel (drops down from trigger) ──────── */
.nav-search-panel {
  position: absolute;
  top: 100%;
  right: 16px;
  margin-top: 6px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 12px 36px rgba(42, 95, 122, 0.16);
  z-index: 95;
  animation: nav-search-panel-in .18s ease-out;
}
.nav-search-panel[hidden] { display: none; }

@keyframes nav-search-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Search form (used in both desktop panel and mobile overlay) ── */
.nav-search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.nav-search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 16px; /* 16px minimum prevents iOS Safari from auto-zooming on focus */
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.nav-search-input::placeholder { color: var(--ink-4); }
.nav-search-input:focus { border-color: var(--blue-mid); }

.nav-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--blue-mid);
  background: var(--blue-mid);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.nav-search-submit:hover { background: var(--dusk); border-color: var(--dusk); }
.nav-search-submit:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* On mobile, switch the desktop panel to viewport-anchored positioning.
   Avoids ancestor containing-block quirks (esp. iOS Safari sticky + keyboard
   interactions) that can cause horizontal overflow when typing in the input. */
@media (max-width: 880px) {
  .nav-search-panel {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    margin-top: 0;
  }
}

/* ── Mobile: overlay head actions group + search trigger ─── */
.nav-overlay__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-overlay__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
  padding: 0;
}
.nav-overlay__search-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-overlay__search-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Icon swap for overlay search toggle */
.nav-overlay__search-toggle .nav-search-toggle__close { display: none; }
.nav-overlay__search-toggle[aria-expanded="true"] .nav-search-toggle__open { display: none; }
.nav-overlay__search-toggle[aria-expanded="true"] .nav-search-toggle__close { display: block; }
.nav-overlay__search-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }

/* ── Mobile search panel (inline below overlay head) ────── */
.nav-overlay__search {
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--blue-deep-3);
  background: var(--blue-night);
  animation: nav-search-panel-in .18s ease-out;
}
.nav-overlay__search[hidden] { display: none; }

/* On mobile inside the overlay, input has slightly different palette
   so it stands out on the dark blue background */
.nav-overlay__search .nav-search-input {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
}
