/* ============================================
   Golfinity Docs - Dark Theme
   Standalone (no Bootstrap dependency)
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

/* --- CSS Custom Properties (matched from original Tailwind theme) --- */
:root {
    /* Primary Green */
    --docs-primary-50: #f0fdf4;
    --docs-primary-100: #dcfce7;
    --docs-primary-200: #bbf7d0;
    --docs-primary-300: #86efac;
    --docs-primary-400: #4ade80;
    --docs-primary-500: #22c55e;
    --docs-primary-600: #16a34a;
    --docs-primary-700: #15803d;

    /* Dark Theme */
    --docs-bg: #000000;
    --docs-bg-secondary: #0a0f1a;
    --docs-surface: #111827;
    --docs-surface-50: rgba(17, 24, 39, 0.5);
    --docs-border: #1f2937;
    --docs-border-light: rgba(31, 41, 55, 0.5);
    --docs-text: #d1d5db;
    --docs-text-white: #ffffff;
    --docs-text-light: #e5e7eb;
    --docs-muted: #9ca3af;
    --docs-muted-dark: #6b7280;
    --docs-dark-500: #4b5563;
    --docs-dark-600: #374151;

    /* Accents */
    --docs-accent: #4ade80;
    --docs-accent-hover: #86efac;
    --docs-accent-green: #22c55e;
    --docs-accent-yellow: #eab308;
    --docs-accent-orange: #f97316;
    --docs-accent-blue: #3b82f6;

    /* Layout */
    --docs-sidebar-width: 288px;
    --docs-header-height: 64px;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--docs-header-height) + 1rem);
}

body {
    background-color: var(--docs-bg);
    color: var(--docs-text-light);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    min-height: 100vh;
    font-weight: 300;
}

a {
    color: var(--docs-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--docs-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--docs-text-white);
    font-weight: 600;
}

hr {
    border-color: var(--docs-border);
    opacity: 1;
}

code {
    color: var(--docs-accent);
    background-color: var(--docs-surface);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--docs-bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--docs-dark-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--docs-dark-500); }

/* --- Header (h-16, bg-dark-950/80, backdrop-blur, border-b border-dark-800) --- */
.docs-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: var(--docs-header-height);
    background-color: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--docs-surface);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.docs-header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-right: 2rem;
}

.docs-header-logo img {
    height: 20px;
}

.docs-header-logo .logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--docs-text-white);
}

.docs-header-logo .logo-accent {
    color: var(--docs-accent-green);
    font-weight: 400;
}

.docs-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.docs-header-nav a {
    color: var(--docs-muted);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.docs-header-nav a:hover {
    color: var(--docs-text-white);
}

.docs-header-nav a.active {
    color: #05df72;
}

.docs-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.docs-search-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.5rem;
    background: var(--docs-surface);
    color: var(--docs-muted-dark);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.docs-search-trigger:hover {
    border-color: var(--docs-dark-500);
}

.docs-search-trigger kbd {
    background-color: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: 0.25rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.75rem;
    font-family: inherit;
}

.docs-external-link {
    color: var(--docs-muted);
    font-size: 0.875rem;
}

.docs-external-link:hover {
    color: var(--docs-text-white);
}

/* --- Sidebar (w-72, bg-dark-900, border-r border-dark-700) --- */
.docs-page-layout {
    display: flex;
    min-height: calc(100vh - var(--docs-header-height));
}

.docs-sidebar {
    position: sticky;
    top: var(--docs-header-height);
    align-self: flex-start;
    width: var(--docs-sidebar-width);
    min-width: var(--docs-sidebar-width);
    max-height: calc(100vh - var(--docs-header-height));
    background-color: #080d14;
    border-right: 1px solid var(--docs-border);
    overflow-y: auto;
    padding-top: 0;
    z-index: 20;
    flex-shrink: 0;
    min-height: 95vh;
}

.docs-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    height: 3rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--docs-text-white);
}

.docs-sidebar-title img {
    height: 20px;
}

.docs-sidebar-nav {
    padding: 1rem 0;
}

.docs-nav-section {
    margin-bottom: 0.25rem;
}

