html {
    overflow-x: hidden;
}

.docs-page {
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    letter-spacing: 0 !important;
    overflow-x: hidden;
}

.docs-page *,
.docs-page *::before,
.docs-page *::after {
    box-sizing: border-box;
}

.docs-page h1,
.docs-page h2,
.docs-page h3,
.docs-page h4,
.docs-page p,
.docs-page a,
.docs-page li,
.docs-page th,
.docs-page td,
.docs-page span,
.docs-page summary {
    letter-spacing: 0 !important;
}

.docs-page a {
    color: inherit;
}

.docs-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    font-weight: 800;
    white-space: nowrap;
}

.docs-page .btn .material-symbols-outlined {
    line-height: 1;
}

.docs-page code,
.docs-page pre {
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--control-bg);
    color: var(--control-fg);
    font-size: 0.86rem;
    font-weight: 750;
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.docs-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 292px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 100 !important;
}

.docs-sidebar-header {
    min-height: 76px;
    padding: 22px 22px 16px !important;
    border-bottom: 1px solid var(--border);
}

.docs-sidebar .logo {
    min-width: 0;
}

.docs-sidebar .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-sidebar-close {
    display: none !important;
}

.docs-sidebar-title {
    padding: 16px 22px 12px;
    border-bottom: 1px solid var(--border);
}

.docs-sidebar-title span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-faint);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.docs-sidebar-title strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.35;
}

.docs-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 12px 18px !important;
}

.docs-nav .nav-section {
    margin-bottom: 18px;
}

.docs-nav .nav-section-title {
    display: block;
    padding: 0 10px;
    margin-bottom: 7px;
    color: var(--text-faint) !important;
    font-size: 0.67rem;
    font-weight: 850;
    text-transform: uppercase;
}

.docs-nav .nav-link {
    display: flex !important;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 11px !important;
    border-radius: 14px;
    color: var(--text-secondary) !important;
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.docs-nav .nav-link .material-symbols-outlined {
    flex: 0 0 19px;
    width: 19px;
    color: var(--text-muted);
    font-size: 19px;
}

.docs-nav .nav-link:hover,
.docs-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.065) !important;
    color: var(--text-primary) !important;
}

.docs-nav .nav-link.active {
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.docs-nav .nav-link.active .material-symbols-outlined {
    color: var(--text-primary);
}

.docs-sidebar-footer {
    margin-top: auto;
    padding: 16px 16px 20px;
    border-top: 1px solid var(--border);
}

.docs-sidebar-cta,
.docs-sidebar-support {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
}

.docs-sidebar-cta {
    gap: 8px;
    background: var(--control-bg);
    color: var(--control-fg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.docs-sidebar-cta .material-symbols-outlined {
    font-size: 18px;
    color: var(--control-fg) !important;
}

.docs-sidebar-support {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.docs-overlay {
    display: none;
}

.docs-main-shell {
    min-height: 100vh;
    margin-left: 292px;
}

.docs-topbar {
    position: sticky !important;
    top: 0;
    z-index: 90;
    min-height: 66px;
    padding: 0 28px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.docs-topbar-left,
.docs-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-menu-toggle {
    display: none !important;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 14px !important;
}

.docs-menu-toggle .material-symbols-outlined {
    font-size: 22px;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.docs-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: var(--text-primary) !important;
}

.docs-topbar-link {
    min-height: 38px !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    text-decoration: none !important;
}

.docs-topbar-link .material-symbols-outlined {
    font-size: 17px;
}

.docs-main {
    width: min(1180px, calc(100% - 52px));
    margin: 0 auto;
    padding: 42px 0 78px;
}

.docs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 34px;
    align-items: center;
    min-height: 520px;
}

.docs-hero > * {
    min-width: 0;
}

.docs-hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.section-tag,
.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    margin: 0 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-secondary) !important;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.docs-hero h1 {
    width: 100%;
    max-width: 740px;
    margin: 0;
    color: var(--text-primary) !important;
    font-size: 3.65rem;
    line-height: 1;
    font-weight: 850;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
}

.docs-hero-lede {
    max-width: 690px;
    margin: 22px 0 0;
    color: var(--text-secondary) !important;
    font-size: 1.08rem;
    line-height: 1.75;
    white-space: normal !important;
    overflow-wrap: break-word;
}

.docs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.docs-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.docs-action .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.docs-action-primary {
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: #ffffff;
    color: #09090b !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.docs-action-primary .material-symbols-outlined {
    color: #09090b;
}

.docs-action-secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary) !important;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.docs-action-secondary .material-symbols-outlined {
    color: var(--text-secondary);
}

.docs-action:hover {
    transform: translateY(-1px);
}

.docs-action-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.075);
}

