/* =============================================
   DOCS MULTI-PAGE STYLES
   Shared styles for all documentation pages
   ============================================= */

:root {
    --docs-max-width: 1200px;
    --docs-content-width: 800px;
    --card-radius: 16px;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-red: #E21F26;
}

/* Prevent horizontal overflow on docs pages */
.docs-landing,
.docs-page {
    overflow-x: hidden;
    max-width: 100vw;
}

/* =============================================
   LANDING PAGE STYLES
   ============================================= */

.docs-landing {
    min-height: 100vh;
    padding-top: 72px;
}

/* Hero - Enhanced with Animations */
.docs-hero {
    position: relative;
    padding: 4rem 1.25rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(226, 31, 38, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-secondary);
    overflow: hidden;
}

/* Animated Background Orbs */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(226, 31, 38, 0.4) 0%, transparent 70%);
    top: -50px;
    left: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.3) 0%, transparent 70%);
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.hero-orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(226, 31, 38, 0.25) 0%, transparent 70%);
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Animated Flow SVG */
.hero-flow-svg {
    position: absolute;
    width: 100%;
    max-width: 500px;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.flow-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: flowDraw 3s ease-in-out infinite;
}

.flow-path.delay-1 {
    animation-delay: 0.5s;
}

@keyframes flowDraw {
    0% { stroke-dashoffset: 300; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -300; }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-secondary);
}

.docs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(226, 31, 38, 0.1);
    border: 1px solid rgba(226, 31, 38, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

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

.docs-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.docs-hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Path Cards - Main Navigation */
.docs-paths {
    padding: 2rem 1.25rem;
    max-width: var(--docs-max-width);
    margin: 0 auto;
}

.path-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.path-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.path-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.path-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.path-card-icon svg {
    width: 24px;
    height: 24px;
}

.path-card-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    color: var(--accent-purple);
}

.path-card-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    color: var(--accent-blue);
}

.path-card-icon.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    color: var(--accent-green);
}

.path-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.path-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.path-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
}

.path-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.path-card:hover .path-card-link svg {
    transform: translateX(4px);
}

/* Section Labels */
.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

/* Concept Cards Grid */
.docs-concepts {
    padding: 2rem 1.25rem;
    max-width: var(--docs-max-width);
    margin: 0 auto;
    border-top: 1px solid var(--border-secondary);
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.concept-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.concept-card:hover {
    border-color: var(--primary);
    background: rgba(226, 31, 38, 0.02);
}

.concept-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.concept-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.concept-content {
    flex: 1;
    min-width: 0;
}

.concept-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
}

.concept-content p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.concept-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.concept-card:hover .concept-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Code Preview */
.docs-preview {
    padding: 2rem 1.25rem;
    max-width: var(--docs-max-width);
    margin: 0 auto;
    border-top: 1px solid var(--border-secondary);
}

.code-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-secondary);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27ca40; }

.code-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-preview-card pre {
    padding: 1.25rem;
    margin: 0;
    overflow-x: auto;
}

