﻿/**
 * sober-sex-after-chemsex.css — Inspire Recovery Design System
 * /sober-sex-after-chemsex/ (Page ID 76734)
 *
 * Foundation: design-system.css (tokens · base · layout · typography · components · forms)
 * Visual reference: chemsex-cornerstone.css — exact pattern match per section:
 *   S1 Hero      → .csx-hero     (aqua, two-col form right)
 *   S2 ssa-what  → .csx-what     (white, 1fr/1fr sticky-heading grid)
 *   S3 practical → .csx-risks    (soft-blue, repeat(3,1fr) narrative grid)
 *   S4 clinical  → .csx-what     (white, same sticky-heading grid — shared .ssa-what-grid)
 *   S5 context   → .csx-context  (section-brown from components.css + local color overrides)
 *   Mid CTA      → .csx-mid-cta  (white, centered)
 *   Final CTA    → .final        (shared component, no local styles needed)
 *   Sources      → white, small
 *
 * No new colors, button styles, or design tokens introduced.
 * All values copied verbatim from chemsex-cornerstone.css where applicable.
 * CSS prefix: ssa- (sober-sex-after)
 */


/* ══════════════════════════════════════════════════════════════
   S1 — HERO
   Aqua, two-column (copy left, inquiry form right).
   Copied verbatim from .csx-hero (chemsex-cornerstone.css).
   ══════════════════════════════════════════════════════════════ */

.ssa-hero {
  background: var(--brand-aqua);
}

.ssa-hero-grid {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.ssa-hero h1 {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
  line-height: 1.08;
  margin-bottom: 18px;
  text-wrap: balance;
}

.ssa-hero .lead {
  max-width: 58ch;
  margin: 0 0 28px;
  color: var(--text-primary);
}

.ssa-hero .btn             { background: #fff; color: var(--ink); }
.ssa-hero .btn:hover       { background: #EEF2F1; transform: translateY(-1px); }
.ssa-hero .btn.ghost       { background: transparent; color: var(--ink); border-color: rgba(22, 32, 31, .44); }
.ssa-hero .btn.ghost:hover { background: rgba(22, 32, 31, .07); transform: none; }

/* Form typography — not globally available on page templates; mirrors single.css */
.ssa-hero .article-form-title {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.ssa-hero .article-form-note {
  font-size: 0.84rem;
  color: var(--ink-70, rgba(22,32,31,.65));
  margin-bottom: 22px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .ssa-hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: start;
  }
}


/* ══════════════════════════════════════════════════════════════
   S2 + S4 — WHITE STICKY-HEADING GRID
   Used for .ssa-what (S2) and .ssa-clinical (S4).
   Copied verbatim from .csx-what / .csx-what-grid (chemsex-cornerstone.css).
   ══════════════════════════════════════════════════════════════ */

.ssa-what  { background: #fff; }
.ssa-clinical { background: #fff; border-top: 1px solid var(--border-light); }

.ssa-what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ssa-what-grid > .reveal:first-child {
  position: sticky;
  top: 100px;
}

.ssa-what-grid h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 0;
}

.ssa-what-content .lead {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.ssa-what-content p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.ssa-what-content p:last-child { margin-bottom: 0; }

.ssa-what-content sup a {
  font-size: .72em;
  color: var(--brand-aqua-hover);
  text-decoration: none;
  vertical-align: super;
  margin-left: 1px;
}

.ssa-what-content sup a:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════
   S3 — PRACTICAL APPROACHES (3-COLUMN NARRATIVE)
   Soft-blue, repeat(3,1fr) grid.
   Copied verbatim from .csx-risks / .csx-risks-grid (chemsex-cornerstone.css).
   ══════════════════════════════════════════════════════════════ */

.ssa-practical { background: var(--surface-soft-blue); }

.ssa-practical-intro {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.ssa-practical-intro .eyebrow { justify-content: center; }

.ssa-practical-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.ssa-practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.ssa-practical-col h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--brand-aqua-hover);
}

.ssa-practical-col p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.ssa-practical-col p:last-child { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   S5 — AFFIRMATION (BROWN, CENTERED)
   section-brown provides background via components.css.
   Color overrides copied verbatim from .csx-context (chemsex-cornerstone.css).
   ══════════════════════════════════════════════════════════════ */

.ssa-context { text-align: center; }

.ssa-context-inner {
  max-width: 720px;
  margin: 0 auto;
}

.ssa-context h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 20px;
  text-wrap: balance;
}

.ssa-context .eyebrow {
  color: rgba(255, 255, 255, .75);
  justify-content: center;
}

.ssa-context .eyebrow::before { background: var(--accent-trans-pink); }

.ssa-context .lead {
  color: rgba(255, 255, 255, .85);
  max-width: 62ch;
  margin: 0 auto 20px;
}

.ssa-context p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: left;
}

.ssa-context p:last-child { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   MID CTA BAND
   White background, centered CTA pair.
   Copied verbatim from .csx-mid-cta (chemsex-cornerstone.css).
   ══════════════════════════════════════════════════════════════ */

/* ── Related Support ──────────────────────────────────────── */
.ssa-related { background: var(--surface-soft-blue); }

.ssa-related-intro {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.ssa-related-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0.4em;
}

.ssa-related .ssa-practical-col h3 a {
  color: var(--brand-aqua);
  text-decoration: none;
}

.ssa-related .ssa-practical-col h3 a:hover {
  text-decoration: underline;
}

/* ── Mid CTA ──────────────────────────────────────────────── */
.ssa-mid-cta { background: #fff; text-align: center; }

.ssa-mid-cta-inner { max-width: 640px; margin: 0 auto; }

.ssa-mid-cta h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 14px;
  text-wrap: balance;
}

.ssa-mid-cta p {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

.ssa-mid-cta p a {
  color: var(--brand-aqua-hover);
  font-weight: 600;
  text-decoration: none;
}

.ssa-mid-cta p a:hover { text-decoration: underline; }

.ssa-mid-cta .actions { justify-content: center; }


/* ══════════════════════════════════════════════════════════════
   SOURCES
   White, small footnote typography.
   ══════════════════════════════════════════════════════════════ */

.ssa-sources {
  background: #fff;
  border-top: 1px solid var(--border-light);
}

.ssa-sources-inner {
  max-width: 780px;
  margin: 0 auto;
}

.ssa-sources-heading {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.ssa-sources-list {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.ssa-sources-list li {
  font-size: .84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.ssa-sources-list a { color: var(--brand-aqua-hover); }

.ssa-review-note {
  font-size: .8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .ssa-what-grid              { grid-template-columns: 1fr; gap: 32px; }
  .ssa-what-grid > .reveal:first-child { position: static; }
}

@media (max-width: 900px) {
  .ssa-practical-grid         { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .ssa-practical-grid         { grid-template-columns: 1fr; }
}
