#header_publishers_link {
    color: var(--gold) !important;
}

.publisher_list_headers {
    display: flex;
    color: var(--gold);
    font-size: small;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--beige3);
}
.publisher_list_headers > :nth-child(1) {
    width: 45%;
}
.publisher_list_headers > :nth-child(2) {
    width: 45%;
}
.publisher_list_headers > :nth-child(3) {
    width: 10%;
}

.publisher_list {
    padding: 0;
    margin: 0;
}
.publisher_list a {
    color: var(--black3);
    text-decoration: none;
}
.publisher_list > li {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray4);
}
.publisher_list .publisher_name {
    width: 45%;
    display: inline-block;
    font-weight: 600;
}
.publisher_list .journal_list {
    width: 55%;
    display: inline-block;
    padding: 0;
}
.publisher_list .journal_list > li {
    display: flex;
    padding: 12px 0;
}
.publisher_list .journal_list > li:first-child {
    padding-top: 0;
}
.publisher_list .journal_list > li:last-child {
    padding-bottom: 0;
}
.publisher_list .journal_list > li:not(:first-child) {
    border-top: 1px solid var(--beige2);
}
.publisher_list .journal_list > li > :first-child {
    width: 82%;
    display: inline-block;
}
.publisher_list .journal_list > li > :last-child {
    width: 18%;
    display: inline-block;
}

/* Hover colours only where a pointer can hover (see style.css). */
@media (hover: hover) {
    .publisher_list a:hover {
        color: var(--beige4);
    }
}

/* Compact layout (WCAG 1.4.10): stack the publisher / journal columns into one
   column so the 45%/55% rows don't squash, and make every link a 44px row
   (the padding used to sit on the li, outside the tap target). */
@media (max-width: 960px) {
    .publisher_list_headers {
        display: none;
    }
    .publisher_list > li {
        flex-direction: column;
        gap: 10px;
        padding: 8px 0;
    }
    .publisher_list .publisher_name,
    .publisher_list .journal_list {
        width: 100%;
    }
    .publisher_list .publisher_name > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .publisher_list .journal_list > li {
        align-items: center;
        gap: 12px;
        padding: 0;
    }
    .publisher_list .journal_list > li > :first-child {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    .publisher_list .journal_list > li > :last-child {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }
}
