/* Tradeics Newsletter public pages. Tokens copied from the live tradeics.com CSS (2026-11-11):
   canvas #faf8f3 / dark #12110f, raised #141414, muted #1f1f1f, foreground #0a0a0a / #faf8f3,
   muted-foreground #737373 / #a3a3a3, border #e5e5e5 / #ffffff1f, input #e5e5e5 / #ffffff29,
   primary #ff7968 (text #faf8f3, shadow 0 7px 10px #ff784e70, radius 3rem), ring #ff8a7a,
   destructive #e40014 / #ff6568, font "Lexend Deca", radius .625rem, cards rounded-3xl.
   Source of truth: /opt/tradeics-brand/listmonk/newsletter.css (bump ?v= in index.html after edits). */
@font-face { font-family: "Lexend Deca"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/tradeics-brand/fonts/lexend-deca-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend Deca"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/tradeics-brand/fonts/lexend-deca-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --tx-bg: #faf8f3; --tx-card: #ffffff; --tx-muted-bg: #f5f5f5; --tx-fg: #0a0a0a; --tx-muted: #737373;
  --tx-border: #e5e5e5; --tx-input: #e5e5e5; --tx-coral: #ff7968; --tx-on-coral: #faf8f3; --tx-ring: #ff8a7a;
  --tx-danger: #e40014;
  --tx-btn-shadow: 0 7px 10px #ff784e70; --tx-btn-shadow-hover: 0 7px 14px #ff784e8c; --tx-btn-shadow-press: 0 3px 6px #ff784e59;
  --tx-card-shadow: 0 4px 14px color-mix(in oklab, var(--tx-fg) 8%, transparent), 0 2px 6px color-mix(in oklab, var(--tx-fg) 5%, transparent);
  --tx-soft-shadow: 0 1px 3px color-mix(in oklab, var(--tx-fg) 12%, transparent);
  --tx-input-shadow: inset 0 0 0 1px var(--tx-input), 0 1px 3px color-mix(in oklab, var(--tx-fg) 6%, transparent);
  --tx-radius: .625rem; --tx-radius-card: 1.5rem; --tx-radius-pill: 3rem;
  --tx-font: "Lexend Deca", system-ui, arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tx-bg: #12110f; --tx-card: #141414; --tx-muted-bg: #1f1f1f; --tx-fg: #faf8f3; --tx-muted: #a3a3a3;
    --tx-border: #ffffff1f; --tx-input: #ffffff29; --tx-danger: #ff6568;
    --tx-card-shadow: inset 0 1px 0 0 rgba(255,255,255,.08), 0 8px 28px rgba(0,0,0,.45);
    --tx-soft-shadow: 0 1px 3px rgba(0,0,0,.5);
    --tx-input-shadow: inset 0 0 0 1px var(--tx-input);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--tx-bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  background: var(--tx-bg); color: var(--tx-fg); font-family: var(--tx-font); font-size: 16px; line-height: 1.6;
  padding: 48px 16px 32px; -webkit-font-smoothing: antialiased; }
a { color: var(--tx-fg); text-decoration-color: color-mix(in oklab, var(--tx-coral) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--tx-coral); }
a:focus-visible { outline: 2px solid var(--tx-ring); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 .75rem; }
h2 { font-size: 1.5rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.tx-muted, .description, .small { color: var(--tx-muted); font-size: .9rem; }

/* Header + logo */
.tx-header { width: 100%; max-width: 560px; display: flex; justify-content: center; margin-bottom: 28px; }
.tx-logo { display: inline-flex; border-radius: 8px; }
.tx-logo img { height: 24px; width: auto; display: block; }

/* Card */
.container.wrap, .tx-card { width: 100%; max-width: 560px; background: var(--tx-card); border: 0;
  border-radius: var(--tx-radius-card); box-shadow: var(--tx-card-shadow); padding: 36px 36px 32px; }
section + section, form + form, .data-form { margin-top: 28px; }
.data-form { width: 100%; padding-top: 28px; box-shadow: inset 0 1px 0 var(--tx-border); }
.data-form section { margin: 0; }

/* Inputs */
label { display: block; font-size: .875rem; font-weight: 500; margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; height: 48px; padding: 0 20px; border: 0; border-radius: 1.5rem;
  background: var(--tx-card); color: var(--tx-fg); font: inherit; font-size: 1rem;
  box-shadow: var(--tx-input-shadow); transition: box-shadow .2s ease; appearance: none; }
input::placeholder { color: var(--tx-muted); }
input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tx-fg) 30%, transparent); }
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
  outline: none; box-shadow: inset 0 0 0 2px var(--tx-coral), 0 0 0 4px color-mix(in oklab, var(--tx-coral) 18%, transparent); }
input:disabled { opacity: .55; }
.nonce { display: none !important; }

/* Buttons: coral pill */
.button, button.button, input[type="submit"].button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border: 1px solid var(--tx-coral); border-radius: var(--tx-radius-pill);
  background: var(--tx-coral); color: var(--tx-on-coral); font: inherit; font-size: 1rem; font-weight: 500;
  text-decoration: none; cursor: pointer; box-shadow: var(--tx-btn-shadow);
  transition: transform .12s ease, box-shadow .2s linear, filter .2s linear; -webkit-tap-highlight-color: transparent; }
