/* Synerasis API Docs — console de integração */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; animation-timing-function: ease-out; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 24px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text-hi);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }

/* Carregamento de navegação */
.page-loader {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    background: var(--bg);
    color: var(--text-mid);
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .18s;
    visibility: hidden;
}
.page-loader__mark { width: 20px; height: 20px; border: 2px solid color-mix(in srgb, var(--brand-blue) 20%, transparent); border-top-color: var(--brand-cyan); border-radius: 50%; animation: page-loader-spin .7s linear infinite; }
html.page-loading .page-loader, html.page-leaving .page-loader { opacity: 1; pointer-events: auto; transition-delay: 0s; visibility: visible; }
html.page-loading body > :not(.page-loader) { visibility: hidden; }
.topbar, .docs-shell, body > .content { transition: opacity .16s cubic-bezier(.22, 1, .36, 1), transform .16s cubic-bezier(.22, 1, .36, 1); }
html.page-leaving .topbar, html.page-leaving .docs-shell, html.page-leaving body > .content { opacity: 0; transform: translateY(-4px); }
@keyframes page-loader-spin { to { transform: rotate(1turn); } }
h1, h2, h3, h4 {
    color: var(--text-hi);
    font-family: var(--font-display);
    line-height: 1.16;
    letter-spacing: -.025em;
    scroll-margin-top: calc(var(--topbar-h) + 24px);
}
h1 { max-width: 18ch; margin: 0 0 1rem; font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 800; }
h2 { margin: 3.5rem 0 1rem; padding-top: .75rem; border-top: 1px solid var(--border); font-size: 1.55rem; font-weight: 700; }
h2:first-of-type, .no-border-top { padding-top: 0; border-top: 0; }
h3 { margin: 2.25rem 0 .65rem; font-size: 1.08rem; font-weight: 700; }
p { color: var(--text-mid); }
strong { color: var(--text-hi); }
code:not(pre code) {
    padding: .16em .42em;
    border-radius: 5px;
    background: var(--surface-3);
    color: var(--brand-blue);
    font-family: var(--font-mono);
    font-size: .84em;
}
:root[data-bs-theme="dark"] code:not(pre code) { color: var(--brand-sky); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-cyan) 58%, transparent); outline-offset: 3px; }

