:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #fbfcfd;
  --soft: #f6f8fa;
  --hover: #edf4f5;
  --line: #e5eaf0;
  --line-strong: #ccd5dd;
  --ink: #182b40;
  --muted: #59697b;
  --subtle: #708a9c;
  --accent: #007f89;
  --accent-strong: #006e77;
  --accent-soft: #e5f3f3;
  --accent-line: #89bfc5;
  --on-accent: #fff;
  --focus: #0095a7;
  --code-bg: #f0f3f6;
  --code-ink: #36516b;
  --get-ink: #066ba6;
  --get-bg: #e2f0fb;
  --post-ink: #167445;
  --post-bg: #dff3e9;
  --put-ink: #956014;
  --put-bg: #fff0d3;
  --delete-ink: #b63d50;
  --delete-bg: #fde9ec;
  --callout-line: #2e9f9f;
  --callout-bg: #eff8f8;
  --callout-ink: #375866;
  --warn-line: #bf8529;
  --warn-bg: #fff8e9;
  --panel-from: #f0f8f8;
  --panel-to: #f8fbfc;
  --panel-line: #dbe9eb;
  --icon-teal-bg: #e3f4f0;
  --icon-teal-ink: #087c76;
  --icon-violet-bg: #f0eafe;
  --icon-violet-ink: #7657ad;
  --icon-blue-bg: #e9f1fe;
  --icon-blue-ink: #4478b3;
  --icon-amber-bg: #fff1df;
  --icon-amber-ink: #af7418;
  --mark: #d0eee9;
  --shadow: #142c4210;
  --shadow-strong: #15253e30;
  --backdrop: #13283f55;
  --header: 110px;
  --sidebar: 252px;
  --toc: 220px;
  /* Shared hierarchy: reading content > navigation > supporting labels. */
  --text-caption: 0.75rem;
  --text-secondary: 0.8125rem;
  --text-ui: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --heading-1: 2.25rem;
  --heading-2: 1.625rem;
  --heading-3: 1.25rem;
  --text-display: clamp(2.25rem, 3.5vw, 3.25rem);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
