/* getting-started-page.css — /getting-started docs (scoped .tt-gs-docs-page / .tt-gs-docs) */

.theme--dark .tt-gs-docs-page,
body.theme--dark .tt-gs-docs-page {
  --tt-bg-0: #000000;
  --tt-fg-0: #d0d0d0;
  --tt-accent: #2962ff;
  --tt-border: rgba(255, 255, 255, 0.12);
  --tt-surface: rgba(255, 255, 255, 0.03);
  --tt-surface-glass: rgba(255, 255, 255, 0.05);
  --tt-muted: rgba(255, 255, 255, 0.72);
  --tt-shadow: rgba(0, 0, 0, 0.35);
  --tt-gs-header-offset: 140px;
}

.theme--light .tt-gs-docs-page,
body.theme--light .tt-gs-docs-page {
  --tt-bg-0: #ffffff;
  --tt-fg-0: #181818;
  --tt-accent: #2962ff;
  --tt-border: rgba(0, 0, 0, 0.12);
  --tt-surface: rgba(0, 0, 0, 0.02);
  --tt-surface-glass: rgba(0, 0, 0, 0.03);
  --tt-muted: rgba(0, 0, 0, 0.65);
  --tt-shadow: rgba(0, 0, 0, 0.08);
  --tt-gs-header-offset: 140px;
}

.tt-gs-docs-page {
  background: var(--tt-bg-0);
  color: var(--tt-fg-0);
}

/* Beat crocus-theme.css `#page { overflow: hidden }` (id beats class) — sticky needs visible overflow */
#page.tt-gs-docs-page {
  overflow: visible;
}

.tt-gs-docs-page .inner-page-hero {
  padding-top: var(--tt-gs-header-offset) !important;
  padding-bottom: 48px !important;
}

.tt-gs-docs {
  --tt-gs-sidebar-w: 280px;
}

.tt-gs-docs__shell {
  position: relative;
}

.tt-gs-docs__nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.45);
}

.tt-gs-docs__layout {
  display: grid;
  grid-template-columns: var(--tt-gs-sidebar-w) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.tt-gs-docs__sidebar {
  position: sticky;
  top: var(--tt-gs-header-offset);
  height: calc(100vh - var(--tt-gs-header-offset));
  max-height: calc(100vh - var(--tt-gs-header-offset));
  overflow-y: auto;
  padding: 8px 16px 24px 0;
  border-right: 1px solid var(--tt-border);
  align-self: start;
}

.tt-gs-docs__nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tt-gs-docs__nav-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tt-muted);
}

.tt-gs-docs__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-gs-docs__nav-list li + li {
  margin-top: 4px;
}

.tt-gs-docs__nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--tt-fg-0);
  text-decoration: none;
  opacity: 0.78;
  transition: color 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tt-gs-docs__nav-link:hover,
.tt-gs-docs__nav-link:focus-visible {
  opacity: 1;
  color: var(--tt-accent);
  background: rgba(41, 98, 255, 0.08);
  text-decoration: none;
}

.tt-gs-docs__nav-link.is-active {
  opacity: 1;
  color: var(--tt-accent);
  background: rgba(41, 98, 255, 0.12);
  border-left-color: var(--tt-accent);
  font-weight: 600;
}

.tt-gs-docs__main {
  min-width: 0;
  min-height: 0;
  padding-bottom: 32px;
}

.tt-gs-docs__intro {
  margin-bottom: 28px;
}

.tt-gs-docs__nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--tt-border);
  background: var(--tt-surface-glass);
  color: var(--tt-fg-0);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.tt-gs-docs__nav-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tt-gs-docs__intro-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--tt-fg-0);
}

.tt-gs-docs__intro-subtitle {
  margin: 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--tt-muted);
}

.tt-gs-docs__sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.tt-gs-docs__section {
  scroll-margin-top: calc(var(--tt-gs-header-offset) + 16px);
}

.tt-gs-docs__section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--tt-fg-0);
}

.tt-gs-docs-page .tt-gs-docs__subhead {
  margin: 24px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--tt-fg-0);
}

.tt-gs-docs__lead {
  margin: 0 0 14px;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--tt-muted);
}

.tt-gs-docs__lead a {
  color: var(--tt-accent);
  text-decoration: none;
}

.tt-gs-docs__lead a:hover,
.tt-gs-docs__lead a:focus-visible {
  text-decoration: underline;
}

.tt-gs-docs-page .corp-page__list {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--tt-fg-0);
}

.tt-gs-docs-page .corp-page__list li + li {
  margin-top: 6px;
}

.tt-gs-docs__figure {
  margin: 16px 0 0;
  padding: 0;
}

.tt-gs-docs__figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  background: var(--tt-bg-0);
}

.tt-gs-docs__figure--dock {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.tt-gs-docs__figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tt-muted);
  text-align: center;
}

.tt-gs-docs__zones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tt-gs-docs__zones li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  background: var(--tt-surface);
}

.tt-gs-docs__zone-label {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--tt-fg-0);
}

.tt-gs-docs__zone-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--tt-muted);
}

.tt-gs-docs__cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--tt-border);
}

.tt-gs-docs__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--tt-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
  background: var(--tt-accent);
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tt-gs-docs__cta-btn:hover,
.tt-gs-docs__cta-btn:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff;
}

@media (min-width: 768px) {
  .tt-gs-docs__zones li {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .tt-gs-docs__zone-label {
    flex: 0 0 140px;
  }
}

@media (min-width: 1100px) {
  /* Match /products/api: scroll happens inside main; sidebar stays put */
  .tt-gs-docs__main {
    overflow-y: auto;
    max-height: calc(100vh - var(--tt-gs-header-offset));
    overscroll-behavior: contain;
  }

  .tt-gs-docs__sidebar {
    overscroll-behavior: contain;
  }

  .tt-gs-docs__section {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 1099px) {
  .tt-gs-docs-page {
    --tt-gs-header-offset: 120px;
  }

  .tt-gs-docs {
    padding: 0 16px;
  }

  .tt-gs-docs__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tt-gs-docs__nav-toggle {
    display: inline-flex;
  }

  .tt-gs-docs__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: min(300px, 88vw);
    height: 100vh;
    max-height: none;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    background: var(--tt-bg-0);
    border-right: 1px solid var(--tt-border);
    padding: calc(var(--tt-gs-header-offset) + 12px) 16px 24px;
    box-shadow: 4px 0 24px var(--tt-shadow);
  }

  .tt-gs-docs__sidebar.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 575px) {
  .tt-gs-docs__intro-title {
    font-size: 20px;
  }

  .tt-gs-docs__section h2 {
    font-size: 18px;
  }
}
