/* CertiFlow documentation. No build step, no external fonts, no CDN. */

:root {
    --ink: #16202b;
    --ink-soft: #4a5a6b;
    --line: #d8dee6;
    --paper: #ffffff;
    --shade: #f4f6f9;
    --navy: #123a63;
    --teal: #0f6f78;
    --warn-bg: #fff6e5;
    --warn-line: #e6b566;
    --stop-bg: #fdecec;
    --stop-line: #d98b8b;
    --code-bg: #f0f3f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

.page { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }

nav.sidebar {
    background: var(--shade);
    border-right: 1px solid var(--line);
    padding: 24px 18px 40px;
}
nav.sidebar .product { font-weight: 700; font-size: 18px; color: var(--navy); margin: 0 0 2px; }
nav.sidebar .release { font-size: 13px; color: var(--ink-soft); margin: 0 0 20px; }
nav.sidebar ol { list-style: none; margin: 0; padding: 0; counter-reset: page; }
nav.sidebar li { margin: 0 0 2px; }
nav.sidebar a {
    display: block; padding: 6px 8px; border-radius: 5px;
    color: var(--ink); text-decoration: none; font-size: 14.5px;
}
nav.sidebar a:hover { background: #e6ebf2; }
nav.sidebar a[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 600; }

main { padding: 34px 40px 80px; max-width: 900px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; color: var(--navy); }
h2 { font-size: 21px; margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
h3 { font-size: 17px; margin: 24px 0 8px; }
h2 .release-date { font-weight: 400; font-size: 15px; color: var(--ink-soft); margin-left: 8px; }
p.lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 22px; }

a { color: var(--teal); }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
pre {
    background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px;
    padding: 12px 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.5;
}
pre code { background: none; padding: 0; }

table { border-collapse: collapse; width: 100%; margin: 14px 0 20px; font-size: 14.5px; }
th, td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
th { background: var(--shade); font-weight: 600; }
td code { white-space: nowrap; }
.wide-table { overflow-x: auto; }
.wide-table:focus-visible, pre:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wide-table table { min-width: 720px; }

/* The generated reference tables: keep the prose columns wide enough to read. */
table.settings td:nth-child(1), table.settings th:nth-child(1) { width: 20%; }
table.settings td:nth-child(2), table.settings th:nth-child(2) { width: 13%; }
table.settings td:nth-child(3), table.settings th:nth-child(3) { width: 34%; }
table.settings td:nth-child(4), table.settings th:nth-child(4) { width: 33%; }

table.columns td:nth-child(1), table.columns th:nth-child(1) { width: 4%; }
table.columns td:nth-child(2), table.columns th:nth-child(2) { width: 22%; }
table.columns td:nth-child(3), table.columns th:nth-child(3) { width: 8%; }
table.columns td:nth-child(4), table.columns th:nth-child(4) { width: 22%; }
table.columns td:nth-child(5), table.columns th:nth-child(5) { width: 44%; }

ol.steps { padding-left: 22px; }
ol.steps > li { margin-bottom: 14px; }

.note, .warn, .stop {
    border-left: 4px solid var(--teal); background: var(--shade);
    padding: 12px 16px; margin: 18px 0; border-radius: 0 6px 6px 0;
}
.warn { border-left-color: var(--warn-line); background: var(--warn-bg); }
.stop { border-left-color: var(--stop-line); background: var(--stop-bg); }
.note p:first-child, .warn p:first-child, .stop p:first-child { margin-top: 0; }
.note p:last-child, .warn p:last-child, .stop p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

footer.doc-footer {
    margin-top: 50px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 13.5px; color: var(--ink-soft);
}

@media (max-width: 820px) {
    .page { grid-template-columns: minmax(0, 1fr); }
    nav.sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
    main { min-width: 0; padding: 24px 20px 60px; }
    main p code, main li code { overflow-wrap: anywhere; }
}

@media print {
    nav.sidebar { display: none; }
    .page { display: block; }
    main { max-width: none; padding: 0; }
    pre, table { break-inside: avoid; }
}
