/* Docs pages (/docs/…), design node Egrre "Docs · MCP Server". Three columns on desktop:
   section nav (220) · content (680) · "at a glance" card (300), which with the 56px gaps and the
   64px gutters is exactly 1440. Tokens, header and footer come from styles.css. */

.docs-head { border-bottom: 1px solid var(--line); }
.docs-head .wrap { display: flex; flex-direction: column; gap: 20px; padding-block: 56px 48px; }
.docs-crumb { display: flex; gap: 10px; font: 400 12px/1.3 var(--font-mono); color: var(--muted); }
.docs-crumb span:last-child { color: var(--ink); }
.docs-title { display: flex; align-items: center; gap: 20px; }
.docs-tile { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--sun); box-shadow: 0 0 0 3px var(--paper); }
.docs-tile .lucide { width: 28px; height: 28px; }
.docs-title h1 { font: 800 52px/1.05 var(--font-display); letter-spacing: -1.8px; }
.docs-lede { max-width: 820px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.docs-meta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.docs-meta span { display: inline-flex; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1.2 var(--font-mono); letter-spacing: .3px; color: var(--ink); }
.docs-meta span:first-child { background: var(--sun-soft); }
.docs-meta b { font-weight: 400; color: var(--muted); }

.docs-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-block: 56px 120px; }

/* Section nav. Sticky below the site header; the inline script marks the section in view. */
.docs-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.docs-nav p { margin-bottom: 8px; font: 400 11px/1.3 var(--font-mono); letter-spacing: .8px; color: var(--muted); }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.docs-nav a + a { margin-top: 2px; }
.docs-nav a:hover { background: var(--paper-2); }
.docs-nav a.on { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; color: var(--ink); }

/* Content column */
.docs-main { display: flex; flex-direction: column; gap: 64px; min-width: 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.docs-main section { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 96px; }
.docs-kicker { font: 400 12px/1.3 var(--font-mono); letter-spacing: .6px; color: var(--muted); }
.docs-main h2 { margin-top: -6px; font: 700 34px/1.1 var(--font-display); letter-spacing: -.8px; color: var(--ink); }
.docs-main h3 { margin-top: 14px; font-size: 18px; font-weight: 600; color: var(--ink); }
.docs-main code { font: 400 .9em var(--font-mono); }
.docs-small { font-size: 14px; line-height: 1.6; color: var(--muted); }

.docs-list { display: flex; flex-direction: column; gap: 10px; }
.docs-list li { display: flex; gap: 12px; }
.docs-list .lucide { flex: none; width: 16px; height: 16px; margin-top: 5px; color: var(--ink); }

.docs-callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--sun-soft); font-size: 15px; color: var(--ink); }
.docs-callout .lucide { flex: none; width: 20px; height: 20px; margin-top: 2px; }

/* Setup steps; the last one (consent) is the step that matters, so its number is yellow. */
.docs-steps li { display: flex; gap: 18px; padding: 16px 0; font-size: 15px; }
.docs-steps li + li { border-top: 1px solid var(--line); }
.docs-steps .n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 600 13px var(--font-mono); color: var(--ink); }
.docs-steps li:last-child .n { background: var(--sun); box-shadow: none; }
.docs-steps div { padding-top: 4px; }
.docs-steps strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--ink); }

/* Bordered card shared by the client list and the reference tables. */
.docs-card { border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.docs-clients > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); font-size: 14px; line-height: 1.5; color: var(--ink); }
.docs-clients > div + div { border-top: 1px solid var(--line); }
.docs-clients > div > * { padding: 13px 14px; }
.docs-clients b { font-weight: 600; }
.docs-clients p { display: flex; flex-direction: column; gap: 8px; }
.docs-clients code { display: block; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

/* Example prompts */
.docs-examples > div { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.docs-examples > div:first-child { border-top: 1px solid var(--line); }
.docs-examples h3 { margin: 0; font: 600 21px/1.3 var(--font-display); letter-spacing: -.3px; }
.docs-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.docs-tools code { padding: 4px 9px; border-radius: 6px; background: var(--paper-2); font-size: 12px; color: var(--ink); }
.docs-tools code.w { background: var(--sun-soft); }
.docs-examples small { font-size: 13px; color: var(--muted); }

/* Reference tables (endpoints, scopes, tools) */
.docs-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; color: var(--ink); }
.docs-table th { padding: 12px 14px; text-align: left; background: var(--paper-2); font: 400 11px/1.3 var(--font-mono); letter-spacing: .6px; color: var(--muted); }
.docs-table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--line); }
.docs-table td.m { font: 400 13px/1.5 var(--font-mono); overflow-wrap: anywhere; }
.docs-table td:first-child:not(.m) { font-weight: 600; }