.docs-nav-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--docs-text-white);
    text-decoration: none;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    transition: background-color 0.15s;
}

.docs-nav-section-header:hover {
    color: var(--docs-text-white);
    background-color: var(--docs-surface);
}

.docs-nav-section-header.active {
    color: var(--docs-accent);
    background-color: rgba(34, 197, 94, 0.1);
}

.docs-nav-section-icon {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.docs-nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-item a {
    display: block;
    padding: 0.3rem 1.5rem 0.3rem 3.75rem;
    font-size: 0.8125rem;
    color: var(--docs-muted);
    transition: color 0.15s, background-color 0.15s;
}

.docs-nav-item a:hover {
    color: var(--docs-text-white);
    background-color: var(--docs-surface);
}

.docs-nav-item a.active {
    color: var(--docs-accent);
    font-weight: 500;
}

/* --- Layout --- */
.docs-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Container system - max-width with auto margins, content fills available width */
.docs-container {
    width: 100%;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.docs-container-wide {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.docs-container-narrow {
    width: 100%;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.docs-container-full {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Block wrapper: outer has colors, inner has container */
.docs-block-outer {
    width: 100%;
}

.docs-block-bg {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.docs-content {
    flex: 1;
    max-width: 56rem;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.docs-content-fullwidth {
    flex: 1;
    width: 100%;
    padding: 0;
}

/* --- Breadcrumb --- */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--docs-muted);
}

.docs-breadcrumb a { color: var(--docs-muted); }
.docs-breadcrumb a:hover { color: var(--docs-accent); }
.docs-breadcrumb-separator { color: var(--docs-dark-500); }

/* --- Page Header --- */
.docs-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--docs-text-white);
}

.docs-page-subtitle {
    font-size: 1.125rem;
    color: #99a1af;
    margin-bottom: 2rem;
    line-height: 1.75;
    font-weight: 300;
}

.docs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--docs-accent);
    margin-bottom: 1rem;
}

/* --- Callout Blocks (rounded border, semi-transparent background) --- */
.docs-callout {
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.docs-callout-title {
    font-weight: 500;
    font-size: 0.9375rem;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.docs-callout-content {
    font-size: 0.875rem;
    color: var(--docs-text);
    line-height: 1.6;
    font-weight: 200;
}

.docs-callout-content p:last-child { margin-bottom: 0; }
.docs-callout-content ul, .docs-callout-content ol { padding-left: 1.25rem; margin-left: 0; }

/* Neutral */
.docs-callout-neutral {
    border-color: #364152;
    background: #0f141c;
    color: #ffffff;
}

.docs-callout-neutral .docs-callout-title { color: #ffffff; }
.docs-callout-neutral .docs-callout-content { color: #9ba2ae; }

/* Information = Blue */
.docs-callout-information {
    border-color: #1a4898;
    background: #09122b;
    color: #bedbff;
}

.docs-callout-information .docs-callout-title { color: #bedbff; }
.docs-callout-information .docs-callout-content { color: #bedbff; }

.docs-callout-tips {
    border-color: #00712f;
    background: #061a0d;
    color: #b9f8cf;
}

.docs-callout-tips .docs-callout-title {
    color: #b9f8cf;
}

.docs-callout-tips .docs-callout-content {
    color: #b9f8cf;
}

.docs-callout-viktigt {
    border-color: #896100;
    background: #221205;
}

.docs-callout-viktigt .docs-callout-title { color: #fef085; }
.docs-callout-viktigt .docs-callout-content { color: #fef085; }

/* --- Cards (bg-dark-800/50, border-dark-700, hover:border-primary-500/50) --- */
.docs-card {
    background-color: var(--docs-surface-50);
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.docs-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background-color: var(--docs-surface);
}

.docs-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.docs-card-link:hover { color: inherit; }

.docs-card-link:hover .docs-card-title {
    color: var(--docs-accent);
}

.docs-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background-color: rgba(34, 197, 94, 0.15);
    color: #fff;
}

.docs-feature-header {
    text-align: center;
}

.docs-feature-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

/* Small icon inline with title */
.docs-feature-card-header-inline {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.docs-feature-card-icon-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.docs-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--docs-text-white);
    margin-bottom: 0.375rem;
    transition: color 0.15s;
}

.docs-card-description {
    font-size: 0.875rem;
    color: var(--docs-muted);
    margin: 0;
}

/* --- Child Page Cards --- */
.docs-child-cards {
    display: grid;
    gap: 0.75rem;
}

.docs-child-cards.cols-1 { grid-template-columns: 1fr; }
.docs-child-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.docs-child-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }

.docs-child-card {
    background-color: var(--docs-surface-50);
    border: 1px solid var(--docs-border);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: border-color 0.2s, background-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.docs-child-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background-color: var(--docs-surface);
    color: inherit;
}

.docs-child-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--docs-text-white);
    margin-bottom: 0.25rem;
    transition: color 0.15s;
}

.docs-child-card:hover .docs-child-card-title { color: var(--docs-accent); }

.docs-child-card-summary {
    font-size: 0.75rem;
    color: var(--docs-muted-dark);
    margin: 0.25rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.docs-child-card-arrow {
    color: var(--docs-muted);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
    margin-top: 0.125rem;
}

/* --- Hero Block --- */
.docs-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.docs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 9999px;
    color: var(--docs-accent-green);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.docs-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--docs-text-white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.docs-hero-title .highlight { color: var(--docs-accent-green); }

.docs-hero-subtitle {
    font-size: 1.125rem;
    color: var(--docs-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.docs-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Highlight button: green gradient + glow */
.docs-btn-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--docs-primary-500), var(--docs-primary-700));
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 0 40px rgba(34, 197, 94, 0.1);
    transition: box-shadow 0.2s, transform 0.15s;
}

.docs-btn-highlight:hover {
    color: #fff;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.45), 0 0 50px rgba(34, 197, 94, 0.15);
    transform: translateY(-1px);
}

/* Simple button: outline border */
.docs-btn-simple {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--docs-text);
    border: 1px solid var(--docs-dark-500);
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.docs-btn-simple:hover {
    border-color: var(--docs-text);
    color: var(--docs-text-white);
}


/* --- Stats Row --- */
.docs-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 3rem 3rem;
}

.docs-stat {
    flex: 1;
    text-align: center;
    padding: 1.75rem 2rem;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background-color: transparent;
}

.docs-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--docs-accent-green);
}

.docs-stat-label {
    font-size: 0.875rem;
    color: var(--docs-muted);
    margin-top: 0.25rem;
}

/* --- Documentation Cards Grid --- */
.docs-docgrid {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.docs-docgrid-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--docs-text-white);
}

