/* Tales Of Orbis - Developer Documentation Styles */
/* White theme optimized for readability and SEO */

/* Define the white theme for theme.css compatibility */
[data-theme="white"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-panel: rgba(255, 255, 255, 0.95);
    --bg-panel-solid: #ffffff;
    --bg-hover: rgba(241, 245, 249, 0.8);
    --bg-input: rgba(255, 255, 255, 1);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    --accent: #4ecdc4;
    --accent-rgb: 78, 205, 196;
    --nav-bg: rgba(255, 255, 255, 0.85);
}

/* CRITICAL: Constrain all SVGs on docs pages to prevent overflow */
.docs-page svg,
.docs-sidebar svg,
.docs-main svg,
.docs-toc svg {
    max-width: 48px !important;
    max-height: 48px !important;
}

.docs-sidebar svg {
    width: 18px !important;
    height: 18px !important;
}

:root {
    /* Documentation-specific white theme */
    --docs-bg: #ffffff;
    --docs-bg-secondary: #f8fafc;
    --docs-bg-code: #f1f5f9;
    --docs-bg-sidebar: #fafbfc;
    --docs-text: #1e293b;
    --docs-text-secondary: #475569;
    --docs-text-muted: #94a3b8;
    --docs-border: #e2e8f0;
    --docs-accent: #4ecdc4;
    --docs-accent-hover: #3db8b0;
    --docs-orange: #ff6b35;
    --docs-success: #10b981;
    --docs-warning: #f59e0b;
    --docs-error: #ef4444;
    --docs-info: #3b82f6;
    --docs-shadow: 0 1px 3px rgba(0,0,0,0.05);
    --docs-shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --docs-radius: 8px;
    --docs-radius-lg: 12px;
    --sidebar-width: 280px;
    --toc-width: 240px;
    --header-height: 80px;
}

/* Force white theme on docs pages */
html[data-theme] .docs-page,
.docs-page {
    background: var(--docs-bg) !important;
    color: var(--docs-text) !important;
}

/* Base Layout */
.docs-page {
    min-height: 100vh;
    background: var(--docs-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--docs-text);
}

.docs-layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar Navigation */
.docs-sidebar {
    position: sticky;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 32px 24px;
    background: var(--docs-bg-sidebar);
    border-right: 1px solid var(--docs-border);
    flex-shrink: 0;
}

.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--docs-border);
    border-radius: 3px;
}

.docs-sidebar-section {
    margin-bottom: 28px;
}

.docs-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--docs-text-muted);
    margin-bottom: 12px;
    padding-left: 12px;
}

.docs-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.docs-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--docs-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--docs-radius);
    transition: all 0.15s ease;
}

.docs-sidebar-link:hover {
    color: var(--docs-text);
    background: var(--docs-bg);
}

.docs-sidebar-link.active {
    color: var(--docs-accent);
    background: rgba(78, 205, 196, 0.1);
    font-weight: 600;
}

.docs-sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.docs-sidebar-link.active svg {
    opacity: 1;
}

/* Main Content Area */
.docs-main {
    flex: 1;
    min-width: 0;
    padding: 48px 80px;
}

/* Table of Contents (Right Sidebar) */
.docs-toc {
    position: sticky;
    top: var(--header-height);
    width: var(--toc-width);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 32px 24px;
    flex-shrink: 0;
    border-left: 1px solid var(--docs-border);
}

.docs-toc-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--docs-text-muted);
    margin-bottom: 16px;
}

.docs-toc-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-toc-nav li {
    margin-bottom: 8px;
}

.docs-toc-link {
    display: block;
    padding: 4px 0 4px 12px;
    color: var(--docs-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}

.docs-toc-link:hover {
    color: var(--docs-text);
    border-left-color: var(--docs-border);
}

.docs-toc-link.active {
    color: var(--docs-accent);
    border-left-color: var(--docs-accent);
}

.docs-toc-link.level-3 {
    padding-left: 24px;
    font-size: 0.8rem;
}

/* Typography */
.docs-main h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--docs-text);
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.docs-main h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--docs-text);
    margin: 56px 0 24px 0;
    padding-top: 32px;
    border-top: 1px solid var(--docs-border);
    line-height: 1.3;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.docs-main h2:first-of-type {
    margin-top: 40px;
    border-top: none;
    padding-top: 0;
}

.docs-main h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--docs-text);
    margin: 40px 0 18px 0;
    line-height: 1.4;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.docs-main h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--docs-text);
    margin: 28px 0 14px 0;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

/* FAQ Question Styling */
.docs-main h4[id^="faq-"] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--docs-text);
    margin: 32px 0 12px 0;
    padding: 16px 20px;
    background: var(--docs-bg-secondary);
    border-left: 3px solid var(--docs-accent);
    border-radius: 0 var(--docs-radius) var(--docs-radius) 0;
}

