.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    font-size: calc(17rem / 16);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.button-red {
    background-color: var(--red);
    color: #ffffff;

    &:hover {
        background-color: var(--red-deep);
    }
}

.button-navy {
    background-color: var(--navy);
    color: #ffffff;

    &:hover {
        background-color: var(--navy-deep);
    }
}

/* On light surfaces */
.button-ghost {
    border-color: var(--navy);
    color: var(--navy);

    &:hover {
        background-color: var(--navy);
        color: #ffffff;
    }
}

/* On navy, for the one action a navy band leads with */
.button-gold {
    background-color: var(--gold);
    color: var(--navy);

    &:hover {
        background-color: #ffffff;
    }
}

/* On navy */
.button-outline {
    border-color: #5b6f8e;
    color: #ffffff;

    &:hover {
        border-color: #ffffff;
    }
}

/* Back to the parent page, on a navy band */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: calc(15rem / 16);
    color: var(--navy-text);

    &:hover {
        color: #ffffff;
    }
}

/* A destructive action kept quiet next to the main ones */
.delete-link {
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
    font-weight: 700;
    font-size: calc(15rem / 16);
    color: var(--red);

    &:hover {
        text-decoration: underline;
    }
}

/* Destructive, kept square and quiet until hovered */
.button-danger {
    padding: 0 16px;
    border-color: #f0c3ca;
    color: var(--red);

    &:hover {
        border-color: var(--red);
        background-color: var(--red-tint);
    }
}

.button-small {
    min-height: 44px;
    padding: 0 16px;
    font-size: calc(15rem / 16);
}
