Template:ItemCards/styles.css

From MaRDI portal
/* =====================================================
   MaRDI shared item card styles
   Save as: Template:ItemCards/styles.css
   Used by: Template:Publication/styles.css
            Template:Person/styles.css
   ===================================================== */

/* ── Section card ── */
.pub-section {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    .pub-section {
        background: #1e1e1e;
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    }
}

/* ── Section heading — force neutral colour regardless of wiki skin ── */
.pub-section-title,
.pub-section-title a {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #202122 !important;
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    .pub-section-title,
    .pub-section-title a {
        color: #eaecf0 !important;
    }
}

/* ── Meta block (no card box, just spacing) ── */
.pub-section--meta .pub-meta-rows {
    margin-top: 0.6rem;
}

.pub-section--meta {
    margin-bottom: 1rem;
}

.pub-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    line-height: 1.5;
}

.pub-meta-icon {
    text-align: center;
    color: #999;
    font-size: 21px;
    flex-shrink: 0;
    width: 22px;
}

.pub-meta-label,
.pub-meta-label a {
    color: #666 !important;
    flex-shrink: 0;
    width: 160px;
    text-decoration: none !important;
}

@media (prefers-color-scheme: dark) {
    .pub-meta-label,
    .pub-meta-label a { color: #999 !important; }
}

.pub-meta-value {
    flex: 1;
    min-width: 0;
}

/* Force MediaWiki block elements inside meta values to render inline */
.pub-meta-value p,
.pub-meta-value ul,
.pub-meta-value ol,
.pub-meta-value li {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* ── Second title inside a combined card ── */
.pub-section-title--spaced {
    margin-top: 0.75rem;
}

/* ── Two-column keyword/MSC layout ── */
.pub-kw-columns {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.pub-kw-col {
    flex: 1;
    min-width: 200px;
}

.pub-kw-col-title {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.6rem;
}

@media (prefers-color-scheme: dark) {
    .pub-kw-col-title { color: #999; }
}

/* ── MSC list ── */
.pub-msc-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── Keyword badge pills ── */
.keywords-list-badge a,
.keywords-list-badge-blue a {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin: 2px 3px 2px 0;
    text-decoration: none !important;
    white-space: nowrap;
}

.keywords-list-badge a {
    background: #FAECE7 !important;
    color: #993C1D !important;
    border: 0.5px solid #F5C4B3;
}

.keywords-list-badge a:hover {
    background: #F5C4B3 !important;
}

.keywords-list-badge-blue a {
    background: #E6F1FB !important;
    color: #185FA5 !important;
    border: 0.5px solid #B5D4F4;
}

.keywords-list-badge-blue a:hover {
    background: #B5D4F4 !important;
}

/* ── Abstract box ── */
.pub-section--abstract .pub-section-title {
    margin-bottom: 0.75rem;
}

.abstract-box {
    font-size: 0.95rem;
    line-height: 1.7;
    color: inherit;
}

/* ── Space between keywords/MSC block and first card below ── */
.pub-kw-section {
    margin-bottom: 1.5rem;
}

/* ── keywords-list spacing ── */
.pub-section .keywords-list {
    margin-top: 0.25rem;
}

/* ── Extra space between cited count and list ── */
.pub-section-cited-count + .keywords-list {
    margin-top: 0.6rem;
}

/* ── Cited-in item count shown inline after title ── */
.pub-section-title--inline {
    display: inline;
}

.pub-section-cited-count {
    display: inline;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-left: 0.4rem;
    vertical-align: middle;
}