/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

    This file contains rules for
    PUBLICATIONS
    that implement the UU design system specifically for Sitevision

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.list-group-item-action.publication {
    padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
}

/* Remove margin top from authors, description and type of publications */
.publication-authors,
.publication-description,
.publication-type {
    margin-top: -1rem;
}

/* Do not show the arrow after the title of the publication */
.publication-title a::after {
    display: none;
}

/* But reduce less margin top from the first element of authors, description and type of publications */
.publication-title + .publication-authors,
.publication-title + .publication-description,
.publication-title + .publication-type {
    margin-top: -.25rem;
}

/* Set style of text 'part of' of publication descriptions */
.publication-part-of {
    font-style: italic;
}

/* Set style of abstract header and strong in abstract text in publications */
.publication-abstract-header,
.publication-abstract-text strong {
    color: var(--color-text);
    font-size: var(--font-size-regular);
    font-weight: normal;
    margin-top: .75rem !important;
}

/* Position and style of links of the publication */
.publication-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    max-width: calc(100% - 65px);
    padding: .75rem 0 0;
}

/* Links of the publications should be underlined */
.publication-links a {
    text-decoration: underline;
}

/* Style and add separator between links */
.publication-links-item + .publication-links-item {
    padding-left: .5rem;
}

.publication-links-item + .publication-links-item::before {
    color: var(--color-text-muted);
    content: "|";
    float: left;
    padding-right: .5rem;
}

/* Last element of publication should not have a margin bottom */
.publication *:last-of-type {
    margin-bottom: 0;
}

/* Altmetric badge position */
.publication-altmetric {
    float: right;
    margin: 0 0 .75em .75em;
}

/* Only show one Altmetric badge */
.altmetric-embed:not(.altmetric-hidden) ~ .altmetric-embed {
    display: none;
}

/* Open access logo style and position */
.publication-open-access {
    float: right;
    margin: -52px 16px 0;
}

.publication-open-access img {
    height: 52px;
}

/* Placement of warning message for publications */
.publications-warning {
    bottom: 0px;
    left: 0px;
    position: fixed;
    right: 0px;
    z-index: 1000;
}

.publications-warning .jumbotron {
    margin-bottom: 0;
}

/* Don't restrict the width of the warning message in order to make the height as small as possible. */
.publications-warning .publications-warning-message {
    max-width: none;
}