/* MyResearch ID journal theme. Layout follows GERR; tokens identify each journal. */
body.gerr-reading-polished {
    --journal-accent: #008080;
    --journal-accent-text: #006f72;
    --journal-surface: #f4f8f6;
    --journal-soft: #edf7f5;
    --journal-line: #d5e5e2;
    --journal-outline: #bfd6d2;
    --journal-submit: #902082;
    --journal-submit-hover: #780e6b;
}

body.eduainexus-reading-polished {
    --journal-accent: #055a9b;
    --journal-accent-text: #055a9b;
    --journal-surface: #f4f8fc;
    --journal-soft: #eaf3fa;
    --journal-line: #d7e5ef;
    --journal-outline: #b7d0e4;
    --journal-submit: #76518f;
    --journal-submit-hover: #613d79;
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) {
    --journal-font: Museo, sans-serif;
    --journal-text: #222;
    --journal-reading-width: 1092px;
    --journal-control-radius: 4px;
    font-family: var(--journal-font);
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
    :is(#main-navbar, #main-navbar > .container, #primaryNav, #primaryNav > li) {
    min-width: 0;
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
    :is(#primaryNav > li > a, #main-navbar > .container > a, .navbar-toggler):focus-visible {
    outline: 2px solid var(--journal-accent);
    outline-offset: 3px;
}

body.eduainexus-reading-polished .main-header #profileDropdown svg path {
    fill: var(--journal-accent);
}

body.eduainexus-reading-polished .main-header .gerr-mobile-search + svg path {
    stroke: var(--journal-accent);
}

body.eduainexus-reading-polished .main-header .advanced-search:is(:hover, :focus-visible) {
    color: var(--journal-accent-text);
}

@media (min-width: 992px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished):not(.gerr-reading-inner, .eduainexus-reading-inner)
        .main-header :is(#gerrHeaderParticles, #eduainexusHeaderParticles) {
        min-height: 440px;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished):not(.gerr-reading-inner, .eduainexus-reading-inner)
        .main-header :is(#gerrHeaderParticles, #eduainexusHeaderParticles) .navbar-logo-text {
        font-size: 42px;
        line-height: 1.5;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #main-navbar > .container {
        align-items: stretch !important;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #main-navbar > .container >
        :is(.gerr-home-icon, .eduainexus-home-icon) {
        flex: 0 0 48px;
        align-self: stretch;
        min-height: 60px;
        height: auto !important;
        padding: 0 14px !important;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #main-navbar #primaryNav {
        flex: 1 1 0%;
        flex-wrap: nowrap;
        align-items: stretch;
        width: auto;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #main-navbar #primaryNav > li {
        display: flex;
        flex: 1 1 auto;
        white-space: normal;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #main-navbar #primaryNav > li > a.nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        min-height: 62px !important;
        height: auto !important;
        padding: 8px clamp(8px, .75vw, 16px) !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
        text-align: center;
        white-space: normal;
    }

    body.eduainexus-reading-polished .main-header #primaryNav > li > a.nav-link:is(:hover, :focus) {
        color: var(--journal-accent-text);
        border-bottom-color: var(--journal-accent);
    }

    body.eduainexus-reading-polished .main-header #primaryNav > li > a.nav-link[href$="/about/submissions"]:is(:hover, :focus) {
        color: #fff;
        border-bottom-color: var(--journal-submit-hover);
    }
}

