/* ═══════════════════════════════════════════════════════════════════
   BUNDLE EXPANSION — inline "View Details" collapsible link
   Triggered by a small text link injected next to each bundle's Add to Cart.
   Expands inline below the bundle card to show the full bundle details
   without navigating to a separate page.

   Models the product-row layout from supplements.html's Longevity bundle.
   ═══════════════════════════════════════════════════════════════════ */

.bundle-details-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px auto 0;
  padding: 4px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--gold);
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  line-height: 1;
  align-self: center;  /* center within flex parents like .bundle-body */
}
/* When the toggle + expansion live inside .concern-card-content-side (the new
   desktop placement — between routine-directions tab and the subscribe toggle),
   give them proper standalone-row treatment in the flex column. */
.concern-card-content-side > .bundle-details-toggle {
  align-self: center;
  margin: 8px auto 4px;
  padding: 10px 0;
  width: 100%;
  max-width: 220px;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
}
.concern-card-content-side > .bundle-details-toggle:hover {
  border-top-color: var(--ink);
  border-bottom-color: var(--ink);
}
.concern-card-content-side > .bundle-details-toggle.is-open {
  border-top-color: var(--gold);
  border-bottom-color: var(--gold);
}
.concern-card-content-side > .bundle-expansion {
  margin-top: 4px;
  margin-bottom: 8px;
  border-top: none;
  /* When expansion is empty/closed inside the flex column, don't reserve space */
}
.concern-card-content-side > .bundle-expansion.is-open {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 800px) {
  .concern-card-content-side > .bundle-details-toggle {
    max-width: 180px;
    margin: 6px auto 2px;
  }
}

/* When inserted into the concern-actions grid as a third item, span all columns
   so it forms its own centered row below the Preview/Add buttons */
.concern-actions .bundle-details-toggle {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 16px;
}
.bundle-details-toggle:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.bundle-details-toggle .toggle-icon {
  display: inline-block;
  font-size: 9px;
  transition: transform 0.3s;
  margin-top: -1px;
}
.bundle-details-toggle.is-open .toggle-icon { transform: rotate(180deg); }
.bundle-details-toggle.is-open {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

/* On the Ultimate dark hero panel, lighter color inversion */
.hero-bundle-panel .bundle-details-toggle {
  color: var(--gold);
}
.hero-bundle-panel .bundle-details-toggle:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}
.hero-bundle-panel .bundle-details-toggle.is-open {
  color: var(--cream);
  border-bottom-color: rgba(250, 246, 240, 0.3);
}

/* The expansion container — lives INSIDE the card body and the card box just
   grows when opened. No separate background, no border (besides a hairline
   divider at top to separate from the View Details link), no internal scroll. */
.bundle-expansion {
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, padding 0.4s ease, margin-top 0.4s ease;
}
.bundle-expansion.is-open {
  /* 50000px is effectively unlimited — content displays in full, page scrolls if needed */
  max-height: 50000px;
  padding-top: 26px;
}

/* When the expansion is a child of the Ultimate hero (.hero-bundle is a 2-col grid),
   make it span the full row beneath the img + content columns. Cream background so
   the body text reads correctly (.hero-bundle has a dark background). */
.hero-bundle > .bundle-expansion {
  grid-column: 1 / -1;
  background: var(--cream);
  color: var(--ink);
  margin-top: 0;
  border-top: 1px solid var(--gold);
}
.hero-bundle > .bundle-expansion.is-open {
  padding: 32px 50px;
}
@media (max-width: 800px) {
  .hero-bundle > .bundle-expansion.is-open {
    padding: 24px 22px;
  }
}

.bundle-exp-section { margin-bottom: 36px; }
.bundle-exp-section:last-child { margin-bottom: 0; }
.bundle-exp-h {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

/* ───────── Collapsible section pattern ─────────
   When .bundle-exp-h is a <button class="bundle-exp-toggle">, it becomes a
   clickable header that toggles the section's content open/closed. The base
   .bundle-exp-h styles still apply (typography, border, etc.) — we only
   override the button-specific user-agent defaults and lay out the +/− icon. */
button.bundle-exp-h.bundle-exp-toggle {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  /* Re-assert .bundle-exp-h typography so button user-agent styles don't override */
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  padding: 0 0 10px;
  transition: color 0.25s;
}
button.bundle-exp-h.bundle-exp-toggle:hover {
  color: var(--ink);
}
button.bundle-exp-h.bundle-exp-toggle:focus-visible {
  outline: 1px dashed var(--gold);
  outline-offset: 4px;
}
.bundle-exp-toggle .exp-h-label {
  flex: 1;
  line-height: 1.2;
}
.bundle-exp-toggle .exp-h-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-soft);
  letter-spacing: 0;            /* override parent letter-spacing for the symbol */
  transition: color 0.25s, transform 0.3s;
  flex-shrink: 0;
}
button.bundle-exp-h.bundle-exp-toggle:hover .exp-h-icon { color: var(--ink); }
/* Icon glyph swaps based on section state via ::before */
.bundle-exp-section.is-collapsible .exp-h-icon::before {
  content: '+';
}
.bundle-exp-section.is-collapsible.is-open .exp-h-icon::before {
  content: '−';
}

