@import url('https://cdn.jsdelivr.net/npm/@fontsource-variable/libre-franklin@5/index.css');

/* Veer theme for the listmonk public pages.
   Applied as the appearance.public.custom_css setting; this file is the
   source of truth, the DB value is the applied copy. Colors are the site
   design tokens (--color-veer-* in the website repo's global.css):
   bg #060b11, surface #0d121c, accent #00d2a0, accent-dim #00b890,
   text #ffffff, text-secondary #b0b9c7, border rgba(255,255,255,0.07).
   Reading font is Libre Franklin Variable (the coming-soon page
   precedent). Science Gothic is the wordmark face only; it is never set
   on page text. Re-apply after any listmonk --upgrade (re-seeds
   settings): see docs/listmonk-operations.md. */

body {
  background: #060b11;
  color: #b0b9c7;
  font-family: "Libre Franklin Variable", "Libre Franklin", system-ui, sans-serif;
  /* Clears the fixed Veer footer bar (see .veer-footer below). */
  padding-bottom: 3rem;
}

/* listmonk paints the content card (.wrap) white with a hard offset
   shadow (public/static/style.css ~line 100); the Veer surface is a flat
   card with a hairline border, per the coming-soon page. */
.wrap {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: #00d2a0;
  text-decoration-color: rgba(0, 210, 160, 0.35);
}
a:hover { color: #ffffff; }

label { color: #b0b9c7; }

/* No hairline under the header (operator 2026-10-17): the rule exists to
   cancel listmonk's default 1px border in public/static/style.css. The
   banner logo fills the header width at its native 4:1 aspect ratio;
   max-width must be cleared too, because the same default rule caps the
   logo at 150px. */
.header { border-bottom: none; }
.header .logo img { width: 100%; max-width: none; height: auto; }

.button {
  background: #00d2a0;
  color: #060b11;
  font-weight: 600;
  border: none;
}
.button:hover { background: #00b890; color: #060b11; }
.button.button-outline {
  background: transparent;
  border: 1px solid #00d2a0;
  color: #00d2a0;
}
.button.button-outline:hover { background: #00d2a0; color: #060b11; }

/* The default public template renders a top-bar Login link to /admin.
   The edge nginx strips the anchor from the HTML source (2026-08-21,
   ticket #17), so public visitors never receive it. This rule is
   defense-in-depth for pages served directly on the LAN/tailnet port
   9000, which bypass the edge rewrite. */
a[href="admin"] { display: none; }

/* Inputs are wells: bg-colored on the surface card, hairline border,
   no default drop shadow. */
input[type="text"], input[type="email"], input[type="password"], select {
  background: #060b11;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 6px;
  box-shadow: none;
  caret-color: #00d2a0;
}

input[type="checkbox"], input[type="radio"] {
  accent-color: #00d2a0;
  width: 1.1rem;
  height: 1.1rem;
}

::placeholder { color: #8b95a3; opacity: 1; }

/* Focus: border tint for pointer users, a real ring for keyboard. */
input:focus, select:focus { border-color: #00d2a0; }
:focus-visible { outline: 2px solid #00d2a0; outline-offset: 2px; }

.home-options a { color: #b0b9c7; }
.home-options a:hover { color: #00d2a0; }

/* Secondary text listmonk ships as #666/#888; unreadable on dark. */
.archive .date { color: #8b95a3; }
.lists .description { color: #8b95a3; }

.error { color: #ef4444; }

footer.container { color: #8b95a3; }

/* Footer links (including "Powered by listmonk") are veer-text-secondary
   (#b0b9c7), accent on hover, matching the www footer link treatment.
   Operator decision 2026-08-21. */
footer.container > a { color: #b0b9c7; }
footer.container > a:hover { color: #00d2a0; }

/* Veer footer bar: fixed at the bottom of the window, mirroring the www
   site footer (hairline top border, copyright in veer-text-secondary at
   60%, links in veer-text-secondary with accent on hover). The bar's
   markup is injected by the edge sub_filter in
   lists.veerautonomous.com.conf; fixed positioning takes it out of the
   content flow, so it renders as a window-bottom bar on every public
   page. */
.veer-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.75rem 1rem;
  background: #060b11;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
}
.veer-footer .copy {
  color: rgba(176, 185, 199, 0.6);
  margin: 0;
}
.veer-footer .links { display: flex; gap: 1.5rem; }
.veer-footer a { color: #b0b9c7; text-decoration: none; }
.veer-footer a:hover { color: #00d2a0; }

::selection { background: rgba(0, 210, 160, 0.3); color: #ffffff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #060b11; }
::-webkit-scrollbar-thumb { background: #2a3442; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a4656; }
