/* docs.coreisus.com shell: theme tokens, chrome, published card, index */

html[data-theme="dark"] {
  --docs-page-bg: #05070c;
  --docs-page-fg: #f5f5f5;
  --docs-muted: rgba(255, 255, 255, 0.55);
  --docs-faint: rgba(255, 255, 255, 0.35);
  --docs-line: rgba(255, 255, 255, 0.1);
  --docs-glass: rgba(18, 18, 18, 0.72);
  --docs-glass-border: rgba(255, 255, 255, 0.12);
  --docs-glass-hover: rgba(36, 36, 36, 0.9);
  --docs-card: #121212;
  --docs-card-fg: #f0f0f0;
  --docs-card-muted: rgba(240, 240, 240, 0.58);
  --docs-card-line: rgba(255, 255, 255, 0.1);
  --docs-toc: rgba(255, 255, 255, 0.5);
  --docs-toc-active: #f26227;
  --docs-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --docs-accent: #f26227;
  --docs-progress: linear-gradient(90deg, #f26227, #ff8a5c);
  --docs-topbar-bg: #101114;
  --docs-topbar-fg: rgba(255, 255, 255, 0.78);
  --docs-topbar-border: rgba(255, 255, 255, 0.08);
  --docs-panel: rgba(12, 12, 14, 0.88);
  --docs-code-bg: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

html[data-theme="light"] {
  --docs-page-bg: #e8e4dc;
  --docs-page-fg: #141414;
  --docs-muted: rgba(20, 20, 20, 0.58);
  --docs-faint: rgba(20, 20, 20, 0.38);
  --docs-line: rgba(20, 20, 20, 0.12);
  --docs-glass: rgba(255, 255, 255, 0.85);
  --docs-glass-border: rgba(20, 20, 20, 0.1);
  --docs-glass-hover: #fff;
  --docs-card: #fffcf7;
  --docs-card-fg: #141414;
  --docs-card-muted: rgba(20, 20, 20, 0.6);
  --docs-card-line: rgba(20, 20, 20, 0.1);
  --docs-toc: rgba(20, 20, 20, 0.45);
  --docs-toc-active: #d24e1a;
  --docs-shadow: 0 20px 60px rgba(40, 30, 20, 0.18);
  --docs-accent: #d24e1a;
  --docs-progress: linear-gradient(90deg, #d24e1a, #f26227);
  --docs-topbar-bg: #e8eaed;
  --docs-topbar-fg: #3c4043;
  --docs-topbar-border: rgba(60, 64, 67, 0.16);
  --docs-panel: rgba(255, 252, 247, 0.94);
  --docs-code-bg: rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

/* Hide page scrollbar on docs (reading progress is the scroll cue) */
html:has(body.docs-site),
body.docs-site {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(body.docs-site)::-webkit-scrollbar,
body.docs-site::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.docs-site {
  margin: 0;
  min-height: 100vh;
  font-family: "Satoshi", sans-serif;
  background: var(--docs-page-bg);
  color: var(--docs-page-fg);
  -webkit-font-smoothing: antialiased;
}

.docs-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--docs-page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.docs-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, transparent 0%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

html[data-theme="light"] .docs-bg::after {
  background:
    radial-gradient(ellipse 90% 70% at 50% 15%, transparent 0%, rgba(20, 24, 32, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(20, 24, 32, 0.42) 100%);
}

/* Google Docs / Riffle style top banner (fully opaque so content never shows through) */
.docs-chrome.docs-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 52px;
  padding: 3px 0.85rem 0 0.75rem;
  color: var(--docs-topbar-fg);
  pointer-events: auto;
  border-bottom: 1px solid var(--docs-topbar-border);
  /* Solid fill + fallback: never leave an unresolved var transparent */
  background: #101114;
  background: var(--docs-topbar-bg, #101114);
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.docs-chrome.docs-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #101114;
  background: var(--docs-topbar-bg, #101114);
  pointer-events: none;
}

html[data-theme="light"] .docs-chrome.docs-topbar,
html[data-theme="light"] .docs-chrome.docs-topbar::before {
  background: #e8eaed;
  background: var(--docs-topbar-bg, #e8eaed);
}

.docs-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--docs-progress);
  z-index: 5001;
  pointer-events: none;
  transition: width 0.08s linear;
}

.docs-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.docs-brand:hover {
  opacity: 0.85;
}

.docs-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.docs-topbar-text {
  font-family: "Satoshi", sans-serif;
  font-size: 0.88rem;
  color: var(--docs-topbar-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-topbar-link {
  color: var(--docs-accent);
  text-decoration: none;
  font-size: 0.82rem;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.docs-topbar-link:hover {
  text-decoration: underline;
}

.docs-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  flex-shrink: 0;
}

.docs-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--docs-topbar-fg);
  cursor: pointer;
  transition: background 0.15s ease;
}

.docs-icon-btn:hover {
  background: rgba(127, 127, 127, 0.18);
}

.docs-icon-btn svg {
  width: 18px;
  height: 18px;
}

.docs-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: var(--docs-glass);
  border: 1px solid var(--docs-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  display: none;
  z-index: 10;
  color: var(--docs-page-fg);
}

.docs-menu.is-open {
  display: block;
  animation: docsMenuIn 0.18s ease;
}

@keyframes docsMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.docs-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: "Satoshi", sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

html[data-theme="dark"] .docs-menu button {
  color: #fff;
}

html[data-theme="light"] .docs-menu button {
  color: var(--docs-page-fg);
}

.docs-menu button:hover {
  background: rgba(242, 98, 39, 0.12);
}

.docs-menu button.is-active {
  color: var(--docs-accent);
  font-family: "Satoshi-Black", sans-serif;
}

.docs-menu-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--docs-faint);
  padding: 0.45rem 0.75rem 0.25rem;
}

/* Search overlay */
.docs-search {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.25rem 2rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.docs-search.is-open {
  display: flex;
  animation: docsFade 0.2s ease;
}

@keyframes docsFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.docs-search-panel {
  width: min(560px, 100%);
  background: var(--docs-glass);
  border: 1px solid var(--docs-glass-border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: #fff;
}

html[data-theme="light"] .docs-search-panel {
  color: var(--docs-page-fg);
  background: rgba(255, 255, 255, 0.92);
}

.docs-search-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.docs-search-input {
  flex: 1;
  border: 1px solid var(--docs-glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: "Satoshi", sans-serif;
  font-size: 1rem;
  outline: none;
}

html[data-theme="light"] .docs-search-input {
  background: rgba(255, 255, 255, 0.9);
}

.docs-search-input:focus {
  border-color: rgba(242, 98, 39, 0.55);
}

.docs-search-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-family: "Satoshi-Black", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.75rem;
  opacity: 0.7;
}

.docs-search-close:hover {
  opacity: 1;
  color: var(--docs-accent);
}

.docs-search-meta {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--docs-muted);
}

.docs-search-hits {
  margin-top: 0.75rem;
  max-height: 40vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.docs-search-hit {
  border: 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-family: "Satoshi", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.docs-search-hit:hover {
  background: rgba(242, 98, 39, 0.14);
}

.docs-search-hit mark {
  background: rgba(242, 98, 39, 0.35);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

mark.docs-hl {
  background: rgba(242, 98, 39, 0.35);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

mark.docs-hl.is-current {
  background: rgba(242, 98, 39, 0.7);
  box-shadow: 0 0 0 3px rgba(242, 98, 39, 0.35);
  outline: 1px solid rgba(242, 98, 39, 0.9);
}

/* Docs home (Stripe / Vercel style: sparse, topic-first) */
.docs-home-main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 5.5rem 1.35rem 4rem;
}

.docs-home-hero {
  margin-bottom: 2.75rem;
  animation: docsRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.docs-home-title {
  margin: 0 0 0.65rem;
  font-family: "Satoshi-Black", sans-serif;
  font-size: clamp(2.2rem, 5vw, 2.85rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

html[data-theme="light"] .docs-home-title {
  color: var(--docs-page-fg);
}

.docs-home-lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 28rem;
}

html[data-theme="light"] .docs-home-lead {
  color: var(--docs-muted);
}

.docs-home-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 420px;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 12, 0.72);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] .docs-home-search {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(20, 20, 20, 0.12);
  color: var(--docs-page-fg);
}

.docs-home-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.55;
}

.docs-home-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font-family: "Satoshi", sans-serif;
  font-size: 0.95rem;
}

.docs-home-block {
  margin-bottom: 2.5rem;
  animation: docsRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.06s;
}

.docs-home-block.is-hidden {
  display: none;
}

.docs-home-label {
  margin: 0 0 0.85rem;
  font-family: "Satoshi-Black", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .docs-home-label {
  color: var(--docs-faint);
}

.docs-home-start {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.docs-start-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(12, 12, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

html[data-theme="light"] .docs-start-card {
  color: var(--docs-page-fg);
  background: rgba(255, 252, 247, 0.92);
  border-color: rgba(20, 20, 20, 0.1);
}

.docs-start-card:hover {
  border-color: rgba(242, 98, 39, 0.5);
  transform: translateY(-1px);
}

.docs-start-card strong {
  display: block;
  font-family: "Satoshi-Black", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.docs-start-card span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .docs-start-card span {
  color: var(--docs-muted);
}

.docs-start-arrow {
  color: var(--docs-accent) !important;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.docs-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.docs-topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: left;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 14, 0.72);
  color: #fff;
  cursor: pointer;
  font-family: "Satoshi", sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease;
}

html[data-theme="light"] .docs-topic-card {
  background: rgba(255, 252, 247, 0.92);
  border-color: rgba(20, 20, 20, 0.1);
  color: var(--docs-page-fg);
}

.docs-topic-card:hover,
.docs-topic-card.is-active {
  border-color: rgba(242, 98, 39, 0.55);
  background: rgba(242, 98, 39, 0.08);
}

.docs-topic-card strong {
  font-family: "Satoshi-Black", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.docs-topic-card span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .docs-topic-card span {
  color: var(--docs-muted);
}

.docs-guides-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.docs-guides-head .docs-home-label {
  margin: 0;
}

.docs-guides-clear {
  border: 0;
  background: transparent;
  color: var(--docs-accent);
  font-family: "Satoshi", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}

.docs-guides-clear:hover {
  text-decoration: underline;
}

.docs-guide-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .docs-guide-list {
  border-top-color: rgba(20, 20, 20, 0.12);
}

.docs-guide-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
  font-family: "Satoshi-Black", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

html[data-theme="light"] .docs-guide-link {
  color: var(--docs-page-fg);
  border-bottom-color: rgba(20, 20, 20, 0.1);
}

.docs-guide-link:hover {
  color: var(--docs-accent);
  padding-left: 0.25rem;
}

.docs-guide-link em {
  font-style: normal;
  font-family: "Satoshi", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

html[data-theme="light"] .docs-guide-link em {
  color: var(--docs-faint);
}

.docs-home-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
}

html[data-theme="light"] .docs-home-empty {
  color: var(--docs-muted);
}

.docs-home-foot {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .docs-home-foot {
  color: var(--docs-faint);
}

.docs-home-foot a {
  color: var(--docs-accent);
  text-decoration: none;
}

.docs-home-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .docs-topic-grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy index panel kept for published viewer pages only */

@keyframes docsRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.docs-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--docs-card-muted);
}

.docs-index-title {
  margin: 0 0 0.85rem;
  font-family: "Satoshi-Black", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--docs-card-fg);
}

.docs-index-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--docs-card-muted);
}

.docs-section {
  margin-bottom: 2rem;
}

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

.docs-section-title {
  margin: 0 0 0.85rem;
  font-family: "Satoshi-Black", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--docs-card-muted);
}

.docs-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--docs-card-line);
}

.docs-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0.1rem;
  border-bottom: 1px solid var(--docs-card-line);
  text-decoration: none;
  color: var(--docs-card-fg);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.docs-list-item:hover {
  color: var(--docs-accent);
  padding-left: 0.35rem;
}

.docs-list-item h3 {
  margin: 0 0 0.25rem;
  font-family: "Satoshi-Black", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.docs-list-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--docs-card-muted);
}

.docs-list-item:hover p {
  color: inherit;
  opacity: 0.8;
}

.docs-list-meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--docs-card-muted);
  white-space: nowrap;
}

