﻿
:root {
    --bg: #f7f8fb; /* page background */
    --panel: #ffffff; /* card background */
    --ink: #0b1220; /* primary text */
    --muted: #6b7280; /* secondary text */
    --line: #e5e7eb; /* borders/rules */
    --brand: #2563eb; /* ARBIGAIN blue */
    --brand-ink: #ffffff; /* contrast on brand */
    --focus: #93c5fd; /* focus ring */
    --ok: #16a34a; /* success */
    --danger: #ef4444; /* error */
    --radius: 16px; /* card radius */
    --shadow: 0 6px 24px rgba(0,0,0,.06);
}

html, body {
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 "Inter","Plus Jakarta Sans","Manrope",ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
}


.wrap a {
    /*color: var(--brand);*/
    text-decoration: none
}

    .wrap a:hover {
        text-decoration: underline
    }

.wrap {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
}

/* ===== Header ===== */
.hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--muted);
    text-transform: uppercase
}

h1 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px
}

/* ===== Flex layout: sidebar + content (no grid) ===== */
.flex {
    display: flex;
    gap: 20px;
    align-items: flex-start
}

/* Sidebar (TOC) */
.toc {
    position: sticky;
    top: 16px;
    flex: 0 0 300px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

    .toc h2 {
        font-size: 16px;
        margin: 0;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line)
    }

    .toc nav {
        padding: 8px 8px 12px 8px
    }

    .toc ul {
        list-style: none;
        margin: 0;
        padding: 0
    }

    .toc li {
        border-radius: 10px
    }

    .toc a {
        display: block;
        padding: 10px 10px;
        border-radius: 10px
    }

        .toc a:hover {
            background: #f3f4f6;
            text-decoration: none
        }


        .toc a.active, .toc-mobile a.active {
            background: #eef2f7;
            box-shadow: inset 3px 0 0 var(--mdb);
            text-decoration: none
        }

        .toc a.active {
            font-weight: 600
        }

            .toc a.active:focus-visible {
                outline: 2px solid var(--focus);
                outline-offset: 2px
            }

    .toc li ul {
        margin-left: 14px;
        margin-top: 6px
    }

/* Mobile TOC via <details> */
.toc-mobile {
    display: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px
}

    .toc-mobile summary {
        cursor: pointer;
        padding: 14px 16px;
        font-weight: 600
    }

    .toc-mobile .inner {
        padding: 0 16px 14px
    }

/* Main content */
.content {
    flex: 1;
    min-width: 0
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px
}

.prose {
    max-width: 100%;
}

    .prose h2 {
        font-size: 18px;
        margin: 28px 0 6px
    }

    .prose h3 {
        font-size: 18px;
        margin: 22px 0 6px
    }

    .prose p {
        margin: 12px 0
    }

    .prose ol, .prose ul {
        padding-left: 20px
    }

.note {
    background: #f3f4f6;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    color: #374151
}

.label {
    display: inline-block;
    background: var(--brand);
    color: var(--brand-ink);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 20px 0
}

/* Callouts */
.callout {
    border-left: 4px solid var(--brand);
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 10px
}

/* Footer */
.foot {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px
}

/* Responsive */
@media (max-width: 960px) {
    .flex {
        flex-direction: column
    }

    .toc {
        display: none
    }

    .toc-mobile {
        display: block
    }
}
