:root {
  --docs-blue-950: #020529;
  --docs-blue-900: #010a5e;
  --docs-blue-800: #00189e;
  --docs-blue-700: #002bd6;
  --docs-blue-600: #0155e9;
  --docs-cart-blue: #00a2ff;
  --docs-lime: #a9f238;
  --docs-white: #eef2f4;
  --docs-text: #eaf0f7;
  --docs-text-soft: #aebddd;
  --docs-text-muted: #788db5;
  --docs-line: rgba(92, 129, 199, 0.18);
  --docs-line-strong: rgba(0, 162, 255, 0.34);
  --docs-surface: rgba(8, 21, 60, 0.72);
  --docs-surface-strong: rgba(11, 31, 82, 0.82);
  /* 0.1.9-R6-R26 — lower detail-card eyebrows reuse the documentation page navy token only. */
  /* 0.1.9-R6-R25 — documentation header text + inactive sidebar item white contrast only. */
  /* 0.1.9-R6-R24 — supporting documentation copy white contrast adjustment only. */
  /* 0.1.9-R6-R23 — documentation primary headings match the approved active-state lime token. */
  /* 0.1.9-R6-R22 — lower detailed cards aligned to the approved blue family, one tier darker than the primary grid. */
  /* 0.1.9-R6-R21 — stronger lime surface softening; active state remains emphatic. */
  /* 0.1.9-R6-R20 — lime surface softening; active state remains emphatic. */
  /* 0.1.9-R6-R19 — lime surface fill on documentation sidebar/search only. */
  /* 0.1.9-R6-R18 — lime accent refinement on documentation navigation/search only. */
  /* 0.1.9-R6-R17 — stronger surface hierarchy within the approved documentation palette. */
  --docs-page-top: #0a1a35;
  --docs-page-mid: #08182f;
  --docs-page-bottom: #07152b;
  --docs-card-blue-top: rgba(8, 126, 211, 0.78);
  --docs-card-blue-bottom: rgba(3, 93, 176, 0.76);
  --docs-header-height: 76px;
  --header-height: 76px;
  --container: 1180px;
  --color-primary: #0155e9;
  --color-accent: #a9f238;
  --color-text: #eef2f4;
  --color-text-soft: #b8c8e8;
  --color-line: rgba(1, 85, 233, 0.26);
  --shadow-focus: 0 0 0 4px rgba(1, 85, 233, 0.30);
  --docs-sidebar: 272px;
  --docs-radius-lg: 22px;
  --docs-radius-md: 16px;
  --docs-max: 1240px;
  --docs-reading: 860px;
}

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

html {
  scroll-behavior: smooth;
  background: #01020a;
  scroll-padding-top: 92px;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--docs-text);
  background:
    radial-gradient(circle at 8% 24%, rgba(0, 170, 255, 0.10), transparent 30rem),
    radial-gradient(circle at 92% 68%, rgba(0, 120, 255, 0.075), transparent 32rem),
    linear-gradient(180deg, var(--docs-page-top) 0%, var(--docs-page-mid) 48%, var(--docs-page-bottom) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 0.1.9-R6-R16 — sparse, fixed connection field borrowed from the approved
   FAQ visual language. It stays at the page edges and never intercepts input. */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: var(--docs-header-height) 0 0;
  pointer-events: none;
  background: url("../images/faq-network.svg") center / cover no-repeat;
  opacity: 0.34;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--docs-cart-blue);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(0, 162, 255, 0.16);
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 0.1.9-R6-R47 — Documentation global header: Home parity.
   These rules intentionally mirror the approved Home header while remaining
   scoped to the documentation stylesheet so the frozen Home is untouched. */
.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(1, 85, 233, 0.19);
  background:
    linear-gradient(90deg, rgba(2, 5, 41, 0.92), rgba(1, 10, 94, 0.83) 50%, rgba(2, 5, 41, 0.92));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 43, 214, 0.5), rgba(1, 85, 233, 0.72), rgba(0, 43, 214, 0.5), transparent);
  opacity: 0.56;
}

