:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --tint: #f1f5f9;
  --brand: #2159b0;
  --brand-dark: #0b2a66;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

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

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { color: var(--muted); font-weight: 400; font-size: 14px; }
nav.site { display: flex; gap: 20px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--ink); }
nav.site a.button {
  color: #fff;
  background: var(--ink);
  padding: 6px 14px;
  border-radius: 8px;
}
nav.site a.button:hover { background: #1e293b; }

main { padding: 48px 0 64px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.lede { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.panel {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}
.panel h2 { margin-top: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 26px;
}

.toc { columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--tint); }

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

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .toc { columns: 1; }
  nav.site { gap: 14px; }
  .brand span { display: none; }
}