.docs-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.docs-hero-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.docs-hero-facts strong {
    margin-right: 5px;
    color: var(--text-primary);
}

.docs-setup-panel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
    overflow: hidden;
}

.docs-setup-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.docs-setup-panel-header > .material-symbols-outlined {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-primary);
    font-size: 22px;
}

.docs-setup-panel-header strong,
.docs-setup-panel-header small {
    display: block;
}

.docs-setup-panel-header strong {
    color: var(--text-primary);
    font-size: 0.98rem;
    font-weight: 850;
}

.docs-setup-panel-header small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.docs-route-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.docs-route-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.docs-route-item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 850;
}

.docs-route-item strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 0.86rem;
}

.docs-route-item code {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    color: #e5e7eb;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.docs-search-panel {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 10px 0 20px;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
}

.docs-search-field {
    position: relative;
    min-width: 0;
}

.docs-search-field .material-symbols-outlined {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 21px;
    pointer-events: none;
}

.docs-search-field input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-input);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.92rem;
    outline: none;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.docs-search-field input:focus {
    border-color: var(--border-focus);
}

.docs-quick-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-secondary);
    font-size: 0.79rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.docs-quick-links a:hover {
    border-color: var(--border-hover);
    color: var(--text-primary) !important;
}

.docs-no-results {
    margin: 28px 0 0;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary) !important;
}

.docs-content {
    margin-top: 18px;
}

.doc-section {
    padding-top: 62px;
    margin-top: 62px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 92px;
}

.doc-section:first-child {
    padding-top: 34px;
    margin-top: 0;
    border-top: 0;
}

.doc-section[hidden] {
    display: none !important;
}

.section-heading {
    max-width: 790px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    color: var(--text-primary) !important;
    font-size: 2.05rem;
    line-height: 1.15;
    font-weight: 850;
}

.section-lede {
    margin: 12px 0 0;
    color: var(--text-secondary) !important;
    font-size: 1rem;
    line-height: 1.75;
}

.doc-section h3 {
    margin: 24px 0 10px;
    color: var(--text-primary) !important;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
}

.doc-section p,
.doc-section li {
    color: var(--text-secondary) !important;
    line-height: 1.72;
}

.doc-section code {
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-size: 0.88em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.setup-grid,
.feature-grid,
.mode-grid,
.example-grid {
    display: grid;
    gap: 14px;
}

.setup-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-card,
.feature-card,
.mode-card,
.example-card,
.info-panel,
.rules-panel,
.doc-mini-section {
    min-width: 0;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.setup-card,
.feature-card,
.mode-card,
.example-card {
    border-radius: 22px;
}

.setup-card {
    padding: 18px;
}

.setup-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 850;
}

.setup-card h3,
.feature-card h3,
.mode-card h3,
.example-card h3 {
    margin-top: 16px;
}

.setup-card p,
.feature-card p,
.mode-card p,
.example-card p {
    margin: 0;
    font-size: 0.88rem;
}

.setup-card a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
}

.feature-card,
.mode-card,
.example-card {
    padding: 20px;
}

.feature-card > .material-symbols-outlined,
.mode-card > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-primary);
    font-size: 21px;
}

.mode-card > code {
    display: inline-block;
    margin-top: 14px;
}

.example-card-wide {
    grid-column: 1 / -1;
}

.doc-callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 22px 0;
    padding: 17px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
}

.doc-callout .material-symbols-outlined {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 21px;
}

.doc-callout p {
    margin: 0;
    font-size: 0.92rem;
}

.doc-callout-info {
    border-color: rgba(147, 197, 253, 0.18);
}

.doc-callout-info .material-symbols-outlined {
    color: #93c5fd;
}

.doc-callout-warning {
    border-color: rgba(251, 191, 36, 0.2);
}

.doc-callout-warning .material-symbols-outlined {
    color: #fbbf24;
}

.doc-code {
    margin: 18px 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(5, 6, 10, 0.78);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.compact-code {
    margin-bottom: 0;
}

.code-header {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-header span:first-child {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.copy-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-secondary);
}

.copy-code:hover,
.copy-code.copied {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.09);
}

.copy-code .material-symbols-outlined {
    font-size: 17px;
}

