/*
 * Buyer documentation styling. Self-contained: no CDN, no webfont, no framework,
 * so the pages open from the ZIP with no network and also serve unchanged from a
 * public URL.
 */

:root {
    --ink: #22303c;
    --muted: #5b7185;
    --line: #e2e8ef;
    --accent: #1e88e5;
    --warn-bg: #fff6e5;
    --warn-line: #f0c987;
    --note-bg: #eef6fc;
    --note-line: #b9d9f2;
    --code-bg: #f5f7fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: #fff;
}

.wrap {
    display: flex;
    align-items: flex-start;
    max-width: 78rem;
    margin: 0 auto;
}

/* Sidebar ------------------------------------------------------------ */

.side {
    flex: 0 0 17rem;
    padding: 2rem 1.25rem 3rem;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}

.side .product {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .25rem;
}

.side .version {
    font-size: .8rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.side nav h2 {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 1.5rem 0 .5rem;
}

.side nav a {
    display: block;
    padding: .22rem 0;
    color: var(--ink);
    text-decoration: none;
    font-size: .92rem;
}

.side nav a:hover,
.side nav a.current {
    color: var(--accent);
}

/* Content ------------------------------------------------------------ */

main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2rem 2.5rem 5rem;
}

h1 {
    font-size: 1.9rem;
    margin: 0 0 .5rem;
}

h2 {
    font-size: 1.3rem;
    margin: 2.5rem 0 .75rem;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
}

h3 {
    font-size: 1.05rem;
    margin: 1.75rem 0 .5rem;
}

p, li {
    font-size: .96rem;
}

a {
    color: var(--accent);
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .87em;
    background: var(--code-bg);
    padding: .12rem .34rem;
    border-radius: 3px;
}

pre {
    background: var(--code-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .85rem 1rem;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: .92rem;
}

th, td {
    text-align: left;
    padding: .5rem .6rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    background: var(--code-bg);
    font-weight: 600;
}

.note,
.warn {
    padding: .8rem 1rem;
    border-radius: 4px;
    margin: 1.1rem 0;
    font-size: .93rem;
}

.note {
    background: var(--note-bg);
    border-left: 3px solid var(--note-line);
}

.warn {
    background: var(--warn-bg);
    border-left: 3px solid var(--warn-line);
}

.note p:last-child,
.warn p:last-child {
    margin-bottom: 0;
}

.shot {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    margin: 1rem 0;
}

.steps {
    padding-left: 1.2rem;
}

.steps > li {
    margin-bottom: .55rem;
}

footer {
    margin-top: 3.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .85rem;
}

@media (max-width: 60rem) {
    .wrap {
        display: block;
    }

    .side {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        flex-basis: auto;
    }

    main {
        padding: 1.5rem 1.25rem 4rem;
    }
}
