/* Solon Press — the email sign-up form (shared/subscribe.js).
   Colours come only from the site's tokens (site.css on the platform pages,
   course.css in the editions — both define the same names). --bad exists
   only in the editions, so it falls back to the accent on platform pages.
   The button borrows the site's own .btn and only adjusts it here. */

.ss {
  position: relative;
  margin: 18px 0; padding: 18px 20px 14px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
  font-family: var(--sans); color: var(--ink);
}
.ss-head {
  margin: 0 0 4px; font-family: var(--serif); font-size: 1.08rem; font-weight: 600;
  line-height: 1.35; color: var(--ink);
}
.ss-blurb { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.ss-form { margin: 0; }
.ss-row { display: block; }
.ss-input {
  display: block; width: 100%; max-width: 460px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 16px;
}
.ss-input::placeholder { color: var(--ink-3); }
.ss-input:focus { outline: none; border-color: var(--accent); }
.ss-actions { margin: 12px 0 0; }
.ss .btn.ss-btn { padding: 10px 22px; font-size: 14px; white-space: nowrap; }
.ss .btn.ss-btn:disabled { opacity: .6; cursor: default; transform: none; }

.ss-consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer;
}
.ss-consent input {
  flex: none; width: 18px; height: 18px; margin: 1px 0 0;
  accent-color: var(--accent); cursor: pointer;
}

.ss-msg { margin: 8px 0 0; min-height: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ss-msg:empty { display: none; }
.ss-msg.ss-err { color: var(--bad, var(--accent-2)); }
.ss-done { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ok); }
.ss-done[hidden], .ss-form[hidden] { display: none; }
.ss-fine { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.ss-fine a { color: var(--ink-3); }
.ss-fine a:hover { color: var(--accent); }

button.ss-link {
  font: inherit; padding: 0; border: none; background: none; cursor: pointer;
  color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px;
}
button.ss-link:hover { color: var(--accent); }

/* visually hidden, still read aloud */
.ss-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* the honeypot: out of sight for people, present for robots */
.ss-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  .ss { padding: 16px 16px 12px; }
  .ss-input { max-width: none; }
  .ss .btn.ss-btn { width: 100%; }
}