.docs-main h4[id^="faq-"] + p {
    padding-left: 20px;
    border-left: 1px solid var(--docs-border);
    margin-left: 1px;
}

.docs-main p {
    margin: 0 0 18px 0;
    color: var(--docs-text-secondary);
    line-height: 1.75;
}

.docs-main a {
    color: var(--docs-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.docs-main a:hover {
    color: var(--docs-accent-hover);
    text-decoration: underline;
}

/* Lead Paragraph */
.docs-lead {
    font-size: 1.25rem;
    color: var(--docs-text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 800px;
}

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

.docs-breadcrumb a {
    color: var(--docs-text-muted);
}

.docs-breadcrumb a:hover {
    color: var(--docs-accent);
}

.docs-breadcrumb span {
    color: var(--docs-text-secondary);
}

/* Code Blocks */
.docs-main pre {
    background: var(--docs-bg-code);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    padding: 24px 28px;
    overflow-x: auto;
    margin: 28px 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
}

.docs-main code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    font-size: 0.9em;
    background: var(--docs-bg-code);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--docs-orange);
}

.docs-main pre code {
    background: none;
    padding: 0;
    color: var(--docs-text);
}

/* Code with language label */
.docs-code-block {
    position: relative;
    margin: 28px 0;
}

.docs-code-label {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 12px;
    background: var(--docs-border);
    border-radius: 0 var(--docs-radius-lg) 0 var(--docs-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--docs-text-muted);
}

.docs-code-block pre {
    margin: 0;
}

/* Lists */
.docs-main ul,
.docs-main ol {
    margin: 0 0 24px 0;
    padding-left: 28px;
    color: var(--docs-text-secondary);
    line-height: 1.75;
}

.docs-main li {
    margin-bottom: 10px;
}

.docs-main li strong {
    color: var(--docs-text);
}

/* Blockquotes */
.docs-main blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--docs-bg-secondary);
    border-left: 4px solid var(--docs-accent);
    border-radius: 0 var(--docs-radius-lg) var(--docs-radius-lg) 0;
    font-style: italic;
    color: var(--docs-text-secondary);
}

.docs-main blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--docs-text-muted);
}

/* Tables */
.docs-table-wrapper {
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
}

.docs-main table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.docs-main th {
    text-align: left;
    padding: 14px 16px;
    background: var(--docs-bg-secondary);
    font-weight: 600;
    color: var(--docs-text);
    border-bottom: 1px solid var(--docs-border);
}

.docs-main td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--docs-border);
    color: var(--docs-text-secondary);
}

.docs-main tr:last-child td {
    border-bottom: none;
}

/* Callouts / Alerts */
.docs-callout {
    padding: 24px 28px;
    border-radius: var(--docs-radius-lg);
    margin: 32px 0;
    border-left: 4px solid;
}

.docs-callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.docs-callout-title svg {
    width: 20px;
    height: 20px;
}

.docs-callout p:last-child {
    margin-bottom: 0;
}

.docs-callout.info {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--docs-info);
}

.docs-callout.info .docs-callout-title {
    color: var(--docs-info);
}

.docs-callout.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--docs-success);
}

.docs-callout.success .docs-callout-title {
    color: var(--docs-success);
}

.docs-callout.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--docs-warning);
}

.docs-callout.warning .docs-callout-title {
    color: var(--docs-warning);
}

.docs-callout.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--docs-error);
}

.docs-callout.error .docs-callout-title {
    color: var(--docs-error);
}

/* Cards Grid */
.docs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 36px 0;
}

.docs-card {
    display: block;
    padding: 28px;
    background: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.docs-card:hover {
    border-color: var(--docs-accent);
    box-shadow: var(--docs-shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

.docs-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--docs-accent), #3db8b0);
    border-radius: var(--docs-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.docs-card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.docs-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--docs-text);
    margin-bottom: 8px;
}

.docs-card-desc {
    font-size: 0.9rem;
    color: var(--docs-text-muted);
    line-height: 1.5;
}

/* Steps */
.docs-steps {
    counter-reset: step;
    margin: 32px 0;
}

.docs-step {
    position: relative;
    padding-left: 48px;
    padding-bottom: 32px;
    border-left: 2px solid var(--docs-border);
    margin-left: 16px;
}

.docs-step:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.docs-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -17px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--docs-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.docs-step-title {
    font-weight: 600;
    color: var(--docs-text);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.docs-step-content {
    color: var(--docs-text-secondary);
}

/* File Tree */
.docs-file-tree {
    background: var(--docs-bg-code);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    padding: 20px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 24px 0;
}

.docs-file-tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-file-tree-item.folder {
    color: var(--docs-accent);
    font-weight: 600;
}

.docs-file-tree-item.file {
    color: var(--docs-text-secondary);
}

/* Search Bar */
.docs-search {
    margin-bottom: 24px;
}

.docs-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    font-size: 0.9rem;
    color: var(--docs-text);
    transition: all 0.2s ease;
}

.docs-search-input:focus {
    outline: none;
    border-color: var(--docs-accent);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.15);
}

