/* Agent Gateway — Docs additions on top of /learn/style.css (The Gate identity).
   Same site as mandategate.com, so the base :root is shared on purpose; this file
   only adds developer-doc specifics (code blocks, endpoint and decision pills,
   reason-code tables). The clone-trap rule applies across languages, not pages. */

.read-wide { max-width: 860px; margin: 0 auto; padding: 0 26px; }

/* multi-line code blocks */
.prose pre, .read-wide pre {
  background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; margin: 18px 0;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.62; color: #C7D0DA;
}
.prose pre code, .read-wide pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.prose pre .c { color: var(--allow); }      /* highlighted token (keys, decisions) */
.prose pre .d { color: var(--muted-dim); }  /* dimmed comment */

/* endpoint badge */
.endpoint {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 14.5px;
  padding: 12px 16px; background: var(--bg-soft);
  border: 1px solid var(--border-soft); border-radius: 10px; margin: 16px 0 8px;
}
.m { font-weight: 700; font-size: 11.5px; padding: 3px 9px; border-radius: 6px; letter-spacing: .04em; }
.m-get { background: rgba(52,226,155,.14); color: var(--allow); }
.m-post { background: rgba(247,185,85,.16); color: var(--review); }
.ep-path { color: var(--text); }
.ep-auth { margin-left: auto; font-size: 11px; color: var(--muted-dim); letter-spacing: .04em; }

/* decision + namespace pills */
.pill { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; letter-spacing: .03em; white-space: nowrap; }
.pill-allow { background: rgba(52,226,155,.14); color: var(--allow); }
.pill-deny { background: rgba(255,92,92,.15); color: var(--deny); }
.pill-review { background: rgba(247,185,85,.16); color: var(--review); }
.pill-skip { background: var(--bg-soft); color: var(--muted-dim); border: 1px solid var(--border-soft); }
.pill-reserved { background: var(--bg-soft); color: var(--muted-dim); border: 1px dashed var(--border); }
table.rc tr.reserved td.code { color: var(--muted-dim); }

/* reason-code table: mono first column, tight rows */
table.rc { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rc th, table.rc td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
table.rc thead th { background: var(--bg-soft); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
table.rc tr:last-child td { border-bottom: none; }
table.rc td.code { font-family: var(--font-mono); font-size: 12.5px; color: var(--allow); white-space: nowrap; }
table.rc td.eff { white-space: nowrap; }

/* namespace section header */
.ns-head { display: flex; align-items: center; gap: 12px; margin: 38px 0 6px; }
.ns-head h2 { margin: 0; }
.ns-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted-dim); border: 1px solid var(--border-soft); border-radius: 6px; padding: 2px 8px; }

/* params definition list */
dl.params { margin: 18px 0; }
dl.params dt { font-family: var(--font-mono); font-size: 13.5px; color: var(--text); margin-top: 16px; }
dl.params dt .req { color: var(--deny); font-size: 11px; margin-left: 8px; }
dl.params dt .opt { color: var(--muted-dim); font-size: 11px; margin-left: 8px; }
dl.params dd { color: #C7D0DA; font-size: 15px; margin: 5px 0 0; padding-left: 0; }

/* doc cards reuse .cards from learn; small tweak for kind label */
.card .kind.api { color: var(--review); }
