/* ============================================================
   Seekdown — SaaS documentation portal
   A three-column docs experience (nav · article · on-page TOC)
   layered on the shared immersive dark surface.
   ============================================================ */

.docs-page {
  background: #000;
}

.docs-surface {
  padding-bottom: 2rem;
}

/* Widen the shell so three columns breathe, and clear the fixed navbar
   (the immersive surface only leaves ~20px, so the top content would otherwise
   render behind the transparent nav). */
.docs-shell {
  max-width: 1360px;
  padding-top: 5rem;
}

@media (max-width: 991.98px) {
  .docs-shell {
    padding-top: 3.5rem;
  }
}

/* ---- Layout grid --------------------------------------------------------- */

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
  align-items: start;
  padding-top: 1.5rem;
}

@media (min-width: 992px) {
  .docs-layout {
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 2.5rem;
  }

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

@media (min-width: 1200px) {
  .docs-layout:has(.docs-toc-rail) {
    grid-template-columns: 258px minmax(0, 1fr) 216px;
    gap: 3rem;
  }

  .docs-layout--no-sidebar:has(.docs-toc-rail) {
    grid-template-columns: minmax(0, 1fr) 216px;
  }
}

.docs-sidebar,
.docs-toc-rail {
  display: none;
}

@media (min-width: 992px) {
  .docs-sidebar {
    display: block;
    align-self: start;
    padding-right: 0.4rem;
  }
}

@media (min-width: 1200px) {
  .docs-toc-rail {
    display: block;
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
  }
}

.docs-sidebar::-webkit-scrollbar,
.docs-toc-rail::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-thumb,
.docs-toc-rail::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

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

.docs-layout--no-sidebar {
  padding-top: 0.35rem;
}

@media (min-width: 1200px) {
  .docs-layout--no-sidebar:has(.docs-toc-rail) {    
    margin-inline: auto;    
    gap: 2.5rem;
  }
}

/* ---- Sidebar navigation -------------------------------------------------- */

.docs-nav-filter {
  position: relative;
  margin-bottom: 1.4rem;
}

.docs-nav-filter i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.9rem;
  pointer-events: none;
}

.docs-nav-filter input {
  width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.2rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.66);
  color: #f8fafc;
  font-size: 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.docs-nav-filter input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.docs-nav-filter input:focus {
  outline: 0;
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  background: rgba(15, 23, 42, 0.86);
}

.docs-nav__overview {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.5);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.docs-nav__overview:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.4);
}

.docs-nav__overview.is-active {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(59, 130, 246, 0.16);
}

.docs-nav__label {
  margin: 1.6rem 0 0.4rem;
  padding-left: 0.15rem;
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-nav__toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.48rem 0.55rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.docs-nav__toggle:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #fff;
}

.docs-nav__toggle-icon {
  color: #60a5fa;
  font-size: 1rem;
}

.docs-nav__toggle-label {
  flex: 1 1 auto;
  min-width: 0;
}

.docs-nav__chevron {
  color: rgba(148, 163, 184, 0.65);
  font-size: 0.78rem;
  transition: transform 0.18s ease;
}

.docs-nav__section.is-open > .docs-nav__toggle .docs-nav__chevron {
  transform: rotate(90deg);
}

.docs-nav__panel {
  display: none;
  padding: 0.1rem 0 0.4rem 0.7rem;
}

.docs-nav__section.is-open > .docs-nav__panel {
  display: block;
}

.docs-nav__link--overview {
  color: rgba(148, 163, 184, 0.8);
}

.docs-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
}

