/* Newsletter signup — footer component.
   Self-contained and scoped to .nl-* so it drops into both footer systems on
   this site (the 4-column .footer-grid pages and the minimal .footer-row event
   pages) without inheriting either one's layout. Uses only brand custom
   properties that are declared identically in every page's :root, with literal
   fallbacks so it still renders correctly if dropped somewhere new. */

.nl {
  padding: 36px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.nl-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-glow, #6cb3e8);
  margin: 0 0 12px;
  font-weight: 500;
}

.nl-h {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  color: var(--white, #fff);
  margin: 0 0 8px;
}

.nl-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 20px;
  max-width: 46ch;
}

/* Email is the wide field, phone the narrow one — the shape of the row tells
   you which is required before you read a single label. */
.nl-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) auto;
  gap: 10px;
  align-items: start;
  max-width: 720px;
}

@media (max-width: 720px) {
  .nl-row { grid-template-columns: 1fr; }
}

.nl-field { display: flex; flex-direction: column; gap: 0; min-width: 0; }

.nl-input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--white, #fff);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.nl-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.nl-input:hover { border-color: rgba(108, 179, 232, 0.4); }

.nl-input:focus {
  outline: none;
  border-color: var(--blue-glow, #6cb3e8);
  background: rgba(108, 179, 232, 0.07);
}

/* Visible focus ring for keyboard users, matching the rest of the site. */
.nl-input:focus-visible,
.nl-btn:focus-visible {
  outline: 2px solid var(--blue-glow, #6cb3e8);
  outline-offset: 2px;
}

.nl-input[aria-invalid="true"] {
  border-color: #e2564d;
  background: rgba(226, 86, 77, 0.08);
}

.nl-btn {
  height: 48px;
  padding: 0 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  color: #041018;
  background: var(--blue-glow, #6cb3e8);
  border: 1px solid var(--blue-glow, #6cb3e8);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.nl-btn:hover:not(:disabled) {
  background: var(--white, #fff);
  border-color: var(--white, #fff);
}

.nl-btn:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 720px) {
  .nl-btn { width: 100%; }
}

/* Consent line. Required, not decorative — a phone number handed over in a
   newsletter box is not consent to text it unless we say that's what it's for. */
.nl-consent {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  margin: 12px 0 0;
  max-width: 60ch;
}

.nl-consent a { color: rgba(255, 255, 255, 0.65); text-decoration: underline; }
.nl-consent a:hover { color: var(--blue-glow, #6cb3e8); }

/* Status region. Reserves no space when empty so the footer doesn't shift, and
   is announced to screen readers via aria-live on the element itself. */
.nl-status {
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  min-height: 0;
}

.nl-status:empty { display: none; }

.nl-status[data-state="error"]   { color: #ff8a80; }
.nl-status[data-state="success"] { color: var(--blue-glow, #6cb3e8); }

/* Visually-hidden labels. The fields are placeholder-led by design, but a
   placeholder is not a label — screen readers get the real thing. */
.nl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.nl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .nl-input, .nl-btn { transition: none; }
}
