:root {
    --footer-bg: #1f2a44;
    --footer-link: #ffd166;
    --page-bg: #e5e5e5;
    --content-border: #c8c8c8;
    --nav-bg: #f4f4f4;
    --layout-max-width: 1140px;
    --layout-gutter: 15px;
    --forum-font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    --bs-font-sans-serif: var(--forum-font-family);
    --bs-body-font-family: var(--forum-font-family);
}

* {
    box-sizing: border-box;
}

body.forum-theme {
    background: var(--page-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--forum-font-family);
    font-size: 14px;
    line-height: 1.43rem;
    color: rgba(0, 0, 0, 0.87);
}

body.forum-theme a:not(.journal-name__title):not(.forum-locale-switcher__code) {
    color: var(--primary-color);
}

body.forum-theme a:not(.journal-name__title):not(.forum-locale-switcher__code):hover {
    color: var(--primary-color-hover);
}

#pkp_content_footer a,
#pkp_content_footer a:link,
#pkp_content_footer a:visited {
    color: #fff;
    text-decoration: underline;
}

#pkp_content_footer a:hover,
#pkp_content_footer a:focus {
    color: rgba(255, 255, 255, 0.85);
}

.pkp_structure_page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pkp_structure_content {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto 2.5rem;
    padding: 0 var(--layout-gutter);
    background: #fff;
    border: 1px solid var(--content-border);
    border-top: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pkp_structure_main {
    flex: 1 0 auto;
    padding: 30px 15px 2.5rem;
}

.pkp_structure_footer_wrapper {
    flex-shrink: 0;
    margin-top: auto;
    background: var(--footer-bg);
    color: #fff;
}

.forum-footer {
    padding: 2rem 0;
}

.forum-footer .pkp_structure_footer {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
    font-size: 0.9rem;
    line-height: 1.55;
}

header.forum {
    position: relative;
    width: 100%;
    background: transparent;
    color: #fff;
}

header.forum .forum-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "publisher journal"
        "cover cover";
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--content-border);
    border-bottom: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

header.forum .publisher {
    grid-area: publisher;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.75rem;
    background: var(--primary-color);
}

header.forum .forum-masthead__publisher-logo {
    max-height: 3.25rem;
    max-width: 100%;
    height: auto;
}

header.forum .hero {
    grid-area: cover;
    height: 10rem;
    overflow: hidden;
    background: #fff;
}

header.forum .forum-masthead__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

header.forum .journal-name {
    grid-area: journal;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.3;
    padding: 1rem 0.75rem;
    background: var(--primary-color);
}

header.forum .journal-name__title {
    display: block;
    width: 100%;
    color: #fff;
    text-decoration: none;
    padding-bottom: 1.4rem;
}

header.forum .journal-name__title:hover {
    color: #fff;
    text-decoration: underline;
}

.forum-locale-switcher {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
}

.forum-locale-switcher__list {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.forum-locale-switcher__item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.75rem;
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.45);
    vertical-align: middle;
}

.forum-locale-switcher__code {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.forum-locale-switcher__item.is-current .forum-locale-switcher__code {
    color: #fff;
    border-bottom: 2px solid #fff;
}

.forum-masthead-nav.pkp_structure_head {
    background: transparent;
    --bs-dropdown-link-color: var(--primary-color);
    --bs-dropdown-link-hover-color: var(--primary-color);
    --bs-dropdown-link-hover-bg: color-mix(in srgb, var(--primary-color) 8%, white);
    --bs-dropdown-link-active-color: var(--primary-color);
    --bs-dropdown-link-active-bg: color-mix(in srgb, var(--primary-color) 12%, white);
}

.forum-masthead-nav .pkp_head_wrapper {
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    background: var(--nav-bg);
    border: 1px solid var(--content-border);
    border-top: none;
    border-bottom: 1px solid #ddd;
}

.forum-masthead-nav .pkp_navigation_primary_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--layout-gutter);
}

.forum-masthead-nav .pkp_nav_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.forum-masthead-nav .nav-link {
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px;
    border-radius: 0;
}

.forum-masthead-nav .nav-link:hover,
.forum-masthead-nav .nav-link:focus,
.forum-masthead-nav .nav-link.show {
    color: var(--primary-color);
    background: transparent;
}