.docs-foot-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--docs-card-muted);
}

.docs-foot-note a {
  color: var(--docs-accent);
  text-decoration: none;
}

.docs-foot-note a:hover {
  text-decoration: underline;
}

/* Published viewer */
.docs-viewer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1.5rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.25rem 1.25rem 4rem;
}

.docs-card {
  background: var(--docs-card);
  color: var(--docs-card-fg);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--docs-shadow);
  animation: docsRise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.docs-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #ddd6cb;
}

.docs-banner.is-hidden {
  display: none;
}

.docs-card-body {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.75rem) 3rem;
}

.docs-card-title {
  margin: 0 0 0.5rem;
  font-family: "Satoshi-Black", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.docs-card-meta {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--docs-card-muted);
}

.docs-article {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--docs-card-fg);
}

.docs-article h1,
.docs-article h2,
.docs-article h3,
.docs-article h4 {
  font-family: "Satoshi-Black", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 1.75em 0 0.55em;
  scroll-margin-top: 5.25rem;
}

.docs-article h1 {
  font-size: 1.65rem;
}
.docs-article h2 {
  font-size: 1.35rem;
}
.docs-article h3 {
  font-size: 1.15rem;
}

.docs-article p {
  margin: 0 0 1em;
}

.docs-article a {
  color: var(--docs-accent);
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.docs-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--docs-code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.docs-article pre {
  background: #1a1a1a;
  color: #f5f5f5;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  overflow: auto;
  margin: 0 0 1.25em;
}

.docs-article pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.docs-toc {
  position: sticky;
  top: 5.25rem;
  padding: 0.5rem 0 2rem;
  animation: docsRise 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.docs-toc-header {
  font-family: "Satoshi-Black", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.85rem;
}

html[data-theme="light"] .docs-toc-header {
  color: rgba(255, 255, 255, 0.7);
}

.docs-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.docs-toc-list a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-toc-list a:hover,
.docs-toc-list a.active {
  color: #fff;
  border-left-color: var(--docs-accent);
}

html[data-theme="light"] .docs-toc-list a {
  color: rgba(20, 20, 20, 0.55);
}

html[data-theme="light"] .docs-toc-list a:hover,
html[data-theme="light"] .docs-toc-list a.active {
  color: var(--docs-toc-active, #d24e1a);
}

.docs-toc-list .toc-h3 {
  padding-left: 1.35rem;
  font-size: 0.78rem;
}
.docs-toc-list .toc-h4 {
  padding-left: 1.75rem;
  font-size: 0.74rem;
}

.docs-error {
  padding: 2rem;
  color: #fff;
}

@media (max-width: 960px) {
  .docs-viewer {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .docs-topbar-text {
    font-size: 0.78rem;
  }

  .docs-topbar-link {
    display: none;
  }

  .docs-index {
    padding-top: 4.75rem;
  }

  .docs-viewer {
    padding-top: 4.75rem;
  }

  .docs-card {
    border-radius: 16px;
  }
}