.code-preview-card code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.code-preview-card code .c { color: #6a737d; }
.code-preview-card code .k { color: #f97583; }
.code-preview-card code .f { color: #b392f0; }

/* Resources Grid */
.docs-resources {
    padding: 2rem 1.25rem 3rem;
    max-width: var(--docs-max-width);
    margin: 0 auto;
    border-top: 1px solid var(--border-secondary);
}

.resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.resource-card:hover {
    border-color: var(--primary);
}

.resource-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.resource-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.resource-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =============================================
   CONTENT PAGE LAYOUT
   ============================================= */

.docs-page {
    min-height: 100vh;
    padding-top: 72px;
    display: flex;
    flex-direction: column;
}

/* Sidebar */
.docs-sidebar {
    display: none;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-right: 1px solid var(--border-secondary);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
    padding-left: 0.75rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

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

.sidebar-link.active {
    background: var(--primary);
    color: white;
}

/* Mobile Navigation Toggle */
.docs-mobile-nav {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
}

.docs-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.docs-nav-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.docs-nav-toggle span {
    flex: 1;
    text-align: left;
}

.docs-nav-toggle .chevron {
    transition: transform 0.2s;
}

.docs-nav-toggle.active .chevron {
    transform: rotate(180deg);
}

.docs-mobile-menu {
    display: none;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    margin-top: 0.75rem;
}

.docs-mobile-menu.active {
    display: block;
}

/* Main Content */
.docs-content {
    flex: 1;
    padding: 2rem 1.25rem 4rem;
    max-width: 100%;
}

.docs-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.docs-content .lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.docs-content h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-secondary);
}

.docs-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs-content p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.docs-content li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Callout */
.callout {
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.callout p {
    margin: 0;
    font-size: 0.875rem;
}

.callout.info {
    border-left-color: var(--accent-blue);
}

.callout.warning {
    border-left-color: var(--accent-orange);
}

.callout.success {
    border-left-color: var(--accent-green);
}

/* Code Blocks */
.code-block {
    background: #0d0d0d;
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    max-width: 100%;
}

.code-block pre {
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre;
}

/* Inline code */
.docs-content code:not(pre code) {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--primary);
}

/* Visual Diagrams */
.diagram {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.diagram-title {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Animated Lifecycle Diagram */
.lifecycle-diagram {
    position: relative;
    background: linear-gradient(135deg, rgba(226, 31, 38, 0.03) 0%, rgba(165, 180, 252, 0.03) 100%);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem 1rem;
    margin: 2rem 0;
    overflow: hidden;
}

.lifecycle-title {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.lifecycle-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lifecycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    min-width: 90px;
    animation: stepFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.lifecycle-step[data-step="1"] { animation-delay: 0.1s; }
.lifecycle-step[data-step="2"] { animation-delay: 0.3s; }
.lifecycle-step[data-step="3"] { animation-delay: 0.5s; }
.lifecycle-step[data-step="4"] { animation-delay: 0.7s; }

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lifecycle-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.lifecycle-icon svg {
    width: 24px;
    height: 24px;
}

.lifecycle-step:hover .lifecycle-icon {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(226, 31, 38, 0.2);
}

.lifecycle-icon.create { color: #22c55e; }
.lifecycle-icon.resolve { color: #3b82f6; }
.lifecycle-icon.dispute { color: #f59e0b; }
.lifecycle-icon.finalize { color: var(--primary); }

.lifecycle-step:hover .lifecycle-icon.create { background: rgba(34, 197, 94, 0.1); border-color: #22c55e; }
.lifecycle-step:hover .lifecycle-icon.resolve { background: rgba(59, 130, 246, 0.1); border-color: #3b82f6; }
.lifecycle-step:hover .lifecycle-icon.dispute { background: rgba(245, 158, 11, 0.1); border-color: #f59e0b; }
.lifecycle-step:hover .lifecycle-icon.finalize { background: rgba(226, 31, 38, 0.1); border-color: var(--primary); }

.lifecycle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lifecycle-desc {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 100px;
}

.lifecycle-connector {
    width: 40px;
    height: 24px;
    color: var(--border-secondary);
}

.lifecycle-connector svg {
    width: 100%;
    height: 100%;
}

.connector-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { r: 3; opacity: 0.5; }
    50% { r: 5; opacity: 1; }
}

.lifecycle-pulse {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: pulseMove 3s ease-in-out infinite;
}

@keyframes pulseMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile lifecycle */
@media (max-width: 600px) {
    .lifecycle-flow {
        flex-direction: column;
        gap: 0.25rem;
    }
    .lifecycle-connector {
        transform: rotate(90deg);
        width: 24px;
        height: 30px;
    }
    .lifecycle-step {
        min-width: auto;
        padding: 0.75rem;
    }
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.flow-node.active {
    border-color: var(--primary);
    background: rgba(226, 31, 38, 0.05);
}

.flow-node-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-node-desc {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    transform: rotate(90deg);
}

/* Tier Cards */
.tier-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 1.25rem;
}

.tier-card.featured {
    border-color: var(--accent-blue);
}

.tier-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tier-badge {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tier-badge.system {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.tier-badge.tk {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.tier-badge.permissionless {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.tier-card p {
    font-size: 0.875rem;
    margin: 0;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-secondary);
}

.comparison-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.75rem;
}

.comparison-table .table-sub {
    font-weight: 400;
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.comparison-table .highlight-col {
    background: rgba(226, 31, 38, 0.05);
}

.comparison-table th.highlight-col {
    background: rgba(226, 31, 38, 0.1);
    color: var(--primary);
}

.comparison-table .check {
    color: #22c55e;
    font-weight: 700;
    margin-right: 0.25rem;
}

.comparison-table .x {
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.comparison-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Is / Is Not Section */
.is-isnot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

@media (min-width: 768px) {
    .is-isnot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.is-card,
.isnot-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
}

.is-card {
    background: rgba(34, 197, 94, 0.03);
    border-color: rgba(34, 197, 94, 0.15);
}

.isnot-card {
    background: rgba(226, 31, 38, 0.03);
    border-color: rgba(226, 31, 38, 0.15);
}

.is-header,
.isnot-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.is-header svg,
.isnot-header svg {
    width: 20px;
    height: 20px;
}

.is-header {
    color: #22c55e;
}

.isnot-header {
    color: var(--primary);
}

.is-card ul,
.isnot-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.is-card li,
.isnot-card li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.is-card li:last-child,
.isnot-card li:last-child {
    border-bottom: none;
}

.is-card strong,
.isnot-card strong {
    color: var(--text-primary);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.status-badge.deprecated {
    background: rgba(226, 31, 38, 0.15);
    color: var(--accent-red);
}

/* Contracts Table */
.contracts-table .address {
    font-size: 0.75rem;
    word-break: break-all;
}

.explorer-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
}

.explorer-link:hover {
    text-decoration: underline;
}

/* API Navigation */
.api-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.api-nav-link {
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

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

/* API Table */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 0.8125rem;
}

.api-table th,
.api-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-secondary);
}

.api-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-table td code {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Architecture Layers */
.arch-layers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arch-layer {
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    padding: 1rem;
    position: relative;
}

.arch-layer-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    background: var(--bg-secondary);
    padding: 0 0.375rem;
}

.arch-layer.consumers {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.03);
}

.arch-layer.consumers .arch-layer-label { color: var(--accent-purple); }

.arch-layer.registry {
    border-color: rgba(226, 31, 38, 0.4);
    background: rgba(226, 31, 38, 0.03);
}

.arch-layer.registry .arch-layer-label { color: var(--primary); }

.arch-layer.resolvers {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.03);
}

.arch-layer.resolvers .arch-layer-label { color: var(--accent-green); }

.arch-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.arch-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    padding: 0.375rem 0.625rem;
    border-radius: 5px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.arch-connector {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
    color: var(--text-muted);
}

.arch-connector svg {
    width: 18px;
    height: 18px;
}

/* Page Navigation */
.page-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-secondary);
}

.page-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.page-nav-link:hover {
    border-color: var(--primary);
}

.page-nav-label {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.page-nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* =============================================
   MOBILE TABLE STYLES
   ============================================= */

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.8125rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.docs-content table thead,
.docs-content table tbody,
.docs-content table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.docs-content table th,
.docs-content table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-secondary);
}

.docs-content table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
}

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

/* State Machine Grid - Mobile */
.state-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.state-item {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.state-item-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-primary);
}

.state-item-desc {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 50/50 Split Diagram */
.split-diagram {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.split-item {
    text-align: center;
    min-width: 120px;
}

.split-value {
    font-size: 2rem;
    font-weight: 700;
}

.split-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.split-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Scenario Cards */
.scenario-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.scenario-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Inline Code on Mobile */
.docs-content code:not(pre code) {
    word-break: break-word;
}

/* Full-width buttons on mobile */
.docs-preview .btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* =============================================
   TABLET STYLES (480px+)
   ============================================= */

@media (min-width: 480px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .state-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .code-block code {
        font-size: 0.8125rem;
    }

    .code-block pre {
        padding: 1.25rem;
    }
}

/* =============================================
   DESKTOP STYLES
   ============================================= */

@media (min-width: 768px) {
    /* Landing Hero */
    .docs-hero {
        padding: 4rem 2rem 3rem;
    }

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

    .docs-hero p {
        font-size: 1.125rem;
    }

    /* Path Cards */
    .docs-paths {
        padding: 3rem 2rem;
    }

    .path-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .path-card {
        padding: 2rem;
    }

    /* Concepts */
    .docs-concepts {
        padding: 3rem 2rem;
    }

    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .concept-content p {
        white-space: normal;
    }

    /* Preview */
    .docs-preview {
        padding: 3rem 2rem;
    }

    /* Resources */
    .docs-resources {
        padding: 3rem 2rem 4rem;
    }

    .resource-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Content Page */
    .docs-page {
        flex-direction: row;
    }

    .docs-mobile-nav {
        display: none;
    }

    .docs-sidebar {
        display: block;
        width: 240px;
        position: fixed;
        top: 72px;
        left: 0;
        bottom: 0;
        padding: 2rem 1.25rem;
    }

    .docs-content {
        margin-left: 240px;
        padding: 2.5rem 3rem 4rem;
        max-width: var(--docs-content-width);
    }

    .docs-content h1 {
        font-size: 2.25rem;
    }

    .docs-content h2 {
        font-size: 1.5rem;
        margin-top: 3.5rem;
    }

    .docs-content h3 {
        font-size: 1.25rem;
    }

    .docs-content p,
    .docs-content li {
        font-size: 1rem;
    }

    /* Flow Diagram */
    .flow-diagram {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .flow-node {
        width: auto;
    }

    .flow-arrow {
        transform: rotate(0deg);
    }

    /* Tables */
    .docs-content table {
        display: table;
    }

    .docs-content table th,
    .docs-content table td {
        padding: 0.75rem;
    }

    /* State Grid */
    .state-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Preview Button */
    .docs-preview .btn {
        display: inline-block;
        width: auto;
    }

    /* Tier Cards */
    .tier-cards {
        flex-direction: row;
    }

    .tier-card {
        flex: 1;
    }

    /* Architecture */
    .arch-layer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
    }

    .arch-items {
        margin-top: 0;
    }

    /* Page Nav */
    .page-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .docs-hero h1 {
        font-size: 3.25rem;
    }

    .path-card {
        padding: 2.5rem;
    }

    .path-card-icon {
        width: 56px;
        height: 56px;
    }

    .path-card-icon svg {
        width: 28px;
        height: 28px;
    }

    .docs-sidebar {
        width: 260px;
    }

    .docs-content {
        margin-left: 260px;
        padding: 3rem 4rem 4rem;
    }
}
