/* gtn.css — shared look for the loop pages (loop, extract, claims, authors, endcard).
   Same tokens and components as feed.html / decisions.html; the older pages keep their
   inline copies. Single dark look, as the rest of GTN Alpha. */
:root {
  --bg: #0c0a07; --bg-soft: #16130d; --bg-raise: #1d1911; --cream: #f5edd6; --gold: #f5c842;
  --tan: #7a6a4a; --tan-hi: #a8977a; --tan-dim: rgba(245,237,214,0.30); --line: rgba(245,237,214,0.10);
  --ok: #6cc294; --bad: #f0917a;
  /* claim types — validated categorical set (dark surface, CVD + normal-vision floors pass) */
  --t-forecast: #a8841c; --t-recommendation: #199e70; --t-thesis: #5a83d8; --t-relationship: #c4609a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --pad: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--serif); font-optical-sizing: auto; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* topbar + nav */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--pad); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(12,10,7,0.92); backdrop-filter: blur(8px); z-index: 20; }
.brand { display: inline-flex; align-items: baseline; gap: 0.5ch; }
.brand .gtn { font-family: var(--mono); font-weight: 700; letter-spacing: 0.11em; }
.brand .al { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold); margin-left: -0.28ch; }
.brand .full { font-family: var(--serif); color: var(--tan); font-size: 0.92em; }
.brand .full::before { content: "— "; color: var(--tan-dim); }
.topbar .right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.signout { background: none; border: 1px solid var(--line); color: var(--cream); font: inherit; font-size: 12.5px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.signout:hover { border-color: rgba(245,200,66,0.5); color: var(--gold); }
.navpills { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.navpill { text-decoration: none; color: var(--tan); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 999px; }
.navpill:hover { color: var(--cream); }
.navpill.active { color: var(--gold); background: rgba(245,200,66,0.10); font-weight: 600; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--pad); padding-block: clamp(24px, 4vw, 48px) 72px; }
.page-head h1 { font-size: clamp(28px, 4.5vw, 42px); margin: 0; }
.page-head .meta { color: var(--tan); font-size: 13px; margin: 8px 0 0; line-height: 1.5; max-width: 72ch; }
.center-note { text-align: center; color: var(--tan); padding: 48px 0; line-height: 1.6; }
.foot { color: var(--tan); font-size: 12.5px; margin-top: 18px; line-height: 1.6; }
.foot b { color: var(--cream); font-weight: 600; }

/* auth (rendered by gtn.js) */
.auth { max-width: 440px; margin: 6vh auto 0; }
.auth h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 6px; }
.auth .sub { color: var(--tan); line-height: 1.5; margin: 0 0 28px; }
.auth label { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tan); margin: 0 0 7px; }
.auth input { width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  color: var(--cream); font: inherit; font-size: 15px; padding: 13px 15px; margin: 0 0 16px; }
.auth input:focus { outline: none; border-color: rgba(245,200,66,0.55); }
.auth .code-input { letter-spacing: 8px; text-align: center; font-size: 22px; font-weight: 600; }
.auth .row2 { display: flex; gap: 12px; } .auth .row2 > div { flex: 1; min-width: 0; }
.btn { width: 100%; background: var(--gold); color: #1a1407; border: none; border-radius: 999px; font: inherit;
  font-weight: 600; font-size: 15px; padding: 13px 20px; cursor: pointer; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.ghost { background: none; color: var(--tan); border: 1px solid var(--line); margin-top: 12px; }
.msg { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; }
.msg.err { color: var(--bad); } .msg.info { color: var(--tan); }

/* claim card (extract right pane, claims grid) */
.card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card .who { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--tan-hi); }
.card .who b { color: var(--cream); font-weight: 600; }
.card .stmt { font-size: 14.5px; line-height: 1.5; margin: 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--tan-hi); white-space: nowrap; }
.tag.tk { color: var(--cream); font-family: var(--mono); font-size: 11px; }
.tag .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.badge { font-family: var(--mono); font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge.correct { color: var(--ok); } .badge.incorrect { color: var(--bad); } .badge.pending { color: var(--tan); }
.card .links { display: flex; gap: 14px; font-size: 12px; }
.card .links a { color: var(--gold); text-decoration: none; }
.card .links a:hover { text-decoration: underline; }
