/* ==========================================================================
   Red Girafe Games — Modern Clean Theme & Documentation Template
   A lightweight, developer-focused, high-contrast stylesheet.
   ========================================================================== */

:root {
    --rg-primary: #e67e22;
    --rg-primary-hover: #d35400;
    --rg-primary-light: #fef5ec;
    --rg-dark: #0f172a;
    --rg-dark-surface: #1e293b;
    --rg-slate: #334155;
    --rg-muted: #64748b;
    --rg-light-bg: #f8fafc;
    --rg-card-bg: #ffffff;
    --rg-border: #e2e8f0;
    --rg-border-hover: #cbd5e1;
    --rg-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --rg-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
    --rg-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --rg-radius: 10px;
    --rg-radius-sm: 6px;
    --rg-radius-lg: 14px;
    --rg-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rg-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Base Styles */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--rg-font-sans);
    color: var(--rg-slate);
    background-color: var(--rg-light-bg);
    line-height: 1.65;
    font-size: 15px;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--rg-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
}

a {
    color: var(--rg-primary);
    transition: color 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--rg-primary-hover);
    text-decoration: none;
}

/* ==========================================================================
   Minimalist Landing Page Styles (Lightweight & Clean)
   ========================================================================== */
.landing-simple-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.landing-brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3vw, 26px);
    margin-bottom: 45px;
}

.landing-brand-logo {
    width: clamp(72px, 15vw, 124px);
    height: clamp(72px, 15vw, 124px);
    border-radius: 18px;
    border: 1px solid var(--rg-border);
    box-shadow: var(--rg-shadow-sm);
    object-fit: cover;
    background: #ffffff;
    flex-shrink: 0;
}

.landing-brand-tagline {
    font-size: clamp(18px, 3.5vw, 27px);
    font-weight: 700;
    color: var(--rg-dark);
    line-height: 1.35;
    letter-spacing: -0.02em;
    max-width: 440px;
    margin: 0;
}

/* Backwards compatibility for title/subtitle if used */
.landing-brand-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--rg-dark);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.landing-brand-subtitle {
    font-size: 17px;
    color: var(--rg-muted);
    font-weight: 400;
    margin: 0;
}

.landing-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   Bento Showcase Design (Featured Hero Banner + Companion Grid)
   ========================================================================== */
.bento-showcase {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Featured Hero Banner Card */
.bento-hero {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
    border-radius: var(--rg-radius-lg);
    padding: 36px 42px;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.22);
    position: relative;
    overflow: hidden;
}

.bento-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.bento-hero-content {
    flex: 1;
    max-width: 620px;
}

.bento-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 14px;
}

.bento-hero-badge-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.bento-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.bento-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.bento-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-hero-tag {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.bento-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bento-hero-icon-box {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.bento-hero-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bento-hero-icon-box.icon-invert img {
    filter: brightness(0) invert(1);
}

.bento-hero-btn {
    background: #ffffff;
    color: #c2410c !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 22px;
    border-radius: var(--rg-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bento-hero-btn:hover {
    background: #fff7ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #9a3412 !important;
}

/* Bento Companion Grid */
.bento-companion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.bento-card {
    background: #ffffff;
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    padding: 24px;
    box-shadow: var(--rg-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.bento-card:hover {
    border-color: #fdba74;
    box-shadow: var(--rg-shadow-md);
    transform: translateY(-2px);
}

.bento-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bento-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.bento-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bento-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--rg-dark);
    margin: 0 0 8px 0;
}

.bento-card-desc {
    font-size: 13.5px;
    color: var(--rg-slate);
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.bento-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.bento-card-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.bento-card-footer {
    padding-top: 14px;
    border-top: 1px solid var(--rg-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bento-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--rg-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.bento-card-cta:hover {
    color: var(--rg-primary-hover);
}

.bento-card-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bento-card-link-btn {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--rg-slate);
    padding: 3px 8px;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid var(--rg-border);
    transition: all 0.15s ease;
}

.bento-card-link-btn:hover {
    background: #ffffff;
    border-color: var(--rg-primary);
    color: var(--rg-primary);
}

.landing-card {
    background: var(--rg-card-bg);
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    padding: 24px 28px;
    box-shadow: var(--rg-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.landing-card:hover {
    border-color: var(--rg-border-hover);
    box-shadow: var(--rg-shadow-md);
    transform: translateY(-2px);
}

.landing-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-card-icon img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.landing-card-content {
    flex: 1;
}

.landing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.landing-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--rg-dark);
    margin: 0;
}

.landing-card-desc {
    font-size: 14.5px;
    color: var(--rg-slate);
    margin: 0 0 16px 0;
    line-height: 1.55;
}

.landing-card-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-footer-simple {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--rg-border);
}

.landing-social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.landing-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rg-slate);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--rg-radius-sm);
    background: #ffffff;
    border: 1px solid var(--rg-border);
    transition: all 0.2s ease;
}

.landing-social-link:hover {
    color: var(--rg-primary);
    border-color: var(--rg-primary);
    transform: translateY(-1px);
}

.landing-copyright {
    font-size: 13px;
    color: var(--rg-muted);
}

/* ==========================================================================
   Standardized Reusable Product Documentation Template
   ========================================================================== */

/* Clean Sticky Top Bar */
.doc-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--rg-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    padding: 10px 0;
}

.doc-navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.doc-brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    flex-wrap: wrap;
}