@media (max-width: 991.98px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header > .navbar-logo {
        display: block !important;
        max-width: 100%;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) {
        height: var(--journal-hero-height, 280px) !important;
        min-height: var(--journal-hero-height, 280px) !important;
        margin: 0;
        position: relative;
        overflow: hidden;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) > .particles-js-canvas-el {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) > :is(.gerr-identity, .eduainexus-identity) {
        z-index: 1;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) var(--journal-cover-width, 108px);
        grid-template-areas: "title cover";
        align-items: center;
        gap: var(--journal-hero-gap, 24px);
        box-sizing: border-box;
        width: 100%;
        height: auto !important;
        max-width: var(--journal-hero-width, 760px);
        padding: var(--journal-hero-padding, 26px 24px);
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) > :is(.gerr-identity, .eduainexus-identity) > a {
        display: none !important;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) :is(.gerr-title-wrapper, .eduainexus-title-wrapper) {
        grid-area: title;
        min-width: 0;
        height: auto !important;
        align-self: center;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) .navbar-logo-text {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        color: #fff;
        font-family: var(--journal-font);
        font-size: var(--journal-hero-font, 30px) !important;
        font-weight: 400;
        line-height: var(--journal-hero-line, 1.3) !important;
        white-space: normal;
        overflow-wrap: break-word;
        text-wrap: balance;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) .homepage-image {
        grid-area: cover;
        justify-self: end;
        width: var(--journal-cover-width, 108px);
        max-width: 100%;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) .homepage-image img {
        display: block;
        width: 100%;
        height: auto !important;
        max-height: var(--journal-cover-height, 154px);
        object-fit: contain;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header > .navbar:not(
        .gerr-upper-navbar, .eduainexus-upper-navbar) {
        flex-wrap: wrap;
        gap: 0;
        box-sizing: border-box;
        width: 100%;
        padding: 10px var(--journal-mobile-gutter, 20px);
        background: #fff;
        border-bottom: 1px solid var(--journal-line);
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(.gerr-mobile-logo, .eduainexus-mobile-logo) {
        min-width: 0;
        max-width: calc(100% - 64px);
        margin: 0;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header
        :is(.gerr-mobile-logo, .eduainexus-mobile-logo) img {
        display: block;
        width: auto;
        height: 28px;
        max-width: 100%;
        max-height: 28px;
        object-fit: contain;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header > .navbar .navbar-toggler {
        box-sizing: border-box;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 8px;
        color: var(--journal-accent-text);
        border: 1px solid var(--journal-outline);
        border-radius: var(--journal-control-radius);
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #main-navbar {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #main-navbar > .container {
        display: block !important;
        width: 100%;
        max-width: none;
        padding: 8px 0 0;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #main-navbar > .container >
        :is(.gerr-home-icon, .eduainexus-home-icon) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-height: 44px;
        margin: 4px 0 8px;
        padding: 0 !important;
        background: var(--journal-accent);
        border-bottom: 3px solid transparent;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #primaryNav {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #primaryNav > li {
        width: 100%;
        white-space: normal;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #primaryNav > li > a.nav-link {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        min-height: 46px;
        padding: 11px 14px;
        border: 0;
        border-left: 3px solid transparent;
        border-bottom: 1px solid var(--journal-line);
        background: transparent;
        color: var(--journal-text);
        font-size: 15px;
        line-height: 1.4;
        white-space: normal;
        text-transform: none;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #primaryNav > li > a.nav-link:is(:hover, :focus-visible) {
        color: var(--journal-accent-text);
        background: var(--journal-soft);
        border-left-color: var(--journal-accent);
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #primaryNav > li > a.nav-link[href$="/about/submissions"] {
        color: #fff;
        background: var(--journal-submit);
        border-bottom-color: transparent;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #primaryNav > li > a.nav-link[href$="/about/submissions"]:is(:hover, :focus-visible) {
        color: #fff;
        background: var(--journal-submit-hover);
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #primaryNav-userNav {
        max-width: 100%;
        margin: 12px 0 0;
        padding: 0;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .main-header #primaryNav-userNav a {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767.98px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) {
        --journal-hero-height: 244px;
        --journal-hero-width: 540px;
        --journal-hero-gap: 18px;
        --journal-hero-padding: 24px 20px;
        --journal-cover-width: 76px;
        --journal-cover-height: 110px;
        --journal-hero-font: 27px;
        --journal-hero-line: 1.28;
    }
}

@media (max-width: 359.98px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) {
        --journal-hero-gap: 14px;
        --journal-hero-padding: 24px 16px;
        --journal-cover-width: 64px;
        --journal-mobile-gutter: 16px;
    }
}

body:is(.gerr-reading-inner, .eduainexus-reading-inner) {
    --journal-hero-height: 220px;
    --journal-hero-gap: 36px;
    --journal-hero-padding: 22px 0;
    --journal-cover-width: 110px;
    --journal-hero-font: clamp(26px, 2.6vw, 34px);
}

body:is(.gerr-reading-inner, .eduainexus-reading-inner) .main-header
    :is(#gerrHeaderParticles, #eduainexusHeaderParticles) {
    height: var(--journal-hero-height) !important;
    min-height: var(--journal-hero-height) !important;
    max-height: var(--journal-hero-height);
}

body:is(.gerr-reading-inner, .eduainexus-reading-inner) .main-header
    :is(#gerrHeaderParticles, #eduainexusHeaderParticles) > :is(.gerr-identity, .eduainexus-identity) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--journal-cover-width);
    grid-template-areas: "title cover";
    align-items: center;
    gap: var(--journal-hero-gap);
    height: auto !important;
    padding: var(--journal-hero-padding);
    margin-inline: auto;
}

body:is(.gerr-reading-inner, .eduainexus-reading-inner) .main-header
    :is(#gerrHeaderParticles, #eduainexusHeaderParticles) .navbar-logo-text {
    font-size: var(--journal-hero-font) !important;
    line-height: var(--journal-hero-line, 1.3) !important;
    margin: 0;
    padding: 0;
    white-space: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
}

body:is(.gerr-reading-inner, .eduainexus-reading-inner) .main-header
    :is(#gerrHeaderParticles, #eduainexusHeaderParticles) .homepage-image {
    width: var(--journal-cover-width);
    height: auto !important;
}

@media (max-width: 991.98px) {
    body:is(.gerr-reading-inner, .eduainexus-reading-inner) {
        --journal-hero-height: 190px;
        --journal-hero-gap: 24px;
        --journal-hero-padding: 22px 24px;
        --journal-cover-width: 80px;
        --journal-cover-height: 112px;
        --journal-hero-font: 28px;
    }
}

@media (max-width: 767.98px) {
    body:is(.gerr-reading-inner, .eduainexus-reading-inner) {
        --journal-hero-height: 168px;
        --journal-hero-gap: 18px;
        --journal-hero-padding: 20px;
        --journal-cover-width: 64px;
        --journal-cover-height: 94px;
        --journal-hero-font: clamp(20px, 5.7vw, 26px);
    }
}

@media (max-width: 359.98px) {
    body:is(.gerr-reading-inner, .eduainexus-reading-inner) {
        --journal-hero-gap: 14px;
        --journal-hero-padding: 20px 16px;
        --journal-cover-width: 58px;
    }
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) .page-custom .page-content {
    font-family: var(--journal-font);
    font-size: 16px;
    line-height: 1.6;
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable {
    width: 100%;
    max-width: var(--journal-reading-width);
    margin-inline: auto;
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable > tbody > tr > td {
    border: 0;
    border-bottom: 1px solid var(--journal-line);
    vertical-align: top;
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable td.insight-title {
    background: var(--journal-surface);
    border-right: 1px solid var(--journal-line);
    font-weight: 500;
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable td.insight-desc > a {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 6px 16px;
    border: 1px solid var(--journal-outline);
    border-radius: var(--journal-control-radius);
    background: var(--journal-surface);
    color: var(--journal-accent-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: normal;
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable td.insight-desc > a:is(:hover, :focus-visible) {
    background: var(--journal-soft);
    border-color: var(--journal-accent);
    color: var(--journal-accent-text);
    box-shadow: inset 0 0 0 1px var(--journal-accent);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable td.insight-title {
        border-right: 0;
        border-bottom: 0;
    }
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) .journal-footer-polished {
    font-family: var(--journal-font);
    font-size: 16px;
    line-height: 1.5;
    padding: 30px 0 20px;
}

/* Phone banners on selected journal pages. */
@media (max-width: 767.98px) {
    html:has(> head > link[rel="canonical"]:is([href$="/journal-insights-metrics"], [href$="/author-guidelines"], [href$="/issue/archive"], [href$="/about/editorialTeam"], [href$="/editorial-team"], [href$="/research-publishing-ethics"], [href$="/reviewer"]))
        body:is(.gerr-reading-inner, .eduainexus-reading-inner) .main-header .navbar-logo
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) {
        height: auto !important;
        max-height: none;
    }

    html:has(> head > link[rel="canonical"]:is([href$="/journal-insights-metrics"], [href$="/author-guidelines"], [href$="/issue/archive"], [href$="/about/editorialTeam"], [href$="/editorial-team"], [href$="/research-publishing-ethics"], [href$="/reviewer"]))
        body:is(.gerr-reading-inner, .eduainexus-reading-inner) .main-header .navbar-logo
        :is(#gerrHeaderParticles, #eduainexusHeaderParticles) .navbar-logo-text {
        font-size: 27px !important;
    }
}

/* Responsive reviewer distribution on the GERR Reviewers page. */
html:has(> head > link[rel="canonical"][href$="/gerr/reviewer"]) #reviewerDistribution {
  width: 100%;
  table-layout: fixed;
}

@media (min-width: 768px) {
  html:has(> head > link[rel="canonical"][href$="/gerr/reviewer"]) #reviewerDistribution > tbody > tr > .title {
    width: 350px;
  }
}

@media (max-width: 767.98px) {
  html:has(> head > link[rel="canonical"][href$="/gerr/reviewer"]) #reviewerDistribution,
  html:has(> head > link[rel="canonical"][href$="/gerr/reviewer"]) #reviewerDistribution > tbody,
  html:has(> head > link[rel="canonical"][href$="/gerr/reviewer"]) #reviewerDistribution > tbody > tr,
  html:has(> head > link[rel="canonical"][href$="/gerr/reviewer"]) #reviewerDistribution > tbody > tr > td {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
  html:has(> head > link[rel="canonical"][href$="/gerr/reviewer"]) #reviewerDistribution .author-distribution__map {
    height: clamp(220px, 70vw, 320px);
    min-height: 0;
  }
}

/* Reviewer distribution maps on small screens. */
@media (max-width: 420px) {
  html:has(> head > link[rel="canonical"][href$="/eduainexus/reviewer"]) #reviewerDistributionMap {
    height: 224px;
  }

  html:has(> head > link[rel="canonical"][href$="/gerr/reviewer"]) body > .jvm-tooltip.reviewer-map-viewport-tooltip,
  html:has(> head > link[rel="canonical"][href$="/eduainexus/reviewer"]) body > .jvm-tooltip.reviewer-map-viewport-tooltip {
    position: fixed;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 16px);
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
  }
}

/* Journal homepage overview tabs. */
.journal-home-overview {
    min-width: 0;
    margin-block-start: 40px;
}

.journal-home-overview .journal-home-overview-title {
    margin: 0;
    color: var(--journal-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
}

.journal-home-overview-tabs:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block-start: 20px;
    border-bottom: 1px solid var(--journal-line);
}

.journal-home-overview-tabs > [role="tab"] {
    min-width: 0;
    min-height: 64px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--journal-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: start;
}

.journal-home-overview-tabs > [role="tab"]:hover {
    background: var(--journal-surface);
}

.journal-home-overview-tabs > [aria-selected="true"] {
    border-bottom-color: var(--journal-accent);
    background: var(--journal-soft);
}

.journal-home-overview-tabs > [role="tab"]:focus-visible {
    z-index: 1;
    outline: 2px solid var(--journal-accent);
    outline-offset: 1px;
}

.journal-home-overview-panels > .tab-pane {
    padding-block-start: 20px;
}

.journal-home-overview .journal-home-overview-panels h4 {
    margin-block-start: 0 !important;
    margin-block-end: 12px;
    font-size: 18px !important;
    font-weight: 500;
    line-height: 1.4 !important;
}

.journal-home-overview .journal-home-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.journal-home-overview .journal-home-card-grid > * {
    min-width: 0;
    margin: 0;
    padding: 18px 16px;
    border: 1px solid var(--journal-line);
    border-inline-start: 3px solid var(--journal-accent);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .035);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.journal-home-overview .journal-home-card-grid-stacked {
    gap: 10px;
    margin-block: 16px 0;
}

.journal-home-overview .journal-home-card-grid-stacked > * {
    padding: 14px 16px;
    border-radius: 4px;
    box-shadow: none;
}

@media (min-width: 768px) {
    .journal-home-overview .journal-home-card-grid:not(.journal-home-card-grid-stacked) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .journal-home-overview .journal-home-card-grid:not(.journal-home-card-grid-stacked) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .journal-home-overview-tabs:not([hidden]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journal-home-overview-tabs > [role="tab"] {
        min-height: 60px;
        padding: 10px;
    }

    .journal-home-overview-tabs > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* Journal Insights & Metrics panel alignment. */
body:is(.gerr-reading-polished, .eduainexus-reading-polished) .page-insight-metric #insightMetricTable {
    max-width: none;
}

body:is(.gerr-reading-polished, .eduainexus-reading-polished) .page-insight-metric #authorDistribution td.title {
    background: var(--journal-surface);
    border-color: var(--journal-line);
}

.page-insight-metric #authorDistribution .author-distribution__empty {
    padding: 0;
    line-height: 1.5;
    text-align: start;
}

.page-insight-metric #insightMetricTable .insight-desc > p:has(+ #eduai-author-metric) {
    margin: 16px 0 7px;
    padding: 0 0 6px;
    border-bottom: 1px solid var(--journal-outline);
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) .page-insight-metric > .page-header > .row {
        width: 100%;
        margin-inline: 0;
        padding-inline: 0;
    }
}

