/* Enterprise Responsible AI Framework - Main Stylesheet */
/* Updated to match Black Sheep AI main website dark theme */

:root {
    /* Dark theme colors matching main site */
    --primary-color: #3b82f6;         /* blue-500 */
    --secondary-color: #a78bfa;       /* purple-400 */
    --accent-color: #f472b6;          /* pink-400 */
    --success-color: #22c55e;         /* green-500 */
    --warning-color: #eab308;         /* yellow-500 */
    --danger-color: #ef4444;          /* red-500 */
    --text-primary: #ffffff;          /* white */
    --text-secondary: #cbd5e1;        /* slate-300 */
    --text-light: #94a3b8;            /* slate-400 */
    --bg-primary: #020617;            /* slate-950 */
    --bg-secondary: rgba(15, 23, 42, 0.5);  /* slate-900 with opacity */
    --bg-tertiary: #1e293b;           /* slate-800 */
    --border-color: #334155;          /* slate-700 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-mono: ui-monospace, 'Monaco', 'Consolas', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Gradient text effect matching main site */
.gradient-text {
    background: linear-gradient(to right, rgb(96, 165, 250), rgb(167, 139, 250), rgb(244, 114, 182));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-header {
    background: transparent;
    color: white;
    padding: 1.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
}

.nav-logo a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom right, #334155, #0f172a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #475569;
}

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.nav-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: white;
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* Main Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.main-container.full-width {
    display: block;
}

/* Floating blobs background effect */
.blob-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    filter: blur(48px);
    opacity: 0.2;
}

.blob-blue {
    background-color: #3b82f6;
    top: 10%;
    left: 20%;
}

.blob-purple {
    background-color: #8b5cf6;
    top: 40%;
    right: 10%;
}

.blob-cyan {
    background-color: #06b6d4;
    bottom: 10%;
    left: 50%;
}

/* Sidebar */
.sidebar {
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.sidebar-nav a.active {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
}

.sidebar-nav .sub-nav {
    margin-left: 1rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-color);
}

.sidebar-nav .sub-nav a {
    font-size: 0.85rem;
}

/* Content Area */
.content {
    flex: 1;
    min-width: 0; /* Prevents content from overflowing */
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, rgb(96, 165, 250), rgb(167, 139, 250), rgb(244, 114, 182));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(to right, rgb(96, 165, 250), rgb(167, 139, 250));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

li::marker {
    color: var(--primary-color);
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid;
    backdrop-filter: blur(12px);
}

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

.callout-warning {
    background: rgba(234, 179, 8, 0.1);
    border-color: var(--warning-color);
}

.callout-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success-color);
}

.callout-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
}

.callout-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.callout p {
    margin-bottom: 0;
}

/* Implementation Steps */
.implementation-step {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.implementation-step:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-top: 0;
    color: var(--text-primary);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

thead {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

th {
    font-weight: 600;
}

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

tbody tr:nth-child(even) {
    background: var(--bg-tertiary);
}

tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Risk Levels */
.risk-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.risk-prohibited {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.risk-high {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.risk-limited {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.risk-minimal {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* TOC Cards */
.toc-section {
    margin: 2rem 0;
}

.toc-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.toc-section-number {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.toc-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    margin: 0;
    padding: 0;
    border: none;
}

.toc-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-left: 3rem;
}

.toc-item {
    display: block;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.toc-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.toc-item-number {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
}

.toc-item-title {
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
}

.toc-item:hover .toc-item-title {
    color: var(--text-primary);
}

/* Code Blocks */
code {
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--accent-color);
}

pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Checklist */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.checklist li::before {
    content: "☐";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6, #f472b6);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
}

.timeline-item h4 {
    margin-top: 0.25rem;
}

/* Footer */
.doc-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.doc-footer a:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Print Styles */
@media print {
    .nav-header,
    .sidebar,
    .doc-footer {
        display: none;
    }

    .main-container {
        display: block;
    }

    .content {
        box-shadow: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        max-height: none;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .toc-items {
        margin-left: 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

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

/* Hero Section for Main TOC */
.hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(244, 114, 182, 0.2) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    -webkit-text-fill-color: unset;
    background: linear-gradient(to right, rgb(96, 165, 250), rgb(167, 139, 250), rgb(244, 114, 182));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.hero-meta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Back to main site link */
.back-to-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.back-to-main:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Alternative Layout Classes - for files using different structure */
.document-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.document-container .sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.document-container .main-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Section content - pages without sidebar */
.section-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* When section-content is nested inside .content, remove duplicate styling */
.content .section-content {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
}

/* Sidebar section styling */
.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    margin-bottom: 0.25rem;
}

.sidebar-section a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sidebar-section a:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.sidebar-section a.active {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
}

/* Section header styling */
.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.section-description,
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Breadcrumb styling */
.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

/* Content block styling */
.content-block {
    margin-bottom: 2rem;
}

/* Key insight box */
.key-insight {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.key-insight h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Regulatory box */
.regulatory-box {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.regulatory-box h4 {
    color: var(--warning-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Taxonomy grid */
.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.taxonomy-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.taxonomy-card h4 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.taxonomy-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.taxonomy-card .examples {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Site footer */
.site-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content p {
    color: var(--text-light);
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

/* Section Hero */
.section-hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(244, 114, 182, 0.2) 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-hero .section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Content container */
.content-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Content section */
.content-section {
    margin-bottom: 2rem;
}

/* Key concept box */
.key-concept {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.key-concept h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Section nav for appendix navigation */
.section-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.section-nav a,
.section-nav .prev-link,
.section-nav .next-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.section-nav a:hover,
.section-nav .prev-link:hover,
.section-nav .next-link:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Nav button styling for appendices */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive for alternative layouts */
@media (max-width: 1024px) {
    .document-container {
        flex-direction: column;
    }

    .document-container .sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .section-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .section-hero {
        padding: 2rem 1rem;
    }

    .section-hero h1 {
        font-size: 1.75rem;
    }

    .nav-buttons {
        flex-direction: column;
    }
}
