/* ==========================================================================
   ITSMote Documentation — Theming & Typography
   Light theme by default, dark theme via [data-docs-theme="dark"]
   ========================================================================== */

/* ---------- Theme tokens ---------- */
:root {
    /* Light (default) */
    --docs-bg: #ffffff;
    --docs-bg-secondary: #f8f9fb;
    --docs-bg-code: #f1f5f9;
    --docs-bg-pre: #1e293b;
    --docs-pre-text: #e2e8f0;
    --docs-text: #1e293b;
    --docs-text-secondary: #475569;
    --docs-text-muted: #94a3b8;
    --docs-heading: #0f172a;
    --docs-border: #e2e8f0;
    --docs-border-light: #f1f5f9;
    --docs-accent: #6366f1;
    --docs-accent-hover: #4f46e5;
    --docs-accent-bg: rgba(99, 102, 241, 0.08);
    --docs-toc-bg: #f8fafc;
    --docs-nav-hover: #f1f5f9;
    --docs-nav-active-text: #6366f1;
    --docs-nav-active-bar: #6366f1;
    --docs-blockquote-border: #6366f1;
    --docs-blockquote-bg: rgba(99, 102, 241, 0.04);
    --docs-table-stripe: #f8fafc;
    --docs-table-border: #e2e8f0;
    --docs-changelog-bg: #fffbeb;
    --docs-changelog-border: #fcd34d;
    --docs-changelog-text: #92400e;
    --docs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --docs-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);

    /* Sidebar — always dark */
    --docs-sidebar-bg: #0f0f1a;
    --docs-sidebar-text: rgba(255, 255, 255, 0.65);
    --docs-sidebar-text-hover: #ffffff;
    --docs-sidebar-section: rgba(255, 255, 255, 0.35);
    --docs-sidebar-active-text: #22d3ee;
    --docs-sidebar-active-bar: linear-gradient(180deg, #22d3ee, #a78bfa);
    --docs-sidebar-border: rgba(255, 255, 255, 0.08);
    --docs-sidebar-hover-bg: rgba(255, 255, 255, 0.05);
    --docs-sidebar-select-bg: rgba(255, 255, 255, 0.06);
    --docs-sidebar-select-border: rgba(255, 255, 255, 0.1);
}

/* Dark theme overrides (content area only — sidebar stays dark) */
[data-docs-theme="dark"] {
    --docs-bg: #0f1117;
    --docs-bg-secondary: #161822;
    --docs-bg-code: rgba(255, 255, 255, 0.06);
    --docs-bg-pre: #0a0c14;
    --docs-pre-text: #e2e8f0;
    --docs-text: #c8d1dc;
    --docs-text-secondary: #94a3b8;
    --docs-text-muted: #64748b;
    --docs-heading: #f1f5f9;
    --docs-border: rgba(255, 255, 255, 0.08);
    --docs-border-light: rgba(255, 255, 255, 0.04);
    --docs-accent: #818cf8;
    --docs-accent-hover: #a5b4fc;
    --docs-accent-bg: rgba(129, 140, 248, 0.1);
    --docs-toc-bg: rgba(255, 255, 255, 0.03);
    --docs-nav-hover: rgba(255, 255, 255, 0.05);
    --docs-nav-active-text: #818cf8;
    --docs-nav-active-bar: #818cf8;
    --docs-blockquote-border: #818cf8;
    --docs-blockquote-bg: rgba(129, 140, 248, 0.06);
    --docs-table-stripe: rgba(255, 255, 255, 0.02);
    --docs-table-border: rgba(255, 255, 255, 0.08);
    --docs-changelog-bg: rgba(251, 191, 36, 0.08);
    --docs-changelog-border: rgba(251, 191, 36, 0.3);
    --docs-changelog-text: #fbbf24;
    --docs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --docs-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --docs-sidebar-bg: #080810;
}


