:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --sidebar-bg: #f8fafc;
    --sidebar-text: #0f172a;
    --sidebar-muted: #475569;
    --accent: #0ea5e9;
    --content-bg: #ffffff;
    --content-text: #0f172a;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--content-text);
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 28px 20px;
    overflow-y: auto;
    height: 100vh;
    border-right: 1px solid var(--border);
}

.brand {
    font-size: 1.05rem;
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 300;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.sidebar-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 8px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--sidebar-text);
    font-weight: 400;
    font-size: 0.9rem;
    padding: 2px 0;
}

.footer-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sidebar-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    font-size: 20px;
    color: var(--sidebar-muted);
}

.section-items {
    list-style: none;
}

.section-item {
    margin-bottom: 6px;
}

.section-link {
    text-decoration: none;
    color: var(--sidebar-muted);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.section-link:hover {
    color: var(--sidebar-text);
    background: rgba(148, 163, 184, 0.12);
}

.section-link.active {
    color: #0f172a;
    background: rgba(14, 165, 233, 0.18);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.35);
}

.content {
    background: var(--content-bg);
    padding: 40px 56px;
}

.content-inner {
    max-width: 860px;
}

.page h1,
.page h2,
.page h3,
.page h4,
.page h5,
.page h6 {
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 300;
}

.page h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.page h3 {
    font-size: 1.35rem;
    margin: 20px 0 12px;
}

.inline-icon {
    font-size: 1.25rem;
    vertical-align: -2px;
    margin-right: 6px;
    color: var(--sidebar-muted);
}

.page p,
.page li {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.page ul,
.page ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.page code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.page a,
.page a:visited {
    color: #1a73e8;
}

.page a:hover {
    color: #1558b0;
}

.code-block {
    position: relative;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    margin: 16px 0 20px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: #eef2f7;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-title {
    flex: 1;
    color: #0f172a;
}

.code-block pre {
    margin: 0;
    padding: 12px 14px 14px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.code-block code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.copy-button {
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
}

.copy-button .material-symbols-outlined {
    font-size: 18px;
}

.copy-button:hover {
    background: rgba(14, 165, 233, 0.12);
}

.doc-nav {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.nav-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--content-text);
    background: #f8fafc;
    font-weight: 500;
}

.nav-button:hover {
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.08);
}

.page-footer {
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--sidebar-muted);
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
}

.external-link:hover {
    text-decoration: underline;
}

.video-background {
    position: relative;
    margin: 20px 0 24px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    min-height: 640px;
    isolation: isolate;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.video-background iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    transform: scale(1.05);
    filter: saturate(1.1);
    pointer-events: none;
}

@media (max-width: 760px) {
    .video-background {
        min-height: 420px;
    }
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: sticky;
        top: 0;
    }
}
