/* ---------------------------------------------------------------------------
   Newsletter — footer signup form, confirm and unsubscribe pages.

   Kept in its own file so nothing here can collide with main.css. Every
   selector is namespaced with .nl-, and the form deliberately inherits the
   footer's own colours rather than importing a second palette.
   --------------------------------------------------------------------------- */

.nl-signup {
    max-width: 100%;
}

.nl-signup h3 {
    margin: 0 0 .5rem;
}

.nl-intro {
    margin: 0 0 1rem;
    font-size: .9rem;
    line-height: 1.5;
    opacity: .85;
}

.nl-form {
    display: block;
}

.nl-row {
    display: flex;
    gap: .6rem;
}

.nl-row .nl-field {
    flex: 1 1 0;
    min-width: 0;
}

.nl-field {
    display: block;
    margin-bottom: .6rem;
}

.nl-field > span {
    display: block;
    font-size: .78rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: .25rem;
    opacity: .8;
}

.nl-field input {
    width: 100%;
    box-sizing: border-box;
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
    color: inherit;
    font: inherit;
    font-size: .95rem;
}

.nl-field input:focus {
    outline: 2px solid #7fb2cc;
    outline-offset: 1px;
    background: rgba(255, 255, 255, .14);
}

.nl-field input::placeholder {
    color: rgba(255, 255, 255, .5);
}

/* Consent checkbox. The label is long on purpose — it is the wording that is
   stored as proof of consent, so it must not be shortened for layout. */
.nl-consent {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .8rem 0;
    font-size: .78rem;
    line-height: 1.45;
    opacity: .9;
    cursor: pointer;
}

.nl-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: .15rem;
    cursor: pointer;
}

.nl-consent a {
    text-decoration: underline;
}

.nl-submit {
    display: inline-block;
    padding: .6rem 1.4rem;
    border: 0;
    border-radius: 4px;
    background: #2c6e8f;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.nl-submit:hover:not(:disabled) {
    background: #3786ad;
}

.nl-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.nl-message {
    margin: .7rem 0 0;
    font-size: .85rem;
    line-height: 1.45;
    min-height: 1.2em;
}

.nl-message.ok  { color: #8fdca7; }
.nl-message.err { color: #ffb4a8; }

/* Honeypot. Kept out of the layout without display:none — a few bots skip
   fields that are display:none, but almost none of them run enough layout to
   notice a field parked off-screen. */
.nl-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Confirm / unsubscribe pages
   -------------------------------------------------------------------------- */

.nl-result {
    padding: 4rem 0;
}

.nl-result-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.2rem 2rem;
    border-radius: 8px;
    border-left: 5px solid #2c6e8f;
    background: #f4f7f9;
    color: #243b4a;
    box-shadow: 0 2px 14px rgba(36, 59, 74, .08);
}

.nl-result-card.nl-warn {
    border-left-color: #c9853f;
}

.nl-result-card h1 {
    margin: 0 0 .8rem;
    font-size: 1.6rem;
}

.nl-result-card p {
    margin: 0 0 1.2rem;
    line-height: 1.6;
}

.nl-result-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .nl-row {
        display: block;
    }
    .nl-result {
        padding: 2.5rem 0;
    }
}

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