/**
 * Chemesis Core — FAQ page styles.
 * Reuses the approved accordion system (.chh-faq-*); adds page layout (.chf-*).
 */

.chf-section {
  background: var(--ch-paper);
  padding-block: 3.5rem;
}

@media (min-width: 768px) {
  .chf-section {
    padding-block: 4.5rem;
  }
}

.chf-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .chf-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.chf-groups {
  min-width: 0;
}

@media (min-width: 1024px) {
  .chf-groups {
    grid-column: span 8;
  }
}

.chf-group {
  margin-bottom: 3rem;
}

.chf-group:last-child {
  margin-bottom: 0;
}

.chf-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 12, 48, 0.15);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.chf-group-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  color: var(--ch-blue-600);
}

.chf-group-count {
  color: var(--ch-faint);
  white-space: nowrap;
}

.chf-side {
  min-width: 0;
}

@media (min-width: 1024px) {
  .chf-side {
    grid-column: span 4;
  }
}

.chf-help {
  border-radius: var(--ch-radius-md);
  border: 1px solid var(--ch-line);
  background: #fff;
  padding: 1.75rem;
}

@media (min-width: 1024px) {
  .chf-help {
    position: sticky;
    top: 7rem;
  }
}

.chf-help-title {
  font-family: var(--ch-font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ch-ink-900);
}

.chf-help-text {
  margin-top: 0.75rem;
  font-size: var(--ch-type-body-sm);
  line-height: 1.65;
  color: var(--ch-muted);
}

.chf-help-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .chf-help {
    transition: none;
  }
}

/* ------------------------------------------------------------------
   Elementor kit/theme button shield for FAQ blocks
   ------------------------------------------------------------------ */
body .chf-section button,
body .chf-section button:hover,
body .chf-section button:focus,
body .chf-section button:focus-visible {
  background: transparent;
  color: inherit;
  padding: 0;
}

body .chf-section .ch-btn-ink {
  background: var(--ch-ink-900);
  color: #fff;
  padding-inline: 1.1rem;
}

body .chf-section .ch-btn-ink:hover {
  background: var(--ch-ink-700);
  color: #fff;
}

body .chf-section .ch-btn-outline {
  background: transparent;
  color: var(--ch-ink-900);
  padding-inline: 1.1rem;
}

body .chf-section .ch-btn-outline:hover {
  border-color: var(--ch-ink-900);
  background: rgba(0, 12, 48, 0.04);
}

/* Re-assert the approved accordion row padding inside the FAQ page blocks
   (the kit button shield zeroes raw button padding outside .chh-faq). */
body :is(.chf-section) .chh-faq-q {
  padding-block: 1.25rem;
  padding-inline: 0;
}
