/*
 * plugins/generic/scieloHtmlViewer/css/scielo-viewer.css
 * Basic styles to make the HTML look like a SciELO article.
 */

.scielo-container {
    font-family: 'Open Sans', 'Inter', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.scielo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.scielo-journal-title {
    font-size: 1.2rem;
    color: #0056b3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.scielo-article-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.scielo-authors {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.scielo-author {
    display: inline-block;
}

.scielo-email {
    color: #0056b3;
    text-decoration: none;
    margin-left: 5px;
}

.scielo-orcid {
    font-size: 0.8rem;
    color: #a6ce39;
    text-decoration: none;
    margin-left: 5px;
}

.scielo-affiliations {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.scielo-dates {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2rem;
}

.scielo-abstract {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-left: 4px solid #0056b3;
    text-align: left;
}

.scielo-abstract h2 {
    font-size: 1.3rem;
    margin-top: 0;
    color: #0056b3;
}

.scielo-body {
    text-align: justify;
}

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

.scielo-section h3 {
    font-size: 1.5rem;
    color: #0056b3;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.scielo-back {
    margin-top: 3rem;
}

.scielo-back h2 {
    font-size: 1.8rem;
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.scielo-reference-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.scielo-reference-item {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.scielo-citation-link {
    color: #0056b3;
    text-decoration: none;
}

.scielo-citation-link:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 2rem 0;
}

/* ===================== */
/*  ESTILOS DE TABLAS    */
/* ===================== */

.scielo-table-wrap {
    margin: 2rem 0;
    overflow: hidden;
}

/* Etiqueta y título de la tabla */
.scielo-table-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: #111;
}

.scielo-table-caption {
    font-size: 0.9rem;
    color: #333;
    font-style: normal;
    margin: 0 0 0.75rem 0;
}

/* Scroll horizontal para tablas anchas en móviles */
.scielo-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* La tabla en sí — estilo académico con líneas horizontales únicamente */
.scielo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
    border-top: 2px solid #333;    /* línea gruesa superior */
    border-bottom: 2px solid #333; /* línea gruesa inferior */
}

/* Encabezados de columna: fondo blanco, texto negro y negrita */
.scielo-table thead tr {
    border-bottom: 1px solid #666; /* línea delgada bajo el encabezado */
}

.scielo-table thead .scielo-th,
.scielo-table > thead > tr > th {
    background-color: transparent;
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
    border: none; /* sin bordes verticales */
    text-align: left;
}

/* Celdas de datos */
.scielo-table .scielo-td,
.scielo-table > tbody > tr > td,
.scielo-table > tfoot > tr > td {
    padding: 0.5rem 0.75rem;
    border: none;                           /* sin bordes verticales */
    border-top: 1px solid #ddd;            /* solo línea horizontal suave entre filas */
    vertical-align: top;
    color: #333;
}

/* Sin filas alternas — estilo publicación académica minimalista */
.scielo-table tbody tr:nth-child(even) {
    background-color: transparent;
}
.scielo-table tbody tr:hover {
    background-color: #f5f8ff;
}

/* Pie de la tabla (notas) */
.scielo-table-foot {
    padding: 0.5rem 0;
    margin-top: 0.4rem;
}

.scielo-table-fn {
    font-size: 0.82rem;
    color: #444;
    margin: 0.15rem 0;
}

/* ===================== */
/*  ESTILOS DE FIGURAS   */
/* ===================== */

.scielo-figure {
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
}

.scielo-figure-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 0.5rem;
    text-align: left;
}

.scielo-figure-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.scielo-figure-caption {
    font-size: 0.88rem;
    color: #444;
    margin-top: 0.6rem;
    text-align: left;
    font-style: italic;
}

/* Placeholder cuando la imagen no pudo resolverse */
.scielo-figure-placeholder {
    display: inline-block;
    background-color: #f0f4f8;
    border: 2px dashed #b0bec5;
    border-radius: 6px;
    padding: 2rem 3rem;
    color: #607d8b;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.scielo-figure-placeholder span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
