/*
 * The API reference page (/developers/docs). Plain CSS, no build step; versioned by a hash of this file.
 *
 * Page colours follow the theme (system by default, or the reader's choice in html[data-theme]). Code
 * panels are dark in both themes, on a palette modelled on GitHub Dark Default; every token colour
 * meets WCAG AA (4.5:1) against the panel background.
 */

/* Tokens ------------------------------------------------------------------------------------------ */

:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --topbar-h: 3.625rem;
  --nav-w: 16.5rem;
  --code-w: clamp(25rem, 36vw, 31.25rem);
  --gutter: 2.5rem;
  --radius: 0.5rem;

  --bg: #ffffff;
  --bg-nav: #f7f9fc;
  --bg-subtle: #f1f4f8;
  --bg-hover: #e9edf3;
  --surface: #ffffff;
  --line: #e3e8ef;
  --line-strong: #cfd6e0;
  --text: #0f1729;
  --text-muted: #3f4a5c;
  --text-subtle: #5b6577;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-strong: #1d4ed8;
  --accent-soft: #edf2fe;
  --on-accent: #ffffff;
  --focus: #2563eb;
  --focus-ring: rgb(37 99 235 / 0.22);
  --ok-fg: #12703a;
  --ok-bg: #e7f5ec;
  --warn-fg: #9a4508;
  --warn-bg: #fdf1e1;
  --warn-border: #f3d6ab;
  --err-fg: #b42318;
  --err-bg: #fdeceb;
  --note-bg: #f3f7ff;
  --note-border: #d5e1fb;
  --get-fg: #12703a;
  --get-bg: #e7f5ec;
  --post-fg: #1d4ed8;
  --post-bg: #eaf0fd;
  --patch-fg: #9a4508;
  --patch-bg: #fdf1e1;
  --put-fg: #7e22ce;
  --put-bg: #f4ebfd;
  --delete-fg: #b42318;
  --delete-bg: #fdeceb;
  --toast-bg: #0f1729;
  --toast-fg: #ffffff;
  --scrim: rgb(15 23 41 / 0.42);

  /* Code panels: the same in both themes. */
  --code-bg: #0d1117;
  --code-head: #161b22;
  --code-border: #30363d;
  --code-line: #262c35;
  --code-fg: #e6edf3;
  --code-muted: #9198a1;
  --code-control: #3d444d;
  --code-accent: #58a6ff;
  --tk-key: #7ee787;
  --tk-str: #a5d6ff;
  --tk-num: #79c0ff;
  --tk-bool: #ffa657;
  --tk-null: #ff7b72;
  --tk-punc: #b1bac4;
  --tk-kw: #ff7b72;
  --tk-fn: #d2a8ff;
  --tk-com: #8b949e;
  --tk-var: #ffa657;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121a25;
  --bg-nav: #0f161f;
  --bg-subtle: #18222f;
  --bg-hover: #1e2938;
  --surface: #151e2a;
  --line: #243041;
  --line-strong: #334156;
  --text: #e7ecf3;
  --text-muted: #b0bac8;
  --text-subtle: #929daf;
  --accent: #60a5fa;
  --accent-hover: #82b8fb;
  --accent-strong: #8dbefc;
  --accent-soft: #172a45;
  --on-accent: #0b1220;
  --focus: #60a5fa;
  --focus-ring: rgb(96 165 250 / 0.3);
  --ok-fg: #4ade80;
  --ok-bg: #122a1f;
  --warn-fg: #fbbf24;
  --warn-bg: #2a2314;
  --warn-border: #4a3b17;
  --err-fg: #f87171;
  --err-bg: #2f1a1e;
  --note-bg: #132137;
  --note-border: #1f3557;
  --get-fg: #4ade80;
  --get-bg: #122a1f;
  --post-fg: #7cb5fb;
  --post-bg: #15253d;
  --patch-fg: #fbbf24;
  --patch-bg: #2a2314;
  --put-fg: #c99bfd;
  --put-bg: #241a38;
  --delete-fg: #f87171;
  --delete-bg: #2f1a1e;
  --toast-bg: #e7ecf3;
  --toast-fg: #0f1729;
  --scrim: rgb(3 7 13 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121a25;
    --bg-nav: #0f161f;
    --bg-subtle: #18222f;
    --bg-hover: #1e2938;
    --surface: #151e2a;
    --line: #243041;
    --line-strong: #334156;
    --text: #e7ecf3;
    --text-muted: #b0bac8;
    --text-subtle: #929daf;
    --accent: #60a5fa;
    --accent-hover: #82b8fb;
    --accent-strong: #8dbefc;
    --accent-soft: #172a45;
    --on-accent: #0b1220;
    --focus: #60a5fa;
    --focus-ring: rgb(96 165 250 / 0.3);
    --ok-fg: #4ade80;
    --ok-bg: #122a1f;
    --warn-fg: #fbbf24;
    --warn-bg: #2a2314;
    --warn-border: #4a3b17;
    --err-fg: #f87171;
    --err-bg: #2f1a1e;
    --note-bg: #132137;
    --note-border: #1f3557;
    --get-fg: #4ade80;
    --get-bg: #122a1f;
    --post-fg: #7cb5fb;
    --post-bg: #15253d;
    --patch-fg: #fbbf24;
    --patch-bg: #2a2314;
    --put-fg: #c99bfd;
    --put-bg: #241a38;
    --delete-fg: #f87171;
    --delete-bg: #2f1a1e;
    --toast-bg: #e7ecf3;
    --toast-fg: #0f1729;
    --scrim: rgb(3 7 13 / 0.6);
  }
}

