/* An audit workpaper, after openauditor.ai: white paper, black ink, ruled tables,
   tick marks in red. System fonts only: no third-party requests. */
:root {
  color-scheme: light;
  --ink: #111;
  --muted: #5b5b5b;
  --rule: #111;
  --hair: #d9d9d9;
  --red: #c1121f;
  --paper: #fff;
  --hover: #f2f2f2;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
:root[data-theme="dark"] {
  --ink: #f0f1f2;
  --muted: #aab1b8;
  --rule: #b9c0c7;
  --hair: #343b43;
  --red: #ff8697;
  --paper: #171b20;
  --hover: #2c343d;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--ink); text-underline-offset: 2px; }
code, pre, textarea.code { font-family: var(--mono); font-size: 0.86rem; }
p code, li code, td code { overflow-wrap: anywhere; }
pre { margin: 14px 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--rule); overflow-x: auto; line-height: 1.5; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 8px; padding: 4px 8px; background: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.site-header, main, .site-footer { max-width: 62rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.brand { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.brand::after { content: "✓"; color: var(--red); margin-left: 1px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav :is(a, [aria-current="page"]) { text-decoration: none; font-size: 0.95rem; }
nav :is(a, [aria-current="page"]):hover, nav :is(a, [aria-current="page"])[aria-current="page"] { text-decoration: underline; }
main { padding-top: 8px; padding-bottom: 48px; }
main > p, main > ul, main > ol, main > h1 { max-width: 46rem; }
.site-footer { padding-top: 14px; padding-bottom: 32px; border-top: 1px solid var(--rule); margin-top: 24px; font-size: 0.9rem; }
.site-footer a { color: var(--muted); }

h1 { font-size: 1.9rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 36px 0 12px; }
h2 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; margin: 40px 0 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
.lead { font-size: 1.1rem; }
.links a { margin-right: 18px; }
.note { font-size: 0.85rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 8px 0 6px; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th { text-align: left; font-weight: 500; border-bottom: 1px solid var(--rule); padding: 6px 12px 6px 0; vertical-align: bottom; }
td { border-bottom: 1px solid var(--hair); padding: 7px 12px 7px 0; vertical-align: top; text-align: left; }
th.num, td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td ul { margin: 0; padding-left: 16px; }
.tick { color: var(--red); font-family: var(--mono); font-weight: 500; }

label { display: block; margin: 16px 0 4px; font-weight: 600; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type="email"], input[type="text"], input:not([type]), select { width: 100%; max-width: 32rem; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); }
input[inputmode="numeric"] { max-width: 12rem; font-family: var(--mono); letter-spacing: 0.2em; }
textarea { display: block; width: 100%; padding: 8px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); resize: vertical; }
button { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); cursor: pointer; }
button:hover { background: var(--hover); }
button:disabled { opacity: 0.5; cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#status { min-height: 1.55em; }
.error { font-weight: 600; color: var(--red); }
#new-key, #csv-preview { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; margin-top: 26px; }
  .site-header { gap: 8px 16px; }
  nav { gap: 4px 14px; }
}

/* Long-form guides keep navigation and examples easy to scan. */
.page-toc { gap: 8px 20px; margin: 24px 0 30px; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.page-toc a { text-decoration: underline; font-size: 0.9rem; }
main > ul > li, main > ol > li { margin-bottom: 10px; }
main > p, main > ul, main > ol { max-width: 48rem; }
main details { margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
main summary { cursor: pointer; font-weight: 600; }
main :is(h2, h3)[id] { scroll-margin-top: 24px; }
/* racksort: answer codes and verdict tables. */
.article-content td:first-child code{white-space:nowrap}
.verdict-table th{width:9rem;text-align:left}
