:root {
    --primary: #3b82f6;
    --primary-dim: rgba(59, 130, 246, 0.15);
    --primary-hover: #2563eb;
    --bg: #0a0a0a;
    --bg-sidebar: #0f0f0f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-input: rgba(255, 255, 255, 0.06);
    --text: #e5e5e5;
    --text-dim: #888;
    --text-bright: #fff;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --radius: 10px;
    --radius-sm: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sidebar-width: 280px;
    --header-height: 56px;
}

/* === LIGHT THEME === */
[data-theme="light"] {
    --bg: #f5f5f7; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-card-hover: #f0f0f2;
    --bg-input: rgba(0, 0, 0, 0.04); --text: #374151; --text-dim: #6b7280; --text-bright: #111827;
    --border: rgba(0, 0, 0, 0.1); --border-hover: rgba(0, 0, 0, 0.2);
    --primary-dim: rgba(59, 130, 246, 0.1);
}
.theme-toggle-float {
    position: fixed; bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px;
    border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-dim); cursor: pointer; display: flex; align-items: center;
    justify-content: center; z-index: 1000; transition: all 0.2s;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.theme-toggle-float:hover { color: var(--text-bright); transform: scale(1.1); }
@media print { .theme-toggle-float { display: none !important; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   LAYOUT
   ======================================== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
}

.mobile-logo {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-bright);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-logo img { width: 24px; height: 24px; object-fit: contain; }

.mobile-search-btn {
    color: var(--text-dim);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-search-btn:hover { color: var(--text-bright); }

.sidebar-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

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

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    z-index: 300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.25rem 1.25rem 0;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text-bright);
    font-weight: 700;
    font-size: 1.05rem;
}
.sidebar-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

/* Sidebar Search */
.sidebar-search {
    padding: 1rem 1.25rem;
    flex-shrink: 0;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.search-form .search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-dim);
    pointer-events: none;
}
.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    outline: none;
    font-family: var(--font);
    transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { border-color: var(--primary); }

.search-shortcut {
    position: absolute;
    right: 0.5rem;
    font-size: 0.65rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    font-family: var(--font);
    pointer-events: none;
}

/* Sidebar Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.75rem 1rem;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 1rem 0.5rem 0.375rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.425rem 0.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 450;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.sidebar-link:hover {
    color: var(--text-bright);
    background: var(--bg-card);
}
.sidebar-link svg { flex-shrink: 0; opacity: 0.6; }
.sidebar-link-home { margin-bottom: 0.25rem; }

.sidebar-link-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.425rem 0.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 450;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
    flex: 1;
}
.sidebar-link-category:hover {
    color: var(--text-bright);
    background: var(--bg-card);
}

.cat-icon { font-size: 0.9rem; flex-shrink: 0; }
.cat-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cat-toggle {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.cat-toggle:hover { color: var(--text-bright); }

.sidebar-category {
    position: relative;
}
.sidebar-category .sidebar-subcategories {
    display: none;
    padding-left: 0.75rem;
}
.sidebar-category.expanded .sidebar-subcategories { display: block; }
.sidebar-category.expanded .cat-toggle svg { transform: rotate(180deg); }

.sidebar-link-sub {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.325rem 0.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.sidebar-link-sub:hover {
    color: var(--text-bright);
    background: var(--bg-card);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.badge-link {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.badge-link:hover { opacity: 1; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.page-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* ========================================
   WIKI HERO
   ======================================== */

.wiki-hero {
    text-align: center;
    padding: 2rem 0 3rem;
}
.wiki-hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 0.375rem;
}
.wiki-hero-tagline {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}
.wiki-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 1.25rem;
}
.dot-sep {
    width: 3px;
    height: 3px;
    background: var(--text-dim);
    border-radius: 50%;
}

/* Hero Search */
.hero-search-form {
    max-width: 560px;
    margin: 0 auto;
}
.hero-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.hero-search-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-dim);
    pointer-events: none;
}
.hero-search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.875rem 1.25rem 0.875rem 2.75rem;
    outline: none;
    font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search-input::placeholder { color: var(--text-dim); }
.hero-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

/* ========================================
   HOME SECTIONS
   ======================================== */

.home-section {
    margin-bottom: 3rem;
}
.home-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.category-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.category-card-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dim);
    border-radius: var(--radius-sm);
}
.category-card-info { flex: 1; min-width: 0; }
.category-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}
.category-card-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 0.375rem;
}
.category-card-count {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 500;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.article-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}
.article-row:hover { background: var(--bg-card-hover); }

.article-row-info { flex: 1; min-width: 0; }
.article-row-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-row-excerpt {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-row-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.article-row-category {
    padding: 0.15rem 0.5rem;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.7rem;
}
.article-row-author { font-weight: 500; }

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}
.breadcrumb-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-link:hover { color: var(--primary); }
.breadcrumb-sep {
    color: var(--text-dim);
    opacity: 0.5;
    display: flex;
    align-items: center;
}
.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* ========================================
   CATEGORY PAGE
   ======================================== */