.forum-masthead-nav .dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.forum-masthead-nav .dropdown-item {
    color: var(--primary-color);
    border-left: 3px solid transparent;
}

.forum-masthead-nav .dropdown-item:hover,
.forum-masthead-nav .dropdown-item:focus,
.forum-masthead-nav .dropdown-item.active,
.forum-masthead-nav .dropdown-item:active {
    background: color-mix(in srgb, var(--primary-color) 8%, white);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.forum-masthead-nav .nav-item.current > .nav-link,
.forum-masthead-nav .dropdown-item.active {
    font-weight: 700;
}

@media (min-width: 992px) {
    .forum-masthead-nav .nav-item.current > .nav-link {
        background: #fff;
    }
}

.forum-masthead-nav__search .pkp_search {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 0;
}

.forum-masthead-nav__search .pkp_search:hover {
    color: var(--primary-color);
}

.forum-masthead-nav__toggle-shell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem var(--layout-gutter);
    background: var(--nav-bg);
    border-bottom: 1px solid #ddd;
}

.forum-masthead-nav__toggle-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pkp_structure_main h1,
.pkp_structure_main .page_title {
    font-size: 1.714rem;
    line-height: 2.143rem;
    font-weight: 700;
    margin: 0 0 1.43rem;
}

.pkp_structure_main h2 {
    font-size: 1.285rem;
    line-height: 2.143rem;
    font-weight: 700;
}

.pkp_structure_main h3 {
    font-size: 1.143rem;
    line-height: 1.43rem;
    font-weight: 700;
}

.issue-archive-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.issue-archive-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
}

.issue-archive-card__cover-link {
    display: block;
}

.issue-archive-card__cover-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--content-border);
}

.issue-archive-card__cover-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 7 / 10;
    background: #f3f3f3;
    border: 1px solid var(--content-border);
}

.issue-archive-card__body {
    flex: 1;
}

.issue-archive-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    line-height: 1.35rem;
    font-weight: 700;
}

.issue-archive-card__title a {
    color: inherit;
    text-decoration: none;
}

.issue-archive-card__title a:hover {
    color: var(--primary-color);
}

.issue-archive-card__meta {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.5rem;
}

.issue-archive-card__label {
    font-weight: 700;
}

.issue-archive-card__frontespizio {
    margin: 0.5rem 0 0;
}

