/*
 * Aeyqua — Listmonk public-page theme.
 * Paste into Settings > Appearance > Public > Custom CSS.
 * Keep existing Custom JavaScript unchanged: it supplies the privacy link.
 * Does not alter form behaviour, consent, CAPTCHA or admin access.
 * No external fonts, images or tracking requests.
 */
:root {
  --aeyqua-bg: #09191e;
  --aeyqua-panel: #102126;
  --aeyqua-field: #0b191e;
  --aeyqua-mint: #9bd9bd;
  --aeyqua-ink: #09221d;
  --aeyqua-text: #e1efe9;
  --aeyqua-muted: #afc6be;
  --aeyqua-border: #31504d;
}
html {
  min-width: 0;
  background: var(--aeyqua-bg);
}
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #153632 0, #09191e 65%);
  background-color: var(--aeyqua-bg);
  color: var(--aeyqua-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
.container { width: calc(100% - 32px); max-width: 620px; }
.container.wrap {
  margin: 48px auto 0;
  padding: 36px 40px;
  border: 1px solid var(--aeyqua-border);
  border-top: 4px solid var(--aeyqua-mint);
  border-radius: 20px;
  background: var(--aeyqua-panel);
  box-shadow: 0 24px 64px #00000030;
  overflow-wrap: anywhere;
}
.header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--aeyqua-border);
}
/* Retain the configured logo and its accessible alternative text.
   A light surround keeps the existing dark Listmonk logo legible.
   Set your Aeyqua logo in Listmonk's own branding settings if desired. */
.header .logo a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  background: #e8f4ed;
}
.header .logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 56px;
}
h1, h2, h3, h4 {
  color: var(--aeyqua-text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(32px, 6vw, 44px); }
h2 { margin: 0 0 24px; font-size: clamp(30px, 5vw, 38px); }
h3 { font-size: 25px; }
p { margin-top: 0; margin-bottom: 20px; }
a {
  color: var(--aeyqua-mint);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
a:hover { color: #c4ebd7; }
label { color: var(--aeyqua-text); }
.form p > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"],
input[type="tel"], select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--aeyqua-border);
  border-radius: 10px;
  background: var(--aeyqua-field);
  color: var(--aeyqua-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #94ada5; opacity: 1; }
input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: var(--aeyqua-mint);
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--aeyqua-mint);
  outline-offset: 3px;
}
input:focus, textarea:focus, select:focus { border-color: var(--aeyqua-mint); }
input:disabled, select:disabled, textarea:disabled, .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.button, button[type="submit"], input[type="submit"] {
  display: inline-block;
  max-width: 100%;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--aeyqua-mint);
  color: var(--aeyqua-ink);
  font: 700 15px/1.5 Arial, Helvetica, sans-serif;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
}
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: #b9e7cf;
  color: var(--aeyqua-ink);
}
.button.button-outline {
  border-color: #70988b;
  background: transparent;
  color: var(--aeyqua-mint);
}
.button.button-outline:hover { background: #183b35; color: #e1efe9; }
.lists { margin: 28px 0; padding: 0; }
.lists h2 { margin: 0 0 14px; font-size: 25px; }
.lists li {
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 1px solid var(--aeyqua-border);
  border-radius: 12px;
  background: var(--aeyqua-field);
}
.lists li label { font-size: 15px; font-weight: 600; }
.lists .description {
  margin: 8px 0 0 30px;
  color: var(--aeyqua-muted);
  font-size: 14px;
  line-height: 1.6;
}
.form .nonce { display: none; } /* Preserve the original anti-spam field. */
.form .captcha { margin: 24px 0; }
altcha-widget {
  display: block;
  max-width: 100%;
  --altcha-max-width: 100%;
  --altcha-border-radius: 10px;
  --altcha-color-base: #0b191e;
  --altcha-color-text: #e1efe9;
  --altcha-color-border: #70988b;
  --altcha-color-border-focus: #9bd9bd;
  --altcha-color-footer-bg: #102126;
  --altcha-color-active: #9bd9bd;
  --altcha-color-error-text: #ffb4a6;
}
[data-aeyqua-newsletter-privacy] {
  margin: 20px 0;
  color: var(--aeyqua-muted);
  font-size: 13px;
  line-height: 1.7;
}
.error { color: #ffb4a6; }
.success { color: var(--aeyqua-mint); }
.unsub-all {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--aeyqua-border);
}
.small, .archive .date { color: var(--aeyqua-muted); }
hr { border: 0; border-top: 1px solid var(--aeyqua-border); }
footer.container {
  margin: 22px auto 32px;
  color: var(--aeyqua-muted);
  font-size: 12px;
  line-height: 1.6;
}
footer a { color: var(--aeyqua-muted); }
footer a:hover { color: var(--aeyqua-mint); }
@media (max-width: 650px) {
  .container { width: calc(100% - 24px); }
  .container.wrap { margin: 16px auto 0; padding: 26px 22px; border-radius: 16px; }
  .header { margin-bottom: 24px; padding-bottom: 20px; }
  .button, button[type="submit"], input[type="submit"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .button, input, select, textarea { transition: none; }
}
