


.docs-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 253, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(58, 214, 249, 0.2);
    transition: background 0.3s ease;
}

html[dark] .docs-header {
    background: rgba(14, 14, 14, 0.9);
    border-bottom-color: rgba(77, 163, 255, 0.2);
}

.docs-header-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    height: 60px;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.docs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-medium);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(58, 214, 249, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.docs-back-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(62, 181, 208, 0.07);
}

html[dark] .docs-back-btn {
    border-color: rgba(77, 163, 255, 0.25);
}

html[dark] .docs-back-btn:hover {
    border-color: var(--color-accent);
    background: rgba(77, 163, 255, 0.1);
}

.docs-header-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.docs-header-logo img {
    height: 32px;
    width: auto;
}

.docs-header-logo-text {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--color-text-dark);
    line-height: 1;
}

.docs-header-logo-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(62, 181, 208, 0.12);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(62, 181, 208, 0.3);
    line-height: 1;
}

html[dark] .docs-header-logo-badge {
    background: rgba(77, 163, 255, 0.12);
    border-color: rgba(77, 163, 255, 0.3);
}

.docs-header-spacer {
    flex: 1;
}

.docs-header-divider {
    width: 1px;
    height: 24px;
    background: rgba(58, 214, 249, 0.2);
    flex-shrink: 0;
}

html[dark] .docs-header-divider {
    background: rgba(77, 163, 255, 0.2);
}

.docs-theme-toggle {
    background: none;
    border: 1px solid rgba(58, 214, 249, 0.25);
    border-radius: 0.375rem;
    color: var(--color-text-medium);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.docs-theme-toggle:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(62, 181, 208, 0.07);
}

html[dark] .docs-theme-toggle {
    border-color: rgba(77, 163, 255, 0.25);
}


.docs-layout {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr 160px;
    min-height: calc(100vh - 60px);
    padding: 0 clamp(1rem, 3vw, 2rem);
    gap: 0;
}

.docs-sprites {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0.75rem;
    overflow: hidden;
    border-left: 1px solid rgba(58, 214, 249, 0.08);
}

.docs-sprites img {
    width: 80px;
    height: auto;
    opacity: 0.55;
    transition: opacity 0.25s ease, transform 0.25s ease;
    filter: drop-shadow(0 4px 12px rgba(62, 181, 208, 0.15));
    cursor: default;
}

.docs-sprites img:hover {
    opacity: 1;
    transform: scale(1.15) rotate(6deg);
}

.sprite-clickable {
    cursor: pointer;
}

.sprite-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.sprite-modal.open {
    display: flex;
}

.sprite-modal-box {
    background: var(--color-background-white);
    border: 1px solid rgba(58, 214, 249, 0.25);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    max-width: 360px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    animation: sprite-modal-in 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@keyframes sprite-modal-in {
    from { opacity: 0; transform: scale(0.85) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.sprite-modal-img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(62, 181, 208, 0.25));
}

.sprite-modal-quote {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.sprite-modal-msg {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

.sprite-modal-author {
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

.sprite-modal-close {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 0.55rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sprite-modal-close:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}


.docs-sidebar {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 2rem 1.5rem 2rem 0;
    border-right: 1px solid rgba(58, 214, 249, 0.12);
    scrollbar-width: thin;
    flex-shrink: 0;
}

html[dark] .docs-sidebar {
    border-right-color: rgba(77, 163, 255, 0.12);
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-medium);
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.3rem 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-medium);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    line-height: 1.5;
}

.sidebar-nav a:hover {
    color: var(--color-accent);
    background: rgba(62, 181, 208, 0.07);
}

.sidebar-nav a.active {
    color: var(--color-accent);
    background: rgba(62, 181, 208, 0.1);
    font-weight: 500;
}

html[dark] .sidebar-nav a:hover,
html[dark] .sidebar-nav a.active {
    background: rgba(77, 163, 255, 0.1);
    color: var(--color-accent);
}

.sidebar-nav-sub {
    list-style: none;
    padding-left: 1rem;
    border-left: 1px solid rgba(58, 214, 249, 0.2);
    margin: 0.125rem 0 0.125rem 0.875rem;
}

html[dark] .sidebar-nav-sub {
    border-left-color: rgba(77, 163, 255, 0.2);
}

.sidebar-nav-sub a {
    font-size: 0.8125rem;
    padding: 0.2rem 0.5rem;
}

.sidebar-divider {
    height: 1px;
    background: rgba(58, 214, 249, 0.12);
    margin: 1rem 0;
}

html[dark] .sidebar-divider {
    background: rgba(77, 163, 255, 0.12);
}


.docs-main {
    padding: 2.5rem 0 4rem clamp(2rem, 4vw, 4rem);
    min-width: 0;
    max-width: 800px;
}


.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-medium);
    margin-bottom: 2rem;
}

