/* NewsletterSignup — Tiyatro Hayali skin (the newsletter box, in five shapes).
   -------------------------------------------------------------------------
   The block's STRUCTURE and its engine ship inline with
   resources/views/tenant/blocks/NewsletterSignup/view.blade.php, every colour
   behind a --nls-* knob. This file is the paint: it turns those knobs and
   nothing else, body-scoped so it wins over the inline baseline. Delete it and
   the block still works — it simply wears the generic Brand Kit colours.

   The theme is a deep navy house with a single red accent and uppercase
   headings, so the signup is a quiet recessed panel on that navy: the field is
   a thin veil of the page's own type colour, not the baseline's white box,
   which would punch a hole in the wall. The button carries the red, and a hero
   with no picture fades the navy into it.

   This theme declares only the contract tokens (--color-bg, --color-text,
   --color-accent, --font-*) — it has no theme-private palette of its own — so
   every value below is derived from those with color-mix, which keeps the block
   coherent when a tenant repaints from config_json['theme_colors'] or the
   Brand Kit.

   NOT settable from here, by design: --nls-maxw, --nls-bg, --nls-text,
   --nls-hero-min-h and --nls-scrim are written into the root's style attribute
   by the view from the tenant's own settings (Full Width, background colour,
   text colour, hero height, scrim strength). An inline style beats a
   stylesheet, so the tenant's choice wins and a skin must not try. Everything
   below is a knob the view leaves to the theme.

     --brand-primary        the tenant's accent, preferred over the theme red
     --brand-btn-radius     the corner radius the tenant chose
     --font-heading/-body/-accent   the Brand Kit's three families
     .block-title-global    the block's heading — the Brand Kit owns its font,
                            size, colour, alignment and the rule under it
   ========================================================================= */

body .st-nls {
    /* A dark page wants a veiled field, not a white one. Both the ground and
       its type move together, which is why the baseline pairs them. */
    --nls-field-bg: color-mix(in srgb, var(--color-text) 7%, transparent);
    --nls-field-text: var(--color-text);
    --nls-field-border: color-mix(in srgb, var(--color-text) 18%, transparent);
    --nls-panel-bg: color-mix(in srgb, var(--color-text) 5%, transparent);
    --nls-muted: color-mix(in srgb, var(--color-text) 62%, transparent);

    /* The house red, unless the tenant's Brand Kit says otherwise. */
    --nls-accent: var(--brand-primary, var(--color-accent));
    --nls-accent-text: var(--brand-btn-primary-text, var(--color-text));

    /* The baseline's error red is a print colour and disappears on navy: lift
       it off the accent so it still reads as "wrong", not as "action". */
    --nls-error: var(--brand-error, color-mix(in srgb, var(--color-accent) 50%, var(--color-text)));
    --nls-preview-line: color-mix(in srgb, var(--color-text) 32%, transparent);

    /* With no picture chosen the hero fades the navy wall into the accent,
       dark enough for the white hero type the view sets. */
    --nls-hero-fallback: linear-gradient(160deg, var(--color-bg), color-mix(in srgb, var(--color-accent) 45%, var(--color-bg)));

    --nls-gap: 1.35rem;
}

/* The split layout's two halves must not read as one flat rectangle: the form
   half is the recessed panel (--nls-panel-bg above), the reasons list sits
   deeper still. */
body .st-nls__media {
    background: color-mix(in srgb, var(--color-bg) 85%, transparent);
}

/* ── The hero sits on a scrimmed still, so the veils lift a little ────────
   The hero's scrim is black by construction (the view paints #000 at
   --nls-scrim over the picture), so the field is a darker glass rather than the
   light veil the rest of the block wears. Everything readable is derived from
   --nls-text, which the view writes inline on the root — white by default on a
   hero, or the colour the tenant chose — so a repaint stays coherent instead of
   half-applied. This theme ships no on-image token set to borrow, unlike
   Bosphorus Nights. */

body .st-nls[data-nls-layout="hero"] {
    --nls-field-bg: rgba(0, 0, 0, 0.35);
    --nls-field-text: var(--nls-text);
    --nls-field-border: color-mix(in srgb, var(--nls-text) 30%, transparent);
    --nls-muted: color-mix(in srgb, var(--nls-text) 78%, transparent);
    --nls-error: var(--nls-text);
    --nls-preview-line: color-mix(in srgb, var(--nls-text) 40%, transparent);
}

/* ── Type ─────────────────────────────────────────────────────────────────
   The heading is .block-title-global and belongs to the Brand Kit; everything
   below is the theme's own voice around it. master.css sets every heading
   uppercase with tight tracking, so the block's small chrome answers it. */

body .st-nls__legend,
body .st-nls__stepmeta {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body .st-nls__sub,
body .st-nls__hint,
body .st-nls__fine,
body .st-nls__bullet,
body .st-nls__status,
body .st-nls__success-text {
    font-family: var(--font-body);
}

body .st-nls__pill,
body .st-nls__btn {
    font-family: var(--brand-btn-font, var(--font-body));
}

body .st-nls__btn:not(.st-nls__btn--ghost) {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Motion ───────────────────────────────────────────────────────────────
   The same easing the theme's own buttons and cards use. */

body .st-nls__btn {
    transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body .st-nls__btn:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--nls-accent) 70%, transparent);
}

body .st-nls__btn:active:not([disabled]) {
    transform: translateY(0);
}

body .st-nls__pill {
    transition: border-color 0.25s ease, background 0.25s ease;
}

/* A ticked box glows rather than tints — 12% of a red on navy is not visible,
   and the tick is the whole point of the interests layout. */
body .st-nls__pill:has(input:checked) {
    background: color-mix(in srgb, var(--nls-accent) 22%, transparent);
}
