/* The AI agent docs page (/agents/) on top of pages.css, and the home page's top-right link to it. */

/* home: the link in the top-right corner, opposite the lockup */
.top-link { position: absolute; z-index: 3; right: var(--edge); top: 14px; padding: 8px 14px; border-radius: var(--r-chip); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: var(--text-small); font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s; }
.top-link:hover, .top-link:focus-visible { border-color: var(--yellow); color: var(--yellow); }
.js .top-link { animation: dropIn .8s cubic-bezier(.2, .9, .2, 1) .12s both; }
html.hit .top-link { animation: hit .16s steps(4, end); }
@media (min-width: 900px) { .top-link { top: 25px; } }

/* the copy-link row under the lede */
.md-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -8px 0 24px; }
.md-link a { color: var(--muted); font-size: var(--text-small); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.md-link a:hover { color: var(--yellow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* code blocks with their own copy button */
.snip { position: relative; margin: 0 0 14px; }
.snip pre { margin: 0; padding: 14px 16px; padding-right: 76px; border-radius: 14px; background: rgba(3, 4, 24, .72); border: 1px solid var(--line); overflow-x: auto; font: .84rem/1.55 var(--font-mono); color: #fff; }
.snip pre code { font: inherit; background: none; padding: 0; border-radius: 0; white-space: pre; }
.snip-copy { position: absolute; top: 8px; right: 8px; padding: 6px 12px; border-radius: var(--r-chip); background: var(--surface-solid); box-shadow: -10px 0 12px rgba(3, 4, 24, .9); border: 1px solid var(--line); color: var(--text); font: 700 .78rem/1 var(--font-body, inherit); cursor: pointer; transition: border-color .2s, color .2s; }
.snip-copy:hover, .snip-copy:focus-visible { border-color: var(--yellow); color: var(--yellow); }

/* tables scroll inside their card, never the page */
.tbl { margin: 0 0 16px; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.tbl table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: var(--text-small); }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #DDE0FA; }
.tbl th { color: #fff; font-weight: 800; background: rgba(255, 255, 255, .05); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child code { white-space: nowrap; }
#limits .tbl table { min-width: 0; }

.top-links { position: absolute; z-index: 3; right: var(--edge); top: 14px; display: flex; gap: 8px; }
.top-links .top-link { position: static; }
@media (min-width: 900px) { .top-links { top: 25px; } }
