/* Code surfaces for the MCP discoverability page (/mcp-page/).

   Tailwind's slate-* background utilities are theme-inverted here (the site
   redefines --tw-color-slate-* per data-theme), so a `tw:bg-slate-900` block
   renders light in dark mode. These components use the semantic surface/ink
   tokens instead, so they stay coherent in both themes.
*/

.mcp-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
        monospace;
    font-size: 0.875rem;
}

/* Tool names in the list keep their identifier in a monospace face. */
.mcp-tools code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
        monospace;
    font-size: 0.85em;
    color: var(--ink);
}

/* Inline endpoint / command box — adapts to the active theme. */
.mcp-code--surface {
    display: block;
    border: 1px solid var(--surface-active);
    background: var(--surface-hover);
    color: var(--ink);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    overflow-wrap: break-word;
}

/* The connection snippet — a fixed dark terminal block in both themes. */
.mcp-snippet {
    position: relative;
}

.mcp-snippet__pre {
    margin: 0;
    background: #0b1220;
    color: #dbe4f0;
    border-radius: 0.5rem;
    padding: 1rem 5.25rem 1rem 1rem;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
        monospace;
    font-size: 0.875rem;
    line-height: 1.55;
}

.mcp-snippet__pre code {
    background: transparent;
    color: inherit;
    font: inherit;
}

/* Copy button, floating over the snippet's top-right corner. Fixed light-on-dark
   because it always sits on the dark terminal block. */
.mcp-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: 1px solid rgba(219, 228, 240, 0.25);
    background: rgba(219, 228, 240, 0.08);
    color: #dbe4f0;
    border-radius: 0.375rem;
    padding: 0.3rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mcp-copy:hover {
    background: rgba(219, 228, 240, 0.18);
    border-color: rgba(219, 228, 240, 0.45);
}

.mcp-copy:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.mcp-copy.is-copied {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.5);
}
