@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("chakra-petch-400.woff2") format("woff2");
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("chakra-petch-600.woff2") format("woff2");
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("chakra-petch-700.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fira-code.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f6f6f5;
  --surface: #ffffff;
  --sunken: #eeeeec;
  --border: #dcdcda;
  --text: #1e1e1f;
  --muted: #5e5f63;
  --accent: #2f7a1f;
  --accent-soft: #e5f1de;
  --button: #3c8527;
  --button-top: #52a535;
  --button-bottom: #2a641c;
  --sans: "Chakra Petch", system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Fira Code", ui-monospace, Consolas, Menlo, monospace;
  --header: 60px;
  --shade: rgb(0 0 0 / 9%);
  --panel: #efefec;
  --panel-bar: #e5e5e1;
  --panel-border: #dcdcd8;
  --panel-text: #2b2c30;
  --code-muted: #6f7178;
  --token-keyword: #7c3aed;
  --token-string: #2f7a1f;
  --token-number: #c2410c;
  --token-function: #1d5fb8;
  --token-class: #a15c00;
  --token-operator: #0e7490;
  --token-comment: #7a7d84;
  --token-attribute: #0b7285;
  --token-argument: #a8326e;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #18181a;
  --surface: #212123;
  --sunken: #111112;
  --border: #323234;
  --text: #ececed;
  --muted: #a4a5a9;
  --accent: #6cc349;
  --accent-soft: #1f2d18;
  --shade: rgb(255 255 255 / 7%);
  --panel: #111215;
  --panel-bar: #1b1c20;
  --panel-border: #2b2d33;
  --panel-text: #e4e5e9;
  --code-muted: #9a9ea8;
  --token-keyword: #c792ea;
  --token-string: #a5e075;
  --token-number: #f78c6c;
  --token-function: #82aaff;
  --token-class: #ffcb6b;
  --token-operator: #89ddff;
  --token-comment: #7c828f;
  --token-attribute: #7fdbca;
  --token-argument: #f2a7c3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #18181a;
    --surface: #212123;
    --sunken: #111112;
    --border: #323234;
    --text: #ececed;
    --muted: #a4a5a9;
    --accent: #6cc349;
    --accent-soft: #1f2d18;
          }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header);
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  image-rendering: pixelated;
}

.version {
  color: var(--muted);
  font: 12.5px var(--mono);
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-right: auto;
  margin-left: 8px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  text-decoration: none;
}

.site-nav a.active {
  box-shadow: 0 2px 0 var(--accent);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.search:focus-within {
  border-color: var(--accent);
}

.search svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.search kbd {
  padding: 0 6px;
  border: 1px solid var(--border);
  font: 12px var(--mono);
}

.icon-button {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  place-items: center;
}

.icon-button:hover {
  border-color: var(--border);
  color: var(--text);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.menu-button {
  display: none;
}

.moon {
  display: none;
}

:root[data-theme="dark"] .sun {
  display: none;
}

:root[data-theme="dark"] .moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun {
    display: none;
  }

  :root:not([data-theme="light"]) .moon {
    display: block;
  }
}

.repo {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  max-width: 200px;
  color: var(--muted);
  line-height: 18px;
}

.repo:hover {
  color: var(--text);
  text-decoration: none;
}

.repo > svg {
  flex: none;
  width: 24px;
  height: 24px;
}

svg path[d^="M8 0C3.58"] {
  fill: currentColor;
  stroke: none;
}

.repo-text {
  display: grid;
  grid-template-rows: auto 0fr;
  min-width: 0;
  transition: grid-template-rows 0.15s;
}

.repo:hover .repo-text,
.repo:focus-visible .repo-text {
  grid-template-rows: auto 1fr;
}

.repo-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-facts {
  display: flex;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}

.repo:hover .repo-facts,
.repo:focus-visible .repo-facts {
  opacity: 1;
}

.repo-facts:empty {
  display: none;
}

.repo-facts span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.repo-facts svg {
  width: 12px;
  height: 12px;
}

/* Page layout */

.site-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  max-width: 1440px;
  margin: 0 auto;
}