@media (max-width: 600px) {
    .page-insight-metric #authorDistribution > tbody > tr > td.title {
        width: 100% !important;
    }

    .page-insight-metric #authorDistribution .author-distribution__empty {
        padding-block-start: 8px;
    }
}

/* EduAI reviewer guidance needs a readable background for its white label. */
body.eduainexus-reading-polished .mrid-reviewer-page .page-content a.explore-review {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 0.25rem;
  background-color: var(--journal-accent, #055a9b);
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.eduainexus-reading-polished .mrid-reviewer-page .page-content a.explore-review:focus-visible {
  outline: 2px solid var(--journal-accent, #055a9b);
  outline-offset: 3px;
}

/* Desktop reviewer map spacing and mobile editorial controls. */
@media (min-width: 992px) {
  body:is(.gerr-reading-polished, .eduainexus-reading-polished) #reviewerDistribution > tbody > tr > td:last-child {
    padding-inline-end: 24px;
  }
  body.gerr-reading-polished #reviewerDistribution #reviewerDistributionMap {
    height: 440px;
  }
}

@media (max-width: 420px) {
  body.eduainexus-reading-polished #back-to-top[data-editorial-map-overlap] {
    visibility: hidden;
  }
}

body.eduainexus-reading-polished #back-to-top:is(:hover, :focus-visible) {
    background-color: color-mix(in srgb, var(--journal-accent) 85%, #fff);
}

