/* NMR Sample Manager — Documentation pages shared styles */

/* ── Tokens ────────────────────────────────────────────── */
:root {
    --navy: #303D4F;
    --link-blue: #76BDDA;
    --mid-blue: #4678B2;
    --bg: #FAFAFA;
    --card-bg: #FFFFFF;
    --text: #333333;
    --text-muted: #6c757d;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ──────────────────────────────────────────────── */
html {
    font-size: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* ── Header / Nav ──────────────────────────────────────── */
.header {
    background: var(--navy);
    color: #fff;
    padding: 0.75rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.header-content {
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    /* Override content h1 rule */
    margin-bottom: 0;
}

.nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    color: var(--link-blue);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1;
}

.nav a:hover {
    background: rgba(118, 189, 218, 0.15);
    color: #fff;
}

.nav a.active {
    background: #fff;
    color: var(--navy);
    font-weight: 600;
}

/* ── Content card ──────────────────────────────────────── */
.content {
    max-width: 860px;
    margin: 28px auto 48px;
    padding: 36px 40px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* ── Typography (scoped to content card) ───────────────── */
.content h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 36px;
    margin-bottom: 12px;
}

.content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-top: 22px;
    margin-bottom: 8px;
}

.content p {
    margin-bottom: 14px;
}

.content ul,
.content ol {
    margin: 12px 0;
    padding-left: 22px;
}

.content li {
    margin-bottom: 5px;
}

/* ── Links ─────────────────────────────────────────────── */
.content a {
    color: var(--mid-blue);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

/* ── Inline code ───────────────────────────────────────── */
code {
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
    color: var(--mid-blue);
    background: var(--bg);
    border: 1px solid #dde3ec;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── Images ────────────────────────────────────────────── */
.content img {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid #e4e8ef;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
    }

    .header h1 {
        font-size: 1.1rem;
    }

    .nav {
        gap: 2px;
    }

    .nav a {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .content {
        margin: 16px 10px 32px;
        padding: 24px 20px;
    }
}