:root {
  color-scheme: light;
  --navy: #101f35;
  --ink: #152a41;
  --muted: #4c6274;
  --sky: #a4dcfb;
  --warm: #ffab8d;
  --line: #d6e1e6;
  --paper: #f7f9fa;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, dl, dd, pre { margin: 0; }
a { color: #175577; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, pre:focus-visible {
  outline: 3px solid #1989bf; outline-offset: 3px;
}
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: 7px; left: 12px; z-index: 2; padding: 7px 12px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { color: #f6faff; background: var(--navy); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; border-bottom: 1px solid #35445b; }
.brand, .console { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.brand { font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.brand img { object-fit: contain; }
.brand b { font: bold .82em var(--mono); }
.console { min-height: 40px; padding: 1px 2px; color: var(--sky); font-size: 14px; font-weight: 650; }
.console:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: end; padding-block: 52px 57px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--sky); font-size: 14px; letter-spacing: .12em; font-weight: 650; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--warm); }
h1 { margin: 12px 0 18px; font-size: clamp(40px, 4.9vw, 66px); line-height: 1.14; letter-spacing: -.055em; font-weight: 780; }
h1 em { font-style: normal; color: var(--sky); }
.intro > p:last-child { max-width: 32em; color: #c6d7e3; line-height: 1.75; }
.addresses { background: #172941; border: 1px solid #34485e; border-radius: 12px; padding: 5px 23px; }
.addresses div { padding: 13px 0 15px; }
.addresses div + div { border-top: 1px solid #364a60; }
.addresses dt { color: #ccdce6; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.addresses dd { color: white; line-height: 1.5; overflow-wrap: anywhere; font-size: 14px; }
.addresses code { font: .97em/1.45 var(--mono); }
.method { color: var(--warm); font: bold .9em var(--mono); }
.layout { display: grid; grid-template-columns: 180px minmax(0, 760px); gap: clamp(40px, 8vw, 108px); justify-content: start; align-items: start; padding-block: 56px 70px; }
.contents { position: sticky; top: 30px; padding: 6px 0 6px 15px; border-left: 2px solid var(--line); }
.contents p { color: var(--ink); font-size: 14px; font-weight: 750; margin: 0 0 7px; }
.contents a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 4px 0; }
.contents a:hover { color: #175577; text-decoration: underline; }
main { min-width: 0; }
section { scroll-margin-top: 22px; }
section + section { border-top: 1px solid var(--line); margin-top: 43px; padding-top: 35px; }
h2 { display: flex; gap: 11px; align-items: center; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.35; letter-spacing: -.035em; margin-bottom: 15px; }
.step { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #d8ecf7; color: #245271; font: 700 14px var(--mono); letter-spacing: 0; }
.instructions { margin: 0; padding-left: 1.55em; }
.instructions li { padding-left: 3px; }
.instructions li + li { margin-top: 9px; }
.instructions li::marker { color: var(--muted); font-weight: 600; }
.note { margin-top: 18px; padding: 14px 17px; border-left: 3px solid #d66b4b; border-radius: 0 7px 7px 0; background: #fff2eb; }
.note strong { font-size: 15px; }
.note p { font-size: 14px; color: #674e43; }
code { font: .88em/1.5 var(--mono); }
p code, dd code, .reference dt code { overflow-wrap: anywhere; }
.snippet { margin-top: 17px; overflow: hidden; background: var(--navy); color: #f0f6fa; border-radius: 10px; }
.snippet-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 9px; padding: 4px 14px 4px 18px; border-bottom: 1px solid #34465b; color: var(--sky); font: 600 13px/1.4 var(--mono); }
.snippet-head button { color: #f3f8fb; background: #253b50; border: 1px solid #506375; border-radius: 5px; padding: 4px 10px; min-height: 30px; cursor: pointer; font: inherit; }
.snippet-head button:hover { background: #354f65; }
pre { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; padding: 15px 18px 18px; tab-size: 4; scrollbar-color: #607286 var(--navy); }
pre code { font: 13px/1.62 var(--mono); white-space: pre; }
.caption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.python { margin-top: 21px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.python[open] > p { margin-top: 11px; }
.python .snippet { margin-top: 12px; }
.reference { margin-top: 19px; }
.reference div, .errors div { display: grid; grid-template-columns: minmax(115px, 145px) 1fr; gap: 16px; padding: 10px 0; }
.reference dt, .errors dt { color: var(--ink); font-weight: 700; }
.reference dd, .errors dd { color: var(--muted); }
.errors div { grid-template-columns: minmax(160px, 195px) 1fr; padding: 13px 0; }
.errors div + div { border-top: 1px solid var(--line); }
.errors dt code { color: #994828; padding-right: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
footer { background: var(--navy); color: #c5d5e1; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 23px; gap: 14px; }
footer a { color: inherit; font-size: 14px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .hero { gap: 30px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 25px 48px; }
  .contents { display: flex; flex-wrap: wrap; gap: 3px 16px; position: static; padding: 0 0 13px; border: 0; border-bottom: 1px solid var(--line); }
  .contents p { width: 100%; margin: 0; }
  .contents a { min-height: 30px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { min-height: 54px; }
  .brand { font-size: 19px; }
  .brand img { width: 29px; height: 29px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 29px; }
  h1 { font-size: clamp(34px, 8.3vw, 44px); margin: 6px 0 10px; }
  h1 br { display: none; }
  .intro > p:last-child, main { font-size: 15px; }
  .addresses { padding-inline: 14px; }
  .addresses div { padding-block: 9px; }
  .addresses dd { font-size: 13px; }
  .contents { gap: 2px 11px; }
  section + section { margin-top: 30px; padding-top: 25px; }
  h2 { gap: 8px; margin-bottom: 11px; }
  .step { width: 27px; height: 27px; font-size: 12px; }
  .reference div, .errors div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .python { padding: 10px; }
  .snippet-head { padding-left: 12px; }
  pre { padding: 12px; }
  pre code { font-size: 12px; }
}