.site-sidebar,
.site-toc {
  position: sticky;
  top: var(--header);
  align-self: start;
  max-height: calc(100vh - var(--header));
  overflow-y: auto;
  padding: 28px 20px;
  font-size: 14.5px;
}

.site-sidebar {
  min-height: calc(100vh - var(--header));
  border-right: 1px solid var(--border);
}

.site-sidebar ul,
.site-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-sidebar a,
.site-toc a {
  display: block;
  padding: 4px 10px;
  color: var(--muted);
}

.site-sidebar a:hover,
.site-toc a:hover,
.site-toc a.active {
  color: var(--text);
  text-decoration: none;
}

.site-toc a.active {
  box-shadow: inset 2px 0 0 var(--accent);
}

/* Section index pages are reached from the header. */
.site-sidebar .toctree-l1 > a:has(+ ul) {
  display: none;
}

.site-sidebar .caption {
  margin: 20px 0 6px;
  padding-left: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.site-sidebar .caption:first-child {
  margin-top: 0;
}

.site-sidebar a.current {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.site-toc p {
  margin: 0 0 8px;
  padding-left: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.site-toc > ul > li > a {
  display: none;
}

.site-toc ul ul a {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-toc code {
  padding: 0;
  background: none;
  font-size: 13px;
}

.site-toc ul ul ul a {
  padding-left: 22px;
  font-size: 12.5px;
}

.site-main {
  min-width: 0;
  padding: 36px 48px 64px;
}

body.page .content {
  max-width: 800px;
  margin: 0 auto;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 56px auto 0;
}

.pager a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.pager a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.pager .next {
  grid-column: 2;
  text-align: right;
}

.pager small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
}

.site-body:not(:has(.site-sidebar)) {
  display: block;
  max-width: 880px;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.site-footer p span {
  font-size: 12.5px;
}

.footer-icon {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--muted);
  place-items: center;
}

.footer-icon:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex: none;
  gap: 4px;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.site-sidebar,
.site-toc,
pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--panel-text);
  font-size: 13.5px;
  line-height: 1.7;
}

.not-found {
  padding: 12vh 0;
  text-align: center;
}

.not-found .actions {
  justify-content: center;
}

/* Section landing pages */

.cards ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  position: relative;
  padding: 16px 18px 16px 64px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s;
}

.cards li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cards li img {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.cards li p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.cards li p:first-child {
  font-size: 16.5px;
  font-weight: 700;
}

.cards li a {
  color: var(--text);
}

.cards li a:hover {
  text-decoration: none;
}

.cards li a::after {
  position: absolute;
  inset: 0;
  content: "";
}

/* Content */

.content > section > h1 + p {
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.6;
}

.content > section > p,
.content > section > section > p,
.content li {
  overflow-wrap: break-word;
}

.content li {
  margin: 4px 0;
}

.content a:not(.headerlink, .button) {
  text-underline-offset: 3px;
}

.content p a:not(.headerlink) {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
}

.content p a:hover {
  text-decoration-color: var(--accent);
}

.content p code a,
.content a code,
.content .cards p a:not(.headerlink) {
  text-decoration: none;
}

body.page .content > section > section > h2::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 11px;
  background: var(--button-top);
  box-shadow: 4px 4px 0 var(--button-bottom);
  vertical-align: 0.14em;
  content: "";
}

.content h1,
.content h2,
.content h3 {
  margin: 34px 0 8px;
  font-size: 18.5px;
  font-weight: 700;
}

.content h1 {
  margin: 0 0 16px;
  font-size: 38px;
  font-weight: 700;
}

.content h2 {
  margin: 52px 0 14px;
  font-size: 25px;
  font-weight: 700;
}

.content h3 {
  margin: 32px 0 10px;
  font-size: 19px;
}

.content img {
  max-width: 100%;
  height: auto;
}

