/* Docs pages — light chrome + readable content */
.docs-page {
  background: var(--paper);
}

.docs-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.docs-main h1 {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.docs-main .lede {
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 42rem;
}

.docs-main h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.2rem 0 0.7rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.docs-main h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin: 1.5rem 0 0.55rem;
  color: var(--orange);
}

.docs-main p {
  color: var(--ink-muted);
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.docs-main blockquote {
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  padding: 0.75rem 1rem;
  margin: 0 0 1.2rem;
  border-radius: 0 6px 6px 0;
}

.docs-main blockquote p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.docs-main hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.docs-main .table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.docs-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.docs-main th,
.docs-main td {
  text-align: left;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.docs-main th {
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 650;
}

.docs-main td {
  color: var(--ink-muted);
}

.docs-main td:first-child,
.docs-main td:nth-child(2) {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
}

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

.docs-main pre {
  background: #1a1714;
  color: #e8e4dc;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0.6rem 0 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.docs-main pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.docs-note {
  margin-top: 2.5rem;
  font-size: 0.88rem !important;
}

/* Embedded app docs (manual / script-help): keep their dark look,
   only overlay the shared site header at the top */
body.embedded-doc {
  /* Ensure shared site CSS does not force the light landing palette */
  color: inherit;
  background: inherit;
}

.embedded-doc .site-header {
  background: #111;
  border-bottom: 1px solid #2a2a2a;
  max-width: none;
}

.embedded-doc .brand {
  color: #e0e0e0;
}

.embedded-doc .brand:hover {
  color: #fff;
}

.embedded-doc .site-nav a {
  color: #999;
}

.embedded-doc .site-nav a:hover,
.embedded-doc .site-nav a.active {
  color: var(--orange);
}

.embedded-doc .site-footer {
  max-width: none;
  background: transparent;
  border-top-color: #2a2a2a;
  color: #777;
}

.embedded-doc .site-footer a {
  color: #999;
}