.docs-breadcrumb a {
    color: var(--color-text-medium);
    text-decoration: none;
    transition: color 0.15s;
}

.docs-breadcrumb a:hover {
    color: var(--color-accent);
}

.docs-breadcrumb-sep {
    opacity: 0.4;
    font-size: 0.75rem;
}


.docs-page-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.docs-page-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.0625rem);
    color: var(--color-text-medium);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.docs-page-divider {
    height: 1px;
    background: rgba(58, 214, 249, 0.15);
    margin-bottom: 2.5rem;
}

html[dark] .docs-page-divider {
    background: rgba(77, 163, 255, 0.15);
}


.docs-section {
    margin-bottom: 3.5rem;
}

.docs-section-anchor {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
}

.docs-h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-h2 .section-icon {
    font-size: 1.25rem;
    color: var(--color-accent);
}

.docs-h3 {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
    margin-top: 0;
    line-height: 1.4;
}

.docs-p {
    font-size: clamp(0.9rem, 1.8vw, 0.9375rem);
    color: var(--color-text-medium);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.docs-p:last-child {
    margin-bottom: 0;
}


.docs-problem-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.docs-problem-card {
    border: 1px solid rgba(58, 214, 249, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s;
}

.docs-problem-card:hover {
    border-color: rgba(62, 181, 208, 0.45);
}

html[dark] .docs-problem-card {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(77, 163, 255, 0.15);
}

html[dark] .docs-problem-card:hover {
    border-color: rgba(77, 163, 255, 0.35);
}

.docs-problem-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    flex-shrink: 0;
}

.docs-problem-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-problem-desc {
    font-size: 0.875rem;
    color: var(--color-text-medium);
    line-height: 1.65;
}


.docs-code-block {
    margin: 1.25rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(58, 214, 249, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.docs-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[dark] .docs-code-header {
    background: #111;
}

.docs-code-lang {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.docs-code-filename {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Fira Code', 'Courier New', monospace;
}

.docs-code-copy-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.3rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    font-family: var(--font-family-primary);
    white-space: nowrap;
}

.docs-code-copy-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.docs-code-copy-btn.copied {
    color: #3eb5d0;
    border-color: rgba(62, 181, 208, 0.4);
}

.docs-code-copy-btn .material-symbols-outlined {
    font-size: 0.875rem;
}

.docs-code-body {
    background: linear-gradient(180deg, #1a1a1a 0%, #191919 100%);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
}

.docs-code-body pre {
    margin: 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #cdd6f4;
    white-space: pre;
}


.tok-keyword { color: #cba6f7; }
.tok-string  { color: #a6e3a1; }
.tok-comment { color: #6c7086; font-style: italic; }
.tok-tag     { color: #89b4fa; }
.tok-attr    { color: #fab387; }
.tok-value   { color: #a6e3a1; }
.tok-fn      { color: #89dceb; }
.tok-class   { color: #f38ba8; }
.tok-import  { color: #89b4fa; }
.tok-type    { color: #f9e2af; }
.tok-punct   { color: #cdd6f4; opacity: 0.6; }
.tok-plain   { color: #cdd6f4; }


.docs-error-block {
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-left: 3px solid #f87171;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

html[dark] .docs-error-block {
    background: rgba(248, 113, 113, 0.08);
}

.docs-error-block pre {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8125rem;
    color: #fca5a5;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}


.docs-callout-warning {
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

html[dark] .docs-callout-warning {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.2);
}

.docs-callout-warning .docs-callout-icon { color: #fbbf24; }

.docs-callout {
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    display: flex;
    gap: 0.75rem;
}

.docs-callout-info {
    background: rgba(62, 181, 208, 0.07);
    border: 1px solid rgba(62, 181, 208, 0.25);
}

.docs-callout-success {
    background: rgba(134, 239, 172, 0.07);
    border: 1px solid rgba(134, 239, 172, 0.25);
}

html[dark] .docs-callout-info {
    background: rgba(77, 163, 255, 0.08);
    border-color: rgba(77, 163, 255, 0.2);
}

html[dark] .docs-callout-success {
    background: rgba(134, 239, 172, 0.06);
    border-color: rgba(134, 239, 172, 0.2);
}

.docs-callout-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.docs-callout-info .docs-callout-icon { color: var(--color-accent); }
.docs-callout-success .docs-callout-icon { color: #86efac; }

.docs-callout-body {
    flex: 1;
}

.docs-callout-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.docs-callout-text {
    font-size: 0.8125rem;
    color: var(--color-text-medium);
    line-height: 1.6;
}

.docs-callout-text ul {
    margin: 0.375rem 0 0 0;
    padding-left: 1.25rem;
}

.docs-callout-text li {
    margin-bottom: 0.2rem;
}


.docs-why-list {
    list-style: none;
    margin: 0.75rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--color-text-medium);
    line-height: 1.6;
}

.docs-why-list .check-icon {
    color: var(--color-accent);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}


.docs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0;
    border-radius: 0.625rem;
    border: 1px solid rgba(58, 214, 249, 0.18);
}

html[dark] .docs-table-wrapper {
    border-color: rgba(77, 163, 255, 0.15);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.docs-table th {
    background: rgba(62, 181, 208, 0.08);
    color: var(--color-text-dark);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(58, 214, 249, 0.18);
    white-space: nowrap;
}

html[dark] .docs-table th {
    background: rgba(77, 163, 255, 0.08);
    border-bottom-color: rgba(77, 163, 255, 0.15);
}

.docs-table td {
    padding: 0.75rem 1rem;
    color: var(--color-text-medium);
    border-bottom: 1px solid rgba(58, 214, 249, 0.08);
    vertical-align: middle;
    overflow-wrap: break-word;
    word-break: break-word;
}

html[dark] .docs-table td {
    border-bottom-color: rgba(77, 163, 255, 0.08);
}

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

.docs-table tr:hover td {
    background: rgba(62, 181, 208, 0.04);
}

html[dark] .docs-table tr:hover td {
    background: rgba(77, 163, 255, 0.04);
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.docs-badge-yes {
    background: rgba(134, 239, 172, 0.15);
    color: #4ade80;
    border: 1px solid rgba(134, 239, 172, 0.3);
}

.docs-badge-partial {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.docs-badge-no {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}


.docs-summary-table {
    margin: 1.5rem 0;
}


.docs-inline-code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.8125em;
    background: rgba(62, 181, 208, 0.1);
    color: var(--color-accent);
    padding: 0.1em 0.4em;
    border-radius: 0.25rem;
    border: 1px solid rgba(62, 181, 208, 0.2);
}

html[dark] .docs-inline-code {
    background: rgba(77, 163, 255, 0.12);
    border-color: rgba(77, 163, 255, 0.2);
}


.docs-step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.docs-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.docs-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.docs-step-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}


.docs-footer-nav {
    display: flex;
    justify-content: flex-end;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(58, 214, 249, 0.12);
    margin-top: 3rem;
}

html[dark] .docs-footer-nav {
    border-top-color: rgba(77, 163, 255, 0.12);
}

.docs-footer-nav-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(58, 214, 249, 0.2);
    transition: all 0.2s;
}

.docs-footer-nav-link:hover {
    border-color: var(--color-accent);
    background: rgba(62, 181, 208, 0.06);
}

html[dark] .docs-footer-nav-link {
    border-color: rgba(77, 163, 255, 0.2);
}

html[dark] .docs-footer-nav-link:hover {
    background: rgba(77, 163, 255, 0.08);
}

.docs-footer-nav-dir {
    font-size: 0.75rem;
    color: var(--color-text-medium);
}

.docs-footer-nav-page {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent);
}


@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 220px 1fr;
    }

    .docs-sprites {
        display: flex;
        position: static;
        height: auto;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem;
        border-left: none;
        border-top: 1px solid rgba(58, 214, 249, 0.12);
        grid-column: 1 / -1;
    }

    .docs-sprites img {
        width: 70px;
    }

    .docs-main {
        padding-left: clamp(1.5rem, 3vw, 2.5rem);
    }
}

@media (max-width: 768px) {

    .docs-layout {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }



    .docs-sidebar {
        position: sticky;
        top: 60px;
        z-index: 100;
        height: auto;
        max-height: none;
        padding: 0.625rem 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(58, 214, 249, 0.15);
        background: rgba(255, 253, 253, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .docs-sidebar::-webkit-scrollbar {
        display: none;
    }

    html[dark] .docs-sidebar {
        background: rgba(14, 14, 14, 0.92);
        border-bottom-color: rgba(77, 163, 255, 0.15);
    }

    .docs-sidebar-inner {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.375rem;
        width: max-content;
    }

    .sidebar-section {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        margin: 0;
    }

    .sidebar-section-title {
        display: none;
    }

    .sidebar-divider {
        width: 1px;
        height: 20px;
        background: rgba(58, 214, 249, 0.2);
        margin: 0 0.125rem;
        flex-shrink: 0;
    }

    html[dark] .sidebar-divider {
        background: rgba(77, 163, 255, 0.2);
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.375rem;
    }

    .sidebar-nav li {
        flex-shrink: 0;
    }

    .sidebar-nav a {
        white-space: nowrap;
        padding: 0.3rem 0.75rem;
        border: 1px solid rgba(58, 214, 249, 0.2);
        border-radius: 999px;
        font-size: 0.8rem;
    }

    .sidebar-nav a:hover,
    .sidebar-nav a.active {
        border-color: var(--color-accent);
    }

    html[dark] .sidebar-nav a {
        border-color: rgba(77, 163, 255, 0.2);
    }

    .sidebar-nav-sub {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.375rem;
        border-left: none;
        margin: 0;
        padding: 0;
    }

    
    .docs-main {
        padding: 2rem 1.25rem 3rem;
        max-width: 100%;
    }

    .docs-page-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    
    .docs-problem-card {
        padding: 1rem 1.125rem;
    }

    
    .docs-step-header {
        flex-wrap: wrap;
    }

    .docs-step-label {
        font-size: 0.9375rem;
    }

    
    .docs-header-logo-text {
        display: none;
    }

    .docs-header-divider {
        display: none;
    }

    .docs-header-content {
        gap: 0.75rem;
    }

    
    .docs-footer-nav {
        justify-content: stretch;
    }

    .docs-footer-nav-link {
        flex: 1;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .docs-header-content {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .docs-back-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.625rem;
    }

    .docs-code-body {
        padding: 0.875rem 1rem;
    }

    .docs-code-body pre {
        font-size: 0.775rem;
        line-height: 1.65;
    }

    .docs-code-header {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .docs-code-filename {
        display: none;
    }

    .docs-table {
        font-size: 0.8125rem;
    }

    .docs-table th,
    .docs-table td {
        padding: 0.625rem 0.75rem;
    }


    /* shortcut/atalho column stays compact, description gets room */
    .docs-table th:nth-child(2),
    .docs-table td:nth-child(2) {
        white-space: nowrap;
        min-width: 90px;
    }

    .docs-table th:nth-child(3),
    .docs-table td:nth-child(3) {
        min-width: 180px;
    }

    .docs-table td .docs-inline-code {
        word-break: break-all;
    }

    .docs-callout {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.875rem 1rem;
    }

    .docs-h2 {
        font-size: 1.125rem;
    }

    .docs-breadcrumb {
        font-size: 0.75rem;
    }
}