.issue-archive-empty {
    margin: 0;
    color: rgba(0, 0, 0, 0.54);
    grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
    .issue-archive-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .issue-archive-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.forum-journal-home-title {
    margin: 1.25rem 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    border-bottom: 1px solid var(--content-border);
    padding-bottom: 0.35rem;
}

.homepage_about h2 {
    margin-top: 1.5rem;
}

.obj_galley_link.pdf {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.obj_galley_link.pdf:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.obj_article_details .authors .names {
    display: block;
    font-weight: 700;
}

.obj_article_details .authors .affiliation {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.obj_article_summary .meta {
    position: relative;
    padding-top: 0.357rem;
    font-size: 0.93rem;
    line-height: 1.43rem;
    color: rgba(0, 0, 0, 0.7);
}

.obj_article_summary .meta .authors,
.obj_article_summary .meta .pages {
    color: rgba(0, 0, 0, 0.54);
}

.obj_article_summary .meta .pages {
    white-space: nowrap;
}

.obj_article_summary > .title {
    font-size: 1rem;
    line-height: 1.43rem;
    font-weight: 700;
    margin: 0;
}

.obj_article_summary > .title a {
    text-decoration: none;
}

.obj_article_summary .galleys_links {
    margin: 0.714rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-flow: row nowrap;
    gap: 1rem;
}

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

.cmp_article_list > li {
    margin-bottom: 1.1rem;
}

.cmp_article_list > li:last-child {
    margin-bottom: 0;
}

.obj_issue_toc .cover {
    display: block;
    margin-bottom: 0;
}

.obj_issue_toc .cover img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 250px;
}

.obj_issue_toc .published {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.obj_issue_toc .published .label {
    display: inline;
    font-weight: 700;
}

.obj_issue_toc .published .value {
    display: inline;
}

.obj_issue_toc .sections:not(:first-child) {
    margin-top: 0;
}

.obj_issue_toc .heading {
    margin-bottom: 1rem;
}

.obj_issue_toc .heading .description > :first-child {
    margin-top: 0;
}

.obj_issue_toc .heading .description > :last-child {
    margin-bottom: 0;
}

.obj_issue_toc .section {
    position: relative;
    margin: 0.75rem 0 0.5rem;
    padding: 0.65rem 0 0.35rem;
}

.obj_issue_toc .section::before {
    content: "";
    position: absolute;
    top: 1.7215rem;
    left: 0;
    width: 100%;
    border-top: 1px solid #ddd;
}

.obj_issue_toc .section > h2 {
    display: inline-block;
    position: relative;
    left: -15px;
    margin: 0 0 0.25rem;
    padding: 0 1.0715rem;
    background: #fff;
    font-size: 1.143rem;
    font-weight: 400;
    line-height: 2.143rem;
    color: rgba(0, 0, 0, 0.54);
}

.obj_issue_toc .section .cmp_article_list {
    margin-top: 0;
}

.obj_issue_toc .cmp_article_list > li {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.obj_issue_toc .cmp_article_list > li + li {
    padding-top: 1.5rem;
}

.obj_issue_toc .cmp_article_list > li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.obj_issue_toc .section:last-child .cmp_article_list > li:last-child {
    margin-bottom: 0;
}

.forum-issue-view .forum-issue-view__layout {
    display: block;
}

.forum-issue-view .forum-issue-view__aside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.25rem;
}

.forum-issue-view .forum-issue-view__aside .cover {
    order: 1;
    max-width: 250px;
    width: 100%;
}

.forum-issue-view .forum-issue-view__aside .published {
    order: 2;
}

.obj_article_details .entry_details {
    font-size: 0.875rem;
    line-height: 1.5;
}

.obj_article_details .entry_details .item + .item {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e0e0;
}

.obj_article_details .entry_details .sub_item + .sub_item {
    margin-top: 1rem;
}

.obj_article_details .entry_details .label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: none;
    color: rgba(0, 0, 0, 0.7);
}

.obj_article_details .entry_details .value {
    color: rgba(0, 0, 0, 0.87);
}

.obj_article_details .entry_details .value a.title {
    font-weight: 700;
    text-decoration: none;
}

.obj_article_details .entry_details .value a.title:hover {
    text-decoration: underline;
}

.forum-issue-view__layout {
    display: block;
}

@media (min-width: 768px) {
    .obj_issue_toc .obj_article_summary .authors {
        padding-right: 5em;
    }

    .obj_issue_toc .obj_article_summary .pages {
        position: absolute;
        top: 0;
        right: 0;
        line-height: 2.143rem;
    }
}

@media (min-width: 992px) {
    header.forum .forum-inner {
        display: flex;
        height: 160px;
        gap: 0;
    }

    header.forum .publisher {
        flex: 0 0 16.666%;
        padding: 30px;
    }

    header.forum .hero {
        flex: 1 1 auto;
        height: 100%;
        min-height: 100%;
    }

    header.forum .journal-name {
        flex: 0 0 16.666%;
        font-size: 18px;
        padding: 20px;
    }

    .forum-issue-view .forum-issue-view__layout,
    .forum-issue-view__layout {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
        gap: 1.75rem;
        align-items: start;
    }

    .forum-issue-view .forum-issue-view__main,
    .forum-issue-view__main {
        min-width: 0;
    }

    .forum-issue-view .forum-issue-view__aside,
    .forum-issue-view__aside {
        margin-top: 0;
        position: sticky;
        top: 1rem;
    }
}

.forum-masthead-nav__toggle-shell .navbar-toggler {
    border: 1px solid #333;
    padding: 0.35rem 0.55rem;
}

.forum-masthead-nav__toggle-shell .navbar-toggler-icon {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.forum-search-submit__button {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.forum-search-submit__button:hover {
    background: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: #fff;
}

@media (max-width: 991px) {
    .pkp_structure_content {
        margin-bottom: 1.25rem;
    }
}