.docs-docgrid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* --- Property List --- */
.docs-property-section { margin: 1.5rem 0; }

.docs-property-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--docs-text-white);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--docs-border);
    margin-bottom: 0;
}

.docs-property-item {
    padding: 0.25rem 0 0.25rem 0.75rem;
    border-left: 2px solid #364152;
    margin-top: 0.75rem;
}

.docs-property-name {
    font-weight: 600;
    color: var(--docs-text-white);
    font-size: 0.9375rem;
    margin-right: 0.5rem;
}

.docs-property-badge {
    font-size: 0.8125rem;
    font-weight: 400;
    font-style: italic;
    padding: 0;
}

.docs-property-badge-optional {
    background: none;
    color: var(--docs-muted);
}

.docs-property-badge-required {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--docs-accent);
}

.docs-property-description {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--docs-muted);
    line-height: 1.6;
}

.docs-property-description p:last-child { margin-bottom: 0; }

/* --- Feature Cards Grid --- */
.docs-feature-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.docs-feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.docs-feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.docs-feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.docs-feature-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.docs-feature-card {
    background-color: var(--docs-surface-50);
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

a.docs-feature-card:hover {
    border-color: var(--docs-primary-500);
    background-color: var(--docs-surface);
    transform: translateY(-2px);
}

a.docs-feature-card:hover .docs-feature-card-title {
    color: var(--docs-accent);
}

.docs-feature-card-title { font-size: 0.9375rem; font-weight: 600; color: var(--docs-text-white); margin-bottom: 0.25rem; transition: color 0.15s; }
.docs-feature-card-desc { font-size: 0.8125rem; color: var(--docs-muted); margin: 0; }

/* --- Numbered Steps (green circle badges) --- */
.docs-numbered-steps { margin: 1.5rem 0; }

.docs-numbered-step {
    display: flex;
    gap: 1rem;
    padding: 0.375rem 0;
    align-items: flex-start;
}

.docs-step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--docs-primary-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.docs-step-content { flex: 1; }
.docs-step-title { font-weight: 500; color: var(--docs-text-white); margin-bottom: 0.25rem; }
.docs-step-description { font-size: 0.875rem; color: var(--docs-muted); }
.docs-step-description p:last-child { margin-bottom: 0; }

/* --- Step Cards --- */
.docs-step-card {
    background-color: var(--docs-surface-50);
    border: 1px solid var(--docs-border);
    border-left: 4px solid var(--docs-accent-green);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 0.75rem 0;
}

.docs-step-card-header { font-weight: 700; font-size: 1.0625rem; color: var(--docs-text-white); margin-bottom: 0.75rem; }
.docs-step-card-content { font-size: 0.875rem; color: var(--docs-text); }
.docs-step-card-content p:last-child { margin-bottom: 0; }

/* --- Comparison Cards --- */
.docs-comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }

.docs-comparison-card {
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    background-color: var(--docs-surface-50);
    padding: 1.5rem;
}

.docs-comparison-card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

.docs-comparison-card-desc {
    font-size: 0.875rem;
    color: var(--docs-muted);
    margin-bottom: 1rem;
}

.docs-comparison-steps {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.docs-comparison-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.docs-comparison-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--docs-accent-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.docs-comparison-step-text {
    font-size: 0.9375rem;
    color: var(--docs-text-white);
}

.docs-comparison-proscons {
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: var(--docs-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.docs-comparison-proscons p {
    margin-bottom: 0.25rem;
}

.docs-comparison-proscons p:last-child {
    margin-bottom: 0;
}

/* --- Settings Display --- */
.docs-settings-card {
    background-color: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 0.75rem 0;
}

.docs-settings-title { font-weight: 700; font-size: 1rem; color: var(--docs-text-white); margin-bottom: 0.75rem; }

.docs-setting-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.docs-setting-label { color: var(--docs-text); }
.docs-setting-value { color: var(--docs-muted); text-align: right; }

/* --- Data Table --- */
.docs-rte-content table,
.docs-data-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.docs-rte-content table th,
.docs-data-table table th {
    background-color: transparent;
    color: var(--docs-muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--docs-border);
}

.docs-rte-content table td,
.docs-data-table table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--docs-border-light);
    color: var(--docs-text);
}

/* --- Icon Text Intro --- */
.docs-icon-text-intro {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.docs-icon-text-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.docs-icon-text-content { flex: 1; font-size: 0.9375rem; color: var(--docs-text); }
.docs-icon-text-content p:last-child { margin-bottom: 0; }

.docs-section-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #15c652, #0c9c65);
}

/* --- Popular Pages Showcase --- */
.docs-popular {
    text-align: center;
    padding: 3rem 2rem;
}

.docs-popular-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--docs-text-white);
    margin-bottom: 0.5rem;
}

