:root {
    --ube-deep: #3b136f;
    --ube-primary: #581c87;
    --ube-accent: #7e22ce;
    --ube-light: #a855f7;
    --ube-lavender: #d8b4fe;
    --ube-soft: #f5edfd;
    --ube-bg: #fdfbfd;
    --dark-surface: #190c2e;
    --dark-card: #251342;
    --dark-border: rgba(168, 85, 247, 0.22);
    --text-main: #1f1430;
    --text-muted: #6b5a82;
    --text-light: #f3e8ff;
    --code-bg: #120721;
    --code-header: #1c0e33;
    --border: rgba(126, 34, 206, 0.16);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 14px rgba(88, 28, 135, 0.06);
    --shadow-md: 0 10px 30px rgba(88, 28, 135, 0.1);
    --shadow-lg: 0 20px 48px rgba(88, 28, 135, 0.16);
    --sidebar-width: 270px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--ube-bg);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Geometric Decorative Art Elements */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.geo-hatch {
    background: repeating-linear-gradient(
        -45deg,
        var(--ube-lavender),
        var(--ube-lavender) 3px,
        transparent 3px,
        transparent 9px
    );
    width: 140px;
    height: 90px;
    border-radius: 4px;
}

.code-glyph {
    font-family: 'Fira Code', ui-monospace, monospace;
    font-size: 26px;
    font-weight: 700;
    color: var(--ube-light);
    opacity: 0.35;
    user-select: none;
}

/* Header & Nav */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(253, 251, 253, 0.94);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: none;
    background: var(--ube-soft);
    border: 1px solid var(--ube-lavender);
    color: var(--ube-primary);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--ube-primary);
    color: #fff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ube-deep);
}

.brand-logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 6px rgba(126, 34, 206, 0.25));
}

.brand-text {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--ube-deep);
}

.version-pill {
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--ube-soft);
    color: var(--ube-primary);
    border: 1px solid var(--ube-lavender);
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 2px;
    letter-spacing: 0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Site Layout with Persistent Left Sidebar */
.site-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 64px);
    position: relative;
}

/* Left Side Panel */
.site-sidebar {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--border);
    padding: 24px 18px 40px;
    z-index: 50;
    scrollbar-width: thin;
    scrollbar-color: var(--ube-lavender) transparent;
}

.site-sidebar::-webkit-scrollbar {
    width: 5px;
}
.site-sidebar::-webkit-scrollbar-thumb {
    background: var(--ube-lavender);
    border-radius: 10px;
}

.sidebar-group {
    margin-bottom: 24px;
}

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ube-accent);
    margin-bottom: 8px;
    padding: 0 10px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 3px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.sidebar-nav a:hover {
    color: var(--ube-primary);
    background: var(--ube-soft);
}

.sidebar-nav a.active {
    color: var(--ube-primary);
    background: var(--ube-soft);
    font-weight: 800;
    border-left: 3px solid var(--ube-primary);
}

.lesson-num {
    font-family: 'Fira Code', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(126, 34, 206, 0.08);
    color: var(--ube-accent);
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-icon {
    font-size: 1rem;
    width: 18px;
    display: inline-flex;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 20, 48, 0.4);
    backdrop-filter: blur(4px);
    z-index: 45;
}

/* Main Content Area beside Sidebar */
.site-main {
    min-width: 0;
    padding: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--ube-primary);
    color: #fff;
    box-shadow: 0 4px 18px rgba(88, 28, 135, 0.3);
}

.btn-primary:hover {
    background: var(--ube-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(88, 28, 135, 0.45);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--ube-primary);
    border: 2px solid var(--ube-primary);
}

.btn-outline:hover {
    background: var(--ube-soft);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* Badge Tags */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--ube-soft);
    border: 1px solid var(--ube-lavender);
    border-radius: 50px;
    color: var(--ube-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 28px 80px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 50px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--ube-deep);
    margin-bottom: 18px;
}

