/* recursos.css — styling for the static /resources/ pages.
 * Loaded together with the Vite-built /assets/index.css (Tailwind utilities +
 * base styles). Only the custom class names used by recursos-template.mjs live
 * here; everything else reuses Tailwind classes that index.css already provides.
 */

:root {
  --fb-blue: #2563eb;
  --fb-blue-dark: #1d4ed8;
  --fb-slate-50: #f8fafc;
  --fb-slate-100: #f1f5f9;
  --fb-slate-200: #e2e8f0;
  --fb-slate-300: #cbd5e1;
  --fb-slate-400: #94a3b8;
  --fb-slate-500: #64748b;
  --fb-slate-600: #475569;
  --fb-slate-700: #334155;
  --fb-slate-900: #0f172a;
  --fb-gray-200: #e5e7eb;
  --fb-radius: 0.75rem;
}

/* ── Shared sections ──────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fb-slate-900);
  margin-bottom: 1.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

/* ── Audience sections (hub groups B2C and B2B clusters separately) ─────────── */
.audience-section + .audience-section {
  margin-top: 3.5rem;
}

.audience-section .section-title {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--fb-slate-500, #64748b);
  margin-bottom: 1.5rem;
  max-width: 46rem;
}

/* ── Resources grid (hub) ─────────────────────────────────────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--fb-gray-200);
  border-radius: var(--fb-radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  border-color: var(--fb-blue);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.08);
}

.resource-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fb-slate-900);
  margin: 0;
}

.resource-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fb-slate-600);
  margin: 0;
  flex: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: var(--fb-slate-100);
  font-size: 1.5rem;
}

/* ── Buttons / links ──────────────────────────────────────────────────────── */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fb-blue);
  text-decoration: none;
}

.btn-link:hover {
  color: var(--fb-blue-dark);
  text-decoration: underline;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--fb-blue);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background: var(--fb-blue-dark);
}

/* ── Article / cluster card grids ─────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.article-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--fb-gray-200);
  border-radius: var(--fb-radius);
  padding: 1.25rem;
}

.article-summary-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fb-slate-900);
  margin: 0;
}

.article-summary-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-summary-card h3 a:hover {
  color: var(--fb-blue);
}

.article-summary-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fb-slate-600);
  margin: 0;
}

.meta {
  font-size: 0.8125rem;
  color: var(--fb-slate-500);
}

.tag {
  display: inline-block;
  background: var(--fb-slate-100);
  color: var(--fb-slate-600);
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.read-more {
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fb-blue);
  text-decoration: none;
}

.read-more:hover {
  color: var(--fb-blue-dark);
  text-decoration: underline;
}

/* ── Article layout ───────────────────────────────────────────────────────── */
.article-body {
  background: #ffffff;
}

.table-of-contents {
  background: var(--fb-slate-50);
  border: 1px solid var(--fb-gray-200);
  border-radius: var(--fb-radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.table-of-contents h3,
.toc-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fb-slate-900);
  margin: 0 0 0.75rem;
}

.table-of-contents ul,
.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.table-of-contents li {
  margin: 0.375rem 0;
}

.table-of-contents a {
  color: var(--fb-blue);
  font-size: 0.9375rem;
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.article-body > section {
  margin-bottom: 1.75rem;
}

.article-body section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fb-slate-900);
  margin: 0 0 0.75rem;
  scroll-margin-top: 1.5rem;
}

.article-body section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fb-slate-600);
  margin: 0 0 0.75rem;
}

.article-list {
  list-style: disc;
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding: 0;
}

.article-list li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fb-slate-600);
  margin: 0.25rem 0;
}

.related-articles {
  background: var(--fb-slate-50);
  border: 1px solid var(--fb-gray-200);
  border-radius: var(--fb-radius);
  padding: 1.25rem;
  margin-top: 2rem;
}

.related-articles h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fb-slate-900);
  margin: 0 0 0.75rem;
}

.related-articles a {
  color: var(--fb-blue);
  font-size: 0.9375rem;
  text-decoration: none;
}

.related-articles a:hover {
  text-decoration: underline;
}

/* ── Inline CTA + banner ──────────────────────────────────────────────────── */
.inline-cta {
  background: var(--fb-slate-50);
  border: 1px solid var(--fb-gray-200);
  border-left: 4px solid var(--fb-blue);
  border-radius: var(--fb-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.inline-cta h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fb-slate-900);
  margin: 0 0 0.5rem;
}

.inline-cta p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fb-slate-600);
  margin: 0 0 1rem;
}

.cta-banner {
  background: var(--fb-slate-900);
  padding: 3rem 0;
  text-align: center;
}

.cta-content {
  max-width: 42rem;
}

.cta-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.cta-content p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fb-slate-300);
  margin: 0 0 1.5rem;
}
