/*
 * Site-level additions to the Signal theme (assets/signal.css is the design's
 * own stylesheet, copied verbatim from the canvas). Hand-maintained; the build
 * does not touch it.
 */

html{background:#05060A;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* State-driven blocks (<sc-if> in the design). The wrapper is layout-neutral
   when shown, so the block lays out exactly as it did in the design. */
[data-when]:not(.is-open){display:none !important}
[data-when].is-open{display:contents}

/* Form send failure note */
.form-error{font-size:14px;line-height:1.6;color:#FFD2D2;background:rgba(255,80,80,.08);border:1px solid rgba(255,120,120,.35);border-radius:12px;padding:12px 16px}
.form-error a{color:#FFFFFF;text-decoration:underline}

button[disabled]{opacity:.7;cursor:progress}

/* Six nav links plus the logo and CTA need ~1120px. Between the design's 900px
   breakpoint and that width, switch to the menu button instead of overflowing. */
@media (max-width:1180px){
  .ha header .hide-sm{display:none !important}
  .ha header .show-sm{display:inline-flex !important}
}