/* Base -------------------------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 0.9375rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

::selection {
  background: var(--focus-ring);
}

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

h1,
h2,
h3,
h4 {
  color: var(--text);
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.017em;
}

p {
  margin: 0 0 0.875rem;
  max-width: 68ch;
}

p code,
dd code,
td code,
.field-desc code,
.callout code {
  padding: 0.08em 0.36em;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.84em;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon,
.icon-btn svg,
.nav-search svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons and chips ------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 0.875rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-sm {
  height: 1.875rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.icon-btn-sm {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-btn.is-copied,
.nav-foot-link.is-copied,
.btn.is-copied {
  color: var(--ok-fg);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: 600 0.75rem/1 var(--font-mono);
}

.chip-quiet {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 1.375rem;
  padding: 0 0.4rem;
  border-radius: 0.3rem;
  font: 700 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.02em;
}

.method-get {
  background: var(--get-bg);
  color: var(--get-fg);
}

.method-post {
  background: var(--post-bg);
  color: var(--post-fg);
}

.method-patch {
  background: var(--patch-bg);
  color: var(--patch-fg);
}

.method-put {
  background: var(--put-bg);
  color: var(--put-fg);
}

.method-delete {
  background: var(--delete-bg);
  color: var(--delete-fg);
}

.badge-partner {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-fg);
  font-size: 0.75rem;
  font-weight: 600;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font: 600 0.75rem/1.5 var(--font-mono);
  white-space: nowrap;
}

.status-ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.status-warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.status-err {
  background: var(--err-bg);
  color: var(--err-fg);
}

.dot {
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.dot-ok {
  color: var(--ok-fg);
}

.dot-warn {
  color: var(--warn-fg);
}

.dot-err {
  color: var(--err-fg);
}

/* Top bar ----------------------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--topbar-h);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

/* The default logo (the map's wordmark), until one is uploaded in Settings › General. */
.brand-wordmark {
  display: block;
  width: auto;
  height: 2rem;
  fill: currentColor;
}

.brand-wordmark .wm-badge-t {
  fill: var(--bg);
}

/* An uploaded logo stands alone and fills the brand's space. */
.brand-logo {
  display: block;
  width: auto;
  height: 2rem;
  max-width: min(12rem, 40vw);
  object-fit: contain;
  object-position: left center;
}

.brand-mark rect {
  fill: var(--accent);
}

.brand-mark path {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.topbar-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--line-strong);
}

