:root {
    --bg: #0a0a12;
    --surface: #12121f;
    --sidebar: #0d0d1a;
    --sidebar-dark: #080814;
    --border: #1e1e35;
    --text: #e0e0f0;
    --muted: #9898c0;
    --purple: #9b4dff;
    --violet: #7c5ce0;
    --teal: #4dc9b0;
    --purple-dark: #5a2d8a;
}

/* === Pixel Art UI Components === */
.btn {
    border-radius: 0;
    border: 2px solid;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7em;
    padding: 0.9em 1.5em;
    text-transform: uppercase;
    letter-spacing: 0;
    image-rendering: pixelated;
}

.btn-primary {
    background: var(--purple);
    border-color: var(--teal);
    color: #fff;
}

.btn-primary:hover {
    background: var(--violet);
    border-color: #fff;
    color: #fff;
    box-shadow: 4px 4px 0 rgba(77, 201, 176, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--purple);
    color: var(--purple);
}

.btn-outline-primary:hover {
    background: var(--purple);
    border-color: var(--teal);
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--muted);
    color: var(--muted);
}

.btn-outline-secondary:hover {
    background: var(--muted);
    color: #fff;
}

.btn-outline-danger {
    border-color: #e05555;
    color: #e05555;
}

.btn-outline-danger:hover {
    background: #e05555;
    color: #fff;
}

.btn-sm {
    font-size: 0.55em;
    padding: 0.6em 1em;
}

.btn-lg {
    font-size: 0.8em;
    padding: 1em 1.8em;
}

