/**
 * Shared section headings & dividers for site section editors.
 * Use on any storefront or admin section editor modal/panel.
 *
 * Canonical classes (prefer for new editors):
 *   .site-editor-section-title       — primary section heading
 *   .site-editor-section-title--sub  — nested sub-section (Presets, Sub-items, etc.)
 *   .site-editor-section-hint        — optional muted note beside a title
 *   .site-editor-section-lead       — short description below a title
 *
 * Wrap each logical block in <section> inside the modal body for automatic dividers.
 */

/* ── Section dividers ─────────────────────────────────────────────── */

.navigation-edit-modal__body > section,
.announcement-edit-modal__body > section,
.hero-bg-modal-body > section,
.hero-edit-modal__body > section,
.site-section-edit-modal__body > section,
.nav-edit-layout > section {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(244, 208, 111, 0.24);
}

.navigation-edit-modal__body > section:first-of-type,
.announcement-edit-modal__body > section:first-of-type,
.hero-bg-modal-body > section:first-of-type,
.hero-edit-modal__body > section:first-of-type,
.site-section-edit-modal__body > section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.nav-edit-layout {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(244, 208, 111, 0.24);
}

/* ── Primary section titles (dark editor modals) ──────────────────── */

.site-editor-section-title,
.nav-edit-section-title,
.ann-edit-section-title,
.hero-bg-section-title {
  margin: 0 0 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f4d06f;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  line-height: 1.3;
}

.site-editor-section-title::before,
.nav-edit-section-title::before,
.ann-edit-section-title::before,
.hero-bg-section-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1.05em;
  min-height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f4d06f 0%, #c9a227 100%);
  box-shadow: 0 0 8px rgba(244, 208, 111, 0.35);
  flex-shrink: 0;
}

/* ── Sub-section titles ───────────────────────────────────────────── */

.site-editor-section-title--sub,
#navEditBgPanelGrad .nav-edit-section-title,
#navEditPanelSubItems .nav-edit-section-title,
#annEditBgPanelGrad .ann-edit-section-title,
#annEditBgPanelGrad .site-editor-section-title,
.hero-bg-presets-label {
  margin-top: 0.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f7ead0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.3;
}

.site-editor-section-title--sub::before,
#navEditBgPanelGrad .nav-edit-section-title::before,
#navEditPanelSubItems .nav-edit-section-title::before,
#annEditBgPanelGrad .ann-edit-section-title::before,
#annEditBgPanelGrad .site-editor-section-title::before,
.hero-bg-presets-label::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  min-height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f4d06f 0%, #c9a227 100%);
  opacity: 0.85;
  flex-shrink: 0;
}

/* ── Hint & lead text ─────────────────────────────────────────────── */

.site-editor-section-hint,
.nav-edit-section-hint {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(247, 234, 208, 0.72);
}

.site-editor-section-lead,
.nav-edit-section-lead {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(247, 234, 208, 0.72);
}

/* ── Light admin panels (General Settings, future admin editors) ─── */

.site-general-panel__body .site-editor-section-title,
.admin-editor-panel__body .site-editor-section-title {
  color: #92400e;
  font-size: 0.8rem;
  margin: 1rem 0 0.65rem;
}

.site-general-panel__body .site-editor-section-title::before,
.admin-editor-panel__body .site-editor-section-title::before {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: none;
}

.site-general-panel__body > section,
.admin-editor-panel__body > section {
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border, #e2e8f0);
}

.site-general-panel__body > section:first-of-type,
.admin-editor-panel__body > section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.site-general-panel__body .site-editor-section-lead,
.admin-editor-panel__body .site-editor-section-lead {
  color: var(--admin-muted, #64748b);
  margin: -0.25rem 0 0.75rem;
}
