/* 
    Platinum+ Wiki — Premium Edge-to-Edge Glassmorphism Design
    Focus: Maximum screen utilization, vast content area, modern aesthetics.
*/

:root {
    /* Color Palette */
    --platinum-950: #03070b;
    --platinum-900: #0a1622;
    --platinum-800: #112236;
    --platinum-700: #1a344d;
    --platinum-300: #BFC7D5;
    --platinum-100: #E2E8F0;
    --platinum-50: #F5F7FA;
    
    --electric-500: #2692D2;
    --electric-400: #52B2EC;
    --electric-600: #1B79B6;
    
    /* UI Tokens */
    --header-height: 76px;
    --sidebar-width: 500px;
    --toc-width: 280px;
    --max-content-width: 1100px; /* VAST reading area */
    
    /* Modern Styling Tokens */
    --glass-bg: rgba(10, 22, 34, 0.45);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(24px);
    
    --text-primary: var(--platinum-50);
    --text-secondary: rgba(191, 199, 213, 0.75);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', 'ui-monospace', monospace;
    
    --transition-speed: 0.2s;
    --transition-timing: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Alert Colors */
    --info-border: var(--electric-400);
    --info-bg: rgba(38, 146, 210, 0.12);

    /* Component Tokens (used in step-cards, alerts, etc.) */
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-accent: var(--electric-400);
    --border-radius: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--platinum-950);
    /* Deep glowing mesh gradient background */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(38, 146, 210, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(82, 178, 236, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(10, 22, 34, 1) 0%, var(--platinum-950) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Edge-to-Edge Header */
.wiki-header {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    padding: 0.5rem 0.8rem;
    border-radius: 100px;
    transition: background var(--transition-speed);
}

.logo-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}

.text-accent {
    color: var(--electric-400);
    font-weight: 400;
    font-style: normal;
}

/* Header Center - VAST Search */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 4rem; /* Keeps it away from edges */
}

.search-wrapper {
    position: relative;
    width: 500px; /* Much larger base width */
    max-width: 100%;
    transition: width var(--transition-speed) var(--transition-timing);
}

.search-wrapper:focus-within {
    width: 800px; /* Huge expansion on focus */
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    z-index: 2;
}

#wiki-search {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.7rem 3.5rem 0.7rem 3.5rem;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-speed);
    position: relative;
    z-index: 2;
}

#wiki-search:focus {
    outline: none;
    border-color: var(--electric-500);
    box-shadow: 0 0 0 4px rgba(38, 146, 210, 0.15);
    background: rgba(10, 22, 34, 0.8);
}

.search-kbd {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 2;
    transition: opacity var(--transition-speed);
}

.search-wrapper:focus-within .search-kbd {
    opacity: 0;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: rgba(10, 22, 34, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.search-results.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-result-group {
    padding: 0.5rem 0;
}

.search-result-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
}

.search-result-item {
    display: block;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition-speed);
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover, .search-result-item.selected {
    background: rgba(38, 146, 210, 0.1);
}

.search-result-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-title i,
.search-result-title img,
.search-result-title svg {
    width: 16px;
    height: 16px;
    color: var(--electric-400);
    object-fit: contain;
}

.search-result-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

mark.search-highlight {
    background-color: rgba(38, 146, 210, 0.3);
    color: white;
    font-weight: 600;
    padding: 0 0.1rem;
    border-radius: 4px;
}

mark.page-search-highlight {
    background-color: rgba(38, 146, 210, 0.4);
    color: white;
    font-weight: 600;
    padding: 0 0.2rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(38, 146, 210, 0.6);
    animation: search-pulse-glow 1.5s infinite alternate;
    transition: all 0.3s ease;
}

@keyframes search-pulse-glow {
    0% {
        background-color: rgba(38, 146, 210, 0.2);
        box-shadow: 0 0 5px rgba(38, 146, 210, 0.3);
    }
    100% {
        background-color: rgba(38, 146, 210, 0.6);
        box-shadow: 0 0 15px rgba(38, 146, 210, 0.8);
    }
}

.search-empty {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Header Social & Buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-social {
    display: flex;
    gap: 0.5rem;
}

.header-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}

.header-social .social-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.header-social .social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Custom Language Selector */
.custom-lang-wrapper {
    position: relative;
    display: inline-block;
}

.language-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    gap: 0.5rem;
    user-select: none;
}

