:root {
  --docs-bg: #f5f7fb;
  --docs-surface: #ffffff;
  --docs-surface-muted: #f8fafc;
  --docs-border: #d8e0ec;
  --docs-border-strong: #c4d1e2;
  --docs-text: #162131;
  --docs-text-muted: #536276;
  --docs-accent: #285ea8;
  --docs-accent-soft: #e7f0fb;
  --docs-success-soft: #edf8f1;
  --docs-warning-soft: #fff7e6;
  --docs-shadow: 0 14px 40px rgba(28, 41, 61, 0.08);
  --docs-code-bg: #edf2f8;
  --docs-sidebar-width: 264px;
  --docs-content-width: 820px;
}

body.docs-page {
  color: var(--docs-text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

body.docs-page::before {
  background-image: none;
}

.docs-page .site-shell {
  width: min(calc(100% - 32px), 1320px);
  padding-bottom: 44px;
}

.docs-page .topbar {
  top: 12px;
  margin: 12px 0 24px;
  border: 1px solid var(--docs-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(19, 33, 52, 0.06);
  backdrop-filter: blur(10px);
}

.docs-page .brand,
.docs-page .nav a {
  color: var(--docs-text);
}

.docs-page .nav a.is-active,
.docs-page .nav a:hover,
.docs-page .nav a:focus-visible {
  color: var(--docs-accent);
}

.docs-page .nav a::after {
  background: linear-gradient(90deg, rgba(40, 94, 168, 0.78), rgba(40, 94, 168, 0));
}

.docs-page .button-outline {
  border-color: var(--docs-border);
  background: #fff;
  color: var(--docs-text);
}

.docs-page .button-outline:hover,
.docs-page .button-outline:focus-visible {
  border-color: var(--docs-border-strong);
  background: var(--docs-surface-muted);
}

.docs-page .button {
  box-shadow: 0 10px 24px rgba(40, 94, 168, 0.18);
}

.docs-page .footer {
  border-top-color: var(--docs-border);
}

.docs-page .footer,
.docs-page .footer a {
  color: var(--docs-text-muted);
}

.docs-page .section {
  padding: 24px 0;
}

.docs-page .hero {
  min-height: auto;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-top: 8px;
}

.docs-hero-copy {
  max-width: var(--docs-content-width);
}

.docs-page .eyebrow {
  margin-bottom: 10px;
  color: var(--docs-accent);
  letter-spacing: 0.13em;
}

.docs-hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.docs-page h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.docs-page h3 {
  color: var(--docs-text);
}

.docs-page .hero-kicker {
  margin-top: 12px;
  color: var(--docs-text);
  font-size: 1.06rem;
}

.docs-page .hero-text,
.docs-page .section-copy,
.docs-page .card p,
.docs-page .timeline-step p {
  color: var(--docs-text-muted);
}

.docs-page .hero-text {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.docs-summary {
  max-width: var(--docs-content-width);
}

.docs-summary-card,
.docs-callout,
.docs-shot,
.docs-step,
.docs-related-card,
.docs-faq-item,
.docs-mini-card,
.docs-content-section,
.docs-sidebar {
  border: 1px solid var(--docs-border);
  border-radius: 18px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
  backdrop-filter: none;
}

.docs-summary-card,
.docs-callout,
.docs-related-card,
.docs-faq-item,
.docs-mini-card {
  padding: 20px;
}

.docs-summary-card p,
.docs-callout p,
.docs-related-card p,
.docs-faq-item p,
.docs-mini-card p,
.docs-note {
  color: var(--docs-text-muted);
}

.docs-kicker-list,
.docs-checklist,
.docs-links,
.docs-bullets {
  color: var(--docs-text-muted);
}

.docs-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, var(--docs-content-width));
  gap: 28px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.docs-sidebar h2 {
  margin-bottom: 14px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.docs-sidebar-group + .docs-sidebar-group {
  margin-top: 18px;
}

.docs-sidebar-group-title {
  margin: 0 0 10px;
  color: var(--docs-accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.docs-sidebar-links {
  display: grid;
  gap: 8px;
}

.docs-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--docs-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible,
.docs-sidebar .docs-sidebar-current {
  color: var(--docs-accent);
  background: var(--docs-accent-soft);
}

.docs-content {
  display: grid;
  gap: 20px;
}

.docs-content-section {
  padding: 28px 30px;
  background: var(--docs-surface);
}

.docs-content-section > h2 {
  margin-bottom: 10px;
}

.docs-content-section > p {
  margin: 0 0 18px;
  color: var(--docs-text-muted);
  line-height: 1.75;
}

.docs-mini-grid,
.docs-related-grid,
.docs-shot-grid,
.docs-faq-grid {
  display: grid;
  gap: 16px;
}

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

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

.docs-callout {
  background: var(--docs-surface-muted);
  border-left: 4px solid var(--docs-accent);
}

.docs-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--docs-text);
}

.docs-steps {
  display: grid;
  gap: 14px;
}

.docs-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  box-shadow: none;
}

.docs-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
  font-weight: 800;
}

.docs-step h3 {
  margin-bottom: 6px;
}

.docs-step p {
  margin: 0;
  color: var(--docs-text-muted);
  line-height: 1.7;
}

.docs-step-meta {
  margin-top: 10px;
  color: var(--docs-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.docs-shot {
  overflow: hidden;
}

.docs-shot-frame {
  position: relative;
  min-height: 250px;
  padding: 16px;
  background:
    linear-gradient(180deg, #fcfdff 0%, #f2f6fb 100%);
  border-bottom: 1px solid var(--docs-border);
}

.docs-shot-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff8a80;
  box-shadow: 14px 0 0 #ffd180, 28px 0 0 #a5d6a7;
}

.docs-shot-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-shot-placeholder {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.docs-shot-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6e5f7, #eef4fb);
}

.docs-shot-line.short {
  width: 38%;
}

.docs-shot-line.medium {
  width: 62%;
}

.docs-shot-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.docs-shot-tile {
  min-height: 92px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #fff;
}

.docs-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--docs-border);
}

.docs-shot-caption {
  padding: 18px 20px 20px;
}

.docs-shot-caption strong {
  display: block;
  margin-bottom: 8px;
}

.docs-shot-caption p {
  margin: 0;
  color: var(--docs-text-muted);
  line-height: 1.7;
}

.docs-related-card {
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.docs-related-card:hover,
.docs-related-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--docs-border-strong);
  box-shadow: 0 10px 22px rgba(21, 36, 56, 0.06);
}

.docs-related-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--docs-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.docs-mini-card {
  box-shadow: none;
}

.docs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  overflow: hidden;
}

.docs-table th,
.docs-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--docs-border);
}

.docs-table th {
  background: #f7f9fc;
  color: var(--docs-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-table td {
  color: var(--docs-text-muted);
  line-height: 1.65;
  background: #fff;
}

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

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

.docs-page code {
  padding: 0.12rem 0.42rem;
  border-radius: 6px;
  background: var(--docs-code-bg);
  color: var(--docs-text);
}

@media (max-width: 1100px) {
  .docs-layout,
  .docs-mini-grid,
  .docs-related-grid,
  .docs-shot-grid,
  .docs-faq-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .docs-page .site-shell {
    width: min(calc(100% - 20px), 1320px);
  }

  .docs-page .topbar {
    border-radius: 14px;
  }

  .docs-content-section {
    padding: 22px 20px;
  }

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

  .docs-shot-frame {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-related-card,
  .docs-page .topbar,
  .docs-page .button {
    transition: none;
  }
}