/* Back-to-top visibility around journal maps on narrow screens. */
@media (max-width: 420px) {
  #back-to-top[data-journal-map-overlap] {
    visibility: hidden;
  }
}

/* Keep the shared banner and map content within the journal viewport. */
body:is(.gerr-reading-polished, .eduainexus-reading-polished) #gerrHeaderParticles {
    background-color: var(--journal-accent) !important;
    background-size: cover;
    background-position: center;
}
body.eduainexus-reading-polished #gerrHeaderParticles.eduai-banner-animated {
    background-image: none !important;
}
body:is(.gerr-reading-polished, .eduainexus-reading-polished) .gerr-primary-navbar .gerr-home-icon {
    background-color: var(--journal-accent);
}
body:is(.gerr-reading-polished, .eduainexus-reading-polished) #primaryNav > li:first-child {
    background-color: var(--journal-submit);
}
body:is(.gerr-reading-polished, .eduainexus-reading-polished) .author-distribution__map {
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 420px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) :is(#authorDistribution, #reviewerDistribution),
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) :is(#authorDistribution, #reviewerDistribution) :is(tbody,tr,td) {
        display: block;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) :is(.author-distribution__map, #editorialTeamMap, #editorialBoardMap) {
        height: 224px !important;
        min-height: 0;
        max-width: 100%;
    }
}