.button:hover { color: var(--tx-on-coral); filter: brightness(1.04); box-shadow: var(--tx-btn-shadow-hover); transform: translateY(-1px); }
.button:active { transform: translateY(1px) scale(.98); box-shadow: var(--tx-btn-shadow-press); filter: brightness(.95); }
.button:focus-visible { outline: none; box-shadow: var(--tx-btn-shadow), 0 0 0 3px var(--tx-bg), 0 0 0 5px var(--tx-ring); }
.button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.button.button-outline { background: transparent; color: var(--tx-fg); border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--tx-input), var(--tx-soft-shadow); }
.button.button-outline:hover { color: var(--tx-coral); box-shadow: inset 0 0 0 1px var(--tx-coral), var(--tx-soft-shadow); }
.button.button-outline img { height: 20px; width: auto; }
.tx-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.tx-full { width: 100%; }

/* Circle controls (checkbox + radio): perfect circles, coral dot when selected */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 22px; height: 22px; min-width: 22px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--tx-card); cursor: pointer; vertical-align: middle;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--tx-fg) 28%, transparent), var(--tx-soft-shadow);
  transition: box-shadow .18s ease, background .18s ease, transform .12s ease; }
input[type="checkbox"]:hover, input[type="radio"]:hover {
  box-shadow: inset 0 0 0 1.5px var(--tx-coral), 0 0 0 4px color-mix(in oklab, var(--tx-coral) 14%, transparent); }
input[type="checkbox"]:checked, input[type="radio"]:checked {
  background: radial-gradient(circle at center, var(--tx-coral) 0 5px, transparent 5.5px), var(--tx-card);
  box-shadow: inset 0 0 0 1.5px var(--tx-coral), 0 2px 6px #ff784e40; }
input[type="checkbox"]:active, input[type="radio"]:active { transform: scale(.92); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
  outline: none; box-shadow: inset 0 0 0 1.5px var(--tx-coral), 0 0 0 3px var(--tx-card), 0 0 0 5px var(--tx-ring); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; }
@media (forced-colors: active) {
  input[type="checkbox"], input[type="radio"] { border: 2px solid CanvasText; }
  input[type="checkbox"]:checked, input[type="radio"]:checked { background: Highlight; }
}

/* Option rows (lists, radios, single checkbox) */
ul.lists, .optin-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.tx-option { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 1rem;
  background: var(--tx-muted-bg); box-shadow: var(--tx-soft-shadow); cursor: pointer; transition: box-shadow .2s ease; }
.tx-option:hover { box-shadow: 0 4px 14px color-mix(in oklab, var(--tx-fg) 10%, transparent); }
.tx-option:has(input:checked) { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tx-coral) 45%, transparent), 0 4px 14px #ff784e1f; }
.tx-option input { margin-top: 1px; }
.tx-option .tx-opt-body { display: block; min-width: 0; }
.tx-option .tx-opt-title { display: block; font-weight: 500; font-size: .95rem; margin: 0; cursor: pointer; }
.tx-option .tx-opt-help { display: block; color: var(--tx-muted); font-size: .85rem; margin-top: 2px; font-weight: 400; }
.optin-list li { padding: 12px 16px; border-radius: 1rem; background: var(--tx-muted-bg); box-shadow: var(--tx-soft-shadow); font-weight: 500; }
.tx-field { margin-bottom: 18px; }
.tx-section-title { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-muted); margin: 22px 0 8px; }

/* Captcha */
.captcha { margin-top: 18px; }
.tx-turnstile { min-height: 65px; }
altcha-widget { display: block; font-size: .9rem; --altcha-border-width: 0; --altcha-border-radius: 1rem; --altcha-color-base: var(--tx-muted-bg);
  --altcha-color-text: var(--tx-fg); --altcha-color-border: transparent; --altcha-color-border-focus: var(--tx-ring);
  --altcha-max-width: 100%; --altcha-color-error-text: var(--tx-danger); }
/* Third-party captcha branding hidden (verification itself stays on). */
altcha-widget .altcha-footer, altcha-widget .altcha-logo, altcha-widget a[href*="altcha.org"] { display: none !important; }

/* Messages, errors */
.error, .tx-error { color: var(--tx-danger); font-size: .9rem; }
.tx-message { color: var(--tx-fg); }
.tx-message p:last-child { margin-bottom: 0; }

/* Archive */
ul.archive { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.archive li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 1rem;
  background: var(--tx-muted-bg); box-shadow: var(--tx-soft-shadow); }
ul.archive li a { font-weight: 500; text-decoration: none; }
ul.archive .date { color: var(--tx-muted); font-size: .85rem; white-space: nowrap; }
.pagination { margin-top: 20px; }
.pagination a, .pagination .pg-page { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; margin-inline-end: 4px; box-shadow: var(--tx-soft-shadow); background: var(--tx-muted-bg); }
.pagination .pg-selected { background: var(--tx-coral); color: var(--tx-on-coral); }
.feed { vertical-align: middle; }
.right { text-align: end; } .center { text-align: center; }

/* Footer: exactly two lines */
.tx-footer { width: 100%; max-width: 560px; margin-top: 28px; text-align: center; color: var(--tx-muted); font-size: .8rem; line-height: 1.7; }
.tx-footer a { color: var(--tx-muted); text-decoration: none; }
.tx-footer a:hover { color: var(--tx-coral); }

@media (max-width: 600px) {
  body { padding: 28px 12px 24px; }
  .container.wrap, .tx-card { padding: 26px 20px 24px; border-radius: 1.25rem; }
  h2 { font-size: 1.3rem; }
  .tx-logo img { height: 20px; }
  .tx-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
