/* ══════════════════════════════════════════════════════════════
   CASE STUDIES PAGE
══════════════════════════════════════════════════════════════ */

/* Hero */
.cs-hero {
  background: var(--navy);
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.cs-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.cs-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.cs-subtitle {
  font-size: 1.0625rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto;
}

/* Section */
.cs-section {
  background: var(--bg);
  padding: 4rem 0 5rem;
}

/* Grid — 2 per row on desktop */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* The 5th card spans both columns */
.cs-card-wide {
  grid-column: 1 / -1;
}

/* Card */
.cs-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}

.cs-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Scheme tag */
.cs-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
  width: fit-content;
}

.cs-tag-blue   { background: var(--blue-light);  color: var(--blue);   border: 1px solid var(--blue-muted); }
.cs-tag-orange { background: #fff7ed;             color: #c2410c;       border: 1px solid #fed7aa; }
.cs-tag-green  { background: #f0fdf4;             color: #15803d;       border: 1px solid #bbf7d0; }
.cs-tag-purple { background: #ede9fe;             color: var(--purple); border: 1px solid #ddd6fe; }

/* Card title */
.cs-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

/* Content blocks */
.cs-block {
  margin-bottom: 0.875rem;
}

.cs-block p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0.25rem 0 0;
}

/* Label styles */
.cs-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Outcome gap block */
.cs-block-gap {
  background: #fff5f5;
  border-left: 3px solid #f87171;
  padding: 0.75rem 0.875rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.875rem;
}

.cs-label-gap {
  color: #b91c1c;
}

.cs-block-gap p {
  color: #6b1a1a;
}

/* Fix block */
.cs-block-fix {
  background: #f0fdf4;
  border-left: 3px solid #4ade80;
  padding: 0.75rem 0.875rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
}

.cs-label-fix {
  color: #15803d;
}

.cs-block-fix p {
  color: #1a4731;
}

/* Sources */
.cs-sources {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.cs-sources-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  display: block;
  margin-bottom: 0.375rem;
}

.cs-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-sources a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.15s;
}

.cs-sources a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* CTA band */
.cs-cta-band {
  background: var(--navy);
  padding: 4rem 0;
}

.cs-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cs-cta-h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0.375rem;
}

.cs-cta-sub {
  font-size: 0.9375rem;
  color: #94a3b8;
}

/* Single-card layout (disaster page) */
.cs-grid-single {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

/* Output bullet list inside a card */
.cs-output-list {
  margin: 0.25rem 0 0 1rem;
  padding: 0;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cs-output-list li {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.65;
}

/* Back link */
.cs-back-link {
  margin-top: 2rem;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-card-wide {
    grid-column: 1;
  }

  .cs-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}
