body {
  font-family: monospace;
  font-size: 14px;
  padding: 1.5em;
  background: #fff;
  color: #222;
  max-width: 80em;
}

h1 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.1em;
  margin: 1.5em 0 0.5em;
}

p {
  max-width: 60em;
  line-height: 1.5;
  margin: 0.75em 0;
}

a {
  color: #0066cc;
}

pre {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0.75em 1em;
  overflow-x: auto;
  max-width: 60em;
  margin: 0.75em 0;
}

/* When highlight.js is present, let pre handle the background and padding. */
pre .hljs {
  background: transparent;
  padding: 0;
}

code {
  font-family: monospace;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5em 0;
}

#plot {
  margin-top: 1em;
}

#webgpu-results {
  margin: 1em 0;
}

/* ------------------------------------------------------------------ */
/* Regression test list                                                 */
/* ------------------------------------------------------------------ */

ul.test-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.test-list li {
  padding: 1px 0;
  white-space: pre;
}
ul.test-list li.pass::before {
  content: "✓ ";
  color: green;
}
ul.test-list li.fail::before {
  content: "✗ ";
  color: red;
}
ul.test-list li.pass {
  color: #222;
}
ul.test-list li.fail {
  color: red;
  font-weight: bold;
}

.summary {
  margin-top: 1em;
  font-size: 1.1em;
  font-weight: bold;
}
.summary.all-pass {
  color: green;
}
.summary.some-fail {
  color: red;
}

#run-large-btn {
  margin-top: 1.5em;
  font-family: monospace;
  font-size: 1em;
  padding: 0.4em 1em;
  cursor: pointer;
}
#run-large-btn:disabled {
  cursor: default;
  opacity: 0.5;
}
#large-section {
  display: none;
}

.back-link {
  display: inline-block;
  padding: 5px 12px;
  background: #39bda7;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 1em;
  font-size: 13px;
  transition: background 0.2s;
}
.back-link:hover {
  background: #2a9a87;
  color: white;
  text-decoration: none;
}
