:root {
  color-scheme: light dark;
  font:
    17px/1.65 system-ui,
    sans-serif;
  --bg: #f7f8fa;
  --fg: #152437;
  --panel: #fff;
  --line: #cbd3de;
  --link: #145cb3;
}
.code-language {
  font-size: 0.75rem;
  font-weight: 650;
  margin-top: 1rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111821;
    --fg: #dce6f2;
    --panel: #192431;
    --line: #43536a;
    --link: #91c6ff;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
header {
  padding: 1rem 2rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
header a {
  font-weight: 750;
  text-decoration: none;
}
.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
}
.site-nav {
  padding: 1.4rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
}
.site-nav a {
  display: block;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  border-radius: 4px;
}
.site-nav [aria-current] {
  background: var(--panel);
  font-weight: bold;
  border-left: 4px solid var(--link);
}
input {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0 1rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--fg);
}
main {
  min-width: 0;
  padding: 2rem 3rem;
  max-width: 1150px;
}
h1 {
  line-height: 1.2;
  font-size: 2.5rem;
}
h2 {
  line-height: 1.3;
  margin-top: 2.5rem;
}
section {
  scroll-margin-top: 1rem;
}
pre {
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  border-radius: 6px;
}
code {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
p code {
  font-size: 0.9em;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
  padding: 0.65rem;
  overflow-wrap: anywhere;
}
th {
  background: var(--panel);
}
.table-scroll {
  overflow: auto;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
}
.toc a {
  font-size: 0.88rem;
}
details {
  margin: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
button {
  font: inherit;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg);
  background: var(--panel);
}
.copy {
  font-size: 0.75rem;
  margin-bottom: -0.5rem;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1rem;
}
footer {
  font-size: 0.75rem;
  margin-top: 2rem;
  color: var(--fg);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--panel);
  padding: 1rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
figure {
  margin: 1rem 0;
}
figcaption {
  font-size: 0.85rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .layout {
    display: block;
  }
  .site-nav {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding: 1rem;
  }
  header {
    padding: 1rem;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 2rem;
  }
  .pager {
    flex-wrap: wrap;
  }
}
@media print {
  .site-nav,
  .toc,
  .copy,
  .pager {
    display: none;
  }
  .layout {
    display: block;
  }
  main {
    max-width: none;
    padding: 0;
  }
  pre {
    white-space: pre-wrap;
  }
  details {
    display: block;
  }
}
/* 2026 handbook: readable prose, distinct workspaces, full-resolution figures. */
:root {
  --accent: #b66a27;
}
header {
  align-items: center;
}
header span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
h1 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  letter-spacing: -0.045em;
  margin: 0.3rem 0 1.6rem;
}
h2 {
  letter-spacing: -0.025em;
}
main > section > p,
main > section > ol,
main > section > ul {
  max-width: 78ch;
}
.site-nav h2 {
  margin: 1.5rem 0.5rem 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  opacity: 0.7;
}
.site-nav a {
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  line-height: 1.4;
}
.site-nav [aria-current] {
  border-color: var(--accent);
}
.workspace-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.8rem 0;
}
.workspace-cards a {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 1.1rem;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}
.workspace-cards strong {
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--fg);
}
.workspace-cards small {
  font:
    0.7rem ui-monospace,
    monospace;
  opacity: 0.65;
}
.workspace-cards span {
  font-size: 0.8rem;
}
.steps li {
  padding: 0.4rem 0 0.6rem 0.35rem;
}
.steps li::marker {
  color: var(--accent);
  font-weight: 700;
}
blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.4rem;
  margin: 1.4rem 0;
  background: var(--panel);
  font-style: italic;
}
figure {
  margin: 1.8rem 0;
}
figure img {
  display: block;
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 6px 25px #0002;
}
figcaption {
  padding: 0.7rem 0.2rem;
  line-height: 1.5;
  opacity: 0.9;
}
figcaption a {
  white-space: nowrap;
}
.toc {
  background: var(--panel);
  border-radius: 8px;
}
footer {
  opacity: 0.65;
}
@media (max-width: 1100px) {
  .workspace-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding: 1.5rem 2rem;
  }
}
@media (max-width: 800px) {
  main {
    padding: 1.25rem;
  }
  .site-nav {
    max-height: 38vh;
    overflow: auto;
  }
  #topics {
    display: block;
    columns: 2;
  }
  .site-nav h2 {
    break-after: avoid;
  }
  .site-nav a {
    break-inside: avoid;
  }
  header span {
    font-size: 0.65rem;
  }
}
@media (max-width: 420px) {
  .workspace-cards {
    gap: 0.5rem;
  }
  .workspace-cards a {
    padding: 0.75rem;
  }
}
