/*
 * thebamboostudio-v1 theme — "How It Works" page.
 * Styles markup rendered by extension/bamboo/catalog/view/template/howitworks/howitworks.twig.
 * Reuses .bb-page-head-hero + .bb-timeline + .bb-founder-band + .bb-cta-band
 * (story-page.css), .bb-process + .bb-process-card (story.css), .bb-stamp /
 * .bb-btn (theme.css), and .bb-organic + .bb-echo + blob-A/B/C (hero.css)
 * as-is — only page spacing and the FAQ accordion are defined here.
 */

/* ============ Section spacing (same rhythm as story-page.css) ============
 * Each boundary is governed by exactly one side's padding (the entering
 * section's own top). The last section's bottom relies solely on the
 * footer's own margin-top, same as the other pages.
 */
.thebamboostudio-v1 .bb-how-page > section { padding-top: clamp(3.2rem, 6vw, 5.5rem); }
.thebamboostudio-v1 .bb-how-page .bb-page-head {
  padding-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-bottom: 0; /* zero the shared base rule's bottom padding so #steps' own
    top padding is the sole source of this gap (one-side-owns-the-boundary rule). */
}

/* Divider + extra clearance between the page head and "The Short Version".
   .bb-process already carries the shared wave ::before (theme.css); this
   id-scoped rule overrides story.css's smaller --bb-divider-pad so the wave
   clears the page-head photo's overflow echoes, matching story-page.css #name. */
.thebamboostudio-v1 .bb-how-page #steps {
  --bb-divider-pad: clamp(4.8rem, 9vw, 8rem);
  padding-top: var(--bb-divider-pad);
}

/* Intro line under the process heading (the homepage's process head has no
   paragraph, so story.css never styled one). */
.thebamboostudio-v1 .bb-how-page .bb-process-head p {
  color: var(--color-text-muted);
  margin-top: .6rem;
}

/* ============ FAQ (native accordion — no JS) ============ */
.thebamboostudio-v1 .bb-faq-list {
  margin: clamp(2rem, 4vw, 2.8rem) auto 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.thebamboostudio-v1 .bb-faq-item {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.thebamboostudio-v1 .bb-faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3.2rem 1.05rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-heading);
}
.thebamboostudio-v1 .bb-faq-item summary::-webkit-details-marker { display: none; }
.thebamboostudio-v1 .bb-faq-item summary:focus-visible {
  outline: 2px solid var(--brand-warm);
  outline-offset: 2px;
  border-radius: 18px;
}
/* plus/minus indicator */
.thebamboostudio-v1 .bb-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--brand-primary-light);
  border-radius: 50%;
  color: var(--brand-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1;
}
.thebamboostudio-v1 .bb-faq-item[open] summary::after { content: "\2212"; }
.thebamboostudio-v1 .bb-faq-item p {
  padding: 0 1.4rem 1.15rem;
  color: var(--color-text-muted);
  font-size: .95rem;
}
