:root {
  color-scheme: light dark;
  --background: #ffffff;
  --ink: #20252b;
  --muted: #505963;
  --accent: #005a9c;
  --line: #b8c0c8;
  --code: #f2f4f6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.65;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(100% - 3rem, 68rem); margin-inline: auto; }
header { padding-block: 3.5rem 1.5rem; border-bottom: 2px solid var(--ink); }
h1 { max-width: 26ch; margin: 0 0 1.25rem; font-size: clamp(1.8rem, 3.5vw, 2.65rem); line-height: 1.18; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; }
p, li, dd { max-width: 65ch; }
p { margin: .8rem 0 1.1rem; }
header > p { font-size: 1.075rem; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .08em; overflow-wrap: anywhere; touch-action: manipulation; }
a:hover { text-decoration-thickness: .16em; }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin-top: 1.25rem; }
nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .6rem 1rem; background: var(--background); z-index: 1; }
.skip:focus { top: .5rem; }
main:focus { outline: none; }
section { padding-block: 2.2rem 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1.3rem; letter-spacing: -.015em; }
h3 { max-width: 65ch; font-size: 1.08rem; line-height: 1.45; margin: 1.7rem 0 .45rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; table-layout: fixed; }
caption { text-align: left; color: var(--muted); margin-bottom: 1rem; max-width: 65ch; }
th, td { text-align: left; vertical-align: top; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { border-bottom: 2px solid var(--ink); padding-top: .25rem; }
th:first-child { width: 32%; }
th:nth-child(2) { width: 18%; }
tbody th { font-weight: 600; }
td:last-child, th:last-child { padding-right: 0; }
aside { max-width: 65ch; border-left: 3px solid var(--accent); padding-left: 1.2rem; margin-block: 1.6rem; }
aside p { margin-block: .6rem; }
.steps { padding-left: 1.7rem; margin-block: 1.7rem 0; }
.steps > li { max-width: none; padding-left: .6rem; margin-bottom: 2rem; }
.steps > li::marker { font-weight: 700; font-size: 1.08rem; }
.steps h3 { margin-top: 0; }
code, kbd { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }
code { overflow-wrap: anywhere; }
kbd { white-space: normal; overflow-wrap: anywhere; }
.letters { line-height: 2; }
.command { position: relative; max-width: 72ch; margin-block: 1rem 1.4rem; background: var(--code); border: 1px solid var(--line); padding: 1rem; }
pre { margin: 0; font-size: .95rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.command:has(button) { padding-right: 5.5rem; min-height: 3.5rem; }
.command:has(button) pre { padding-top: .2rem; }
.command button { position: absolute; top: .5rem; right: .5rem; min-width: 64px; min-height: 40px; padding: .4rem .8rem; font: inherit; font-size: .875rem; color: var(--accent); background: var(--background); border: 1px solid var(--accent); border-radius: 2px; cursor: pointer; touch-action: manipulation; }
.command button:hover, .command button:active { background: var(--accent); color: var(--background); }
.copy-status { display: block; font-size: .875rem; color: var(--muted); }
.copy-status:not(:empty) { margin-top: .7rem; }
.history { max-width: 65ch; margin-block: 1rem 0; }
.history dt { font-weight: 700; margin-top: 1.3rem; }
.history dd { margin: .25rem 0 0; }
footer { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; padding-block: 1.5rem 2.5rem; }
@media (prefers-color-scheme: dark) {
  :root { --background: #171b20; --ink: #e8edf2; --muted: #bac3cc; --accent: #82c7ff; --line: #687481; --code: #232a32; }
}
@media (max-width: 600px) {
  .page { width: calc(100% - 2rem); }
  header { padding-top: 2rem; }
  nav { gap: .2rem 1rem; }
  section { padding-block: 1.8rem 2rem; }
  table { font-size: .8125rem; line-height: 1.55; }
  th, td { padding: .8rem .55rem .8rem 0; }
  th:first-child { width: 29%; }
  th:nth-child(2) { width: 27%; }
  .steps { padding-left: 1.3rem; }
  .steps > li { padding-left: .3rem; }
  .command { padding-left: .75rem; }
}
@media print {
  :root { color-scheme: light; --background: #fff; --ink: #000; --muted: #333; --accent: #000; --line: #999; --code: #fff; font-size: 10pt; }
  @page { margin: 16mm; }
  .page { width: 100%; max-width: none; }
  header { padding-top: 0; }
  nav, .skip, .command button, .copy-status { display: none; }
  .command:has(button) { padding-right: 1rem; min-height: 0; }
  section { padding-block: 1.3rem; }
  h1, h2, h3, caption { break-after: avoid; }
  tr, .command { break-inside: avoid; }
  thead { display: table-header-group; }
  p, li { orphans: 3; widows: 3; }
  a { color: #000; }
}
