/* ==========================================================================
   Teleton Documentation - CSS Styles
   Style: Clean, modern, inspired by teletonagent.dev
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Light Mode */
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;
    --color-text-muted: #94a3b8;

    /* Brand Colors */
    --color-primary: #0098EA;
    --color-primary-hover: #0088d4;
    --color-primary-light: rgba(0, 152, 234, 0.1);

    --color-success: #00C896;
    --color-success-light: rgba(0, 200, 150, 0.1);

    --color-warning: #FFB800;
    --color-warning-light: rgba(255, 184, 0, 0.1);

    --color-error: #ef4444;
    --color-error-light: rgba(239, 68, 68, 0.1);

    /* Feature Card Colors */
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-green: #10b981;
    --color-orange: #f97316;
    --color-pink: #ec4899;

    /* Code */
    --color-code-bg: #1e293b;
    --color-code-text: #e2e8f0;
    --color-code-header: #334155;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --header-height: 64px;
    --sidebar-width: 280px;
    --toc-width: 220px;
    --content-max-width: 800px;

    /* Typography */
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #111118;
    --color-bg-tertiary: #1a1a24;
    --color-surface: #16161f;
    --color-border: #2a2a3a;
    --color-border-light: #1f1f2e;

    --color-text: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;
    --color-text-muted: #64748b;

    --color-primary-light: rgba(0, 152, 234, 0.15);
    --color-success-light: rgba(0, 200, 150, 0.15);
    --color-warning-light: rgba(255, 184, 0, 0.15);
    --color-error-light: rgba(239, 68, 68, 0.15);

    --color-code-bg: #0d1117;
    --color-code-text: #e6edf3;
    --color-code-header: #161b22;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Base Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .header {
    background: rgba(10, 10, 15, 0.9);
}

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

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--color-bg-tertiary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 18px;
}

.logo svg {
    color: var(--color-primary);
}

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

/* Search Button */
.search-wrapper {
    display: flex;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
}

.search-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
}

.search-btn kbd {
    display: inline-flex;
    padding: 2px 6px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
}

.search-hint {
    color: var(--color-text-muted);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
}

.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* GitHub Link */
.github-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.github-link:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Search Modal
   -------------------------------------------------------------------------- */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 24px 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.search-input-wrapper svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    color: var(--color-text);
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--color-text-muted);
}

.search-input-wrapper kbd {
    padding: 4px 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.search-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.search-result {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition-fast);
}

.search-result:hover {
    background: var(--color-bg-tertiary);
}

.search-result-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-excerpt {
    font-size: 14px;
    color: var(--color-text-tertiary);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.layout {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: var(--header-height);
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.overlay.active {
    display: block;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    padding: 24px;
    overflow-y: auto;
    border-right: 1px solid var(--color-border);
    background: var(--color-bg);
    z-index: 95;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--color-bg-tertiary);
}

.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */
.main {
    flex: 1;
    display: flex;
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
}

.content {
    flex: 1;
    max-width: var(--content-max-width);
    padding: 48px 64px;
}

/* --------------------------------------------------------------------------
   Table of Contents
   -------------------------------------------------------------------------- */
.toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    width: var(--toc-width);
    max-height: calc(100vh - var(--header-height) - 48px);
    padding: 24px;
    overflow-y: auto;
    flex-shrink: 0;
}

.toc-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    font-size: 13px;
    color: var(--color-text-tertiary);
    text-decoration: none;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
    transition: all var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

.hero-badge {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.badge {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    background: var(--color-bg-tertiary);
    border-radius: 9999px;
    color: var(--color-text-secondary);
}

.badge-blue {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-description strong {
    color: var(--color-primary);
    font-weight: 600;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    margin-bottom: 48px;
}

.section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Code Blocks
   -------------------------------------------------------------------------- */
.code-block {
    margin: 16px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-code-bg);
    border: 1px solid var(--color-border);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--color-code-header);
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: all var(--transition-fast);
}

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

.copy-btn.copied {
    background: var(--color-success);
    color: #fff;
}

.copy-btn.copied span {
    display: none;
}

.copy-btn.copied::after {
    content: 'Copied!';
}

.code-block pre {
    margin: 0;
    padding: 16px 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-code-text);
}

/* Inline code */
code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}

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

.feature-card {
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    margin-bottom: 16px;
}

.feature-icon.icon-blue { background: rgba(59, 130, 246, 0.1); color: var(--color-blue); }
.feature-icon.icon-purple { background: rgba(139, 92, 246, 0.1); color: var(--color-purple); }
.feature-icon.icon-green { background: rgba(16, 185, 129, 0.1); color: var(--color-green); }
.feature-icon.icon-orange { background: rgba(249, 115, 22, 0.1); color: var(--color-orange); }
.feature-icon.icon-pink { background: rgba(236, 72, 153, 0.1); color: var(--color-pink); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin: 0;
    line-height: 1.6;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: var(--color-bg-secondary);
}

th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

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

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

tbody tr:hover {
    background: var(--color-bg-secondary);
}

/* --------------------------------------------------------------------------
   Callouts
   -------------------------------------------------------------------------- */
.callout {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    border: 1px solid;
}

.callout-info,
.callout-warning,
.callout-error,
.callout-note {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

.callout-icon {
    color: var(--color-text-tertiary);
}

.callout .callout-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-text-tertiary);
}

.callout-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text);
}

.callout-content p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Diagrams
   -------------------------------------------------------------------------- */
.diagram {
    margin: 24px 0;
    padding: 24px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.diagram .mermaid {
    display: flex;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.link-arrow:hover {
    gap: 10px;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Next Steps Cards
   -------------------------------------------------------------------------- */
.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.next-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

.next-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.next-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    flex-shrink: 0;
}

.next-card-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text);
}

.next-card-content p {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    margin-left: var(--sidebar-width);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 24px 64px;
}

.footer-left p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .toc {
        display: none;
    }
}

@media (max-width: 1024px) {
    .content {
        padding: 32px 40px;
    }

    .footer-inner {
        padding: 24px 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .search-hint,
    .search-btn kbd {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        left: 0;
        width: 280px;
        border-right: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .content {
        padding: 24px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .footer {
        margin-left: 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cards-row {
        grid-template-columns: 1fr;
    }
}

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

.breadcrumb a {
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   Lead Paragraph
   -------------------------------------------------------------------------- */
.lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Page Navigation
   -------------------------------------------------------------------------- */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.page-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    min-width: 200px;
}

.page-nav-link:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.page-nav-link.prev {
    margin-right: auto;
}

.page-nav-link.next {
    margin-left: auto;
    flex-direction: row-reverse;
    text-align: right;
}

.page-nav-link svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.page-nav-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.page-nav-title {
    display: block;
    font-weight: 500;
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Lists in Content
   -------------------------------------------------------------------------- */
.content ul,
.content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--color-text-secondary);
}

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

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

/* --------------------------------------------------------------------------
   Headings in Content
   -------------------------------------------------------------------------- */
.content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