.site-header.is-scrolled {
  border-color: rgba(1, 85, 233, 0.28);
  background: rgba(2, 5, 41, 0.95);
  box-shadow: 0 12px 36px rgba(0, 3, 36, 0.34);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 275px;
  height: 76px;
  max-height: 76px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 14px rgba(1, 85, 233, 0.18));
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.desktop-nav a,
.account-link {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.desktop-nav a:hover,
.account-link:hover {
  color: var(--color-text);
  text-shadow: 0 0 18px rgba(1, 85, 233, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 21px;
  font-weight: 780;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.91rem;
}

.button-primary {
  color: #061638;
  background: linear-gradient(180deg, #c3ff59 0%, var(--color-accent) 100%);
  box-shadow: 0 10px 30px rgba(139, 217, 32, 0.18), 0 0 0 1px rgba(169, 242, 56, 0.12);
}

.button-primary:hover {
  background: linear-gradient(180deg, #d0ff72 0%, #aef43f 100%);
  box-shadow: 0 13px 36px rgba(139, 217, 32, 0.25), 0 0 28px rgba(169, 242, 56, 0.08);
}

.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 13px;
  color: var(--color-text);
  background: rgba(0, 24, 158, 0.34);
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-line);
  background: rgba(2, 5, 41, 0.985);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-inner {
  padding-block: 14px 22px;
  display: grid;
  gap: 4px;
}

.mobile-menu-inner > a:not(.button) {
  padding: 13px 4px;
  color: var(--color-text-soft);
  font-weight: 650;
}

.mobile-menu-inner .button {
  margin-top: 8px;
}

.docs-shell {
  width: min(calc(100% - 48px), var(--docs-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--docs-sidebar) minmax(0, 1fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  z-index: 1;
  top: calc(var(--docs-header-height) + 26px);
  align-self: start;
  min-width: 0;
  margin-block: 30px 64px;
  padding: 18px 14px 20px;
  border: 1px solid rgba(169, 242, 56, 0.28);
  border-radius: var(--docs-radius-md);
  background:
    linear-gradient(180deg, rgba(198, 255, 99, 0.08) 0%, rgba(169, 242, 56, 0.055) 100%),
    #091427;
  box-shadow: 0 0 0 1px rgba(169, 242, 56, 0.04), 0 18px 50px rgba(0, 2, 20, 0.18);
}

.docs-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px 13px;
  border-bottom: 1px solid rgba(92, 129, 199, 0.13);
}

.docs-sidebar__label {
  color: #c9ff74;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-nav {
  display: grid;
  gap: 3px;
  padding-top: 12px;
}

.docs-nav a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 630;
  line-height: 1.35;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.docs-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 99px;
  background: var(--docs-lime);
  box-shadow: 0 0 12px rgba(169, 242, 56, 0.14);
  opacity: 0;
  transform: scaleY(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.docs-nav a:hover {
  color: #eef7e2;
  background: rgba(169, 242, 56, 0.045);
}

.docs-nav a.is-active {
  color: #071834;
  background: linear-gradient(180deg, #c6ff63 0%, var(--docs-lime) 100%);
  box-shadow: 0 8px 20px rgba(139, 217, 32, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.20);
}

.docs-nav a.is-active::before {
  background: #071834;
  box-shadow: none;
  opacity: 0.72;
  transform: scaleY(1);
}

.docs-nav-close,
.docs-nav-toggle {
  border: 0;
  color: var(--docs-text);
  background: transparent;
  cursor: pointer;
}

.docs-nav-close {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid rgba(92, 129, 199, 0.18);
  border-radius: 10px;
}

.docs-nav-close svg,
.docs-nav-toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.docs-nav-toggle {
  display: none;
}

.docs-nav-backdrop {
  display: none;
}

.docs-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  max-width: var(--docs-reading);
  padding-block: 72px 96px;
}

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

.docs-intro {
  max-width: 760px;
}

.docs-eyebrow,
.docs-section-kicker {
  display: inline-block;
  color: var(--docs-cart-blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-intro h1 {
  max-width: 720px;
  margin: 13px 0 16px;
  color: var(--docs-lime);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.docs-intro p {
  max-width: 680px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1rem, 1.7vw, 1.08rem);
  line-height: 1.72;
}

.docs-search-wrap {
  max-width: 100%;
  margin-top: 34px;
}

.docs-search {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(169, 242, 56, 0.44);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(198, 255, 99, 0.07) 0%, rgba(169, 242, 56, 0.045) 100%),
    #0a1830;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 36px rgba(0, 3, 26, 0.18);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.docs-search:focus-within {
  border-color: rgba(198, 255, 99, 0.82);
  background:
    linear-gradient(180deg, rgba(198, 255, 99, 0.25) 0%, rgba(169, 242, 56, 0.15) 100%),
    #0a1830;
  box-shadow: 0 0 0 3px rgba(169, 242, 56, 0.12), 0 16px 40px rgba(0, 3, 26, 0.22);
}

.docs-search__icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #b9f45f;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.docs-search input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  color: var(--docs-text);
  background: transparent;
  font-size: 0.98rem;
}

.docs-search input::placeholder {
  color: #ffffff;
}

.docs-search input:focus-visible {
  box-shadow: none;
}

.docs-search-hint,
.docs-search-empty {
  margin: 10px 2px 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.docs-search-hint {
  color: #ffffff;
}

.docs-search-empty {
  color: #d6e4f7;
}

.docs-explore-heading {
  margin-top: 74px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.docs-explore-heading h2 {
  margin: 9px 0 0;
  color: var(--docs-lime);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
}

.docs-explore-heading > p {
  max-width: 310px;
  margin: 0 0 2px;
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: right;
}

.docs-category-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.docs-category-card {
  min-width: 0;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid rgba(0, 162, 255, 0.40);
  border-radius: var(--docs-radius-md);
  background: linear-gradient(180deg, var(--docs-card-blue-top), var(--docs-card-blue-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 14px 38px rgba(0, 2, 20, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.docs-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 190, 255, 0.58);
  background: linear-gradient(180deg, rgba(10, 135, 219, 0.82), rgba(4, 101, 187, 0.80));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 42px rgba(0, 2, 24, 0.16);
}

.docs-category-card__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 217, 255, 0.38);
  border-radius: 11px;
  color: #b8eaff;
  background: rgba(2, 37, 82, 0.28);
}

.docs-category-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-category-card h3 {
  margin: 13px 0 7px;
  color: #f5f9ff;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.docs-category-card p {
  margin: 0;
  color: #d6e6fa;
  font-size: 0.84rem;
  line-height: 1.6;
}

.docs-category-card ul {
  margin: auto 0 0;
  padding: 11px 0 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: #bcd4f1;
  font-size: 0.76rem;
  line-height: 1.45;
}

.docs-category-card li {
  position: relative;
  padding-left: 13px;
}

.docs-category-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(169, 242, 56, 0.7);
}

.docs-summary {
  margin-top: 78px;
  display: grid;
  gap: 18px;
}

.docs-topic-section {
  scroll-margin-top: 94px;
  padding: 30px 32px;
  border: 1px solid rgba(79, 190, 255, 0.30);
  border-radius: var(--docs-radius-lg);
  background: linear-gradient(180deg, #145d93 0%, #104d7d 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.docs-topic-section:hover {
  border-color: rgba(105, 202, 255, 0.42);
  background: linear-gradient(180deg, #176aa5 0%, #12598e 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* R6-R26: only the nine lower detail-card eyebrows change color.
   Reuse the existing darkest page-background token; upper DOCUMENTAÇÃO / VISÃO GERAL labels stay cyan. */
.docs-topic-section .docs-section-kicker {
  color: var(--docs-page-bottom);
}

.docs-topic-section h2 {
  margin: 9px 0 11px;
  color: #edf3f9;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.docs-topic-section p {
  max-width: 720px;
  margin: 0;
  color: #d4e3f4;
  font-size: 0.91rem;
  line-height: 1.7;
}

.docs-topic-section ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-topic-section li {
  padding: 7px 10px;
  border: 1px solid rgba(112, 197, 246, 0.28);
  border-radius: 999px;
  color: #d1e2f5;
  background: #0d3f69;
  font-size: 0.74rem;
  font-weight: 620;
  line-height: 1.2;
}

.docs-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(92, 129, 199, 0.14);
  background: #010108;
}

.docs-footer__inner {
  width: min(calc(100% - 48px), var(--docs-max));
  min-height: 86px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #7185aa;
  font-size: 0.78rem;
}

.docs-footer__inner p {
  margin: 0;
}

.docs-footer__inner a {
  color: #95a8cc;
  font-weight: 650;
  transition: color 160ms ease;
}

.docs-footer__inner a:hover {
  color: var(--docs-white);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .brand-logo {
    width: 225px;
    height: 73px;
    max-height: 73px;
  }

  .desktop-nav {
    gap: 16px;
  }

  .desktop-nav a,
  .account-link {
    font-size: 0.85rem;
  }

  .header-inner {
    gap: 17px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
    --docs-header-height: 70px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .brand-logo {
    width: 225px;
    height: 70px;
    max-height: 70px;
  }

  .desktop-nav,
  .header-actions > .account-link,
  .header-actions > .button {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .mobile-menu-toggle {
    display: grid;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-logo {
    width: 185px;
    height: auto;
    max-height: 60px;
  }
}

@media (max-width: 1100px) {
  .docs-shell {
    gap: 38px;
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .docs-sidebar {
    padding-inline: 10px;
  }

  .docs-category-card {
    padding: 18px;
  }
}

@media (max-width: 980px) {
  body::before {
    opacity: 0.24;
    background-size: auto 100%;
  }

  html {
    scroll-padding-top: 84px;
  }

  .docs-shell,
  .docs-footer__inner {
    width: min(calc(100% - 40px), var(--docs-max));
  }

  .docs-shell {
    display: block;
  }

  .docs-nav-toggle {
    width: 100%;
    min-height: 46px;
    margin-top: 22px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid rgba(169, 242, 56, 0.24);
    border-radius: 12px;
    color: #e8f2dc;
    background: rgba(7, 20, 57, 0.72);
    font-size: 0.86rem;
    font-weight: 700;
  }

  .docs-nav-toggle svg {
    width: 19px;
    height: 19px;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-sidebar.is-open {
    position: fixed;
    z-index: 110;
    inset: 18px auto 18px 18px;
    top: 18px;
    width: min(340px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    margin: 0;
    display: block;
    overflow-y: auto;
    border-color: rgba(169, 242, 56, 0.28);
    background:
      linear-gradient(180deg, rgba(198, 255, 99, 0.08) 0%, rgba(169, 242, 56, 0.055) 100%),
      #091427;
    box-shadow: 20px 0 70px rgba(0, 2, 16, 0.5);
  }

  .docs-sidebar.is-open .docs-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .docs-nav-backdrop.is-open {
    position: fixed;
    z-index: 105;
    inset: 0;
    display: block;
    background: rgba(0, 2, 14, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .docs-content {
    max-width: 100%;
    padding-block: 46px 84px;
  }

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

  .docs-category-card {
    min-height: 210px;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 4% 22%, rgba(0, 170, 255, 0.068), transparent 22rem),
      radial-gradient(circle at 96% 76%, rgba(0, 120, 255, 0.050), transparent 24rem),
      linear-gradient(180deg, var(--docs-page-top) 0%, var(--docs-page-mid) 48%, var(--docs-page-bottom) 100%);
  }

  body::before {
    opacity: 0.15;
    background-size: auto 82%;
  }

  .docs-shell,
  .docs-footer__inner {
    width: min(calc(100% - 32px), var(--docs-max));
  }


  .docs-content {
    padding-block: 38px 72px;
  }

  .docs-intro h1 {
    margin-top: 11px;
    font-size: clamp(2.15rem, 12vw, 3.1rem);
  }

  .docs-search-wrap {
    margin-top: 28px;
  }

  .docs-search {
    min-height: 54px;
    padding-inline: 15px;
  }

  .docs-search input {
    height: 52px;
    font-size: 0.93rem;
  }

  .docs-explore-heading {
    margin-top: 58px;
    display: block;
  }

  .docs-explore-heading > p {
    max-width: 100%;
    margin-top: 9px;
    text-align: left;
  }

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

  .docs-category-card {
    min-height: 0;
  }

  .docs-category-card ul {
    margin-top: 20px;
  }

  .docs-summary {
    margin-top: 60px;
  }

  .docs-topic-section {
    padding: 24px 22px;
    border-radius: 18px;
  }

  .docs-topic-section ul {
    gap: 7px;
  }

  .docs-footer__inner {
    min-height: 112px;
    padding-block: 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* Phase 0.1.9-R6-R48 — Documentation header menu white text parity.
   Scope: documentation header only. Matches the menu-link contrast used on the Home header. */
#site-header .desktop-nav > a,
#site-header .header-actions > .account-link,
#site-header .mobile-menu-inner > a:not(.button) {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}


/* Phase 0.1.9-R6-R52 — Documentation overview clearly rectangular cards.
   Scope: the nine overview cards only. Keep colors/content/order unchanged,
   but use two columns on tablet/desktop so each card is visibly wider than tall. */
@media (min-width: 641px) {
  .docs-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-category-card {
    min-height: 0;
  }
}


/* Phase 0.1.9-R6-R53 — Documentation overview single-row ultra-compact cards.
   Scope: the nine overview cards only. One card per row, with the lowest
   practical height on tablet/desktop while preserving colors, content and order. */
.docs-category-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 641px) {
  .docs-category-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(220px, 0.58fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 3px;
    align-items: center;
    padding: 13px 18px;
  }

  .docs-category-card__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .docs-category-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .docs-category-card p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    line-height: 1.45;
  }

  .docs-category-card ul {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 0;
    gap: 3px;
    align-self: center;
  }
}

@media (max-width: 640px) {
  .docs-category-card {
    min-height: 0;
    padding: 16px 18px;
  }

  .docs-category-card h3 {
    margin-top: 10px;
  }

  .docs-category-card ul {
    margin-top: 12px;
    padding-top: 0;
    gap: 4px;
  }
}


/* Phase 0.1.9-R6-R54 — Documentation overview top spacing reduction.
   Scope: desktop/tablet only. Reduces only the vertical gap between the search
   hint area and the “VISÃO GERAL / Explore a documentação” heading. */
@media (min-width: 641px) {
  .docs-explore-heading {
    margin-top: 44px;
  }
}


/* Phase 0.1.9-R6-R57 — Documentation mobile heading centering.
   Scope: mobile only. Centers the two marked documentation heading groups
   (eyebrow + main title, and section kicker + Explore title) without changing
   descriptions, search, cards, tablet or desktop. */
@media (max-width: 640px) {
  .docs-eyebrow {
    display: block;
    width: 100%;
    text-align: center;
  }

  .docs-intro h1 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .docs-explore-heading > div {
    width: 100%;
    text-align: center;
  }
}


/* Phase 0.1.9-R6-R58 — Documentation mobile overview top spacing reduction.
   Scope: mobile only. Reduces only the vertical gap above the VISÃO GERAL /
   Explore a documentação heading by about 28%, preserving tablet and desktop. */
@media (max-width: 640px) {
  .docs-explore-heading {
    margin-top: 42px;
  }
}