/* Dark theme: follows the OS unless the reader picked a theme (data-theme, set by the
   header toggle). The two blocks must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0d1520;
    --surface: #101a27;
    --soft: #152131;
    --hover: #17283a;
    --line: #223246;
    --line-strong: #2f425a;
    --ink: #e3eaf2;
    --muted: #9aabbd;
    --subtle: #7f92a6;
    --accent: #4fc3c9;
    --accent-strong: #7fd8dc;
    --accent-soft: #123137;
    --accent-line: #2f7f86;
    --on-accent: #062a2e;
    --focus: #5fc9cf;
    --code-bg: #1a2738;
    --code-ink: #c9d7e6;
    --get-ink: #7cc0f2;
    --get-bg: #11314a;
    --post-ink: #74d3a0;
    --post-bg: #10372a;
    --put-ink: #f1c16e;
    --put-bg: #3a2c12;
    --delete-ink: #f39aa8;
    --delete-bg: #3f1b23;
    --callout-line: #3fb3b3;
    --callout-bg: #10282c;
    --callout-ink: #c3dde2;
    --warn-line: #d6a14a;
    --warn-bg: #2f2512;
    --panel-from: #10262a;
    --panel-to: #101a27;
    --panel-line: #21424a;
    --icon-teal-bg: #11342f;
    --icon-teal-ink: #6fd3c1;
    --icon-violet-bg: #2a2140;
    --icon-violet-ink: #b9a2ef;
    --icon-blue-bg: #15294a;
    --icon-blue-ink: #8db6ec;
    --icon-amber-bg: #33270f;
    --icon-amber-ink: #e7b45f;
    --mark: #1d4a45;
    --shadow: #00000040;
    --shadow-strong: #00000080;
    --backdrop: #00000080;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0d1520;
  --surface: #101a27;
  --soft: #152131;
  --hover: #17283a;
  --line: #223246;
  --line-strong: #2f425a;
  --ink: #e3eaf2;
  --muted: #9aabbd;
  --subtle: #7f92a6;
  --accent: #4fc3c9;
  --accent-strong: #7fd8dc;
  --accent-soft: #123137;
  --accent-line: #2f7f86;
  --on-accent: #062a2e;
  --focus: #5fc9cf;
  --code-bg: #1a2738;
  --code-ink: #c9d7e6;
  --get-ink: #7cc0f2;
  --get-bg: #11314a;
  --post-ink: #74d3a0;
  --post-bg: #10372a;
  --put-ink: #f1c16e;
  --put-bg: #3a2c12;
  --delete-ink: #f39aa8;
  --delete-bg: #3f1b23;
  --callout-line: #3fb3b3;
  --callout-bg: #10282c;
  --callout-ink: #c3dde2;
  --warn-line: #d6a14a;
  --warn-bg: #2f2512;
  --panel-from: #10262a;
  --panel-to: #101a27;
  --panel-line: #21424a;
  --icon-teal-bg: #11342f;
  --icon-teal-ink: #6fd3c1;
  --icon-violet-bg: #2a2140;
  --icon-violet-ink: #b9a2ef;
  --icon-blue-bg: #15294a;
  --icon-blue-ink: #8db6ec;
  --icon-amber-bg: #33270f;
  --icon-amber-ink: #e7b45f;
  --mark: #1d4a45;
  --shadow: #00000040;
  --shadow-strong: #00000080;
  --backdrop: #00000080;
}
.logo-dark {
  display: none;
}
:root[data-theme='dark'] .logo-light {
  display: none;
}
:root[data-theme='dark'] .logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .logo-light {
    display: none;
  }
  :root:not([data-theme='light']) .logo-dark {
    display: block;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: calc(var(--header) + 24px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--bg);
  z-index: 200;
}
.skip-link:focus {
  top: 10px;
}
.header {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  position: fixed;
  inset: 0 0 auto;
  background: var(--bg);
  z-index: 40;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
}
.logo img {
  width: 112px;
  height: 40px;
  object-fit: contain;
}
.logo > span {
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.search-trigger {
  margin-left: 50px;
  max-width: 430px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  font-size: var(--text-ui);
}
.search-trigger > span:nth-child(2) {
  flex: 1;
}
.search-icon {
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  margin-right: 3px;
  flex-shrink: 0;
}
.search-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  right: -5px;
  bottom: -2px;
}
kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  padding: 0 5px;
  font-family: inherit;
  font-size: var(--text-caption);
  line-height: 1.8;
  color: var(--muted);
}
.dashboard-link {
  margin-left: auto;
  font-size: var(--text-secondary);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.dashboard-link span {
  margin-left: 8px;
  color: var(--accent);
}
.theme-toggle {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}
.top-nav {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  gap: 30px;
  padding: 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 35;
}
.top-nav a {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: var(--text-ui);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.top-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}
.layout {
  margin-top: var(--header);
}
.sidebar {
  position: fixed;
  top: var(--header);
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  padding: 24px 18px 22px 24px;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  z-index: 30;
}
.nav-home {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-secondary);
  margin: 0 0 24px 8px;
}
.nav-home span {
  font-size: 18px;
  line-height: 1.2;
}
.nav-section {
  margin-bottom: 23px;
}
.nav-section-title {
  font-size: var(--text-secondary);
  font-weight: 650;
  color: var(--ink);
  margin: 0 8px 7px;
}
.nav-item {
  display: block;
  padding: 6px 10px;
  color: var(--muted);
  font-size: var(--text-ui);
  border-radius: 5px;
  line-height: 1.5;
  flex: 1;
}
.nav-item:hover,
.nav-endpoint:hover {
  color: var(--accent);
  background: var(--hover);
  text-decoration: none;
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}
.nav-group-head {
  display: flex;
  align-items: center;
}
.nav-toggle {
  width: 24px;
  height: 27px;
  border: 0;
  color: var(--subtle);
  background: transparent;
}
.nav-toggle::before {
  content: '›';
  display: inline-block;
  font-size: 18px;
}
.nav-group.open .nav-toggle::before {
  transform: rotate(90deg);
}
.nav-children {
  display: none;
  padding: 5px 0 5px 9px;
  margin-left: 10px;
  border-left: 1px solid var(--line);
}
.nav-group.open .nav-children {
  display: block;
}
.nav-endpoint {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 3px;
  color: var(--muted);
  font-size: var(--text-secondary);
  line-height: 1.5;
  border-radius: 3px;
}
.nav-endpoint .method {
  font-size: 11px;
}
.nav-endpoint.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.sidebar-footer {
  margin: 30px 8px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-caption);
}
.sidebar-footer > span:last-child {
  margin-left: auto;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.content {
  margin-left: var(--sidebar);
  margin-right: var(--toc);
  padding: 36px 48px 24px;
  min-width: 0;
  max-width: 1100px;
}
.breadcrumb {
  font-size: var(--text-secondary);
  display: flex;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 23px;
}
.breadcrumb a {
  color: var(--muted);
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.3;
  font-weight: 650;
}
h1 {
  font-size: var(--heading-1);
  letter-spacing: -1.2px;
  margin: 0 0 20px;
}
h2 {
  font-size: var(--heading-2);
  letter-spacing: -0.5px;
  margin: 40px 0 18px;
}
h3 {
  font-size: var(--heading-3);
  margin: 28px 0 14px;
}
h4 {
  font-size: var(--text-body);
  margin-top: 24px;
}
p {
  margin: 14px 0;
}
article > h1 + p {
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.75;
  margin-bottom: 28px;
}
article ul,
article ol {
  padding-left: 22px;
}
article li {
  margin: 7px 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.heading-anchor {
  margin-left: 8px;
  color: var(--subtle);
  opacity: 0;
  font-size: 0.7em;
}
:is(h1, h2, h3, h4):hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}
code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 4px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
}
.code-block {
  margin: 22px 0;
  border-radius: 9px;
  overflow: hidden;
  background: #122238;
  color: #d5e5f5;
  border: 1px solid #23384f;
}
.code-header {
  padding: 9px 16px;
  color: #b9cadd;
  background: #1c2e45;
  border-bottom: 1px solid #2b3e55;
  font:
    var(--text-caption)/1.8 Consolas,
    monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
pre {
  position: relative;
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-size: var(--text-secondary);
  line-height: 1.8;
  tab-size: 2;
}
pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}
.copy-button {
  border: 1px solid #53667c;
  border-radius: 4px;
  padding: 2px 8px;
  background: transparent;
  color: #d7e4f0;
  font-size: var(--text-caption);
}
.copy-button:hover {
  background: #30465e;
}
.endpoint-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}
.endpoint-bar code {
  background: none;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.endpoint-bar .copy-button {
  border-color: var(--line-strong);
  color: var(--muted);
}
.endpoint-bar .copy-button:hover {
  background: var(--hover);
}
.method {
  font:
    600 10px/1.6 Consolas,
    monospace;
  display: inline-block;
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
}
.method-get {
  color: var(--get-ink);
  background: var(--get-bg);
}
.method-post {
  color: var(--post-ink);
  background: var(--post-bg);
}
.method-put,
.method-patch {
  color: var(--put-ink);
  background: var(--put-bg);
}
.method-delete {
  color: var(--delete-ink);
  background: var(--delete-bg);
}
.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-ui);
  text-align: left;
}
th {
  background: var(--soft);
  font-weight: 600;
}
th,
td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
blockquote,
.alert {
  border-left: 3px solid var(--callout-line);
  margin: 24px 0;
  padding: 2px 20px;
  background: var(--callout-bg);
  color: var(--callout-ink);
  border-radius: 0 6px 6px 0;
}
.alert-warning {
  border-color: var(--warn-line);
  background: var(--warn-bg);
}
/* WooCommerce plugin downloads (generated from woocommerce-releases.json). */
.download-version {
  margin-bottom: 4px;
}
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0 12px;
}
.download-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.download-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 3px 12px var(--shadow);
  text-decoration: none;
}
.download-card-label {
  font-weight: 650;
}
.download-card-label::after {
  content: ' ↓';
  color: var(--accent);
}
.download-card code {
  align-self: flex-start;
}
.download-card-meta,
.download-card-blurb {
  color: var(--muted);
  font-size: var(--text-secondary);
}
.download-previous {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 16px;
}
.download-previous summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}
.download-previous .table-scroll {
  margin: 8px 0;
}
.download-previous td small {
  color: var(--muted);
  white-space: nowrap;
}
.toc {
  width: var(--toc);
  position: fixed;
  top: calc(var(--header) + 38px);
  bottom: 24px;
  right: 0;
  padding: 0 24px 0 18px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc-title {
  font-size: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}
.toc-item {
  display: block;
  font-size: var(--text-secondary);
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding: 5px 0 5px 14px;
  line-height: 1.55;
}
.toc-depth-3 {
  padding-left: 23px;
}
.toc-item.active {
  color: var(--accent);
  border-color: var(--accent);
}
.toc-help {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 10px;
  font-size: var(--text-caption);
}
.toc-help p {
  font-weight: 600;
}
.toc-help a {
  display: block;
  margin: 10px 0;
}
.pagination {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.pagination a {
  font-size: var(--text-ui);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 18px;
  width: 50%;
}
.pagination small {
  display: block;
  color: var(--muted);
  font-size: var(--text-caption);
  margin-bottom: 5px;
}
.pagination a:last-child {
  text-align: right;
  margin-left: auto;
}
.page-footer {
  padding-top: 35px;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-caption);
  color: var(--muted);
}
.page-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.home .content {
  margin-right: 0;
  max-width: 1370px;
  padding: 48px 60px 30px;
}
.home .toc {
  display: none;
}
.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-caption);
  font-weight: 650;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 20px;
}
.home h1 {
  font-size: var(--text-display);
  letter-spacing: -1.8px;
  font-weight: 640;
  line-height: 1.15;
  margin-bottom: 20px;
}
.home h1 span {
  color: var(--accent);
}
.home .home-lead {
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.7;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 25px 0 42px;
  font-size: var(--text-ui);
  font-weight: 600;
}
.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 9px 16px;
  display: inline-flex;
  gap: 30px;
}
.button-primary:hover {
  background: var(--accent-strong);
  text-decoration: none;
}
.text-link {
  font-weight: 600;
  font-size: var(--text-ui);
}
.start-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 40px;
  background: linear-gradient(115deg, var(--panel-from), var(--panel-to));
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 27px 30px;
}
.eyebrow {
  color: var(--accent);
  font-size: var(--text-caption);
  font-weight: 650;
  letter-spacing: 1.4px;
}
.start-panel h2 {
  margin: 10px 0;
  font-size: var(--heading-2);
}
.start-panel p {
  color: var(--muted);
  font-size: var(--text-ui);
  max-width: 280px;
  margin: 12px 0 16px;
}
.start-panel .start-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.start-steps li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid var(--panel-line);
}
.start-steps li:last-child {
  border: 0;
}
.start-steps li > span:first-child {
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  padding: 3px 7px;
  color: var(--accent);
  font:
    var(--text-caption)/1.8 Consolas,
    monospace;
  background: var(--bg);
}
.start-steps a {
  flex: 1;
  color: var(--ink);
}
.start-steps strong {
  display: block;
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
}
.start-steps small {
  color: var(--muted);
  font-size: var(--text-secondary);
  display: block;
  margin-top: 6px;
}
.start-steps li > span:last-child {
  color: var(--accent);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 18px;
}
.section-heading h2 {
  margin: 0;
  font-size: var(--heading-2);
}
.section-heading > span {
  color: var(--muted);
  font-size: var(--text-caption);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 3px 12px var(--shadow);
  text-decoration: none;
}
.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--icon-teal-bg);
  color: var(--icon-teal-ink);
  font:
    22px/1 Consolas,
    monospace;
}
.product-icon.violet {
  background: var(--icon-violet-bg);
  color: var(--icon-violet-ink);
  font-size: 18px;
}
.product-icon.blue {
  background: var(--icon-blue-bg);
  color: var(--icon-blue-ink);
}
.product-icon.amber {
  background: var(--icon-amber-bg);
  color: var(--icon-amber-ink);
}
.product-card h3 {
  font-size: var(--text-body);
  margin: 18px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.product-card h3 > span {
  font-size: var(--text-ui);
  color: var(--subtle);
}
.product-card p {
  color: var(--muted);
  font-size: var(--text-ui);
  line-height: 1.65;
  margin: 0 0 20px;
}
.card-meta {
  font-size: var(--text-caption);
  color: var(--subtle);
  margin-top: auto;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.resource-grid strong {
  display: block;
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
}
.resource-grid span {
  display: block;
  font-size: var(--text-secondary);
  color: var(--muted);
  margin-top: 6px;
}
.start-steps a:hover,
.start-steps a:focus-visible,
.resource-grid a:hover,
.resource-grid a:focus-visible {
  text-decoration: none;
}
.start-steps a:hover strong,
.start-steps a:focus-visible strong,
.resource-grid a:hover strong,
.resource-grid a:focus-visible strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.search-dialog {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  width: min(660px, calc(100% - 32px));
  margin: 14vh auto auto;
  color: var(--ink);
  background: var(--bg);
  box-shadow: 0 24px 100px var(--shadow-strong);
}
.search-dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(3px);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.search-field input {
  font-size: var(--text-body);
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  color: var(--ink);
}
.search-field input:focus-visible {
  outline-offset: 8px;
}
/* Esc already closes the dialog; the browser's own clear button would be a second "×". */
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.search-field button {
  border: 0;
  background: none;
}
.search-results {
  max-height: 52vh;
  overflow-y: auto;
  padding: 6px;
}
.search-status {
  color: var(--muted);
  font-size: var(--text-caption);
  padding: 9px 18px 3px;
}
.search-result {
  display: block;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
}
.search-result.selected {
  background: var(--accent-soft);
}
.search-result:hover {
  text-decoration: none;
  background: var(--soft);
}
.search-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-ui);
  font-weight: 600;
}
.search-result-path {
  font:
    var(--text-caption)/1.8 Consolas,
    monospace;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.search-result-meta {
  font-size: var(--text-secondary);
  color: var(--muted);
}
mark {
  color: inherit;
  background: var(--mark);
}
.search-footer {
  display: flex;
  gap: 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-caption);
}
.search-footer > span:last-child {
  margin-left: auto;
}
.menu-button,
.drawer-backdrop {
  display: none;
}
.hljs-string,
.hljs-attr {
  color: #93dbca;
}
.hljs-keyword,
.hljs-literal {
  color: #c0a8f1;
}
.hljs-number {
  color: #efc38a;
}
.hljs-comment {
  color: #95a8bd;
}
.hljs-built_in,
.hljs-title,
.hljs-name {
  color: #8bc7f5;
}
.hljs-variable,
.hljs-template-variable {
  color: #edb7bc;
}
.code-label {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.code-title {
  color: #e3edf7;
  font: 600 var(--text-secondary) / 1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* API reference: endpoint sections side by side with their code samples on wide screens.
   The sidebar already lists every endpoint, so the page TOC gives way to the second column. */
@media (min-width: 1400px) {
  .reference-page .toc {
    display: none;
  }
  .reference-page .content {
    margin-right: 0;
    max-width: 1440px;
  }
  .reference-page article > :is(p, ul, ol, blockquote) {
    max-width: 760px;
  }
  .endpoint-section.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
  }
  .endpoint-section.split .endpoint-examples {
    padding-top: 40px;
  }
  .endpoint-examples > :first-child {
    margin-top: 18px;
  }
}
/* In one column a sample sits right under its heading, so its label would repeat it. */
.endpoint-section:not(.split) .code-title {
  display: none;
}
/* Cells size to their longest identifier instead of breaking it mid-word; the table scrolls. */
td code,
th code {
  overflow-wrap: normal;
}
.code-group .code-header {
  padding-block: 0;
  gap: 12px;
}
.code-tabs {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-tab {
  flex: none;
  padding: 10px 12px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #9fb3c8;
  font: 600 var(--text-secondary) / 1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
}
.code-tab:hover {
  color: #e3edf7;
}
.code-tab[aria-selected='true'] {
  color: #fff;
  border-bottom-color: #5fc9cf;
}
.code-tab:focus-visible {
  outline: 2px solid #5fc9cf;
  outline-offset: -2px;
}
.code-group .copy-button {
  flex: none;
}
@media (min-width: 1800px) {
  .content {
    margin-left: calc(var(--sidebar) + (100vw - 1800px) / 2);
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 232px;
    --toc: 190px;
  }
  .content {
    padding: 32px;
  }
  .home .content {
    padding: 40px 32px 24px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-trigger {
    margin-left: 15px;
  }
}
@media (max-width: 1050px) {
  .toc {
    display: none;
  }
  .content {
    margin-right: 0;
  }
  .start-panel {
    gap: 24px;
    padding: 22px;
  }
}
@media (max-width: 760px) {
  :root {
    --header: 104px;
    --heading-1: 1.875rem;
    --heading-2: 1.5rem;
    --heading-3: 1.125rem;
    --text-display: 2.25rem;
  }
  .header {
    height: 60px;
    padding: 0 16px;
    gap: 14px;
  }
  .logo {
    gap: 8px;
  }
  .logo img {
    width: 87px;
    height: 34px;
  }
  .logo > span {
    font-size: 15px;
    padding-left: 9px;
  }
  .menu-button {
    display: block;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 3px;
    font-size: 19px;
  }
  .dashboard-link {
    display: none;
  }
  .search-trigger {
    margin-left: auto;
    flex: initial;
    padding: 9px;
    background: var(--bg);
    border: 0;
  }
  .search-trigger > span:nth-child(2),
  .search-trigger kbd {
    display: none;
  }
  .top-nav {
    top: 60px;
    padding: 0 18px;
    gap: 26px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .sidebar {
    visibility: hidden;
    transform: translateX(-100%);
    width: min(310px, 85vw);
  }
  .sidebar.open {
    visibility: visible;
    transform: translateX(0);
  }
  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: var(--header) 0 0;
    background: var(--backdrop);
    border: 0;
    z-index: 29;
  }
  body.drawer-open {
    overflow: hidden;
  }
  .content,
  .home .content {
    margin: 0;
    padding: 30px 22px 22px;
  }
  .home-eyebrow {
    letter-spacing: 1.2px;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    margin-bottom: 30px;
    gap: 22px;
  }
  .start-panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .start-panel p {
    max-width: none;
  }
  .section-heading > span {
    display: none;
  }
  .product-card {
    padding: 18px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-footer {
    flex-direction: column;
  }
  .search-footer > span:last-child {
    display: none;
  }
  .search-dialog {
    margin-top: 8vh;
  }
  pre {
    padding: 16px;
  }
}
@media (max-width: 460px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  :root {
    --text-display: 2.125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .header,
  .top-nav,
  .sidebar,
  .toc,
  .pagination,
  .copy-button {
    display: none;
  }
  .content,
  .home .content,
  .layout {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .code-block {
    color: #111;
    background: #fff;
  }
  pre {
    white-space: pre-wrap;
  }
}
