/* Newsletter signup popup (SweetAlert content) */
.ah-nlsub {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    text-align: left;
}
.ah-nlsub-intro {
    margin: 0;
    font-size: 0.95em;
}
.ah-nlsub-email {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6em 0.75em;
    border: 1px solid #c3c4c7;
    border-radius: 0.35em;
    font-size: 1em;
}
.ah-nlsub-email:focus {
    outline: 2px solid var(--color-green);
    outline-offset: 1px;
}
.ah-nlsub-email:disabled {
    background: #f6f7f7;
    color: #646970;
}
.ah-nlsub-submit {
    all: unset;
    align-self: flex-start;
    padding: 0.5em 1.1em;
    background-color: var(--color-green);
    color: var(--color-white);
    font-weight: bold;
    border-radius: 0.35em;
    cursor: pointer;
}
.ah-nlsub-submit:disabled {
    opacity: 0.6;
    cursor: default;
}
/* `all: unset` above also wipes the browser's [hidden] { display: none },
   so the hidden attribute has to be honoured explicitly. */
.ah-nlsub-submit[hidden] {
    display: none;
}
.ah-nlsub-message {
    margin: 0;
    font-size: 0.9em;
}
/* Empty on open: collapse it entirely, otherwise it reserves a line and the
   form's flex gap on top of it. */
.ah-nlsub-message:empty {
    display: none;
}
.ah-nlsub-message[data-kind="error"] { color: #b32d2e; }
.ah-nlsub-message[data-kind="ok"]    { color: var(--color-green); font-weight: bold; }

/* Loading state: the submit button is hidden and the spinner takes its place. */
.ah-nlsub-message[data-kind="loading"] {
    display: flex;
    justify-content: center;
    min-height: 28px;
}
.ah-nlsub-title{
    text-align: left;
    font-family: var(--font1);
}
.ah-nlsub-intro,
.ah-nlsub-email,
.ah-nlsub-submit,
.ah-nlsub-message{
    font-family: var(--font1);
}
