/* =============================================================================
   /developers — API reference styling.

   Three-column documentation layout on top of the vibrant-persona theme. Only
   loaded on /developers* (see Core/resource.manager.php), so selectors here are
   scoped by .docs-layout and never leak into the rest of the site.
   ========================================================================== */

.docs-layout {
  --docs-top: 72px;
  /* sticky-top navbar is 60px */
  --docs-nav-w: 264px;
  --docs-toc-w: 244px;
  --docs-gap: 2.5rem;
  --docs-line: rgba(255, 255, 255, .09);
  --docs-line-soft: rgba(255, 255, 255, .05);
  --docs-surface: rgba(255, 255, 255, .022);
  --docs-surface-2: #0b1017;
  --docs-code-bg: #070b10;
  --docs-text: #d6dae1;
  --docs-dim: #8b939f;
  --docs-accent: #66c0f4;

  display: grid;
  grid-template-columns: var(--docs-nav-w) minmax(0, 1fr) var(--docs-toc-w);
  gap: 0 var(--docs-gap);
  max-width: 1660px;
  margin: 0 auto;
  padding: 0 1.75rem 5rem;
  color: var(--docs-text);
  font-size: .935rem;
  line-height: 1.7;
}

@media (max-width: 1399.98px) {
  .docs-layout {
    grid-template-columns: var(--docs-nav-w) minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 1rem 4rem;
  }
}

/* ---------------------------------------------------------------- left nav */

.docs-sidebar {
  position: relative;
}

.docs-sidebar-inner {
  position: sticky;
  top: var(--docs-top);
  max-height: calc(100vh - var(--docs-top));
  overflow-y: auto;
  padding: 1.75rem 1rem 2rem 0;
  border-right: 1px solid var(--docs-line-soft);
  scrollbar-width: thin;
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(102, 192, 244, .22), rgba(0, 242, 255, .12));
  border: 1px solid rgba(102, 192, 244, .28);
  color: var(--docs-accent);
  flex: none;
}

.docs-brand strong {
  display: block;
  font-size: .96rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.docs-brand em {
  display: block;
  font-style: normal;
  font-size: .72rem;
  color: var(--docs-dim);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.docs-nav-group {
  margin-bottom: 1.5rem;
}

.docs-nav-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6c7684;
  padding: 0 .65rem;
  margin-bottom: .45rem;
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .44rem .65rem;
  border-radius: 8px;
  color: var(--docs-text);
  text-decoration: none;
  font-size: .89rem;
  border-left: 2px solid transparent;
  transition: background .16s ease, color .16s ease;
}

.docs-nav-link i {
  width: 1.05rem;
  text-align: center;
  color: #7b8492;
  font-size: .88rem;
  flex: none;
}

.docs-nav-link:hover {
  background: rgba(255, 255, 255, .045);
  color: #fff;
}

.docs-nav-link:hover i {
  color: var(--docs-accent);
}

.docs-nav-link.active {
  background: rgba(102, 192, 244, .1);
  color: #fff;
  font-weight: 600;
  border-left-color: var(--docs-accent);
}

.docs-nav-link.active i {
  color: var(--docs-accent);
}

.docs-nav-badge {
  margin-left: auto;
  font-style: normal;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .1rem .38rem;
  border-radius: 5px;
  background: rgba(0, 255, 170, .14);
  color: #00ffaa;
}

.docs-nav-sub {
  margin: .2rem 0 .5rem 1.55rem;
  border-left: 1px solid var(--docs-line);
}

.docs-nav-sub a {
  display: block;
  padding: .22rem .7rem;
  font-size: .82rem;
  color: var(--docs-dim);
  text-decoration: none;
}

.docs-nav-sub a:hover {
  color: var(--docs-accent);
}

/* ------------------------------------------------------------- mobile nav */

.docs-mobilebar {
  display: flex;
  align-items: center;
  gap: .75rem;
  position: sticky;
  top: 60px;
  z-index: 30;
  margin: 0 -1rem 1rem;
  padding: .6rem 1rem;
  background: rgba(9, 13, 18, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--docs-line);
}

.docs-mobilebar-btn {
  background: rgba(102, 192, 244, .12);
  border: 1px solid rgba(102, 192, 244, .25);
  color: #fff;
  border-radius: 8px;
  padding: .3rem .7rem;
  font-size: .84rem;
}

.docs-mobilebar-here {
  font-size: .84rem;
  color: var(--docs-dim);
}

.docs-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 1039;
}

