/* =============================================================================
   AdStar landing — docs.css
   The text pages served at a clean address: /about and /developers. The landing's
   tokens, bar and footer (base, layout, nav, footer .css) with a reading column.
   Class names start with doc-, never ad- (ad blockers hide those).
   ========================================================================== */

html.doc-page {
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --lime-tint: rgba(218, 251, 9, 0.12);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html.doc-page { scroll-behavior: auto; } }

/* The bar is transparent until the page scrolls; a text page starts under it. */
.doc {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 120px;
}
.doc__inner {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.doc__eyebrow {
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.doc h1 {
  margin-top: 14px;
  font-size: var(--fs-display-lg);
  line-height: var(--lh-display-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
}
.doc__lead {
  margin-top: 20px;
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  color: var(--gray-200);
}

.doc h2 {
  margin-top: 72px;
  font-size: var(--fs-display-sm);
  line-height: var(--lh-display-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
  scroll-margin-top: 96px;
}
.doc h3 {
  margin-top: 36px;
  font-size: var(--fs-xl);
  line-height: var(--lh-xl);
  font-weight: 600;
  color: var(--text-primary);
  scroll-margin-top: 96px;
}
.doc p,
.doc li {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--gray-300);
}
.doc p { margin-top: 16px; }
.doc b, .doc strong { color: var(--text-primary); font-weight: 600; }
.doc ul,
.doc ol {
  margin-top: 16px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li::marker { color: var(--gray-600); }

.doc a {
  color: var(--brand-600);
  text-decoration: underline;
  text-decoration-color: rgba(218, 251, 9, 0.4);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
.doc a:hover { color: var(--brand-500); text-decoration-color: currentColor; }

.doc code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gray-775);
  color: var(--gray-50);
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.doc pre {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #0b0b0b;
  border: 1px solid var(--gray-750);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-100);
}
.doc pre code { padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }

/* Sections of the page, as a row of links under the lead */
.doc-toc {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc-toc a,
.doc-tools__index a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding-inline: 12px;
  border: 1px solid var(--gray-750);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--gray-200);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.doc-toc a:hover,
.doc-tools__index a:hover { border-color: var(--brand-800); color: var(--text-primary); }

/* A table that scrolls sideways inside its frame on a phone */
.doc-table {
  margin-top: 16px;
  border: 1px solid var(--gray-750);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.doc-table table { width: 100%; border-collapse: collapse; }
.doc-table th,
.doc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-800);
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--gray-300);
}
.doc-table th {
  background: var(--gray-900);
  color: var(--gray-400);
  font-weight: 600;
  white-space: nowrap;
}
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td:first-child { white-space: nowrap; }

/* The tool reference: an index of names, then one block per tool (written by McpDocs) */
.doc-tools__index { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-tools__index a { height: 28px; padding-inline: 10px; }
.doc-tools__index code { padding: 0; background: none; color: inherit; font-size: 12px; }

.doc-tool {
  margin-top: 20px;
  padding: 20px 22px 22px;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  scroll-margin-top: 96px;
}
.doc .doc-tool__name {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
}
.doc-tool__name code { padding: 0; background: none; color: var(--text-primary); font-size: 1em; font-weight: 600; }
.doc-tool p { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.6; }
.doc .doc-tool__none { color: var(--gray-500); }

.doc-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding-inline: 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.doc-tag--spend { background: var(--lime-tint); color: var(--brand-600); }
.doc-tag--card  { background: var(--gray-750); color: var(--gray-200); }
.doc-tag--plain { background: var(--gray-800); color: var(--gray-400); }

/* The footer's glow is drawn for a taller page end; a text page keeps it short. */
.doc-page .footer { min-height: 320px; }

@media (max-width: 767px) {
  .doc { padding-top: calc(var(--nav-h-mobile) + 36px); padding-bottom: 80px; }
  .doc__inner { padding-inline: var(--gutter-mobile); }
  .doc h1 { font-size: 34px; line-height: 42px; }
  .doc h2 { margin-top: 56px; font-size: var(--fs-display-xs); line-height: var(--lh-display-xs); }
  .doc-tool { padding: 16px; }
}