.docs-popular-description {
    color: var(--docs-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
}

.docs-popular-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.docs-popular-pill {
    display: inline-block;
    padding: 0.5rem 1.125rem;
    background-color: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 9999px;
    color: var(--docs-text);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.docs-popular-pill:hover {
    border-color: var(--docs-dark-500);
    color: var(--docs-text-white);
    background-color: var(--docs-surface-50);
}

.docs-popular-cta {
    margin-top: 0.5rem;
}

.docs-popular-link {
    color: var(--docs-accent-green);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.15s;
}

.docs-popular-link:hover {
    color: var(--docs-accent-hover);
}

.docs-popular-link i {
    font-size: 0.875rem;
}

/* --- Placeholders --- */
.docs-placeholders {
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background-color: #0f141c;
    border: 1px solid #364152;
}

.docs-placeholders-grid {
    display: grid;
    gap: 2rem;
}

.docs-placeholders-grid.cols-1 { grid-template-columns: 1fr; }
.docs-placeholders-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.docs-placeholders-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.docs-placeholders-section {
    margin-bottom: 1.25rem;
}

.docs-placeholders-section:last-child {
    margin-bottom: 0;
}

.docs-placeholders-header {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.docs-placeholders-prop {
    font-size: 0.8125rem;
    line-height: 1.7;
}

.docs-placeholders-value {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 500;
    color: var(--docs-accent-green);
}

.docs-placeholders-desc {
    font-weight: 400;
    color: #818895;
}

@media (max-width: 767.98px) {
    .docs-placeholders-grid.cols-2,
    .docs-placeholders-grid.cols-3 { grid-template-columns: 1fr; }
}

/* --- Code Reference --- */
.docs-code-block {
    background-color: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--docs-accent);
    white-space: pre-wrap;
    overflow-x: auto;
}

/* --- Section Heading (matches .doc-content h2) --- */
.docs-section-heading {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--docs-border);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-section-heading h2 { font-size: 1.5rem; margin: 0; }
.docs-section-heading h3 { font-size: 1.25rem; margin: 0; }

/* --- Vimeo Video --- */
.docs-video-container {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--docs-border);
    margin: 1.5rem 0;
}

.docs-video-container.aspect-16-9 { padding-bottom: 56.25%; }
.docs-video-container.aspect-4-3 { padding-bottom: 75%; }
.docs-video-container.aspect-1-1 { padding-bottom: 100%; }

.docs-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.docs-video-caption {
    font-size: 0.8125rem;
    color: var(--docs-muted);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* --- Rich Text Content (matches .doc-content) --- */
.docs-rte-content {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--docs-text);
}

.docs-rte-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--docs-border); }
.docs-rte-content h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.docs-rte-content ul, .docs-rte-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.docs-rte-content ol { list-style-type: decimal; }
.docs-rte-content ul { list-style-type: disc; }
.docs-rte-content p { margin-bottom: 1rem; }
.docs-rte-content li p  { margin-bottom: 0; }
.docs-rte-content strong { color: var(--docs-text-white); }
.docs-rte-content img { max-width: 100%; border-radius: 0.5rem; margin: 1rem 0; }
.docs-rte-content a { color: var(--docs-accent); text-decoration: underline; }
.docs-rte-content a:hover { color: var(--docs-accent-hover); }

/* --- RTE Button Block --- */
.docs-rte-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.875rem;
    background-color: var(--docs-accent);
    transition: opacity 0.2s, transform 0.2s;
}

.docs-rte-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- Footer --- */
.docs-footer {
    background-color: #111828;
    border-top: 1px solid var(--docs-border);
    padding: 3rem 2.5rem 2rem;
    width: 100%;
    position: relative;
    z-index: 25;
}

.docs-footer-content { max-width: 1100px; margin: 0 auto; }

.docs-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 767.98px) {
    .docs-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.docs-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.docs-footer-logo img { height: 20px; }
.docs-footer-logo .logo-text { font-weight: 700; color: var(--docs-text-white); }
.docs-footer-logo .logo-accent { color: var(--docs-accent-green); font-weight: 400; }
.docs-footer-desc { font-size: 0.8125rem; color: var(--docs-muted); max-width: 260px; }
.docs-footer-col-title { font-size: 0.875rem; font-weight: 600; color: var(--docs-text-white); margin-bottom: 0.75rem; }
.docs-footer-links { list-style: none; padding: 0; margin: 0; }
.docs-footer-links li { margin-bottom: 0.375rem; }
.docs-footer-links a { font-size: 0.8125rem; color: var(--docs-muted); }
.docs-footer-links a:hover { color: var(--docs-text-white); }

.docs-footer-copyright {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--docs-muted);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--docs-border);
}

/* --- Search Modal --- */
.docs-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: flex-start;
    padding-top: 12vh;
}

.docs-search-modal.open { display: flex; }

