/* Listado de ediciones recientes: lectura y localización sin depender de portadas. */
#s-lib-scroll-top { bottom: 18px; right: 18px; }
#listado.recent-editions {
    margin: 26px 0 36px;
    color: #262a30;
    font-size: 16px;
}
#listado [hidden] { display: none !important; }
#listado .recent-intro { margin: 0 0 24px; color: #555e68; line-height: 1.6; }
#listado .recent-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding: 22px 24px;
    background: #f6f7f8;
    border: 1px solid #e1e4e7;
    border-radius: 8px;
}
#listado form { margin: 0; min-width: 0; }
#listado label { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #30353b; }
#listado .recent-search-field { position: relative; }
#listado #busqueda-ed-recientes,
#listado select {
    box-sizing: border-box;
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #aab1ba;
    border-radius: 4px;
    background: #fff;
    color: #262a30;
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
}
#listado #busqueda-ed-recientes { padding-right: 84px !important; }
#listado #busqueda-ed-recientes::placeholder { color: #68717b; font-size: 14px; }
#listado .recent-clear {
    position: absolute;
    top: 4px;
    right: 4px;
    min-height: 38px;
    padding: 6px 10px;
    border: 0;
    border-radius: 3px;
    color: #87002d;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
#listado .recent-library-controls { display: flex; gap: 10px; }
#listado .recent-library-controls select { min-width: 0; flex: 1; }
#listado .recent-apply,
#listado .recent-retry {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #87002d;
    border-radius: 4px;
    background: #87002d;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
#listado .recent-apply:hover,
#listado .recent-retry:hover { background: #650022; }
#listado .recent-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0 18px;
    border-bottom: 1px solid #d7dce1;
}
#listado .recent-summary { margin: 0; color: #555e68; font-size: 14px; }
#listado .recent-sort { display: flex; align-items: center; gap: 10px; }
#listado .recent-sort label { margin: 0; white-space: nowrap; font-weight: 400; }
#listado .recent-sort select { width: auto !important; height: 40px !important; font-size: 14px; }
#listado #lista-ed-recientes {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 36px;
    list-style: none;
    padding: 0;
    margin: 0;
}
#listado .recent-result { display: block; min-width: 0; padding: 24px 0; margin: 0; border-bottom: 1px solid #e1e4e7; }
#listado .recent-result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 22px; height: 100%; }
#listado .recent-result-content { min-width: 0; }
#listado .recent-result-title { font-size: 19px; font-weight: 600; line-height: 1.45; margin: 0 0 8px; overflow-wrap: anywhere; }
#listado .recent-result-title a { color: #87002d; text-decoration: none; }
#listado .recent-result-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
#listado .recent-result-author { font-size: 15px; line-height: 1.6; color: #414951; margin: 0 0 14px; overflow-wrap: anywhere; }
#listado .recent-result-details { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; font-size: 14px; line-height: 1.5; }
#listado .recent-result-detail { min-width: 0; }
#listado .recent-result-detail dt { font-weight: 400; font-size: 12px; color: #656e79; margin-bottom: 3px; }
#listado .recent-result-detail dd { margin: 0; color: #30353b; overflow-wrap: anywhere; }
#listado .recent-result-signature dd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
#listado .recent-result-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 20px; }
#listado .recent-result-date { margin: 0; text-align: right; line-height: 1.5; }
#listado .recent-result-date span { display: block; font-size: 12px; color: #656e79; }
#listado .recent-result-date time { font-size: 14px; color: #414951; }
#listado .recent-result-catalog { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid #d8bcc5; border-radius: 4px; color: #87002d; font-size: 14px; font-weight: 600; text-decoration: none; }
#listado .recent-result-catalog:hover { color: #650022; border-color: #87002d; background: #fbf4f6; }
#listado .recent-status { padding: 48px 24px; text-align: center; border-bottom: 1px solid #e1e4e7; }
#listado .recent-status h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; color: #30353b; }
#listado .recent-status p { color: #555e68; max-width: 580px; margin: 0 auto 18px; line-height: 1.6; }
#listado #paginacion { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 16px; padding: 0; }
#listado .recent-page-button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #ccd2d9; border-radius: 4px; color: #414951; background: #fff; font-size: 14px; cursor: pointer; }
#listado .recent-page-button:hover:not(:disabled) { background: #fbf4f6; border-color: #87002d; color: #87002d; }
#listado .recent-page-button[aria-current="page"] { background: #87002d; border-color: #87002d; color: #fff; font-weight: 600; }
#listado .recent-page-button:disabled { color: #747d87; background: #f6f7f8; cursor: default; }
#listado .recent-page-gap { padding: 6px; color: #656e79; }
#listado .recent-catalog-note { margin: 20px 0 0; color: #656e79; font-size: 12px; text-align: center; }
#listado a:focus-visible,
#listado button:focus-visible,
#listado input:focus-visible,
#listado select:focus-visible,
#listado .recent-summary:focus { outline: 3px solid #87002d; outline-offset: 3px; }
@media (max-width: 900px) {
    #listado #lista-ed-recientes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
    #listado .recent-filters { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
}
@media (max-width: 540px) {
    #listado .recent-intro { font-size: 14px; }
    #listado .recent-results-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
    #listado .recent-sort { width: 100%; }
    #listado .recent-sort select { min-width: 0; flex: 1; }
    #listado .recent-library-controls { flex-direction: column; }
    #listado .recent-library-controls select { flex: auto; }
    #listado .recent-result-layout { grid-template-columns: 1fr; gap: 18px; }
    #listado .recent-result-title { font-size: 18px; }
    #listado .recent-result-actions { flex-direction: row; align-items: center; gap: 12px; }
    #listado .recent-result-date { text-align: left; }
    #listado .recent-status { padding: 36px 12px; }
    #listado .recent-page-button { min-width: 40px; padding: 8px 10px; }
}
/* iOS amplía la página al enfocar campos de menos de 16px. */
@media (max-width: 680px), (pointer: coarse) {
    #listado .recent-sort select { font-size: 16px; }
}