.docs-nav__link {
  display: block;
  padding: 0.4rem 0.75rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.docs-nav__link:hover {
  color: #f8fafc;
  border-left-color: rgba(96, 165, 250, 0.5);
}

.docs-nav__link.is-active {
  color: #93c5fd;
  border-left-color: #60a5fa;
  font-weight: 600;
}

.docs-nav__section.is-hidden,
.docs-nav__list li.is-hidden {
  display: none;
}

.docs-nav__empty {
  display: none;
  padding: 0.5rem 0.75rem;
  color: rgba(148, 163, 184, 0.75);
  font-size: 0.85rem;
}

.docs-nav__empty.is-visible {
  display: block;
}

/* ---- Breadcrumbs --------------------------------------------------------- */

.docs-breadcrumb {
  margin-bottom: 1.5rem;
}

.docs-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.85);
}

.docs-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-breadcrumb li + li::before {
  content: "\F285"; /* bi-chevron-right */
  font-family: bootstrap-icons;
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.5);
}

.docs-breadcrumb a {
  color: rgba(203, 213, 225, 0.85);
  text-decoration: none;
}

.docs-breadcrumb a:hover {
  color: #93c5fd;
}

.docs-breadcrumb li[aria-current="page"] {
  color: #e2e8f0;
}

/* ---- Article ------------------------------------------------------------- */

.docs-article {
  color: #cbd5e1;
  font-size: 1.03rem;
  line-height: 1.7;
}

.docs-layout--no-sidebar .docs-article {
  
}

.docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child {
  margin-bottom: 0.85rem;
}

.docs-article h1,
.docs-article h2,
.docs-article h3,
.docs-article h4 {
  color: #f8fafc;
  font-weight: 500;
  letter-spacing: -0.01em;
  scroll-margin-top: 6.5rem;
}

.docs-article h1 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.02;
  margin: 0 0 1.1rem;
  letter-spacing: -0.03em;
}

.docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child + h1 {  
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  line-height: 0.98;
}

@media (min-width: 992px) {
  .docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child + h1 {
  }
}

/* The renderer emits a divider straight after the page title; hide that one. */
.docs-article > h1:first-child + hr {
  display: none;
}

.docs-article h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.16;
  margin: 3.25rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.docs-layout--no-sidebar .docs-article h2 {
  clear: both;
}

.docs-article > h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 2rem;
}

.docs-article h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.1rem 0 0.5rem;
}

.docs-article h4 {
  font-size: 1.02rem;
  margin: 1.6rem 0 0.4rem;
  color: #e2e8f0;
}

.docs-article p {
  margin: 0 0 1.05rem;
  color: rgba(203, 213, 225, 0.82);
}

.docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child + h1 + .docs-figure + p {
  color: rgba(226, 232, 240, 0.94);
  font-size: 1.12rem;
  line-height: 1.68;
}

/* Prose links only — component links (.docs-btn, .docs-card, …) keep their own
   colors, which this generic rule would otherwise override by specificity. */
.docs-article a:not([class]) {
  color: #93c5fd;
  text-decoration: underline;
  text-decoration-color: rgba(147, 197, 253, 0.4);
  text-underline-offset: 4px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.docs-article a:not([class]):hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.docs-article strong {
  color: #e8eefb;
  font-weight: 650;
}

.docs-article em {
  color: #dbe4f4;
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
  color: rgba(203, 213, 225, 0.82);
}

.docs-article li {
  margin: 0.3rem 0;
  padding-left: 0.2rem;
}

.docs-article li::marker {
  color: rgba(96, 165, 250, 0.85);
}

.docs-article hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}

/* Inline + block code */
.docs-article code {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.86);
  color: #e0f2fe;
  font-size: 0.88em;
  padding: 0.08rem 0.34rem;
  word-break: break-word;
}

.docs-article pre {
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.92);
  padding: 1rem 1.1rem;
  margin: 0 0 1.35rem;
}

.docs-article pre code {
  border: 0;
  background: transparent;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.docs-copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.9);
  color: rgba(203, 213, 225, 0.85);
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.docs-article pre:hover .docs-copy,
.docs-copy:focus-visible {
  opacity: 1;
}

.docs-copy:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.5);
}

.docs-copy.is-copied {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.5);
  opacity: 1;
}

/* ---- Callouts ------------------------------------------------------------ */

