/* Tool Cloud MCP + agents pages: /mcp/, /mcp/docs/, /agents/.
   Adapted from the owner's 2026-11 MCP mockup. The mockup's #141518 surface, #1b1d21 cards and #5b8cff accent map onto
   tc-site.css tokens: --tc-ink-900 / --tc-ink-800 / --border / --tc-sky (dark tiles) and --tc-blue-600 (light tiles). */

/* ---------- Hero (dark tile) ---------- */
.tc-mcp-hero { position: relative; overflow: clip; display: flex; flex-wrap: wrap; align-items: center; gap: 44px 48px; padding: 64px 48px; }
.tc-mcp-hero > .tc-glyphs { opacity: .14; }
.tc-mcp-hero__copy, .tc-chat, .tc-mcp-hero > .tc-mcp-setup__card { position: relative; z-index: 2; }
.tc-mcp-hero__copy { flex: 1 1 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.tc-mcp-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 13px; line-height: 1.4; color: #d7dae0; }
.tc-mcp-pill::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--tc-sky); }
.tc-mcp-hero h1 { font-size: 56px; line-height: 1.03; letter-spacing: -.045em; font-weight: 800; }
.tc-mcp-hero h1 .accent { color: var(--tc-sky); }
.tc-mcp-lead { max-width: 520px; font-size: 18px; line-height: 1.6; color: #adb3bf; }
.tc-mcp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tc-mcp-note { font-size: 14px; color: var(--muted); }
.tc-mcp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--tc-radius); font-size: 16px; font-weight: 600; line-height: 1; transition: background-color 150ms var(--tc-ease-out), border-color 150ms var(--tc-ease-out), transform 150ms var(--tc-ease-out); }
.tc-mcp-btn:active { transform: scale(.97); }
.tc-mcp-btn--primary { background: var(--tc-sky); color: #0d0e10; }
.tc-mcp-btn--primary:hover { background: var(--tc-sky-200); }
.tc-mcp-btn--ghost { border-color: var(--border-strong); color: #eef0f3; }
.tc-mcp-btn--ghost:hover { background: rgba(255,255,255,.06); }
.tc-mcp-btn--ink { background: var(--tc-ink-900); color: #fff; }
.tc-mcp-btn--ink:hover { background: var(--tc-ink-800); }
.tc-mcp-btn--line { border-color: var(--tc-line-strong); color: var(--tc-text); }
.tc-mcp-btn--line:hover { background: var(--tc-surface); }

/* Sample chat */
.tc-chat { flex: 1 1 480px; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--tc-ink-800); }
.tc-chat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.tc-chat__body { display: flex; flex-direction: column; gap: 10px; min-height: 360px; padding: 18px; }
.tc-chat__msg { max-width: 88%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tc-chat__msg--user { align-self: flex-end; border-color: #34507c; background: #1d2a40; }
.tc-chat__msg--tool { align-self: flex-start; padding: 8px 12px; border-radius: 8px; background: transparent; font: 400 13px/1.5 var(--tc-mono); color: #c9ccd3; }
.tc-chat__msg--assistant { align-self: flex-start; background: #262930; }
.tc-chat.is-animated .tc-chat__msg { display: none; }
.tc-chat.is-animated .tc-chat__msg.is-in { display: block; animation: tc-chat-in 320ms var(--tc-ease-out); }
@keyframes tc-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tc-chat.is-animated .tc-chat__msg.is-in { animation: none; } }

/* ---------- Light sections ---------- */
.tc-mcp-sec { padding: 56px 48px; }
.tc-mcp-sec h2 { font-size: 36px; line-height: 1.1; letter-spacing: -.035em; font-weight: 800; color: var(--tc-text); }
.tc-mcp-sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 28px; }
.tc-mcp-sec__head p { max-width: 380px; font-size: 16px; color: var(--tc-muted); }
.tc-mcp-setup { display: flex; flex-wrap: wrap; gap: 36px 52px; }
.tc-mcp-setup__text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tc-mcp-steps { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.tc-mcp-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: #2a2e37; counter-increment: step; }
.tc-mcp-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tc-blue-50); color: var(--tc-blue-600); font-size: 14px; font-weight: 700; }
.tc-mcp-steps a, .tc-mcp-links a, .tc-mcp-sec p a { color: var(--tc-blue-600); text-decoration: underline; text-underline-offset: 3px; }
.tc-mcp-setup__card { flex: 1.5 1 480px; min-width: 0; }

/* Code card with tabs + Copy (shared with the docs and agents pages) */
.tc-mcp-code { overflow: hidden; border-radius: 16px; background: var(--code-bg); color: var(--code-text); }
.tc-mcp-code__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.tc-mcp-code__tabs { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 4px; }
.tc-mcp-code__tab { min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #a6acb8; font-size: 14px; font-weight: 600; }
.tc-mcp-code__tab:hover { color: #fff; }
.tc-mcp-code__tab[aria-selected="true"] { background: rgba(255,255,255,.1); color: #fff; }
.tc-mcp-code__copy { min-height: 36px; margin-left: auto; padding: 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: transparent; color: #d7dae0; font-size: 13px; font-weight: 600; }
.tc-mcp-code__copy:hover { color: #fff; border-color: rgba(255,255,255,.34); }
.tc-mcp-code__name { flex: 1 1 auto; padding-left: 10px; font: 500 13px/1 var(--tc-mono); color: #8f98a8; }
.tc-mcp-code__file { margin: 0; padding: 12px 20px 0; font-size: 13px; color: #8f98a8; }
.tc-mcp-code pre { margin: 0; padding: 10px 20px 20px; overflow-x: auto; font: 400 13px/1.7 var(--tc-mono); color: #d7dae0; background: none; }
.tc-mcp-code pre code { padding: 0; background: none; color: inherit; font: inherit; }
.tc-mcp-code__note { margin: 0; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; line-height: 1.55; color: #a6acb8; }
.tc-mcp-code__note code { color: #d7dae0; }

/* Tool cards */
.tc-mcp-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.tc-mcp-tool { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--tc-line); border-radius: 14px; background: var(--tc-surface); }
.tc-mcp-tool__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-mcp-tool code { font: 500 14px/1.3 var(--tc-mono); color: var(--tc-blue-600); }
.tc-mcp-tag { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.tc-mcp-tag--paid { background: var(--tc-blue-100); color: var(--tc-blue-700); }
.tc-mcp-tag--free { background: #d9f5e7; color: #0b6b47; }
.tc-mcp-tool p { font-size: 15px; line-height: 1.5; color: #2a2e37; }
.tc-mcp-tool p.tc-mcp-ask { font-size: 13px; color: var(--tc-muted); }

/* Credits */
.tc-mcp-credits { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.tc-mcp-credits > h2 { flex: 1 1 320px; }
.tc-mcp-credits__cols { flex: 3 1 640px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.tc-mcp-credits h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--tc-text); }
.tc-mcp-credits p { font-size: 15px; line-height: 1.55; color: var(--tc-muted); }

/* Closing call to action (dark tile) */
.tc-mcp-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 48px; }
.tc-mcp-cta h2 { font-size: 32px; letter-spacing: -.04em; }
.tc-mcp-cta p { max-width: 560px; font-size: 16px; color: #adb3bf; }
.tc-mcp-cta .tc-mcp-actions { margin-top: 8px; }

/* ---------- Docs page extras ---------- */
.tc-mcpdocs .tc-doc-section h3 { margin: 22px 0 8px; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.tc-mcpdocs ol, .tc-mcpdocs ul { padding-left: 22px; }
.tc-mcpdocs li { margin: 4px 0; }
.tc-mcpdocs .tc-mcp-code { margin: 14px 0; }
.tc-mcpdocs .tc-mcp-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--tc-blue-50); color: var(--tc-blue-700); font-size: 12px; font-weight: 600; vertical-align: middle; }
.tc-mcpdocs .tc-mcp-badge--free { background: #d9f5e7; color: #0b6b47; }
.tc-mcpdocs details { margin: 10px 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--tc-radius); background: var(--surface-2); }
.tc-mcpdocs summary { cursor: pointer; font-weight: 600; color: var(--text); }
.tc-mcpdocs details p { margin-top: 8px; }

/* ---------- Agents page ---------- */
.tc-agent-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.tc-agent-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--tc-line); border-radius: 14px; background: var(--tc-surface); }
.tc-agent-card h3 { font-size: 18px; letter-spacing: -.02em; color: var(--tc-text); }
.tc-agent-card p { font-size: 15px; line-height: 1.55; color: var(--tc-muted); }
.tc-agent-card .tc-mcp-links { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; }
.tc-agent-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-agent-list li { padding: 14px 16px; border: 1px solid var(--tc-line); border-radius: 12px; background: var(--tc-surface); font-size: 15px; line-height: 1.55; color: #2a2e37; }
.tc-agent-list code, .tc-mcp-sec p code, .tc-mcpdocs code { font-size: .92em; }
.tc-agent-list li strong { color: var(--tc-text); }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
  .tc-mcp-hero { padding: 40px 20px 44px; gap: 32px; }
  .tc-mcp-hero h1 { font-size: 38px; }
  .tc-mcp-lead { font-size: 16px; }
  .tc-mcp-sec { padding: 40px 20px; }
  .tc-mcp-sec h2 { font-size: 28px; }
  .tc-mcp-cta { padding: 36px 20px; }
  .tc-mcp-cta h2 { font-size: 26px; }
  .tc-chat__body { min-height: 320px; padding: 14px; }
  .tc-chat__msg { max-width: 94%; }
  .tc-mcp-actions .tc-mcp-btn { flex: 1 1 auto; }
}

/* Long inline commands wrap instead of widening the page */
.tc-mcpdocs p code, .tc-mcpdocs li code { overflow-wrap: anywhere; }
.tc-mcpdocs ol { list-style: decimal; }
.tc-mcpdocs ul { list-style: disc; }
.tc-mcpdocs .tc-doc-section ol li::marker { color: var(--muted); }