.docs-search-dialog {
    background-color: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    width: 100%;
    max-width: 640px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.docs-search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--docs-border);
    gap: 0.75rem;
    color: var(--docs-muted);
    font-size: 1.1rem;
}

.docs-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--docs-text-white);
    font-size: 1rem;
    outline: none;
}

.docs-search-input::placeholder { color: var(--docs-muted-dark); }

.docs-search-clear {
    background: transparent;
    border: none;
    color: var(--docs-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}

.docs-search-clear:hover { color: var(--docs-text-white); }

.docs-search-results {
    overflow-y: auto;
    padding: 0.5rem;
    flex: 1;
}

/* Empty state */
.search-empty {
    padding: 2.5rem 1rem;
    text-align: center;
}

.search-empty-title {
    color: var(--docs-muted);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.search-empty-sub {
    color: var(--docs-muted-dark);
    font-size: 0.875rem;
}

/* Result items */
.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--docs-text);
    text-decoration: none;
    transition: background-color 0.1s;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.selected {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--docs-text-white);
}

.search-result-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--docs-border);
    color: var(--docs-muted);
    font-size: 1rem;
}

.search-result-item:hover .search-result-icon,
.search-result-item.selected .search-result-icon {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--docs-accent);
}

.search-result-body { flex: 1; min-width: 0; }

.search-result-title {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--docs-text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--docs-accent);
    white-space: nowrap;
}

.search-result-summary {
    font-size: 0.8125rem;
    color: var(--docs-muted);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.docs-search-footer {
    display: flex;
    gap: 1.25rem;
    padding: 0.625rem 1.25rem;
    border-top: 1px solid var(--docs-border);
    font-size: 0.75rem;
    color: var(--docs-muted-dark);
}

.docs-search-footer kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    background-color: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--docs-muted);
    margin-right: 0.25rem;
}

/* --- Table of Contents --- */
.docs-toc {
    position: sticky;
    top: calc(var(--docs-header-height) + 2rem);
    padding: 0 1rem;
    font-size: 0.8125rem;
}

.docs-toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--docs-muted);
    margin-bottom: 0.75rem;
}

.docs-toc-list { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--docs-border); }

.docs-toc-list a {
    display: block;
    padding: 0.25rem 0 0.25rem 0.75rem;
    color: var(--docs-muted);
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.docs-toc-list a:hover,
.docs-toc-list a.active {
    color: var(--docs-accent);
    border-left-color: var(--docs-accent);
}

/* Block-level color overrides (inline styles from Umbraco properties) */
.docs-block-wrapper {
    border-radius: 0.5rem;
    padding: 0;
}
.docs-block-wrapper[style*="background-color"] {
    padding: 1.5rem;
}

/* --- Mobile full-screen navigation (hidden on desktop) --- */
.docs-mobile-nav {
    display: none;
}

.docs-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--docs-header-height);
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--docs-border);
    flex-shrink: 0;
}

.docs-mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--docs-text-white);
    font-weight: 600;
    font-size: 1rem;
}

.docs-mobile-nav-logo img {
    height: 24px;
}

.docs-mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: 1px solid var(--docs-border);
    color: var(--docs-muted);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.15s;
}

.docs-mobile-nav-close:hover {
    background: var(--docs-surface);
    color: var(--docs-text-white);
}

/* Level panels */
.docs-mobile-nav-level {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

.docs-mobile-nav-level2 {
    display: none;
}

/* Level 1: Section buttons */
.docs-mobile-nav-section {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--docs-border-light);
    color: var(--docs-text-white);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s;
}

.docs-mobile-nav-section:hover,
.docs-mobile-nav-section:active {
    background-color: var(--docs-surface);
}

.docs-mobile-nav-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--docs-surface);
    font-size: 0.875rem;
    color: var(--docs-accent-green);
    flex-shrink: 0;
}

.docs-mobile-nav-section-name {
    flex: 1;
}

.docs-mobile-nav-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--docs-accent-green);
    flex-shrink: 0;
}

.docs-mobile-nav-chevron {
    color: var(--docs-muted-dark);
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Level 2: Back button + section title + items */
.docs-mobile-nav-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--docs-border-light);
    color: var(--docs-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.15s;
}

