/* /alerts/, /alerts/confirm/, /alerts/unsubscribe/. Tokens from style.css. */
.alerts { max-width: 680px; margin: 0 auto; padding: 18px 20px 64px; }
.alerts-head h1 { margin-top: 8px; }
.alerts-head .block-sub { max-width: 36em; }
.manage-state { margin-top: 14px; display: inline-block; padding: 6px 13px; border-radius: 100px; background: var(--chip); color: var(--ink-2); font-size: 14px; font-weight: 600; }

.alerts-form, .done, .notes, .panel {
  margin-top: 26px; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-card); padding: 22px 20px;
}
.field { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.field legend, .field > label { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); padding: 0; }
.opt { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hint { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.alerts input[type="text"], .alerts input[type="email"], .alerts input[type="url"] {
  display: block; width: 100%; margin-top: 10px; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--paper);
  font-family: inherit; font-size: 16px; color: var(--ink);
}
.alerts input:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 1px; }
.alerts input[aria-invalid="true"] { border-color: #B3261E; }

.seg { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--chip); border-radius: 14px; padding: 4px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 11px; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 36, 15, 0.12); }
.seg input:focus-visible + span { outline: 2px solid var(--acc-ink); outline-offset: 1px; }

.preview { margin: 4px 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--rule-soft); }
.preview-n { font-size: 15.5px; font-weight: 700; color: var(--acc-ink); }
.preview-list { list-style: none; margin-top: 8px; }
.preview-list li { padding: 6px 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.preview-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.preview-list a:hover { text-decoration: underline; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.alerts .btn { border: 0; font-family: inherit; cursor: pointer; }
.alerts .btn[disabled] { opacity: 0.6; cursor: default; }
.btn.quiet { background: var(--chip); color: var(--ink-2); }
.btn.quiet:hover { background: #E4EFDA; }
.stop { font-size: 14.5px; color: var(--ink-3); }
.form-msg { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); min-height: 1.4em; }
.form-msg.err { color: #B3261E; }

.done h2, .notes h2, .panel h1 { margin-top: 0; font-size: 21px; }
.notes h2 + p, .notes p + p { margin-top: 8px; }
.notes p + h2 { margin-top: 22px; }
.notes p { font-size: 15px; color: var(--ink-2); }
.notes a, .done a, .panel a { color: var(--acc-ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
