/* Editorial Positions page: the journal cards of sections A (featured) and B (x-editorial-journal-card).
   Section C keeps its table. The card frame, image treatment and breakpoints follow the Awards page cards. */

/* The same centered content width as the Continuing Education page; section C's table stays inside it. */
.editorial-content {
    max-width: 1040px;
}

/* Section headings A, B and C: clearly below the page title, above the journal titles. */
.editorial-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.editorial-card-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.editorial-card-list > li + li {
    margin-top: 20px;
}

.editorial-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 28px;
    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;
}

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

/* The featured entry: a larger image and a soft, diffuse shadow (the border and background are the other cards'), which
   deepens on hover beyond the other cards' hover. It uses the cards' own box-shadow transition, so there is no movement.
   On the dark surfaces a shadow needs more opacity to register, so the dark theme has its own values. */
.editorial-card-featured {
    grid-template-columns: 140px minmax(0, 1fr);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.editorial-card-featured:hover {
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

:root[data-bs-theme="dark"] .editorial-card-featured {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
}

:root[data-bs-theme="dark"] .editorial-card-featured:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.58);
}

/* Image area: journal covers are upright, so the image and its placeholder use a 3:4 frame. */
.editorial-card-media {
    align-self: start;
}

.editorial-card-image {
    display: block;
}

.editorial-card-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    transition: box-shadow 0.2s ease;
}

.editorial-card-image:hover img,
.editorial-card-image:focus-visible img {
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.38);
}

.editorial-card-image:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* In the lightbox, GLightbox gives every image a 200px minimum width, which would enlarge the smaller covers.
   They are shown at their natural size (and scaled down only to fit the screen). Only this page's lightbox is affected. */
.glightbox-container .gslide-image img {
    min-width: 0;
    object-fit: contain;
}

.editorial-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--panel-color);
}

.editorial-card-placeholder .bi {
    color: color-mix(in srgb, var(--accent-color) 40%, #fff);
    font-size: 44px;
}

/* Text */
.editorial-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.editorial-card-featured .editorial-card-title {
    font-size: 19px;
}

/* The featured text is shorter than its image: centered beside it, so there is no empty block below. */
.editorial-card-featured .editorial-card-body {
    align-self: center;
}

.editorial-card-text {
    margin: 0 0 8px;
    font-size: 15.5px;
    line-height: 1.7;
}

.editorial-card-text:last-child {
    margin-bottom: 0;
}

/* Details: a label beside each value. */
.editorial-card-details {
    display: grid;
    gap: 6px;
    margin: 0;
}

.editorial-card-details > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

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

.editorial-card-details dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

/* A print and an online ISSN share one row; each stays together and the pair wraps between them on narrow screens. */
.editorial-issn {
    white-space: nowrap;
}

.editorial-issn-medium {
    color: var(--muted-color);
    font-size: 0.9em;
}

.editorial-issn-separator {
    margin: 0 6px;
    color: var(--muted-color);
}

.editorial-card-label {
    margin-right: 12px;
    color: var(--muted-color);
    font-size: 14px;
    font-weight: 600;
}

/* Indexing: small round icons on white plates (as the home page profile icons), grey until hovered or focused. */
.editorial-indexing {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    vertical-align: middle;
}

.editorial-indexing-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.editorial-indexing-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    color: var(--plate-icon-color);
    font-size: 17px;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.editorial-indexing-link img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.75);
    transition: filter 0.2s ease;
}

.editorial-indexing-link:hover,
.editorial-indexing-link:focus-visible {
    border-color: var(--profile-brand, var(--accent-color));
    color: var(--profile-brand, var(--accent-color));
}

.editorial-indexing-link:hover img,
.editorial-indexing-link:focus-visible img {
    filter: none;
}

.editorial-indexing-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Section C: a light table (subtle header, thin row separators, no striping) with four columns: the journal (with its
   section beneath), publisher, ISSN and indexing. The journal column takes the width the others leave. */
.editorial-board-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: color-mix(in srgb, var(--accent-color) 5%, transparent);
    --bs-table-color: var(--default-color);
    margin: 0;
}

.editorial-board-table thead th {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--panel-color);
    color: var(--muted-color);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.editorial-board-table thead th:first-child {
    border-top-left-radius: 8px;
}

.editorial-board-table thead th:last-child {
    border-top-right-radius: 8px;
}

.editorial-board-table tbody th,
.editorial-board-table tbody td {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-size: 15px;
    line-height: 1.5;
}

/* The screen-reader-only text is absolutely positioned: anchoring it to its cell keeps it inside the scrolling wrapper. */
.editorial-board-table tbody td {
    position: relative;
}

.editorial-board-table tbody tr:last-child > * {
    border-bottom-color: transparent;
}

.editorial-board-journal {
    width: 56%;
    font-weight: 400;
}

.editorial-board-journal a {
    font-weight: 500;
}

.editorial-board-section {
    display: block;
    margin-top: 1px;
    color: var(--muted-color);
    font-size: 13.5px;
}

.editorial-board-table th:last-child,
.editorial-board-table td:last-child {
    width: 1%;
}

.editorial-board-none {
    color: var(--muted-color);
    opacity: 0.7;
}

/* The same icons as sections A and B, at the same size and spacing (the shared .editorial-indexing rules above); a block-level
   flex row here keeps them vertically centred in the cell without the inline baseline gap. */
.editorial-board-table .editorial-indexing {
    display: flex;
    flex-wrap: nowrap;
}

.editorial-indexing-note {
    color: var(--muted-color);
    font-size: 13px;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .editorial-card,
    .editorial-card-image img,
    .editorial-indexing-link,
    .editorial-indexing-link img {
        transition: none;
    }
}

/* Tablets: a narrower image column. */
@media (max-width: 991.98px) {
    .editorial-card {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 22px;
    }

    .editorial-card-featured {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

/* Phones: image above the text, each label above its value. */
@media (max-width: 575.98px) {
    .editorial-card,
    .editorial-card-featured {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 18px;
    }

    .editorial-card-media {
        width: 120px;
    }

    .editorial-section-title {
        font-size: 20px;
    }

    /* The table scrolls sideways on phones; the journal names keep a readable width instead of being squeezed. */
    .editorial-board-journal {
        min-width: 210px;
    }

    .editorial-board-table thead th,
    .editorial-board-table tbody th,
    .editorial-board-table tbody td {
        padding-right: 12px;
        padding-left: 12px;
    }

    .editorial-card-title,
    .editorial-card-featured .editorial-card-title {
        font-size: 17px;
    }

    .editorial-card-featured .editorial-card-body {
        align-self: start;
    }

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