/* Content collapse animation. Default state (when .is-open) is fully visible.
   When .is-open is removed, content collapses to 0 height and 0 opacity. */
.bundle-exp-section.is-collapsible > .bundle-exp-content {
  overflow: hidden;
  max-height: 9000px;
  opacity: 1;
  transition: max-height 0.45s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.bundle-exp-section.is-collapsible:not(.is-open) > .bundle-exp-content {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
/* When collapsed, tighten the header margin since there's nothing below it */
.bundle-exp-section.is-collapsible:not(.is-open) > .bundle-exp-h.bundle-exp-toggle {
  margin-bottom: 0;
}

/* Skincare section sub-routine sub-headers (AM / PM grouped) */
.bundle-exp-subroutine { margin-bottom: 28px; }
.bundle-exp-subroutine:last-child { margin-bottom: 0; }
.bundle-exp-subroutine-h {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
}

.bundle-why-block {
  background: var(--cream-warm);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

/* Product rows — modeled after .row in supplements.html (Longevity bundle) */
.bundle-exp-rows { display: flex; flex-direction: column; }
.bundle-exp-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.3s, background 0.3s;
}
.bundle-exp-row:hover {
  padding-left: 6px;
  background: rgba(184, 153, 104, 0.04);
}
.bundle-exp-row:last-child { border-bottom: none; }

.bundle-exp-row-img {
  width: 64px; height: 64px;
  border: 1px solid var(--rule);
  background: linear-gradient(140deg, var(--tan) 0%, var(--cream) 60%, var(--tan) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  align-self: start;
}
.bundle-exp-row-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bundle-exp-row-img::after {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid var(--gold);
  opacity: 0.3;
  pointer-events: none;
}

.bundle-exp-row-content { min-width: 0; }
.bundle-exp-row-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 500;
}
.bundle-exp-row-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 4px;
}
.bundle-exp-row-name em { font-style: italic; color: var(--sage); }
.bundle-exp-row-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 95%;
  margin-bottom: 10px;
}
/* Compact mode: shop section spans content column under name/desc as a horizontal row */
.bundle-exp-row-shop {
  grid-column: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bundle-exp-row-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0;
  flex-shrink: 0;
}
.bundle-exp-row-link {
  display: inline-block;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.3s;
  white-space: nowrap;
}
.bundle-exp-row-link:hover { color: var(--sage); }

.bundle-exp-row-add {
  display: inline-block;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}
.bundle-exp-row-add:hover { background: var(--sage); }

/* Timeline */
.bundle-exp-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.bundle-exp-timeline-item {
  background: var(--cream-warm);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--sage);
  padding: 18px 20px;
}
.bundle-exp-timeline-week {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.bundle-exp-timeline-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

/* FAQ accordion */
.bundle-exp-faq { display: flex; flex-direction: column; }
.bundle-exp-faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 15px 0;
  cursor: pointer;
}
.bundle-exp-faq-item:first-child { border-top: 1px solid var(--rule); }
.bundle-exp-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.bundle-exp-faq-q > span:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
}
.bundle-exp-faq-toggle {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform 0.3s;
}
.bundle-exp-faq-item.is-open .bundle-exp-faq-toggle { transform: rotate(45deg); }
.bundle-exp-faq-a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding-top 0.3s;
}
.bundle-exp-faq-item.is-open .bundle-exp-faq-a {
  max-height: 400px;
  padding-top: 12px;
}

/* ═══ STUDIES SECTION — peer-reviewed research aggregated from ingredients ═══ */
.bundle-exp-studies {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bundle-exp-study {
  background: var(--cream-warm);
  border-left: 3px solid var(--gold);
  padding: 18px 22px 20px;
}
.bundle-exp-study-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.bundle-exp-study-type {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--sage);
  font-weight: 500;
  padding: 3px 9px;
  white-space: nowrap;
}
.bundle-exp-study-ing {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.bundle-exp-study-ing:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.bundle-exp-study-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}
.bundle-exp-study-cite {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.4;
}
.bundle-exp-study-cite em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}
.bundle-exp-study-finding {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}

