/**
 * chemsex-cornerstone.css — Inspire Recovery Design System
 * /chemsex-addiction/ (Post ID 51998)
 *
 * Foundation: main.css (tokens · base · layout · typography · components · forms)
 * Visual references — patterns drawn from approved Admissions ecosystem and Meth cornerstone:
 *   S1 Hero              → admissions-insurance.css  (.insurance-hero)
 *   S2 What Chemsex Is   → admissions-insurance.css  (.ins-payers-grid) — white two-col
 *   S3 Risks             → admissions-what-to-expect.css (.expect-narrative-grid) — soft-blue 3-col
 *   S4 Drugs             → meth-cornerstone.css (.meth-card / .meth-withdrawal-grid) — white 3-card
 *   S5 Signs             → admissions-what-to-expect.css (.expect-narrative-grid) — soft-blue 2-col
 *   S6 LGBTQ Context     → admissions-what-to-expect.css (.expect-identity / .section-brown)
 *   Mid CTA              → components.css shared CTA band
 *   S7 Treatment         → admissions-insurance.css  (.ins-coverage / .ins-coverage-grid) — soft-blue 3-card
 *   Final CTA            → shared component
 *
 * No new colors, button styles, or design tokens introduced.
 * All values reference CSS custom properties from tokens.css.
 */


/* ══════════════════════════════════════════════════════════════
   S1 — HERO
   Aqua, centered single-column.
   Pattern: .insurance-hero (admissions-insurance.css)
   ══════════════════════════════════════════════════════════════ */

.csx-hero {
  background: var(--brand-aqua);
  text-align: center;
}

.csx-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

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

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

.csx-hero .eyebrow { justify-content: center; }
.csx-hero .actions { justify-content: center; }

/* Aqua hero — buttons become white/ink */
.csx-hero .btn             { background: #fff; color: var(--ink); }
.csx-hero .btn:hover       { background: #EEF2F1; transform: translateY(-1px); }
.csx-hero .btn.ghost       { background: transparent; color: var(--ink); border-color: rgba(22, 32, 31, .44); }
.csx-hero .btn.ghost:hover { background: rgba(22, 32, 31, .07); transform: none; }


/* ══════════════════════════════════════════════════════════════
   S2 — WHAT CHEMSEX IS
   White, two-column (sticky heading left, prose right).
   Pattern: .ins-payers-grid (admissions-insurance.css)
   ══════════════════════════════════════════════════════════════ */

.csx-what { background: #fff; }

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

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

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

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

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

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


/* ══════════════════════════════════════════════════════════════
   S3 — RISKS
   Soft-blue, 3-column narrative grid.
   Pattern: .expect-narrative-grid (admissions-what-to-expect.css)
   ══════════════════════════════════════════════════════════════ */

.csx-risks { background: var(--surface-soft-blue); }

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

.csx-risks-intro .eyebrow { justify-content: center; }

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

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

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

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

.csx-risks-col p:last-child { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   S4 — DRUGS
   White, 3-card grid.
   Pattern: .meth-card / .meth-withdrawal-grid (meth-cornerstone.css)
   Reuses .meth-card directly — no duplicate declaration needed.
   ══════════════════════════════════════════════════════════════ */

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

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

.csx-drugs-intro .eyebrow { justify-content: center; }

.csx-drugs-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.csx-drugs-intro .lead {
  max-width: 62ch;
  margin: 0 auto;
}

.csx-drugs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Drug card uses .meth-card base styles; add the card link treatment here */
.csx-drug-link {
  display: inline-block;
  margin-top: 16px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-aqua-hover);
  text-decoration: none;
}

.csx-drug-link:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════
   S5 — SIGNS
   Soft-blue, 2-column scannable grid.
   Pattern: .expect-narrative-grid variant (admissions-what-to-expect.css)
   Two columns allow each sign to read independently.
   ══════════════════════════════════════════════════════════════ */

.csx-signs { background: var(--surface-soft-blue); }

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

.csx-signs-intro .eyebrow { justify-content: center; }

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

.csx-signs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px clamp(32px, 5vw, 64px);
}

.csx-sign-item {
  border-left: 3px solid var(--brand-aqua);
  padding-left: 20px;
}

.csx-sign-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.csx-sign-item p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.csx-signs-note {
  margin-top: var(--space-lg);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: .95rem;
  color: var(--text-secondary);
}


/* ══════════════════════════════════════════════════════════════
   S6 — LGBTQ CONTEXT / SHAME CYCLE
   Brown centered narrative.
   Pattern: .expect-identity / .section-brown (admissions-what-to-expect.css)
   Relies on .section-brown from components.css for background color.
   ══════════════════════════════════════════════════════════════ */

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

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

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

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

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

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

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

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


/* ══════════════════════════════════════════════════════════════
   MID CTA BAND
   White background, centered CTA pair between S6 and S7.
   Uses shared .actions pattern from components.css.
   ══════════════════════════════════════════════════════════════ */

.csx-mid-cta { background: #fff; text-align: center; }

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

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

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

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


/* ══════════════════════════════════════════════════════════════
   S7 — TREATMENT
   Soft-blue, PHP / IOP / OP three-card grid.
   Pattern: .ins-coverage / .ins-coverage-grid (admissions-insurance.css)
   Reuses .meth-card for the card shells.
   ══════════════════════════════════════════════════════════════ */

.csx-treatment { background: var(--surface-soft-blue); }

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

.csx-treatment-intro .eyebrow { justify-content: center; }

.csx-treatment-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.csx-treatment-intro .lead {
  max-width: 66ch;
  margin: 0 auto;
}

.csx-treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.csx-treatment-note {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: .95rem;
  color: var(--text-secondary);
}

.csx-treatment-note a {
  color: var(--brand-aqua-hover);
  font-weight: 600;
}


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

@media (max-width: 900px) {
  .csx-what-grid         { grid-template-columns: 1fr; gap: 32px; }
  .csx-what-grid > .reveal:first-child { position: static; }
  .csx-risks-grid        { grid-template-columns: 1fr 1fr; }
  .csx-drugs-grid        { grid-template-columns: 1fr 1fr; }
  .csx-signs-grid        { grid-template-columns: 1fr; }
  .csx-treatment-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .csx-risks-grid     { grid-template-columns: 1fr; }
  .csx-drugs-grid     { grid-template-columns: 1fr; }
  .csx-treatment-grid { grid-template-columns: 1fr; }
}
