/* Global Traders Academy — public news pages (/articles, /newsletter). Light by default, dark when the OS asks. */
:root {
  --bg: #ffffff; --bg2: #f5f7fa; --ink: #0f172a; --ink2: #334155; --muted: #64748b; --line: #e2e8f0;
  --navy: #0b1f3a; --gold: #c9a44c; --gold-ink: #9a7426; --gold-bg: #fbf7ec; --gold-line: #ecdcb0;
  --up: #15803d; --down: #dc2626; --link: #1d4ed8; --card: #ffffff; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .04);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --bg2: #111a2c; --ink: #e5e9f0; --ink2: #c3cad6; --muted: #8b97ab; --line: #1f2a3d; --card: #0f1828;
    --gold-ink: #d9b65e; --gold-bg: #1b1810; --gold-line: #3d3420; --up: #22c55e; --down: #f87171; --link: #7aa7ff; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.up { color: var(--up); font-weight: 600; } .down { color: var(--down); font-weight: 600; }

/* header / footer */
.nh { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.nh-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 62px; display: flex; align-items: center; gap: 24px; }
.nh-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.nh-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.nh-brand b { font-size: 15px; letter-spacing: .2px; }
.nh-brand small { font-size: 10px; letter-spacing: 2.4px; color: var(--gold); font-weight: 700; }
.nh-nav { display: flex; gap: 18px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nh-nav a { color: #cbd5e1; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nh-nav a:hover { color: #fff; text-decoration: none; }
.nh-cta { display: flex; align-items: center; gap: 14px; }
.nh-login { color: #cbd5e1; font-size: 14px; }
.btn-gold, .btn-ghost, .cta-btn, .sp-btn { display: inline-block; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 8px; text-decoration: none !important; }
.btn-gold, .cta-btn { background: var(--gold); color: #0b1f3a !important; }
.btn-gold:hover, .cta-btn:hover { filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink) !important; }
.btn-gold.block { display: block; text-align: center; }
.nf { background: var(--bg2); border-top: 1px solid var(--line); margin-top: 64px; }
.nf-in { max-width: 1200px; margin: 0 auto; padding: 40px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; font-size: 14px; color: var(--muted); }
.nf .nh-brand { color: var(--ink); }
.nf-in > div { display: flex; flex-direction: column; gap: 8px; }
.nf-in b { color: var(--ink); }
.nf-in a { color: var(--ink2); }
.nf-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin: 0; font-size: 12px; }

/* layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 16px; }
.wrap.narrow { max-width: 760px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.two > * { min-width: 0; }  /* wide tables scroll inside their box instead of stretching the page */
.rail { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 82px; }

/* index */
.idx-head, .tk-head { margin-bottom: 24px; }
.idx-head h1, .tk-head h1 { font-size: 34px; letter-spacing: -.5px; margin: 0 0 6px; }
.tk-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.tk-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); font-size: 14px; font-weight: 500; }
.tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs a.on { background: var(--gold); border-color: var(--gold); color: #0b1f3a; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 18px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card.big { padding: 26px; border-top: 4px solid var(--gold); }
.card h2 { font: 700 19px/1.3 Inter, sans-serif; margin: 8px 0 8px; letter-spacing: -.2px; }
.card.big h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.5px; }
.card h2 a { color: var(--ink); }
.card p { color: var(--ink2); margin: 0 0 12px; font-size: 15px; }
.card.big p { font-size: 17px; }
.card-meta, .kicker { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-foot { margin-top: auto; font-size: 13px; color: var(--muted); }
.kind { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-ink); }
.k-brief .kind { color: var(--down); }
.chip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--bg2); color: var(--ink2) !important; border: 1px solid var(--line); }
.chip:hover { border-color: var(--gold); text-decoration: none; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; font-size: 14px; color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

/* article */
.art h1 { font-size: 40px; line-height: 1.12; letter-spacing: -1px; margin: 12px 0 14px; }
.art .dek { font-size: 20px; line-height: 1.45; color: var(--ink2); margin: 0 0 18px; }
.byline { font-size: 14px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.byline b { color: var(--ink); }
.qbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 18px 0 0; padding: 12px 16px; background: var(--bg2); border-radius: 10px; color: var(--ink) !important; font-size: 15px; text-decoration: none !important; }
.qbar span:nth-child(2) { color: var(--muted); }
.qbar em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.prose { overflow-wrap: break-word; font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.7; color: var(--ink); margin-top: 22px; }
.prose p { margin: 0 0 20px; }
.prose h2 { font: 800 25px/1.25 Inter, sans-serif; letter-spacing: -.4px; margin: 40px 0 14px; }
.prose h3 { font: 700 18px/1.3 Inter, sans-serif; margin: 28px 0 10px; }
.prose ul { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin: 0 0 8px; }
.prose blockquote { margin: 0 0 20px; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--ink2); font-style: italic; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a.tk { font-family: Inter, sans-serif; font-weight: 700; font-size: .86em; text-decoration: none; background: var(--bg2); border: 1px solid var(--line); padding: 0 5px; border-radius: 5px; color: var(--ink); }
.prose a.tk:hover { border-color: var(--gold); }
.prose .src { font: 13px/1.5 Inter, sans-serif; color: var(--muted); }
.prose .disclosure { font: 13px/1.6 Inter, sans-serif; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 32px; }
.tbl { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 10px; }
.tbl table { width: 100%; border-collapse: collapse; font: 14px/1.4 Inter, sans-serif; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); background: var(--bg2); padding: 9px 12px; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl a { text-decoration: none; }
.lean { font: 700 12px Inter, sans-serif; padding: 3px 9px; border-radius: 999px; }
.lean.bullish { background: rgba(21, 128, 61, .12); color: var(--up); }
.lean.bearish { background: rgba(220, 38, 38, .12); color: var(--down); }
.lean.neutral { background: var(--bg2); color: var(--muted); }
.chart { margin: 8px 0 22px; padding: 14px 12px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { font: 12px Inter, sans-serif; color: var(--muted); margin-top: 6px; }
.cta-inline { font: 600 15px Inter, sans-serif; background: var(--gold-bg); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.cta-inline a { color: var(--gold-ink); text-decoration: none; }
.cta-box { font-family: Inter, sans-serif; background: var(--navy); color: #e2e8f0; border-radius: 14px; padding: 26px 28px; margin: 34px 0; }
.cta-box h3 { color: #fff; font-size: 22px; line-height: 1.3; margin: 6px 0 10px; }
.cta-box p { font-size: 15px; line-height: 1.55; color: #cbd5e1; }
.cta-kicker, .nl-kicker { font: 800 11px Inter, sans-serif; letter-spacing: 1.6px; color: var(--gold); text-transform: uppercase; }
.share { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); margin: 26px 0; }
.share a { font-weight: 600; }

/* rail boxes */
.trial-card, .sp-box, .rel, .nl-box { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--card); box-shadow: var(--shadow); }
.trial-card { border-top: 4px solid var(--gold); }
.trial-card h3 { margin: 6px 0 10px; font-size: 19px; line-height: 1.3; }
.trial-card ul { padding-left: 18px; margin: 0 0 16px; color: var(--ink2); font-size: 14px; }
.trial-card li { margin-bottom: 5px; }
.sp-box { background: var(--gold-bg); border-color: var(--gold-line); }
.sp-label { font: 800 10px Inter, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.sp-box img { border-radius: 8px; margin-bottom: 10px; }
.sp-box h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.sp-box p { margin: 0 0 12px; font-size: 14px; color: var(--ink2); }
.sp-btn { background: var(--navy); color: #fff !important; }
.rel h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.rel ul { list-style: none; padding: 0; margin: 0; }
.rel li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.rel li:first-child { border-top: 0; }
.rel li a { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35; }
.rel li span { font-size: 12px; color: var(--muted); }

/* newsletter */
.nl-box h3 { margin: 6px 0 6px; font-size: 19px; line-height: 1.3; }
.nl-box p { margin: 0 0 12px; font-size: 14px; color: var(--ink2); }
.nl-box.wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; background: var(--gold-bg); border-color: var(--gold-line); margin: 28px 0; padding: 24px; box-shadow: none; font-family: Inter, sans-serif; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; font: 15px Inter, sans-serif; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.nl-row input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.nl-row button { font: 700 14px Inter, sans-serif; padding: 0 16px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; cursor: pointer; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .nl-row button { background: var(--gold); color: #0b1f3a; } }
.nl-row button:disabled { opacity: .6; }
.nl-msg { margin: 8px 0 0 !important; font-size: 14px !important; min-height: 0; }
.nl-msg.ok { color: var(--up) !important; } .nl-msg.err { color: var(--down) !important; }
.nl-fine { font-size: 12px !important; color: var(--muted) !important; margin: 6px 0 0 !important; }
.nl-hero h1 { font-size: 42px; letter-spacing: -1px; margin: 8px 0 12px; }
.lede { font-size: 19px; color: var(--ink2); line-height: 1.55; }
.nl-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 32px; }
.nl-points div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink2); }
.nl-points b { color: var(--ink); font-size: 15px; }
.adv { margin-top: 24px; padding: 20px; border-radius: 12px; background: var(--bg2); }
.adv h4 { margin: 0 0 6px; }
.adv p { margin: 0; color: var(--ink2); font-size: 15px; }
.flash { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.flash.ok { background: rgba(21, 128, 61, .1); color: var(--up); } .flash.err { background: rgba(220, 38, 38, .1); color: var(--down); }
.msg { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.msg h1 { font-size: 34px; }

@media (max-width: 960px) {
  .two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rail { position: static; }
  .nh-nav { display: none; }
}
@media (max-width: 640px) {
  .nh-login { display: none; }
  .art h1 { font-size: 30px; letter-spacing: -.6px; }
  .art .dek { font-size: 18px; }
  .prose { font-size: 18px; }
  .card.big h2 { font-size: 23px; }
  .idx-head h1, .tk-head h1, .nl-hero h1 { font-size: 28px; }
  .nl-box.wide { grid-template-columns: 1fr; gap: 12px; }
  .nl-points { grid-template-columns: 1fr; }
  .nf-in { grid-template-columns: 1fr; }
  .qbar em { margin-left: 0; width: 100%; }
}