.docs-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left-width: 3px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.docs-callout__icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  font-size: 1rem;
}

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

.docs-callout__title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f1f5f9;
}

.docs-callout__body p:last-child {
  margin-bottom: 0;
}

.docs-layout--no-sidebar .docs-callout {
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.1), transparent 42%),
    rgba(15, 23, 42, 0.66);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.2);
}

.docs-callout--note {
  border-left-color: #60a5fa;
}
.docs-callout--note .docs-callout__icon {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

.docs-callout--tip {
  border-left-color: #34d399;
}
.docs-callout--tip .docs-callout__icon {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.docs-callout--important {
  border-left-color: #a78bfa;
}
.docs-callout--important .docs-callout__icon {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
}

.docs-callout--warning {
  border-left-color: #fbbf24;
}
.docs-callout--warning .docs-callout__icon {
  background: rgba(251, 191, 36, 0.16);
  color: #fcd34d;
}

.docs-callout--caution {
  border-left-color: #f87171;
}
.docs-callout--caution .docs-callout__icon {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

/* ---- Pull quotes --------------------------------------------------------- */

.docs-quote {
  position: relative;
  margin: 1.8rem 0;
  padding: 1.25rem 1.35rem 1.25rem 1.55rem;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-left: 3px solid rgba(45, 212, 191, 0.82);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.72));
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.28);
}

.docs-quote::before {
  content: "\201C";
  position: absolute;
  top: 0.25rem;
  right: 1rem;
  color: rgba(45, 212, 191, 0.22);
  font-size: 4.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.docs-quote p {
  position: relative;
  margin: 0;
  color: #e8f6f5;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.38;
}

/* ---- FAQ accordion ------------------------------------------------------- */

.docs-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.docs-faq__item {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.docs-faq__item:hover {
  border-color: rgba(96, 165, 250, 0.4);
}

.docs-faq__item[open] {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(15, 23, 42, 0.7);
}

.docs-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  color: #f1f5f9;
  list-style: none;
  user-select: none;
}

.docs-faq__question::-webkit-details-marker {
  display: none;
}

.docs-faq__question:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: -2px;
  border-radius: 12px;
}

.docs-faq__question-text {
  min-width: 0;
}

.docs-faq__chevron {
  flex-shrink: 0;
  color: #93c5fd;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.docs-faq__item[open] .docs-faq__chevron {
  transform: rotate(180deg);
}

.docs-faq__answer {
  padding: 0 1.15rem 1.1rem;
  color: #cbd5e1;
}

.docs-faq__answer p {
  margin: 0 0 0.6rem;
}

.docs-faq__answer p:last-child {
  margin-bottom: 0;
}

/* ---- Media placeholders -------------------------------------------------- */

.docs-media {
  margin: 1.75rem 0;
}

.docs-media__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 220px;
  padding: 2rem 1.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.1), transparent 60%),
    rgba(15, 23, 42, 0.5);
  text-align: center;
}

.docs-media--video .docs-media__frame {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.docs-media__icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  font-size: 1.7rem;
}

