/* Docs page — readable prose layout on top of the shared chrome.
   Mirrors the customer header/user-menu styles (instances.css /
   dashboard.css), adds typography for long-form content. */

.docs-main {
  /* Slightly tighter than the dashboard so prose stays readable on wide screens */
  max-width: 820px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.docs-article { display: block; }

.docs-hero {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.docs-hero h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.docs-lede {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  max-width: 64ch;
}

/* Tab bar — anchor hrefs drive the active tab via location.hash so
   /docs/#queue deep-links remain shareable. */
.docs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
}
.docs-tab {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -1px; /* tab visually overlaps the bottom border when active */
  text-transform: lowercase;
  letter-spacing: 0.005em;
}
.docs-tab:hover {
  color: var(--text-0);
  background: var(--bg-1);
}
.docs-tab.active {
  color: var(--text-0);
  background: var(--bg-1);
  border-color: var(--border);
  border-bottom-color: var(--bg-1);
  font-weight: 600;
}

/* Sections behave as tab panels — one visible at a time. */
.docs-section {
  display: none;
  margin: 0 0 36px;
}
.docs-section.active { display: block; }
.docs-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  text-transform: lowercase;
}
.docs-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin: 22px 0 8px;
  letter-spacing: 0.005em;
  text-transform: lowercase;
}
.docs-section p {
  color: var(--text-1);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.docs-section p strong { color: var(--text-0); font-weight: 600; }
.docs-section p em { color: var(--text-0); font-style: normal; font-weight: 500; }
.docs-section a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.docs-section a:hover { border-bottom-style: solid; }
.docs-section code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  padding: 1px 5px;
  border-radius: var(--radius);
  color: var(--text-0);
}

.docs-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.docs-list > li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--text-1);
  font-size: 13.5px;
  line-height: 1.55;
  border-top: 1px solid var(--border-soft);
}
.docs-list > li:first-child { border-top: 0; }
.docs-list > li::before {
  content: "›";
  position: absolute;
  left: 2px; top: 6px;
  color: var(--text-3);
  font-family: var(--mono);
}
.docs-list strong { color: var(--text-0); font-weight: 600; }
.docs-list em { color: var(--text-0); font-style: normal; font-weight: 500; }

.docs-price {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-0);
  background: var(--bg-3);
  border-radius: var(--radius);
}
.docs-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
  font-style: italic;
}

.docs-callout {
  border: 1px solid var(--border-strong);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 16px 0;
  background: var(--bg-1);
}
.docs-callout-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 6px;
  letter-spacing: 0.005em;
  text-transform: lowercase;
}
.docs-callout p:last-child { margin-bottom: 0; }
.docs-callout-info  { border-left-color: var(--green); }
.docs-callout-warn  { border-left-color: var(--yellow); }

.docs-tip {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--text-3);
  background: var(--bg-1);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.docs-pre {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow-x: auto;
}

.docs-pre code {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  white-space: pre;
  line-height: 1.55;
  font-size: 12px;
}

@media (max-width: 720px) {
  .docs-main { padding-top: 18px; }
  .docs-hero h2 { font-size: 19px; }
}
