/* ==========================================================================
   TTTAS · Atoms
   Design-system building blocks for conversion, explainer, and utility pages
   that live outside the Understanding hub/essay layout.

   Uses the same cream + navy palette as hub.css and home-locked.css.
   Typography: Source Serif 4 for headings, Source Sans 3 for body/UI.
   All atoms are unitary blocks: they do not depend on page containers.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */

.atoms-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* Narrow modifier now shares the same 1080 band so left edges align across
   the whole page; prose elements inside cap their own width for readability. */
.atoms-container--narrow {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}
.atoms-container--narrow .atoms-eyebrow,
.atoms-container--narrow .atoms-h2,
.atoms-container--narrow .atoms-lede {
  max-width: 780px;
}

.atoms-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.atoms-section--paper {
  background: var(--hub-paper);
}

.atoms-section--tinted {
  background: #EAE0C7;
}

.atoms-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hub-accent-deep);
  margin: 0 0 1rem;
}

.atoms-h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--hub-ink);
  margin: 0 0 1.5rem;
  letter-spacing: -0.005em;
}

.atoms-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--hub-accent-deep);
}

.atoms-lede {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--hub-text);
  max-width: 44rem;
  margin: 0 0 2.5rem;
}


/* --------------------------------------------------------------------------
   2. PHASE CARDS — vertical timeline of numbered blocks
   Used on programme.html for New Chapter / New Direction phases.
   Layout: number top-left, title, weeks range, description.
   Cards stack vertically; connected by a thin left rule that suggests a spine.
   -------------------------------------------------------------------------- */

.phases {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin: 2rem 0 0;
  padding-left: 3rem;
  border-left: 1px solid var(--hub-rule);
}

.phase {
  position: relative;
  padding: 1.75rem 0 2.25rem;
  border-bottom: 1px solid var(--hub-rule);
}

.phase:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.phase-num {
  position: absolute;
  left: -3.75rem;
  top: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--hub-paper);
  border: 1px solid var(--hub-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--hub-ink);
  letter-spacing: 0.02em;
}

.phase-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--hub-ink);
  margin: 0 0 0.35rem;
}

.phase-title em {
  font-style: italic;
  color: var(--hub-accent-deep);
}

.phase-weeks {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-text-muted);
  margin: 0 0 0.9rem;
}

.phase-body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hub-text);
  max-width: 42rem;
  margin: 0;
}


/* --------------------------------------------------------------------------
   3. FORMAT CARDS — grid of icon + heading + prose
   Used on programme.html and group-therapy.html for
   "Weekly Sessions / Up to 10 Men / In-Person or Online / Clinically Led"
   Four-up grid on desktop, two-up on tablet, single column mobile.
   -------------------------------------------------------------------------- */

.formats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin: 2.5rem 0 0;
}
.formats.formats-3 { grid-template-columns: repeat(3, 1fr); }


.format {
  padding: 2rem 1.5rem;
  background: var(--hub-paper);
  border: 1px solid var(--hub-rule);
  border-radius: 2px;
  text-align: left;
}

.format-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  margin: 0 0 1rem;
  color: var(--hub-ink);
}

.format-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.format-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--hub-ink);
  margin: 0 0 0.6rem;
}

.format-body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hub-text);
  margin: 0;
}


/* --------------------------------------------------------------------------
   4. STEP CARDS — numbered horizontal-then-prose progression
   Used on how-it-works.html for "1. Apply / 2. Screening / 3. Match to cohort / 4. Weekly sessions / 5. Consolidation"
   Number sits in a small navy-bordered circle on the left.
   -------------------------------------------------------------------------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem auto 0;
  max-width: 780px;
}

.step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--hub-rule);
  position: relative;
}

.step:first-child {
  padding-top: 0.5rem;
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.step-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--hub-paper);
  border: 1px solid var(--hub-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--hub-ink);
  flex-shrink: 0;
}

.step-body {
  padding-top: 0.15rem;
}

.step-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--hub-ink);
  margin: 0 0 0.6rem;
}

.step-title em {
  font-style: italic;
  color: var(--hub-accent-deep);
}

.step-body p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hub-text);
  margin: 0 0 0.9rem;
}

.step-body p:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   5. ACCORDION — click-to-expand Q&A pattern
   Used on faqs.html for two-tier accordion:
     - Category headers (top-level, click to reveal all questions in that category)
     - Question items (click to reveal the answer)
   -------------------------------------------------------------------------- */

