/* The lab pages. The same dark theme as the front page, less of it. */

:root {
  --bg: #0d1117;
  --panel: #161b22;
  --line: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }

.top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.top img { width: 52px; height: auto; }

.top a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top a:hover { color: var(--accent); }
.gh {
  display: inline-block;
  font-size: .8rem;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: .1rem .5rem;
  background: var(--panel);
  vertical-align: middle;
  margin-left: .4rem;
}
.gh:hover { border-color: var(--accent); }

.top span { color: var(--muted); font-size: 0.9rem; }

h1 { font-size: 1.9rem; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 1.2rem; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 28px 0 8px; }

p { margin: 12px 0; }
.lead { color: var(--muted); font-size: 1.05rem; }
.byline { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }
.byline .author { color: var(--text); font-weight: 600; }
.byline time { white-space: nowrap; }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

pre code { background: none; border: none; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.93rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

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

.note {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.back { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
