/* api.css. Simulation Instruments API reference. Written new on 2026-10-11:
   no original api.css was found on the server or on the Mac.
   Pages: public_html/api/*.html, which link api.css?v=3. Each page also has an inline
   <style> block with !important table and token rules; those still apply on top. */

:root {
  --bg: #0c1015;
  --text: #e6ebf0;
  --muted: #a7b0ba;
  --sky: #7eb6ff;
  --orange: #f0a040;
  --line: #2c333b;
  --code-bg: #10141a;
  --panel: #151a21;
  --th-bg: #232930;
  --border: #8b97a3;
  --num: #ff6b6b;
  --str: #9fd88a;
  --comment: #7d8894;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header { background: var(--panel); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; min-height: 52px; }
header .home { color: var(--text); font-weight: 600; font-size: 16px; text-decoration: none; }
header .home:hover { color: var(--sky); text-decoration: none; }

main.wrap { padding-bottom: 60px; }

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

.crumbs { color: var(--muted); font-size: 13px; margin: 0; padding: 10px 0; }
.crumbs a { color: var(--sky); }
.crumbs .sep { margin: 0 6px; color: #6b7580; }

h1 { font-size: 30px; line-height: 1.2; margin: 18px 0 6px; }
h2 { font-size: 22px; line-height: 1.25; margin: 30px 0 10px; }
h3 { font-size: 17px; line-height: 1.3; margin: 22px 0 8px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 4px 0; }

.ver { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.muted { color: var(--muted); }

.note { border-left: 3px solid var(--orange); background: var(--panel); padding: 8px 14px; margin: 12px 0 16px; color: var(--muted); border-radius: 0 6px 6px 0; }
.note p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 13.5px; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--th-bg); font-weight: 600; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
code { font-size: 0.92em; background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
pre { position: relative; background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 10px 0 14px; overflow-x: auto; line-height: 1.45; font-size: 13px; }
pre code { background: none; border: 0; border-radius: 0; padding: 0; font-size: inherit; color: var(--text); }
table code { white-space: normal; }

.copy { position: absolute; top: 8px; right: 8px; background: var(--th-bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.copy:hover { border-color: var(--sky); }

details { margin: 6px 0 10px; }
details summary { cursor: pointer; color: var(--sky); }
details[open] summary { margin-bottom: 6px; }

/* Function cards */
.card { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 24px; }
.card > h2 { margin-top: 14px; }
section.card ul.fn { columns: 3 180px; padding-left: 18px; }

/* Parameter tables. Shapes in the pages:
   4 columns: # | Name | Type | Description
   3 columns: Argument | Type | Description, and Property | Type | Description
   2 columns: Name | Description */
table:has(th:nth-child(4):last-child) td:nth-child(1),
table:has(th:nth-child(4):last-child) th:nth-child(1) { width: 1%; white-space: nowrap; text-align: right; color: var(--muted); }
table:has(th:nth-child(4):last-child) td:nth-child(2),
table:has(th:nth-child(4):last-child) th:nth-child(2) { width: 1%; white-space: nowrap; }
table:has(th:nth-child(4):last-child) td:nth-child(3),
table:has(th:nth-child(4):last-child) th:nth-child(3) { width: 1%; white-space: nowrap; }
table:has(th:nth-child(3):last-child) td:nth-child(1),
table:has(th:nth-child(3):last-child) th:nth-child(1) { width: 1%; white-space: nowrap; }
table:has(th:nth-child(3):last-child) td:nth-child(2),
table:has(th:nth-child(3):last-child) th:nth-child(2) { width: 1%; white-space: nowrap; }
table:has(th:nth-child(2):last-child) td:nth-child(1),
table:has(th:nth-child(2):last-child) th:nth-child(1) { width: 1%; white-space: nowrap; }

/* Code tokens used in the pages: .nu number, .st string, .cm comment, .tok-fn function name */
.nu, code .nu { color: var(--num); }
.st, code .st { color: var(--str); }
.cm, code .cm { color: var(--comment); font-style: italic; }
.tok-fn, a.tok-fn, a.tok-fn:link, a.tok-fn:visited, a.tok-fn:hover, pre a, pre a:hover, a code, a:hover code { color: var(--sky); text-decoration: none; }

/* Screenshot slots */
figure.shot { margin: 10px 0 16px; }
figure.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--code-bg); }
figure.shot figcaption, .slot { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
