/*  HQ — Listmonk public-page theme  ─────────────────────────────────────────
    Aligns the public pages (https://lists.hq.zone/…) with the HQ corporate
    site + the campaign email template.

    WHERE THIS GOES
    Listmonk serves /public/custom.css from a setting, not a file: paste the
    whole of this into  Admin → Settings → Appearance → Public page → Custom CSS
    and Save. It loads AFTER the bundled style.css, so every rule below is an
    override.

    COVERS  home · subscribe form · manage prefs / unsubscribe · opt-in ·
            archive · message · login · pagination · footer.

    BRAND   navy #0A1F44, light blue #C3D2EE, one yellow accent #FACC15
            (carried by the logo tile). System fonts only — no Google Fonts,
            so visitor data never leaves for a third-party CDN.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --hq-navy:        #0A1F44;
  --hq-navy-hover:  #16306B;
  --hq-yellow:      #FACC15;
  --hq-lightblue:   #C3D2EE;
  --hq-canvas:      #EEF1F6;
  --hq-card:        #FFFFFF;
  --hq-ink:         #2A2F3A;
  --hq-ink-muted:   #6B7488;
  --hq-border:      #E3E8F0;
  --hq-input:       #D5DCE8;
  --hq-radius:      12px;
  --hq-radius-sm:   8px;
}

/* ── base ──────────────────────────────────────────────────────────────── */
html, body { background: var(--hq-canvas); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--hq-ink);
}
a {
  color: var(--hq-navy);
  text-decoration-color: var(--hq-lightblue);
  text-underline-offset: 2px;
}
a:hover { color: #000; }

h1, h2, h3, h4 {
  color: var(--hq-navy);
  font-weight: 600;
  line-height: 1.25;
}

/* ── card + layout ─────────────────────────────────────────────────────────
   The card div carries BOTH .container and .wrap, so we shape them together. */
.container {
  max-width: 580px;
  margin: 48px auto 16px auto;
}
.wrap {
  background: var(--hq-card);
  padding: 40px;
  border: 1px solid var(--hq-border);
  border-radius: var(--hq-radius);
  box-shadow: 0 10px 30px rgba(10, 31, 68, 0.08);
}

/* ── header + logo ─────────────────────────────────────────────────────────
   logo.png is the 512px navy-Q-on-yellow tile; render it as a compact, rounded
   app-icon rather than the default 150px-wide stretch. */
.header {
  border-bottom: 1px solid var(--hq-canvas);
  padding-bottom: 22px;
  margin-bottom: 30px;
  text-align: center;
}
.header .logo img {
  width: 60px;
  height: 60px;
  max-width: 60px;
  border-radius: 13px;
  display: inline-block;
  vertical-align: middle;
}

/* ── form fields ───────────────────────────────────────────────────────── */
label { color: var(--hq-ink); font-weight: 500; }

input[type="text"],
input[type="email"],
input[type="password"],
select {
  border: 1px solid var(--hq-input);
  border-radius: var(--hq-radius-sm);
  box-shadow: none;
  padding: 11px 14px;
  color: var(--hq-ink);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: var(--hq-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.12);
}

/* native checkboxes + radios in brand navy (subscribe lists, manage prefs,
   privacy export/wipe, unsubscribe-all) */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--hq-navy);
  width: 16px;
  height: 16px;
  vertical-align: -2px;
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.button {
  background: var(--hq-navy);
  color: #fff;
  border-radius: var(--hq-radius-sm);
  font-weight: 600;
  font-size: 1.02em;
  padding: 13px 30px;
}
.button:hover { background: var(--hq-navy-hover); color: #fff; }

.button.button-outline {
  background: #fff;
  border: 1px solid var(--hq-navy);
  color: var(--hq-navy);
}
.button.button-outline:hover {
  background: var(--hq-navy);
  border-color: var(--hq-navy);
  color: #fff;
}

/* ── lists (subscribe / manage prefs) ──────────────────────────────────── */
.lists .description { color: var(--hq-ink-muted); }

/* ── home options (Subscribe · Archive links under the Login button) ────── */
.home-options a { margin: 0 10px; font-weight: 500; }

/* ── archive ───────────────────────────────────────────────────────────── */
.archive .date { color: var(--hq-ink-muted); }

/* ── pagination ────────────────────────────────────────────────────────── */
.pg-page.pg-selected { color: var(--hq-navy); }

/* ── errors ────────────────────────────────────────────────────────────── */
.error { color: #D64545; }

/* ── footer ──────────────────────────────────────────────────────────────
   The public <footer> contains only the "Powered by listmonk" line, so hide
   it outright. (listmonk is AGPL-3.0; removing the attribution is permitted.)
   To keep a footer but restyle it instead, delete the rule below and use:
     footer.container { color: var(--hq-ink-muted); }
     footer a { color: var(--hq-ink-muted); text-decoration: underline; } */
footer.container { display: none; }

/* ── mobile ────────────────────────────────────────────────────────────── */
@media screen and (max-width: 650px) {
  .container { margin: 16px 12px; max-width: none; }
  .wrap { padding: 26px 20px; }
}
