/* StewAIrd Developer Documentation - Enterprise Styling */

/* ========================================
   Reset & Foundation
   ======================================== */

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

:root {
    /* Colors */
    --color-primary: #0052CC;
    --color-secondary: #6C5CE7;
    --color-success: #008000;
    --color-danger: #D32F2F;
    --color-warning: #F57C00;
    --color-info: #1976D2;
    
    /* Neutral palette */
    --color-dark: #1A1A2E;
    --color-dark-secondary: #2D2D4A;
    --color-gray-900: #111827;
    --color-gray-800: #1F2937;
    --color-gray-700: #374151;
    --color-gray-600: #4B5563;
    --color-gray-500: #6B7280;
    --color-gray-400: #9CA3AF;
    --color-gray-300: #D1D5DB;
    --color-gray-200: #E5E7EB;
    --color-gray-100: #F3F4F6;
    --color-gray-50: #F9FAFB;
    --color-light: #F5F7FA;
    --color-white: #FFFFFF;
    
    /* Semantic colors */
    --color-border: #E5E7EB;
    --color-bg-light: #F9FAFB;
    --color-bg-lighter: #F3F4F6;
    --color-text: #1F2937;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'Courier New', 'Monaco', 'Menlo', monospace;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1010;
    --z-fixed: 1020;
    --z-modal: 1030;
}

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Header - Sticky Navigation
   ======================================== */

.header-sticky {
    position: sticky;
    top: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-sticky);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-shield {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-primary {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.logo-secondary {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.header-meta {
    flex: 1;
    display: flex;
    justify-content: center;
}

.version-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-secondary);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
}

.github-link:hover {
    color: var(--color-primary);
    background: var(--color-gray-100);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--transition-base);
}

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

    .header-container {
        padding: 1rem;
        gap: 1rem;
    }

    .header-meta {
        display: none;
    }
}

/* ========================================
   Layout
   ======================================== */

.layout-container {
    display: flex;
    min-height: calc(100vh - 70px);
    background: var(--color-white);
}

/* ========================================
   Sidebar Navigation
   ======================================== */

.sidebar {
    width: 280px;
    border-right: 1px solid var(--color-border);
    background: var(--color-bg-lighter);
    padding: 2rem 0;
    overflow-y: auto;
    position: relative;
    max-height: calc(100vh - 70px);
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 0 1.5rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

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

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    border-left: 3px solid transparent;
    transition: all var(--transition-base);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 0.25rem 0;
}

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

.nav-link.active {
    color: var(--color-primary);
    background: rgba(0, 82, 204, 0.08);
    border-left-color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 70px;
        width: 280px;
        height: calc(100vh - 70px);
        transition: left var(--transition-base);
        z-index: var(--z-dropdown);
        box-shadow: var(--shadow-lg);
        border-right: none;
    }

    .sidebar.open {
        left: 0;
    }
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-status {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 200px;
    flex-shrink: 0;
}

.status-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.status-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-item > span {
    display: block;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
}

@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1rem;
        flex-direction: column;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .hero-status {
        width: 100%;
    }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--color-gray-50);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Documentation Sections
   ======================================== */

.doc-section {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--color-border);
}

.doc-section:last-of-type {
    border-bottom: none;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-normal);
}

.doc-article {
    max-width: 900px;
}

.doc-article h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark-secondary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.doc-article h3:first-child {
    margin-top: 0;
}

.doc-article h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-article p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.doc-article ul,
.doc-article ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.doc-article li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.doc-article code {
    background: var(--color-bg-light);
    color: var(--color-primary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.doc-article pre {
    background: var(--color-dark);
    color: #E0E0E0;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
}

.doc-article pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ========================================
   Info Boxes
   ======================================== */

.info-box {
    background: var(--color-bg-lighter);
    border-left: 4px solid var(--color-info);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.info-box strong {
    color: var(--color-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.info-box p {
    margin: 0;
    font-size: 0.9375rem;
}

.info-note {
    border-left-color: var(--color-info);
    background: #EFF6FF;
}

.info-tip {
    border-left-color: var(--color-success);
    background: #F0FDF4;
}

.info-tip strong {
    color: #166534;
}

.info-security {
    border-left-color: var(--color-danger);
    background: #FEF2F2;
}

.info-security strong {
    color: #991B1B;
}

/* ========================================
   Cards & Grids
   ======================================== */

.requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.requirement-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
}

.requirement-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.req-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--color-primary);
}

.req-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.requirement-card h4 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--color-dark);
}