.acc {
  border-top: 1px solid var(--hub-rule);
}

.acc-cat {
  border-bottom: 1px solid var(--hub-rule);
}

.acc-cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--hub-ink);
  transition: color 0.15s ease;
}

.acc-cat-header:hover {
  color: var(--hub-hover);
}

.acc-cat-toggle {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--hub-ink);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
  display: inline-block;
  width: 1.2rem;
  text-align: center;
}

.acc-cat.is-open .acc-cat-toggle {
  transform: rotate(45deg);
}

.acc-cat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.acc-cat.is-open .acc-cat-body {
  max-height: 6000px;
}

.acc-cat-body-inner {
  padding: 0 0 1.5rem;
}

.acc-q {
  border-top: 1px solid var(--hub-rule);
}

.acc-q:first-child {
  border-top: none;
}

.acc-q-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--hub-ink);
  transition: color 0.15s ease;
}

.acc-q-header:hover {
  color: var(--hub-hover);
}

.acc-q-toggle {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--hub-ink);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1.5;
  display: inline-block;
  width: 1.1rem;
  text-align: center;
}

.acc-q.is-open .acc-q-toggle {
  transform: rotate(45deg);
}

.acc-q-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.acc-q.is-open .acc-q-body {
  max-height: 3000px;
}

.acc-q-body-inner {
  padding: 0 0 1.4rem;
}

.acc-q-body-inner p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hub-text);
  margin: 0 0 1rem;
  max-width: 44rem;
}

.acc-q-body-inner p:last-child {
  margin-bottom: 0;
}

.acc-q-body-inner a {
  color: var(--hub-ink);
  text-decoration: underline;
  text-decoration-color: var(--hub-rule);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.acc-q-body-inner a:hover {
  color: var(--hub-hover);
  text-decoration-color: var(--hub-hover);
}


/* --------------------------------------------------------------------------
   6. CTA BLOCKS — primary call-to-action panels
   Used at the base of conversion pages.
   Variant A · paper CTA (default) — cream paper background, navy button.
   Variant B · navy CTA — deep navy panel, cream button (for stronger emphasis).
   -------------------------------------------------------------------------- */

.cta-block {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: var(--hub-paper);
  border-top: 1px solid var(--hub-rule);
  border-bottom: 1px solid var(--hub-rule);
  text-align: center;
}

.cta-block--tinted {
  background: #EAE0C7;
}

.cta-block--navy {
  background: var(--hub-ink);
  color: var(--hub-paper);
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.cta-block-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hub-accent-deep);
  margin: 0 0 1rem;
}

.cta-block--navy .cta-block-eyebrow {
  color: #C9D5E6;
}

.cta-block-headline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--hub-ink);
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  letter-spacing: -0.005em;
}

.cta-block-headline em {
  font-style: italic;
  color: var(--hub-accent-deep);
}

.cta-block--navy .cta-block-headline {
  color: var(--hub-paper);
}

.cta-block--navy .cta-block-headline em {
  color: #E8DFCE;
  font-style: italic;
}

.cta-block-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hub-text);
  margin: 0 auto 2rem;
  max-width: 36rem;
}

