/*
 * Blog article blocks, rendered by includes/blog.php (fc_blog_render_blocks).
 * Used by the public blog post page and the admin preview. Every block is
 * .fcb.fcb-<type> plus width (fcb-w-*), spacing (fcb-sp-*) and alignment (fcb-al-*).
 */
.fcb-body {
  --fcb-accent: #473bf0;
  --fcb-ink: #16152a;
  --fcb-muted: #5c6072;
  --fcb-soft: #f6f4ff;
  --fcb-border: #dfdff6;
}
/* Admin preview sets its own text style; on the public page .ev-prose-body (home-v2.css) does. */
.fcb-article .fcb-body { color: var(--fcb-ink); font-size: 17px; line-height: 1.75; }
.fcb-public { margin-top: 28px; }
.fcb-body img { display: block; max-width: 100%; height: auto; }

.fcb { margin-left: auto; margin-right: auto; }
.fcb-w-full { max-width: none; }
.fcb-w-wide { max-width: 960px; }
.fcb-w-narrow { max-width: 680px; }
.fcb-sp-sm { margin-top: 12px; }
.fcb-sp-md { margin-top: 28px; }
.fcb-sp-lg { margin-top: 56px; }
.fcb:first-child { margin-top: 0; }
.fcb-al-left { text-align: left; }
.fcb-al-center { text-align: center; }
.fcb-al-right { text-align: right; }
.fcb-has-bg { padding: 24px 28px; border-radius: 16px; }

/* Text */
.fcb-title h1, .fcb-title h2, .fcb-title h3, .fcb-title h4 { margin: 0; line-height: 1.25; color: inherit; }
.fcb-article .fcb-title h1 { font-size: 2.2em; }
.fcb-article .fcb-title h2 { font-size: 1.65em; }
.fcb-article .fcb-title h3 { font-size: 1.3em; }
.fcb-article .fcb-title h4 { font-size: 1.1em; }
/* Public page: h3 comes from .ev-prose-body h3 (home-v2.css); h1/h2 sized to match it. */
.fcb-public .fcb-title h1 { font-size: 32px; font-weight: 600; color: var(--fcb-ink); }
.fcb-public .fcb-title h2 { font-size: 27px; font-weight: 600; color: var(--fcb-ink); }
.fcb-rich > :first-child { margin-top: 0; }
.fcb-rich > :last-child { margin-bottom: 0; }
.fcb-rich p { margin: 0 0 1em; }
.fcb-rich ul, .fcb-rich ol { margin: 0 0 1em; padding-left: 1.4em; }
.fcb-al-center .fcb-rich ul, .fcb-al-center .fcb-rich ol,
.fcb-al-right .fcb-rich ul, .fcb-al-right .fcb-rich ol { list-style-position: inside; padding-left: 0; }
.fcb-rich li { margin-bottom: .35em; }
.fcb-rich a { color: var(--fcb-accent); text-decoration: underline; text-underline-offset: 2px; }

blockquote.fcb-rich {
  margin: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--fcb-accent);
  font-size: 1.12em; font-style: italic; color: inherit;
}
.fcb-al-center blockquote.fcb-rich, .fcb-al-right blockquote.fcb-rich { border-left: 0; padding-left: 0; }

/* Hero */
.fcb-hero-figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; }
.fcb-hero-figure img { width: 100%; max-height: 520px; object-fit: cover; }
.fcb-hero-overlay {
  position: absolute; inset: auto 0 0 0; padding: 48px 32px 28px; color: #fff;
  background: linear-gradient(to top, rgba(22, 21, 42, .82), rgba(22, 21, 42, 0));
}
.fcb-eyebrow {
  display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.fcb-hero-text { display: block; font-size: clamp(22px, 3.4vw, 36px); line-height: 1.2; }

/* Call to action */
.fcb-cta-box {
  padding: 28px; border-radius: 16px; background: var(--fcb-soft); border: 1px solid var(--fcb-border);
}
.fcb-has-bg .fcb-cta-box { padding: 0; background: none; border: 0; }
.fcb-btn {
  display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 10px;
  background: var(--fcb-accent); color: #fff !important; font-weight: 600; text-decoration: none;
}
.fcb-btn:hover { filter: brightness(.92); }

/* Images */
.fcb-figure { margin: 0; }
.fcb-figure img { border-radius: 14px; }
.fcb-al-center .fcb-figure img { margin: 0 auto; }
.fcb-al-right .fcb-figure img { margin-left: auto; }
.fcb-grid { display: grid; grid-template-columns: repeat(var(--fcb-cols, 2), minmax(0, 1fr)); gap: 16px; }
.fcb-grid .fcb-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.fcb-gallery-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.fcb-gallery-item {
  flex: 0 0 calc((100% - 14px * (var(--fcb-cols, 3) - 1)) / var(--fcb-cols, 3));
  margin: 0; scroll-snap-align: start;
}
.fcb-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* Video */
.fcb-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.fcb-video iframe, .fcb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Divider */
.fcb-divider hr { border: 0; border-top: 1px solid var(--fcb-border); margin: 0; }

@media (max-width: 640px) {
  .fcb-article .fcb-body { font-size: 16px; }
  .fcb-has-bg { padding: 18px; }
  .fcb-grid { grid-template-columns: 1fr; }
  .fcb-gallery-item { flex-basis: 80%; }
  .fcb-hero-overlay { padding: 32px 18px 18px; }
  .fcb-cta-box { padding: 20px; }
}

/* Article frame used by the admin preview */
.fcb-article { max-width: 1000px; margin: 0 auto; padding: 32px 16px 80px; }
.fcb-article-head { max-width: 960px; margin: 0 auto 32px; }
.fcb-article-head h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 10px 0; }
.fcb-article-cat {
  display: inline-block; padding: 4px 12px; border-radius: 999px; background: #eeebff; color: #473bf0;
  font-size: 13px; font-weight: 600;
}
.fcb-article-meta { color: #5c6072; font-size: 14px; }