@media (max-width: 991.98px) {
  .docs-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 282px;
    z-index: 1040;
    background: #090d12;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  .docs-sidebar.open {
    transform: none;
  }

  .docs-sidebar-inner {
    top: 0;
    max-height: 100vh;
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--docs-line);
  }
}

@media (min-width: 992px) {
  .docs-scrim {
    display: none !important;
  }
}

/* ------------------------------------------------------------------ main */

.docs-main {
  min-width: 0;
  padding: 1.75rem 0 0;
}

.docs-hero {
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--docs-line);
}

.docs-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--docs-accent);
  margin-bottom: .55rem;
}

.docs-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 .7rem;
}

.docs-lede {
  font-size: 1.06rem;
  line-height: 1.65;
  color: #a8b0bb;
  max-width: 62ch;
  margin-bottom: 1.15rem;
}

.docs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
}

.docs-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--docs-dim);
  background: var(--docs-surface);
  border: 1px solid var(--docs-line-soft);
  border-radius: 999px;
  padding: .22rem .7rem;
}

.docs-hero-meta i {
  color: var(--docs-accent);
}

.docs-hero-meta code {
  background: none;
  padding: 0;
  color: #b9c1cc;
}

/* -------------------------------------------------------------- sections */

.docs-section {
  scroll-margin-top: calc(var(--docs-top) + 12px);
  margin-bottom: 3.25rem;
}

.docs-h2 {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin: 1.75rem 0 .7rem;
}

.docs-anchor {
  opacity: 0;
  margin-left: .45rem;
  color: var(--docs-accent);
  text-decoration: none;
  font-weight: 400;
  transition: opacity .15s ease;
}

.docs-h2:hover .docs-anchor {
  opacity: .75;
}

.docs-section p {
  margin-bottom: .95rem;
  max-width: 78ch;
}

.docs-section a:not(.docs-card):not(.docs-nav-link) {
  color: var(--docs-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 192, 244, .3);
}

.docs-section a:not(.docs-card):not(.docs-nav-link):hover {
  border-bottom-color: var(--docs-accent);
}

.docs-link-arrow::after {
  content: " →";
}

.docs-muted {
  color: var(--docs-dim);
}

.docs-layout code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .855em;
  background: rgba(102, 192, 244, .1);
  color: #9fd4f5;
  padding: .1em .38em;
  border-radius: 5px;
  word-break: break-word;
}

/* ---------------------------------------------------------------- tables */

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: .875rem;
}

.docs-table th,
.docs-table td {
  text-align: left;
  vertical-align: top;
  padding: .62rem .8rem;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-table thead th {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #79828f;
  border-bottom: 1px solid var(--docs-line);
}

.docs-table tbody th {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.docs-table tbody tr:hover {
  background: rgba(255, 255, 255, .018);
}

.docs-table p {
  margin: 0;
}

.docs-table-routes td:first-child {
  width: 3.5rem;
}

.docs-table-routes td:nth-child(2) {
  width: 40%;
}

.docs-table-fields td:first-child {
  white-space: nowrap;
}

.docs-type {
  font-family: ui-monospace, monospace;
  font-size: .76rem;
  color: #8fa3b8;
  white-space: nowrap;
}

.docs-yes {
  color: #00ffaa;
  font-weight: 600;
}

.docs-no {
  color: #6c7684;
}

/* --------------------------------------------------------------- pills */

.docs-method {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .16rem .5rem;
  border-radius: 5px;
  background: rgba(0, 255, 170, .13);
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, .2);
}

.docs-pill {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  padding: .12rem .55rem;
  border-radius: 999px;
}

.docs-pill-anon {
  background: rgba(255, 255, 255, .07);
  color: #cfd5dd;
}

.docs-pill-key {
  background: rgba(102, 192, 244, .16);
  color: var(--docs-accent);
}

.docs-status {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: .74rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 5px;
  white-space: nowrap;
}

.docs-status-2xx {
  background: rgba(0, 255, 170, .13);
  color: #00ffaa;
}

.docs-status-4xx {
  background: rgba(255, 179, 71, .14);
  color: #ffb347;
}

.docs-status-5xx {
  background: rgba(255, 99, 99, .14);
  color: #ff8080;
}

.docs-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: .38rem;
  vertical-align: middle;
}

