/* Quiet Buttondown signup. A one-line strip, and an end card before the footer.
   Self-contained so pages that do not load theme.css (Politician Tracker) still match. */

.nl-strip {
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e2e2e2);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2, #333);
}
.nl-strip + .doors { margin-top: 40px; }
.nl-strip a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.nl-strip a:hover { text-decoration: underline; text-underline-offset: 3px; }

.nl-card {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line, #e2e2e2);
}
.nl-card-in {
  width: 100%;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 20px 4px;
}
.wrap > .nl-card .nl-card-in,
.wrap > .nl-slot .nl-card-in,
main.container .nl-card-in {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.nl-eye {
  margin: 0 0 10px;
  font: 700 11px/1 var(--font-sans, Inter, "Noto Sans TC", sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #666);
}
.nl-card h2 {
  margin: 0;
  max-width: 16em;
  font-family: var(--font-display, "Source Serif 4", "Noto Serif TC", Georgia, serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text, #111);
}
.nl-lead {
  margin: 12px 0 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2, #333);
}
.nl-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  margin-top: 18px;
}
.nl-email {
  flex: 1 1 200px;
  min-width: 0;
  height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line-2, #cfcfcf);
  border-radius: 2px;
  background: #fff;
  color: var(--text, #111);
  font: 400 14px/1 var(--font-sans, Inter, "Noto Sans TC", sans-serif);
}
.nl-email:hover { border-color: var(--muted, #666); }
.nl-email:focus { outline: none; border-color: #111; }
.nl-form button {
  flex: 0 0 auto;
  height: 38px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font: 600 13px/1 var(--font-sans, Inter, "Noto Sans TC", sans-serif);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.nl-form button:hover { background: #333; }
.nl-fine,
.nl-disc {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #666);
}
.nl-disc { margin-top: 2px; color: var(--faint, #8a8a8a); }
.nl-fine a { color: inherit; }
.nl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nl-card-in { padding-left: 16px; padding-right: 16px; }
  .wrap > .nl-card .nl-card-in,
  .wrap > .nl-slot .nl-card-in,
  main.container .nl-card-in { padding-left: 0; padding-right: 0; }
  .nl-form button { flex-basis: auto; }
}

/* Post-subscribe /thanks. Same type scale as the 404 page, without a second signup. */
.thanks { border-bottom: 0; padding-top: 72px; }
.thanks h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.02em; }
.thanks .lede {
  margin-top: 14px;
  max-width: 28em;
  font-family: var(--font-display, "Source Serif 4", "Noto Serif TC", Georgia, serif);
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
}
.thanks-cta { margin-top: 28px; }
.thanks-links { margin-top: 18px; font-size: 15px; }
.thanks-links a { color: var(--link, #1a3fd1); font-weight: 600; text-decoration: none; }
.thanks-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.thanks-links .sep { margin: 0 0.45em; color: var(--faint, #8a8a8a); }
.thanks .nl-fine { margin-top: 14px; }
.thanks-x { margin: 36px 0 0; font-size: 12px; }
.thanks-x a { color: var(--faint, #8a8a8a); text-decoration: none; }
.thanks-x a:hover { text-decoration: underline; text-underline-offset: 3px; }