/* ═══ ROUTINE STEPS (AM / PM / supplements — numbered list) ═══ */
.bundle-exp-routine {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bundle-exp-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 16px;
  background: var(--cream);
  border-left: 2px solid var(--gold);
}
.bundle-exp-step-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  font-weight: 500;
  padding-top: 2px;
}
.bundle-exp-step-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}
.bundle-exp-step-note {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ═══ MECHANISMS (problem → solution rows) ═══ */
.bundle-exp-mech-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 18px;
}
.bundle-exp-mechanisms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bundle-exp-mech {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--rule);
}
.bundle-exp-mech-problem {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
}
.bundle-exp-mech-arrow {
  color: var(--gold);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 300;
}
.bundle-exp-mech-solution {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ═══ AUDIENCE (Who It's For — Yes / Not for you cards) ═══ */
.bundle-exp-audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bundle-exp-audience-card {
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
}
.bundle-exp-audience-card.no {
  border-top-color: var(--ink-soft);
  opacity: 0.85;
}
.bundle-exp-audience-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.bundle-exp-audience-card.no .bundle-exp-audience-tag { color: var(--ink-soft); }
.bundle-exp-audience-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

/* ═════════════════════════════════════════════════════════════════════
   MOBILE (≤ 800px) — readability boost + compact layouts
   Bumps all small text (section headers, tags, captions, body) to sizes
   that are comfortable to read on phones, with looser line-heights.
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {

  /* ─── expansion container ─────────────────────────────────────── */
  .bundle-expansion { padding: 0 18px; }
  .bundle-expansion.is-open { padding-top: 22px; }
  .bundle-exp-section { margin-bottom: 32px; }

  /* ─── SECTION HEADERS — slightly bigger, less aggressive tracking ── */
  .bundle-exp-h,
  button.bundle-exp-h.bundle-exp-toggle {
    font-size: 11px;
    letter-spacing: 0.22em;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  button.bundle-exp-h.bundle-exp-toggle { padding-top: 0; padding-left: 0; padding-right: 0; }
  /* Sub-routine header (AM/PM under Skincare) — mobile sizing */
  .bundle-exp-subroutine-h {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  .bundle-exp-subroutine { margin-bottom: 24px; }

  /* ─── PRODUCT ROWS — image + content stack (compact) ──────────── */
  .bundle-exp-row {
    grid-template-columns: 72px 1fr;
    column-gap: 14px;
    row-gap: 10px;
    min-height: 0;
    padding: 18px 0;
  }
  .bundle-exp-row-img { width: 72px; height: 72px; }
  .bundle-exp-row-tag {
    font-size: 10.5px;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
  }
  .bundle-exp-row-name { font-size: 20px; line-height: 1.2; }
  .bundle-exp-row-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .bundle-exp-row-shop {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .bundle-exp-row-price { font-size: 24px; flex: 0 0 auto; }
  .bundle-exp-row-link {
    display: inline-block;
    width: auto;
    font-size: 10.5px;
    padding: 4px 0;
    white-space: nowrap;
  }
  .bundle-exp-row-add {
    display: inline-block;
    width: auto;
    padding: 9px 16px;
    font-size: 11px;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  /* ─── WHY THIS STACK WORKS block ──────────────────────────────── */
  .bundle-why-block {
    padding: 20px 22px;
    font-size: 16px;
    line-height: 1.65;
  }

  /* ─── MECHANISMS (Why This Stack Works · Mechanism by Mechanism) ── */
  .bundle-exp-mech-lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .bundle-exp-mech {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .bundle-exp-mech-arrow { display: none; }
  .bundle-exp-mech-problem { font-size: 17px; }
  .bundle-exp-mech-solution {
    font-size: 14px;
    line-height: 1.6;
  }

  /* ─── WHO THIS IS FOR (Yes / Not for you cards) ───────────────── */
  .bundle-exp-audience { grid-template-columns: 1fr; gap: 12px; }
  .bundle-exp-audience-card { padding: 18px 20px; }
  .bundle-exp-audience-tag {
    font-size: 10.5px;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
  }
  .bundle-exp-audience-text {
    font-size: 16px;
    line-height: 1.6;
  }

  /* ─── ROUTINE STEPS (AM / PM / supplements) ───────────────────── */
  .bundle-exp-step {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .bundle-exp-step-num { font-size: 22px; padding-top: 3px; }
  .bundle-exp-step-name { font-size: 18px; line-height: 1.25; }
  .bundle-exp-step-note {
    font-size: 13px;
    line-height: 1.55;
  }

  /* ─── STUDIES (Peer-Reviewed Research) ────────────────────────── */
  .bundle-exp-study { padding: 18px 20px; }
  .bundle-exp-study-meta { gap: 10px; margin-bottom: 10px; }
  .bundle-exp-study-type {
    font-size: 10px;
    letter-spacing: 0.18em;
    padding: 4px 10px;
  }
  .bundle-exp-study-ing {
    font-size: 11px;
    letter-spacing: 0.18em;
  }
  .bundle-exp-study-title {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .bundle-exp-study-cite {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.5;
  }
  .bundle-exp-study-finding {
    font-size: 15px;
    line-height: 1.6;
  }

  /* ─── TIMELINE ────────────────────────────────────────────────── */
  .bundle-exp-timeline { gap: 12px; }
  .bundle-exp-timeline-week { font-size: 11px; letter-spacing: 0.18em; }
  .bundle-exp-timeline-text { font-size: 14px; line-height: 1.55; }

  /* ─── FAQ ─────────────────────────────────────────────────────── */
  .bundle-exp-faq-q { font-size: 15px; padding: 16px 0; }
  .bundle-exp-faq-a { font-size: 14px; line-height: 1.65; }
}

/* ═══════════════════════════════════════════════════════════════════════
   DETAIL-PAGE EXPANSION — body[data-bundle-detail-page="1"]

   On individual bundle pages (routine.html), the expansion mounts inside
   #bundle-expansion-target as a "View Full Details ▾" dropdown. Default
   state: collapsed. Click the toggle to expand. Interior sections stay
   always-open inside the expansion (no nested collapse).
   ═══════════════════════════════════════════════════════════════════════ */

/* The outer expansion respects .is-open via the base .bundle-expansion rules
   (max-height: 0 → 50000px transition). The detail-page variant just removes
   the inline-decoration that doesn't suit a full-width page context. */
.bundle-expansion.is-detail-page-expansion {
  margin-top: 0;
  border-top: none;
}
.bundle-expansion.is-detail-page-expansion.is-open {
  padding-top: 36px;
  padding-bottom: 12px;
}

/* The prominent page-level toggle button — full-width, clear, hard to miss */
.bundle-details-toggle.bundle-details-toggle-page {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 32px;
  background: var(--cream-warm);
  border: 1px solid var(--rule);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  margin: 0;
}
.bundle-details-toggle.bundle-details-toggle-page:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--gold);
}
.bundle-details-toggle.bundle-details-toggle-page .toggle-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.bundle-details-toggle.bundle-details-toggle-page.is-open .toggle-icon {
  transform: rotate(180deg);
}
.bundle-details-toggle.bundle-details-toggle-page.is-open {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* The bundle-expansion-target section becomes a transparent wrapper — no
   visual padding of its own, since the toggle button supplies the chrome. */
#bundle-expansion-target {
  padding: 0 !important;
  margin-bottom: 60px;
}
#bundle-expansion-target .bundle-expansion.is-detail-page-expansion {
  padding-left: 0;
  padding-right: 0;
}

/* Each top-level expansion section gets a clean header treatment that
   matches the rest of routine.html — italic title with a thin rule under it. */
.is-detail-page-expansion .bundle-exp-section {
  margin-bottom: 56px;
  padding: 0;
}
.is-detail-page-expansion .bundle-exp-section:last-child {
  margin-bottom: 0;
}
.is-detail-page-expansion .bundle-exp-h {
  /* Interior section headers are still buttons in the source, but on the
     detail page they don't collapse — remove the affordance. */
  cursor: default;
  pointer-events: none;
  background: none;
  border: none;
  padding: 0 0 8px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.is-detail-page-expansion .bundle-exp-h .exp-h-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}
.is-detail-page-expansion .bundle-exp-h .exp-h-icon {
  display: none;   /* no chevron on internal section headers */
}

/* Interior sections stay always-visible inside the expansion (the outer
   toggle is the only collapse). Override the card-context "collapse each
   section" rules with !important so they win regardless of .is-open state. */
.is-detail-page-expansion .bundle-exp-section.is-collapsible > .bundle-exp-content,
.is-detail-page-expansion .bundle-exp-section.is-collapsible:not(.is-open) > .bundle-exp-content {
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  display: block !important;
  margin-top: 0 !important;
}

/* Tighten internal blocks on the detail page so they sit in the page
   rhythm (not inside a card). */
.is-detail-page-expansion .bundle-exp-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.is-detail-page-expansion .bundle-exp-row {
  background: var(--cream);
  border: 1px solid var(--rule);
}

@media (max-width: 800px) {
  .bundle-details-toggle.bundle-details-toggle-page {
    padding: 18px 24px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }
  .is-detail-page-expansion .bundle-exp-section {
    margin-bottom: 40px;
  }
  .is-detail-page-expansion .bundle-exp-h .exp-h-label {
    font-size: 24px;
  }
}