/* Topbar */
.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    height: var(--topbar-h);
    align-items: center;
    gap: .9rem;
    padding: 0 clamp(1rem, 2.2vw, 2rem);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
}
.logo-lockup { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo-lockup:hover { text-decoration: none; }
.topbar img.logo { width: auto; height: 29px; }
.logo-dark-mode { display: none; }
:root[data-bs-theme="dark"] .logo-light-mode { display: none; }
:root[data-bs-theme="dark"] .logo-dark-mode { display: block; }
.site-name {
    padding-left: .75rem;
    border-left: 1px solid var(--border-strong);
    color: var(--text-hi);
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .3rem .58rem;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--brand-green);
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent); }
.spacer { flex: 1; }
.icon-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-mid);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text-hi); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-bs-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-bs-theme="dark"] .theme-toggle .icon-sun { display: block; }
.btn-portal {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: .55rem;
    padding: .55rem .9rem;
    border-radius: 10px;
    background: var(--brand-blue);
    box-shadow: 0 8px 20px rgba(0, 110, 174, .2);
    color: #fff !important;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-portal:hover { background: #005b91; box-shadow: 0 12px 26px rgba(0, 110, 174, .26); text-decoration: none; transform: translateY(-1px); }
.btn-portal svg { width: 15px; height: 15px; }
.mobile-nav-toggle { display: none; }

/* Shell e navegação */
.docs-shell { display: flex; width: 100%; max-width: 1680px; min-height: calc(100vh - var(--topbar-h)); margin: 0 auto; }
.docs-column { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.sidebar {
    position: sticky;
    top: var(--topbar-h);
    display: flex;
    width: var(--sidebar-w);
    height: calc(100vh - var(--topbar-h));
    flex: 0 0 var(--sidebar-w);
    flex-direction: column;
    align-self: flex-start;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(120% 48% at 50% 0%, rgba(0,110,174,.42), transparent 72%),
        linear-gradient(180deg, #003a5f 0%, #002a45 100%);
    box-shadow: 8px 0 30px rgba(0, 42, 69, .08);
    color: #fff;
}
.sidebar-intro { position: relative; padding: 1.55rem 1.3rem .9rem; }
.sidebar-intro span { display: block; color: rgba(255,255,255,.78); font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-intro strong { display: block; margin-top: .1rem; color: #fff; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; }
.sidebar-close { display: none; }
.sidebar-search {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: .55rem;
    margin: .35rem .9rem 1rem;
    padding: 0 .72rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.78);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sidebar-search:focus-within { border-color: rgba(0,192,223,.72); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(0,192,223,.12); }
.sidebar-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.sidebar-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: .8rem; }
.sidebar-search input::placeholder { color: rgba(255,255,255,.78); opacity: 1; }
.sidebar-search kbd { padding: .05rem .35rem; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: rgba(0,0,0,.12); color: rgba(255,255,255,.8); font-family: var(--font-mono); font-size: .65rem; }
.sidebar-scroll { min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; padding: .1rem .72rem 1.5rem; overscroll-behavior: contain; scrollbar-gutter: stable; }
.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255,255,255,.16); }
.sidebar-group { margin: 0 0 1.35rem; }
.sidebar-group-title { padding: 0 .62rem; margin: 0 0 .38rem; color: rgba(255,255,255,.76); font-size: .65rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.sidebar a {
    position: relative;
    display: flex;
    min-height: 39px;
    align-items: center;
    gap: .58rem;
    margin: 2px 0;
    padding: .48rem .64rem;
    border-radius: 8px;
    color: rgba(255,255,255,.78);
    font-size: .82rem;
    font-weight: 500;
    transition: background .16s ease, color .16s ease;
}
.sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar a.active { background: rgba(28,170,131,.2); color: #fff; font-weight: 600; }
.sidebar a.active::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 1px; background: var(--brand-green); content: ""; }
.method-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.3); }
.method-dot.get { background: var(--brand-cyan); box-shadow: 0 0 0 3px rgba(0,192,223,.11); }
.method-dot.post { background: var(--brand-green); }
.sidebar-meta { padding: .95rem 1.3rem 1.15rem; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.08); }
.sidebar-meta span { display: flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.76); font-size: .72rem; font-weight: 600; }
.sidebar-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 3px rgba(28,170,131,.14); }
.sidebar-meta small { display: block; margin-top: .2rem; color: rgba(255,255,255,.74); font-family: var(--font-mono); font-size: .62rem; }
.nav-backdrop { display: none; }
.content { width: 100%; min-width: 0; max-width: 1080px; margin-inline: auto; padding: clamp(2.25rem, 4vw, 4rem) clamp(1.5rem, 4.5vw, 4.5rem) 7rem; }
.content > p, .content > h1, .content > h2, .content > h3, .content > .callout, .content > .docs-table, .content > .code-block { max-width: 76ch; }
.content-wide, .content-landing { max-width: none; margin-inline: 0; }
.content-landing { padding: 0; }

