/* ==================================
   FOOTER (WORKING BASELINE)
================================== */

/* Hide PKP/OJS logos in footer */
.pkp_brand_footer img,
footer a img,
#immersion_content_footer .col-2 a img {
    display: none !important;
}

/* Compact footer */
footer,
.main-footer,
.site-footer {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-size: 0.9em !important;
    text-align: center !important;
}

/* ==================================
   HEADER BACKGROUND (BLACK)
================================== */

.site-header,
.pkp_site_name,
.pkp_structure_head {
    background-color: #000 !important;
}

/* ==================================
   NAVBAR (CLEAN – NO IMAGE)
================================== */

.navbar,
.navbar-inverse,
.navbar-default,
.pkp_navigation_primary {
    position: relative;
    background-color: #000 !important;
    border-color: #000 !important;
    background-image: none !important; /* Removed image */
}

/* Navbar text */
.navbar-nav > li > a,
.navbar-brand {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ==================================
   LOGO SIZE (HEADER)
================================== */

.site-header .journal-logo img,
.pkp_site_name .is_img img {
    max-height: 150px !important;
    width: auto !important;
}

/* Mobile scaling */
@media (max-width: 768px) {
    .site-header .journal-logo img,
    .pkp_site_name .is_img img {
        max-height: 120px !important;
        width: auto !important;
    }
}

/* ==================================
   GLOBAL TYPOGRAPHY
================================== */

html {
    font-size: 112.5%; /* ~18px base */
}

body {
    line-height: 1.65;
}

/* ===============================
   AUTHOR REGISTER / LOGIN BUTTONS
=============================== */

.author-actions {
    margin: 20px 0 30px 0;
}

.author-actions .button {
    display: inline-block;
    padding: 10px 22px;
    margin-right: 12px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

/* Primary button: Register */
.author-actions .author-register {
    background-color: #2c4dd6;
    color: #ffffff !important;
    border: 1px solid #2c4dd6;
}

.author-actions .author-register:hover {
    background-color: #1f3bb3;
    border-color: #1f3bb3;
}

/* Secondary button: Login */
.author-actions .author-login {
    background-color: transparent;
    color: #2c4dd6 !important;
    border: 1px solid #2c4dd6;
}

.author-actions .author-login:hover {
    background-color: rgba(44, 77, 214, 0.08);
}

/* Mobile stacking */
@media (max-width: 768px) {
    .author-actions .button {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
        text-align: center;
    }
}

/* ==========================================
   PEER REVIEW WORKFLOW IMAGE – LAYOUT FIX
========================================== */

/* Force content to clear sidebar floats */
.pkp_page_content::after {
    content: "";
    display: block;
    clear: both;
}

/* Dedicated wrapper for workflow image */
.peer-review-workflow {
    clear: both;
    width: 100%;
    margin: 30px 0;
    text-align: center;
}

/* Ensure image scales and stays centered */
.peer-review-workflow img,
.peer-review-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Prevent sidebar intrusion on images */
.pkp_page_content img {
    max-width: 100%;
}

/* ==================================
   FOOTER – SLIM CLEAN VERSION
================================== */

footer,
.main-footer,
.site-footer,
.pkp_structure_footer {
    background-color: #e3f2fd !important;
    border-top: 2px solid #0d47a1 !important;
    border-bottom: 2px solid #0d47a1 !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Tighten paragraph spacing */
footer p,
.main-footer p,
.site-footer p {
    margin: 2px 0 !important;
    line-height: 1.4 !important;
}


/* ==================================
   GLOBAL NAVY BLUE BUTTONS & LINKS
================================== */

.btn-primary,
button.btn-primary,
a.btn-primary {
    background-color: #001f3f !important;
    border-color: #001f3f !important;
    color: #ffffff !important;
}

/* Hover */
.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background-color: #003366 !important;
    border-color: #003366 !important;
}

/* Article title links */
.obj_article_summary .title a,
.cmp_title a,
a {
    color: #001f3f;
}


.page_masthead .editorial-role-title {
    color: #0b2a52;
    border-bottom: 2px solid #0b2a52;
    padding-bottom: 8px;
    margin: 32px 0 20px;
    font-size: 1.55em;
}

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

.page_masthead .editorial-card {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    background: #f4f8fc;
    border: 1px solid #c8d7e6;
    border-left: 4px solid #0b2a52;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(11, 42, 82, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page_masthead .editorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 42, 82, 0.16);
}

.page_masthead .editorial-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 20px;
}

.page_masthead .editor-photo {
    flex: 0 0 114px;
}

.page_masthead .editor-photo img {
    display: block;
    width: 114px;
    height: 128px;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    border: 1px solid #d5dee8;
    border-radius: 6px;
}

.page_masthead .editor-details {
    flex: 1 1 auto;
    min-width: 0;
}

.page_masthead .editorial-dates {
    display: block;
    margin-bottom: 5px;
    color: #68788a;
    font-size: 0.88em;
}

.page_masthead .editorial-name {
    margin-bottom: 6px;
    color: #0b2a52;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.3;
}

.page_masthead .editorial-orcid { margin-left: 6px; }
.page_masthead .editorial-orcid svg,
.page_masthead .editorial-orcid img {
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
}

.page_masthead .editorial-affiliation {
    margin-top: 4px;
    color: #475569;
    font-style: normal;
    line-height: 1.55;
}

.page_masthead .editor-biography {
    margin-top: 9px;
    line-height: 1.6;
}
.page_masthead .editor-biography > :last-child { margin-bottom: 0; }
.page_masthead .editorial-profile-link { margin-top: 10px; }
.page_masthead .editorial-profile-link a {
    color: #0b2a52;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
}
.page_masthead .editorial-profile-link a:hover,
.page_masthead .editorial-profile-link a:focus {
    color: #1f66b3;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .page_masthead .editorial-card-inner { display: block; padding: 16px; }
    .page_masthead .editor-photo { margin: 0 0 14px; }
    .page_masthead .editor-photo img { width: 96px; height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
    .page_masthead .editorial-card { transition: none; }
}


/* Editor-in-Chief emphasis */
.page_masthead .editorial-role-title:first-of-type + .editorial-team-list .editorial-card {
    background: #e8f1fb;
    border-color: #b8cce0;
    border-left: 6px solid #0b2a52;
    box-shadow: 0 4px 14px rgba(11, 42, 82, 0.16);
}

.page_masthead .editorial-role-title:first-of-type + .editorial-team-list .editorial-name {
    font-size: 1.28em;
}


/* Editorial member profile pages */
.page_about .editor-profile {
    max-width: 900px !important;
    padding: 28px !important;
    color: #243447 !important;
    background: linear-gradient(180deg, #f4f8fc 0, #ffffff 260px) !important;
    border: 1px solid #c8d7e6 !important;
    border-top: 5px solid #0b2a52 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(11, 42, 82, 0.12);
}

.page_about .editor-profile .editor-photo {
    margin: 0 auto 18px !important;
    text-align: center !important;
}

.page_about .editor-profile .editor-photo img {
    width: 150px !important;
    height: 170px !important;
    object-fit: cover;
    object-position: center top;
    padding: 4px;
    background: #ffffff;
    border: 2px solid #0b2a52 !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 16px rgba(11, 42, 82, 0.2);
}

.page_about .editor-profile > h2 {
    margin: 0 0 22px !important;
    padding: 12px 18px !important;
    color: #ffffff !important;
    background: #0b2a52 !important;
    border-radius: 7px !important;
    font-size: 1.35em;
    letter-spacing: 0.01em;
    text-align: center !important;
}

.page_about .editor-profile > p {
    margin: 0 0 12px;
    line-height: 1.7;
}

.page_about .editor-profile > p > strong:first-child {
    color: #0b2a52;
}

.page_about .editor-profile > div:not(.editor-photo) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    margin: 8px 0 22px !important;
}

.page_about .editor-profile > div:not(.editor-photo) > a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 13px !important;
    color: #0b2a52 !important;
    background: #ffffff !important;
    border: 1px solid #9eb6ce !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 5px rgba(11, 42, 82, 0.08) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.page_about .editor-profile > div:not(.editor-photo) > a:first-child,
.page_about .editor-profile > div:not(.editor-photo) > a:hover,
.page_about .editor-profile > div:not(.editor-photo) > a:focus {
    color: #ffffff !important;
    background: #0b2a52 !important;
    border-color: #0b2a52 !important;
}

.page_about .editor-profile > hr {
    margin: 24px 0 18px !important;
    border: 0 !important;
    border-top: 1px solid #c8d7e6 !important;
}

.page_about .editor-profile > h3 {
    margin: 0 0 12px;
    padding: 9px 12px;
    color: #0b2a52 !important;
    background: #e8f1fb;
    border-left: 4px solid #0b2a52;
    border-radius: 0 6px 6px 0;
    font-size: 1.15em;
}

.page_about .editor-profile ul,
.page_about .editor-profile ol {
    margin: 0 0 18px 22px !important;
    padding-left: 12px;
    line-height: 1.7 !important;
}

.page_about .editor-profile li { margin-bottom: 5px; }

.page_about .editor-profile table {
    width: 100% !important;
    margin: 4px 0 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c8d7e6 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 7px;
}

.page_about .editor-profile th {
    color: #ffffff;
    background: #0b2a52 !important;
}

.page_about .editor-profile th,
.page_about .editor-profile td {
    padding: 10px 12px !important;
    border: 0 !important;
    border-right: 1px solid #dbe5ef !important;
    border-bottom: 1px solid #dbe5ef !important;
    vertical-align: top;
}

.page_about .editor-profile tr:last-child td { border-bottom: 0 !important; }
.page_about .editor-profile th:last-child,
.page_about .editor-profile td:last-child { border-right: 0 !important; }

.page_about .editor-profile a { color: #1f66b3; }

@media (max-width: 600px) {
    .page_about .editor-profile { padding: 18px !important; }
    .page_about .editor-profile .editor-photo img { width: 125px !important; height: 140px !important; }
    .page_about .editor-profile > div:not(.editor-photo) > a { width: 100%; justify-content: center; }
    .page_about .editor-profile table { display: block; overflow-x: auto; }
}


/* Final editorial-card colour normalization (matches TMCHR) */
.page_masthead .editorial-card {
    background: #f4f8fc !important;
    border-color: #c8d7e6 !important;
    border-left-color: #0b2a52 !important;
    box-shadow: 0 3px 10px rgba(11, 42, 82, 0.12) !important;
}

.page_masthead .editorial-role-title:first-of-type + .editorial-team-list .editorial-card {
    background: #e8f1fb !important;
    border-color: #b8cce0 !important;
    border-left-color: #0b2a52 !important;
    box-shadow: 0 4px 14px rgba(11, 42, 82, 0.16) !important;
}

.page_masthead .editorial-name,
.page_masthead .editorial-role-title {
    color: #0b2a52 !important;
}

.page_masthead .editorial-affiliation {
    color: #475569 !important;
}


/* Role-aware editorial cards: TMCHR board style everywhere */
#main-content.page_masthead .editorial-card,
#main-content.page_masthead .editorial-role-title:first-of-type + .editorial-team-list .editorial-card {
    background: #e8f1fb !important;
    border-color: #b8cce0 !important;
    border-left: 6px solid #0b2a52 !important;
    box-shadow: 0 4px 14px rgba(11, 42, 82, 0.16) !important;
}

#main-content.page_masthead .editorial-role-title + .editorial-team-list[data-editorial-role*="Chief"] .editorial-card,
#main-content.page_masthead .editorial-role-title + .editorial-team-list[data-editorial-role*="chief"] .editorial-card {
    background: #d6e6f6 !important;
    border-color: #9fb9d4 !important;
    border-left-color: #08223f !important;
    box-shadow: 0 5px 16px rgba(8, 34, 63, 0.2) !important;
}