.language-selector:hover, .custom-lang-wrapper.active .language-selector {
    background: var(--electric-500);
    border-color: var(--electric-500);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 146, 210, 0.4);
}

.language-selector .lang-icon {
    width: 16px;
    height: 16px;
    color: inherit;
    transition: color var(--transition-speed);
}

.lang-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
}

.lang-chevron {
    width: 16px;
    height: 16px;
    color: inherit;
    transition: transform var(--transition-speed);
}

.custom-lang-wrapper.active .lang-chevron {
    transform: rotate(180deg);
}

/* Custom Dropdown Menu */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 250px;
    max-height: 400px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.custom-lang-wrapper.active .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.lang-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.lang-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.lang-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--electric-400);
    padding: 1rem 1rem 0.5rem 1rem;
    letter-spacing: 0.05em;
}

.lang-option {
    padding: 0.6rem 1rem 0.6rem 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.lang-option.selected {
    color: var(--electric-400);
    font-weight: 600;
    background: rgba(38, 146, 210, 0.1);
}

/* Hide native select completely */
#custom-lang-selector {
    display: none;
}

/* Prevent Google Translate from translating the language selector */
.notranslate { translate: no; }

/* Completely hide Google Translate top banner, toolbar, tooltips and popups */
body { 
    top: 0 !important; 
    position: static !important;
}
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-gadget-icon, 
.goog-te-gadget-simple, 
#goog-gt-tt, 
.goog-tooltip, 
.goog-tooltip:hover,
.VIpgJd-Z44Wfd-a91vB-sn55dc,
.VIpgJd-Z44Wfd-O22p-lh36be,
.VIpgJd-Z44Wfd-Lg5fbe,
div[id^=":"][id*="container"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}
.goog-text-highlight { 
    background-color: transparent !important; 
    box-shadow: none !important; 
}

.back-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed);
}

.back-link:hover {
    background: var(--electric-500);
    border-color: var(--electric-500);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 146, 210, 0.4);
}

/* Main Layout (Edge to Edge Full Width) */
.wiki-container {
    display: flex;
    max-width: 100%; /* Full Width */
    margin-top: var(--header-height);
    padding: 0;
    align-items: stretch;
    min-height: 100vh;
}

/* Edge-to-Edge Sidebar */
.wiki-sidebar {
    flex: 0 0 var(--sidebar-width);
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    padding: 3rem 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    transition: flex-basis 0.35s cubic-bezier(0.33, 1, 0.68, 1),
                width 0.35s cubic-bezier(0.33, 1, 0.68, 1),
                min-width 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.sidebar-nav ul {
    list-style: none;
}

.tree-item-group {
    margin-bottom: 0.75rem;
}
.tree-item-group:last-child {
    margin-bottom: 0;
}

.group-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-speed);
    gap: 0.75rem;
    border-radius: 12px;
}

.sidebar-single-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    gap: 0.75rem;
    border-radius: 12px;
}

.group-header:hover, .sidebar-single-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-single-item.active {
    color: var(--electric-400);
    background: rgba(38, 146, 210, 0.08);
}

.arrow-icon { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; }
.item-icon { width: 20px; height: 20px; color: var(--electric-400); flex-shrink: 0; }

.subgroup-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-speed);
    gap: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.2rem;
}

.subgroup-header .item-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
}

.subgroup-header .item-icon-medium {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
}

.subgroup-header .item-icon-large {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

.subgroup-header .item-icon-scaled {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    transform: scale(1.3);
    transform-origin: center;
}

.subgroup-header:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.tree-item-group ul {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-left: 2.5rem;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}

.tree-item-group.open > ul {
    opacity: 1;
    margin-top: 0.5rem;
    /* max-height is set inline by JS to precise scrollHeight */
}

.tree-item-group ul li a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2rem; /* Increased left padding for the dot */
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all var(--transition-speed);
    position: relative;
    border-radius: 8px;
    margin-bottom: 0.2rem;
}

.tree-item-group ul li a::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    opacity: 0.5;
    transition: all var(--transition-speed);
}

.tree-item-group ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.02);
}

.tree-item-group ul li a:hover::before {
    background-color: white;
    opacity: 1;
}

.tree-item-group ul li a.active {
    color: var(--electric-400);
    background: rgba(38, 146, 210, 0.08);
}