.docs-search-wrapper {
    position: relative;
}

.docs-search-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--docs-text-muted);
}

/* Search Results Dropdown */
.docs-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    box-shadow: var(--docs-shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.docs-search-results.active {
    display: block;
}

.docs-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--docs-text);
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--docs-border);
}

.docs-search-result:last-child {
    border-bottom: none;
}

.docs-search-result:hover,
.docs-search-result.active {
    background: var(--docs-bg-secondary);
}

.docs-search-result-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.docs-search-result-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.docs-search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--docs-text-muted);
    font-size: 0.9rem;
}

/* Version Badge */
.docs-version {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(78, 205, 196, 0.1);
    color: var(--docs-accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 12px;
    vertical-align: middle;
}

/* Copy Button */
.docs-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px;
    background: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.docs-code-block:hover .docs-copy-btn {
    opacity: 1;
}

.docs-copy-btn:hover {
    background: var(--docs-bg-secondary);
}

.docs-copy-btn svg {
    width: 16px;
    height: 16px;
    color: var(--docs-text-muted);
}

/* Prev/Next Navigation */
.docs-nav-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--docs-border);
}

.docs-nav-prev,
.docs-nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--docs-bg-secondary);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.docs-nav-next {
    text-align: right;
    align-items: flex-end;
}

.docs-nav-prev:hover,
.docs-nav-next:hover {
    border-color: var(--docs-accent);
    background: var(--docs-bg);
}

.docs-nav-label {
    font-size: 0.8rem;
    color: var(--docs-text-muted);
    margin-bottom: 4px;
}

.docs-nav-title {
    font-weight: 600;
    color: var(--docs-text);
}

/* Hero Section for Landing Page */
.docs-hero {
    text-align: center;
    padding: 64px 20px 48px;
    background: linear-gradient(180deg, var(--docs-bg-secondary) 0%, var(--docs-bg) 100%);
    margin: -48px -80px 48px -80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.docs-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.docs-hero-desc {
    font-size: 1.25rem;
    color: var(--docs-text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    text-align: center;
    width: 100%;
}

.docs-hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.docs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--docs-text-secondary);
}

.docs-hero-badge svg {
    width: 16px;
    height: 16px;
}

/* Quick Links */
.docs-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.docs-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--docs-bg-secondary);
    border-radius: var(--docs-radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.docs-quick-link:hover {
    background: var(--docs-bg);
    box-shadow: var(--docs-shadow);
}

.docs-quick-link svg {
    width: 20px;
    height: 20px;
    color: var(--docs-accent);
}

.docs-quick-link span {
    color: var(--docs-text);
    font-weight: 500;
}

/* Section Anchors */
.docs-anchor {
    color: var(--docs-text-muted);
    text-decoration: none;
    opacity: 0;
    margin-left: 8px;
    transition: opacity 0.2s ease;
}

h2:hover .docs-anchor,
h3:hover .docs-anchor {
    opacity: 1;
}

.docs-anchor:hover {
    color: var(--docs-accent);
}

/* Resources Section */
.docs-resources {
    margin-top: 48px;
    padding: 32px;
    background: var(--docs-bg-secondary);
    border-radius: var(--docs-radius-lg);
    border: 1px solid var(--docs-border);
}

.docs-resources h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.docs-resources ul {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    padding-left: 0;
    list-style: none;
}

.docs-resources li {
    margin-bottom: 0;
}

.docs-resources a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    transition: all 0.2s ease;
    text-decoration: none;
}

.docs-resources a:hover {
    border-color: var(--docs-accent);
    box-shadow: var(--docs-shadow);
    text-decoration: none;
}

.docs-resources a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--docs-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .docs-toc {
        display: none;
    }

    .docs-main {
        padding: 48px 48px;
    }

    .docs-hero {
        margin: -48px -48px 48px -48px;
        padding: 64px 48px 48px;
    }
}

