/* The For agents page. Built on help-pages.css (hero, kickers, numbered
   lists, closing band). */
.agent-section { margin: 64px 0 0; }
.agent-section h2 { margin: 0; color: var(--pc-ink); font-size: clamp(28px, 7vw, 44px); font-weight: 650; line-height: 1.08; letter-spacing: -.035em; }
.agent-copy-text { max-width: 680px; margin: 16px 0 0; color: var(--pc-muted); font-size: 16px; line-height: 1.7; }
.agent-copy-text a, .agent-fields a, .agent-machine a { color: var(--pc-ink); font-weight: 650; }
.agents-page code { padding: 1px 6px; border-radius: 6px; color: var(--pc-ink); background: var(--pc-soft); font: 500 .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.agent-endpoints { display: grid; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 640px; }
.agent-endpoints li { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; gap: 12px; padding: 12px 14px; border: 1px solid var(--pc-line); border-radius: 12px; background: var(--pc-surface); }
.agent-endpoints span { color: var(--faq-brand); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.agent-endpoints code { padding: 0; background: none; }
.agent-endpoints a { text-decoration: none; }

.agent-code { margin: 20px 0 0; border-radius: 14px; overflow: hidden; background: #0f1a33; box-shadow: var(--pc-shadow); }
.agent-code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #a9b8f5; border-bottom: 1px solid #ffffff1a; font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.agent-copy { min-height: 32px; padding: 4px 12px; border: 1px solid #ffffff33; border-radius: 8px; color: #fff; background: transparent; font: inherit; cursor: pointer; }
.agent-copy:hover { background: #ffffff14; }
.agent-copy:focus-visible { outline: 3px solid #8c9ded; outline-offset: 2px; }
.agent-code pre { margin: 0; padding: 16px; overflow-x: auto; color: #e6ecff; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.agent-code pre code { padding: 0; color: inherit; background: none; font: inherit; overflow-wrap: normal; white-space: pre; }

.agent-fields, .agent-actions { margin: 24px 0 0; border-top: 1px solid var(--pc-line); }
.agent-fields > div, .agent-actions > div { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--pc-line); }
.agent-fields dt, .agent-actions dt { color: var(--pc-ink); font-weight: 650; }
.agent-fields dd, .agent-actions dd { margin: 0; color: var(--pc-muted); line-height: 1.75; }
.agent-actions dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.agent-actions small { margin: 0 6px 0 -4px; color: #b4530a; font-size: 12px; font-weight: 600; }

.agent-rules { display: grid; gap: 16px; margin: 24px 0 0; }
.agent-rules > div { padding: 22px; border: 1px solid var(--pc-line); border-radius: 16px; background: var(--pc-surface); }
.agent-rules h3 { margin: 0; color: var(--pc-ink); font-size: 17px; font-weight: 650; }
.agent-rules ul { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--pc-muted); font-size: 15px; line-height: 1.65; }
.agent-rules li + li { margin-top: 8px; }

.agent-machine { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--pc-line); }
.agent-machine li { padding: 16px 0; border-bottom: 1px solid var(--pc-line); }
.agent-machine p { margin: 4px 0 0; color: var(--pc-muted); line-height: 1.6; }
.about-chapters .agent-code { margin-top: 14px; }


@media (min-width: 760px) {
  .agent-rules { grid-template-columns: repeat(3, 1fr); }
  .agent-fields > div, .agent-actions > div { grid-template-columns: 220px 1fr; gap: 24px; }
}
body.dark-mode .agent-actions small { color: var(--pc-orange, #ffad63); }
.agent-endpoints .agent-code figcaption span { color: #a9b8f5; }
