/* The Subscribe button in the site header and the panel it opens (2026-11-30).
   Brand 2.0: Inky blue #142536 for text, the outline, the primary button and the focus ring; Ivory #F4F2ED, Stone #C9C4BA
   borders, Line #E4E0D8, Stone wash #ECE9E3. The button is rounded like Favorites and FR beside it; fields and the panel's
   button keep the 4 px corners.

   Room in the header: the button costs about 140 px, so on a desktop Favorites shows only its heart (the word stays for
   screen readers) and the search box is a little narrower. When the row is still too tight, header.js's compact step shows
   the envelope only; in the burger menu the button is a full-width row. */

.eralux-header-subscribe {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 42px; padding: 0 16px; margin: 0;
  border: 1px solid var(--ews-ink, #142536); border-radius: 999px;
  background: #fff; color: var(--ews-ink, #142536);
  font: 400 16px/1 Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap; cursor: pointer;
  transition: background-color 150ms ease-out;
}
.eralux-header-subscribe:hover { background: #E3E8EF; }
.eralux-header-subscribe:focus-visible { outline: 2px solid var(--ews-ink, #142536); outline-offset: 2px; }
.eralux-header-subscribe svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }

html:not(.ews-nav-collapsed) .eralux-header-favorites { width: 42px; padding: 0; justify-content: center; }
html:not(.ews-nav-collapsed) .eralux-header-favorites .eralux-header-favorites-label,
.ews-nav-compact .eralux-header-subscribe span {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
html:not(.ews-nav-collapsed) .eralux-header-search-wrap { width: 160px; flex: none; }
html:not(.ews-nav-collapsed) .eralux-header-search { width: 100%; min-width: 0; }
.ews-nav-compact .eralux-header-subscribe { width: 42px; padding: 0; gap: 0; }
/* Measured 2026-11-30: with the search box at 128 px in the compact step, the full menu still shows at 1280 px wide, as
   it did before the button; at 160 px it folded into the burger there. */
html.ews-nav-compact .eralux-header-search-wrap { width: 128px; }
.ews-nav-collapsed .eralux-header-subscribe { width: 100%; height: 44px; margin-top: 12px; }

/* The panel: a modal <dialog> on the right, like lumenpulse.com's. */
.eralux-subscribe {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: 440px; max-width: 100vw; height: 100%; max-height: 100dvh;
  background: #fff; color: var(--ews-ink, #142536);
  box-shadow: 0 1px 2px rgba(20, 37, 54, .05), 0 8px 24px rgba(20, 37, 54, .07);
  overflow: auto; overscroll-behavior: contain;
}
.eralux-subscribe::backdrop { background: rgba(20, 37, 54, .35); }
.eralux-subscribe[open] { animation: eralux-subscribe-in 180ms ease-out; }
@keyframes eralux-subscribe-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .eralux-subscribe[open] { animation: none; } .eralux-header-subscribe { transition: none; } }

.eralux-subscribe-panel { font: 16px/1.45 Calibri, Carlito, "Segoe UI", sans-serif; }
.eralux-subscribe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 32px 0; }
.eralux-subscribe h2 { margin: 0; font: 600 26px/1.2 Montserrat, system-ui, sans-serif; color: var(--ews-ink, #142536); }
.eralux-subscribe-close {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: #ECE9E3; color: var(--ews-ink, #142536); cursor: pointer;
}
.eralux-subscribe-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.eralux-subscribe-close:focus-visible,
.eralux-subscribe-send:focus-visible,
.eralux-subscribe input:focus-visible,
.eralux-subscribe select:focus-visible { outline: 2px solid var(--ews-ink, #142536); outline-offset: 2px; }

.eralux-subscribe-form { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 8px 32px 32px; }
.eralux-subscribe-lead { margin: 8px 0 6px; color: #4A5868; }
.eralux-subscribe-req { margin: 0; font-size: 13px; color: #5E6976; }
.eralux-subscribe label { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.3 Montserrat, system-ui, sans-serif; color: var(--ews-ink, #142536); }
.eralux-subscribe input[type="text"],
.eralux-subscribe input[type="email"],
.eralux-subscribe select {
  box-sizing: border-box; width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid #C9C4BA; border-radius: 4px; background: #fff;
  font: 16px Calibri, Carlito, "Segoe UI", sans-serif; color: var(--ews-ink, #142536);
}
.eralux-subscribe [aria-invalid="true"] { border-color: #B8410C; }
.eralux-subscribe-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eralux-subscribe .eralux-subscribe-consent {
  flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px;
  border: 1px solid #E4E0D8; border-radius: 4px; background: #F4F2ED;
  font: 400 15px/1.4 Calibri, Carlito, "Segoe UI", sans-serif;
}
.eralux-subscribe-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #142536; }
.eralux-subscribe-error { margin: 0; color: #B8410C; font-weight: 700; }
.eralux-subscribe-error:empty { display: none; }
.eralux-subscribe-send {
  height: 44px; border: 0; border-radius: 4px; background: var(--ews-ink, #142536); color: #fff;
  font: 600 16px Montserrat, system-ui, sans-serif; cursor: pointer;
}
.eralux-subscribe-send:disabled { opacity: .7; cursor: progress; }
.eralux-subscribe-foot { margin: 0; font-size: 14px; }
.eralux-subscribe-foot a, .eralux-subscribe-captcha a { color: var(--ews-ink, #142536); }
.eralux-subscribe-captcha { margin: 0; font-size: 12px; line-height: 1.5; color: #5E6976; }
.eralux-subscribe-done { padding: 16px 32px 32px; }
.eralux-subscribe-done h3 { margin: 0 0 8px; font: 600 20px/1.3 Montserrat, system-ui, sans-serif; }
.eralux-subscribe-done p { margin: 0; }

/* The panel names reCAPTCHA in words, so Google's floating badge is not needed. */
.grecaptcha-badge { visibility: hidden !important; }

@media (max-width: 600px) {
  .eralux-subscribe { width: 100vw; }
  .eralux-subscribe-head { padding: 20px 20px 0; }
  .eralux-subscribe-form { padding: 8px 20px 24px; }
  .eralux-subscribe-done { padding: 16px 20px 24px; }
  .eralux-subscribe-two { grid-template-columns: 1fr; }
}