@media (max-width: 900px) {
    .docs-sidebar {
        position: fixed;
        left: -100%;
        z-index: 100;
        width: 280px;
        transition: left 0.3s ease;
        background: var(--docs-bg);
        top: 0;
        height: 100vh;
        padding-top: 100px;
    }

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

    .docs-main {
        padding: 32px 24px;
    }

    .docs-hero {
        margin: -32px -24px 32px -24px;
        padding: 48px 24px;
    }

    .docs-hero h1 {
        font-size: 2rem;
    }

    .docs-main h1 {
        font-size: 2rem;
    }

    .docs-main h2 {
        font-size: 1.5rem;
        margin: 40px 0 20px 0;
        padding-top: 24px;
    }

    .docs-main h3 {
        font-size: 1.2rem;
        margin: 32px 0 14px 0;
    }

    .docs-nav-footer {
        flex-direction: column;
    }

    .docs-quick-links {
        grid-template-columns: 1fr;
    }

    .docs-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .docs-table-wrapper {
        margin: 20px -12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .docs-resources ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 110px;
    }

    .docs-main {
        padding: 24px 16px;
    }

    .docs-hero {
        margin: -24px -16px 24px -16px;
        padding: 32px 16px;
    }

    .docs-hero h1 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .docs-hero-desc {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .docs-hero-badges {
        gap: 8px;
    }

    .docs-hero-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .docs-main h1 {
        font-size: 1.65rem;
    }

    .docs-main h2 {
        font-size: 1.3rem;
        margin: 32px 0 16px 0;
        padding-top: 20px;
    }

    .docs-main h3 {
        font-size: 1.1rem;
        margin: 24px 0 12px 0;
    }

    .docs-lead {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }

    .docs-main p {
        font-size: 0.95rem;
    }

    .docs-main pre {
        padding: 16px;
        font-size: 0.8rem;
        margin: 20px -8px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .docs-code-block {
        margin: 20px -8px;
    }

    .docs-code-label {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .docs-main code {
        font-size: 0.8em;
        padding: 1px 4px;
    }

    .docs-callout {
        padding: 16px;
        margin: 24px 0;
    }

    .docs-callout-title {
        font-size: 0.9rem;
    }

    .docs-table-wrapper {
        margin: 16px -16px;
    }

    .docs-main th,
    .docs-main td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .docs-file-tree {
        padding: 14px 16px;
        font-size: 0.75rem;
        margin: 16px 0;
    }

    .docs-card {
        padding: 20px;
    }

    .docs-card-title {
        font-size: 1rem;
    }

    .docs-card-desc {
        font-size: 0.85rem;
    }

    .docs-resources {
        padding: 20px;
        margin-top: 32px;
    }

    .docs-resources h2 {
        font-size: 1.25rem;
    }

    .docs-resources a {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .docs-nav-footer {
        margin-top: 48px;
        padding-top: 28px;
    }

    .docs-nav-prev,
    .docs-nav-next {
        padding: 16px;
    }

    .docs-nav-title {
        font-size: 0.9rem;
    }

    .docs-breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }

    .docs-quick-link {
        padding: 12px;
    }

    .docs-quick-link span {
        font-size: 0.9rem;
    }

    /* Blockquote styling for mobile */
    .docs-main blockquote {
        margin: 20px 0;
        padding: 16px;
        font-size: 0.9rem;
    }

    /* FAQ styling for mobile */
    .docs-main h4[id^="faq-"] {
        font-size: 0.95rem;
        padding: 12px 14px;
        margin: 24px 0 10px 0;
    }

    .docs-main h4[id^="faq-"] + p {
        padding-left: 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .docs-main {
        padding: 20px 12px;
    }

    .docs-hero {
        margin: -20px -12px 20px -12px;
        padding: 24px 12px;
    }

    .docs-hero h1 {
        font-size: 1.4rem;
    }

    .docs-main h1 {
        font-size: 1.4rem;
    }

    .docs-main h2 {
        font-size: 1.2rem;
    }

    .docs-hero-badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .docs-table-wrapper {
        margin: 14px -12px;
    }

    .docs-main th,
    .docs-main td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* FAQ styling for very small screens */
    .docs-main h4[id^="faq-"] {
        font-size: 0.9rem;
        padding: 10px 12px;
        margin: 20px 0 8px 0;
    }

    .docs-main h4[id^="faq-"] + p {
        padding-left: 12px;
        font-size: 0.85rem;
    }
}

/* Mobile Menu Toggle */
.docs-mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--docs-accent);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: var(--docs-shadow-lg);
    z-index: 101;
}

.docs-mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 900px) {
    .docs-mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .docs-mobile-menu-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .docs-mobile-menu-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Overlay */
.docs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
}

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

/* Print Styles */
@media print {
    .docs-sidebar,
    .docs-toc,
    .docs-mobile-menu-btn,
    .docs-copy-btn {
        display: none !important;
    }

    .docs-main {
        max-width: 100%;
        padding: 0;
    }
}

/* Syntax Highlighting (Basic) */
.token-keyword { color: #7c3aed; }
.token-string { color: #059669; }
.token-number { color: #dc2626; }
.token-comment { color: #6b7280; font-style: italic; }
.token-function { color: #2563eb; }
.token-class { color: #d97706; }
