/* Special Issues & Research Topics page: one text-only card per special issue or research topic (x-special-issue-card),
   in a single full-width column. The frame, hover and label-and-value details follow the Research Projects cards;
   the code label is the shared blue publication label. */

.special-issues-count {
    margin: 18px 0 0;
    color: var(--muted-color);
    font-size: 16px;
}

.special-issues-count strong {
    color: var(--accent-color);
    font-size: 22px;
    font-weight: 600;
}

.special-issues-content {
    max-width: 1016px;
}

.special-issue-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.special-issue-list > li + li {
    margin-top: 20px;
}

.special-issue-card {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.special-issue-card:hover {
    border-color: var(--accent-border-color);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-color) 6%, transparent);
}

/* A call that is open for submissions: a green frame and a soft green glow, the green of its status badge, so the open calls
   stand out from the rest. */
.special-issue-card.is-open {
    border-color: color-mix(in srgb, var(--badge-completed-text) 60%, var(--border-color));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--badge-completed-text) 35%, transparent),
        0 6px 20px color-mix(in srgb, var(--badge-completed-text) 12%, transparent);
}

.special-issue-card.is-open:hover {
    border-color: var(--badge-completed-text);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--badge-completed-text) 55%, transparent),
        0 8px 24px color-mix(in srgb, var(--badge-completed-text) 18%, transparent);
}

/* The journal cover (the shared cover button and shadow of publication-covers.css) beside the details. */
.special-issue-body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.special-issue-cover {
    flex: 0 0 150px;
    width: 150px;
}

.special-issue-content {
    flex: 1;
    min-width: 0;
}

/* The enlarged cover dialog, as on the journal papers page. */
.special-issue-cover-dialog {
    padding: 15px;
    border: 0;
    border-radius: 8px;
    max-width: 95vw;
    max-height: 95vh;
}

.special-issue-cover-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.special-issue-cover-dialog img {
    display: block;
    max-width: 85vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.special-issue-cover-dialog .special-issue-modal-close {
    display: block;
    margin-left: auto;
    margin-bottom: 10px;
}

/* The code on the left, the type and the year toward the right. */
.special-issue-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 8px;
}

.special-issue-top .publication-label {
    margin: 0;
}

.special-issue-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 0 auto;
}

/* The editorial status pill; its colors come from research-status-badges.css. */
.special-issue-status {
    padding: 1px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
}

.special-issue-title {
    margin: 0 0 14px;
    color: var(--heading-color);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.special-issue-details {
    display: grid;
    gap: 6px;
    margin: 0;
}

.special-issue-details > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
}

.special-issue-details dt {
    color: var(--muted-color);
    font-size: 14px;
    font-weight: 600;
}

.special-issue-details dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.special-issue-details a,
.special-issue-action a,
.special-issue-action button {
    color: var(--accent-color);
}

.special-issue-details a:focus-visible,
.special-issue-action a:focus-visible,
.special-issue-action button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 3px;
}

.special-issue-action {
    margin: 14px 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .special-issue-card {
        transition: none;
    }
}

/* Phones: each label above its value. */
@media (max-width: 575.98px) {
    .special-issue-card {
        padding: 18px;
    }

    /* The editorial status pill: same size and shape as the type and year badges; its colors come from research-status-badges.css. */
.special-issue-status {
    padding: 1px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
}
    .special-issue-title {
        font-size: 17px;
    }

    .special-issue-body {
        gap: 15px;
    }

    .special-issue-cover {
        flex-basis: 100px;
        width: 100px;
    }

    .special-issue-details > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}


/* "View Call for Papers": a text button beside the issue link, like the abstract buttons of the publication pages. */
.special-issue-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
}

.special-issue-action a,
.special-issue-action button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.special-issue-action a:hover,
.special-issue-action button:hover {
    text-decoration: underline;
}

.special-issue-separator {
    color: var(--subtle-color);
}

/* The call-for-papers modal: the same frame as the abstract modals; the stored Markdown fills the body. */
.special-issue-modal {
    width: min(840px, 92vw);
    max-height: 85vh;
    padding: 0;
    border: 0;
    border-radius: 8px;
}

.special-issue-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.special-issue-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--border-color);
}

.special-issue-modal-kicker {
    margin: 0 0 4px;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.special-issue-modal-header h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
}

.special-issue-modal-close {
    flex: none;
    border: 0;
    background: none;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.special-issue-modal-body {
    padding: 24px 26px;
    max-height: 65vh;
    overflow-y: auto;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.special-issue-modal-body h4 {
    margin: 22px 0 8px;
    color: var(--heading-color);
    font-size: 16px;
    font-weight: 600;
}

.special-issue-modal-body h4:first-child {
    margin-top: 0;
}

.special-issue-modal-body p,
.special-issue-modal-body ul {
    margin-bottom: 14px;
}

.special-issue-modal-body > :last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .special-issue-modal-header,
    .special-issue-modal-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .special-issue-modal-header h3 {
        font-size: 17px;
    }
}
/* The keyword pills (markup and pill colors shared with the journal papers) sit below the details. */
.special-issue-keywords {
    margin-top: 12px;
}

/* The pill list may shrink beside the label, so the first pills follow "Keywords:" on the same line and only the rest wrap. */
.special-issue-keywords .publication-keyword-list {
    flex: 1 1 0;
    min-width: 0;
}
