/* Public CSS for /documentation-api — not bundled by Vite */
:root {
    --brand: #187fc2;
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #1f2d3d;
    --muted: #64748b;
    --border: #e6ebf1;
    --post: #49cc90;
    --get: #61affe;
    --put: #fca130;
    --danger: #f93e3e;
}
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.docs-hidden { display: none !important; }
.header {
    position: sticky; top: 0; z-index: 20;
    padding: .85rem 1.25rem;
    background: var(--brand); color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.header-top {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap; margin-bottom: .65rem;
}
.header strong { display: block; }
.header .sub { font-size: .82rem; opacity: .9; }
.header a { color: #fff; text-decoration: none; font-size: .9rem; }
.token-bar {
    display: grid; grid-template-columns: 120px 1fr auto;
    gap: .5rem; align-items: center;
    background: rgba(255,255,255,.12); border-radius: 8px; padding: .55rem .65rem;
}
.token-bar label { font-size: .8rem; font-weight: 700; }
.token-bar input {
    width: 100%; border: 0; border-radius: 6px; padding: .55rem .65rem;
    font-family: Consolas, Monaco, monospace; font-size: .82rem;
}
.token-bar .btn {
    background: #0f172a; color: #fff; border: 0; border-radius: 6px;
    padding: .55rem .8rem; cursor: pointer; font-size: .82rem;
}
.layout {
    display: grid; grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 120px);
}
.sidebar {
    position: sticky; top: 120px; align-self: start;
    max-height: calc(100vh - 120px); overflow: auto;
    background: var(--panel); border-right: 1px solid var(--border);
    padding: 1rem .75rem;
}
.nav-title {
    margin: 1rem .5rem .35rem; font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: #8a97a8;
}
.sidebar a {
    display: flex; align-items: center; gap: .4rem;
    padding: .42rem .55rem; border-radius: 6px;
    color: #334155; text-decoration: none; font-size: .84rem;
}
.sidebar a:hover { background: #eef6fc; color: var(--brand); }
.content { padding: 1.5rem 1.75rem 3rem; max-width: 1040px; }
.section { margin-bottom: 1.75rem; scroll-margin-top: 140px; }
.section h1 { margin: 0 0 .7rem; font-size: 1.8rem; }
.section h2 {
    margin: 0 0 .85rem; font-size: 1.25rem;
    padding-bottom: .35rem; border-bottom: 1px solid var(--border);
}
.lead { color: var(--muted); line-height: 1.5; }
.info-box {
    background: var(--panel); border-left: 4px solid var(--brand);
    border-radius: 6px; padding: 1rem 1.1rem; margin: 1rem 0;
}
.endpoint {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1rem;
    scroll-margin-top: 140px;
}
.endpoint-head {
    display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
    margin-bottom: .45rem;
}
.method {
    min-width: 52px; text-align: center; font-size: .68rem; font-weight: 700;
    border-radius: 4px; padding: .2rem .35rem; color: #fff;
}
.method-post { background: var(--post); }
.method-get { background: var(--get); }
.method-put { background: var(--put); }
.badge {
    font-size: .72rem; border-radius: 999px; padding: .2rem .55rem;
    background: #e2e8f0; color: #334155;
}
.badge-auth { background: #fef3c7; color: #92400e; }
.badge-open { background: #dcfce7; color: #166534; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: .7rem 0 1rem; }
th, td { border: 1px solid var(--border); padding: .5rem .6rem; text-align: left; vertical-align: top; }
th { background: #f8fafc; }
.try-box {
    background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px;
    padding: .9rem; margin-top: .5rem;
}
.try-box label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .35rem; }
.try-box textarea, .try-box input.path-input {
    width: 100%; border: 1px solid #cbd5e1; border-radius: 6px;
    padding: .65rem .7rem; font-family: Consolas, Monaco, monospace;
    font-size: .8rem; margin-bottom: .65rem; background: #fff;
}
.try-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.btn {
    border: 0; border-radius: 8px; padding: .55rem .9rem;
    font-size: .85rem; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; }
.btn-secondary { background: #e2e8f0; color: #334155; }
.response-box {
    display: none; background: #0f172a; color: #e2e8f0; border-radius: 8px;
    padding: .85rem; overflow: auto; font-size: .78rem; white-space: pre-wrap;
    max-height: 360px;
}
.status-line { font-size: .8rem; color: var(--muted); margin: .35rem 0 .5rem; }
.footer {
    margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border);
    color: #94a3b8; font-size: .85rem;
}
.gate {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, 0.72); padding: 1rem;
}
.gate-card {
    width: 100%; max-width: 460px; background: #fff; border-radius: 12px;
    padding: 1.5rem 1.4rem 1.25rem; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.gate-card h2 { margin: 0 0 .4rem; font-size: 1.25rem; }
.gate-card p { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.gate-card label { display: block; font-size: .85rem; margin-bottom: .35rem; font-weight: 600; }
.gate-card textarea {
    width: 100%; border: 1px solid #cbd5e1; border-radius: 8px;
    padding: .7rem .75rem; font-size: .92rem; margin-bottom: .85rem;
    font-family: Consolas, Monaco, monospace;
}
.gate-actions { display: flex; gap: .6rem; justify-content: flex-end; }
.gate-error {
    display: none; background: #fef2f2; color: #b91c1c;
    border: 1px solid #fecaca; border-radius: 8px;
    padding: .65rem .75rem; margin-bottom: .85rem; font-size: .86rem;
}
.user-chip {
    background: rgba(255,255,255,.18); padding: .3rem .55rem;
    border-radius: 999px; font-size: .78rem;
}
code.path { font-size: .95rem; }
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); }
    .token-bar { grid-template-columns: 1fr; }
}