.docs-media__label {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.docs-media__hint {
  max-width: 44ch;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.85rem;
  line-height: 1.5;
}

.docs-media__caption {
  margin-top: 0.6rem;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Figures / images ---------------------------------------------------- */

.docs-figure {
  margin: 1.75rem 0;
}

.docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child + h1 + .docs-figure {
  position: relative;
  overflow: hidden;
  margin: 0.2rem 0 1.25rem;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.docs-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
}

.docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child + h1 + .docs-figure img {
  height: clamp(185px, 42vw, 285px);
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 18px;
}

.docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child + h1 + .docs-figure figcaption {
  display: none;
}

@media (min-width: 992px) {
  .docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child + h1 + .docs-figure {
    float: right;
    width: min(42%, 365px);
    margin: 0.15rem 0 1.15rem 2rem;
  }

  .docs-layout--no-sidebar .docs-article > .docs-eyebrow:first-child + h1 + .docs-figure img {
    height: clamp(235px, 32vh, 315px);
  }
}

.docs-figure video {
  display: block;
  width: 100%;
  height: auto;
}

.docs-figure figcaption,
.docs-media__caption {
  margin-top: 0.6rem;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Tables -------------------------------------------------------------- */

.docs-table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
}

.docs-layout--no-sidebar .docs-table-wrap {
  border-color: rgba(45, 212, 191, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 38%),
    rgba(15, 23, 42, 0.46);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.22);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.docs-table th,
.docs-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.docs-table thead th {
  background: rgba(15, 23, 42, 0.7);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-layout--no-sidebar .docs-table thead th {
  background: rgba(8, 47, 73, 0.54);
  color: #dffafe;
}

.docs-table tbody tr:last-child td {
  border-bottom: 0;
}

.docs-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

/* ---- On-page TOC rail ---------------------------------------------------- */

.docs-toc {
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  padding-left: 1rem;
}

.docs-toc__title {
  margin: 0 0 0.75rem;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.docs-toc__item {
  margin: 0;
}

.docs-toc__item--h3 {
  padding-left: 0.85rem;
}

.docs-toc__link {
  display: block;
  padding: 0.28rem 0;
  color: rgba(148, 163, 184, 0.82);
  font-size: 0.83rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.16s ease;
}

.docs-toc__link:hover {
  color: #cbd5e1;
}

.docs-toc__link.is-active {
  color: #93c5fd;
  font-weight: 600;
}

/* ---- Previous / next pager ---------------------------------------------- */

.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.docs-pager__spacer {
  display: block;
}

.docs-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.docs-pager__link--next {
  text-align: right;
}

.docs-pager__link:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 41, 59, 0.6);
}

.docs-pager__dir {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-pager__link--next .docs-pager__dir {
  justify-content: flex-end;
}

.docs-pager__title {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
}

.docs-pager__context {
  color: rgba(148, 163, 184, 0.75);
  font-size: 0.78rem;
}

/* ---- Index landing ------------------------------------------------------- */

.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.docs-index__hero {
  margin-bottom: 3rem;
}

.docs-layout--no-sidebar .docs-index {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.docs-index__hero h1 {
  margin: 1.35rem 0 0;
  color: #f8fafc;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.docs-index__hero p {
  max-width: 62ch;
  margin: 1.1rem 0 0;
  color: rgba(203, 213, 225, 0.82);
  font-size: 1.14rem;
  line-height: 1.6;
}

.docs-index__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.docs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.docs-btn--primary {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
}

.docs-btn--primary:hover {
  transform: translateY(-2px);
  background: #dbeafe;
  color: #0b1220;
}

.docs-btn--ghost {
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #e2e8f0;
}

.docs-btn--ghost:hover {
  border-color: rgba(96, 165, 250, 0.55);
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
}

.docs-index-group + .docs-index-group {
  margin-top: 2.75rem;
}

.docs-layout--no-sidebar .docs-index-group {
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
  gap: 2.75rem;
  padding: 2.35rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.docs-layout--no-sidebar .docs-index-group + .docs-index-group {
  margin-top: 0;
}

.docs-index-group__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.docs-layout--no-sidebar .docs-index-group__head {
  display: block;
  margin-bottom: 0;
}

.docs-index-group__title {
  margin: 0.15rem 0 0;
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 500;
}

.docs-index-group__summary {
  margin: 0.3rem 0 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.95rem;
  line-height: 1.55;
}

.guides-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides-list li {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.guides-list__link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.85rem 0;
  color: #e2e8f0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.guides-list__link i {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  color: rgba(148, 163, 184, 0.55);
  transition: color 0.16s ease, transform 0.16s ease;
}

.guides-list__link:hover {
  color: #93c5fd;
}

.guides-list__link:hover i {
  color: #93c5fd;
  transform: translateX(3px);
}

.docs-layout--no-sidebar .guides-index {
  max-width: none;
}

.guides-index .docs-index__hero {
  max-width: 720px;
  margin-bottom: 3rem;
}

.guides-index__groups {
  display: grid;
  gap: 3rem;
}

.guides-index-group {
  padding-top: 0.1rem;
}

.guides-index-group + .guides-index-group {
}

.guides-index-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

.guides-index-group__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.guides-index .guides-list {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 0;
}

.guides-index .guides-list li {
  width: 100%;
  border-top: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.guides-index .guides-list__link {
  width: 100%;
  min-height: 0;
  padding: 1.2rem 0;
  color: #f8fafc;
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.16s ease;
}

.guides-index .guides-list__link:hover {
  color: #93c5fd;
}

@media (max-width: 899.98px) {
  .docs-layout--no-sidebar .docs-index-group {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .guides-list {
    grid-template-columns: 1fr;
  }

  .guides-index-group__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .guides-index .guides-list {
    grid-template-columns: 1fr;
  }
}

.docs-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .docs-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.docs-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.docs-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(23, 33, 56, 0.78);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.5);
}

.docs-card__icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  font-size: 1.25rem;
}

.docs-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.docs-card__title {
  color: #f1f5f9;
  font-size: 1.02rem;
  font-weight: 600;
}

.docs-card:hover .docs-card__title {
  color: #93c5fd;
}

.docs-card__summary {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.88rem;
  line-height: 1.45;
}

.docs-card__meta {
  margin-top: 0.35rem;
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cards without a leading icon (topic cards on a section landing). */
.docs-card:not(:has(.docs-card__icon)) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.docs-card-grid--wide {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .docs-card-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.docs-card__arrow {
  color: rgba(148, 163, 184, 0.6);
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.docs-card:hover .docs-card__arrow {
  color: #93c5fd;
  transform: translateX(3px);
}

/* ---- Contact section spacing -------------------------------------------- */

.docs-contact {
  margin-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

/* ---- Mobile navigation drawer ------------------------------------------- */

.docs-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.docs-nav-toggle:hover {
  border-color: rgba(96, 165, 250, 0.5);
  color: #fff;
}

.docs-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(2px);
}

.docs-nav-backdrop.is-open {
  display: block;
}

@media (min-width: 992px) {
  .docs-nav-toggle {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: min(320px, 86vw);
    height: 100%;
    display: block;
    padding: 5.5rem 1.25rem 2rem;
    background: rgba(6, 11, 25, 0.98);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.24s ease;
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }
}

/* --------------------------------------------------------------------------
   base.css ships `.inverted a:not(.btn):not(.dropdown-item) { color:#fff }`
   (plus a :hover variant) at a high specificity. The docs section is
   `.inverted`, and our component links do NOT use Bootstrap's `.btn`, so that
   utility overrides their colors — most visibly rendering the white primary
   button's label white-on-white. Re-assert the intended colors here.
   -------------------------------------------------------------------------- */
.docs-btn--primary,
.docs-btn--primary:hover {
  color: #0f172a !important;
}

.docs-btn--ghost {
  color: #e2e8f0 !important;
}

.docs-btn--ghost:hover {
  color: #fff !important;
}

.docs-nav__link {
  color: rgba(203, 213, 225, 0.8) !important;
}

.docs-nav__link:hover {
  color: #f8fafc !important;
}

.docs-nav__link.is-active {
  color: #93c5fd !important;
}

.docs-toc__link {
  color: rgba(148, 163, 184, 0.82) !important;
}

.docs-toc__link:hover {
  color: #cbd5e1 !important;
}

.docs-toc__link.is-active {
  color: #93c5fd !important;
}

.docs-article a:not([class]) {
  color: #93c5fd !important;
}

.docs-article a:not([class]):hover {
  color: #fff !important;
}

.docs-breadcrumb a {
  color: rgba(203, 213, 225, 0.85) !important;
}

.docs-breadcrumb a:hover {
  color: #93c5fd !important;
}
