/* Editorial Team - clickable profile links on the editor cards (SSRN / ResearchGate / Google Scholar) */
.person .person__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.person .person__links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--primary-color); border-radius: 999px; background: transparent; color: var(--primary-color); font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.person .person__links a::after { content: "\2197"; font-size: 12px; }
.person .person__links a:hover, .person .person__links a:focus-visible { background: var(--primary-color); color: #ffffff; }

/* Editorial Team - keep the role headings (Managing Editor / Chief Editor) on one line at tablet widths, where their col-md-4 column is only ~213px wide */
@media (min-width: 768px) and (max-width: 991.98px) { .col-md-4 > h2 { white-space: nowrap; } }

/* Editorial Team - email line on the person cards (between the role and the profile-link pills) */
.person .person__email { display: block; margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--paragraph-color); overflow-wrap: anywhere; }
.person .person__email a { color: var(--primary-color); text-decoration: none; }
.person .person__email a:hover, .person .person__email a:focus-visible { text-decoration: underline; }

/* Editorial Team - wider lead cards: the Managing Editor / Chief Editor rows hold one card plus two empty col-md-4 columns, so on md+ the card takes half the row and the empty columns are hidden (board-member rows are unchanged) */
@media (min-width: 768px) {
  .layout-section .row:has(> .col-md-4:nth-child(2):empty) > .col-md-4:first-child { width: 50%; }
  .layout-section .row:has(> .col-md-4:nth-child(2):empty) > .col-md-4:empty { display: none !important; }
}

/* Editorial Team - two per line at 768-991px: the container is only 720px there, so the 3-up board grid gave ~207px cards. The three 3-column board rows are flattened (display: contents) into the container, which becomes a wrapping flex, so the 8 members flow 2 x 4 (~326px cards) with the same section-gap spacing. The container padding is trimmed by the 8px row gutter so cards still line up with the headings. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .layout-section .container:has(.person) { display: flex; flex-wrap: wrap; padding-left: 4px; padding-right: 4px; }
  .layout-section .container:has(.person) > .row { flex: 0 0 100%; margin-left: 0; margin-right: 0; }
  .layout-section .container:has(.person) > .row:has(> .col-md-4:nth-child(2):not(:empty)) { display: contents; }
  .layout-section .container:has(.person) > .row:has(> .col-md-4:nth-child(2):not(:empty)) > .col-md-4 { flex: 0 0 50%; width: 50%; margin-top: var(--section-gap) !important; }
  .layout-section .container:has(.person) > .row:has(> .col-md-4:nth-child(2):not(:empty)) > .col-md-4:empty { display: none !important; }
}

/* Editorial Team - full-width lead cards at 768-991px: the Managing Editor / Chief Editor cards take the whole row, ending at the same right edge as the two-per-line board grid below */
@media (min-width: 768px) and (max-width: 991.98px) {
  .layout-section .row:has(> .col-md-4:nth-child(2):empty) > .col-md-4:first-child { width: 100%; }
}

/* Editorial Team - space between stacked cards below 768px: the cards of one row used to touch (global spacing rules zero the column margins), so every card after the first in a row gets the same gap as between rows */
@media (max-width: 767.98px) {
  .layout-section .row:has(> .col-md-4:nth-child(2):not(:empty)) > .col-md-4 + .col-md-4:not(:empty) { margin-top: var(--section-gap) !important; }
}