.doc-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rg-dark);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.doc-brand-link:hover {
    color: var(--rg-primary);
}

.doc-brand-link img {
    height: 28px;
    width: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.doc-breadcrumb-sep {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
    user-select: none;
    line-height: 1;
}

.doc-breadcrumb-link {
    color: var(--rg-muted);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.doc-breadcrumb-link:hover {
    color: var(--rg-primary);
}

.doc-breadcrumb-current {
    color: var(--rg-slate);
    font-weight: 600;
    font-size: 14px;
}

.doc-breadcrumb {
    color: var(--rg-muted);
    font-weight: 400;
    font-size: 14px;
}

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

/* Documentation Layout: 2 Columns */
.doc-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 24px 80px;
    display: flex;
    gap: 40px;
    position: relative;
}

.doc-main {
    flex: 1;
    min-width: 0; /* Prevents pre flex overflow */
}

.doc-toc-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 75px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding-left: 10px;
}

/* Product Hero in Documentation */
.doc-product-hero {
    background: #ffffff;
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    padding: 28px;
    margin-bottom: 35px;
    box-shadow: var(--rg-shadow-sm);
}

.doc-hero-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.doc-hero-logo {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 6px;
}

.doc-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--rg-dark);
}

.doc-hero-subtitle {
    font-size: 15px;
    color: var(--rg-muted);
    margin: 0;
}

.doc-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 20px 0;
}

.doc-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Documentation Content Sections */
.doc-section {
    background: #ffffff;
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    padding: 28px 32px;
    margin-bottom: 25px;
    box-shadow: var(--rg-shadow-sm);
}

.doc-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--rg-dark);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rg-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-subsection {
    margin: 22px 0;
}

.doc-subsection-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--rg-dark);
    margin: 0 0 10px 0;
}

/* Clean Sidebar Table of Contents */
.toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rg-muted);
    margin-bottom: 12px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--rg-border);
}

.toc-item {
    margin-bottom: 4px;
}

.toc-link {
    display: block;
    font-size: 13.5px;
    color: var(--rg-slate);
    padding: 5px 0 5px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}

.toc-link:hover {
    color: var(--rg-primary);
}

.toc-link.active {
    color: var(--rg-primary);
    border-left-color: var(--rg-primary);
    font-weight: 600;
}

.toc-sublist {
    list-style: none;
    padding-left: 12px;
    margin: 4px 0 6px 0;
}

.toc-sublink {
    display: block;
    font-size: 12.5px;
    color: var(--rg-muted);
    padding: 3px 0 3px 10px;
}

.toc-sublink:hover {
    color: var(--rg-primary);
}

/* Modern Buttons & Badges */
.btn-doc-primary {
    background: var(--rg-primary);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 16px;
    border-radius: var(--rg-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--rg-primary);
}

.btn-doc-primary:hover {
    background: var(--rg-primary-hover);
    border-color: var(--rg-primary-hover);
}

