/* The AI-assistant pages (/ai-assistants/, /chatgpt/, /claude/, /cursor/): the server address, setup cards per
   client, code with copy buttons, example prompts. Loaded only by those pages (tools/web/assistants.py), on top of
   site.css; same tokens, light only. */

.assist code, .assist kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .875em; }
.assist p code, .assist li code, .assist th code { padding: 1px 5px; border-radius: 6px; background: var(--panel); color: var(--ink); overflow-wrap: anywhere; }
.assist th code { margin-inline-start: 4px; font-size: .8125em; font-weight: 400; color: var(--ink-3); }
.assist kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
.assist h3 { margin: 26px 0 8px; }
.assist h4.client-variant { margin: 18px 0 6px; font-size: .9375rem; font-weight: 600; color: var(--ink); }

/* The address box under the lede */
.mcp-address { margin: 22px 0 18px; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }
.doc .mcp-address-label { margin: 0 0 6px; font-size: .8125rem; font-weight: 600; letter-spacing: .01em; color: var(--on-pc); }
.mcp-address-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mcp-address-row code { flex: 1 1 auto; min-width: 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.doc .mcp-address-note { margin: 8px 0 0; font-size: .875rem; color: var(--ink-3); }

/* Jump links to the setup cards */
.client-jump { margin: 0 0 22px; }
.doc .client-jump p { margin: 0 0 8px; font-size: .875rem; color: var(--ink-3); }
.doc .client-jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.doc .client-jump li { margin: 0; }
.doc .client-jump a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .875rem; text-decoration: none; background: var(--surface); }
.doc .client-jump a:hover { border-color: var(--outline); }

/* Example prompts */
.doc ul.prompts { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 8px; }
.doc ul.prompts li { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--panel); line-height: 1.45; }
.doc ul.prompts .said { font-size: 1.03em; }

/* "How it works" */
.doc ol.assist-how { padding-inline-start: 22px; }

/* Setup cards */
.client { margin: 10px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 88px; }
.client[open] { box-shadow: var(--shadow-sm); }
.client > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; border-radius: 16px; }
.client > summary::-webkit-details-marker { display: none; }
.client > summary::after { content: ""; margin-inline-start: auto; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; flex: none; }
.client[open] > summary::after { transform: rotate(-135deg); }
.client-mono { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pc); color: var(--on-pc); font-size: .8125rem; font-weight: 700; }
.client-name { display: flex; flex-direction: column; line-height: 1.3; }
.client-name b { color: var(--ink); font-weight: 600; }
.client-name span { color: var(--ink-3); font-size: .875rem; }
.client-body { padding: 0 16px 14px; }
.doc .client-steps { margin: 6px 0 10px; padding-inline-start: 22px; }
.doc .client-steps li { margin-bottom: 10px; }
.doc .client-steps li > p { margin: 0 0 6px; }
.doc .client-note, .doc .client-verify { margin: 8px 0 0; font-size: .9375rem; }
.doc .client-verify { color: var(--ink-3); }
.doc .one-click { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 10px; }
.doc .one-click span { color: var(--ink-3); font-size: .875rem; }
.doc a.btn-one { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: .9375rem; text-decoration: none; }
.doc a.btn-one:hover { opacity: .86; }
.doc h3.client-group { margin-top: 28px; font-size: .9375rem; color: var(--ink-3); letter-spacing: .01em; }

/* Code with a copy button */
.code { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #FBFBFD; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 4px 6px 4px 12px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: .8125rem; color: var(--ink-3); }
.code-head-bare { justify-content: flex-end; }
.code pre { margin: 0; padding: 12px 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .875rem; line-height: 1.55; }
.code pre code { padding: 0; background: none; color: var(--ink); white-space: pre; font-size: 1em; }
button.copy { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 12px; font: 500 .8125rem/1.6 var(--sans); cursor: pointer; }
button.copy:hover { border-color: var(--outline); }
button.copy.copy-solid { background: var(--ink); color: #fff; border-color: var(--ink); padding: 6px 14px; }
button.copy.done { background: var(--ok-c); color: var(--on-ok-c); border-color: var(--ok-c); }

/* The tools table */
.doc table.tools-table td { white-space: nowrap; }
@media (max-width: 560px) { .doc table.tools-table td { white-space: normal; } }

/* Screenshot placeholders (pre-launch only: the build refuses to go live with one left) */
.shot-todo { margin: 18px 0 22px; }
.shot-box { display: grid; place-items: center; min-height: 180px; border: 2px dashed var(--outline); border-radius: 16px; background: repeating-linear-gradient(135deg, var(--panel) 0 12px, var(--surface) 12px 24px); color: var(--ink-3); font-weight: 600; }
.doc .shot-todo figcaption { margin-top: 8px; color: var(--ink-3); font-size: .875rem; line-height: 1.5; }

.assist .dateline { margin-top: 28px; }
