/* Shared TRAP buttons. Load after the site theme. */
:root {
    --trap-blue: #154cc1;
    --trap-green: #b8f669;
    --trap-purple: #5e2ab4;
    --trap-lilac: #f2e9ff;
    --trap-ink: #1a1916;
    --trap-paper: #fffaf0;
}
.trap-btn--green {
    --trap-fill: var(--trap-green);
    --trap-text: var(--trap-ink);
    --trap-over-fill: var(--trap-blue);
    --trap-over-text: #fff;
}
.trap-btn--purple {
    --trap-fill: var(--trap-purple);
    --trap-over-fill: var(--trap-lilac);
    --trap-over-text: #351664;
}
.trap-btn--ink {
    --trap-fill: var(--trap-ink);
    --trap-over-fill: var(--trap-green);
}
.trap-btn--light, .trap-btn--outline {
    --trap-fill: #e5ecff;
    --trap-text: #123b92;
    --trap-over-fill: var(--trap-blue);
    --trap-over-text: #fff;
}

:is(a, button, input).trap-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: .62rem 1.12rem;
    appearance: none;
    background: var(--trap-fill, var(--trap-blue));
    color: var(--trap-text, #fff);
    font: 700 1.0625rem/1.18 'Open Sans Condensed', 'Arial Narrow', Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}
:is(a, button, input).trap-btn,
:is(a, button, input).trap-btn:is(:hover, :focus, :active, :disabled) {
    /* Both the cards and WordPress load this after their own control styles. */
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none;
    background-image: none !important;
    text-decoration: none;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    transition: none;
    animation: none;
}
:is(a, button, input).trap-btn:visited { color: var(--trap-text, #fff); }
:is(a, button, input).trap-btn:is(:hover, :focus-visible, :active):not(:disabled) {
    background-color: var(--trap-over-fill, var(--trap-green));
    color: var(--trap-over-text, var(--trap-ink));
}
:is(a, button, input).trap-btn:focus-visible {
    outline: 3px solid var(--trap-focus, var(--trap-ink));
    outline-offset: 3px;
}
:is(button, input).trap-btn:disabled {
    background-color: #ecebe7;
    color: #58564f;
    cursor: not-allowed;
    opacity: 1;
}
@media (forced-colors: active) {
    :is(a, button, input).trap-btn { text-decoration: underline; }
    :is(a, button, input).trap-btn:focus-visible { outline-color: Highlight; }
}