/* Label / value rows (data & privacy, revoking, limits) */
.docs-facts > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.docs-facts > div:first-child { border-top: 1px solid var(--line); }
.docs-facts dt { font-weight: 600; color: var(--ink); }
.docs-facts.big dt { font: 700 22px/1.2 var(--font-display); letter-spacing: -.4px; }

.docs-rules { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.docs-rules > div { padding-left: 16px; box-shadow: inset 3px 0 0 var(--sun); }
.docs-rules dt, .docs-qa dt { font-size: 16px; font-weight: 600; color: var(--ink); }

.docs-qa { display: flex; flex-direction: column; gap: 22px; font-size: 15px; }
.docs-qa dd { margin-top: 4px; }

/* Support links */
.docs-links { display: flex; flex-direction: column; gap: 12px; }
.docs-links > * { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.docs-links a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.docs-links .ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--paper-2); }
.docs-links .ic .lucide { width: 18px; height: 18px; }
.docs-links span:nth-child(2) { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.docs-links b { display: block; font: 600 14px/1.4 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.docs-links > * > .lucide { flex: none; width: 16px; height: 16px; color: var(--muted); }

/* At a glance */
.docs-glance { padding: 22px 22px 10px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.docs-glance > p { margin-bottom: 6px; font: 400 11px/1.3 var(--font-mono); letter-spacing: .8px; color: var(--muted); }
.docs-glance div { padding: 12px 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.docs-glance div + div { border-top: 1px solid var(--line); }
.docs-glance dt { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.docs-glance dd.m { font: 400 13px/1.5 var(--font-mono); overflow-wrap: anywhere; }

/* Below 1240 the glance card moves under the content; below 900 the section nav goes too
   (the page is one column and the sections are short enough to scroll). */
@media (max-width: 1240px) {
  .docs-body { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
  .docs-glance { grid-column: 2; }
}
@media (max-width: 900px) {
  .docs-body { grid-template-columns: minmax(0, 1fr); padding-block: 40px 80px; }
  .docs-nav { display: none; }
  .docs-glance { grid-column: auto; }
}
@media (max-width: 640px) {
  .docs-head .wrap { padding-block: 32px; gap: 16px; }
  .docs-title { gap: 14px; }
  .docs-tile { width: 44px; height: 44px; border-radius: 11px; }
  .docs-tile .lucide { width: 22px; height: 22px; }
  .docs-title h1 { font-size: 34px; letter-spacing: -1px; }
  .docs-lede { font-size: 17px; }
  .docs-meta span { padding: 6px 12px; overflow-wrap: anywhere; }
  .docs-main { gap: 48px; font-size: 15px; }
  .docs-main h2 { font-size: 28px; }
  .docs-clients > div, .docs-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .docs-clients > div > :first-child { padding-bottom: 0; }
  /* Phones: table rows stack, with the column name (data-label) above each value, so the
     three-column tools table never forces a horizontal scroll. */
  .docs-table thead { display: none; }
  .docs-table, .docs-table tbody, .docs-table tr, .docs-table td { display: block; width: 100%; }
  .docs-table tr + tr { border-top: 1px solid var(--line); }
  .docs-table td { border: 0; padding: 4px 14px; }
  .docs-table td:first-child { padding-top: 12px; }
  .docs-table td:last-child { padding-bottom: 12px; }
  .docs-table td[data-label]::before { content: attr(data-label); display: block; font: 400 11px/1.3 var(--font-mono); letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
}

/* Inline links in running text; the site reset strips underlines. */
.docs-main p a, .docs-main dd a { text-decoration: underline; text-underline-offset: 2px; }
/* The site reset doesn't cover <dd>'s default 40px indent. */
.docs-body dd { margin: 0; }
