/* CS Blocks — portable section builder styles */

.cs-callout {
  border: 1px solid var(--cs-callout-border);
  background: var(--cs-callout-surface);
  color: var(--cs-text);
}

.cs-callout--info {
  border-color: var(--cs-callout-info-border);
  background: var(--cs-callout-info-surface);
}

.cs-callout--warning {
  border-color: var(--cs-callout-warning-border);
  background: var(--cs-callout-warning-surface);
  color: var(--cs-callout-warning-text);
}

.cs-cta {
  background: var(--cs-cta-surface);
  color: var(--cs-cta-text);
}

.cs-cta h1,
.cs-cta h2,
.cs-cta h3,
.cs-cta h4,
.cs-cta h5,
.cs-cta h6 {
  color: var(--cs-cta-text) !important;
}

.cs-cta__body,
.cs-cta__body p {
  color: var(--cs-cta-text) !important;
  opacity: 1;
}

.cs-cta a {
  text-decoration: none;
}

.cs-cta .btn-light {
  background: var(--cs-cta-button-surface);
  border-color: var(--cs-cta-button-surface);
  color: var(--cs-cta-button-text);
}

.cs-cta .btn-light:hover,
.cs-cta .btn-light:focus-visible {
  /* Stay a light pill on hover: the dark CTA surface needs a light button in both themes. */
  background: color-mix(in srgb, var(--cs-cta-button-surface) 84%, var(--cs-cta-surface));
  border-color: transparent;
  color: var(--cs-cta-button-text);
}

.cs-tabs__btn {
  border: 1px solid var(--cs-border-strong);
  background: transparent;
  color: var(--cs-text);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.cs-tabs__btn.is-active {
  background: var(--cs-inverse-surface);
  border-color: var(--cs-inverse-surface);
  color: var(--cs-inverse-text);
}

.cs-tab-pane[hidden] {
  display: none !important;
}

/* Editor blocks can be embedded inside a narrow column, so avoid row gutters that extend outside it. */
.cs-image-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.cs-image-text-grid--reverse > :first-child {
  order: 2;
}

@media (max-width: 767.98px) {
  .cs-image-text-grid {
    grid-template-columns: 1fr;
  }

  .cs-image-text-grid--reverse > :first-child {
    order: initial;
  }
}

.faq-accordion .faq-item {
  border-bottom: 1px solid var(--cs-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Plus that turns into a minus when the item is open (CSS only, no icon font). */
.faq-icon {
  flex-shrink: 0;
  height: 14px;
  position: relative;
  width: 14px;
}

.faq-icon::before,
.faq-icon::after {
  background: currentColor;
  border-radius: 2px;
  content: '';
  height: 1.5px;
  left: 0;
  position: absolute;
  top: 50%;
  transition: transform .25s ease, opacity .25s ease;
  width: 100%;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  opacity: 0;
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p,
.faq-answer__body {
  padding: 0 0 1.25rem;
  opacity: 0.75;
  line-height: 1.6;
  margin: 0;
}

.faq-answer__body p:last-child {
  margin-bottom: 0;
}

/* Picker page */
.cs-block-pick {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  color: inherit;
}

.cs-block-pick:hover,
.cs-block-pick.is-active {
  border-color: var(--cs-text) !important;
  box-shadow: var(--cs-shadow-float);
  transform: translateY(-2px);
}

.cs-block-pick__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cs-surface-muted);
  font-size: 1.25rem;
}

.cs-block-pick__cta {
  color: var(--cs-text);
}

.cs-pick-result {
  background: var(--cs-surface-raised);
}

.cs-block-pick__mark {
  display: block;
  height: 1.75rem;
  width: 1.75rem;
}