.requirement-card p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ========================================
   Credential Cards
   ======================================== */

.cred-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.cred-row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 0.9375rem;
}

.cred-row:last-child {
    border-bottom: none;
}

.cred-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    min-width: 120px;
    flex-shrink: 0;
}

.cred-row code {
    background: var(--color-bg-light);
    flex: 1;
}

.config-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.config-row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 0.9375rem;
    align-items: center;
}

.config-row:last-child {
    border-bottom: none;
}

.config-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    min-width: 150px;
    flex-shrink: 0;
}

.config-row code {
    background: var(--color-bg-light);
    flex: 1;
}

.config-value {
    color: var(--color-text-secondary);
    flex: 1;
}

/* ========================================
   Service List
   ======================================== */

.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.service-list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ========================================
   Component Grid
   ======================================== */

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.component-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

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

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.component-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
}

.component-tech {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--color-bg-light);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.component-card p {
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.component-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.component-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* ========================================
   Flow Diagram
   ======================================== */

.flow-diagram {
    background: var(--color-dark);
    color: #E0E0E0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
}

.flow-step {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.flow-parallel {
    flex-direction: row;
    gap: 1rem;
}

.flow-box {
    background: rgba(0, 82, 204, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    flex: 0 0 auto;
}

.flow-arrow {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* ========================================
   Base URLs
   ======================================== */

.base-urls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.url-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.url-service {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}

.url-card code {
    background: var(--color-bg-light);
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* ========================================
   API Endpoints
   ======================================== */

.endpoint-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    transition: all var(--transition-base);
}

.endpoint-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

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

.method-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 50px;
    text-align: center;
}

.method-badge.get {
    background: #D1FAE5;
    color: #065F46;
}

.method-badge.post {
    background: #DBEAFE;
    color: #0C4A6E;
}

.method-badge.put {
    background: #FEF3C7;
    color: #92400E;
}

.method-badge.delete {
    background: #FEE2E2;
    color: #991B1B;
}

.endpoint-path {
    font-family: var(--font-mono);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    flex: 1;
}

.endpoint-desc {
    margin: 0 0 1rem 0;
    color: var(--color-text-secondary);
}

.endpoint-example {
    background: var(--color-bg-lighter);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.endpoint-example p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
}

/* ========================================
   Tables
   ======================================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 0.9375rem;
}

.data-table thead {
    background: var(--color-bg-lighter);
    border-bottom: 2px solid var(--color-border);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--color-bg-lighter);
}

.data-table code {
    background: var(--color-bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.hl-primary {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   Deployment Steps
   ======================================== */

.deployment-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    counter-reset: step-counter;
}

.deployment-steps li {
    counter-increment: step-counter;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.deployment-steps li strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.deployment-steps li p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   FAQ
   ======================================== */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem;
    cursor: pointer;
    user-select: none;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-base);
}

.faq-item summary:hover {
    background: var(--color-bg-lighter);
}

.faq-item summary h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-dark-secondary);
}

.faq-item summary::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: transform var(--transition-base);
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 1.25rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-lighter);
}

.faq-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.faq-content p:last-of-type {
    margin-bottom: 0;
}

.faq-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   Support Grid
   ======================================== */

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-base);
    text-align: center;
}

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

.support-card svg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.support-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
}

.support-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ========================================
   Release Notes
   ======================================== */

.release-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.release-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.release-version {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.release-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.release-date {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.release-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.release-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.7;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ========================================
   Badges
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-beta {
    background: #FEF3C7;
    color: #92400E;
}

.badge-admin {
    background: #DDD6FE;
    color: #3730A3;
}

.badge-compliance {
    background: #DBEAFE;
    color: #0C4A6E;
}

.badge-employee {
    background: #DBEAFE;
    color: #0C4A6E;
}

.badge-viewer {
    background: #E9D5FF;
    color: #581C87;
}

/* ========================================
   Footer
   ======================================== */

.doc-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
}

.footer-section p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-gray-300);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-gray-300);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

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

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-copyright {
        text-align: left;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .doc-section {
        padding: 3rem 1.5rem;
    }

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

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .sidebar.open {
        display: block;
    }

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

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .requirement-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .doc-footer {
        padding: 2rem 1rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .header-sticky,
    .sidebar,
    .doc-footer,
    .hero-actions {
        display: none;
    }

    .layout-container {
        flex-direction: column;
    }

    .doc-section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }

    .section-header h2 {
        page-break-after: avoid;
    }

    a {
        color: var(--color-primary);
        text-decoration: underline;
    }
}
