/**
 * site-ui-newsletter-v3.css — the site's newsletter forms (1.17.0; v2 in
 * 1.39.0 added the inline box and the closable prompt of contract v3,
 * section 4a; v3 in 1.40.0 moves the box after Key Facts, drops the prompt
 * and gives the box's field its own focus: no outer ring). v1 and v2 stay
 * on disk for pages cached with them.
 *
 * 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 newsletter box (v3; after Key Facts since 1.40.0) ──
   Printed after the body, where the module was, on every Funding article.
   One 1px line above and none below: "More in" follows with its own 2px
   rule. The one label, a 20px line, the module text size for the dek.
   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: 48px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--aipr-ui-line);
}
.aipr-ui-a .aipr-ui-nli + .aipr-ui-rel {
    margin-top: 56px;
}
.aipr-ui-a .aipr-ui-nli p.aipr-ui-nli-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);
}

/* The box's field. Not the search form's 2px ink frame with a purple ring
   offset around it (owner 2026-12-04: the ring read as a stray frame, and it
   framed the button too). A 1px edge at rest (--aipr-ui-faint, 4.89:1 on
   white, over the 3:1 an input edge needs); on focus that edge becomes 2px
   ink in place, so nothing outside the field moves or appears. Purple stays
   for interaction: the button's hover and its keyboard focus ring. The
   search page's form keeps its own look. */
.aipr-ui-v .aipr-ui-nli-form {
    max-width: 520px;
    margin-top: 16px;
    border: 0;
}
.aipr-ui-v .aipr-ui-nli-form:focus-within {
    outline: 0;
}
.aipr-ui-v .aipr-ui-nli-form input.aipr-ui-sform-in {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--aipr-ui-faint);
    border-right: 0;
    font-size: 17px;
}
.aipr-ui-v .aipr-ui-nli-form input.aipr-ui-sform-in:focus {
    border-color: var(--aipr-ui-ink);
    box-shadow: inset 0 0 0 1px var(--aipr-ui-ink);
}
.aipr-ui-v .aipr-ui-nli-form .aipr-ui-sform-go {
    height: 48px;
}
.aipr-ui-v .aipr-ui-nli-form .aipr-ui-sform-go:focus-visible {
    outline: 2px solid var(--aipr-ui-accent);
    outline-offset: 2px;
}

@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-top: 40px;
    }
    .aipr-ui-a .aipr-ui-nli p.aipr-ui-nli-h {
        font-size: 18px;
        letter-spacing: 0;
        line-height: 25px;
    }
    .aipr-ui-v .aipr-ui-nli-form .aipr-ui-sform-go {
        padding: 0 16px;
    }
}
