/* Mailing-list CTA: header button, mobile-menu item, article card, and the bottom sheet. */
.header-cta.ml-open { border: 0; cursor: pointer; font-family: var(--sans); }
.header-cta.ml-open:hover { background: var(--primary-2); }
.nav .nav-ml { display: none; }
@media (max-width: 720px) {
  .header-cta.ml-open { display: none; }
  .nav.open .nav-ml { display: inline-flex; margin-top: 4px; border: 0; cursor: pointer; font: 700 15px var(--sans); color: #fff; background: var(--primary); padding: 11px 22px; border-radius: 999px; min-height: 44px; align-items: center; }
}

.ml-cta {
  margin: 44px 0 8px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), #12122a 70%);
  border: 1px solid rgba(210,13,116,.45); border-radius: 16px; padding: 22px 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
}
.ml-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--build)); }
.ml-cta .icon { font-size: 24px; line-height: 1; }
.ml-cta strong { color: #fff; display: block; margin-bottom: 6px; font-size: 18px; }
.ml-cta p { color: var(--mute); font-size: 15px; margin: 0 0 14px; }
.ml-cta .ml-cta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ml-cta button { border: 0; cursor: pointer; font: 700 15px var(--sans); color: #fff; background: var(--primary); padding: 11px 22px; border-radius: 999px; min-height: 44px; }
.ml-cta button:hover { background: var(--primary-2); }
.ml-cta a { font-size: 14px; font-weight: 600; }

html.mls-lock { overflow: hidden; }
.mls {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(560px, 100vw); max-width: 100vw;
  max-height: 92vh; max-height: 92dvh; padding: 0; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 -18px 60px rgba(0,0,0,.5); overflow: auto;
  transition: translate .28s cubic-bezier(.2,.8,.2,1), overlay .28s allow-discrete, display .28s allow-discrete;
  translate: 0 100%;
}
.mls[open] { translate: 0 0; }
@starting-style { .mls[open] { translate: 0 100%; } }
.mls::backdrop { background: rgba(8,6,20,.7); backdrop-filter: blur(3px); }
.mls-grab { display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.mls-grab::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); }
.mls-in { padding: 0 22px max(22px, env(safe-area-inset-bottom)); }
.mls-head { display: flex; justify-content: space-between; align-items: center; }
.mls-kicker { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--build); }
.mls-x { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 18px; cursor: pointer; border-radius: 50%; }
.mls-x:hover { background: rgba(255,255,255,.08); }
.mls-title { margin: 2px 0 8px; font-size: 26px; }
.mls-lede { color: rgba(255,255,255,.85); margin: 0 0 16px; }
.mls-form { display: grid; gap: 14px; margin: 0 0 14px; }
.mls-form[hidden], .mls-status[hidden] { display: none; }
.mls-field { display: grid; gap: 6px; font-weight: 600; }
.mls-email { font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.04); color: #fff; min-height: 48px; }
.mls-consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.mls-consent { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.mls-submit { justify-self: start; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; font: 700 16px var(--sans); cursor: pointer; }
.mls-submit:hover { background: var(--primary-2); }
.mls-submit:disabled { opacity: .6; cursor: wait; }
.mls-status { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); margin: 0 0 14px; }
.mls-status[data-kind="ok"] { border-color: rgba(141,255,141,.45); background: rgba(141,255,141,.08); }
.mls-status[data-kind="err"] { border-color: rgba(255,95,168,.55); background: rgba(210,13,116,.12); }
.mls-fine { color: var(--faint); font-size: 13px; margin: 0; }
.mls-email:focus-visible, .mls-submit:focus-visible, .mls-x:focus-visible, .ml-cta button:focus-visible, .header-cta.ml-open:focus-visible, .nav .nav-ml:focus-visible { outline: 3px solid var(--build); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mls { transition: none; } }
.mls-for { color: var(--mute); font-size: 14px; margin: -6px 0 14px; }
/* contact sheet */
.mlc-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.mlc .mlc-email { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.mlc-addr { font-family: var(--mono); font-size: 14px; color: var(--mute); margin: 0 0 18px; user-select: all; }
.mlc-sub { color: var(--faint); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.mlc-opt { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 600; text-decoration: none; }
.mlc-opt:hover { border-color: var(--build); color: var(--build); }
.mlc-opt:focus-visible, .mlc .mlc-email:focus-visible { outline: 3px solid var(--build); outline-offset: 2px; }
.ml-cta .ml-cta-row .ml-cta-alt { background: transparent; border: 1px solid rgba(255,255,255,.3); }
.ml-cta .ml-cta-row .ml-cta-alt:hover { border-color: var(--build); color: var(--build); background: transparent; }
