/* Named cta-button, not button. GeneratePress styles anything called .button. */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: rgba(var(--white), 1);
    text-decoration: none;
    background-color: rgba(var(--terra-green), 1);
    border: 0;
    border-radius: var(--radius-button);
    box-shadow: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.cta-button svg {
    flex: none;
}

.cta-button:hover,
.cta-button:focus,
.cta-button:active,
.cta-button:visited {
    color: rgba(var(--white), 1);
    text-decoration: none;
    background-color: rgba(var(--terra-green), 1);
    border: 0;
    box-shadow: none;
}

.cta-button:hover,
.cta-button:focus {
    filter: brightness(1.2);
}

.cta-button.cta-button-type-gold,
.cta-button.cta-button-type-gold:hover,
.cta-button.cta-button-type-gold:focus,
.cta-button.cta-button-type-gold:active,
.cta-button.cta-button-type-gold:visited {
    background-color: rgba(var(--gold), 1);
}

/* Light Gold fill + charcoal text, not white: white-on-Gold (the type-gold variant above) is a
   known 2.56 contrast failure that matches the live design elsewhere on the site, left alone
   there, but this variant is new (tt360/closing-band's Dark Green background preset) with no
   existing page to match, so it's built to actually pass WCAG AA from the start: charcoal on
   Light Gold is 6.25, comfortably over the 4.5 text threshold, and Light Gold itself reads at
   5.56 against --footer-green so the button stays visibly distinct from that background too
   (Gold itself was tried first and rejected here: it's only 3.97 against --footer-green, and
   charcoal-on-Gold is 4.47, just under the 4.5 AA floor). */
.cta-button.cta-button-type-light-gold,
.cta-button.cta-button-type-light-gold:hover,
.cta-button.cta-button-type-light-gold:focus,
.cta-button.cta-button-type-light-gold:active,
.cta-button.cta-button-type-light-gold:visited {
    color: rgba(var(--charcoal), 1);
    background-color: rgba(var(--light-gold), 1);
}

/* Bordered secondary button, for use alongside a solid cta-button (insights.html's
   "Browse the archive", "Contact support", etc.). */
.cta-button.cta-button-type-outline,
.cta-button.cta-button-type-outline:hover,
.cta-button.cta-button-type-outline:focus,
.cta-button.cta-button-type-outline:active,
.cta-button.cta-button-type-outline:visited {
    color: rgba(var(--terra-green), 1);
    background-color: rgba(var(--cream), 1);
    border: 1px solid rgba(var(--terra-green), 0.3);
}

.cta-button.cta-button-type-outline:hover,
.cta-button.cta-button-type-outline:focus {
    filter: none;
    background-color: rgba(var(--white), 1);
}

/* The visible half of the Load More progressive enhancement (docs/PLAN.md §18,
   assets/js/load-more.js): hidden by default so a visitor with JS off never sees a dead
   button, only the real pagination link underneath it. The script itself reveals this once
   it confirms it can actually run. */
.load-more-button {
    display: none;
}

/* md */
@media (max-width: 767.98px) {
    .cta-button {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-button {
        transition: none;
    }
}
