/* =========================================================
   /lgbtq-resources/ — Community & Recovery Resource Hub
   Page ID 1213 | CSS prefix: lrs-
   Pattern: who-we-help / about (centered sections, no form)
   ========================================================= */

/* --- S1: HERO (two-column; aqua background override) ---- */
/*
 * Aqua background: white text FAILS (≈ 3.6:1 — tokens.css §73).
 * Approved pattern: dark ink on aqua. Matches frozen identity pages.
 * Buttons suppressed — resource intro only; mid-page + final CTAs handle conversion.
 */

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

.hero h1 {
  color: var(--ink);
}

.hero .lead {
  color: var(--text-primary);
}

.hero .actions {
  display: none;
}

/* --- S2: FRAMING (white) -------------------------------- */

.lrs-framing {
  background: #fff;
}

.lrs-framing-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.lrs-framing h2 {
  text-wrap: balance;
}

.lrs-framing p {
  color: var(--text-secondary);
}

/* --- S3: RECOVERY MEETINGS (soft-blue) ------------------ */

.lrs-meetings {
  background: var(--surface-soft-blue);
}

/* --- S3b: MID-PAGE CTA (white, compact centered card) -- */

.lrs-mid-cta {
  background: #fff;
}

.lrs-mid-cta-card {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
  border-top: 3px solid var(--brand-aqua);
  padding-top: 2.5rem;
}

.lrs-mid-cta-card h2 {
  text-wrap: balance;
  margin-block-end: 0.75rem;
}

.lrs-mid-cta-card p {
  color: var(--text-secondary);
  margin-block-end: 2rem;
}

.lrs-mid-cta-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- S4: LGBTQ COMMUNITY (white) ------------------------ */

.lrs-community {
  background: #fff;
}

/* --- S5: HEALTH & SUPPORT (soft-blue) ------------------- */

.lrs-health {
  background: var(--surface-soft-blue);
}

/* --- SHARED: section heading alignment ------------------ */

.lrs-meetings .eyebrow,
.lrs-community .eyebrow,
.lrs-health .eyebrow,
.lrs-meetings h2,
.lrs-community h2,
.lrs-health h2 {
  text-align: center;
}

.lrs-section-lead {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-block-end: 2.5rem;
  color: var(--text-secondary);
}

/* --- RESOURCE GRID -------------------------------------- */

.lrs-resource-grid {
  display: grid;
  gap: 1.5rem;
}

.lrs-resource-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.lrs-resource-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-inline: auto;
}

/* --- RESOURCE CARD -------------------------------------- */

.lrs-resource-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-aqua);
  border-radius: var(--r-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lrs-meetings .lrs-resource-card,
.lrs-health .lrs-resource-card {
  background: #fff;
}

.lrs-community .lrs-resource-card {
  background: var(--surface-soft-blue);
}

.lrs-resource-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.lrs-resource-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.lrs-resource-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-aqua);
  text-decoration: none;
  margin-top: auto;
  word-break: break-all;
}

.lrs-resource-link:hover {
  color: var(--brand-aqua-hover);
  text-decoration: underline;
}

/* --- RESPONSIVE ----------------------------------------- */

@media (max-width: 900px) {
  .lrs-resource-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lrs-resource-grid--3,
  .lrs-resource-grid--2 {
    grid-template-columns: 1fr;
  }
}
