/* ═══════════════════════════════════════════════════════════════
   CMS ELEMENT BASE
   ═══════════════════════════════════════════════════════════════ */
.cms-element {
  padding: 48px 0;
  max-width: 1120px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   TEXT ELEMENT VARIANTS
   ═══════════════════════════════════════════════════════════════ */
.cms-element--text .prose-text p + p { margin-top: 1em; }

.cms-element--text.el--centered {
  text-align: center;
  max-width: 720px;
}
.cms-element--text.el--centered .cms-block__title { margin-inline: auto; }

.cms-element--text.el--featured {
  border-left: 3px solid #fbbf24;
  padding-left: 28px;
}
.cms-element--text.el--featured .cms-block__title { color: #fff7ed; }

.cms-element--text.el--callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 40px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO ELEMENT VARIANTS
   ═══════════════════════════════════════════════════════════════ */
.cms-element--hero.el--compact {
  min-height: 340px !important;
}
.cms-element--hero.el--minimal {
  display: block;
  min-height: unset;
}
.cms-element--hero.el--minimal .cms-hero-scene { display: none; }

/* ═══════════════════════════════════════════════════════════════
   CARD GRID VARIANTS
   ═══════════════════════════════════════════════════════════════ */
.el-grid {
  display: grid;
  gap: 16px;
}
.el-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.el-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.el-grid--showcase { grid-template-columns: 1fr; max-width: 760px; }
.el-grid--showcase .feature-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* ═══════════════════════════════════════════════════════════════
   LIST ELEMENT VARIANTS
   ═══════════════════════════════════════════════════════════════ */
/* Checklist */
.el-checklist { display: flex; flex-direction: column; gap: 12px; }
.el-checklist .el-list-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}
.el-checklist .el-list-item::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}
.el-checklist .el-list-item small { color: var(--muted); font-size: 0.85rem; margin-left: 4px; }

/* Timeline */
.el-timeline { display: flex; flex-direction: column; gap: 0; padding-left: 20px; border-left: 2px solid var(--line); }
.el-timeline-item {
  display: flex;
  gap: 20px;
  padding: 0 0 28px 28px;
  position: relative;
}
.el-timeline-dot {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  flex-shrink: 0;
}
.el-timeline-item strong { display: block; color: var(--text); margin-bottom: 6px; }
.el-timeline-item p { color: var(--muted); margin: 0; }

/* Compact list */
.el-list-compact { display: flex; flex-direction: column; gap: 8px; }
.el-list-compact .el-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  font-size: 0.95rem;
}
.el-list-compact .el-list-item small { color: var(--muted); font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════════════════
   CTA ELEMENT VARIANTS
   ═══════════════════════════════════════════════════════════════ */
.cms-element--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cms-element--cta__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}
.cms-element--cta.el--banner {
  background: linear-gradient(135deg, rgba(120,53,15,0.6), rgba(92,40,8,0.4));
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 14px;
  padding: 48px 40px;
  align-items: center;
  text-align: center;
  max-width: none;
}
.cms-element--cta.el--ghost .btn--primary {
  background: transparent;
  border: 1px solid rgba(56,189,248,0.5);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   BANNER ELEMENT
   ═══════════════════════════════════════════════════════════════ */
.cms-element--banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  flex-wrap: wrap;
}
.cms-banner__icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.cms-banner__body { flex: 1; min-width: 200px; }
.cms-banner__title { display: block; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cms-banner__text { margin: 0; font-size: 0.9rem; color: var(--muted); }
.cms-banner__cta { flex-shrink: 0; }

.cms-element--banner.el--amber {
  background: rgba(120, 53, 15, 0.35);
  border-color: rgba(251, 191, 36, 0.3);
}
.cms-element--banner.el--amber .cms-banner__title { color: #fde68a; }

.cms-element--banner.el--cyan {
  background: rgba(8, 47, 73, 0.5);
  border-color: rgba(56, 189, 248, 0.3);
}
.cms-element--banner.el--cyan .cms-banner__title { color: #bae6fd; }

.cms-element--banner.el--danger {
  background: rgba(69, 10, 10, 0.5);
  border-color: rgba(248, 113, 113, 0.3);
}
.cms-element--banner.el--danger .cms-banner__title { color: #fecaca; }

.cms-element--banner.el--subtle {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════════════════════════
   QUOTE ELEMENT
   ═══════════════════════════════════════════════════════════════ */
.cms-element--quote { padding: 40px 0; }
.cms-quote { margin: 0; position: relative; padding: 0 0 0 32px; max-width: 760px; }
.cms-quote__mark {
  position: absolute;
  left: -8px;
  top: -20px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(56,189,248,0.2);
  font-family: Georgia, serif;
  pointer-events: none;
}
.cms-quote__text {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin: 0 0 18px;
}
.cms-quote__attribution {
  font-size: 0.9rem;
  color: var(--muted);
}

.cms-element--quote.el--large .cms-quote__text { font-size: clamp(1.4rem, 3vw, 2rem); }

.cms-element--quote.el--amber .cms-quote__mark { color: rgba(251,191,36,0.3); }
.cms-element--quote.el--amber .cms-quote__text { color: #fde68a; }

/* ═══════════════════════════════════════════════════════════════
   MEDIA ELEMENT
   ═══════════════════════════════════════════════════════════════ */
.cms-element--media { padding: 32px 0; }
.cms-media { margin: 0; }
.cms-media img {
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
  display: block;
}
.cms-media figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.cms-media--contained img { max-width: 760px; margin: 0 auto; }
.cms-media--side-left img { max-width: 480px; }

/* ═══════════════════════════════════════════════════════════════
   DIVIDER ELEMENT VARIANTS
   ═══════════════════════════════════════════════════════════════ */
.cms-element--divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 8px 0;
  max-width: none;
  padding: 0;
}
.cms-element--divider.el--rune {
  display: flex;
  align-items: center;
  gap: 16px;
  border: none;
  margin: 24px 0;
  padding: 0;
  max-width: none;
}
.cms-element--divider.el--rune::before,
.cms-element--divider.el--rune::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.cms-element--divider.el--rune span {
  color: var(--muted);
  font-size: 1.1rem;
  opacity: 0.6;
}
.cms-element--spacer {
  height: 64px;
  max-width: none;
  padding: 0;
}