/* efbapharma.mx - blog: search + pagination (list page) and article layout (pafta + antet). Loads before mx-theme.css, so overlapping selectors are doubled up. */

/* ---- List page: search, status, empty state, pagination ---- */
.blog-search { padding: 20px 16px 8px; border-bottom: 1px solid var(--concreto); }
.blog-search label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--tinta); }
.blog-search input {
    display: block; width: 100%; max-width: 440px; min-height: 44px; padding: 9px 12px;
    font: 400 16px/1.4 var(--f-texto); color: var(--tinta); background: #fff;
    border: 1px solid #7b848a; border-radius: 2px; -webkit-appearance: none; appearance: none;
}
.blog-search input:hover { border-color: var(--grafito); }
.blog-search-status { margin: 8px 0 4px; min-height: 1.5em; font-size: 13px; color: var(--suave); }
.blog-empty { margin: 0; padding: 22px 16px; color: var(--cuerpo); border-bottom: 1px solid var(--concreto); }
.blog-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px; border-top: 1px solid var(--concreto); }
.blog-page-btn {
    min-width: 44px; min-height: 44px; padding: 0 14px; font: 500 14px/1 var(--f-texto); color: var(--cobalto);
    background: #fff; border: var(--linea) solid var(--grafito); border-radius: 2px; cursor: pointer;
}
.blog-page-btn:hover:not(:disabled) { background: var(--concreto-claro); }
.blog-page-btn.is-active { background: var(--cobalto); border-color: var(--cobalto); color: #fff; }
.blog-page-btn:disabled { color: var(--suave); border-color: var(--concreto); cursor: default; }
.blog-page-ellipsis { padding: 0 4px; color: var(--suave); }
@media (min-width: 768px) {
    .blog-search { padding: 24px 44px 10px; }
    .blog-empty { padding: 26px 44px; }
    .blog-pagination { padding: 18px 44px; }
}

/* ---- Article header pafta ---- */
.lamina.cabecera-post h1 { font-size: 28px; line-height: 1.16; max-width: 26em; margin-bottom: 14px; }
.cabecera-post .post-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; font-size: 13.5px; color: var(--suave); }
.lamina.cabecera-post .migas li:last-child { display: none; }
@media (min-width: 1100px) { .lamina.cabecera-post .migas li:last-child { display: list-item; } }
.post-portada { border-top: var(--linea) solid var(--grafito); background: #fff; }
.post-portada img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
    .lamina.cabecera-post h1 { font-size: 34px; }
}
@media (min-width: 1100px) {
    .lamina.cabecera-post { grid-template-columns: minmax(0, 1fr) 560px; }
    .lamina.cabecera-post h1 { font-size: 36px; }
    .cabecera-post .post-portada { border-top: 0; border-left: var(--linea) solid var(--grafito); display: flex; align-items: flex-end; }
}

/* ---- Article pafta: body + title-block column with the table of contents ---- */
.post-lamina { grid-template-columns: minmax(0, 1fr); }
.post-lamina > .post-antet { justify-content: flex-start; border-bottom: var(--linea) solid var(--grafito); }
.post-antet-in { display: block; }
.post-antet .antet-h { padding-bottom: 8px; }
.post-toc { padding: 0 16px 14px; font-size: 14px; line-height: 1.4; }
.post-toc ol { list-style: none; counter-reset: none; }
.post-toc li { border-top: 1px solid var(--concreto); }
.post-toc a { display: block; padding: 10px 0; min-height: 44px; text-decoration: none; }
.post-toc a:hover { text-decoration: underline; }
@media (min-width: 768px) { .post-toc { padding: 0 44px 16px; } }
@media (min-width: 1100px) {
    .post-lamina { grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; }
    .post-lamina > .post-cuerpo { grid-column: 1; grid-row: 1; }
    .post-lamina > .post-antet { grid-column: 2; grid-row: 1; border-bottom: 0; border-left: var(--linea) solid var(--grafito); }
    .post-antet-in { position: sticky; top: calc(var(--alto-cab) + var(--margen-lamina)); max-height: calc(100vh - var(--alto-cab) - 2 * var(--margen-lamina)); overflow-y: auto; }
    .post-antet .antet-h { padding: 18px 22px 12px; border-top: 0; }
    .post-toc { padding: 0 22px 18px; font-size: 13.5px; }
    .post-toc a { padding: 8px 0; min-height: 0; }
}