.docs-mobile-nav-back:hover {
    color: var(--docs-text-white);
}

.docs-mobile-nav-section-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--docs-text-white);
    text-decoration: none;
    border-bottom: 1px solid var(--docs-border);
}

.docs-mobile-nav-section-title .docs-mobile-nav-section-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
}

.docs-mobile-nav-items {
    padding: 0.375rem 0;
}

.docs-mobile-nav-item {
    display: block;
    padding: 0.75rem 1.25rem 0.75rem 4.375rem;
    font-size: 0.9375rem;
    color: var(--docs-muted);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.docs-mobile-nav-item:hover,
.docs-mobile-nav-item:active {
    color: var(--docs-text-white);
    background-color: var(--docs-surface);
}

.docs-mobile-nav-item.active {
    color: var(--docs-accent-green);
    border-left-color: var(--docs-accent-green);
}

.docs-mobile-nav-item-overview {
    color: var(--docs-text-white);
    font-weight: 500;
    border-bottom: 1px solid var(--docs-border-light);
    padding-bottom: 0.875rem;
    margin-bottom: 0.25rem;
}

/* --- Responsive --- */
@media (max-width: 1023.98px) {
    /* Hide desktop sidebar on mobile */
    .docs-sidebar {
        display: none;
    }

    .docs-page-layout { display: block; }

    /* Show mobile nav when open */
    .docs-mobile-nav.show {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 50;
        background-color: var(--docs-bg);
        animation: mobileNavIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes mobileNavIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hide unused overlay (mobile nav is full-screen now) */
    .docs-sidebar-overlay { display: none !important; }

    /* Other responsive adjustments */
    .docs-hero-title { font-size: 2rem; }
    .docs-stats { flex-wrap: wrap; }
    .docs-comparison { grid-template-columns: 1fr; }
    .docs-child-cards.cols-2, .docs-child-cards.cols-3 { grid-template-columns: 1fr; }
    .docs-docgrid-cards { grid-template-columns: 1fr; }
    .docs-feature-grid.cols-3, .docs-feature-grid.cols-4, .docs-feature-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }

    /* Declutter header on tablet */
    .docs-header {
        padding: 0 1rem;
    }

    .docs-header-logo {
        margin-right: 0.75rem;
    }

    .docs-search-trigger span,
    .docs-search-trigger kbd {
        display: none;
    }

    .docs-search-trigger {
        padding: 0.5rem;
        min-width: 2.25rem;
        justify-content: center;
    }

    .docs-header-right {
        gap: 0.75rem;
    }

    .docs-external-link {
        font-size: 0.8125rem;
    }
}

@media (max-width: 575.98px) {
    .docs-content { padding: 1rem; }
    .docs-feature-grid.cols-2, .docs-feature-grid.cols-3, .docs-feature-grid.cols-4, .docs-feature-grid.cols-5 { grid-template-columns: 1fr; }
    .docs-header-nav { display: none; }

    /* Further declutter header on mobile */
    .docs-header {
        padding: 0 0.75rem;
    }

    .docs-external-link {
        display: none;
    }

    .docs-header-logo img {
        height: 14px;
    }

    .docs-header-logo .logo-text {
        font-size: 0.95rem;
    }
}

/* Mobile menu toggle */
.docs-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--docs-text-white);
    font-size: 1.25rem;
    padding: 0.25rem;
    cursor: pointer;
    margin-right: 0.75rem;
}

@media (max-width: 1023.98px) {
    .docs-menu-toggle { display: flex; align-items: center; }
}

/* --- Image Block --- */
.docs-image-block {
    margin: 0;
    padding: 0;
}

.docs-image-block img {
    max-width: 100%;
    border-radius: 0.5rem;
    display: block;
}

.docs-image-caption {
    font-size: 0.8125rem;
    color: var(--docs-muted);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* --- Page Image / Video (DocsBlockPage) --- */
.docs-page-image,
.docs-page-video {
    margin-bottom: 1.5rem;
}

.docs-page-image img {
    max-width: 100%;
    border-radius: 0.5rem;
    display: block;
}

/* Block List container reset */
.umb-block-list {}