a.headerlink {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
  opacity: 0;
}

:hover > a.headerlink {
  opacity: 1;
}

.content table {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: 15px;
}

.content th,
.content td {
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.content th {
  background: var(--sunken);
  font-size: 13.5px;
  font-weight: 700;
}

.content tr:last-child td {
  border-bottom: 0;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

code {
  padding: 2px 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86em;
  font-weight: 500;
}

a code {
  color: inherit;
}

pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-weight: 400;
}

div.highlight {
  position: relative;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}

.highlight {
  background: var(--panel);
}

.highlight .k,
.highlight .kn,
.highlight .kd,
.highlight .kr,
.highlight .ow {
  color: var(--token-keyword);
  font-weight: 400;
}

.highlight .kc,
.highlight .mi,
.highlight .mf {
  color: var(--token-number);
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .si,
.highlight .sa,
.highlight .se,
.highlight .sd {
  color: var(--token-string);
  font-style: normal;
}

.highlight .nf,
.highlight .fm {
  color: var(--token-function);
  font-weight: 400;
}

.highlight .nc,
.highlight .ne {
  color: var(--token-class);
  font-weight: 500;
}

.highlight .ne {
  color: var(--token-number);
}

.highlight .na {
  color: var(--token-attribute);
}

.highlight .nv {
  color: var(--token-argument);
}

.highlight .nn {
  color: var(--token-class);
  font-weight: 400;
}

.highlight .nb,
.highlight .bp {
  color: var(--token-operator);
}

.highlight .nd {
  color: var(--token-number);
}

.highlight .c,
.highlight .c1,
.highlight .cm {
  color: var(--token-comment);
  font-style: normal;
}

.highlight .gp {
  color: var(--accent);
  user-select: none;
}

.highlight .go,
.highlight .n,
.highlight .p,
.highlight .w {
  color: var(--panel-text);
  font-weight: 400;
}

.highlight .o {
  color: var(--token-operator);
  font-weight: 400;
}

.copy-button {
  padding: 1px 8px;
  border: 0;
  background: transparent;
  color: var(--code-muted);
  font: 600 12px var(--sans);
  cursor: pointer;
}

.copy-button:hover {
  background: var(--shade);
  color: var(--panel-text);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px 5px 18px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--panel-bar);
  color: var(--code-muted);
  font: 600 12px var(--sans);
}

div.admonition {
  position: relative;
  margin: 22px 0;
  padding: 14px 18px 14px 56px;
  border: 1px solid var(--border);
  background: var(--surface);
}

div.admonition.tip,
div.admonition.note {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--accent-soft);
}

