/* =====================================================
   Discourses API Documentation
   Premium Stripe-Inspired Design
   ===================================================== */

/* Layout Structure */
.docs-layout {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg-primary);
    padding-top: 73px; /* Account for fixed navbar */
}

/* =====================================================
   Sidebar
   ===================================================== */

.docs-sidebar {
    position: fixed;
    top: 73px; /* Below navbar */
    left: 0;
    width: 280px;
    height: calc(100vh - 73px); /* Subtract navbar height */
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.docs-sidebar-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--color-border);
}

.docs-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 16px;
}

.docs-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-logo-icon svg {
    width: 18px;
    height: 18px;
    color: #0a0a0f;
}

.docs-logo-icon i {
    font-size: 16px;
    color: #fff;
}

.docs-logo-text {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
}

.docs-logo-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-accent-primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.docs-search-wrapper {
    position: relative;
}

.docs-search {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-primary);
    transition: all 0.15s ease;
}

.docs-search::placeholder {
    color: var(--color-text-muted);
}

.docs-search:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Search Results States */
.docs-nav-link.search-match {
    background: rgba(0, 212, 255, 0.1);
    border-left: 2px solid var(--color-accent-primary);
}

.docs-section.search-highlight {
    animation: searchPulse 0.5s ease;
}

@keyframes searchPulse {
    0% { background: transparent; }
    50% { background: rgba(0, 212, 255, 0.05); }
    100% { background: transparent; }
}

.docs-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.docs-no-results p {
    margin: 0 0 8px;
    font-size: 16px;
}

.docs-no-results strong {
    color: var(--color-accent-primary);
}

.docs-no-results-hint {
    font-size: 14px;
    color: var(--color-text-muted);
}

.docs-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.docs-search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 6px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--color-text-muted);
}

/* Navigation */
.docs-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-bg-hover) transparent;
}

.docs-nav::-webkit-scrollbar {
    width: 4px;
}

.docs-nav::-webkit-scrollbar-track {
    background: transparent;
}

.docs-nav::-webkit-scrollbar-thumb {
    background: var(--color-bg-hover);
    border-radius: 2px;
}

.docs-nav-section {
    margin-bottom: 24px;
}

.docs-nav-title {
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.docs-nav-items {
    display: flex;
    flex-direction: column;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
    margin-left: -1px;
}

.docs-nav-link:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.docs-nav-link.active {
    color: var(--color-accent-primary);
    background: rgba(0, 212, 255, 0.05);
    border-left-color: var(--color-accent-primary);
}

.docs-nav-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    flex-shrink: 0;
}

.docs-nav-link.active svg {
    opacity: 1;
}

.docs-nav-badge {
    margin-left: auto;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.docs-nav-badge.new {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.docs-nav-badge.pro {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

/* Sidebar Footer */
.docs-sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
}

.docs-api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* =====================================================
   Main Content
   ===================================================== */

.docs-main {
    flex: 1;
    margin-left: 280px;
    min-width: 0;
}

.docs-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 48px 120px;
}

/* Breadcrumb */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 13px;
}

.docs-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.docs-breadcrumb a:hover {
    color: var(--color-accent-primary);
}

.docs-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
}

.docs-breadcrumb span {
    color: var(--color-text-secondary);
}

/* Page Header */
.docs-header {
    margin-bottom: 48px;
}

.docs-header h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.docs-header-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

/* Section Styles */
.docs-section {
    margin-bottom: 64px;
    scroll-margin-top: 32px;
}

.docs-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.docs-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-section p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-section ul,
.docs-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.docs-section li {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.docs-section li strong {
    color: var(--color-text-primary);
}

/* Inline Code */
.docs-section code:not(pre code) {
    padding: 2px 6px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #f472b6;
}

/* =====================================================
   Base URL Card
   ===================================================== */

.docs-base-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 32px;
}

.docs-base-url-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.docs-base-url-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent-primary);
}

.docs-base-url-copy {
    padding: 8px 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.docs-base-url-copy:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

/* =====================================================
   Model Badge
   ===================================================== */

.docs-model-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(34, 211, 238, 0.08) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    margin-bottom: 32px;
}

.model-badge-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.model-badge-icon i {
    font-size: 20px;
    color: #fff;
}

.model-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.model-badge-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-badge-name {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* =====================================================
   Endpoint Card
   ===================================================== */

.endpoint-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
}

