.main-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.text-column {
    min-width: 0;
}

.data-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-sidebar-title {
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.data-card-compact {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.data-card-compact:hover {
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.data-card-compact h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 0.5rem;
}

.data-card-compact p {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0;
    margin-top: 0.3rem;
}

.document-reference-card {
    background-color: #f0f9ff;
    border: 2px solid #0284c7;
    padding: 1rem;
    border-radius: 6px;
    text-align: left;
}

.document-reference-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 0.8rem;
    font-family: 'Merriweather', serif;
}

.document-reference-card .author {
    font-size: 0.8rem;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.document-reference-card .author strong {
    display: block;
    font-weight: 600;
}

.document-reference-card .pdf-btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.6rem 1rem;
    background-color: #0284c7;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.document-reference-card .pdf-btn:hover {
    background-color: #0369a1;
}

.document-reference-card .quote {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #bae6fd;
    line-height: 1.4;
}

.document-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .data-sidebar {
        order: 2;
    }
}