.doc-code pre {
    margin: 0;
    padding: 17px 18px 19px;
    overflow-x: auto;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.doc-code code {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre;
}

.split-layout,
.reference-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.info-panel,
.rules-panel,
.doc-mini-section {
    padding: 20px;
    border-radius: 22px;
}

.info-panel > .material-symbols-outlined {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 21px;
}

.check-list,
.compact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li,
.compact-list li {
    position: relative;
    padding-left: 26px;
    margin: 10px 0;
}

.check-list li::before,
.compact-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--text-muted);
}

.table-wrap {
    width: 100%;
    margin: 16px 0 24px;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
}

.doc-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.doc-table caption {
    padding: 12px 16px 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
}

.doc-table th,
.doc-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.doc-table th {
    color: var(--text-muted) !important;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.doc-table td {
    color: var(--text-secondary) !important;
}

.doc-table tbody tr:last-child td {
    border-bottom: 0;
}

.doc-table-wide {
    min-width: 860px;
}

.flow-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.flow-row > div {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
}

.flow-row span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-primary);
    font-weight: 850;
}

.flow-row strong {
    display: block;
    margin-top: 14px;
    color: var(--text-primary);
}

.flow-row p {
    margin: 8px 0 0;
    font-size: 0.88rem;
}

.details-stack {
    display: grid;
    gap: 10px;
}

.details-stack details {
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-highlight);
    overflow: hidden;
}

.details-stack summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: var(--text-primary);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.details-stack summary::-webkit-details-marker {
    display: none;
}

.details-stack summary::after {
    content: "+";
    margin-left: auto;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 700;
}

.details-stack details[open] summary::after {
    content: "-";
}

.details-stack details > ul,
.details-stack details > p {
    margin: 0;
    padding: 0 18px 18px;
}

.details-stack details > ul {
    padding-left: 42px;
}

.faq-stack p {
    color: var(--text-secondary) !important;
}

.docs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-left: 292px;
    padding: 28px 42px;
    border-top: 1px solid var(--border);
    background: rgba(6, 7, 10, 0.72);
}

.docs-footer p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--text-muted) !important;
    font-size: 0.82rem;
}

.docs-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.docs-footer a:hover {
    color: var(--text-primary) !important;
}