div.admonition.warning,
div.admonition.caution {
  border-color: color-mix(in srgb, #e8590c 45%, var(--border));
  background: color-mix(in srgb, #e8590c 9%, var(--surface));
}

div.admonition::before {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 24px;
  height: 24px;
  background: url("pixel/info.svg") center / contain no-repeat;
  image-rendering: pixelated;
  content: "";
}

div.admonition.tip::before {
  background-image: url("pixel/bulb.svg");
}

div.admonition.warning::before,
div.admonition.caution::before {
  background-image: url("pixel/alert.svg");
  filter: hue-rotate(-75deg) saturate(1.6);
}

div.admonition > p {
  margin: 4px 0 0;
}

div.admonition > p.admonition-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
}

.content dl:not(.py, .field-list) > dt {
  font-weight: 700;
}

.content dl:not(.py, .field-list) > dd {
  margin: 0 0 12px;
  color: var(--muted);
}

/* API reference */

.content dl.py {
  margin: 0 0 20px;
}

.content section > dl.py {
  border: 1px solid var(--border);
  background: var(--surface);
}

.content dl.py > dt {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.content section > dl.py > dt {
  border-bottom: 1px solid var(--border);
  background: var(--sunken);
}

.content dl.py > dd {
  margin: 0;
  padding: 4px 16px 8px;
}

.content dl.py dl.py {
  margin: 12px 0;
  border-top: 1px solid var(--border);
}

.content dl.py dl.py > dt {
  padding: 12px 0 4px;
}

.content dl.py dl.py > dd {
  padding: 0;
}

.content dl.py dd > p {
  margin: 6px 0;
}

.content .sig-name {
  color: var(--accent);
  font-weight: 700;
}

.content .sig-prename {
  color: var(--muted);
}

.content em.property,
.content .property {
  color: var(--muted);
  font-style: normal;
}

.content dl.field-list {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 4px 12px;
  margin: 12px 0;
  font-size: 15px;
}

.content dl.field-list > dt {
  color: var(--muted);
  font-weight: 600;
}

.content dl.field-list > dd {
  margin: 0;
}

.content dl.field-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content dl.field-list p {
  margin: 0 0 4px;
}

.content dl.py.attribute {
  margin: 0;
  border-top: 0;
}

.content dl.py.attribute > dt {
  padding: 8px 0 0;
  font-size: 13.5px;
}

.content dl.py.attribute > dd p {
  margin: 0;
  font-size: 15px;
}

.content dl.py.attribute dl.field-list {
  display: block;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}

.content dl.py.attribute dl.field-list > dt {
  display: none;
}

/* Buttons take after the launcher's play button. */

.button {
  display: inline-block;
  padding: 10px 26px 12px;
  background: rgb(255 255 255 / 10%);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 18%),
    inset 0 -3px 0 rgb(0 0 0 / 28%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button.primary {
  background: var(--button);
  box-shadow:
    inset 0 2px 0 var(--button-top),
    inset 0 -3px 0 var(--button-bottom);
}

.button:hover {
  filter: brightness(1.12);
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

/* Home page */

body.home .site-body {
  display: block;
  max-width: none;
}

body.home .site-main {
  padding: 0;
}

body.home .content > section > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

body.home .site-footer {
  border-top: 0;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header));
  overflow: hidden;
  background: #0c1016;
  color: #ffffff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% bottom;
  image-rendering: pixelated;
}

.hero-copy {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 13vh, 130px) 24px 40px;
}

.hero-copy h2 {
  max-width: 660px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #ffffff;
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero-copy p {
  max-width: 520px;
  margin: 22px 0 30px;
  color: #d3d7dc;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.band {
  padding: clamp(56px, 9vw, 110px) 24px;
}

.band.alternate {
  background: var(--surface);
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.band.flip .band-inner {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.band.flip .band-copy {
  order: 2;
}

.band.center .band-inner {
  display: block;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.home .band h2 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.band-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17.5px;
}

.band div.highlight {
  margin: 0;
}

.band.center .lede {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 17.5px;
}

.changes {
  border: 1px solid var(--border);
  background: var(--sunken);
  font: 14px/1.5 var(--mono);
}

.changes p {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.changes p:last-child {
  border-bottom: 0;
}

.changes b {
  flex: none;
  width: 76px;
  font-weight: 700;
}

.changes .add b {
  color: var(--accent);
}

.changes .update b {
  color: var(--code-name);
}

.changes .keep b {
  color: var(--code-string);
}

.changes .remove b {
  color: var(--muted);
}

.changes small {
  margin-left: auto;
  color: var(--muted);
  font: 13px var(--sans);
}

.loaders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.loader {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.loader strong {
  display: block;
  font-size: 19px;
}

.loader span {
  color: var(--muted);
  font-size: 14.5px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 16px 18px 16px 60px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  counter-increment: step;
}

.band.alternate .steps li {
  background: var(--bg);
}

.steps li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 26px;
  height: 26px;
  background: var(--button);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  content: counter(step);
  place-items: center;
}

.steps strong {
  display: block;
  color: var(--text);
  line-height: 30px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  text-align: left;
}

.feature img {
  display: block;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.feature h3 {
  margin: 12px 0 4px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.closing {
  background: #0c1016;
  color: #ffffff;
  text-align: center;
}

body.home .closing h2 {
  color: #ffffff;
}

.band.closing .lede {
  color: #d3d7dc;
}

.closing .actions {
  justify-content: center;
}

ul.search {
  padding: 0;
  list-style: none;
}

/* Small screens */

@media (max-width: 1100px) {
  .repo-text {
    display: none;
  }

  .site-nav {
    gap: 16px;
  }
}

@media (max-width: 1180px) {
  .site-body {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .site-toc {
    display: none;
  }

  .site-main {
    padding: 32px 32px 56px;
  }
}

@media (max-width: 900px) {
  .band-inner,
  .band.flip .band-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .band.flip .band-copy {
    order: 0;
  }

  .loaders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    gap: 8px;
    padding: 0 16px;
  }

  .site-nav,
  .search kbd,
  .version,
  .repo-text {
    display: none;
  }

  .cards ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .search {
    width: auto;
    min-width: 0;
    flex: 1;
    margin-left: 8px;
  }

  .menu-button {
    display: grid;
  }

  body.home .menu-button {
    display: none;
  }

  .brand span {
    display: none;
  }

  .site-body {
    display: block;
  }

  .site-sidebar {
    position: fixed;
    inset: var(--header) auto 0 0;
    z-index: 15;
    display: none;
    width: min(280px, 85vw);
    min-height: 0;
    max-height: none;
    background: var(--bg);
  }

  .site-sidebar.open {
    display: block;
  }

  .site-main {
    padding: 24px 16px 48px;
  }

  .content h1 {
    font-size: 28px;
  }

  .pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager .next {
    grid-column: auto;
  }

  .content dl.field-list {
    display: block;
  }
}

@media (max-width: 560px) {
  .band {
    padding: 48px 16px;
  }

  .hero-copy {
    padding: 40px 16px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .changes small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Blocks */

.search,
.pager a,
.cards li,
.loader,
.steps li,
div.admonition,
div.highlight,
.content table,
.changes,
.content section > dl.py {
  box-shadow: inset 0 -3px 0 var(--shade);
}

.pager a,
.cards li {
  transition:
    box-shadow 0.12s,
    transform 0.12s;
}

.pager a:hover,
.cards li:hover {
  border-color: var(--border);
  box-shadow: inset 0 -3px 0 var(--button-top);
  transform: translateY(-2px);
}

.site-sidebar a.current {
  box-shadow: inset 3px 0 0 var(--button-top);
}

.search:focus-within {
  border-color: var(--border);
  box-shadow: inset 0 -3px 0 var(--button-top);
}

/* Icons sit on a 24 pixel grid, so they stay sharp at their natural size. */

.cards li {
  padding-left: 56px;
}

.cards li img {
  top: 19px;
  width: 24px;
  height: 24px;
}

.feature img {
  width: 24px;
  height: 24px;
}

div.admonition {
  padding-left: 52px;
}

div.admonition::before {
  top: 15px;
  left: 16px;
  width: 24px;
  height: 24px;
}

/* Reference pages */

.content p.rubric {
  margin: 36px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

table.autosummary {
  table-layout: fixed;
}

table.autosummary td:first-child {
  width: 30%;
  overflow-wrap: anywhere;
}

.content table.autosummary p a:not(.headerlink) {
  text-decoration: none;
}

table.autosummary code {
  padding: 0;
  background: none;
}

table.autosummary p {
  margin: 0;
}

.content dl.py dt.sig {
  background: var(--panel);
  color: var(--panel-text);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
}

.content section > dl.py > dt.sig {
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
}

.content dl.py dl.py > dt.sig {
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  box-shadow: inset 3px 0 0 var(--button-top);
}

.content dl.py.attribute > dt.sig {
  padding: 8px 14px;
  box-shadow: none;
}

.content dl.py > dt.sig dl,
.content dl.py > dt.sig dd {
  margin: 0;
  padding: 0;
}

.content dl.py > dt.sig dd {
  padding-left: 20px;
}

.content dt.sig .sig-name {
  color: var(--token-function);
  font-size: 15px;
  font-weight: 600;
}

.content dt.sig .property .k {
  color: var(--token-keyword);
  font-style: normal;
}

.content dt.sig .property,
.content dt.sig .sig-prename {
  color: var(--code-muted);
  font-style: normal;
}

.content dt.sig em,
.content dt.sig .sig-param {
  font-style: normal;
}

.content dt.sig .sig-param .n > .pre {
  color: var(--panel-text);
}

.content dt.sig .sig-param > .n:first-child > .pre {
  font-weight: 600;
}

.content dt.sig .sig-param .p,
.content dt.sig .sig-param .o,
.content dt.sig .sig-paren {
  color: var(--code-muted);
}

.content dt.sig .default_value {
  color: var(--token-string);
}

.content dt.sig a {
  color: var(--token-class);
  text-decoration: none;
}

.content dt.sig a.headerlink {
  color: var(--code-muted);
}

.content dl.py > dd {
  padding: 8px 18px 14px;
}

.content dl.py dl.py > dd {
  padding: 8px 2px 4px;
}

.content dl.py dl.py {
  margin: 20px 0 0;
  border-top: 0;
}

.content dl.py.attribute {
  margin: 10px 0 0;
}

.content dl.py.attribute > dd {
  padding: 4px 14px 2px;
}

.content dl.py.attribute > dd p {
  color: var(--muted);
}

/* Parameters read as rows, not paragraphs. */

.content dl.field-list {
  display: block;
  margin: 14px 0 0;
}

.content dl.field-list > dt {
  margin: 14px 0 2px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.content dl.field-list > dd > ul,
.content dl.field-list > dd > p {
  margin: 0;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
  gap: 2px 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.content dl.field-list li {
  margin: 0;
}

.field-name strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
}

.field-type {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.field-type a {
  color: inherit;
}

.field-doc {
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

/* Kinds in the page's table of contents. */

.site-toc a[data-kind] {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

:where(.site-toc a[data-kind], .site-sidebar a[data-kind], table.autosummary a[data-kind])::before,
:where(.kind) {
  flex: none;
  display: inline-block;
  width: 36px;
  background: var(--sunken);
  color: var(--muted);
  font: 600 10px/16px var(--mono);
  letter-spacing: 0;
  text-align: center;
  vertical-align: 1px;
  content: attr(data-kind);
}

table.autosummary a[data-kind]::before {
  margin-right: 10px;
}

.site-sidebar a[data-kind] {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kind {
  width: auto;
  margin-right: 12px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 20px;
  vertical-align: 8px;
}

a[data-kind="class"]::before,
.kind[data-kind="class"] {
  background: var(--accent-soft);
  color: var(--accent);
}

a[data-kind="func"]::before,
a[data-kind="meth"]::before,
.kind[data-kind="func"] {
  background: color-mix(in srgb, var(--token-function) 13%, transparent);
  color: var(--token-function);
}

a[data-kind="type"]::before,
a[data-kind="attr"]::before,
a[data-kind="prop"]::before,
.kind[data-kind="type"] {
  background: color-mix(in srgb, var(--token-class) 14%, transparent);
  color: var(--token-class);
}

a[data-kind="exc"]::before,
.kind[data-kind="exc"] {
  background: color-mix(in srgb, var(--token-number) 13%, transparent);
  color: var(--token-number);
}

.site-sidebar li.toctree-l3 a {
  padding: 2px 10px 2px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.crumbs a {
  color: var(--accent);
}

.crumbs span::before {
  margin-right: 6px;
  color: var(--muted);
  content: "/";
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.content dt.sig abbr {
  text-decoration: none;
}

.field-name a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
}

.content dl.field-list > dd > p:not(.field-row),
.content dl.field-list > dd > ul > li > p:not(.field-row) {
  padding: 6px 0;
  font-size: 15px;
}
