/* Qanoun V9.3 — reader first-paint + publication chip contrast */

/* Publication type badge: guarantee readable contrast in both themes. */
.type-chip,
.publication-card .type-chip,
.catalog-list-item-v78 .type-chip {
    background: #fff4cf !important;
    color: #4d3400 !important;
    border: 1px solid rgba(164, 112, 0, .28) !important;
    text-shadow: none !important;
    box-shadow: 0 4px 14px rgba(11, 38, 61, .08);
}

[data-bs-theme="dark"] .type-chip,
[data-bs-theme="dark"] .publication-card .type-chip,
[data-bs-theme="dark"] .catalog-list-item-v78 .type-chip {
    background: #3c3015 !important;
    color: #ffe7a0 !important;
    border-color: rgba(255, 211, 108, .38) !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
}

/* Reader metadata is now resolved asynchronously. Keep the initial loader calm
   and visible while the server inspects a very large document. */
.reader-loading-v86 [data-reader-loading-detail] {
    max-width: 680px;
    margin-inline: auto;
    line-height: 1.75;
}

.reader-loading-v86:not([hidden]) {
    animation: readerV93FadeIn .16s ease-out both;
}

@keyframes readerV93FadeIn {
    from { opacity: .35; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