/* ---- Article body ---- */
.post-cuerpo { font-size: 16.5px; line-height: 1.7; }
.post-cuerpo > :first-child { margin-top: 0; }
.post-cuerpo p { max-width: 72ch; margin: 0 0 16px; }
.post-cuerpo h2 { font-size: 24px; line-height: 1.22; margin: 38px 0 12px; max-width: 30em; }
.post-cuerpo h2:first-child { margin-top: 0; }
.post-cuerpo > ul, .post-cuerpo > ol:not(.post-refs) { max-width: 72ch; margin: 0 0 18px; list-style: none; }
.post-cuerpo > ul > li, .post-cuerpo > ol:not(.post-refs) > li { position: relative; padding: 5px 0 5px 22px; }
.post-cuerpo > ul > li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 1.5px; background: var(--cobalto); }
.post-cuerpo a { overflow-wrap: anywhere; }
.post-cuerpo .faq { margin: 0 0 22px; }
.post-cuerpo .faq details > p { margin: 0; padding: 0 32px 18px 0; font-size: 16px; }
.post-note { padding: 14px 16px; background: var(--concreto-claro); font-size: 14px; line-height: 1.6; color: var(--cuerpo); }
.post-cuerpo > .post-note { max-width: none; margin: 28px 0 8px; }
.post-refs { margin: 0 0 0 1.4em; padding: 0; font-size: 13.5px; line-height: 1.55; color: var(--cuerpo); max-width: 80ch; }
.post-refs li { margin: 0 0 8px; overflow-wrap: anywhere; }

/* Tables: ruled, no card; below 768px each row becomes a labelled stack */
.post-table { width: 100%; margin: 6px 0 26px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.post-table caption { caption-side: top; text-align: left; padding: 0 0 10px; font: 600 14px/1.4 var(--f-texto); color: var(--tinta); }
.post-table th, .post-table td { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--concreto); }
.post-table thead th { border-top: var(--linea) solid var(--grafito); border-bottom: var(--linea) solid var(--grafito); font-weight: 600; color: var(--tinta); }
.post-table tbody th { font-weight: 600; color: var(--tinta); }
.post-table tbody tr:last-child th, .post-table tbody tr:last-child td { border-bottom: 1px solid var(--concreto); }
@media (max-width: 767px) {
    .post-table, .post-table tbody, .post-table tr, .post-table th, .post-table td { display: block; }
    .post-table caption { display: block; width: 100%; }
    .post-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .post-table tbody tr { padding: 12px 0 10px; border-top: var(--linea) solid var(--grafito); }
    .post-table tbody tr:last-child { border-bottom: 1px solid var(--concreto); }
    .post-table th, .post-table td { padding: 2px 0; border: 0; }
    .post-table tbody tr:last-child th, .post-table tbody tr:last-child td { border-bottom: 0; }
    .post-table td::before { content: attr(data-label); display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--suave); }
}

/* Early CTA (cta-mx.py keeps this markup identical) */
.blog-inline-cta { margin: 28px 0 30px; padding: 18px 16px 6px; background: var(--concreto-claro); border: var(--linea) solid var(--grafito); }
.blog-inline-cta p { max-width: 64ch; }
.blog-inline-cta .blog-cta-title { margin: 0 0 6px; font: 600 19px/1.3 var(--f-titulo); color: var(--tinta); }
.blog-inline-cta .cta-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 14px 0 12px; }
@media (min-width: 768px) { .blog-inline-cta { padding: 22px 26px 10px; } }

/* Closing CTA pafta */
.blog-cta .cuerpo { padding-top: 26px; padding-bottom: 28px; }

.nom { white-space: nowrap; }
