/**
 * site-ui-newsletter-v2.css — the site's newsletter forms (1.17.0; v2 in
 * 1.39.0 adds the inline box and the closable prompt of contract v3,
 * section 4a). v1 stays on disk for pages cached with it.
 *
 * Its own file, loaded ONLY while plugin-newsletter says readers can
 * subscribe (AIPR_UI_Newsletter::open()). So installing the release that
 * brings it changes no byte of any page — nothing to purge — and the shell
 * stylesheet, which is on every URL and at the edge, keeps its name.
 * Opening signup changes the footer of every page anyway, and that is the
 * moment a Purge Everything is needed.
 *
 * THE FILENAME CARRIES THE DESIGN VERSION (Cloudflare ignores ?ver=): a
 * redesign ships as -v2 with AIPR_UI_Assets::CSS_NEWSLETTER changed.
 *
 * Loaded after the shell stylesheet, so the tokens are given. Same grammar as the
 * rest of the site: 12px uppercase label, 15px short line, 17px field text
 * (never under 16px — iOS zooms a focused field below that), purple
 * only for interaction.
 */

/* ─── Footer: label, field and button on the dark band ────────── */

.aipr-ui-ftr-nl {
    max-width: 400px;
    margin: 0;
}
.aipr-ui-ftr-nl .aipr-ui-ftr-sub-label {
    display: block;
}
.aipr-ui-ftr-nl-row {
    display: flex;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 2px;
}
.aipr-ui-ftr-nl-row:focus-within {
    border-color: var(--aipr-ui-wedge);
    outline: 1px solid var(--aipr-ui-wedge);
}
/* Element + class: the base layer and any theme style bare inputs, and the
   footer's own reset does not reach them. */
.aipr-ui-ftr input.aipr-ui-ftr-nl-in {
    flex: 1;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 0;
    outline: 0 !important;
    background: transparent;
    box-shadow: none;
    color: var(--aipr-ui-band-ink);
    font-family: var(--aipr-ui-sans);
    font-size: 17px;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
}
.aipr-ui-ftr input.aipr-ui-ftr-nl-in::placeholder {
    color: var(--aipr-ui-band-mute);
    opacity: 1;
}
.aipr-ui-ftr button.aipr-ui-ftr-nl-go {
    flex: none;
    height: 42px;
    padding: 0 20px;
    background: var(--aipr-ui-wedge);
    color: var(--aipr-ui-band);
    font-size: 15px;
    font-weight: 600;
    transition: background 120ms ease;
}
.aipr-ui-ftr button.aipr-ui-ftr-nl-go:hover {
    background: #fff;
}

/* ─── Article: one list, after the body ────────────────────────
   The field and button are the search form's (.aipr-ui-sform, in the views
   sheet); only the block around them is new. */

.aipr-ui-nl {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 2px solid var(--aipr-ui-ink);
}
.aipr-ui-nl-h {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--aipr-ui-ink);
}
.aipr-ui-nl-dek {
    margin-top: 6px;
    max-width: 60ch;
    font-size: 15px;
    line-height: 1.55;
    color: var(--aipr-ui-mute);
}
.aipr-ui-v .aipr-ui-nl-form {
    max-width: 520px;
    margin-top: 16px;
}
.aipr-ui-v .aipr-ui-nl-form input.aipr-ui-sform-in {
    height: 46px;
    font-size: 17px;
}
/* The related rows follow with their own 2px rule; keep the two blocks
   apart rather than stacked rule on rule. */
.aipr-ui-nl + .aipr-ui-rel {
    margin-top: 48px;
}

/* ─── Article: the inline box (v3, 1.39.0) ─────────────────────
   Inside the body, after its second paragraph. Quiet on purpose: a 1px
   line above and below instead of the 2px rule that opens a module (Key
   Facts follows with that rule), the one label, a 20px line, the module
   text size for the dek, and the same field and square ink button as the
   module. Every text rule names the body's <p> rule it has to beat
   (.aipr-ui-a .aipr-ui-art-body :is(p, li), specificity 0,2,1). */