/* Referência */
.endpoint-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-top: 1.5rem; }
.endpoint-prose { min-width: 0; }
.endpoint-examples { position: sticky; top: calc(var(--topbar-h) + 24px); }
.endpoint-title { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.method-badge { padding: .25rem .58rem; border-radius: 6px; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.method-badge.get { background: rgba(0,110,174,.12); color: var(--brand-blue); }
.method-badge.post { background: rgba(28,170,131,.14); color: var(--brand-green); }
.endpoint-path { color: var(--text-hi); font-family: var(--font-mono); font-size: 1rem; }
.scope-required { display: inline-flex; align-items: center; gap: .38rem; margin-top: .5rem; color: var(--text-low); font-size: .76rem; }
.scope-badge { padding: .13rem .45rem; border-radius: 5px; background: var(--surface-3); color: var(--brand-blue); font-family: var(--font-mono); font-size: .7rem; font-weight: 600; }
:root[data-bs-theme="dark"] .scope-badge { color: var(--brand-sky); }

table.docs-table { width: 100%; margin: 1.25rem 0 2rem; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: .84rem; }
table.docs-table th { padding: .7rem .85rem; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text-low); font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
table.docs-table td { padding: .72rem .85rem; border-bottom: 1px solid var(--border); color: var(--text-mid); vertical-align: top; }
table.docs-table td:first-child { color: var(--text-hi); font-family: var(--font-mono); white-space: nowrap; }
table.docs-table tr:last-child td { border-bottom: 0; }
table.docs-table tbody tr:hover { background: color-mix(in srgb, var(--brand-sky) 4%, var(--surface)); }

.callout { display: flex; gap: .75rem; padding: 1rem 1.1rem; margin: 1.5rem 0; border: 1px solid transparent; border-radius: var(--radius); font-size: .84rem; }
.callout p { margin: 0; color: inherit; }
.callout-info { border-color: rgba(65,162,255,.22); background: rgba(65,162,255,.09); color: var(--text-hi); }
.callout-warning { border-color: rgba(240,165,0,.25); background: var(--warning-bg); color: var(--text-hi); }
.callout strong { color: inherit; }

/* Código */
.code-tabs { position: relative; z-index: 1; display: flex; gap: .2rem; margin-bottom: -1px; }
.code-tab { padding: .48rem .78rem; border: 1px solid transparent; border-radius: 8px 8px 0 0; background: transparent; color: var(--code-mid); font-family: var(--font-mono); font-size: .72rem; font-weight: 600; cursor: pointer; }
.code-tab:hover { color: var(--code-text); }
.code-tab.active { border-color: var(--code-border); background: var(--code-bg); color: var(--code-text); }
.code-panel { display: none; }
.code-panel.active { display: block; }
.code-block { position: relative; overflow: hidden; border: 1px solid var(--code-border); border-radius: var(--radius); background: var(--code-bg); box-shadow: 0 12px 30px rgba(3,16,29,.13); }
.code-tabs + .code-panel-wrap .code-block, .code-tabs + .code-block { border-top-left-radius: 0; }
.code-block pre { margin: 0; padding: 1.15rem 1.2rem; overflow-x: auto; }
.code-block code { padding: 0; background: none; color: var(--code-text); font-family: var(--font-mono); font-size: .78rem; line-height: 1.68; }
.code-copy-btn { position: absolute; z-index: 2; top: .65rem; right: .65rem; padding: .3rem .58rem; border: 1px solid var(--code-border); border-radius: 7px; background: var(--code-bg-2); color: var(--code-mid); font-size: .67rem; font-weight: 600; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.code-copy-btn:hover { color: var(--code-text); }
.code-copy-btn.copied { border-color: var(--brand-green); color: var(--brand-green); }
.code-block-label { display: flex; align-items: center; gap: .5rem; padding: .65rem 0 .45rem; color: var(--code-mid); font-family: var(--font-mono); font-size: .67rem; }
.code-block-label span { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,192,223,.14); color: var(--brand-cyan); font-size: .62rem; }
.tok-key { color: #7ec4ff; }
.tok-str { color: #8fe3b0; }
.tok-num { color: #f6c343; }
.tok-bool { color: #ff9fb0; }
.tok-punc, .tok-comment { color: var(--code-mid); }
.tok-comment { font-style: italic; }
.tok-func { color: #c3a4ff; }

/* Landing */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    min-height: 620px;
    align-items: center;
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 6.5rem) clamp(2rem, 5vw, 6rem);
    background:
        radial-gradient(circle at 9% 10%, rgba(0,192,223,.22), transparent 28%),
        radial-gradient(circle at 86% 86%, rgba(28,170,131,.16), transparent 24%),
        linear-gradient(135deg, #003b60 0%, #005b91 50%, #006eae 100%);
    color: #fff;
}
.hero::after { position: absolute; z-index: -1; top: -18%; left: 47%; width: 45%; height: 140%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; transform: rotate(18deg); animation: hero-orbit 11s ease-in-out infinite alternate; }
.hero-copy { max-width: 640px; }
.hero h1 { max-width: 12ch; color: #fff; font-size: clamp(2.7rem, 5.2vw, 5rem); letter-spacing: -.04em; text-wrap: balance; }
.hero p.lead { max-width: 56ch; margin: 0 0 2rem; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.4rem; }
.btn-primary, .btn-secondary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .6rem; padding: .72rem 1.15rem; border-radius: 10px; font-size: .84rem; font-weight: 700; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn-primary { background: #fff; box-shadow: 0 12px 28px rgba(0,27,45,.18); color: #005b91 !important; }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(0,27,45,.24); text-decoration: none; transform: translateY(-2px); }
.btn-primary svg { width: 16px; height: 16px; transition: transform .18s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-secondary { border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.08); color: #fff !important; }
.btn-secondary:hover { background: rgba(255,255,255,.15); text-decoration: none; transform: translateY(-2px); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; color: rgba(255,255,255,.88); font-size: .72rem; }
.hero-facts span { display: flex; flex-direction: column; }
.hero-facts strong { color: #fff; font-family: var(--font-display); font-size: .84rem; }
.hero-console { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(4,20,34,.92); box-shadow: 0 30px 70px rgba(0,26,44,.34); }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); color: var(--code-mid); font-family: var(--font-mono); font-size: .65rem; }
.console-title { display: flex; align-items: center; gap: .48rem; color: var(--code-text); font-weight: 600; }
.console-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green); }
.console-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-code { padding: .5rem 1rem 1rem; text-align: left; }
.hero-code .code-block { border-color: rgba(255,255,255,.07); box-shadow: none; }

.capability-map { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: 0 auto; padding: 2.5rem clamp(1.5rem, 4vw, 4rem); border-bottom: 1px solid var(--border); }
.capability-item { display: grid; grid-template-columns: 44px 1fr 20px; gap: 1rem; align-items: center; padding: 1.25rem clamp(1rem, 2vw, 1.75rem); color: inherit; }
.capability-item + .capability-item { border-left: 1px solid var(--border); }
.capability-item:hover { text-decoration: none; }
.capability-item .icon { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(0,110,174,.09); color: var(--brand-blue); transition: background .18s ease, color .18s ease; }
.capability-item:hover .icon { background: var(--brand-blue); color: #fff; }
.capability-item h2 { margin: 0 0 .25rem; padding: 0; border: 0; font-size: .96rem; }
.capability-item p { margin: 0; color: var(--text-low); font-size: .77rem; line-height: 1.5; }
.item-arrow { width: 18px; color: var(--text-low); transition: color .18s ease, transform .18s ease; }
.capability-item:hover .item-arrow { color: var(--brand-blue); transform: translateX(4px); }

.steps { max-width: 900px; margin: 0 auto; padding: 5rem clamp(1.5rem, 5vw, 4rem); counter-reset: step; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, .7fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading h2 { max-width: 18ch; margin: 0; font-size: clamp(1.9rem, 3vw, 2.75rem); text-wrap: balance; }
.section-heading p { margin: 0; font-size: .9rem; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
.step .num { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-blue); color: #fff; font-family: var(--font-display); font-size: .78rem; font-weight: 700; counter-increment: step; }
.step .num::before { content: counter(step); }
.step h3 { margin: .1rem 0 .35rem; font-size: 1rem; }
.step p { max-width: 70ch; margin: 0; font-size: .86rem; }
.landing-note { max-width: 900px; margin: 0 auto 5rem; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.endpoint-catalog { max-width: 1100px; margin: 0 auto; padding: 4rem clamp(1.5rem, 5vw, 4rem); border-top: 1px solid var(--border); }
.endpoint-catalog .section-heading { margin-bottom: 1.5rem; }
.endpoint-catalog .section-heading h2 { max-width: none; }
.endpoint-catalog .table-wrap { overflow-x: auto; }
.endpoint-catalog .docs-table { min-width: 760px; margin-bottom: 0; }
.endpoint-catalog .docs-table td:first-child { font-family: var(--font-sans); }
.endpoint-catalog .docs-table td:nth-child(2) { white-space: nowrap; }
.table-hint { display: none; margin: 0 0 .7rem; color: var(--text-low); font-size: .76rem; }

/* Footer */
.site-footer { margin-top: auto; padding: 2rem 3rem; border-top: 1px solid var(--border); background: var(--surface); text-align: center; }
.site-footer p { margin: 0; color: var(--text-low); font-size: .75rem; }
.site-footer a { color: var(--text-low); }
.text-muted { color: var(--text-low); }
.mt-0 { margin-top: 0; }

@keyframes hero-orbit {
    from { transform: rotate(18deg) translate3d(0, -8px, 0); }
    to { transform: rotate(22deg) translate3d(24px, 16px, 0); }
}

@media (max-width: 1120px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-copy { max-width: 760px; }
    .hero h1 { max-width: 14ch; }
    .hero-console { max-width: 780px; }
    .endpoint-block { grid-template-columns: minmax(0, 1fr); }
    .endpoint-examples { position: static; }
}

@media (max-width: 860px) {
    .topbar { padding: 0 1rem; }
    .mobile-nav-toggle { display: inline-flex; }
    .site-name { display: none; }
    .sidebar {
        position: fixed;
        z-index: 70;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 320px);
        height: 100dvh;
        transform: translate3d(-105%, 0, 0);
        visibility: hidden;
        box-shadow: 20px 0 55px rgba(0,20,34,.34);
        transition: transform .28s cubic-bezier(.22,1,.36,1), visibility .28s;
    }
    .sidebar.open { transform: translate3d(0,0,0); visibility: visible; }
    .sidebar-close { position: absolute; top: 1.25rem; right: 1rem; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
    .sidebar-close svg { width: 18px; height: 18px; }
    .nav-backdrop { position: fixed; z-index: 60; inset: 0; display: block; border: 0; background: rgba(0,23,38,.58); opacity: 0; visibility: hidden; cursor: default; backdrop-filter: blur(3px); transition: opacity .24s ease, visibility .24s; }
    .nav-backdrop.visible { opacity: 1; visibility: visible; }
    .content { padding: 2.5rem 1.35rem 5rem; }
    .hero { gap: 2.5rem; padding: 3.5rem 1.35rem; }
    .hero h1 { font-size: clamp(2.55rem, 10vw, 4rem); }
    .capability-map { grid-template-columns: 1fr; padding-top: 1.25rem; padding-bottom: 1.25rem; }
    .capability-item + .capability-item { border-top: 1px solid var(--border); border-left: 0; }
    .section-heading { grid-template-columns: 1fr; gap: .75rem; }
}

@media (max-width: 560px) {
    .version-badge { display: none; }
    .btn-portal { width: 40px; padding: 0; font-size: 0; }
    .btn-portal svg { width: 17px; height: 17px; }
    .hero { padding-top: 3rem; }
    .hero-console { margin-right: -.35rem; margin-left: -.35rem; }
    .console-host { display: none; }
    .hero-code { padding-right: .7rem; padding-left: .7rem; }
    .hero-code .code-block pre { padding-top: 2.7rem; }
    .hero-facts { gap: .7rem 1rem; }
    .capability-item { grid-template-columns: 40px 1fr 18px; padding-right: .2rem; padding-left: .2rem; }
    .capability-item .icon { width: 40px; height: 40px; }
    .steps { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .table-hint { display: block; }
    table.docs-table { display: block; max-width: 100%; overflow-x: auto; }
    .endpoint-path { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
    .topbar, .sidebar, .site-footer, .code-copy-btn { display: none !important; }
    .docs-shell, .content { display: block; max-width: none; padding: 0; }
    body { background: #fff; color: #111; }
    .endpoint-examples { position: static; }
}
