/* hardware.css. Simulation Instruments hardware page. Same variables and base as api/api.css.
   The page's own inline <style> comes after this file and still wins. */

: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; }

/* Hardware page */
main.wrap > h2 { border-top: 1px solid var(--line); padding-top: 18px; }
main.wrap > h3 { color: var(--text); }
main.wrap > ul li, main.wrap > ol li { margin: 6px 0; }
td:first-child, th:first-child { white-space: nowrap; width: 1%; }
pre { padding-right: 70px; }
pre code { color: var(--sky); }
details { border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; background: var(--panel); }
details pre { margin: 8px 0; }
a.tok-fn { color: var(--sky); text-decoration: none; }