.docs-dot.docs-status-2xx {
  background: #00ffaa;
}

.docs-dot.docs-status-4xx {
  background: #ffb347;
}

.docs-dot.docs-status-5xx {
  background: #ff8080;
}

/* -------------------------------------------------------------- callouts */

.docs-callout {
  border: 1px solid var(--docs-line);
  border-left: 3px solid var(--docs-accent);
  background: rgba(102, 192, 244, .05);
  border-radius: 10px;
  padding: .95rem 1.1rem;
  margin: 1.25rem 0;
}

.docs-callout-warn {
  border-left-color: #ffb347;
  background: rgba(255, 179, 71, .055);
}

.docs-callout-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: .35rem;
  font-size: .92rem;
}

.docs-callout-title i {
  color: var(--docs-accent);
  margin-right: .4rem;
}

.docs-callout-warn .docs-callout-title i {
  color: #ffb347;
}

.docs-callout p {
  font-size: .88rem;
  color: #b6bdc7;
}

/* ----------------------------------------------------------------- cards */

.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.docs-card {
  display: block;
  padding: 1.15rem;
  border: 1px solid var(--docs-line);
  border-radius: 12px;
  background: var(--docs-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.docs-card:hover {
  border-color: rgba(102, 192, 244, .45);
  background: rgba(102, 192, 244, .05);
  transform: translateY(-2px);
}

.docs-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(102, 192, 244, .12);
  color: var(--docs-accent);
  margin-bottom: .7rem;
}

.docs-card strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: .3rem;
}

.docs-card p {
  font-size: .84rem;
  color: var(--docs-dim);
  margin: 0 0 .7rem;
}

.docs-card-go {
  font-size: .78rem;
  font-weight: 600;
  color: var(--docs-accent);
}

/* -------------------------------------------------------------- endpoint */

.docs-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .6rem .8rem;
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  background: var(--docs-surface-2);
  margin-bottom: 1rem;
}

.docs-route-path {
  background: none !important;
  color: #fff !important;
  font-size: .95rem !important;
  font-weight: 600;
  padding: 0 !important;
}

.docs-scope {
  font-family: ui-monospace, monospace;
  font-size: .7rem;
  padding: .12rem .45rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, .05);
  color: #97a1ae;
  border: 1px solid var(--docs-line-soft);
}

.docs-auth-optional {
  margin-left: auto;
  font-size: .74rem;
  color: #6f7885;
  white-space: nowrap;
}

.docs-auth-optional i {
  color: #00ffaa;
}

.docs-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 1200px) {
  .docs-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .docs-split-code {
    position: sticky;
    top: calc(var(--docs-top) + 10px);
    align-self: start;
    max-height: calc(100vh - var(--docs-top) - 30px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 2px;
  }
}

/* ------------------------------------------------------------ parameters */

.docs-params {
  border-top: 1px solid var(--docs-line-soft);
}

.docs-param {
  padding: .75rem 0;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-param-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .3rem;
}

.docs-param-name {
  background: none !important;
  color: #fff !important;
  font-weight: 700;
  font-size: .9rem !important;
  padding: 0 !important;
}

.docs-param-type {
  font-family: ui-monospace, monospace;
  font-size: .72rem;
  color: #8fa3b8;
}

.docs-param-in,
.docs-param-req,
.docs-param-opt,
.docs-param-def {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .08rem .4rem;
  border-radius: 4px;
}

.docs-param-in {
  background: rgba(102, 192, 244, .13);
  color: var(--docs-accent);
}

.docs-param-req {
  background: rgba(255, 99, 99, .13);
  color: #ff8f8f;
}

.docs-param-opt {
  background: rgba(255, 255, 255, .05);
  color: #7c848f;
}

.docs-param-def {
  background: rgba(255, 255, 255, .05);
  color: #7c848f;
  text-transform: none;
}

.docs-param-def code {
  background: none;
  padding: 0;
  font-size: .95em;
  color: #b9c1cc;
}

.docs-param p {
  margin: 0;
  font-size: .87rem;
  color: #aab2bd;
}

/* ----------------------------------------------------------- code panels */

.docs-panel {
  border: 1px solid var(--docs-line);
  border-radius: 12px;
  background: var(--docs-surface-2);
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.docs-panel-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--docs-line);
  background: rgba(255, 255, 255, .022);
}