.mrid-editorial-distribution { margin-block: 2rem; }
#editorialDistributionMap {
    height: 440px;
    width: 100%;
    background-color: var(--journal-surface);
    border: 1px solid var(--journal-line);
    border-radius: var(--journal-control-radius);
}
@media (max-width: 420px) {
    #editorialDistributionMap { height: 224px; }
}

.jvm-tooltip.mrid-map-tooltip {
    position: fixed;
    box-sizing: border-box;
    width: max-content;
    max-width: min(288px, var(--journal-map-tooltip-available-width, calc(100vw - 16px)));
    padding: 6px 8px;
    background: var(--journal-accent);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    pointer-events: none;
}
.jvm-tooltip.mrid-map-tooltip .author-distribution__tooltip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%;
    white-space: normal;
}
.jvm-tooltip.mrid-map-tooltip .author-distribution__tooltip img {
    flex: 0 0 18px;
    width: 18px !important;
    min-width: 0 !important;
    max-width: 18px !important;
    height: 12px !important;
    min-height: 0 !important;
    margin-top: 2px;
    object-fit: contain;
}
.jvm-tooltip.mrid-map-tooltip .author-distribution__tooltip > span {
    min-width: 0;
    overflow-wrap: break-word;
}

@media (min-width: 420.01px) and (max-width: 600px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) #authorDistribution #authorDistributionMap {
        height: clamp(224px, 56vw, 300px);
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable,
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable > tbody,
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable > tbody > tr,
    body:is(.gerr-reading-polished, .eduainexus-reading-polished) #insightMetricTable > tbody > tr > td {
        box-sizing: border-box;
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}