/* ==========================================================================
   Layout
   ========================================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 272px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    background: var(--docs-sidebar-bg);
    overflow-y: auto;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

#content {
    position: fixed;
    top: 0;
    left: 272px;
    right: 0;
    bottom: 0;
    padding: 48px 56px 80px;
    background: var(--docs-bg);
    color: var(--docs-text);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    scroll-behavior: smooth;
    transition: background 0.3s ease, color 0.3s ease;
}


/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar-header {
    flex-shrink: 0;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-subtitle {
    font-size: 0.55rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    padding: 2px 14px 8px;
    margin-top: 0;
    line-height: 1.3;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 12px 0;
    margin-bottom: 0;
    border-radius: 10px;
    transform: none;
    transition: none;
}

.sidebar-brand:hover {
    transform: none;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.sidebar-brand-name {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee, #a78bfa, #f472b6, #22d3ee);
    background-size: 300% 300%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
    width: 100%;
}

.sidebar-nav-wrapper {
    flex: 1;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--docs-sidebar-section);
    padding: 0 14px;
    margin: 20px 0 8px;
}

.sidebar-section:first-child {
    margin-top: 4px;
}

.sidebar-item {
    margin: 1px 0;
}

.sidebar-link {
    display: block;
    padding: 9px 14px;
    color: var(--docs-sidebar-text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 450;
    border-radius: 8px;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-link:hover {
    color: var(--docs-sidebar-text-hover);
    background: var(--docs-sidebar-hover-bg);
}

.sidebar-link.active {
    color: var(--docs-sidebar-active-text);
    font-weight: 550;
    background: rgba(34, 211, 238, 0.06);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--docs-sidebar-active-bar);
    border-radius: 2px;
}

/* Sidebar footer — compact single-row controls */
.sidebar-footer-controls {
    flex-shrink: 0;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--docs-sidebar-border);
}

.sidebar-footer-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Legacy selectors wrapper — kept for compat, hidden */
.docs-selectors {
    display: none;
}

.selector-item {
    flex: 1;
    min-width: 0;
}

.docs-select {
    width: 100%;
    padding: 7px 28px 7px 10px;
    font-size: 0.75rem;
    color: var(--docs-sidebar-text);
    background: var(--docs-sidebar-select-bg);
    border: 1px solid var(--docs-sidebar-select-border);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.15s;
}

/* Compact variant — used in the new single-row footer */
.docs-select--compact {
    width: auto;
    flex-shrink: 0;
    padding: 5px 22px 5px 8px;
    font-size: 0.72rem;
    background-position: right 6px center;
}

.docs-select:hover,
.docs-select--compact:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--docs-sidebar-text-hover);
}

.docs-select:focus,
.docs-select--compact:focus {
    outline: none;
    border-color: #22d3ee;
}

.docs-select option,
.docs-select--compact option {
    background: #1a1a2e;
    color: #fff;
}

/* Theme toggle button */
.theme-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    margin-top: 8px;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--docs-sidebar-text);
    background: var(--docs-sidebar-select-bg);
    border: 1px solid var(--docs-sidebar-select-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Compact variant — inline in the footer row */
.theme-toggle--compact {
    width: auto;
    flex: 1;
    margin-top: 0;
    padding: 5px 8px;
    font-size: 0.72rem;
    gap: 5px;
    white-space: nowrap;
}

.theme-toggle:hover,
.theme-toggle--compact:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--docs-sidebar-text-hover);
}

.theme-toggle svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Show sun icon + "Light" label in dark mode, moon + "Dark" in light mode */
.theme-toggle .icon-sun,
.theme-toggle .label-light {
    display: none;
}

[data-docs-theme="dark"] .theme-toggle .icon-sun,
[data-docs-theme="dark"] .theme-toggle .label-light {
    display: inline;
}

[data-docs-theme="dark"] .theme-toggle .icon-moon,
[data-docs-theme="dark"] .theme-toggle .label-dark {
    display: none;
}

/* Meta links: Author · License */
.sidebar-meta-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.sidebar-meta-link {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: color 0.15s;
    letter-spacing: 0.01em;
}

.sidebar-meta-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-meta-sep {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
}


/* ==========================================================================
   Article & Typography
   ========================================================================== */

.doc-article {
    max-width: 860px;
    margin: 0 auto;
}

.doc-article>h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--docs-heading);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 4px;
    /* Override global dark styles */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.doc-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.6rem 0 0.25rem;
    font-size: 0.8rem;
    color: var(--docs-text-secondary);
    opacity: 0.6;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-book {
    opacity: 0.7;
}

