/* Self-hosted signup UI. No Brevo SDK, tracker, iframe or provider stylesheet. */
.header-follow.newsletter-trigger { color: var(--inverse); background: var(--primary); border-radius: 6px; }
.header-follow.newsletter-trigger small { color: var(--inverse); opacity: .8; }
.header-follow.newsletter-trigger:hover { color: var(--inverse); background: var(--accent-ink); }
.newsletter-mobile { display: none; }
.newsletter-dialog { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(500px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 36px; margin: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 90px #0003; font: 400 var(--text-size)/1.65 var(--sans); z-index: 10001; }
.newsletter-dialog:not([open]) { display: none; }
.newsletter-dialog::backdrop { background: #0009; }
.newsletter-dialog[open]:not(:modal) { box-shadow: 0 0 0 100vmax #0009; }
.newsletter-is-open { overflow: hidden; }
.newsletter-heading { display: flex; gap: 9px; align-items: center; padding-right: 28px; color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.newsletter-dialog h2 { margin: 18px 0 12px; color: var(--primary); font-size: clamp(27px, 5vw, 34px); line-height: 1.2; letter-spacing: -.02em; }
.newsletter-dialog p { margin: 0 0 18px; }
.newsletter-close { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--primary); border-radius: 6px; font-size: 28px; line-height: 1; }
.newsletter-close:hover { color: var(--inverse); background: var(--primary); }
.newsletter-dialog a:not(.newsletter-close) { text-decoration: underline; }
.newsletter-email-label { display: block; margin-bottom: 7px; font-weight: 700; }
#newsletter-email { display: block; width: 100%; min-width: 0; height: 48px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid #a7aab1; border-radius: 6px; font-size: 16px; }
.newsletter-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 14px; line-height: 1.65; }
.newsletter-consent input { flex: 0 0 auto; margin: 5px 0 0; width: 17px; height: 17px; accent-color: var(--primary); }
.newsletter-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 11px 16px; border: 0; border-radius: 6px; color: var(--inverse); background: var(--primary); font-weight: 700; }
.newsletter-submit:hover:not(:disabled) { color: var(--inverse); background: var(--accent-ink); }
.newsletter-submit:disabled { opacity: .55; cursor: wait; }
.newsletter-dialog .newsletter-note, .newsletter-dialog .newsletter-help { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.newsletter-feedback:not(:empty) { padding: 13px 15px; margin-block: 14px; border-left: 3px solid var(--accent-ink); background: var(--wash); font-size: 14px; }
.newsletter-feedback.newsletter-error { border-left-color: #a51d2d; }
.newsletter-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
@media (max-width: 960px) { .header-actions { display: flex; align-items: center; gap: 2px; } .newsletter-mobile { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 44px; border-radius: 4px; color: var(--primary); } .newsletter-mobile:hover { color: var(--inverse); background: var(--primary); } }
@media (max-width: 560px) { .newsletter-dialog { padding: 28px 22px; } }
@media print { .newsletter-dialog, [data-newsletter-open] { display: none !important; } }