.aipr-ui-a .aipr-ui-nli {
    margin: 36px 0;
    padding: 20px 0 24px;
    border-top: 1px solid var(--aipr-ui-line);
    border-bottom: 1px solid var(--aipr-ui-line);
}
.aipr-ui-a .aipr-ui-nli p.aipr-ui-nli-k,
.aipr-ui-a .aipr-ui-nlp p.aipr-ui-nlp-k {
    margin: 0 0 8px;
    font-family: var(--aipr-ui-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 16px;
    text-transform: uppercase;
    color: var(--aipr-ui-mute);
}
.aipr-ui-a .aipr-ui-nli p.aipr-ui-nli-h {
    margin: 0;
    max-width: 34em;
    font-family: var(--aipr-ui-sans);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 27px;
    color: var(--aipr-ui-ink);
}
.aipr-ui-a .aipr-ui-nli p.aipr-ui-nli-dek {
    margin: 6px 0 0;
    max-width: 60ch;
    font-family: var(--aipr-ui-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 25px;
    color: var(--aipr-ui-mute);
}
.aipr-ui-v .aipr-ui-nli-form {
    max-width: 520px;
    margin-top: 16px;
}
.aipr-ui-v .aipr-ui-nli-form input.aipr-ui-sform-in {
    height: 46px;
    font-size: 17px;
}

/* ─── Article: the closable prompt (v3, 1.39.0) ────────────────
   A card fixed to the bottom-right corner on a desktop, a strip along the
   bottom on a phone. It ships with the hidden attribute and only
   site-ui-views-v3.js removes it, so until then it takes no space and the
   page never moves. Never full-screen, never a backdrop. The slide-in is
   only for readers who have not asked for reduced motion. */

.aipr-ui-nlp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    box-sizing: border-box;
    width: 360px;
    max-width: calc(100vw - 48px);
    padding: 16px 20px 20px;
    background: var(--aipr-ui-paper);
    border: 1px solid var(--aipr-ui-line);
    border-top: 2px solid var(--aipr-ui-ink);
    box-shadow: 0 12px 32px rgba(14, 14, 18, .14);
    color: var(--aipr-ui-body);
    font-family: var(--aipr-ui-sans);
}
.aipr-ui-nlp[hidden] {
    display: none;
}
.aipr-ui-a .aipr-ui-nlp p.aipr-ui-nlp-k {
    padding-right: 36px;
}
.aipr-ui-a .aipr-ui-nlp p.aipr-ui-nlp-h {
    margin: 0;
    padding-right: 28px;
    font-family: var(--aipr-ui-sans);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 23px;
    color: var(--aipr-ui-ink);
}
.aipr-ui-a .aipr-ui-nlp p.aipr-ui-nlp-dek {
    margin: 4px 0 0;
    font-family: var(--aipr-ui-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20px;
    color: var(--aipr-ui-mute);
}
.aipr-ui-a .aipr-ui-nlp button.aipr-ui-nlp-x {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--aipr-ui-mute);
    cursor: pointer;
}
.aipr-ui-a .aipr-ui-nlp button.aipr-ui-nlp-x:hover {
    color: var(--aipr-ui-accent);
}
.aipr-ui-v .aipr-ui-nlp-form {
    max-width: none;
    margin-top: 12px;
}
.aipr-ui-v .aipr-ui-nlp-form input.aipr-ui-sform-in {
    height: 42px;
    padding: 0 12px;
    font-size: 16px;
}
.aipr-ui-v .aipr-ui-nlp-form .aipr-ui-sform-go {
    padding: 0 16px;
}
@media (prefers-reduced-motion: no-preference) {
    .aipr-ui-nlp {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 200ms ease, transform 200ms ease;
    }
    .aipr-ui-nlp.is-in {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 600px) {
    .aipr-ui-ftr-nl {
        max-width: none;
    }
    .aipr-ui-ftr button.aipr-ui-ftr-nl-go {
        padding: 0 16px;
    }
    .aipr-ui-nl {
        margin-top: 40px;
    }
    .aipr-ui-a .aipr-ui-nli {
        margin: 32px 0;
    }
    .aipr-ui-a .aipr-ui-nli p.aipr-ui-nli-h {
        font-size: 18px;
        letter-spacing: 0;
        line-height: 25px;
    }
    /* A strip, not a card: edge to edge along the bottom, clear of the
       home indicator. Short enough to leave the reading in view. */
    .aipr-ui-nlp {
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-width: none;
        padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
        border-width: 2px 0 0;
        box-shadow: 0 -6px 20px rgba(14, 14, 18, .10);
    }
    .aipr-ui-a .aipr-ui-nlp p.aipr-ui-nlp-k {
        margin-bottom: 4px;
    }
    .aipr-ui-a .aipr-ui-nlp p.aipr-ui-nlp-h {
        font-size: 16px;
        line-height: 22px;
    }
    .aipr-ui-a .aipr-ui-nlp button.aipr-ui-nlp-x {
        top: 2px;
        right: 4px;
        width: 44px;
        height: 44px;
    }
    .aipr-ui-v .aipr-ui-nlp-form {
        margin-top: 10px;
    }
}