.category-header {
    margin-bottom: 2.5rem;
}
.category-header-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}
.category-header-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}
.category-header-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 600px;
}

.category-section {
    margin-bottom: 2.5rem;
}
.category-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.subcategories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}
.subcategory-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}
.subcategory-card:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
}
.subcategory-icon { font-size: 0.9rem; }
.subcategory-count {
    font-size: 0.7rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-dim);
}
.empty-state svg { margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 1rem; margin-bottom: 0.25rem; }
.empty-state-hint { font-size: 0.85rem; opacity: 0.7; }

/* ========================================
   ARTICLE PAGE
   ======================================== */

.article-page .page-content {
    max-width: 1100px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 3rem;
    align-items: start;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.article-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.meta-item svg { opacity: 0.6; }

/* Table of Contents */
.toc-sidebar {
    position: sticky;
    top: 2rem;
}
.toc-wrapper {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.toc-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}
.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.toc-link {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border-left: 2px solid transparent;
    line-height: 1.4;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.toc-link:hover {
    color: var(--text-bright);
    background: var(--bg-card-hover);
}
.toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-dim);
}
.toc-level-1 { padding-left: 0.5rem; font-weight: 600; }
.toc-level-2 { padding-left: 0.75rem; }
.toc-level-3 { padding-left: 1.25rem; font-size: 0.75rem; }
.toc-level-4 { padding-left: 1.75rem; font-size: 0.72rem; }

/* ========================================
   MARKDOWN CONTENT
   ======================================== */

.markdown-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--text-bright);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    scroll-margin-top: 80px;
}
.markdown-body h1 { font-size: 1.75rem; }
.markdown-body h2 {
    font-size: 1.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body h4 { font-size: 1rem; }

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.markdown-body a:hover { color: var(--primary-hover); }

.markdown-body strong { color: var(--text-bright); font-weight: 600; }
.markdown-body em { font-style: italic; }

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.markdown-body li { margin-bottom: 0.375rem; }
.markdown-body li > ul,
.markdown-body li > ol { margin-top: 0.375rem; margin-bottom: 0; }

.markdown-body blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid var(--primary);
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-dim);
}
.markdown-body blockquote p:last-child { margin-bottom: 0; }

.markdown-body hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

/* Code */
.markdown-body code {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #f0abfc;
}

.markdown-body pre {
    margin: 1.25rem 0;
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    position: relative;
}
.markdown-body pre code {
    display: block;
    padding: 1.25rem;
    background: none;
    color: var(--text);
    font-size: 0.825rem;
    line-height: 1.6;
    border-radius: 0;
}

/* Copy button for code blocks */
.code-block-wrapper {
    position: relative;
}
.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font);
    transition: color 0.2s, background 0.2s;
    z-index: 1;
}
.copy-code-btn:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.15);
}
.copy-code-btn.copied {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

/* Tables */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.875rem;
}
.markdown-body th,
.markdown-body td {
    text-align: left;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
}
.markdown-body th {
    background: var(--bg-card);
    color: var(--text-bright);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.markdown-body tr:hover td {
    background: var(--bg-card);
}

/* Images */
.markdown-body img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* ========================================
   SEARCH PAGE
   ======================================== */

.search-header {
    text-align: center;
    padding: 1.5rem 0 2rem;
}
.search-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.search-results { margin-top: 1.5rem; }
.search-results-header {
    margin-bottom: 1rem;
}
.search-results-count {
    font-size: 0.85rem;
    color: var(--text-dim);
}

mark {
    background: rgba(59, 130, 246, 0.25);
    color: var(--text-bright);
    padding: 0.05rem 0.15rem;
    border-radius: 2px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .toc-sidebar {
        position: static;
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-header { display: flex; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open { transform: translateX(0); }

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

    .main-content {
        margin-left: 0;
        padding-top: var(--header-height);
    }

    .page-content {
        padding: 1.5rem 1rem;
    }

    .wiki-hero { padding: 1rem 0 2rem; }
    .wiki-hero-title { font-size: 1.5rem; }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .article-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-row-meta {
        width: 100%;
    }

    .article-title { font-size: 1.375rem; }

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

/* ========================================
   PRINT
   ======================================== */

@media print {
    * { background: #fff !important; color: #111 !important; box-shadow: none !important; }
    .sidebar, .mobile-header, .toc-sidebar, .copy-code-btn, .sidebar-overlay { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .breadcrumb { display: none; }
    .markdown-body pre { border: 1px solid #ddd !important; }
    .markdown-body code { background: #f5f5f5 !important; color: #333 !important; }
    .markdown-body blockquote { border-left-color: #666 !important; background: #f9f9f9 !important; }
    mark { background: #ffeb3b !important; color: #000 !important; }
    a { text-decoration: none; }
}

/* Sidebar - Articoli Recenti */
.sidebar-recent {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.75rem;
}
.sidebar-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.sidebar-recent-item:hover {
    background: var(--hover-bg);
    color: var(--text);
}