#content .lead {
    font-size: 1.125rem;
    color: var(--docs-text);
    line-height: 1.7;
    margin-bottom: 12px;
    opacity: 0.85;
}

/* Table of Contents */
.doc-toc {
    margin: 0 0 32px;
    padding: 20px 24px;
    background: var(--docs-toc-bg);
    border-radius: 10px;
    border: 1px solid var(--docs-border-light);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.doc-toc h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--docs-text-muted);
    margin-bottom: 12px;
}

.doc-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-toc li {
    padding: 3px 0;
}

.doc-toc a {
    color: var(--docs-text-secondary);
    text-decoration: none;
    font-size: 0.87rem;
    transition: color 0.15s;
}

.doc-toc a:hover,
.doc-toc a.active {
    color: var(--docs-accent);
}

.doc-toc ul ul {
    margin-left: 16px;
    margin-top: 2px;
}


/* ---------- Markdown content ---------- */
.markdown-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--docs-text);
}

/* Reset any global dark theme overrides on headings */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

.markdown-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--docs-heading);
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--docs-border);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.markdown-content h2 {
    font-size: 1.375rem;
    font-weight: 650;
    color: var(--docs-heading);
    margin: 40px 0 14px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.markdown-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 32px 0 10px;
    line-height: 1.4;
}

.markdown-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 24px 0 8px;
}

.markdown-content p {
    margin-bottom: 16px;
    color: var(--docs-text);
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.markdown-content li {
    margin-bottom: 6px;
    color: var(--docs-text);
    line-height: 1.7;
}

.markdown-content li>ul,
.markdown-content li>ol {
    margin-top: 6px;
    margin-bottom: 0;
}

.markdown-content strong {
    font-weight: 600;
    color: var(--docs-heading);
}

.markdown-content a {
    color: var(--docs-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.markdown-content a:hover {
    border-bottom-color: var(--docs-accent);
}

.markdown-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
    font-size: 0.875em;
    padding: 2px 6px;
    background: var(--docs-bg-code);
    border-radius: 4px;
    color: var(--docs-heading);
    transition: background 0.3s ease;
}

.markdown-content pre {
    background: var(--docs-bg-pre);
    color: var(--docs-pre-text);
    padding: 20px 24px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.65;
    box-shadow: var(--docs-shadow-sm);
    position: relative;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.markdown-content blockquote {
    border-left: 3px solid var(--docs-blockquote-border);
    background: var(--docs-blockquote-bg);
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: var(--docs-text-secondary);
    font-style: italic;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.markdown-content blockquote p:last-child {
    margin-bottom: 0;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.markdown-content th,
.markdown-content td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--docs-table-border);
}

.markdown-content th {
    font-weight: 600;
    color: var(--docs-heading);
    background: var(--docs-table-stripe);
}

.markdown-content tr:nth-child(even) {
    background: var(--docs-table-stripe);
}

.markdown-content hr {
    border: none;
    height: 1px;
    background: var(--docs-border);
    margin: 40px 0;
}

.markdown-content img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--docs-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.markdown-content img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-docs-theme="dark"] .markdown-content img:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}


/* ==========================================================================
   Figure & Image variants (use via { .class } attr_list syntax in markdown)
   ========================================================================== */

/* --- Base figure --- */
.md-figure {
    margin: 28px 0;
    padding: 0;
    text-align: center;
}

.md-figure img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--docs-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.md-figure img:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-docs-theme="dark"] .md-figure img:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* --- Caption --- */
.md-figure figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--docs-text-muted);
    font-style: italic;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Small decorative line above caption */
.md-figure figcaption::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--docs-accent);
    opacity: 0.4;
    margin: 0 auto 8px;
    border-radius: 1px;
}


/* --- Size variants --- */

/* Full width — breaks out of article padding slightly */
.md-figure.img-wide {
    margin-left: -24px;
    margin-right: -24px;
}

.md-figure.img-wide img {
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
}

/* Medium — capped at 600px */
.md-figure.img-medium img {
    max-width: 600px;
}

/* Small — capped at 400px */
.md-figure.img-small img {
    max-width: 400px;
}

