/*
 * Hydari theme — the newsletter's own parts (spec 5): the sign-up form of the page /newsletter and of the sidebar widget, the
 * confirmation and preferences pages. The footer's form and the page builder's block are styled where they are drawn. Colours only from
 * the palette's tokens; directions through logical properties.
 */
.hy-nl { display: grid; gap: .75rem; max-inline-size: 40rem; }
.hy-nl__title { margin: 0; font-size: 1.15rem; }
.hy-nl__text { margin: 0; color: var(--hy-muted); }
.hy-nl__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.hy-nl__email { flex: 1 1 14rem; min-inline-size: 0; }
.hy-nl__topics { display: grid; gap: .35rem; margin: 0; padding: .75rem 1rem; border: 1px solid var(--border-base, var(--hy-line)); border-radius: var(--radius-md, 10px); }
.hy-nl__topics legend { padding-inline: .35rem; font-weight: 600; font-size: .92rem; }
.hy-nl__hint { margin: 0; color: var(--hy-muted); font-size: .85rem; }
.hy-nl .hy-check, .hy-nl-prefs .hy-check { display: inline-flex; align-items: center; gap: .5rem; min-block-size: 32px; cursor: pointer; }
.hy-nl .hy-check input, .hy-nl-prefs .hy-check input { inline-size: 1.1rem; block-size: 1.1rem; margin: 0; accent-color: var(--color-primary); }
.hy-hp { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hy-nl-page { max-inline-size: 44rem; }
.hy-nl-message, .hy-nl-prefs { display: grid; gap: 1rem; }
.hy-nl-message__links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.hy-nl-prefs__who { margin: 0; overflow-wrap: anywhere; }
.hy-nl-prefs__leave, .hy-nl-prefs__topics { display: grid; gap: .6rem; justify-items: start; padding: 1rem; border: 1px solid var(--border-base, var(--hy-line)); border-radius: var(--radius-lg, 14px); background: var(--bg-card); }
.hy-widget .hy-nl { max-inline-size: none; }
.hy-widget .hy-nl__row { flex-direction: column; }
/* (2026-10-29) The sign-up page: one card in two parts — a green stage with the envelope, the title and the promise; the form beside it
   with a large address field, the topics as chips. */
.hy-nl-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid color-mix(in srgb, var(--hy-line) 70%, transparent); border-radius: 26px;
    background: var(--bg-card); box-shadow: var(--shadow-sm, none); }
.hy-nl-hero__stage { position: relative; isolation: isolate; display: grid; align-content: center; justify-items: start; gap: .8rem; padding: clamp(1.5rem, 4vw, 3rem); color: rgb(255 255 255);
    background: radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, color-mix(in srgb, var(--color-danger, #a8443c) 58%, #2a0a12) 70%, transparent), transparent 65%),
        radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--color-accent, #a98b4f) 30%, transparent), transparent 62%),
        linear-gradient(160deg, color-mix(in srgb, var(--color-dark, #2b4732) 85%, #000), color-mix(in srgb, var(--color-dark, #2b4732) 60%, #000)); }
.hy-nl-hero__stage::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23d9bf86' stroke-width='.7'%3E%3Cpath d='M20 2l18 18-18 18L2 20z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.hy-nl-hero__icon { display: grid; place-items: center; inline-size: 64px; block-size: 64px; border-radius: 20px; background: var(--color-accent, #a98b4f); color: var(--color-dark, #1a2a1e);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent, #a98b4f) 25%, transparent); animation: hy-nl-bob 4s ease-in-out infinite; }
.hy-nl-hero__icon .hy-icon { inline-size: 30px; block-size: 30px; }
@keyframes hy-nl-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.hy-nl-hero__title { margin: .4rem 0 0; color: rgb(255 255 255); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 800; }
.hy-nl-hero__title::after { content: ""; display: block; inline-size: 64px; block-size: 3px; margin-block-start: .7rem; border-radius: 3px; background: var(--color-accent, #a98b4f); }
.hy-nl-hero__intro { margin: 0; color: rgb(255 255 255 / .78); font-size: 1rem; line-height: 1.8; }
.hy-nl-hero__form { max-inline-size: none; padding: clamp(1.25rem, 3.4vw, 2.6rem); align-self: center; }
.hy-nl-hero .hy-nl { max-inline-size: none; gap: 1rem; }
.hy-nl-hero .hy-nl .hy-field { display: grid; gap: .35rem; font-size: .82rem; font-weight: 700; color: var(--hy-muted); }
.hy-nl-hero .hy-nl .hy-input { min-block-size: 50px; border-radius: 14px; font-size: 1rem; }
.hy-nl-hero .hy-nl__row { gap: .4rem; padding: 5px; border: 1px solid color-mix(in srgb, var(--hy-line) 80%, transparent); border-radius: 18px; background: var(--bg-sunken, var(--bg-app)); }
.hy-nl-hero .hy-nl__row .hy-input { border: 0; background: transparent; box-shadow: none; }
.hy-nl-hero .hy-nl__row .hy-btn { min-block-size: 50px; padding-inline: 1.5rem; border-radius: 14px; }
.hy-nl-hero .hy-nl__topics { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; border: 0; }
.hy-nl-hero .hy-nl__topics legend { margin-block-end: .5rem; padding: 0; color: var(--hy-muted); font-size: .82rem; }
.hy-nl-hero .hy-nl__topics .hy-check { min-block-size: 38px; padding: 0 .9rem 0 .6rem; border: 1px solid color-mix(in srgb, var(--hy-line) 80%, transparent); border-radius: 999px; background: var(--bg-card);
    transition: border-color .2s var(--hy-ease), background-color .2s var(--hy-ease); }
.hy-nl-hero .hy-nl__topics .hy-check:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.hy-nl-hero .hy-nl__topics .hy-nl__hint { flex-basis: 100%; }
@media (max-width: 767.98px) { .hy-nl-hero { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hy-nl-hero__icon { animation: none; } }
@media print { .hy-nl, .hy-nl-prefs form { display: none !important; } }
