/* VERAX palette: black ground, blue accent (same values as verax-ai.com).
   "paper" is the optional light theme behind the toggle, kept in the same blue family. */
:root {
  color-scheme: dark;
  --ink: #e9f1f7;
  --paper: #05060a;
  --rule: #2a3a55;
  --accent: #5895ff;
  --glow: rgba(52, 121, 255, 0.16);
  --mono: "Cascadia Mono", "IBM Plex Mono", "ui-monospace", Consolas, monospace;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
}

:root[data-theme="paper"] {
  color-scheme: light;
  --ink: #0b1220;
  --paper: #f3f6fb;
  --rule: #cfd8e6;
  --accent: #2456c7;
  --glow: rgba(52, 121, 255, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  /* Glow anchored in rem, not %, so page length does not push it off screen. */
  background: radial-gradient(60rem 36rem at 88% -6rem, var(--glow), transparent 70%), var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.5;
  min-height: 100vh;
}

.mast, main, footer {
  width: min(42rem, calc(100vw - 2rem));
  margin-inline: auto;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0 0;
  border-bottom: 1px solid var(--rule);
}

.draft {
  width: min(42rem, calc(100vw - 2rem));
  margin: 0.75rem auto 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.draft-note { font-size: 0.85em; opacity: 0.75; }

.mark {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
}
#faq h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.25rem 0 0.45rem;
}
#faq p { margin: 0 0 0.35rem; }
.theme, #copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.lede {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.25;
  margin: 2.5rem 0 2rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 0.6rem;
}

.cmd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border: 2px solid var(--ink);
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--paper) 88%, var(--ink));
}

.cmd code {
  font-family: var(--mono);
  font-size: 1.15rem;
  flex: 1 1 12rem;
  word-break: break-all;
}

.hint, .src, footer { font-size: 0.95rem; color: color-mix(in srgb, var(--ink) 75%, var(--paper)); }
.hint { margin-top: 0.6rem; }

.table-wrap { overflow-x: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td {
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.5rem 0.65rem 0;
  word-break: break-word;
}
thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
code { font-family: var(--mono); font-size: 0.85em; }

.links { list-style: none; padding: 0; margin: 0 0 2rem; }
.links a { color: var(--ink); }
.links li { margin: 0.35rem 0; }

footer {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2.5rem;
}
.foot-line { margin: 0 0 0.4rem; }
.foot-links { margin: 0 0 0.6rem; }
.foot-links a { color: var(--ink); }
.domain { font-family: var(--mono); font-size: 0.75rem; margin: 0; }

@media (max-width: 640px) {
  thead { display: none; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  tr { margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
  th[scope="row"] { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; border: 0; padding-bottom: 0; }
}

.wide .mast, .wide main, .wide footer {
  width: min(70rem, calc(100vw - 2rem));
}
.prose { max-width: 42rem; }
.prose pre {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  overflow: auto;
}
.tblwrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  margin: 0.75rem 0 2rem;
}
table.compare {
  min-width: 1400px;
  width: 100%;
  font-family: var(--serif);
  font-size: 0.86rem;
  line-height: 1.4;
}
table.compare th,
table.compare td {
  padding: 0.5rem 0.55rem;
  border-left: 1px solid var(--rule);
  word-break: normal;
}
table.compare th:first-child,
table.compare td:first-child { border-left: 0; }
table.compare thead th { min-width: 7.5rem; border-top: 0; }
table.compare td:first-child { font-weight: 700; min-width: 8rem; }
table.compare tr.us { background: color-mix(in srgb, var(--paper) 90%, var(--accent)); }
table.compare td.y > b { color: color-mix(in srgb, var(--ink) 80%, var(--accent)); }
table.compare td.n > b { color: var(--accent); }
table.compare td.q > b { font-weight: 500; }
table.compare small {
  display: block;
  font-size: 0.92em;
  margin-top: 0.15rem;
  color: color-mix(in srgb, var(--ink) 78%, var(--paper));
}
.sources { list-style: none; padding: 0; margin: 0 0 2rem; font-size: 0.9rem; }
.sources li { margin: 0.4rem 0; }
@media (max-width: 640px) {
  .tblwrap { border: 0; overflow-x: visible; }
  table.compare { min-width: 0; }
  table.compare td { border-left: 0; padding-left: 0; }
  table.compare td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
  }
}
