/* Detail page layout */
.detail-main { max-width: 1000px; margin: 0 auto; padding: 140px 40px 60px; }
.detail-container { background: white; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); overflow: hidden; }
.detail-photo { width: 100%; height: 400px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; }
.detail-content { padding: 40px; }

.detail-taxon {
    font-size: 42px;
    font-style: italic;
    color: #2d3748;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Common names section (highlighted) */
.common-names-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

/* Shared field structure */
.section-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-lang {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.field-lang-es {
    background: #667eea;
    color: white;
}

.field-lang-eu {
    background: #764ba2;
    color: white;
}

.field-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    text-transform: none;
}

.lang-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lang-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.lang-block p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}

/* Common names: highlighted background instead of gray blocks */
.common-names-section .lang-block {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 3px solid #667eea;
}

.common-names-section .name-text {
    font-size: 17px;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.4;
}

/* Regular fields */
.detail-section {
    margin-bottom: 40px;
}

.detail-actions {
    margin-top: 40px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-taxon { font-size: 32px; }
    .section-headers,
    .lang-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .detail-photo { height: 250px; }
    .detail-content { padding: 24px; }
    .detail-main { padding: 180px 20px 40px; }
}