.btn-doc-secondary {
    background: #ffffff;
    color: var(--rg-slate) !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 16px;
    border-radius: var(--rg-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--rg-border);
}

.btn-doc-secondary:hover {
    border-color: var(--rg-border-hover);
    color: var(--rg-primary) !important;
    background: #f8fafc;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-tag-oss {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-tag-version {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge-tag-wip {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

/* Callout Blocks */
.callout-box {
    padding: 14px 18px;
    border-radius: var(--rg-radius-sm);
    border-left: 4px solid var(--rg-primary);
    background: var(--rg-light-bg);
    margin: 18px 0;
    font-size: 14px;
}

.callout-box.info {
    border-left-color: #0284c7;
    background: #f0f9ff;
    color: #0369a1;
}

.callout-box.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
    color: #b45309;
}

.callout-box.danger {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
}

.callout-box strong {
    font-weight: 700;
}

/* Code Blocks & Copy Toolbar */
.modern-code-wrapper {
    position: relative;
    margin: 16px 0;
    border-radius: var(--rg-radius-sm);
    overflow: hidden;
    background: var(--rg-dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-lang-tag {
    font-family: var(--rg-font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.code-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

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

.code-copy-btn.copied {
    background: #059669;
    color: #ffffff;
    border-color: #10b981;
}

.modern-code-wrapper pre {
    margin: 0;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow-x: auto;
    color: #f8fafc;
    font-family: var(--rg-font-mono);
    font-size: 13px;
    line-height: 1.55;
}

.modern-code-wrapper code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
    white-space: pre;
}

/* API Tables */
.doc-table-wrap {
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius-sm);
    overflow: hidden;
    margin: 18px 0;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.doc-table th {
    background: #f8fafc;
    color: var(--rg-dark);
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rg-border);
}

.doc-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--rg-border);
    vertical-align: top;
}

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

.doc-table code {
    font-family: var(--rg-font-mono);
    font-size: 12.5px;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* FAQ Accordion Details */
.faq-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.faq-box {
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius-sm);
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-box[open] {
    border-color: #cbd5e1;
}

.faq-box summary {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--rg-dark);
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-box summary::-webkit-details-marker {
    display: none;
}

.faq-box summary::after {
    content: "\f078";
    font-family: FontAwesome;
    font-size: 11px;
    color: var(--rg-muted);
    transition: transform 0.2s ease;
}

.faq-box[open] summary::after {
    transform: rotate(180deg);
    color: var(--rg-primary);
}

.faq-body {
    padding: 0 16px 14px;
    font-size: 14px;
    color: var(--rg-slate);
    line-height: 1.6;
}

/* Changelog Styles */
.changelog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rg-border);
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 19px;
    font-weight: 800;
    color: var(--rg-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--rg-muted);
}

.changelog-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
}

.changelog-list li {
    margin-bottom: 6px;
}

/* Media Wrappers */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--rg-radius-sm);
    margin: 16px 0;
    border: 1px solid var(--rg-border);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.img-responsive-wrap {
    border-radius: var(--rg-radius-sm);
    border: 1px solid var(--rg-border);
    overflow: hidden;
    margin: 16px 0;
}

.img-responsive-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Offcanvas Drawer */
.mobile-toc-toggle-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    background: var(--rg-dark-surface);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--rg-shadow-lg);
    cursor: pointer;
}

.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    background: #ffffff;
    color: var(--rg-slate);
    border: 1px solid var(--rg-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rg-shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: var(--rg-primary);
    color: #ffffff;
    border-color: var(--rg-primary);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .doc-container {
        flex-direction: column;
        padding: 20px 16px 60px;
    }

    .doc-toc-sidebar {
        display: none;
    }

    .doc-toc-sidebar.mobile-open {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        z-index: 2000;
        padding: 24px;
        box-shadow: var(--rg-shadow-lg);
        overflow-y: auto;
    }

    .mobile-drawer-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    .mobile-drawer-overlay.visible {
        display: block;
    }

    .mobile-toc-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .landing-card {
        flex-direction: column;
        gap: 16px;
    }

    .bento-hero {
        padding: 26px 20px;
    }

    .bento-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .bento-hero-visual {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .bento-hero-btn {
        width: auto;
    }
}

