/* Shared styling for the MCP.Scientio.Com tool documentation pages, matching index.html. */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-900: #0a1628;
    --blue-700: #112952;
    --blue-600: #1a3a6e;
    --blue-500: #1e4d9b;
    --blue-400: #2563eb;
    --blue-300: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --accent: #38bdf8;
    --white: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --card-bg: #ffffff;
    --card-border: #bfdbfe;
    --shadow: 0 2px 12px 0 rgba(30,77,155,0.10);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--blue-50);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-500) 100%);
    color: var(--white);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.site-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

main {
    flex: 1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

    .breadcrumb a {
        color: var(--blue-400);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

h1 {
    font-size: 1.8rem;
    color: var(--blue-600);
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.25rem;
    color: var(--blue-500);
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 0.95rem;
    color: var(--blue-700);
    margin: 1.25rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.intro {
    max-width: 720px;
}

code {
    background: var(--blue-100);
    color: var(--blue-700);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.85em;
}

pre {
    background: var(--blue-900);
    color: var(--blue-100);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

    pre code {
        background: none;
        color: inherit;
        padding: 0;
        font-size: 1em;
    }

/* ── Directory cards ───────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.doc-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.4rem;
    display: block;
    text-decoration: none;
    color: inherit;
}

    .doc-card:hover {
        border-color: var(--blue-400);
    }

    .doc-card h2 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .doc-card p {
        font-size: 0.88rem;
        margin-bottom: 0.6rem;
    }

.tool-count {
    background: var(--blue-100);
    color: var(--blue-600);
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* ── Tool sections ─────────────────────────────────────────────────── */
.tool {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tool-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

    .tool-head h2 {
        margin-bottom: 0;
        font-family: 'Consolas', 'Courier New', monospace;
    }

.tag {
    border-radius: 999px;
    padding: 0.1rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--blue-100);
    color: var(--blue-600);
}

.tag.destructive {
    background: #fee2e2;
    color: #991b1b;
}

.tag.readonly {
    background: #dcfce7;
    color: #166534;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

th, td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--blue-100);
    vertical-align: top;
}

th {
    color: var(--blue-700);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

td {
    color: var(--muted);
}

    td code {
        white-space: nowrap;
    }

.toc {
    margin: 1rem 0 2rem;
    font-size: 0.9rem;
}

    .toc a {
        color: var(--blue-400);
        text-decoration: none;
    }

        .toc a:hover {
            text-decoration: underline;
        }

    .toc li {
        margin-left: 1.25rem;
    }

footer {
    background: var(--blue-900);
    color: var(--blue-100);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}

    footer a {
        color: var(--accent);
        text-decoration: none;
    }

@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    td {
        border: none;
        padding: 0.15rem 0;
    }

    tr {
        border-bottom: 1px solid var(--blue-100);
        padding: 0.5rem 0;
    }
}
