/* ============================================
   EARTHLINGS DOCUMENTS - SHARED STYLESHEET
   Universal styles for all document files (152 HTML)
   ============================================ */

/* FORCED STYLES FOR EARTHDOCUMENTVIEWER */
.document-viewer__article {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* CSS VARIABLES */
:root {
    --primary-bg: #FEFEFE;
    --section-bg: #FBFCFD;
    --sidebar-bg: #F8FAFC;
    --accent-primary: #4a90e2;
    --accent-secondary: #4a90e2;
    --accent-light: #4a90e2;
    --accent-lighter: #4a90e2;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-light: #64748B;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --highlight-bg: #EFF6FF;
    --success-bg: #DBEAFE;
    --warning-bg: #FEF3C7;
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.1);
    --font-heading: 'EB Garamond', 'Crimson Text', serif;
    --font-body: 'Inter', sans-serif;
    --line-height-relaxed: 1.75;
    --line-height-normal: 1.6;
}

/* BASE BODY */
body {
    font-family: var(--font-body);
    background: transparent;
    color: var(--text-primary);
    line-height: var(--line-height-relaxed);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* DOCUMENT HEADER */
.document-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #4a90e2 0%, #4a90e2 100%);
    color: white;
    border-radius: 12px;
}

.document-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    line-height: 1.3;
}

.document-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

/* SECTIONS */
.section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.section-number {
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: #4a90e2;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

.section-content {
    background: var(--section-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    margin: 0;
}

.section-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: var(--line-height-relaxed);
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* SUBSECTION TITLES */
.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a90e2;
    margin: 2rem 0 1rem 0;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

/* HIGHLIGHT AND EMPHASIS BOXES */
.highlight-box {
    background: var(--highlight-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    margin: 1.5rem 0;
}

.emphasis-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    margin: 1.5rem 0;
}

/* LISTS */
.section-content ul, .section-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.section-content li {
    margin-bottom: 0.75rem;
    line-height: var(--line-height-relaxed);
}

/* STRONG AND EM */
.section-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* CONCLUSION BOX */
.conclusion-box, .conclusion {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.15);
    margin-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .document-title {
        font-size: 2.25rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-content {
        padding: 1.5rem;
    }
    .document-viewer__article {
        padding: 12px !important;
    }
}