/* Tiny — capped at 200px, good for icons/logos */
.md-figure.img-tiny img {
    max-width: 200px;
    box-shadow: none;
}


/* --- Alignment --- */

.md-figure.img-center {
    text-align: center;
}

.md-figure.img-center img {
    margin: 0 auto;
}

.md-figure.img-left {
    text-align: left;
}

.md-figure.img-left img {
    margin: 0;
}

.md-figure.img-right {
    text-align: right;
}

.md-figure.img-right img {
    margin: 0 0 0 auto;
}

/* Float variants for inline wrapping */
.md-figure.img-float-left {
    float: left;
    margin: 4px 24px 16px 0;
    max-width: 45%;
}

.md-figure.img-float-right {
    float: right;
    margin: 4px 0 16px 24px;
    max-width: 45%;
}


/* --- Decorative variants --- */

/* Bordered */
.md-figure.img-border img {
    border: 1px solid var(--docs-border);
    box-shadow: none;
}

/* Strong shadow */
.md-figure.img-shadow-lg img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

[data-docs-theme="dark"] .md-figure.img-shadow-lg img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Extra rounded */
.md-figure.img-rounded img {
    border-radius: 16px;
}

/* No shadow */
.md-figure.img-flat img {
    box-shadow: none;
}

/* Glass card effect */
.md-figure.img-glass {
    background: var(--docs-bg-secondary);
    border: 1px solid var(--docs-border-light);
    border-radius: 14px;
    padding: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.md-figure.img-glass img {
    border-radius: 8px;
}

.md-figure.img-glass figcaption::before {
    display: none;
}

/* Clearfix for floats */
.markdown-content::after {
    content: '';
    display: table;
    clear: both;
}


/* ==========================================================================
   Changelog, Navigation, Misc
   ========================================================================== */

.doc-changelog {
    margin-top: 48px;
    padding: 16px 20px;
    background: var(--docs-changelog-bg);
    border: 1px solid var(--docs-changelog-border);
    border-radius: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.doc-changelog h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--docs-changelog-text);
    margin-bottom: 8px;
}

.doc-changelog p {
    color: var(--docs-changelog-text);
    font-size: 0.9rem;
    margin: 0;
}

/* Prev / Next navigation */
.doc-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--docs-border);
}

.nav-prev,
.nav-next {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: var(--docs-bg-secondary);
    border: 1px solid var(--docs-border-light);
    border-radius: 10px;
    text-decoration: none;
    max-width: 48%;
    transition: all 0.2s ease;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: var(--docs-accent);
    box-shadow: var(--docs-shadow-md);
    transform: translateY(-1px);
}

.nav-next {
    text-align: right;
    margin-left: auto;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--docs-text-muted);
}

.nav-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--docs-heading);
}

.nav-placeholder {
    flex: 1;
}


/* ==========================================================================
   Copy code button
   ========================================================================== */

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s ease;
}

.markdown-content pre:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}


/* ==========================================================================
   Mobile sidebar toggle
   ========================================================================== */

.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 201;
    width: 38px;
    height: 38px;
    background: var(--docs-sidebar-bg);
    border: 1px solid var(--docs-sidebar-border);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.sidebar-mobile-toggle:hover {
    color: #fff;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

.sidebar-overlay.visible {
    display: block;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    #content {
        padding: 40px 40px 64px;
    }
}

@media (max-width: 860px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 200;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .sidebar.visible {
        transform: translateX(-100%);
    }

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

    .sidebar-mobile-toggle {
        display: flex;
    }

    #content {
        left: 0;
        padding: 56px 24px 64px;
    }

    .doc-article {
        max-width: 100%;
    }

    .doc-navigation {
        flex-direction: column;
    }

    .nav-prev,
    .nav-next {
        max-width: 100%;
    }

    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    #content {
        padding: 48px 16px 48px;
    }

    .doc-article>h1 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .markdown-content {
        font-size: 0.95rem;
    }

    .markdown-content h1 {
        font-size: 1.5rem;
    }

    .markdown-content h2 {
        font-size: 1.2rem;
    }
}

/* What is ITSMote styles are in what-is-itsmote.css */