.docs-footer-links {
    display: flex;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .setup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid,
    .compact-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .docs-sidebar {
        transform: translateX(-104%);
        transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    .docs-nav-open .docs-sidebar {
        transform: translateX(0);
    }

    .docs-sidebar-close {
        display: inline-flex !important;
    }

    .docs-overlay {
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .docs-nav-open .docs-overlay {
        display: block;
    }

    .docs-main-shell,
    .docs-footer {
        margin-left: 0;
    }

    .docs-menu-toggle {
        display: inline-flex !important;
    }

    .docs-main {
        width: min(780px, calc(100% - 32px));
        padding-top: 30px;
    }

    .docs-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .docs-hero h1 {
        font-size: 2.75rem;
        line-height: 1.05;
    }

    .docs-search-panel {
        grid-template-columns: 1fr;
    }

    .docs-quick-links {
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .docs-quick-links::-webkit-scrollbar {
        display: none;
    }

    .split-layout,
    .reference-grid,
    .flow-row {
        grid-template-columns: 1fr;
    }

    .mode-grid,
    .example-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .docs-topbar {
        padding: 0 16px !important;
    }

    .docs-topbar-actions .btn-outline {
        display: none !important;
    }

    .docs-topbar-link {
        min-height: 36px !important;
        padding: 0 12px !important;
    }

    .docs-hero h1 {
        font-size: 2.05rem;
        line-height: 1.08;
    }

    .docs-hero-lede {
        font-size: 0.98rem;
    }

    .docs-hero-actions {
        flex-direction: column;
    }

    .docs-action {
        width: 100%;
        justify-content: center;
    }

    .setup-grid,
    .feature-grid,
    .compact-feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 1.68rem;
    }

    .doc-section {
        padding-top: 48px;
        margin-top: 48px;
    }

    .docs-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 20px;
    }

    .docs-footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .docs-topbar-actions {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .docs-sidebar,
    .skip-link {
        transition: none;
    }
}

/* Documentation visual parity with the precision landing page. */
.docs-page {
    --docs-line: rgba(255, 255, 255, 0.12);
    --docs-line-strong: rgba(255, 255, 255, 0.18);
    --docs-surface: rgba(24, 24, 27, 0.68);
    --docs-surface-strong: rgba(31, 31, 36, 0.76);
    --docs-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(180deg, #09090b, #111113 56%, #09090b) !important;
    background-size: 48px 48px, 48px 48px, auto !important;
}

.docs-sidebar,
.docs-topbar,
.docs-footer {
    background: rgba(9, 9, 11, 0.72) !important;
    border-color: var(--docs-line) !important;
    box-shadow: none !important;
}

.docs-sidebar {
    backdrop-filter: blur(28px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
}

.docs-sidebar .logo-mark,
.docs-footer .logo-mark {
    display: inline-block !important;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    background-image: url("/assets/synnectra-logo-mark-v2-removebg-preview.png") !important;
    background-size: contain !important;
}

.docs-sidebar .logo,
.docs-footer .logo {
    text-decoration: none !important;
}

.docs-sidebar-title,
.docs-sidebar-header,
.docs-sidebar-footer,
.doc-section,
.docs-setup-panel-header {
    border-color: var(--docs-line) !important;
}

.docs-main {
    width: min(1240px, calc(100% - 56px));
}

.docs-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
    min-height: 620px;
    gap: 44px;
}

.docs-hero h1 {
    max-width: 820px;
    font-size: clamp(3rem, 4.8vw, 4.55rem);
    font-weight: 860;
    letter-spacing: 0 !important;
}

.docs-hero-lede {
    max-width: 740px;
    color: var(--text-secondary) !important;
}

.section-tag,
.section-kicker,
.docs-hero-facts span,
.docs-quick-links a,
.docs-route-item > span {
    border-color: var(--docs-line) !important;
    background: rgba(24, 24, 27, 0.58) !important;
    border-radius: 999px;
}

.docs-action,
.docs-sidebar-cta,
.docs-topbar-link {
    border-radius: 14px !important;
}

.docs-action-primary,
.docs-sidebar-cta,
.docs-topbar-actions .btn-primary {
    background: #fafafa !important;
    color: #09090b !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

.docs-action-primary .material-symbols-outlined,
.docs-sidebar-cta .material-symbols-outlined,
.docs-topbar-actions .btn-primary .material-symbols-outlined {
    color: #09090b !important;
}

.docs-action-secondary,
.docs-topbar-actions .btn-outline {
    background: rgba(255, 255, 255, 0.048) !important;
    border-color: var(--docs-line) !important;
    color: var(--text-primary) !important;
}

.docs-setup-panel,
.docs-search-panel,
.setup-card,
.feature-card,
.mode-card,
.example-card,
.info-panel,
.rules-panel,
.doc-mini-section,
.doc-callout,
.doc-code,
.table-wrap,
.details-stack details,
.docs-no-results {
    background: var(--docs-surface) !important;
    border: 1px solid var(--docs-line) !important;
    box-shadow: var(--docs-shadow) !important;
    backdrop-filter: blur(26px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(150%) !important;
}

.docs-setup-panel,
.docs-search-panel,
.setup-card,
.feature-card,
.mode-card,
.example-card,
.info-panel,
.rules-panel,
.doc-mini-section {
    border-radius: 24px !important;
}

.doc-callout,
.doc-code,
.table-wrap,
.details-stack details,
.docs-route-item {
    border-radius: 14px !important;
}

.docs-setup-panel-header > .material-symbols-outlined,
.feature-card > .material-symbols-outlined,
.mode-card > .material-symbols-outlined,
.info-panel > .material-symbols-outlined,
.doc-callout .material-symbols-outlined {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--accent) !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.docs-route-item,
.setup-card span:first-child {
    border-color: var(--docs-line) !important;
    background: rgba(9, 9, 11, 0.42) !important;
}

.docs-search-field input,
.docs-route-item code,
.doc-code pre,
.doc-code code {
    background: rgba(9, 9, 11, 0.70) !important;
    border-color: var(--docs-line) !important;
}

.doc-table th,
.doc-table td {
    border-color: rgba(255, 255, 255, 0.09) !important;
}

.doc-table th {
    background: rgba(255, 255, 255, 0.045) !important;
}

@media (max-width: 980px) {
    .docs-main {
        width: min(780px, calc(100% - 32px));
    }

    .docs-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 28px;
    }

    .docs-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
        line-height: 1.05;
    }
}

@media (max-width: 680px) {
    .docs-hero h1 {
        font-size: 2.35rem;
        line-height: 1.08;
    }
}
