/* README-style document surface, dark neutral. No external fonts or scripts. */
:root {
  color-scheme: dark;
  --bg: #0d1117; --fg: #e6edf3; --muted: #9198a1; --border: #3d444d;
  --surface: #151b23; --link: #4493f8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.top, .readme, .stamp { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 16px; font-size: 14px; }
.readme { padding-top: 24px; padding-bottom: 32px; overflow-wrap: break-word; }
.readme > :first-child { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; margin: 24px 0 16px; font-weight: 600; }
h1 { font-size: 2em; padding-bottom: .3em; }
h2 { font-size: 1.5em; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
p, ul, .table-wrap, figure, pre { margin: 0 0 16px; }
ul { padding-left: 2em; }
li + li { margin-top: .25em; }
.center { text-align: center; }
p.center a { display: inline-block; margin: 0 2px; }
p.center a img { display: block; }
img { max-width: 100%; height: auto; }
code, .file, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 85%;
}
code { background: var(--surface); border-radius: 6px; padding: .2em .4em; }
.file { white-space: nowrap; }
pre { background: var(--surface); border-radius: 6px; padding: 16px; overflow-x: auto; }
pre code { background: none; padding: 0; font-size: 100%; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: max-content; max-width: 100%; }
th, td { border: 1px solid var(--border); padding: 6px 13px; text-align: left; vertical-align: top; }
th { font-weight: 600; }
tbody tr:nth-child(2n) { background: var(--surface); }
figure.diagram { overflow-x: auto; text-align: center; padding: 8px 0; }
figure.diagram img { max-width: 100%; }
.demo-link {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface); font-weight: 600;
}
.stamp { color: var(--muted); font-size: 12px; padding-bottom: 24px; }
@media (max-width: 700px) {
  body { font-size: 15px; }
  h1 { font-size: 1.6em; }
  th, td { padding: 6px 8px; }
  .file { white-space: normal; word-break: break-all; }
  figure.diagram img { max-width: none; }
}
