/* Shared styles for document/article pages */

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

body {
    font-family: 'Lora', serif;
    line-height: 1.7;
    color: #000000;
    min-height: 100vh;
    background: #faf8f3;
    overflow-x: hidden;
}

.document-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.document-header {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-out;
}

.document-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.document-subtitle {
    font-size: 1.5rem;
    color: #666666;
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: 400;
}

.authors {
    margin-bottom: 2rem;
    color: #555555;
}

.author {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #000000;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #000000;
}

h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #000000;
}

p {
    margin-bottom: 1rem;
    color: #000000;
}

strong {
    color: #000000;
    font-weight: 600;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: #000000;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.document-container > p,
.document-container > h2,
.document-container > h3,
.document-container > h4,
.document-container > ul,
.document-container > ol {
    animation: fadeIn 0.5s ease-out 0.1s backwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .document-container {
        padding: 40px 24px;
    }

    .document-title {
        font-size: 2rem;
    }

    .document-subtitle {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    h4 {
        font-size: 1.05rem;
    }
}
