/* Traversal support site. One file, no fonts to download, no scripts. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #16171A;
  --line: #2A2B30;
  --text: #F5F5F7;
  --muted: #A1A1A6;
  --accent: #0A84FF;
  --ok: #30D158;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.top { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 56px; }

h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; }
h2 { font-size: 22px; line-height: 1.25; margin: 44px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.25rem; }
li { margin: 6px 0; }

a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.lede { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.meta { color: var(--muted); font-size: 15px; }
.small { font-size: 15px; color: var(--muted); }

.hero { text-align: left; }
.hero img.icon { width: 96px; height: 96px; border-radius: 22px; display: block; margin-bottom: 20px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  margin: 4px 10px 4px 0;
}
.button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}
.card > :last-child { margin-bottom: 0; }

.short {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 16px 0 24px;
}
.short > :last-child { margin-bottom: 0; }

ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 18px 0; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details > div { margin-top: 10px; color: var(--text); }
details > div > :last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

code { font: 15px ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface); padding: 1px 6px; border-radius: 6px; }

nav.toc ol { columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { nav.toc ol { columns: 1; } h1 { font-size: 28px; } .lede { font-size: 18px; } }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
