/* Shared button shapes, with navy primary actions. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border-radius: .5rem;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.5;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn-sm, .btn-group-sm > .btn {
    min-height: 2rem;
    padding: .4rem .8rem;
    font-size: .8125rem;
    border-radius: .5rem;
}

.btn-lg, .btn-group-lg > .btn {
    padding: .75rem 1.25rem;
    font-size: 1rem;
    border-radius: .6rem;
}

.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
    color: #ffffff;
    background-color: #1e3a5f;
    border-color: #1e3a5f;
}

.btn-outline-primary {
    color: #1e3a5f;
    border-color: #1e3a5f;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-check:focus + .btn-primary,
.show > .btn-primary.dropdown-toggle,
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.show > .btn-outline-primary.dropdown-toggle {
    color: #ffffff;
    background-color: #152b47;
    border-color: #152b47;
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: #1e3a5f;
    background-color: transparent;
}

.btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus,
.btn-check:focus + .btn-primary,
.btn-check:checked + .btn-primary:focus,
.btn-check:active + .btn-primary:focus,
.show > .btn-primary.dropdown-toggle:focus,
.btn-outline-primary:focus,
.btn-outline-primary:active:focus,
.btn-outline-primary.active:focus,
.btn-check:focus + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary:focus,
.btn-check:active + .btn-outline-primary:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 .2rem rgba(30, 58, 95, .25);
}

.btn:focus-visible,
.btn-check:focus-visible + .btn {
    outline: 2px solid #1e3a5f;
    outline-offset: 3px;
}

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