/* Explainers for "One da.live MCP Server Across Claude, Gemini, Azure OpenAI and n8n".
   Built on the site kit (/css/explainers.css) and design system v3 tokens:
   the tool format switcher and the endpoint table. */

.xp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.xp-tabs button { border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; }
.xp-tabs button:hover { border-color: var(--line-strong); color: var(--ink); }
.xp-tabs button[aria-checked="true"], .xp-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.xp-tabs button:focus-visible, .xp-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xp-row { display: grid; gap: 12px; padding: 16px 18px 0; }
.xp-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.xp-field input { font: 400 13px var(--font-mono); padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); min-width: 0; width: 100%; }

/* dialect switcher */
.dia__panels { display: grid; gap: 14px; padding: 16px 18px 20px; }
.dia__panel[hidden] { display: none; }
.dia__grid { display: grid; gap: 14px; }
.dia__grid > * { min-width: 0; }
@container (min-width: 720px) { .dia__grid { grid-template-columns: 1fr 1fr; } }
.dia__block { margin: 0; }
.dia__h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font: 500 12px/1.3 var(--font-mono); color: var(--muted); margin: 0 0 6px; }
.dia__h a { color: var(--ink-2); }
.dia__pre { margin: 0; padding: 12px 14px; background: var(--night); color: var(--bone); border: 0; border-radius: 12px; font: 400 12.5px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.dia__pre .key { color: var(--lav); } .dia__pre .val { color: var(--mint); } .dia__pre .note { color: var(--bone-3); font-style: italic; }
.dia__pre mark { background: rgba(240,207,142,.18); color: var(--gold); border-radius: 3px; padding: 0 2px; }
.dia__note { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* endpoint table (replaced the session lab, October 2026) */
.sess-table { overflow-x: auto; }
.sess-table caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--muted); padding-top: 8px; }
.sess-table th[scope="row"] { font-weight: 500; color: var(--ink-2); }
.sess-table td, .sess-table th { vertical-align: top; }

.lab > figcaption { padding: 0 18px 18px; margin-top: 0; }

/* Quality pass, October 2026 */
/* tall terminal capture: keep it near its own width so it doesn't fill the screen */
.fig--tall img { width: auto; max-width: min(100%, 560px); }
/* 44px touch targets on phones */
@media (max-width: 640px) {
  .xp-tabs button { min-height: 44px; }
  .xp-field input { min-height: 44px; font-size: 14px; }
}
/* the final board is dense at column width: the image links to the full-size file */
.fig--zoom a { display: block; cursor: zoom-in; }
.fig--zoom a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