.docs-panel-title {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #79828f;
}

.docs-panel-title i {
  color: var(--docs-accent);
  margin-right: .3rem;
}

.docs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  margin-left: auto;
}

.docs-tab {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #7d8794;
  font-size: .76rem;
  font-weight: 600;
  padding: .18rem .55rem;
  transition: color .15s ease, background .15s ease;
}

.docs-tab:hover {
  color: #fff;
}

.docs-tab.active {
  background: rgba(102, 192, 244, .13);
  border-color: rgba(102, 192, 244, .25);
  color: var(--docs-accent);
}

.docs-tabpane {
  display: none;
}

.docs-tabpane.active {
  display: block;
}

.docs-trunc {
  margin: 0;
  padding: .45rem .8rem;
  font-size: .76rem;
  color: #8b939f;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--docs-line-soft);
}

/* ------------------------------------------------------------ code block */

.docs-code {
  position: relative;
  background: var(--docs-code-bg);
}

.docs-panel .docs-code {
  border-radius: 0;
}

.docs-section>.docs-code,
.docs-steps .docs-code {
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 1.2rem;
}

.docs-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem .65rem;
  border-bottom: 1px solid var(--docs-line-soft);
  background: rgba(255, 255, 255, .015);
}

/* Inside a panel the head already names the language, so the bar collapses to
   nothing — but it must NOT be display:none, because the copy button is its
   child and gets positioned over the code instead. */
.docs-panel .docs-code-bar,
.docs-example .docs-code-bar {
  height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.docs-panel .docs-code-lang,
.docs-example .docs-code-lang {
  display: none;
}

.docs-panel .docs-copy {
  position: absolute;
  top: .45rem;
  right: .5rem;
  z-index: 2;
  display: flex;
}

.docs-code-lang {
  font-family: ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6c7684;
}

.docs-copy {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--docs-line);
  border-radius: 6px;
  color: #9aa3af;
  font-size: .72rem;
  padding: .15rem .45rem;
  transition: all .15s ease;
}

.docs-copy:hover {
  color: #fff;
  border-color: rgba(102, 192, 244, .4);
  background: rgba(102, 192, 244, .12);
}

.docs-copy.copied {
  color: #00ffaa;
  border-color: rgba(0, 255, 170, .35);
}

.docs-pre {
  margin: 0;
  padding: .85rem 1rem;
  overflow-x: auto;
  font-size: .815rem;
  line-height: 1.62;
  scrollbar-width: thin;
  tab-size: 2;
}

.docs-pre code {
  background: none !important;
  padding: 0 !important;
  color: #c3cad3 !important;
  font-size: inherit !important;
  white-space: pre;
  word-break: normal;
}

.docs-pre .j-key {
  color: #7fd1ff;
}

.docs-pre .j-str {
  color: #a5e6a5;
}

.docs-pre .j-num {
  color: #ffca7a;
}

.docs-pre .j-lit {
  color: #ff9ecb;
}

.docs-pre .j-punct {
  color: #6f7885;
}

.docs-pre .j-comment {
  color: #5f6a78;
  font-style: italic;
}

/* -------------------------------------------------------------- binary */

.docs-binary {
  padding: .8rem .9rem 0;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-binary p {
  font-size: .84rem;
  color: #a8b0bb;
  margin-bottom: .6rem;
}

.docs-headers {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  margin-bottom: .8rem;
}

.docs-headers td,
.docs-headers th {
  padding: .28rem .5rem .28rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--docs-line-soft);
  text-align: left;
}

.docs-headers thead th {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6c7684;
}