.tree-item-group ul li a.active::before {
    background-color: var(--electric-400);
    opacity: 1;
    box-shadow: 0 0 8px var(--electric-400);
}

/* Vast Content Area */
.wiki-content {
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - var(--header-height));
    background: transparent; /* Allows gradient background to show through fully */
    padding: 4rem 6rem;
}

.wiki-article, .wiki-page {
    max-width: var(--max-content-width); /* Huge reading area */
    margin: 0 auto;
}

.wiki-page {
    display: none;
}

.wiki-page.active {
    display: block;
}

/* Step Card Component */
.step-card {
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-speed);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.step-card h3 {
    margin-top: 0;
    color: var(--text-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Welcome Hero */
.welcome-hero {
    padding: 2rem 0 4rem 0;
    margin-bottom: 3rem;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.welcome-logo {
    width: 320px; /* Extra large */
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 0 40px rgba(38, 146, 210, 0.2));
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem; /* Massive */
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About Me Section */
.about-me-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 24px;
}

.profile-container {
    flex-shrink: 0;
}

.profile-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(38, 146, 210, 0.2);
}

.bio-content {
    flex: 1;
}

/* Team Section */
.team-section {
    margin-top: 4rem;
}

.team-section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    font-weight: 400;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-speed);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(38, 146, 210, 0.2);
    margin-bottom: 1.5rem;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.team-handle {
    font-size: 1rem;
    color: var(--electric-400);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.team-social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed);
}

.team-social-buttons a:hover {
    background: var(--electric-500);
    border-color: var(--electric-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(38, 146, 210, 0.4);
}

.team-social-buttons a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Typography Optimization */
.article-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
}

h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    color: white;
    font-weight: 400; 
}

h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--electric-400);
}

p {
    margin-bottom: 1.75rem;
    font-size: 1.1rem; /* Slightly larger for vast reading area */
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Breadcrumb - Minimal Style */
.wiki-breadcrumb {
    max-width: var(--max-content-width);
    margin: 0 auto;
    margin-bottom: 2rem;
}

.wiki-breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 100%;
    border: none;
}

.wiki-breadcrumb li::after {
    content: '\005C'; /* Backslash */
    margin: 0 0.75rem;
    opacity: 0.3;
    font-family: var(--font-mono);
}

.wiki-breadcrumb li:last-child::after {
    content: none;
}

.wiki-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.wiki-breadcrumb a:hover {
    color: white;
}

/* Meta info */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.meta-item svg { width: 16px; height: 16px; opacity: 0.7; }

/* Alerts */
.wiki-alert {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}


.wiki-alert.info {
    background: linear-gradient(135deg, rgba(38, 146, 210, 0.18), rgba(38, 146, 210, 0.04));
    border-color: rgba(38, 146, 210, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(38, 146, 210, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wiki-alert.info .alert-icon { color: var(--info-border); }

.alert-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-icon svg { width: 24px; height: 24px; }

.alert-content {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.alert-content strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: white;
}

/* Edge-to-Edge TOC */
.wiki-toc {
    flex: 0 0 var(--toc-width);
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--glass-border);
    padding: 0 2rem;
    overflow-y: auto;
}

.toc-header {
    opacity: 0; /* for animation */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-header::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--electric-500);
    border-radius: 50%;
}

#toc-nav {
    opacity: 0; /* for animation */
}

#toc-nav ul {
    list-style: none;
    border-left: 1px solid var(--glass-border);
    margin-left: 4px;
}

#toc-nav li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed);
    position: relative;
}

#toc-nav li a:hover {
    color: white;
}

#toc-nav li a.active {
    color: var(--electric-400);
    font-weight: 500;
}

#toc-nav li a.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--electric-500);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-speed) var(--transition-timing);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-fade-in {
    animation: fadeIn var(--transition-speed) var(--transition-timing) forwards;
}

/* Scrollbar Customization */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .wiki-toc { display: none !important; }
    .wiki-content { padding: 4rem 5rem; }
}

