/* MCP guide (/mcp-guide/) — styles for the markdown-rendered article.
   Written for the plain-HTML output of src/mcp-guide.md: h1/h2/h3,
   ordered lists (rendered as numbered steps), blockquotes (callouts and
   copy-this prompts), tables, and code blocks. No classes are needed
   in the markdown itself. */

.mcp-guide { --ink: #18324a; --blue: #176b87; --teal: #159895; --pale: #eef8f8; --warm: #fff7e8; color: var(--ink); }

.mcp-guide > p:first-of-type { color: var(--blue); font-size: .85rem; font-weight: 700; letter-spacing: .08em; margin-bottom: .25rem; text-transform: uppercase; }

.mcp-guide h1 { color: #124f68; font-weight: 700; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 3px solid var(--teal); }

.mcp-guide > p { font-size: 1.05rem; }

.mcp-guide h2 { color: #124f68; margin-top: 2.75rem; padding-bottom: .4rem; border-bottom: 2px solid #cce5e7; }

.mcp-guide h3 { color: #124f68; font-size: 1.2rem; margin-top: 2rem; }

.mcp-guide h4 { color: var(--blue); font-size: 1.05rem; margin-top: 1.5rem; }

/* Callouts and copy-this prompts: > **Label** followed by the text. */
.mcp-guide blockquote {
    background: #fff;
    border: 2px solid #aedadd;
    border-left: .35rem solid var(--teal);
    border-radius: .75rem;
    box-shadow: 0 .2rem .8rem rgba(24, 50, 74, .08);
    color: #253d4f;
    font-size: 1.05rem;
    margin: 1.25rem 0;
    padding: 1.25rem;
}
.mcp-guide blockquote p { margin-bottom: .5rem; }
.mcp-guide blockquote p:last-child { margin-bottom: 0; }
.mcp-guide blockquote > p:first-child > strong:first-child { color: var(--blue); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

/* Numbered lists render as the step cards of the guide. */
.mcp-guide ol { counter-reset: step; list-style: none; margin: 1.5rem 0; padding: 0 0 0 4rem; }
.mcp-guide ol > li {
    background: #fff;
    border: 1px solid #d8e7eb;
    border-radius: .8rem;
    box-shadow: 0 .15rem .55rem rgba(24, 50, 74, .06);
    counter-increment: step;
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
    position: relative;
}
.mcp-guide ol > li::before {
    align-items: center;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d8e7eb;
    color: #fff;
    content: counter(step);
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    left: -3.05rem;
    position: absolute;
    top: 1.15rem;
    width: 2rem;
}
.mcp-guide ol > li > p:first-child { font-weight: 600; }
.mcp-guide ol > li > p { margin-bottom: .5rem; }
.mcp-guide ol > li > p:last-child, .mcp-guide ol > li > ul:last-child { margin-bottom: 0; }
.mcp-guide ol > li ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
.mcp-guide ol > li ul li { background: none; border: 0; box-shadow: none; margin-bottom: .25rem; padding: 0; }

.mcp-guide ul { padding-left: 1.4rem; }
.mcp-guide ul > li { margin-bottom: .5rem; }

/* Assistant tabs (assets/js/mcp-guide-tabs.js turns the h3 sections of
   "Connect the Template Designer service" into a tab strip). Without
   JavaScript the sections simply show one after another. */
.mcp-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.75rem 0 0; padding: 0; }
.mcp-tabs [role="tab"] {
    background: var(--pale);
    border: 1px solid #d8e7eb;
    border-bottom: 0;
    border-radius: .6rem .6rem 0 0;
    color: #36546a;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: .55rem 1.1rem;
}
.mcp-tabs [role="tab"]:hover { color: #124f68; }
.mcp-tabs [role="tab"][aria-selected="true"] { background: #fff; box-shadow: inset 0 .2rem 0 var(--teal); color: #124f68; }
.mcp-tab-panel { background: #fff; border: 1px solid #d8e7eb; border-radius: 0 .75rem .75rem .75rem; padding: 1.25rem 1.5rem; }
.mcp-tab-panel[hidden] { display: none; }
.mcp-tabs-on .mcp-tab-panel > h3:first-child { display: none; }
.mcp-tab-panel > :first-child:not(h3) { margin-top: 0; }
.mcp-tab-panel > :last-child { margin-bottom: 0; }
.mcp-tab-panel ol { margin: 1.25rem 0; }

/* Contents list and collapsible sections (assets/js/mcp-guide-tabs.js).
   Without JavaScript there is no contents list and no <details>, so
   these rules simply do nothing. */
.mcp-toc { background: var(--pale); border: 1px solid #cce5e7; border-radius: .75rem; margin: 1.5rem 0; padding: 1rem 1.25rem; }
.mcp-toc::before { color: var(--blue); content: 'Contents'; display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; margin-bottom: .6rem; text-transform: uppercase; }
.mcp-toc ol { counter-reset: none; display: flex; flex-wrap: wrap; gap: .4rem .5rem; list-style: none; margin: 0; padding: 0; }
.mcp-toc ol > li { background: none; border: 0; box-shadow: none; margin: 0; padding: 0; position: static; }
.mcp-toc ol > li::before { content: none; display: none; }
.mcp-toc a { background: #fff; border: 1px solid #cce5e7; border-radius: 999px; color: #36546a; display: inline-block; font-size: .92rem; font-weight: 600; padding: .3rem .85rem; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.mcp-toc a:hover { border-color: var(--teal); color: #124f68; }

.mcp-section { background: #fff; border: 1px solid #d8e7eb; border-radius: .9rem; margin: 1.25rem 0; padding: 0 1.5rem; }
.mcp-section[open] { padding-bottom: 1.25rem; }
.mcp-section > summary { cursor: pointer; list-style: none; }
.mcp-section > summary::-webkit-details-marker { display: none; }
.mcp-section > summary h2 { display: inline-block; margin: 1.25rem 0; }
.mcp-section > summary::after { color: var(--teal); content: '▸'; float: right; font-size: 1.2rem; line-height: 2.2; transition: transform .15s ease; }
.mcp-section[open] > summary::after { transform: rotate(90deg); }
.mcp-section > summary:hover h2 { color: var(--blue); }

/* Comparison tables (check these items / remember). */
.mcp-guide table { background: #fff; border: 1px solid #d8e7eb; border-radius: .75rem; margin: 1.25rem 0; width: 100%; }
.mcp-guide th { background: var(--pale); color: #124f68; text-align: left; }
.mcp-guide th, .mcp-guide td { border: 1px solid #e2edf0; padding: .6rem .9rem; vertical-align: top; }

/* Service addresses and client configuration examples. */
.mcp-guide pre { background: #f4f7f9; border: 1px solid #ccd7df; border-radius: .5rem; margin: 1rem 0; padding: 1rem 1.25rem; overflow-x: auto; }
.mcp-guide code { color: #6b315f; }
.mcp-guide pre code { color: #253d4f; }

/* The example blueprint download. */
.mcp-guide a[download] { border: 1px solid var(--blue); border-radius: .35rem; display: inline-block; font-weight: 600; padding: .4rem .9rem; text-decoration: none; }
.mcp-guide a[download]:hover { background: var(--pale); }

@media (max-width: 575.98px) {
    .mcp-guide ol { padding-left: 0; }
    .mcp-guide ol > li { padding-left: 3.85rem; }
    .mcp-guide ol > li::before { left: 1rem; top: 1rem; }
}
