/* CacheDeep docs — thin layer on landing tokens (overlay.css). Force light. */

html.theme-light,
html[data-theme="light"] {
  color-scheme: light !important;
}

body.cd-docs {
  min-height: 100vh;
  margin: 0;
  color: var(--volt-ink);
  font-family: var(--volt-sans);
  background-color: #f7f7f5;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--volt-ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--volt-ink) 7%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.cd-docs .volt-page_shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 120px;
}

/* Pill topbar — landing craft, not grey card chrome */
.cd-docs .volt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 16px;
  margin-bottom: 48px;
  border: 1.5px solid var(--volt-ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

.cd-docs .volt-topbar_nav {
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cd-docs .volt-topbar_nav a {
  font-variation-settings: "wght" 520;
}

.cd-docs .volt-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero — brand-first composition, no card stack */
.cd-docs_hero {
  padding: 8px 4px 28px;
  border-bottom: 1px solid var(--volt-border);
  margin-bottom: 28px;
}

.cd-docs_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--volt-main);
  color: #000;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-variation-settings: "wght" 650;
  margin-bottom: 18px;
}

.cd-docs_hero h1 {
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 16px;
  max-width: 16ch;
  font-variation-settings: "wght" 680;
}

.cd-docs_hero .lead {
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.45;
  color: color-mix(in srgb, var(--volt-ink) 72%, transparent);
  margin: 0;
}

.cd-docs_hero .lead code {
  font-family: var(--volt-mono);
  font-size: 0.92em;
  padding: 0.05em 0.3em;
  border: 1px solid var(--volt-border);
  border-radius: 4px;
  background: #fff;
}

/* Anchor / tab chips — like landing mid actions */
.cd-docs_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.cd-docs_tabs a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--volt-ink);
  font-size: 14px;
  font-variation-settings: "wght" 540;
  box-shadow: inset 0 0 0 1.5px var(--volt-border);
  background: #fff;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    font-variation-settings 160ms ease;
}

.cd-docs_tabs a:hover,
.cd-docs_tabs a:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--volt-ink);
  font-variation-settings: "wght" 620;
  outline: none;
}

.cd-docs_tabs a.is-active {
  background: #111;
  color: #fff;
  box-shadow: none;
  font-variation-settings: "wght" 620;
}

/* Sections — thin rules, not rounded grey card stack as hero */
.cd-docs_section {
  padding: 28px 0;
  border-bottom: 1px solid var(--volt-border);
  scroll-margin-top: 96px;
}

.cd-docs_section:last-of-type {
  border-bottom: 0;
}

.cd-docs_section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.035em;
  font-variation-settings: "wght" 650;
}

.cd-docs_section > p {
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--volt-ink) 78%, transparent);
}

/* Three steps — lime wash plane */
.cd-docs_steps {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: color-mix(in srgb, var(--volt-main) 28%, #fff);
  border: 1px solid color-mix(in srgb, var(--volt-ink) 12%, transparent);
  border-radius: 4px;
}

.cd-docs_step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--volt-ink) 14%, transparent);
  border-radius: 999px;
}

.cd-docs_step_n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-variation-settings: "wght" 650;
  flex: none;
}

.cd-docs_step h3 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-variation-settings: "wght" 620;
}

.cd-docs_step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--volt-muted);
}

.cd-docs_step code {
  font-family: var(--volt-mono);
  font-size: 0.92em;
  color: var(--volt-ink);
}

@media (max-width: 640px) {
  .cd-docs_step {
    border-radius: 16px;
  }
}

/* CTAs */
.cd-docs_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cd-docs_actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-variation-settings: "wght" 600;
}

.cd-docs_actions a.is-solid {
  background: #111;
  color: #fff;
}

.cd-docs_actions a.is-lime {
  background: var(--volt-main);
  color: #000;
  border: 1.5px solid #111;
}

.cd-docs_actions a.is-ghost {
  background: #fff;
  color: var(--volt-ink);
  box-shadow: inset 0 0 0 1.5px var(--volt-ink);
}

/* Code panels — restrained hairline, not heavy black blocks */
.cd-docs_code {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--volt-border);
  border-radius: 4px;
  background: #fff;
  color: var(--volt-ink);
  font: 13px/1.55 var(--volt-mono);
  overflow-x: auto;
  white-space: pre;
}

.cd-docs_code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.cd-docs_code-tabs button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-variation-settings: "wght" 540;
  background: #fff;
  color: var(--volt-ink);
  box-shadow: inset 0 0 0 1.5px var(--volt-border);
}

.cd-docs_code-tabs button.is-active {
  background: var(--volt-main);
  box-shadow: inset 0 0 0 1.5px #111;
  font-variation-settings: "wght" 650;
}

.cd-docs_panel[hidden] {
  display: none !important;
}

/* Auth header sample */
.cd-docs_auth {
  display: grid;
  gap: 10px;
}

.cd-docs_auth_row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--volt-border);
  font-size: 14px;
}

.cd-docs_auth_row:last-child {
  border-bottom: 0;
}

.cd-docs_auth_row dt {
  margin: 0;
  font-variation-settings: "wght" 620;
  color: var(--volt-muted);
  font-size: 13px;
}

.cd-docs_auth_row dd {
  margin: 0;
  font-family: var(--volt-mono);
  font-size: 13px;
}

/* Pricing table — thin rules */
.cd-docs .volt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--volt-border);
  border-radius: 4px;
  overflow: hidden;
}

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

.cd-docs .volt-table th {
  font-variation-settings: "wght" 620;
  background: color-mix(in srgb, var(--volt-main) 18%, #fff);
}

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

.cd-docs .volt-table .cd-price {
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wght" 650;
}

.cd-docs_note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--volt-muted);
  max-width: 56ch;
}

@media (max-width: 720px) {
  .cd-docs .volt-topbar {
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }

  .cd-docs .volt-topbar_nav {
    justify-content: flex-start;
  }

  .cd-docs_auth_row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