@media (max-width: 1100px) {
    .header-social { display: none; }
    .search-wrapper { width: 300px; }
    .search-wrapper:focus-within { width: 450px; }
    .hero-flex { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-title, .hero-subtitle { text-align: center; }
    .about-me-flex { flex-direction: column; text-align: center; gap: 2rem; padding: 2rem; }
}

@media (max-width: 860px) {
    .wiki-container { flex-direction: column; }
    
    .wiki-sidebar {
        flex: none;
        width: 100%;
        position: static;
        height: auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .wiki-content { padding: 3rem 2rem; }
    .header-center { display: none; }
    .article-title { font-size: 2.25rem; }
    .hero-title { font-size: 2.5rem; }
    .welcome-logo { width: 180px; }
}

/* Premium Tabs Component */
.wiki-tabs {
    margin: 2.5rem 0;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tabs-nav {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.tab-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    background: var(--electric-500);
    border-color: var(--electric-500);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 146, 210, 0.35);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn var(--transition-speed) var(--transition-timing) forwards;
}

/* Decision Flow Helper */
.decision-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.decision-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.decision-card:hover {
    border-color: rgba(38, 146, 210, 0.2);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.decision-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.decision-number {
    background: linear-gradient(135deg, var(--electric-500), var(--electric-400));
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(38, 146, 210, 0.3);
}

.decision-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.branch-option {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-option:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.branch-condition {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.branch-value {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.25rem 0 1rem;
    display: block;
    line-height: 1.4;
}

.branch-outcome {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.outcome-w10 {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.outcome-w10 span {
    color: #34d399;
}

.outcome-w10 i {
    color: #10b981;
}

.outcome-next {
    background: rgba(38, 146, 210, 0.08);
    border: 1px solid rgba(38, 146, 210, 0.2);
}

.outcome-next span {
    color: var(--electric-400);
}

.outcome-next i {
    color: var(--electric-400);
}

.outcome-w11 {
    background: rgba(38, 146, 210, 0.15);
    border: 1px solid rgba(38, 146, 210, 0.35);
    box-shadow: 0 4px 15px rgba(38, 146, 210, 0.1);
}

.outcome-w11 span {
    color: var(--electric-300);
    font-weight: 600;
}

.outcome-w11 .sparkle-badge {
    background: var(--electric-500);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* Unified Decision Table */
.decision-table-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.decision-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    min-width: 700px;
}

.decision-table th {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.decision-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.decision-table td:not(.component-cell):hover {
    background: rgba(255, 255, 255, 0.02);
}

.decision-table tr:last-child td {
    border-bottom: none;
}

/* Component Column Grouping Row Heights */
.decision-table td.component-cell {
    font-weight: 600;
    color: white;
    background: rgba(38, 146, 210, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glowing outcome badges inside the table */
.table-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 190px;
    justify-content: flex-start;
}

.table-badge-w10 {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.table-badge-next {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.table-badge-w11 {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

/* Monospace Terminal/Code Block (Premium Glassmorphism Style) */
.wiki-code-block {
    position: relative;
    background: rgba(10, 22, 34, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wiki-code-block:hover {
    background: rgba(15, 27, 42, 0.55);
    border-color: rgba(38, 146, 210, 0.25);
    box-shadow: 0 12px 40px rgba(38, 146, 210, 0.12), inset 0 0 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.wiki-code-block pre {
    margin: 0;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
}

.wiki-code-block pre code {
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 0 12px rgba(82, 178, 236, 0.15);
}

code:not(pre code) {
    background: rgba(38, 146, 210, 0.08);
    border: 1px solid rgba(38, 146, 210, 0.2);
    color: var(--electric-400);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

/* Contextual Documentation Panel (Sliding Split-Screen Style) */
.contextual-doc-panel {
    position: fixed;
    right: 0;
    top: var(--header-height, 70px);
    bottom: 0;
    width: 45vw;
    max-width: 900px;
    min-width: 400px;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.contextual-doc-panel.open {
    transform: translateX(0);
    pointer-events: auto;
}

/* Make main content shrink and slide smoothly */
.wiki-content {
    transition: padding-right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.doc-panel-active .wiki-content {
    padding-right: clamp(400px, 45vw, 900px);
}

.doc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.doc-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-panel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-panel-btn:hover {
    color: white;
    background: rgba(255, 50, 50, 0.8);
    border-color: rgba(255, 50, 50, 0.8);
    transform: rotate(90deg);
}

.doc-panel-content {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.doc-panel-content h4 {
    color: var(--text-primary);
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.doc-panel-content ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.doc-panel-content li {
    margin-bottom: 0.75rem;
}

/* Scrollbar for doc panel */
.doc-panel-content::-webkit-scrollbar {
    width: 6px;
}
.doc-panel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.doc-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Button style */
.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(38, 146, 210, 0.15), rgba(38, 146, 210, 0.05));
    color: var(--electric-400);
    border: 1px solid rgba(38, 146, 210, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(38, 146, 210, 0.1);
}

.doc-btn:hover {
    background: linear-gradient(135deg, rgba(38, 146, 210, 0.25), rgba(38, 146, 210, 0.1));
    border-color: var(--electric-400);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 146, 210, 0.2);
}

/* CTA Buttons Container */
.cta-buttons-container {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: pointer;
    font-family: var(--font-sans);
}

.cta-btn-primary {
    background: linear-gradient(135deg, rgba(38, 146, 210, 0.85), rgba(82, 178, 236, 0.75));
    color: white;
    border: 1px solid rgba(38, 146, 210, 0.6);
    box-shadow: 0 4px 12px rgba(38, 146, 210, 0.25);
}

.cta-btn-primary:hover {
    background: linear-gradient(135deg, rgba(82, 178, 236, 0.9), rgba(38, 146, 210, 0.85));
    border-color: rgba(82, 178, 236, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 146, 210, 0.35);
}

.cta-btn-secondary {
    background: linear-gradient(135deg, rgba(38, 146, 210, 0.85), rgba(82, 178, 236, 0.75));
    color: white;
    border: 1px solid rgba(38, 146, 210, 0.6);
    box-shadow: 0 4px 12px rgba(38, 146, 210, 0.25);
}

.cta-btn-secondary:hover {
    background: linear-gradient(135deg, rgba(82, 178, 236, 0.9), rgba(38, 146, 210, 0.85));
    border-color: rgba(82, 178, 236, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 146, 210, 0.35);
}

/* Adaptation of GPU steps when documentation panel is active */
@media (min-width: 1001px) {
    /* Hide TOC since it is covered by the documentation panel anyway, freeing 280px of space */
    body.doc-panel-active .wiki-toc {
        display: none !important;
    }

    /* Reduce left padding of content area when split-screen is active to maximize steps width */
    body.doc-panel-active .wiki-content {
        padding-left: 2.5rem;
    }

    /* Allow the GPU pages to expand to the full remaining width and add a gap before the doc panel */
    body.doc-panel-active #page-nvidia-gpu,
    body.doc-panel-active #page-amd-gpu {
        max-width: 100%;
        padding-right: 2.5rem;
    }

    /* Keep single column layout but make sure it occupies the full space */
    body.doc-panel-active #page-nvidia-gpu .steps-wrapper,
    body.doc-panel-active #page-amd-gpu .steps-wrapper {
        display: block;
    }

    body.doc-panel-active #page-nvidia-gpu .step-card,
    body.doc-panel-active #page-amd-gpu .step-card {
        margin-bottom: 2.5rem;
        width: 100%;
    }

    /* Center images and make them look premium within the expanded cards */
    body.doc-panel-active #page-nvidia-gpu .step-card img,
    body.doc-panel-active #page-amd-gpu .step-card img {
        display: block;
        margin: 1.5rem auto 0 auto;
        max-width: 100%;
        height: auto;
    }
}



/* Premium Glassmorphic Copy Button */
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.copy-btn:hover {
    background: rgba(38, 146, 210, 0.12);
    border-color: var(--electric-400);
    color: white;
    box-shadow: 0 0 12px rgba(38, 146, 210, 0.2);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn i, .copy-btn svg {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Copied/Success state */
.copy-btn.copied {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

/* Media query for smaller screens */
@media (max-width: 1400px) {
    .contextual-doc-panel {
        width: 50vw;
    }
    body.doc-panel-active .wiki-content {
        padding-right: clamp(400px, 50vw, 900px);
    }
}
@media (max-width: 1000px) {
    .contextual-doc-panel {
        width: 100%;
        max-width: 100vw;
        min-width: 100vw;
        border-left: none;
    }
    body.doc-panel-active .wiki-content {
        padding-right: 2rem; /* Mobile doesn't split screen */
    }
}


/* Bloatware Code Block Layout — Dedicated top spacing for Copy button */
.bloatware-page .wiki-code-block {
    padding-top: 2.25rem;
}

.bloatware-page .wiki-code-block pre {
    padding-top: 0.25rem;
    padding-bottom: 1.25rem;
}

.bloatware-page .copy-btn {
    top: 0.6rem;
    right: 0.8rem;
}