.hero h1 span.accent {
    color: var(--ube-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ube-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

/* Terminal Install Box */
.install-box {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--ube-lavender);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: 'Fira Code', ui-monospace, monospace;
    font-size: 0.92rem;
    color: var(--ube-deep);
    gap: 14px;
    box-shadow: 0 4px 14px rgba(126, 34, 206, 0.08);
}

.install-box code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--ube-accent);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.copy-btn:hover {
    color: var(--ube-primary);
}

/* Poster Card Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster-card {
    background: #fff;
    border: 3px solid var(--ube-primary);
    border-radius: 28px;
    padding: 36px 28px;
    box-shadow: 16px 16px 0px var(--ube-primary);
    position: relative;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    text-align: center;
}

.poster-card .poster-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--ube-deep);
    line-height: 1;
    letter-spacing: -1px;
}

.poster-card .poster-tag {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-top: 6px;
    margin-bottom: 20px;
}

.jar-wrapper {
    position: relative;
    margin: 0 auto;
    width: 200px;
    height: 250px;
}

/* Section Wrappers */
.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 28px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--ube-deep);
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 660px;
    margin: 0 auto;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

/* Cards */
.card {
    background: #fff;
    border: 2px solid rgba(126, 34, 206, 0.12);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--ube-light);
    box-shadow: 0 16px 36px rgba(88, 28, 135, 0.1);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ube-soft);
    color: var(--ube-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    font-weight: 800;
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ube-deep);
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.card a.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--ube-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}

.card a.card-link:hover {
    color: var(--ube-accent);
    text-decoration: underline;
}

/* Architecture Pyramid Diagram */
.memory-tiers {
    background: var(--dark-surface);
    color: #fff;
    border-radius: 28px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
}

.tier-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 200px 1fr 180px;
    align-items: center;
    gap: 20px;
    transition: border-color 0.2s ease;
}

.tier-item:last-child {
    margin-bottom: 0;
}

.tier-item:hover {
    border-color: var(--ube-light);
}

.tier-badge {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ube-lavender);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-body h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: #fff;
}

.tier-body p {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.tier-tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
    background: rgba(168, 85, 247, 0.2);
    color: var(--ube-lavender);
    border: 1px solid var(--dark-border);
}

/* Code Playground Showcase */
.playground-section {
    background: var(--dark-surface);
    color: #fff;
    padding: 70px 32px;
    border-radius: 32px;
    margin: 0 28px 80px;
    box-shadow: 0 24px 60px rgba(25, 12, 46, 0.45);
    position: relative;
}

.code-container {
    max-width: 1080px;
    margin: 0 auto;
}

.code-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(216, 180, 254, 0.15);
    padding-bottom: 12px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    color: var(--ube-lavender);
    border: 1px solid transparent;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--ube-accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(126, 34, 206, 0.4);
}

.tab-btn:hover:not(.active) {
    background: rgba(168, 85, 247, 0.18);
}

