.documentation {
  --docs-accent: #285f9a;
  --docs-line: #cdddec;
  background: #fff;
  color: var(--ink);
}

.docs-shell {
  width: min(980px, calc(100% - clamp(2.5rem, 8vw, 5rem)));
  margin-inline: auto;
}

.docs-header {
  background: #fff;
  border-bottom: 1px solid var(--docs-line);
}

.docs-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  min-height: 4.5rem;
  align-items: center;
}

.docs-primary,
.docs-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.docs-primary a,
.desk-link,
.docs-footer a {
  font-size: .875rem;
  font-weight: var(--sr-weight-medium);
}

.docs-primary a[aria-current],
.docs-primary a:hover,
.docs-footer a:hover {
  color: var(--docs-accent);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.desk-link,
.reference-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a9c6e1;
  border-radius: var(--sr-radius-control);
  color: #173e68;
  background: #e3effb;
}

.desk-link {
  justify-self: end;
  padding: .45rem .8rem;
}

.desk-link:hover,
.reference-link:hover { background: #d1e5f8; }

.docs-hero {
  border-bottom: 1px solid var(--docs-line);
  background: #f1f7fd;
}

.hero-columns {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5.25rem);
}

.hero-intro h1 {
  font-size: clamp(2.65rem, 5.8vw, 4.4rem);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -.05em;
}

.hero-intro em {
  color: var(--docs-accent);
  font-style: normal;
}

.hero-intro p {
  max-width: 38ch;
  margin-top: 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

.reference-link {
  margin-top: 1.4rem;
  padding: .65rem 1rem;
  font-size: .9375rem;
  font-weight: 600;
}

.code-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--docs-line);
  border-radius: var(--sr-radius-panel);
  background: #fff;
}

.code-panel figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: var(--sr-weight-heading);
}

.copy {
  border: 1px solid var(--docs-line);
  border-radius: .35rem;
  background: #f3f8ff;
  color: #22496f;
  padding: .2rem .6rem;
  font-size: .8125rem;
  font-weight: 550;
}

.copy:hover { background: #e2edfa; }

.documentation code,
.status-table th {
  overflow-wrap: anywhere;
}

.documentation code,
.method,
.error-list dt {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .9em;
}

.code-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 1.25rem;
  background: #162f4d;
  color: #e1efff;
  font-size: clamp(.8rem, 1.5vw, .925rem);
  line-height: 1.8;
  scrollbar-color: #779bbd #162f4d;
}

.code-panel pre code {
  font-size: inherit;
  overflow-wrap: normal;
}

.code-panel pre:focus-visible {
  outline: 3px solid #9cc7f6;
  outline-offset: -3px;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(9rem, .28fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.section-index {
  position: sticky;
  top: 1.75rem;
  display: grid;
  gap: .5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--docs-line);
}

.section-index a {
  font-size: .9rem;
  color: var(--muted);
}

.section-index a:hover { color: var(--docs-accent); text-decoration: underline; }

.reference-sections section {
  scroll-margin-block-start: 1.5rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--docs-line);
}

.reference-sections section:first-child { border: 0; padding-top: 0; }
.reference-sections section:last-child { padding-bottom: 0; }

.reference-sections h2 {
  margin-bottom: .85rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 590;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.reference-sections p,
.reference-sections dd {
  line-height: 1.65;
  color: var(--muted);
}

.endpoint-list,
.error-list { margin: 1.3rem 0; }
.endpoint-list:last-child, .error-list:last-child { margin-bottom: 0; }

.endpoint {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--docs-line);
  border-radius: .45rem;
  margin-top: .65rem;
}

.endpoint dt {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  font-weight: 620;
}

.method {
  flex: 0 0 auto;
  font-size: .78rem;
  letter-spacing: .035em;
  color: var(--docs-accent);
}

.endpoint dd {
  margin: .45rem 0 0;
  font-size: .94rem;
}

.endpoint dd strong { color: var(--ink); font-weight: 625; }
.example-note { margin-top: .5rem; font-size: .85rem; }

.status-table {
  width: 100%;
  margin-top: 1.4rem;
  border-collapse: collapse;
  text-align: left;
  font-size: .94rem;
}

.status-table caption {
  padding-bottom: .45rem;
  font-size: 1rem;
  font-weight: 625;
  text-align: left;
}

.status-table th, .status-table td {
  padding: .65rem .65rem .65rem 0;
  border-bottom: 1px solid var(--docs-line);
  vertical-align: top;
}

.status-table th { width: 32%; font-weight: 600; }
.status-table thead th { font-size: .85rem; color: var(--muted); }
.status-table td, .error-list dd { color: var(--muted); }

.error-list > div {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: .9rem;
  padding-block: .65rem;
  border-bottom: 1px solid var(--docs-line);
}

.error-list dt { font-weight: 600; }
.error-list dd { margin: 0; font-size: .94rem; }
.docs-footer { border-top: 1px solid var(--docs-line); background: #f1f7fd; }
.docs-footer nav { min-height: 4.5rem; gap: .5rem 1.25rem; padding-block: 1rem; }

@media (max-width: 48rem) {
  .docs-bar { grid-template-columns: 1fr auto; row-gap: 0; padding-top: .8rem; }
  .docs-primary { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 1.25rem; padding-block: .75rem; }
  .hero-columns, .docs-layout { grid-template-columns: minmax(0,1fr); }
  .hero-columns { gap: 2rem; }
  .hero-intro p { max-width: 55ch; }
  .section-index { position: static; display: flex; flex-wrap: wrap; gap: .45rem 1rem; border: 0; padding: 0 0 1.1rem; border-bottom: 1px solid var(--docs-line); }
  .section-index strong { width: 100%; }
}

@media (max-width: 29rem) {
  .desk-link { font-size: .8rem; padding: .4rem .6rem; }
  .code-panel pre { padding: .8rem; }
  .endpoint { padding: .85rem; }
  .error-list > div { grid-template-columns: 5rem 1fr; }
  .status-table th { width: 35%; }
}