.cta-block--navy .cta-block-sub {
  color: #C9D5E6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: 3px;
  background: var(--hub-ink);
  color: var(--hub-paper);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.cta-btn:hover {
  background: var(--hub-accent-deep);
  transform: translateY(-1px);
}

.cta-btn--secondary {
  background: transparent;
  color: var(--hub-ink);
  border: 1px solid var(--hub-ink);
}

.cta-btn--secondary:hover {
  background: var(--hub-ink);
  color: var(--hub-paper);
  transform: translateY(-1px);
}

.cta-block--navy .cta-btn {
  background: var(--hub-paper);
  color: var(--hub-ink);
}

.cta-block--navy .cta-btn:hover {
  background: #FFFFFF;
}

.cta-btns {
  display: inline-flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}


/* --------------------------------------------------------------------------
   6b. FORMS — minimal editorial styling
   Placeholder styling for the apply.html form until it moves to Jane.
   -------------------------------------------------------------------------- */

.form-section {
  background: var(--hub-paper);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.form-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.form-group {
  margin: 0 0 1.75rem;
}

.form-label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hub-ink);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.form-hint {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--hub-text-muted);
  margin: 0 0 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hub-ink);
  background: #FFFFFF;
  border: 1px solid var(--hub-rule);
  border-radius: 3px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--hub-ink);
  box-shadow: 0 0 0 3px rgba(23, 54, 93, 0.12);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem 1.25rem;
  margin: 0.5rem 0 0;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--hub-text);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--hub-ink);
  width: 1rem;
  height: 1rem;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: 3px;
  background: var(--hub-ink);
  color: var(--hub-paper);
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.form-submit:hover {
  background: var(--hub-accent-deep);
  transform: translateY(-1px);
}

.form-notice {
  padding: 1.25rem 1.5rem;
  background: rgba(23, 54, 93, 0.05);
  border-left: 3px solid var(--hub-ink);
  margin: 0 0 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hub-text);
}

.form-notice strong {
  color: var(--hub-ink);
}

.form-notice p {
  margin: 0 0 0.5rem;
}

.form-notice p:last-child {
  margin-bottom: 0;
}

.form-notice a {
  color: var(--hub-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-notice a:hover {
  color: var(--hub-hover);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-panel {
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--hub-cream);
  border: 1px solid var(--hub-rule);
  border-radius: 3px;
  margin: 0 0 1.75rem;
}

.form-panel-title {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hub-ink);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.form-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.form-panel-stack .form-group {
  margin: 0;
}

.form-danger {
  padding: 1.1rem 1.25rem;
  background: #FFFFFF;
  border-left: 3px solid #A12C7B;
  border-radius: 3px;
  margin: 1.5rem 0 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hub-text);
}

.form-danger strong {
  color: #A12C7B;
  font-weight: 600;
}

.form-danger p {
  margin: 0 0 0.5rem;
}

.form-danger p:last-child {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--hub-text-muted);
}

.form-consent {
  margin: 2rem 0 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hub-rule);
}

.form-consent .form-checkbox {
  margin: 0 0 1rem;
  align-items: flex-start;
}

.form-consent .form-checkbox:last-child {
  margin-bottom: 0;
}

.form-consent-notice {
  padding: 1.25rem 1.5rem;
  background: var(--hub-cream);
  border: 1px solid var(--hub-rule);
  border-radius: 3px;
  margin: 0 0 1.5rem;
}

.form-consent-notice p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--hub-text);
  margin: 0 0 0.5rem;
}

.form-consent-notice ul {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--hub-text);
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.form-consent-notice ul li {
  margin: 0 0 0.4rem;
}

.form-consent-notice strong {
  color: var(--hub-ink);
}