/* Global Code Block Styling */
.code-window {
    background: var(--code-bg);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.code-window-header {
    background: var(--code-header);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-file-label {
    font-family: 'Fira Code', ui-monospace, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ube-lavender);
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-copy-btn {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--ube-lavender);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.code-copy-btn:hover {
    background: var(--ube-accent);
    color: #fff;
}

pre.code-pre {
    margin: 0;
    padding: 22px;
    overflow-x: auto;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    font-size: 0.94rem;
    line-height: 1.68;
    color: var(--text-light);
    background: var(--code-bg);
}

code {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
}

/* Inline code in text */
:not(pre) > code {
    background: var(--ube-soft);
    color: var(--ube-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Code blocks and code windows - remove any background highlight */
pre code,
pre.code-pre code,
.code-window code,
.code-window pre code,
#codeDisplay {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-light);
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: inherit;
    box-shadow: none !important;
    border: none !important;
}

/* Syntax Highlighting Colors */
.ube-kw { color: #f472b6; font-weight: 700; }        /* keywords: fn, let, mut, match, spawn, etc. */
.ube-fn { color: #60a5fa; font-weight: 600; }        /* function names */
.ube-type { color: #fbbf24; font-weight: 600; }      /* types: i32, string, Chan, Pool */
.ube-str { color: #4ade80; }                         /* strings */
.ube-fmt-str { color: #34d399; }                     /* format strings f"..." */
.ube-interp { color: #f43f5e; font-weight: 600; }    /* {expr} */
.ube-num { color: #c084fc; font-weight: 600; }       /* numbers */
.ube-cmt { color: #94a3b8; font-style: italic; }     /* comments */
.ube-const { color: #a78bfa; font-weight: 700; }     /* true, false, null */
.ube-builtin { color: #38bdf8; font-weight: 600; }   /* println, promote, etc. */
.ube-op { color: #f472b6; }                          /* ->, =>, ?, ! */

/* Concept Documentation Layout (multi-page site) */
.docs-layout {
    max-width: 1360px;
    margin: 0 auto;
    padding: 30px 24px 80px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 40px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 86px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.sidebar-heading {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ube-accent);
    margin-top: 18px;
    margin-bottom: 10px;
}

.sidebar-heading:first-child {
    margin-top: 0;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.sidebar-nav a:hover {
    color: var(--ube-primary);
    background: var(--ube-soft);
}

.sidebar-nav a.active {
    color: var(--ube-primary);
    background: var(--ube-soft);
    font-weight: 800;
    border-left: 3px solid var(--ube-primary);
}

.docs-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    margin: 32px 32px 80px 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--ube-accent);
    text-decoration: none;
    font-weight: 600;
}

.docs-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--ube-deep);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.docs-lead {
    font-size: 1.22rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.docs-content h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ube-deep);
    margin-top: 44px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ube-soft);
}

.docs-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ube-primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

.docs-content p {
    font-size: 1.02rem;
    color: #332244;
    line-height: 1.7;
    margin-bottom: 18px;
}

.docs-content ul, .docs-content ol {
    margin-left: 24px;
    margin-bottom: 20px;
    color: #332244;
}

.docs-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Callout Boxes */
.callout {
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0;
    border-left: 4px solid;
}

.callout-rule {
    background: #fdf2f8;
    border-color: #ec4899;
    color: #831843;
}

.callout-tip {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}

.callout-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #78350f;
}

.callout-note {
    background: var(--ube-soft);
    border-color: var(--ube-light);
    color: var(--ube-deep);
}

.callout-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Concept Cards in Curriculum */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.concept-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.22s ease;
    text-decoration: none;
    color: inherit;
}

.concept-card:hover {
    border-color: var(--ube-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.concept-number {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ube-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.concept-card h3 {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--ube-deep);
    margin-bottom: 8px;
}

.concept-card p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.concept-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--ube-primary);
    font-size: 0.9rem;
}

/* Next / Prev Navigation at page bottom */
.docs-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    gap: 16px;
}

.docs-nav-btn {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--ube-soft);
    transition: all 0.2s ease;
    min-width: 180px;
}

.docs-nav-btn.prev {
    text-align: left;
}

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

.docs-nav-btn:hover {
    border-color: var(--ube-accent);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.docs-nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ube-accent);
}

.docs-nav-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ube-deep);
    margin-top: 4px;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

table.ube-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    text-align: left;
    background: #fff;
}

table.ube-table th {
    background: var(--ube-soft);
    color: var(--ube-deep);
    font-weight: 800;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border);
}

table.ube-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

table.ube-table tr:last-child td {
    border-bottom: none;
}

table.ube-table tr:hover td {
    background: rgba(245, 237, 253, 0.4);
}

/* Footer */
footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 50px 28px 40px;
    background: #fff;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--ube-primary);
}

/* Responsive */
@media (max-width: 960px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

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

    .site-sidebar {
        position: fixed;
        top: 64px;
        left: -320px;
        width: 290px;
        height: calc(100vh - 64px);
        box-shadow: var(--shadow-lg);
        transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 100;
    }

    .site-sidebar.open {
        left: 0;
    }

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

    .tier-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px 60px;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .install-box {
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .docs-content {
        padding: 28px 20px;
    }
}