.docs-headers code {
  background: none;
  padding: 0;
  color: #7fd1ff;
  font-size: .95em;
}

.docs-headerval {
  color: #a5e6a5 !important;
  word-break: break-all;
}

/* -------------------------------------------------------------- examples */

.docs-examples {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

@media (min-width: 1200px) {
  .docs-examples {
    grid-template-columns: 1fr 1fr;
  }
}

.docs-example {
  border: 1px solid var(--docs-line);
  border-radius: 12px;
  background: var(--docs-surface-2);
  overflow: hidden;
}

.docs-example-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-example-head strong {
  font-size: .87rem;
  color: #fff;
}

.docs-example-req {
  padding: .45rem .75rem;
  border-bottom: 1px solid var(--docs-line-soft);
  background: rgba(255, 255, 255, .015);
  overflow-x: auto;
}

.docs-example-req code {
  background: none;
  padding: 0;
  color: #8b939f;
  font-size: .76rem;
  white-space: nowrap;
}

.docs-example .docs-copy {
  position: absolute;
  top: .4rem;
  right: .45rem;
  z-index: 2;
}

/* --------------------------------------------------------------- recipes */

.docs-panel-wide {
  margin-top: 1.1rem;
}

.docs-steps {
  list-style: none;
  counter-reset: docsstep;
  margin: 1.1rem 0 1.1rem;
  padding: 0;
}

.docs-steps>li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 1.4rem;
}

.docs-steps>li::before {
  counter-increment: docsstep;
  content: counter(docsstep);
  position: absolute;
  left: 0;
  top: .05rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .74rem;
  font-weight: 700;
  background: rgba(102, 192, 244, .14);
  color: var(--docs-accent);
  border: 1px solid rgba(102, 192, 244, .25);
}

.docs-step-title {
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 .5rem;
}

/* ---------------------------------------------------------------- footer */

.docs-footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--docs-line);
}

.docs-footer strong {
  color: #fff;
}

.docs-footer p {
  font-size: .87rem;
  color: var(--docs-dim);
}

.docs-footer-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
}

.docs-footer-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 1;
  padding: .8rem 1rem;
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  text-decoration: none !important;
  color: #fff;
  border-bottom-width: 1px !important;
  transition: border-color .18s ease, background .18s ease;
}

.docs-footer-nav a:hover {
  border-color: rgba(102, 192, 244, .45);
  background: rgba(102, 192, 244, .05);
}

.docs-footer-next {
  justify-content: flex-end;
  text-align: right;
}

.docs-footer-nav em {
  display: block;
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c7684;
}

.docs-footer-nav i {
  color: var(--docs-accent);
}

/* --------------------------------------------------------------- toc rail */

.docs-toc {
  position: relative;
}

.docs-toc-inner {
  position: sticky;
  top: var(--docs-top);
  max-height: calc(100vh - var(--docs-top));
  overflow-y: auto;
  padding: 1.75rem 0 2rem 1.25rem;
  border-left: 1px solid var(--docs-line-soft);
  scrollbar-width: thin;
}

.docs-toc-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6c7684;
  margin-bottom: .6rem;
}

.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--docs-line);
}

.docs-toc a {
  display: block;
  padding: .28rem 0 .28rem .75rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--docs-dim);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}

.docs-toc a:hover {
  color: #fff;
}

.docs-toc a.active {
  color: var(--docs-accent);
  border-left-color: var(--docs-accent);
  font-weight: 600;
}

.docs-toc-method {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #00ffaa;
  background: rgba(0, 255, 170, .1);
  border-radius: 3px;
  padding: 0 .22rem;
  margin-right: .3rem;
  vertical-align: 1px;
}

.docs-toc-aside {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--docs-line-soft);
  display: grid;
  gap: .5rem;
}

.docs-toc-aside a {
  font-size: .8rem;
  color: var(--docs-dim);
  text-decoration: none;
  padding: 0;
  border: 0;
}

.docs-toc-aside a:hover {
  color: var(--docs-accent);
}

.docs-toc-aside i {
  width: 1rem;
  color: var(--docs-accent);
  margin-right: .35rem;
}

.docs-toc-aside code {
  background: none;
  padding: 0;
  font-size: .95em;
}