.form-consent-notice a {
  color: var(--hub-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-optional {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--hub-text-muted);
  margin-left: 0.4rem;
}

.form-submit-row {
  margin: 2rem 0 0;
  text-align: center;
}

.form-submit-row .form-submit {
  width: 100%;
  max-width: 24rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   7. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .formats, .formats.formats-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 640px) {
  .formats, .formats.formats-3 { grid-template-columns: 1fr; gap: 1rem; }
  .phases { padding-left: 2.5rem; }
  .phase-num { left: -3.15rem; width: 2.3rem; height: 2.3rem; font-size: 0.82rem; }
  .steps .step { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .step-num { width: 2.35rem; height: 2.35rem; font-size: 0.9rem; }
  .acc-cat-header { font-size: 1.1rem; padding: 1.15rem 0; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btn { justify-content: center; }
}


/* --------------------------------------------------------------------------
   8. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .acc-cat-toggle, .acc-cat-body,
  .acc-q-toggle, .acc-q-body,
  .cta-btn {
    transition: none;
  }
}


/* -----------------------------------------------------------
   Programme page additions (12 July 2026)
   ----------------------------------------------------------- */

/* Two-phase summary lines under "Two phases. One sustained change." */
.phases-summary {
  margin: 0.4rem 0 !important;
  line-height: 1.9;
  font-size: 1.1rem;
}
.phases-summary em {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--hub-ink);
}

/* Inline CTAs inside sections (top of door hero, between phases) */
.door-hero-cta {
  margin-top: 1.6rem;
}
.phase-cta {
  margin-top: 2rem;
  text-align: center;
}
.cta-btn--inline {
  padding: 0.85rem 1.8rem;
  font-size: 0.98rem;
}

/* Boost the final navy CTA visibility */
.cta-block--navy {
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.cta-block--navy .cta-block-headline {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
}
.cta-block--navy .cta-btn {
  padding: 1.1rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.cta-block--navy .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}


/* -----------------------------------------------------------
   Content pages (12 July 2026) — MYPL-style centred prose
   Applied to about, about-cic, about-yates, evidence, media,
   gay-bi-men/index, men/index, support,
   contact, apply, thankyou, quiz.
   Programme.html, how-it-works.html, group-therapy.html, faqs.html
   are NOT affected (they use their own alignment logic).
   ----------------------------------------------------------- */
body.content-page .atoms-container--narrow .atoms-eyebrow,
body.content-page .atoms-container--narrow .atoms-h2,
body.content-page .atoms-container--narrow .atoms-lede {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Condensed spacing (16 Oct 2026): tighter gaps between paragraphs and
   shorter section padding on content pages. CTA blocks unchanged.
   -------------------------------------------------------------------------- */
.atoms-section:not(.cta-block) .atoms-lede { margin-bottom: 1.1rem; }
.atoms-section:not(.cta-block) .atoms-h2 { margin-bottom: 1.1rem; }
.atoms-section:not(.cta-block) { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }

/* --------------------------------------------------------------------------
   Compact desktop layout (16 Oct 2026, Option B): applied site-wide after
   approval on the Group therapy page. Desktop only; phone unchanged.
   Page titles (h1) keep their size. CTA blocks unchanged.
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .atoms-section:not(.cta-block) { padding-top: 24px !important; padding-bottom: 24px !important; }
  .atoms-section:not(.cta-block) .atoms-lede { font-size: 16px !important; line-height: 1.55 !important; margin-bottom: 12px !important; }
  .atoms-section:not(.cta-block) h2.atoms-h2 { font-size: 1.9rem !important; margin-bottom: 12px !important; }
  .atoms-section:not(.cta-block) .atoms-eyebrow { margin-bottom: 6px !important; }
  .atoms-section:not(.cta-block) .atoms-container > :last-child { margin-bottom: 0 !important; }
}

/* --------------------------------------------------------------------------
   Mirror Understanding layout (17 Oct 2026): on desktop, content pages use
   the same centred 960px column as the Understanding pages and articles.
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  main .atoms-container,
  main .atoms-container--narrow {
    max-width: 1040px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  main .atoms-container .atoms-eyebrow,
  main .atoms-container .atoms-h2,
  main .atoms-container .atoms-lede,
  main .atoms-container--narrow .atoms-eyebrow,
  main .atoms-container--narrow .atoms-h2,
  main .atoms-container--narrow .atoms-lede {
    max-width: 960px !important;
  }
  /* Programme and Apply door layouts: text and door picture within the same 960px column */
  main .door-hero,
  main .door-callout {
    max-width: 1024px !important;
  }
  /* How the Programme Works steps: full column width, same left edge */
  main .steps {
    max-width: 960px !important;
  }
  /* No beige bands on desktop (17 Oct 2026): sections stay on the cream page colour */
  main .atoms-section--tinted {
    background: transparent !important;
  }
}