.btn-success { background: #2da44e; border-color: #4cdf80; }
.btn-warning { background: #c08020; border-color: #f0b040; }
.btn-danger { background: #b03030; border-color: #e05555; }
.btn-info { background: #206080; border-color: var(--teal); }

.badge {
    border-radius: 0;
    border: 2px solid;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45em;
    font-weight: 400;
    letter-spacing: 0;
    padding: 0.4em 0.8em;
    text-transform: uppercase;
}

.badge.bg-primary { border-color: var(--teal); color: #fff; }
.badge.bg-warning { border-color: #f0b040; color: #fff; }
.badge.bg-success { border-color: #4cdf80; color: #fff; }
.badge.bg-danger { border-color: #e05555; color: #fff; }
.badge.bg-info { border-color: var(--teal); color: #fff; }
.badge.bg-secondary { border-color: var(--muted); color: #fff; }

.form-control, .form-select {
    border-radius: 0;
    border: 2px solid var(--border);
}

.form-control:focus, .form-select:focus {
    border-color: var(--teal);
    box-shadow: 4px 4px 0 rgba(77, 201, 176, 0.2);
    animation: input-glow 2s ease-in-out infinite alternate;
}

@keyframes input-glow {
    from { border-color: var(--teal); }
    to { border-color: var(--purple); }
}

.form-check-input {
    border-radius: 0;
    border: 2px solid var(--border);
    background: var(--bg);
}

.form-check-input:checked {
    background: var(--purple);
    border-color: var(--teal);
}

.alert {
    border-radius: 0;
    border: 2px solid;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5em;
}

.card {
    border-radius: 0;
    border: 2px solid var(--border);
}

.table {
    --bs-table-border-color: var(--border);
    border: 2px solid var(--border);
}

.table thead th {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    border-bottom: 2px solid var(--teal);
}

.list-group-item {
    border-radius: 0;
    border: 1px solid var(--border);
}

.pagination .page-link {
    border-radius: 0;
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5em;
}

.pagination .active .page-link {
    background: var(--purple);
    border-color: var(--teal);
    color: #fff;
}

.pagination .page-link:hover {
    background: var(--violet);
    border-color: var(--teal);
    color: #fff;
}

/* === Bootsrap Overrides === */
:root {
    --bs-primary: #9b4dff;
    --bs-primary-rgb: 155, 77, 255;
}

.text-muted { color: #c0c0e0 !important; }
small { color: #c8c8e0; }
.form-text { color: #b0b0d0 !important; }
code { color: var(--teal); }

.content strong, .content b, .card strong, .card b { color: #f0f0ff; }
.content label, .card label { color: #d0d0f0; }
.form-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}
.card h3, .card h4, .card h5, .card .h5, .card .h6 { color: #f0f0ff; }
.card p, .card-text { color: var(--text); }
.card-title { color: #f0f0ff !important; }
.card small { color: var(--muted); }

body {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    background: var(--bg);
    background-image:
        linear-gradient(rgba(155, 77, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 77, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text);
    margin: 0;
    scroll-behavior: smooth;
    line-height: 1.6;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple-dark); border: 1px solid var(--purple); }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

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

a { color: var(--violet); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); text-shadow: 0 0 6px rgba(77, 201, 176, 0.3); }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

pre {
    display: block; white-space: pre-wrap;
    border: 2px solid var(--purple-dark);
    padding: 1em; border-radius: 0;
    background: var(--bg); color: var(--teal);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9em;
    position: relative;
}

pre::before {
    content: '>_';
    display: block;
    color: var(--purple);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5em;
    margin-bottom: 8px;
    opacity: 0.6;
}

.content-article img {
    border: 2px solid var(--purple-dark);
    max-width: 100%;
    height: auto;
}

#content-navbar .breadcrumb-area li:first-child::before {
    content: none;
    margin-right: 0;
}

#content-navbar .breadcrumb-area .fa-chevron-right {
    color: var(--purple-dark);
    font-size: 0.7em;
    margin: 0 8px;
}

/* === Left Edge Bar === */
.sidemenu::before {
    content: '';
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 50px;
    background: linear-gradient(90deg, var(--sidebar-dark) 60%, rgba(155, 77, 255, 0.04));
    border-right: 2px solid var(--purple-dark);
    z-index: 11;
    animation: edge-pulse 5s ease-in-out infinite;
    pointer-events: none;
}

.sidemenu::after {
    content: '';
    position: fixed;
    top: -8%; left: 0;
    width: 50px; height: 12%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(77, 201, 176, 0.03) 25%,
        rgba(77, 201, 176, 0.22) 45%,
        rgba(155, 77, 255, 0.28) 50%,
        rgba(77, 201, 176, 0.22) 55%,
        rgba(77, 201, 176, 0.03) 75%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(77, 201, 176, 0.2);
    z-index: 11;
    animation: edge-scan 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes edge-pulse {
    0%, 100% {
        border-color: var(--purple-dark);
        box-shadow: inset -2px 0 6px rgba(155, 77, 255, 0.06);
    }
    50% {
        border-color: var(--teal);
        box-shadow: inset -2px 0 14px rgba(77, 201, 176, 0.15);
    }
}

@keyframes edge-scan {
    0% { top: -12%; }
    50% { top: 50%; }
    100% { top: 112%; }
}

/* === Layout === */
.content-wrapper { margin-left: 355px; margin-top: 10px; min-width: 0; }

.content {
    background: var(--surface);
    margin: 14px 10px 14px 0;
    border: 2px solid var(--border);
    animation: contentIn 0.5s ease forwards;
    opacity: 0;
    box-shadow: 6px 6px 0 rgba(77, 201, 176, 0.4);
}

@keyframes contentIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.content:nth-child(2) { animation-delay: 0.05s; }
.content:nth-child(3) { animation-delay: 0.1s; }
.content:nth-child(4) { animation-delay: 0.15s; }
.content:nth-child(5) { animation-delay: 0.2s; }
.content:nth-child(6) { animation-delay: 0.25s; }
.content:nth-child(7) { animation-delay: 0.3s; }
.content:nth-child(8) { animation-delay: 0.35s; }

.content-hover {
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.content-hover:hover {
    border-color: var(--teal);
    box-shadow: 4px 4px 0 rgba(77, 201, 176, 0.2);
    transform: translate(-2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
    .content { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* === Sidebar === */
.sidemenu {
    color: var(--muted);
    width: 290px; min-height: 100vh;
    position: fixed; top: 0; left: 0;
    background:
        linear-gradient(180deg, rgba(155, 77, 255, 0.05) 0%, transparent 50%, rgba(77, 201, 176, 0.03) 100%),
        linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-dark) 100%) fixed;
    border-left: 50px solid var(--sidebar-dark);
    border-right: 3px solid var(--purple-dark);
    box-shadow: 3px 0 0 rgba(155, 77, 255, 0.1), 6px 0 0 rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.sidemenu nav { margin-top: 7px; }

.sidemenu nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 15px; width: 240px; text-decoration: none;
    position: relative; overflow: hidden;
}

.sidemenu nav a::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155, 77, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.sidemenu nav a:hover::before {
    left: 100%;
}

.sidemenu nav a .menu_name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7em; font-weight: 400; line-height: 40px; letter-spacing: 0;
}

.sidemenu nav a .fa {
    font-size: 18px; width: 36px; height: 36px; line-height: 36px; text-align: center;
    background: var(--sidebar-dark); color: var(--muted);
    border: 1px solid var(--border);
}

.sidemenu nav a:hover .fa {
    background: var(--purple-dark); color: var(--teal);
    box-shadow: 0 0 8px rgba(155, 77, 255, 0.3);
}

.sidemenu nav .active-sec .menu_name {
    background: linear-gradient(90deg, var(--teal), var(--purple), var(--teal));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

.sidemenu nav a:hover .menu_name {
    background: linear-gradient(90deg, var(--muted), var(--teal));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 1.5s ease-in-out infinite;
}

.sidemenu nav .active-sec .fa {
    color: #fff; background: var(--purple);
    border-color: var(--teal); box-shadow: 0 0 10px rgba(155, 77, 255, 0.5);
}

.menu-logout { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }

.sidemenu .separator-aside {
    border-top: 1px solid var(--purple-dark);
    margin: 25px auto; width: 70px; opacity: 0.5;
}

/* === Sidebar Footer === */
.side-footer {
    height: 44px; width: 240px; line-height: 44px; text-align: center;
    background: var(--sidebar-dark); border-top: 1px solid var(--border);
}

.side-footer a {
    display: inline-block; width: 28px; height: 28px; line-height: 28px;
    font-size: 14px; margin: 0 2px; color: var(--muted);
    transition: color 0.2s, text-shadow 0.2s;
}

.side-footer a:hover { color: var(--teal); text-shadow: 0 0 6px rgba(77, 201, 176, 0.5); }

/* === Side Logo === */
.side-logo {
    background: transparent; padding: 8px 0; text-align: center;
    width: 500px; height: 50px; line-height: 50px;
    transform: rotate(-90deg); left: -234px; bottom: 200px;
    position: fixed; z-index: 11;
    border-top: 1px solid var(--purple-dark);
    overflow: hidden;
}

.side-logo .part1 {
    font-family: 'Press Start 2P', monospace;
    margin-right: 20px; font-size: 0.8em; color: var(--teal); letter-spacing: 0;
}

.side-logo .part2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45em; text-transform: uppercase; letter-spacing: 1px; color: var(--violet);
}

/* === Profile === */
.hs-headline { text-align: center; padding: 42px 0 0 0; }
.hs-headline .img-wrap {
    width: 150px; height: 150px;
    border: 2px solid var(--purple-dark);
    margin: auto;
    box-shadow: 0 0 15px rgba(155, 77, 255, 0.15);
}
.hs-headline .img-wrap img { width: 140px; height: 140px; padding: 4px; opacity: 0.9; }
.hs-headline .profile_info { margin-top: 10px; }
.hs-headline .profile_info h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.3em; line-height: 36px; text-align: center; margin: 0;
    letter-spacing: 0; text-transform: uppercase; font-weight: 400;
    background: linear-gradient(90deg, var(--purple), var(--teal), var(--purple));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === Content === */
.hs-inner { padding: 10px 20px; }

.hs-inner h3, .hs-inner h4, .content h3, .content h4 {
    color: #f0f0ff;
    margin-bottom: 8px;
}

.hs-inner h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8em;
    padding: 0 0 14px; margin-bottom: 16px; margin-top: 4px;
    color: var(--violet); position: relative; letter-spacing: 0;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.hs-inner h2::after {
    position: absolute; width: 40px; height: 2px; bottom: 0; left: 0; content: "";
    background: var(--purple); box-shadow: 0 0 6px rgba(155, 77, 255, 0.4);
}

.content-title {
    font-family: 'Press Start 2P', monospace;
    padding: 9px 9px 9px 0; display: inline-block;
    color: #fff; position: relative;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.8em;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.content-title::after {
    border-bottom: 2px solid var(--purple); border-right: 2px solid var(--purple);
    right: 0; bottom: 0; content: ""; position: absolute; height: 8px; width: 8px;
}

.top-banner {
    background: linear-gradient(135deg, var(--purple-dark) 0%, #130628 50%, #0d0d2a 100%);
    border-bottom: 1px solid var(--purple-dark);
}
.top-banner h1 { color: #fff; }

.content-article { position: relative; font-size: 1.05em; margin: auto; width: 75%; line-height: 1.7; }

/* === Cover === */
.hs-cover {
    height: 400px; background: var(--surface);
    margin: 14px 10px 14px 0;
    background-size: cover; background-position: center;
    display: flex; align-items: flex-end;
    border-bottom: 2px solid var(--purple);
}
.hs-cover h1 {
    font-family: 'Press Start 2P', monospace;
    color: #fff; font-size: 1.5em; font-weight: 400; padding: 20px;
    background: rgba(10, 10, 18, 0.7); text-align: center; width: 100%; margin: 0;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4), 0 0 15px rgba(155, 77, 255, 0.2);
}

/* === Navbar === */
#content-navbar {
    display: flex; align-items: center; line-height: 50px;
    background: var(--surface); border: 2px solid var(--border);
    margin-top: 10px; margin-right: 10px; min-height: 50px;
    box-shadow: 6px 6px 0 rgba(77, 201, 176, 0.4);
}
#content-navbar .home {
    border-right: 1px solid var(--border); height: 50px; width: 50px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(0,0,0,0.2); flex-shrink: 0;
}
#content-navbar .breadcrumb-area { padding: 0 15px; }
#content-navbar .breadcrumb-area ul { list-style: none; margin: 0; padding: 0; display: flex; }
#content-navbar .breadcrumb-area li { margin-left: 0; display: flex; align-items: center; }
#content-navbar .breadcrumb-area li a { color: var(--muted); text-decoration: none; }
#content-navbar .breadcrumb-area li a:hover { color: var(--teal); }
#content-navbar .breadcrumb-area .fa { margin: 0 6px; font-size: 0.7em; color: var(--purple-dark); }
#content-navbar .breadcrumb-area .active { color: var(--teal); }

/* === Pills === */
.pill {
    display: inline-block; padding: 0.2em 0.8em;
    text-transform: uppercase; color: #fff; background: var(--purple);
    text-align: center; font-size: 0.55em; letter-spacing: 1px;
    font-family: 'Press Start 2P', monospace;
    border: 2px solid var(--teal);
}

.article-date {
    color: var(--teal);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45em;
    text-transform: uppercase;
}

/* === Grid === */
.three-way { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* === Cards === */
.card {
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: none; border-radius: 0;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 2px solid;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 0 12px rgba(155, 77, 255, 0.2);
}

.stat-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.4em;
    color: #fff;
    margin: 0 0 8px;
}

.stat-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4em;
    color: var(--muted);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0;
}

.pixel-card {
    border: 2px solid var(--border) !important;
    background: rgba(255,255,255,0.02);
}

/* === Hover Effects & Animations === */

.sidemenu nav a {
    transition: transform 0.15s, color 0.15s;
}
.sidemenu nav a:hover {
    transform: translateX(4px);
}

.sidemenu nav a .fa {
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.card {
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    border-color: var(--teal);
    box-shadow: 4px 4px 0 rgba(77, 201, 176, 0.2), 0 0 12px rgba(155, 77, 255, 0.1);
    transform: translate(-2px, -2px);
}

.card.hover-shadow:hover,
.pixel-card:hover {
    border-color: var(--teal) !important;
    box-shadow: 4px 4px 0 rgba(77, 201, 176, 0.2), 0 0 12px rgba(155, 77, 255, 0.15) !important;
    transform: translate(-2px, -2px);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(155, 77, 255, 0.2);
}

.table tbody tr {
    transition: background 0.15s;
}
.table tbody tr:hover {
    background: rgba(155, 77, 255, 0.05) !important;
}

.list-group-item {
    transition: background 0.15s, border-color 0.15s, padding-left 0.2s;
}
.list-group-item:hover {
    padding-left: 1.2rem;
    border-left: 3px solid var(--teal);
}

.side-footer a {
    transition: transform 0.2s, color 0.2s, text-shadow 0.2s;
}
.side-footer a:hover {
    transform: translateY(-2px);
}

#content-navbar .breadcrumb-area a {
    transition: color 0.15s;
}
#content-navbar .breadcrumb-area a:hover {
    color: var(--teal);
}

.btn {
    transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s, background 0.1s;
}
.btn:active {
    transform: translate(1px, 1px);
}

a {
    transition: color 0.15s, text-shadow 0.15s;
}

.pagination .page-link {
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.pagination .page-link:hover {
    transform: translateY(-1px);
}

.link-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55em;
    color: var(--text);
    margin-bottom: 4px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.link-desc {
    font-size: 0.85em;
    color: var(--muted);
    margin: 0;
}

.icon-box {
    width: 48px;
    height: 48px;
}

/* === Tables === */
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); }
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg: rgba(255,255,255,0.02);
}

/* === Forms === */
.form-control, .form-select {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    border-radius: 0;
}
.form-control:focus, .form-select:focus {
    border-color: var(--purple); box-shadow: 0 0 8px rgba(155, 77, 255, 0.2);
    background: var(--bg); color: var(--text);
}

/* === List group === */
.list-group-item {
    background: var(--surface); border-color: var(--border); color: var(--text);
}
.list-group-item:hover { background: rgba(155, 77, 255, 0.05); }

/* === Alerts === */
.alert { border-radius: 0; border: 1px solid; }
.alert-primary { background: rgba(155, 77, 255, 0.1); border-color: var(--purple-dark); color: var(--violet); }

/* === Badges === */
.badge { border-radius: 0; font-weight: normal; letter-spacing: 1px; font-size: 0.7em; }

/* === Blockquote === */
blockquote {
    background: var(--bg); border-left: 4px solid var(--purple);
    margin: 1.5em 10px; padding: 0.5em 10px; color: var(--muted);
}

/* === Utilities === */
.icon-box { width: 48px; height: 48px; }

.placeholder-thumb, .placeholder-thumb-sm {
    background: var(--bg); border: 1px dashed var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
}
.placeholder-thumb { width: 80px; height: 80px; font-size: 1.4em; }
.placeholder-thumb-sm { width: 60px; height: 60px; font-size: 1.1em; }

.img-preview-sm { max-height: 100px; }

hr { border-color: var(--border); }

/* === TOC === */
.toc {
    background: var(--bg); border: 1px solid var(--purple-dark); display: inline-block; margin-bottom: 20px;
}
.toc ul { margin: 0; }
.toc li { padding: 5px 30px 5px 5px; }
.toc li ul { padding-left: 10px; }

/* === Markdownx === */
.markdownx .markdownx-preview { background: var(--bg) !important; color: var(--text) !important; border-color: var(--border) !important; }

/* === Mobile === */
#menu-toggle { display: none; }
#toggle-button { display: none; }

@media only screen and (max-width: 800px) {
    .sidemenu { position: static; width: 100%; height: auto; min-height: auto; border-left: 0; border-right: 0; box-shadow: none; background: none; }
    .sidemenu::before,
    .sidemenu::after { display: none; }
    .hs-headline {
        position: relative; z-index: 10; background: var(--sidebar-dark);
        padding: 16px 0 8px 0; text-align: center;
    }
    .sidemenu nav a { width: 100%; padding: 3px 25px; }
    .sidemenu nav {
        width: 100%; position: fixed; left: 0; height: 100vh;
        background: var(--sidebar-dark); z-index: 9; top: 0; padding-top: 210px;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    #menu-toggle:checked ~ nav { visibility: visible; opacity: 1; transform: translateY(0); }
    .sidemenu .separator-aside { margin: 15px auto; }
    .side-footer { visibility: hidden; }
    .side-logo { visibility: hidden; }
    .content-wrapper { margin-left: 0; width: 100%; }
    .content { margin-right: 0; }
    .content-article { font-size: 1em; width: 98%; }
    #toggle-button { display: block; cursor: pointer; position: fixed; top: 16px; right: 16px; z-index: 99; background: var(--purple-dark); padding: 8px 12px; border: 2px solid var(--teal); color: var(--teal); font-size: 20px; font-family: 'Press Start 2P', monospace; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4); transition: box-shadow 0.1s, transform 0.1s; }
    #toggle-button:hover { background: var(--purple); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4); transform: translate(2px, 2px); }
    .hs-cover { height: 200px; }
    .hs-cover h1 { font-size: 1.5em; }
    .toc { width: 95%; }
}