.topbar-title {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.topbar-base {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  height: 2rem;
  margin-left: auto;
  padding: 0 0.125rem 0 0.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.topbar-base-label {
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-base code {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-links {
  display: flex;
  gap: 0.125rem;
}

.topbar-links a {
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-links a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.topbar-links a[aria-current] {
  color: var(--text);
  font-weight: 600;
}

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

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

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

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

html:not(.js) .theme-toggle,
html:not(.js) .nav-toggle {
  display: none;
}

.cta-short {
  display: none;
}

/* The top bar is the map's dark bar (frontend/css/styles.css) in both themes, as on the public pages. */

.topbar {
  --nav-bg: #1f2937;
  --nav-text: #f3f4f6;
  --nav-text-2: #c5ccd6;
  border-bottom-color: #111827;
  background: var(--nav-bg);
  color: var(--nav-text);
}

:root[data-theme="dark"] .topbar {
  --nav-bg: #0f1724;
  border-bottom-color: var(--line);
  background: linear-gradient(180deg, #111b2a, #0d1521);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar {
    --nav-bg: #0f1724;
    border-bottom-color: var(--line);
    background: linear-gradient(180deg, #111b2a, #0d1521);
  }
}

.topbar .brand,
.topbar .topbar-title,
.topbar .topbar-base code {
  color: #fff;
}

.topbar .brand-wordmark .wm-badge-t {
  fill: var(--nav-bg);
}

.topbar .topbar-divider {
  background: rgba(255, 255, 255, 0.16);
}

.topbar .brand-wordmark {
  height: 2.25rem;
}

.topbar .theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.topbar .chip {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar .chip-quiet,
.topbar .topbar-base-label,
.topbar .topbar-links a,
.topbar .icon-btn {
  color: var(--nav-text-2);
}

.topbar .topbar-base {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.topbar .topbar-links a:hover,
.topbar .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.topbar .topbar-links a[aria-current] {
  color: #fff;
}

.topbar .icon-btn.is-copied {
  color: #6ee7a8;
}

.topbar :focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--nav-bg), 0 0 0 4px #7db7ee;
}

/* Contents nav ------------------------------------------------------------------------------------ */

.docs-shell {
  padding-top: var(--topbar-h);
}

.docs-nav {
  display: flex;
  flex-direction: column;
  background: var(--bg-nav);
}

.nav-search {
  position: relative;
  flex: none;
  margin: 1rem 1rem 0.5rem;
  color: var(--text-subtle);
}

.nav-search svg {
  position: absolute;
  top: 50%;
  left: 0.625rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.nav-search input {
  width: 100%;
  height: 2.25rem;
  padding: 0 2.25rem 0 2.125rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
}

.nav-search input::placeholder {
  color: var(--text-subtle);
}

.nav-search input:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.nav-search-key {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: var(--bg-nav);
  color: var(--text-subtle);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.nav-search input:focus + .nav-search-key,
.nav-search input:not(:placeholder-shown) + .nav-search-key {
  display: none;
}

.nav-empty {
  margin: 0.5rem 1.5rem;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.nav-scroll {
  flex: 1;
  padding: 0.25rem 0.625rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.nav-group + .nav-group {
  margin-top: 0.75rem;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.375rem 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: var(--text);
  font: 600 0.8125rem/1.4 var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.nav-group-toggle:hover {
  background: var(--bg-hover);
}

.nav-group-toggle .icon-chevron {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--text-subtle);
}

.nav-group-toggle[aria-expanded="false"] .icon-chevron {
  transform: rotate(-90deg);
}

.nav-items {
  margin: 0.125rem 0 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.3rem 0.5rem;
  border-radius: 0.375rem;
  color: var(--text-muted);
  font-size: 0.84375rem;
  line-height: 1.45;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-link[aria-current] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.nav-link .method {
  min-width: 2.875rem;
  height: 1.125rem;
  font-size: 0.625rem;
}

.nav-path {
  min-width: 0;
  overflow: hidden;
  font: 0.78rem/1.45 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-foot {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.625rem 0.875rem;
  border-top: 1px solid var(--line);
}

.nav-foot-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: var(--text-muted);
  font: 500 0.8125rem/1.45 var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-foot-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-site-links {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.5rem 0.5rem 0;
  font-size: 0.8125rem;
}

.nav-scrim {
  display: none;
}

/* Rows: prose or endpoint on the left, code on the right ------------------------------------------ */

.docs-main {
  min-width: 0;
}

.docs-main:focus {
  outline: none;
}

.doc-row,
.endpoint {
  padding: 3.5rem var(--gutter);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--topbar-h) - 2.25rem);
}

.doc-text,
.endpoint-text {
  min-width: 0;
}

.doc-code,
.endpoint-code {
  min-width: 0;
}

.code-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-stack > * {
  flex: none;
}

.lede {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.prose-title {
  margin: 2rem 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.tag-group {
  scroll-margin-top: calc(var(--topbar-h) - 2.5rem);
}

.tag-head {
  padding: 4.5rem var(--gutter) 0.5rem;
}

.tag-head > p {
  color: var(--text-muted);
}

.tag-head h2 {
  font-size: 1.75rem;
}

.endpoint-title {
  margin: 0 0 0.625rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.endpoint-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.625rem;
  margin: 0 0 1.125rem;
}

.endpoint-line .endpoint-path {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}

.path-base {
  color: var(--text-subtle);
  font-weight: 400;
}

.path-param {
  color: var(--accent-strong);
}

.anchor {
  margin-left: 0.25rem;
  padding: 0 0.25rem;
  color: var(--text-subtle);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
}

h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
.anchor:focus-visible,
.anchor.is-copied {
  opacity: 1;
}

.anchor:hover {
  color: var(--accent-strong);
}

@media (hover: none) {
  .anchor {
    opacity: 0.5;
  }
}

.block-title {
  margin: 2.25rem 0 0;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Parameters and fields --------------------------------------------------------------------------- */

.params,
.fields {
  margin: 0;
  padding: 0;
  list-style: none;
}

.param,
.field {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.param dt,
.field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.625rem;
}

.param dt code,
.field-name {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.param-type {
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.param-in {
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.71875rem;
  font-weight: 500;
  line-height: 1.2;
}

.req {
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: var(--err-bg);
  color: var(--err-fg);
  font-size: 0.71875rem;
  font-weight: 600;
  line-height: 1.2;
}

.param dd {
  margin: 0.375rem 0 0;
  color: var(--text-muted);
  font-size: 0.90625rem;
}

.param dd p {
  margin: 0 0 0.375rem;
}

.param dd p:last-child {
  margin-bottom: 0;
}

.param-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.375rem;
}

.meta-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  max-width: 100%;
  margin-right: 0.75rem;
}

.meta-label {
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.chip-mono {
  padding: 0.05rem 0.375rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.field-desc {
  margin-top: 0.375rem;
  color: var(--text-muted);
  font-size: 0.90625rem;
}

.field-children {
  margin-top: 0.625rem;
}

.field-children > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.field-children > summary::-webkit-details-marker {
  display: none;
}

.field-children > summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 600;
}

.field-children[open] > summary::before {
  content: "\2212";
}

.field-children > summary:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.field-children .when-open,
.field-children[open] .when-closed {
  display: none;
}

.field-children[open] .when-open {
  display: inline;
}

.fields-nested {
  margin-top: 0.625rem;
  padding: 0 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fields-nested .field:last-child {
  border-bottom: 0;
}

/* Tables and callouts ----------------------------------------------------------------------------- */

.table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.data-table thead th:first-child {
  border-top-left-radius: var(--radius);
}

.data-table thead th:last-child {
  border-top-right-radius: var(--radius);
}

.data-table tbody th {
  font-weight: 600;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table td {
  color: var(--text-muted);
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-table tbody th {
  width: 6rem;
}

.callout {
  display: flex;
  gap: 0.625rem;
  margin: 1.25rem 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid;
  border-radius: var(--radius);
  font-size: 0.875rem;
  max-width: 68ch;
}

.callout p {
  margin: 0;
}

.callout-icon {
  margin-top: 0.2rem;
}

.callout-note {
  border-color: var(--note-border);
  background: var(--note-bg);
}

.callout-note .callout-icon {
  color: var(--accent-strong);
}

.callout-warning {
  border-color: var(--warn-border);
  background: var(--warn-bg);
}

.callout-warning .callout-icon {
  color: var(--warn-fg);
}

/* Code panels (always dark) ----------------------------------------------------------------------- */

.panel,
.try {
  --ok-fg: #3fb950;
  --ok-bg: rgb(63 185 80 / 0.14);
  --warn-fg: #d29922;
  --warn-bg: rgb(210 153 34 / 0.14);
  --err-fg: #f85149;
  --err-bg: rgb(248 81 73 / 0.14);
  --focus: var(--code-accent);

  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: 0.625rem;
  background: var(--code-bg);
  color: var(--code-fg);
  color-scheme: dark;
}

.panel ::selection,
.try ::selection {
  background: rgb(56 139 253 / 0.4);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.375rem 0.25rem 0.875rem;
  border-bottom: 1px solid var(--code-border);
  background: var(--code-head);
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  color: var(--code-fg);
  font-size: 0.78rem;
  font-weight: 600;
}

.panel-label .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--tk-key);
}

.panel-hint {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--code-muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-head > .icon-btn:last-child,
.panel-head > .btn:last-child {
  margin-left: auto;
}

.tabs {
  display: flex;
  gap: 0.125rem;
  min-width: 0;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: none;
  height: 1.75rem;
  padding: 0 0.625rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: var(--code-muted);
  font: 500 0.78rem/1 var(--font-sans);
  cursor: pointer;
}

.tab:hover {
  color: var(--code-fg);
}

.tab[aria-selected="true"] {
  background: #262c36;
  color: #f0f6fc;
  box-shadow: inset 0 0 0 1px var(--code-control);
}

.tab:focus-visible {
  outline-offset: -2px;
}

.tab .dot {
  width: 0.375rem;
  height: 0.375rem;
}

.icon-btn-dark {
  width: 1.875rem;
  height: 1.875rem;
  color: var(--code-muted);
}

.icon-btn-dark:hover {
  background: rgb(255 255 255 / 0.08);
  color: #f0f6fc;
}

.panel-body pre {
  margin: 0;
  padding: 0.875rem 1rem 1rem;
  overflow: auto;
  color: var(--code-fg);
  font-size: 0.78rem;
  line-height: 1.65;
  tab-size: 2;
}

/*
 * Code that runs past its panel shows a thin scrollbar that is always visible (overlay scrollbars
 * would hide it until the reader scrolls). Blink and WebKit draw it from ::-webkit-scrollbar, which
 * they ignore once scrollbar-width is set, so Firefox gets the standard properties on its own.
 */
.panel-body pre::-webkit-scrollbar,
.try-result pre::-webkit-scrollbar,
.code-stack::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

.panel-body pre::-webkit-scrollbar-thumb,
.try-result pre::-webkit-scrollbar-thumb {
  border: 2px solid var(--code-bg);
  border-radius: 999px;
  background: var(--code-control);
}

.code-stack::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--line-strong);
}

.panel-body pre::-webkit-scrollbar-track,
.try-result pre::-webkit-scrollbar-track,
.code-stack::-webkit-scrollbar-track,
.panel-body pre::-webkit-scrollbar-corner,
.try-result pre::-webkit-scrollbar-corner {
  background: transparent;
}

@supports not selector(::-webkit-scrollbar) {
  .panel-body pre,
  .try-result pre {
    scrollbar-width: thin;
    scrollbar-color: var(--code-control) transparent;
  }

  .code-stack {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
}

.panel-body pre code {
  font: inherit;
}

/*
 * html.js-pending is set by the inline head script and html.js by api-docs.js. Layout follows either,
 * so the page does not jump while the script loads; the controls that need it wait for html.js. If the
 * script never runs, js-pending is dropped on load and the no-script layout below takes over.
 */
html:is(.js, .js-pending)[data-lang="curl"] [data-lang-panel]:not([data-lang-panel="curl"]),
html:is(.js, .js-pending)[data-lang="javascript"] [data-lang-panel]:not([data-lang-panel="javascript"]),
html:is(.js, .js-pending)[data-lang="python"] [data-lang-panel]:not([data-lang-panel="python"]),
html:is(.js, .js-pending)[data-lang="php"] [data-lang-panel]:not([data-lang-panel="php"]),
html:is(.js, .js-pending) [data-status-panel]:not(.is-active) {
  display: none;
}

/* Without JavaScript every tab's content is shown in turn, each under its name. */
html:not(.js, .js-pending) .tabs {
  display: none;
}

html:not(.js, .js-pending) [data-lang-panel]::before,
html:not(.js, .js-pending) [data-status-panel]::before {
  content: attr(data-label);
  display: block;
  padding: 0.75rem 1rem 0;
  color: var(--code-muted);
  font: 600 0.75rem/1.4 var(--font-sans);
}

html:not(.js, .js-pending) [data-lang-panel] + [data-lang-panel],
html:not(.js, .js-pending) [data-status-panel] + [data-status-panel] {
  border-top: 1px solid var(--code-line);
}

.panel-note {
  max-width: none;
  margin: 0;
  padding: 0.75rem 1rem 0;
  color: var(--code-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.panel-note .status {
  margin-right: 0.375rem;
}

.json-block {
  position: relative;
}

html:is(.js, .js-pending) .json-block.is-long:not(.is-expanded) pre {
  max-height: 22rem;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.json-expand {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 0;
  border-top: 1px solid var(--code-line);
  background: var(--code-head);
  color: var(--code-accent);
  font: 600 0.78rem/1.4 var(--font-sans);
  cursor: pointer;
}

.json-expand:hover {
  background: #1c2129;
}

html:not(.js, .js-pending) .json-expand {
  display: none;
}

.headers-table {
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.5;
}

.headers-table caption {
  padding: 0.75rem 0 0.375rem;
  border-top: 1px solid var(--code-line);
  color: var(--code-muted);
  font-weight: 600;
  text-align: left;
}

.headers-table th,
.headers-table td {
  padding: 0.3rem 0;
  border-top: 1px solid var(--code-line);
  text-align: left;
  vertical-align: top;
}

.headers-table th {
  padding-right: 1rem;
  white-space: nowrap;
}

.headers-table th code {
  color: var(--tk-key);
  font-size: 0.75rem;
  font-weight: 500;
}

.headers-table td {
  color: #c9d1d9;
}

.headers-type {
  margin-right: 0.25rem;
  color: var(--code-muted);
  font-family: var(--font-mono);
}

/* Syntax colours. */
.tk-key,
.tk-prop,
.tk-hdr {
  color: var(--tk-key);
}

.tk-str {
  color: var(--tk-str);
}

.tk-num,
.tk-url {
  color: var(--tk-num);
}

.tk-bool,
.tk-flag {
  color: var(--tk-bool);
}

.tk-null {
  color: var(--tk-null);
}

.tk-kw {
  color: var(--tk-kw);
}

.tk-fn,
.tk-cmd {
  color: var(--tk-fn);
}

.tk-var,
.tk-cls {
  color: var(--tk-var);
}

.tk-punc {
  color: var(--tk-punc);
}

.tk-com,
.tk-cont {
  color: var(--tk-com);
  font-style: italic;
}

.tk-cmd {
  font-weight: 600;
}

/* Try it ------------------------------------------------------------------------------------------ */

html:not(.js) .try {
  display: none;
}

.try .panel-head {
  border-bottom: 0;
}

.btn-dark {
  border-color: var(--code-control);
  background: #21262d;
  color: var(--code-fg);
}

.btn-dark:hover {
  background: #292e36;
}

.try .btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.try .btn-primary:hover {
  background: #1d4ed8;
}

.try-body {
  padding: 0.875rem 1rem 1rem;
  border-top: 1px solid var(--code-border);
}

.try-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.625rem 0.75rem;
}

.try-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.try-name {
  color: var(--code-fg);
  font: 600 0.75rem/1.4 var(--font-mono);
}

.try-in {
  margin-left: 0.25rem;
  color: var(--code-muted);
  font: 400 0.6875rem/1.4 var(--font-sans);
}

.try-input {
  width: 100%;
  height: 2rem;
  padding: 0 0.625rem;
  border: 1px solid var(--code-control);
  border-radius: 0.375rem;
  background: var(--code-bg);
  color: var(--code-fg);
  font: 0.78rem/1 var(--font-mono);
}

.try-input::placeholder {
  color: #848d97;
}

.try-input:focus-visible {
  border-color: var(--code-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(56 139 253 / 0.3);
}

.try-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.try-fields:empty + .try-bar,
.try-body > .try-bar:first-child {
  margin-top: 0;
}

.try-url {
  flex: 1;
  min-width: 0;
  padding: 0.375rem 0.625rem;
  overflow-x: auto;
  border: 1px solid var(--code-border);
  border-radius: 0.375rem;
  background: var(--code-head);
  color: var(--tk-str);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
  scrollbar-width: none;
}

.spinner {
  display: none;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
}

.try-result {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--code-line);
}

.try-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.try-time {
  color: var(--code-muted);
  font: 0.75rem/1 var(--font-mono);
}

.try-message {
  max-width: none;
  margin: 0.625rem 0 0;
  color: #e3b341;
  font-size: 0.8125rem;
}

.try-headers {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.125rem 0.875rem;
  margin: 0.75rem 0;
  font: 0.75rem/1.5 var(--font-mono);
}

.try-headers:empty {
  display: none;
}

.try-headers dt {
  color: var(--tk-key);
}

.try-headers dd {
  margin: 0;
  color: #c9d1d9;
  overflow-wrap: anywhere;
}

.try-result pre {
  max-height: 24rem;
  margin: 0;
  padding: 0.75rem;
  overflow: auto;
  border: 1px solid var(--code-border);
  border-radius: 0.375rem;
  background: #010409;
  font-size: 0.75rem;
  line-height: 1.6;
}

/* Toast and footer -------------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 60;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  background: var(--toast-bg);
  color: var(--toast-fg);
  font-size: 0.84rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  box-shadow: 0 8px 24px -8px rgb(15 23 41 / 0.35);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: no-preference) {
  .toast {
    transition:
      opacity 0.15s ease,
      transform 0.15s ease;
  }
}

/* The shared site footer (public.partials.site-footer): the same rules as public-pages/site.css, over
   this page's theme tokens so it follows the light/dark toggle. */
.site-footer {
  --sf-bg: var(--bg-nav);
  --sf-line: var(--line);
  --sf-heading: var(--text);
  --sf-text: var(--text-muted);
  --sf-muted: var(--text-subtle);
  --sf-mark: var(--accent-hover);
  --sf-focus: var(--accent);
  margin-top: 3rem;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--sf-line);
  background: var(--sf-bg);
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer .site-wrap {
  max-width: 82rem;
}

.site-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 24px;
  padding: 40px 0 32px;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sf-heading);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-footer-brand:hover {
  color: var(--sf-heading);
}

.site-footer .site-brand-mark {
  width: 22px;
  height: 22px;
}

.site-footer .site-brand-mark rect {
  fill: var(--sf-mark);
}

.site-footer .site-brand-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-footer-about p {
  max-width: 20rem;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.site-footer h2 {
  margin: 2px 0 10px;
  padding: 0;
  border: 0;
  color: var(--sf-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer-col a {
  color: var(--sf-muted);
  text-decoration: none;
  transition: color 0.12s ease;
}

.site-footer-col a:hover {
  color: var(--sf-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--sf-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.site-footer-meta {
  padding: 14px 0;
  border-top: 1px solid var(--sf-line);
  font-size: 13px;
}

.site-footer-meta p {
  margin: 0;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--sf-line);
  font-size: 13px;
}

.site-footer-bottom p {
  margin: 0;
}

.site-footer-bottom p:first-child {
  color: var(--sf-text);
}

@media (min-width: 40rem) {
  .site-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 64rem) {
  .site-footer-top {
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    padding: 48px 0 40px;
  }
}

/* Nav beside the content (at least 960px) ---------------------------------------------------------- */

@media (min-width: 60rem) {
  .nav-toggle {
    display: none;
  }

  .docs-nav {
    position: fixed;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    width: var(--nav-w);
    border-right: 1px solid var(--line);
  }

  .docs-main {
    margin-left: var(--nav-w);
  }
}

/* Three panes: nav, prose, code (at least 1200px) ------------------------------------------------- */

@media (min-width: 75rem) {
  .doc-row,
  .endpoint {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--code-w);
    column-gap: 3rem;
    max-width: 82rem;
  }

  .tag-head {
    max-width: calc(82rem - var(--code-w) - 3rem);
  }

  .code-stack {
    position: sticky;
    top: calc(var(--topbar-h) + 1.5rem);
    max-height: calc(100vh - var(--topbar-h) - 3rem);
    margin-right: -0.75rem;
    padding-right: 0.75rem;
    overflow-y: auto;
  }

  /* Keep each answer short enough that Try it stays in reach beside it. */
  .endpoint-code .json-block:not(.is-long) pre {
    max-height: 26rem;
  }
}

/* Two panes (960 to 1199px): nav beside, code under each endpoint's text -------------------------- */

@media (max-width: 74.99rem) {
  .topbar-base {
    display: none;
  }

  .topbar-links {
    margin-left: auto;
  }

  .doc-row,
  .endpoint,
  .tag-head {
    max-width: 52rem;
    margin: 0 auto;
  }

  .doc-row,
  .endpoint {
    padding: 2.75rem 2rem;
    scroll-margin-top: calc(var(--topbar-h) - 1.5rem);
  }

  .tag-head {
    padding: 3.5rem 2rem 0.25rem;
  }

  .code-stack {
    margin-top: 1.5rem;
  }
}

/* One pane (under 960px): the nav becomes a drawer -------------------------------------------------- */

@media (max-width: 59.99rem) {
  html:is(.js, .js-pending) .docs-nav {
    position: fixed;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    z-index: 40;
    width: min(20rem, 86vw);
    border-right: 1px solid var(--line);
    visibility: hidden;
    transform: translateX(-100%);
  }

  .js.nav-open .docs-nav {
    visibility: visible;
    transform: none;
    box-shadow: 0 24px 48px -12px rgb(15 23 41 / 0.35);
  }

  .js.nav-open .nav-scrim {
    position: fixed;
    inset: var(--topbar-h) 0 0;
    z-index: 30;
    display: block;
    background: var(--scrim);
  }

  .js.nav-open body {
    overflow: hidden;
  }

  html:not(.js, .js-pending) .docs-nav {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 59.99rem) and (prefers-reduced-motion: no-preference) {
  .js .docs-nav {
    transition:
      transform 0.2s ease,
      visibility 0.2s;
  }
}

@media (max-width: 47.99rem) {
  .topbar {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .topbar-links,
  .topbar-release {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .topbar .brand-wordmark {
    height: 1.75rem;
  }

  .nav-site-links {
    display: flex;
  }

  .doc-row,
  .endpoint {
    padding: 2rem 1rem;
    scroll-margin-top: calc(var(--topbar-h) - 0.75rem);
  }

  .tag-head {
    padding: 2.75rem 1rem 0.25rem;
  }

  .site-footer {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.625rem;
  }

  .tag-head h2 {
    font-size: 1.5rem;
  }

  [data-lang-tabs] .panel-label,
  [data-status-tabs] .panel-label,
  .panel-hint {
    display: none;
  }

  .tabs {
    margin-left: 0;
  }

  .tab {
    padding: 0 0.5rem;
  }

  p code,
  dd code,
  td code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 32.5rem) {
  .topbar-divider,
  .topbar-title {
    display: none;
  }

  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .topbar-cta {
    padding: 0 0.75rem;
  }
}

/* Print: the reference without the page chrome ---------------------------------------------------- */

@media print {
  .topbar,
  .docs-nav,
  .nav-scrim,
  .try,
  .toast,
  .anchor,
  .skip-link,
  .button-row,
  .icon-btn,
  .tabs,
  .json-expand {
    display: none !important;
  }

  .docs-shell {
    padding-top: 0;
  }

  .docs-main {
    margin: 0;
  }

  .doc-row,
  .endpoint {
    display: block;
    padding: 1.5rem 0;
    break-inside: avoid-page;
  }

  .code-stack {
    position: static;
    max-height: none;
    margin-top: 1rem;
    overflow: visible;
  }

  .panel {
    border-color: #999999;
    background: #ffffff;
    color: #000000;
  }

  .panel-head {
    background: #f2f2f2;
  }

  .panel *,
  .panel-label {
    color: #000000 !important;
  }

  html:is(.js, .js-pending) [data-status-panel]:not(.is-active) {
    display: block;
  }

  html:is(.js, .js-pending) .json-block.is-long:not(.is-expanded) pre {
    max-height: none;
    mask-image: none;
  }
}

/* Embeds section: rows whose prose spans both columns (the option and plan tables), and group rows in the
   option table. */
.doc-row > .doc-text-wide {
  grid-column: 1 / -1;
}

.doc-text > .prose-title:first-child {
  margin-top: 0;
  font-size: 1.25rem;
}

.data-table .group-row th {
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.embed-options-table td:nth-child(2) code {
  white-space: nowrap;
}
