/* ==========================================================================
   Component — CTA panel
   --------------------------------------------------------------------------
   Closing call to action. A tinted, contained panel rather than a full
   dark band, so it stays distinct from the inverse footer that follows.

   <section class="section" aria-labelledby="cta-title">
     <div class="container">
       <div class="cta-panel">
         <div class="cta-panel__content">
           <h2 class="cta-panel__title" id="cta-title">…</h2>
           <p class="cta-panel__text">…</p>
         </div>
         <div class="cluster cta-panel__actions">…</div>
       </div>
     </div>
   </section>

   Layout: stacked → text + actions side by side (lg).
   WordPress: template-parts/cta.php
   ========================================================================== */

.cta-panel {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-section-sm);
  padding-inline: var(--space-gutter);
  border-radius: var(--card-radius);
  background-color: var(--color-accent-soft);
}

@media (min-width: 48em) {
  .cta-panel {
    padding-inline: var(--space-8);
  }
}

@media (min-width: 64em) {
  .cta-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--space-8);
  }
}

.cta-panel__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cta-panel__title {
  max-inline-size: 22ch;
  font-family: var(--type-h1-family);
  font-size: var(--type-h1-size);
  font-weight: var(--type-h1-weight);
  line-height: var(--type-h1-leading);
  letter-spacing: var(--type-h1-tracking);
}

.cta-panel__text {
  max-inline-size: 56ch;
  color: var(--color-text-secondary);
  font-size: var(--type-body-large-size);
  line-height: var(--type-body-large-leading);
}

.cta-panel__actions {
  --cluster-space: var(--space-3);
}

/* Windows High Contrast: the tint disappears, keep a visible boundary */
@media (forced-colors: active) {
  .cta-panel {
    border: var(--border-width) solid CanvasText;
  }
}
