/*
 * Zeus help pages (/zeus/ai-connector/). The site's warm design (paper, ink, clay; Instrument Serif
 * headings over Karla) as ekora/legal.css has it, with the Zeus header (Ecclerium lockup, back to
 * home) and a short footer. Paths are absolute: these pages live in folders.
 */
:root {
    --paper: #f6f1e8;
    --paper-alt: #efe7d9;
    --ink: #211f1b;
    --ink-soft: #4a443b;
    --ink-muted: #5c554a;
    --ink-faint: #6b6459;
    --ink-ghost: #8b8375;
    --rule: #ddd3c2;
    --sand: #c9bda9;
    --clay: #a8482a;
    --clay-dark: #8a3a21;
    --amber: #e2a06d;
    --dark-rule: #3b362e;
    --on-dark: #cdc5b7;
    --on-dark-bright: #f2ece1;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: Karla, Helvetica, system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 26px;
}

/* Header: the Ecclerium lockup and a way back to the site. */
.header {
    border-bottom: 1px solid var(--rule);
}

.header .wrap {
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand img {
    display: block;
    height: 34px;
    width: auto;
}

.header-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--sand);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.header-link:hover {
    border-color: var(--clay);
    color: var(--clay);
}

/* Title block. */
.doc-hero {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--rule);
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clay);
    font-weight: 600;
    margin-bottom: 18px;
}

.doc-hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.02;
    font-size: clamp(40px, 5vw, 68px);
    margin-bottom: 16px;
}

.doc-hero p {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 56ch;
}

.meta {
    display: inline-block;
    margin-top: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--paper-alt);
    border: 1px solid var(--rule);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-faint);
}

/* Body: a reading column, with the contents beside it on wide screens. */
.content {
    padding: 48px 0 90px;
}

.layout {
    display: grid;
    gap: 40px;
}

.toc {
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--paper-alt);
}

.toc h2 {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 700;
    margin-bottom: 12px;
}

.toc ol {
    padding-left: 1.4rem;
    display: grid;
    gap: 6px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink-faint);
}

.toc a {
    color: var(--ink-soft);
    text-decoration: none;
}

.toc a:hover {
    color: var(--clay);
    text-decoration: underline;
}

.policy {
    max-width: 760px;
    min-width: 0;
}

.policy section {
    scroll-margin-top: 24px;
}

.policy h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 30px;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
}

.policy section:first-child h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.policy h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 22px;
}

.policy p,
.policy ul {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-top: 14px;
}

.policy ul {
    padding-left: 1.3rem;
}

.policy li {
    margin-bottom: 8px;
}

.policy a {
    color: var(--clay);
    overflow-wrap: anywhere;
}

.policy a:hover {
    color: var(--clay-dark);
}

.policy strong {
    color: var(--ink);
}

@media (min-width: 1024px) {
    .layout {
        grid-template-columns: 260px minmax(0, 760px);
        gap: 64px;
        align-items: start;
    }

    .toc {
        position: sticky;
        top: 24px;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }
}

/* Footer: the company, the contact and the related pages. */
.footer {
    background: var(--ink);
    color: var(--on-dark);
    padding: 44px 0 32px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px 48px;
}

.footer-lockup {
    display: block;
    height: 30px;
    width: auto;
    margin-bottom: 12px;
}

.footer a {
    color: var(--on-dark);
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer a.accent {
    color: var(--amber);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-content: flex-start;
}

.footer-links a[aria-current="page"] {
    color: var(--on-dark-bright);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--dark-rule);
    font-size: 13px;
    color: var(--ink-ghost);
}

.doc-hero p a {
    color: var(--clay);
}

/* Help-page pieces: the server URL, permission tables, example prompts, messages, notes. */
.policy code {
    font-size: 0.92em;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--paper-alt);
    border: 1px solid var(--rule);
    overflow-wrap: anywhere;
}

.url-box {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--on-dark-bright);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.policy ol {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-top: 14px;
    padding-left: 1.3rem;
}

.table-scroll {
    margin-top: 16px;
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 12px;
}

.policy table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.policy th,
.policy td {
    text-align: left;
    vertical-align: top;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
}

.policy th {
    background: var(--paper-alt);
    color: var(--ink);
    font-weight: 700;
}

.policy tr:last-child td {
    border-bottom: none;
}

.policy td code {
    white-space: nowrap;
}

.prompts {
    list-style: none;
    padding-left: 0 !important;
}

.prompts li {
    padding: 12px 16px;
    border-left: 3px solid var(--clay);
    background: var(--paper-alt);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--rule);
    background: var(--paper-alt);
}

.note p {
    margin-top: 0;
}

.message {
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px solid var(--rule);
    border-radius: 12px;
}

.message q {
    display: block;
    font-weight: 700;
    color: var(--ink);
    quotes: "\201C" "\201D";
}

.message p {
    margin-top: 8px;
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 16px;
    }

    .doc-hero {
        padding: 44px 0 30px;
    }

    .doc-hero p,
    .policy p,
    .policy ul,
    .policy ol {
        font-size: 16px;
    }

    .brand img {
        height: 28px;
    }

    .header-link {
        padding: 8px 14px;
        font-size: 14px;
    }

    .policy th,
    .policy td {
        padding: 8px 10px;
        font-size: 14px;
    }
}