.http-method {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.method-get { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.method-post { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.method-put { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.method-delete { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.endpoint-path {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.endpoint-tier {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tier-hobbyist, .tier-free { background: var(--color-bg-elevated); color: var(--color-text-muted); }
.tier-pro { background: rgba(0, 212, 255, 0.1); color: var(--color-accent-primary); }
.tier-enterprise { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }

.endpoint-body {
    padding: 24px;
}

.endpoint-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* =====================================================
   Parameters Table
   ===================================================== */

.params-section {
    margin-bottom: 32px;
}

.params-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
}

.params-table th,
.params-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}

.params-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-bg-tertiary);
}

.params-table td {
    font-size: 14px;
    color: var(--color-text-secondary);
    vertical-align: top;
}

.params-table tr:last-child td {
    border-bottom: none;
}

.param-name {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.param-type {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #a78bfa;
}

.param-required {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.param-optional {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* =====================================================
   Code Block - Premium Design
   ===================================================== */

.code-block {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.code-block-header {
    display: flex;
    align-items: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-tabs {
    display: flex;
    flex: 1;
}

.code-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.code-tab:hover {
    color: #e6edf3;
}

.code-tab.active {
    color: #58a6ff;
    border-bottom-color: #58a6ff;
    background: rgba(88, 166, 255, 0.05);
}

.code-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.code-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.15s ease;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e6edf3;
}

.code-copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.code-copy-btn svg {
    width: 14px;
    height: 14px;
}

.code-content {
    padding: 20px 24px;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #e6edf3;
}

/* Syntax Highlighting - GitHub Dark Theme */
.token-keyword { color: #ff7b72; }
.token-string { color: #a5d6ff; }
.token-number { color: #79c0ff; }
.token-property { color: #7ee787; }
.token-function { color: #d2a8ff; }
.token-comment { color: #8b949e; font-style: italic; }
.token-punctuation { color: #8b949e; }
.token-operator { color: #ff7b72; }
.token-url { color: #a5d6ff; text-decoration: underline; }
.token-flag { color: #ffa657; }

/* Code panel for multi-tab content */
.code-panel {
    display: none;
}

.code-panel.active {
    display: block;
}

/* =====================================================
   Response Preview
   ===================================================== */

.response-block {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.response-label {
    font-size: 12px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.response-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-code {
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}

.status-2xx { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-4xx { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-5xx { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.response-body {
    padding: 20px 24px;
    overflow-x: auto;
}

.response-body pre {
    margin: 0;
}

.response-body code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #e6edf3;
}

/* =====================================================
   Info & Warning Cards
   ===================================================== */

.docs-callout {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 14px;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.docs-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.docs-callout.info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 212, 255, 0.02) 100%);
    border: 1px solid rgba(0, 212, 255, 0.12);
}

.docs-callout.info::before {
    background: linear-gradient(180deg, #22d3ee 0%, rgba(34, 211, 238, 0.3) 100%);
}

.docs-callout.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.docs-callout.warning::before {
    background: linear-gradient(180deg, #f59e0b 0%, rgba(245, 158, 11, 0.3) 100%);
}

.docs-callout.tip {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.12);
}

.docs-callout.tip::before {
    background: linear-gradient(180deg, #22c55e 0%, rgba(34, 197, 94, 0.3) 100%);
}

.docs-callout-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.docs-callout.info .docs-callout-icon { color: #67e8f9; }
.docs-callout.warning .docs-callout-icon { color: #fbbf24; }
.docs-callout.tip .docs-callout-icon { color: #4ade80; }

.docs-callout-content {
    flex: 1;
}

.docs-callout-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.docs-callout-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0;
}

.docs-callout-text code {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.docs-callout-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =====================================================
   Rate Limit Table
   ===================================================== */

.rate-limit-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.rate-limit-table th,
.rate-limit-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.rate-limit-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-bg-tertiary);
}

.rate-limit-table td {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.rate-limit-table tr:last-child td {
    border-bottom: none;
}

.rate-limit-table tbody tr:hover {
    background: var(--color-bg-tertiary);
}

.tier-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.tier-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-badge.hobbyist, .tier-badge.free { background: var(--color-bg-elevated); color: var(--color-text-muted); }
.tier-badge.builder, .tier-badge.starter { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.tier-badge.pro { background: rgba(0, 212, 255, 0.15); color: var(--color-accent-primary); }
.tier-badge.enterprise { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }

/* =====================================================
   Methodology Section
   ===================================================== */

.method-steps-docs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.method-step-doc {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.method-step-doc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.method-step-doc:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.method-step-doc:hover::before {
    opacity: 1;
}

.method-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(34, 211, 238, 0.2) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.method-step-body {
    flex: 1;
}

.method-step-body h4 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.method-step-body > p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Expanded Method Steps */
.method-step-expanded {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

.method-step-expanded .method-step-number {
    margin-bottom: 16px;
}

.method-step-expanded .method-step-body > p {
    margin-bottom: 20px;
}

.method-step-expanded .method-step-body > p:last-child {
    margin-bottom: 0;
}

.method-step-highlight {
    border-color: rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(34, 211, 238, 0.03) 100%);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.1);
}

.method-step-highlight .method-step-number {
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.method-step-highlight:hover {
    border-color: rgba(124, 58, 237, 0.35);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(34, 211, 238, 0.04) 100%);
}

.method-detail {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: normal;
    border-left: 2px solid rgba(124, 58, 237, 0.3);
    padding-left: 16px;
    margin-top: 16px !important;
    line-height: 1.6;
}

.method-interpretation {
    margin: 16px 0 0;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    list-style: none;
}

.method-interpretation li {
    margin-bottom: 10px;
    padding-left: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.method-interpretation li:last-child {
    margin-bottom: 0;
}

.method-interpretation li strong {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* Mathematical Notation Blocks */
.math-block {
    margin: 24px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.math-block-highlight {
    border-color: rgba(124, 58, 237, 0.25);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(34, 211, 238, 0.02) 100%);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
}

.math-equation-box {
    padding: 32px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.math-equation-box mjx-container {
    margin: 0 !important;
    font-size: 22px !important;
}

.math-equation-box mjx-container[jax="SVG"] svg {
    color: rgba(255, 255, 255, 0.95) !important;
}

.math-legend-box {
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.12);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.legend-var {
    flex-shrink: 0;
    min-width: 140px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    text-align: center;
}

.legend-var mjx-container {
    font-size: 17px !important;
}

.legend-var mjx-container[jax="SVG"] svg {
    color: rgba(255, 255, 255, 0.9) !important;
}

.legend-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (max-width: 640px) {
    .math-equation-box {
        padding: 20px 16px;
        overflow-x: auto;
    }
    
    .math-equation-box mjx-container {
        font-size: 18px !important;
    }
    
    .legend-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .legend-var {
        min-width: auto;
    }
}

/* Era Table */
.era-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
}

.era-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.era-table th,
.era-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.era-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.era-table tbody tr:last-child td {
    border-bottom: none;
}

.era-table tbody tr {
    transition: background 0.2s ease;
}

.era-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.era-table td {
    color: rgba(255, 255, 255, 0.6);
    vertical-align: top;
    line-height: 1.6;
}

.era-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.era-badge.era-primitive {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(156, 163, 175, 0.1) 100%);
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.era-badge.era-ramp {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.era-badge.era-meme {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 100%);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.era-badge.era-present {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(34, 211, 238, 0.1) 100%);
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Semantic Drift Examples */
.semantic-drift-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.drift-example {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.drift-example:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.drift-word {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drift-word::before {
    content: '"';
    color: rgba(124, 58, 237, 0.6);
}

.drift-word::after {
    content: '"';
    color: rgba(124, 58, 237, 0.6);
}

.drift-comparison {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.drift-era {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.drift-period {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.drift-sentiment {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
    letter-spacing: 0.02em;
}

.drift-sentiment.positive {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.drift-sentiment.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.drift-sentiment.neutral {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(156, 163, 175, 0.1) 100%);
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.drift-era p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.drift-arrow {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: rgba(124, 58, 237, 0.5);
    padding: 0 4px;
}

@media (max-width: 900px) {
    .semantic-drift-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .drift-comparison {
        flex-direction: column;
    }
    
    .drift-arrow {
        transform: rotate(90deg);
        justify-content: center;
        padding: 8px 0;
    }
    
    .era-table {
        font-size: 13px;
    }
    
    .era-table th,
    .era-table td {
        padding: 14px 16px;
    }
}

/* =====================================================
   Scoring Guide Cards
   ===================================================== */

.score-guide {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.score-card {
    padding: 16px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    text-align: center;
}

.score-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.score-label {
    font-size: 12px;
    font-weight: 500;
}

.score-range {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.score-card.very-bearish { border-color: rgba(239, 68, 68, 0.3); }
.score-card.very-bearish .score-value { color: #f87171; }
.score-card.very-bearish .score-label { color: #f87171; }

.score-card.bearish { border-color: rgba(251, 146, 60, 0.3); }
.score-card.bearish .score-value { color: #fb923c; }
.score-card.bearish .score-label { color: #fb923c; }

.score-card.neutral { border-color: rgba(148, 163, 184, 0.3); }
.score-card.neutral .score-value { color: #94a3b8; }
.score-card.neutral .score-label { color: #94a3b8; }

.score-card.bullish { border-color: rgba(74, 222, 128, 0.3); }
.score-card.bullish .score-value { color: #4ade80; }
.score-card.bullish .score-label { color: #4ade80; }

.score-card.very-bullish { border-color: rgba(34, 197, 94, 0.3); }
.score-card.very-bullish .score-value { color: #22c55e; }
.score-card.very-bullish .score-label { color: #22c55e; }

/* =====================================================
   Error Table
   ===================================================== */

.error-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.error-table th,
.error-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.error-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-bg-tertiary);
}

.error-table td {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.error-table tr:last-child td {
    border-bottom: none;
}

.error-code {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* =====================================================
   Mobile Toggle
   ===================================================== */

.docs-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--color-accent-gradient);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    transition: all 0.2s ease;
}

.docs-mobile-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
}

.docs-mobile-toggle svg {
    width: 24px;
    height: 24px;
    color: #0a0a0f;
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 1200px) {
    .docs-sidebar { width: 260px; }
    .docs-main { margin-left: 260px; }
    .docs-content { padding: 40px 32px 100px; }
}

@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }
    
    .docs-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }
    
    .docs-main { margin-left: 0; }
    .docs-mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .score-guide { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .docs-content { padding: 24px 20px 80px; }
    .docs-header h1 { font-size: 32px; }
    .docs-section h2 { font-size: 24px; }
    .score-guide { grid-template-columns: repeat(2, 1fr); }
    .endpoint-header { flex-wrap: wrap; gap: 12px; }
    .endpoint-tier { margin-left: 0; }
    .code-tabs { overflow-x: auto; }
    .code-tab { white-space: nowrap; padding: 12px 16px; }
}

@media (max-width: 480px) {
    .docs-content { padding: 20px 16px 80px; }
    .docs-header h1 { font-size: 28px; }
    .score-guide { grid-template-columns: 1fr; }
    .params-table { font-size: 13px; }
    .params-table th, .params-table td { padding: 10px 12px; }
}

/* =====================================================
   Premium Mobile Docs Experience
   ===================================================== */

@media (max-width: 768px) {
    /* Mobile sidebar overlay */
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding-top: 70px;
    }
    
    .docs-sidebar.open {
        animation: fadeSlideIn 0.3s ease;
    }
    
    @keyframes fadeSlideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .docs-sidebar-header {
        padding: 20px;
    }
    
    .docs-logo {
        display: none;
    }
    
    .docs-search-wrapper {
        margin: 0;
    }
    
    .docs-search {
        padding: 14px 16px 14px 44px;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 12px;
    }
    
    .docs-nav {
        padding: 16px 20px;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
        -webkit-overflow-scrolling: touch;
    }
    
    .docs-nav-section {
        margin-bottom: 24px;
    }
    
    .docs-nav-title {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .docs-nav-link {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 10px;
        margin-bottom: 4px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .docs-nav-link:active {
        background: rgba(0, 212, 255, 0.15);
        transform: scale(0.98);
    }
    
    .docs-nav-link svg {
        width: 20px;
        height: 20px;
        margin-right: 14px;
    }
    
    .docs-nav-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .docs-sidebar-footer {
        padding: 16px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    /* Mobile toggle button */
    .docs-mobile-toggle {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        border-radius: 16px;
    }
    
    .docs-mobile-toggle svg {
        width: 22px;
        height: 22px;
    }
    
    /* Header adjustments */
    .docs-header {
        padding-bottom: 24px;
        margin-bottom: 32px;
    }
    
    .docs-header h1 {
        font-size: 26px;
        line-height: 1.2;
    }
    
    .docs-header-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Base URL box */
    .docs-base-url {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .docs-base-url-value {
        font-size: 13px;
        word-break: break-all;
    }
    
    .docs-base-url-copy {
        width: 100%;
        padding: 12px;
        min-height: 44px;
    }
    
    /* Section styling */
    .docs-section {
        padding: 24px 0;
        scroll-margin-top: 80px;
    }
    
    .docs-section h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    .docs-section h3 {
        font-size: 17px;
        margin: 24px 0 12px;
    }
    
    .docs-section p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .docs-section ul, .docs-section ol {
        padding-left: 20px;
    }
    
    .docs-section li {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    /* Callouts */
    .docs-callout {
        padding: 16px;
        border-radius: 12px;
        flex-direction: column;
        gap: 12px;
    }
    
    .docs-callout-icon {
        width: 24px;
        height: 24px;
    }
    
    .docs-callout-title {
        font-size: 14px;
    }
    
    .docs-callout-text {
        font-size: 14px;
    }
    
    /* Code blocks */
    .code-block {
        border-radius: 12px;
        margin: 20px 0;
    }
    
    .code-block-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .code-tabs {
        gap: 4px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .code-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .code-tab {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .code-copy-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .code-content {
        padding: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .code-content pre {
        font-size: 12px;
        line-height: 1.6;
    }
    
    /* Response blocks */
    .response-block {
        border-radius: 12px;
        margin: 20px 0;
    }
    
    .response-header {
        padding: 12px 16px;
    }
    
    .response-body {
        padding: 16px;
    }
    
    .response-body pre {
        font-size: 12px;
    }
    
    /* Endpoint cards */
    .endpoint-card {
        border-radius: 12px;
        margin: 24px 0;
    }
    
    .endpoint-header {
        padding: 16px;
        gap: 10px;
    }
    
    .http-method {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .endpoint-path {
        font-size: 14px;
        word-break: break-all;
    }
    
    .endpoint-tier {
        margin-left: auto;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .endpoint-body {
        padding: 16px;
    }
    
    .endpoint-description {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    /* Params table */
    .params-section {
        margin: 20px 0;
    }
    
    .params-title {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .params-table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .params-table th,
    .params-table td {
        padding: 12px;
        white-space: nowrap;
    }
    
    .param-name {
        font-size: 13px;
    }
    
    .param-required,
    .param-optional {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .param-type {
        font-size: 11px;
    }
    
    /* Rate limit table */
    .rate-limit-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .rate-limit-table th,
    .rate-limit-table td {
        padding: 12px;
        white-space: nowrap;
    }
    
    .tier-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Score guide */
    .score-guide {
        gap: 12px;
    }
    
    .score-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .score-value {
        font-size: 20px;
    }
    
    .score-label {
        font-size: 12px;
    }
    
    .score-range {
        font-size: 10px;
    }
    
    /* Error table */
    .error-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .error-table th,
    .error-table td {
        padding: 12px;
    }
    
    .status-code {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .error-code {
        font-size: 11px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

.docs-section {
    scroll-margin-top: 105px; /* Account for navbar + some padding */
}

/* =====================================================
   Footer Override for Docs Layout
   ===================================================== */

/* When docs sidebar is present, footer needs to account for sidebar */
body.has-docs-sidebar .footer {
    margin-left: 280px;
}

body.has-docs-sidebar .footer .footer-container {
    max-width: calc(920px + 96px); /* Match docs content width + padding */
    margin: 0 auto;
}

@media (max-width: 1200px) {
    body.has-docs-sidebar .footer {
        margin-left: 260px;
    }
}

@media (max-width: 1024px) {
    body.has-docs-sidebar .footer {
        margin-left: 0;
    }
}

/* =====================================================
   Methodology Section
   ===================================================== */

.methodology-section {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.methodology-section h4 {
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.methodology-section h4:first-child {
    margin-top: 0;
}

.methodology-section p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.methodology-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.methodology-list li {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    padding: 6px 0 6px 24px;
    position: relative;
}

.methodology-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.methodology-list li strong {
    color: var(--color-text-primary);
}

.methodology-list li em {
    color: var(--color-text-tertiary);
    font-style: italic;
}

.methodology-list li u {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
}

.code-inline-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    overflow-x: auto;
}

.code-inline-block code {
    color: #22d3ee;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    white-space: nowrap;
}

.formula-block {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.formula-block code {
    color: var(--color-text-primary);
    font-size: 14px;
    display: block;
    line-height: 2;
}

@media (max-width: 768px) {
    .methodology-section {
        padding: 20px;
    }
    
    .methodology-section h4 {
        font-size: 15px;
    }
    
    .code-inline-block code {
        font-size: 11px;
    }
    
    .formula-block code {
        font-size: 12px;
    }
}
