/* RaptorTest docs — tokens mirror the product: account.css (light) and styles.css (dark instrument panel).
   Layout: reading column with screenshots that break wider; sticky index on wide screens. */
:root {
  --bg: #f3f7f9;
  --paper: #ffffff;
  --ink: #112332;
  --muted: #5b6d7c;
  --line: #d5e0e6;
  --brand: #0878a3;
  --brand-bright: #039bd3;
  --brand-soft: #e2f5fb;
  --nav: #0d1b26;
  --nav-ink: #e6edf3;
  --passed: #16866a;
  --failed: #c83d52;
  --blocked: #b67516;
  --error: #7658bd;
  --not-run: #5f6f80;
  --shadow: 0 1px 2px rgba(17, 35, 50, .06), 0 8px 24px rgba(17, 35, 50, .08);
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1118; --paper: #111a24; --ink: #e6edf3; --muted: #8a9aab; --line: #22303f;
    --brand: #3db4ea; --brand-bright: #3db4ea; --brand-soft: rgba(2, 143, 204, .14);
    --nav: #070c12; --nav-ink: #e6edf3;
    --passed: #3fb68b; --failed: #e5566b; --blocked: #e0a542; --error: #a98cf2; --not-run: #7d8d9e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1118; --paper: #111a24; --ink: #e6edf3; --muted: #8a9aab; --line: #22303f;
  --brand: #3db4ea; --brand-bright: #3db4ea; --brand-soft: rgba(2, 143, 204, .14);
  --nav: #070c12; --nav-ink: #e6edf3;
  --passed: #3fb68b; --failed: #e5566b; --blocked: #e0a542; --error: #a98cf2; --not-run: #7d8d9e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--brand-soft); padding: .1em .35em; border-radius: 4px; }
.eyebrow { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* Topbar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav); color: var(--nav-ink); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--nav-ink); text-decoration: none; flex-wrap: nowrap; min-width: 0; }
.brand .brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand .brand-copy { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.brand strong { font: 700 1.08rem var(--display); font-stretch: 112%; line-height: 1; white-space: nowrap; }
.brand .brand-byline { display: inline-flex; align-items: center; gap: 6px; min-height: 18px; flex-wrap: nowrap; white-space: nowrap; }
.brand .brand-by { font: 500 .66rem var(--mono); color: #3db4ea; line-height: 1; }
.brand .brand-parent-plate { display: inline-flex; align-items: center; justify-content: center; padding: 3px 5px; background: rgba(247, 250, 252, .98); border: 1px solid rgba(117, 146, 170, .32); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.brand .brand-parent-logo { width: 30px; height: auto; display: block; }
.topbar .doc-label { margin-left: auto; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8a9aab; }

/* Screenshots */
.shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.shot button { all: unset; cursor: zoom-in; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0b1118; }
.shot button:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
.shot img { display: block; width: 100%; height: auto; }
.shot.tall button { max-height: 620px; overflow: auto; }
.shot.narrow { max-width: 360px; }
.shot figcaption { font-size: .86rem; color: var(--muted); }
.shot figcaption b { color: var(--ink); font-weight: 600; }

/* Lightbox */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(5, 10, 16, .82); }
dialog.lightbox img { display: block; max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: 8px; }
dialog.lightbox .lb-wrap { max-height: 92vh; overflow: auto; }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; font: 600 .9rem var(--sans); background: #fff; color: #112332; border: 0; border-radius: 6px; padding: 8px 12px; cursor: pointer; }

/* Status chips (the product's verdict colors) */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 .78rem var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.passed { color: var(--passed); } .chip.failed { color: var(--failed); } .chip.blocked { color: var(--blocked); }
.chip.error { color: var(--error); } .chip.not-run { color: var(--not-run); } .chip.info { color: var(--brand); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--brand-soft); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--passed); font-weight: 600; } td.no { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
