/* Camber docs: the theme's "Night shift" tokens by default, "Paper" when the visitor prefers light. */
:root {
  --bg: #0E1013;
  --surface: #171A1F;
  --ink: #F3F1EC;
  --ink-2: #A7ADB7;
  --rule: #272B32;
  --rule-strong: #717784;
  --accent: #FF7A1A;
  --accent-ink: #0E1013;
  --accent-wash: #2A1A0E;
  --fit: #5FD38A;
  --check: #F5C45E;
  --check-wash: #2B2410;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F4F0;
    --surface: #FFFFFF;
    --ink: #111317;
    --ink-2: #4A4F59;
    --rule: #DAD7CF;
    --rule-strong: #8A867D;
    --accent: #1F4FE0;
    --accent-ink: #FFFFFF;
    --accent-wash: #E5ECFF;
    --fit: #1B6E3A;
    --check: #7A5300;
    --check-wash: #FFF3D6;
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
code, pre, kbd { font-family: var(--mono); font-size: .9375em; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 10; padding: .75rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip-link:focus { top: .5rem; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--rule); }
.site-name { color: var(--ink); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.site-name span { color: var(--ink-2); font-weight: 400; font-family: var(--mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.site-help { min-height: 2.75rem; display: inline-flex; align-items: center; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 78rem; margin: 0 auto; }
.side { padding: 0 1rem; border-bottom: 1px solid var(--rule); }
.side summary { min-height: 2.75rem; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.side ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.side a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 .75rem; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; }
.side a:hover { background: var(--surface); text-decoration: underline; }
.side a[aria-current="page"] { border-left-color: var(--accent); background: var(--accent-wash); font-weight: 600; }
.nav-group { margin: 1rem 0 .25rem; padding: 0 .75rem; font: 600 .75rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
main { padding: 1.5rem 1rem 3rem; min-width: 0; }
@media (min-width: 56rem) {
  .layout { grid-template-columns: 16rem minmax(0, 1fr); }
  .side { border-bottom: 0; border-right: 1px solid var(--rule); padding: 1rem 0 2rem; }
  .side summary { display: none; }
  .side a { min-height: 2rem; padding-top: .25rem; padding-bottom: .25rem; }
  main { padding: 2rem 2.5rem 4rem; }
}

.content { max-width: 52rem; }
.content > p, .content > ul, .content > ol, .content > dl, .content > .note, .content > h2, .content > h3, .content > h4 { max-width: 70ch; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { margin: 0 0 1rem; font-size: 1.875rem; line-height: 1.2; }
h1::after { content: ""; display: block; width: 5rem; height: 12px; margin-top: .75rem; background: repeating-linear-gradient(90deg, var(--rule-strong) 0 2px, transparent 2px 8px); }
h2 { margin: 2.25rem 0 .75rem; font-size: 1.375rem; }
h3 { margin: 1.75rem 0 .5rem; font-size: 1.1875rem; }
h4 { margin: 1.25rem 0 .5rem; font-size: 1rem; }
h2[id], h3[id] { scroll-margin-top: 1rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
dt { font-weight: 600; margin-top: .75rem; }
dd { margin: .15rem 0 0; }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.dim { color: var(--ink-2); }

p code, li code, td code, th code, dd code, h2 code, h3 code, caption code { padding: .1em .35em; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow-wrap: anywhere; }
.id { font-size: .8125rem; color: var(--ink-2); }
@media (min-width: 40.01rem) { th[scope="row"] code { white-space: nowrap; } }
pre { margin: 0 0 1.25rem; padding: 1rem; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 8px; overflow-x: auto; line-height: 1.5; }
pre code { padding: 0; background: none; border: 0; }

.note { margin: 0 0 1.25rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; }
.note > :last-child { margin-bottom: 0; }
.note--check { background: var(--check-wash); border-left-color: var(--check); }
.note--check strong:first-child { color: var(--check); }
.card-list { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: none; }
.card-list li { margin: 0; }
.card-list a { display: block; height: 100%; padding: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); font-weight: 600; }
.card-list small { display: block; margin-top: .25rem; font-weight: 400; color: var(--ink-2); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 .875rem/1 var(--mono); border-radius: 4px; }
.meta { color: var(--ink-2); }
ul.meta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
ul.meta li { margin: 0; }
.ref { border-top: 1px solid var(--rule); margin-top: 2rem; }
.toc { columns: 14rem; max-width: none !important; padding-left: 1.25rem; }

.table-wrap { margin: 0 0 1.5rem; overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { background: var(--surface); font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
tr.group > th, tr.group > td { background: var(--surface); color: var(--ink-2); font-weight: 600; }
@media (max-width: 40rem) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--rule); padding: .5rem 0; }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack th, table.stack td { border: 0; padding: .25rem .75rem; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label) ": "; color: var(--ink-2); font-weight: 600; }
  table.stack tr.group { padding: 0; }
}

form.support { max-width: 36rem; }
.field { margin: 0 0 1.25rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; }
.field .hint { display: block; margin-bottom: .35rem; color: var(--ink-2); font-size: .9375rem; }
input, select, textarea { width: 100%; min-height: 2.75rem; padding: .6rem .75rem; background: var(--surface); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 4px; font: inherit; }
textarea { min-height: 9rem; resize: vertical; }
input[type="file"] { padding: .5rem .75rem; }
button { min-height: 2.75rem; padding: .6rem 1.25rem; border-radius: 8px; font: 600 1rem var(--font); }
button:disabled { background: var(--surface); color: var(--ink-2); border: 1px solid var(--rule-strong); cursor: not-allowed; }

.site-footer { padding: 1.5rem 1rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .9375rem; }
.site-footer p { max-width: 78rem; margin: 0 auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
