/* Remove bullet from actual keywords */
body.pkp_page_article .item.keywords .value::before {
    content: "" !important;
}

/* Remove bullets and show only plain text for descriptive lines */
body.pkp_page_article .item.keywords .value::after {
    content: "\AAdvances in energy conversion and management for a sustainable energy future.\A\AFocuses on innovative solutions across renewable, thermal, and hybrid energy systems.";
    white-space: pre-wrap;
    display: block;
    position: relative !important;
    padding-left: 0px !important;
    font-family: Georgia, serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    line-height: 26px !important;
    color: black !important;
    border: none !important;
    border-image: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    text-shadow: none !important;
    text-size-adjust: 100% !important;
    -webkit-font-smoothing: antialiased !important;
    -webkit-locale: "en" !important;
    height: auto !important;
    width: 516.25px !important;
    margin: -5px 0 0 -40px !important;
    padding: 0 !important;
}



/* Tighter bullet spacing for actual keywords */
body.pkp_page_article .item.keywords .value {
    display: inline-block !important;
    position: relative;
    padding-left: 4px !important;  /* tighter spacing */
}

body.pkp_page_article .item.keywords .value::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.15em;
    color: black;
    font-size: 15px;
    font-family: Georgia, serif;
}



/* Insert extra lines under the first keyword with full styling and shifted 20px to the left */
body.pkp_page_article .item.keywords .value::after {
    content: "\A• Advances in energy conversion and management for a sustainable energy future.\A\A• Focuses on innovative solutions across renewable, thermal, and hybrid energy systems.";
    white-space: pre-wrap;
    display: block;
    position: relative !important;
    padding-left: 68px !important;
    font-family: Georgia, serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    line-height: 26px !important;
    color: black !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-image-source: none !important;
    border-image-slice: 100% !important;
    border-image-width: 1 !important;
    border-image-outset: 0 !important;
    border-image-repeat: stretch !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    text-shadow: none !important;
    text-size-adjust: 100% !important;
    -webkit-font-smoothing: antialiased !important;
    -webkit-locale: "en" !important;
    height: 213px !important;
    width: 516.25px !important;
    margin: -5px 0 0 -20px !important;
    padding-bottom: 0px !important;
    padding-right: 0px !important;
    padding-top: 0px !important;
    margin-bottom: 0px !important;
    margin-right: 0px !important;
}



/* Insert bullet point in front of actual keywords */
body.pkp_page_article .item.keywords .value {
    display: inline-block !important;
    position: relative;
    padding-left: 20px !important;
}

body.pkp_page_article .item.keywords .value::before {
    content: "• ";
    position: absolute;
    left: 0;
    color: black;
    font-size: 16px;
    font-family: Georgia, serif;
}



/* Insert extra lines under the first keyword with spacing between lines */
body.pkp_page_article .item.keywords .value::after {
    content: "\A• Advances in energy conversion and management for a sustainable energy future.\A\A• Focuses on innovative solutions across renewable, thermal, and hybrid energy systems.";
    white-space: pre-wrap;
    display: block;
    font-family: Georgia, serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    line-height: 26px !important;
    color: black !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-image-source: none !important;
    border-image-slice: 100% !important;
    border-image-width: 1 !important;
    border-image-outset: 0 !important;
    border-image-repeat: stretch !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    height: 166px !important;
    margin: -5px 0 0 0 !important;
    padding: 0 !important;
    text-shadow: none !important;
    text-size-adjust: 100% !important;
    width: 516.25px !important;
    -webkit-font-smoothing: antialiased !important;
    -webkit-locale: "en" !important;
}



.pkp_page_index .current_issue {
    display: none !important;
    visibility: hidden !important;
}

[class*="bread"] { display: none !important; visibility: hidden !important; }

.pkp_structure_page, body > div.wrapper, body > div.container, body > div.page, body > main, .pkp_structure_content, .pkp_structure_main, #main-content, .page, .pkp_page_index {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page_title, h1.page_title, h2.page_title, h1, h2 { display: none !important; }
/* Make main navbar fully white and remove green sides */
.navbar, .pkp_navigation_primary_wrapper, .pkp_navigation_primary {
    background-color: #ffffff !important;
    border: none !important;
}

/* Ensure nav text is black */
.navbar a, .pkp_navigation_primary a {
    color: #000000 !important;
}

/* Override Search box background */
.pkp_site_nav_search {
    background-color: #ffffff !important;
    border: none !important;
}

/* Remove any container green background */
.header_view, .pkp_structure_head, .pkp_site_name, .pkp_navigation_user_wrapper {
    background-color: #ffffff !important;
}

/* Remove padding/margin that reveals green beneath */
.navbar .container, .pkp_navigation_primary_wrapper > .container {
    background-color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix search button hover color */
.pkp_site_nav_search:hover {
    background-color: #f1f1f1 !important;
}


/* Add green background next to the logo area */
.pkp_site_name, .pkp_brand, .pkp_site_name_wrapper {
    background-color: #6f8500 !important;
}


/* Increase logo size */
.pkp_site_name img,
.logo-section img {
    height: 220px !important;  /* adjust as needed */
    max-height: 220px !important;
    width: auto;
}


/* Move logo slightly to the right */
.pkp_site_name img,
.logo-section img {
    margin-left: 0 !important;
}


/* Hide "Platform & workflow by OJS/PKP" footer element */
.pkp_brand_footer {
    display: none !important;
}


/* ===== Hybrid Link Styling in the Green Banner ===== */
.pkp_structure_head .hybrid-link,
.pkp_site_name_wrapper .hybrid-link {
    color: #ffffff !important;      /* white text */
    font-size: 16px;
    font-weight: normal;
    margin-left: 25px;              /* spacing from logo/title */
    text-decoration: underline;
}

.pkp_structure_head .hybrid-link:hover,
.pkp_site_name_wrapper .hybrid-link:hover {
    color: #ffe177 !important;      /* light yellow on hover */
    text-decoration: none;
}



/* Position the link text next to the logo inside the green header */
.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
    background-color: #6B8300 !important;
    padding-left: 20px;
}


.pkp_site_name_wrapper::before {
    content: "    Energy Conversions";
    font-size: 28px;
    font-weight: normal;
    color: white;
    margin-left: 62px;
    display: block;
    text-decoration: underline;
    cursor: pointer;
}

.pkp_site_name_wrapper::after {
    content: "Supports open access";
    font-size: 15px;
    font-weight: normal;
    color: white;
    display: block;
    margin-top: 70px;
    text-align: left;
    margin-left: -478px; /* Increased spacing */
}

.pkp_site_name_wrapper:hover::before,
.pkp_site_name_wrapper:hover::after {
    color: white;
    text-decoration: none;
}


.pkp_site_name_wrapper::after:hover {
    color: white;
    text-decoration: none;
}

/* === Underline title & subtitle only on hover === */
.pkp_site_name_wrapper::before,
.pkp_site_name_wrapper::after {
    text-decoration: none;  /* default: no underline */
}

.pkp_site_name_wrapper:hover::before,
.pkp_site_name_wrapper:hover::after {
    text-decoration: underline;  /* show underline on hover */
}

/* === Ensure logo on the left and text to its right === */
.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
}

.pkp_site_name_wrapper .pkp_site_name,
.pkp_site_name_wrapper img {
    order: 1;  /* logo first */
}

.pkp_site_name_wrapper::before {
    order: 2;  /* title next */
}

.pkp_site_name_wrapper::after {
    order: 3;  /* subtitle next */
}


/* === ScienceDirect-like Navigation Bar styling === */
.pkp_navigation_primary_wrapper, .pkp_navigation_primary {
    background-color: #ffffff !important;      /* white background */
    border-bottom: 1px solid #e0e0e0 !important;  /* subtle bottom border */
}

/* Make list items horizontal with separators */
.pkp_navigation_primary > li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-right: 1px solid #e0e0e0 !important;   /* vertical divider */
}

.pkp_navigation_primary > li:last-child {
    border-right: none !important;   /* remove divider for last item */
}

.pkp_navigation_primary > li > a {
    color: #000000 !important;        /* black text */
    font-weight: 600 !important;      /* semi‑bold */
    text-transform: none !important;  /* normal case */
    padding: 14px 20px !important;    /* spacing similar to ScienceDirect */
    display: block !important;
    transition: all 0.2s ease-in-out !important;
}

/* Hover & active states mimic ScienceDirect orange highlight */
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #ff6c00 !important;        /* ScienceDirect orange */
    text-decoration: none !important;
    border-bottom: 3px solid #ff6c00 !important; /* bold orange underline */
}

/* Active (current) page */
.pkp_navigation_primary > li.current > a,
.pkp_navigation_primary > li > a[aria-current="page"] {
    color: #ff6c00 !important;
    border-bottom: 3px solid #ff6c00 !important;
}


/* Push the last two nav items to the right */
.pkp_navigation_primary {
    display: flex !important;
    justify-content: space-between !important;
}



/* Push the last two nav items even more to the right */


/* Push the last two nav items even more to the right */


/* === ScienceDirect Screenshot-Style Navigation Bar === */
.pkp_navigation_primary_wrapper, .pkp_navigation_primary {
    background-color: #ffffff !important;
    border-bottom: 1px solid #ccc !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
}

/* Make nav bar full width and horizontal */
.pkp_navigation_primary {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Style nav items */
.pkp_navigation_primary > li {
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    border-right: 1px solid #ddd !important;
    white-space: nowrap !important;
}

.pkp_navigation_primary > li:last-child {
    border-right: none !important;
}

/* Nav links */
.pkp_navigation_primary > li > a {
    color: #000000 !important; /* blue text */
    font-weight: normal !important;
    font-size: 11px !important;
    text-decoration: none !important;
    padding: 16px 0 !important;
    display: inline-block !important;
    transition: 0.2s ease-in-out;
}

/* Hover effect: blue underline */
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    text-decoration: underline !important;
    color: #333333 !important;
}

/* Push last two items to far right */



/* === Hide the search bar completely === */
.pkp_site_nav_search,
.pkp_navigation_search_wrapper,
.pkp_navbar_search_wrapper,
li.pkp_nav_search,
#pkpSearchNavbar {
    display: none !important;
}



/* === Force split layout using spacer between left and right groups === */

/* Flex nav container */
.pkp_navigation_primary {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
}

/* Assign specific order to known items */
.pkp_navigation_primary > li:nth-child(1) { order: 1; } /* About */
.pkp_navigation_primary > li:nth-child(2) { order: 2; } /* Publish */
.pkp_navigation_primary > li:nth-child(3) { order: 3; } /* Search */

/* Create spacer after search to push remaining to right */
.pkp_navigation_primary > li:nth-child(3)::after {
    content: "";
    flex-grow: 1;
}

/* Right items: Submit & Guide */
.pkp_navigation_primary > li:nth-last-child(2) {
    order: 4;
    margin-left: auto !important;
}
.pkp_navigation_primary > li:last-child {
    order: 5;
}


/* === Enhanced visual split using a dedicated spacer li === */

/* Force flex layout */
.pkp_navigation_primary {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 20px !important;
}

/* Left-aligned group */
.pkp_navigation_primary > li:nth-child(1),
.pkp_navigation_primary > li:nth-child(2),
.pkp_navigation_primary > li:nth-child(3) {
    order: 1;
}

/* Spacer li: inject in the HTML as <li class="nav-spacer"></li> */
.pkp_navigation_primary > li.nav-spacer {
    flex-grow: 1 !important;
    pointer-events: none;
    height: 2px;
    background: none;
    border: none;
    order: 2;
}

/* Right-aligned group */
.pkp_navigation_primary > li:nth-last-child(2),
.pkp_navigation_primary > li:last-child {
    order: 3;
}


/* === Final push to screen edge === */

/* Remove internal padding on nav bar to eliminate right gap */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    padding: 0 !important;
    margin: 0 !important;
}

/* Stronger spacer to force right items to edge */
.pkp_navigation_primary > li.nav-spacer {
    flex-grow: 999 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* === FINAL PATCH: remove all container constraints === */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    width: 85vw !important;
    max-width: 85vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Also target inner .container if present */
.pkp_navigation_primary_wrapper > .container,
.navbar .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* === Fix spacer glitch: prevent visual white block at start === */
.pkp_navigation_primary > li.nav-spacer {
    flex-grow: 1 !important;
    order: 99; /* ensure it comes after left items */
    visibility: hidden !important;
    height: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === Clean and align navigation bar like the screenshot === */

/* Nav items are evenly spaced with consistent dividers */
.pkp_navigation_primary {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background-color: #ffffff !important;
    border-bottom: 2px solid #6f8500 !important;
}

/* Each item has padding and right border */
.pkp_navigation_primary > li {
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    border-right: 1px solid #ccc !important;
    white-space: nowrap !important;
}

/* Remove border from last item */
.pkp_navigation_primary > li:last-child {
    border-right: none !important;
}

/* Link styling */
.pkp_navigation_primary > li > a {
    color: #003a8c !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    padding: 14px 0 !important;
    display: block !important;
    transition: 0.2s ease-in-out;
}

/* Hover effect */
.pkp_navigation_primary > li > a:hover {
    color: #ff6c00 !important;
    text-decoration: none !important;
    border-bottom: 2px solid #ff6c00 !important;
}

/* === Refined Font Styling and Hover Effects for Navigation Links === */

.pkp_navigation_primary > li > a {
    color: #1a1a1a !important;        /* Darker black for better readability */
    font-weight: 500 !important;     /* Medium boldness */
    font-size: 15px !important;      /* Slightly larger for clarity */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    padding: 16px 0 !important;
    display: block !important;
    transition: 0.2s ease-in-out;
}

.pkp_navigation_primary > li > a:hover {
    color: #ff6c00 !important;                    /* ScienceDirect orange */
    text-decoration: underline !important;        /* Simple underline on hover */
}

/* Optional soft background for the nav bar */
.pkp_navigation_primary {
    background-color: #fcfcfc !important; /* very light gray */
}

/* === Increase spacing for "Search in this journal" nav item === */
.pkp_navigation_primary > li:nth-child(3) {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* === Apply icon only to "Search in this journal" by URL match === */
.pkp_navigation_primary > li > a[href*="search"] {
    background-image: url('https://energyconversions.org/public/site/images/editor/mceclip0.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 36px 36px;
    padding-left: 46px !important;
}

/* Split the background next to the logo: 20% white top, 80% green bottom */
.pkp_site_name_wrapper {
    background: linear-gradient(to bottom, #fff 0 20%, #6f8500 20% 100%) !important;
}

.pkp_site_name img,
.logo-section img {
    margin-top: -5px !important;
}

/* Make green header full viewport width */
.pkp_site_name_wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box !important;
}

/* Move the logo up to overlap navigation */
.pkp_site_name img,
.logo-section img {
    position: relative !important;
    z-index: 10 !important;
    margin-top: -5px !important;
    max-height: 220px !important;
}

/* Extend navigation bar to full viewport width with extra 10px outward */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50% - 10px) !important;  /* Move 10px further left */
    margin-right: calc(-50vw + 50% - 10px) !important; /* Move 10px further right */
    padding-left: 30px !important;  /* Add padding to keep content spaced from edges */
    padding-right: 30px !important;
    box-sizing: border-box !important;
}

.pkp_site_name img,
.logo-section img {
    margin-top: 10px !important; /* adjust this value to push the logo down */
}

.pkp_site_name img,
.logo-section img {
    margin-top: 5px !important; /* less margin to move logo up */
}

.pkp_site_name img,
.logo-section img {
    margin-top: -5px !important; /* 10px higher than 5px */
}

/* Only make the ScienceDirects link orange */
.pkp_navigation_user a[href*="ScienceDirects"] {
    color: orange !important;
    font-weight: 600 !important;
}

/* Reset other user nav links to default color */
.pkp_navigation_user a:not([href*="ScienceDirects"]) {
    color: initial !important;
    font-weight: normal !important;
}

/* Make only the ScienceDirects link orange and bold with icon */
.pkp_navigation_user a[href*="ScienceDirects"] {
    position: relative;
    padding-left: 40px !important;
    background-image: url('https://i.imgur.com/yblBYRq.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 30px 30px !important;
    color: orange !important;
    font-weight: 600 !important;
}

/* Hover underline and color for ScienceDirects */
.pkp_navigation_user a[href*="ScienceDirects"]:hover {
    text-decoration: underline !important;
    color: #ff6c00 !important;
}

/* Reset other user nav links to default */
.pkp_navigation_user a:not([href*="ScienceDirects"]) {
    color: initial !important;
    font-weight: normal !important;
}

.pkp_navigation_user a[href*="ScienceDirects"] {
    position: relative;
    padding-left: 58px !important;  /* increase padding to match bigger icon */
    background-image: url('https://i.imgur.com/yblBYRq.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 48px 48px !important;
    color: orange !important;
    font-weight: 600 !important;
}

/* Increase height and vertical padding of the top navigation bar */
.pkp_navigation_user {
    height: 70px !important;         /* increase total height */
    line-height: 70px !important;    /* vertically center text */
}

/* Increase padding inside links for more vertical space */
.pkp_navigation_user a {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Increase height and vertical padding of the top navigation bar more */
.pkp_navigation_user {
    height: 90px !important;         /* larger total height */
    line-height: 90px !important;    /* vertically center text */
}

/* Increase padding inside links for more vertical space */
.pkp_navigation_user a {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Push down the main page content by 50px to avoid overlap with tall nav bar */
.pkp_structure_page {
    margin-top: 30px !important;
}

/* Push down all main content below the navigation bar */
body > div.wrapper,
body > div.container,
body > div.page,
body > main,
.pkp_structure_page {
    margin-top: 30px !important;
    padding-top: 30px !important;
}

/* Push the navigation bar up by 20px */
.pkp_navigation_user {
    margin-top: -5px !important;
}

/* Push the navigation bar up by 70px total */
.pkp_navigation_user {
    margin-top: -70px !important;
}

/* Make the user nav container flex */
.pkp_navigation_user {
    display: flex !important;
    align-items: center !important;
}

/* Push the "ScienceDirects" item (first link) to the far left */
.pkp_navigation_user a[href*="ScienceDirects"] {
    margin-right: auto !important;
}

/* Increase horizontal spacing between navigation links */
.pkp_navigation_user a {
    margin-left: 30px !important;
    margin-right: 30px !important;
}

/* Move the whole navigation bar 50px to the left */
.pkp_navigation_user {
    margin-left: -50px !important;
}

/* Move the whole navigation bar 150px to the left */
.pkp_navigation_user {
    margin-left: -150px !important;
}

/* Move the whole navigation bar 230px to the left */
.pkp_navigation_user {
    margin-left: -230px !important;
}

/* Make dash-like navigation items text white and inline */
.pkp_navigation_user a[href*="-"],
.pkp_navigation_user a[href*="--"],
.pkp_navigation_user a[href*="_"],
.pkp_navigation_user a[href*="__"],
.pkp_navigation_user a[href*="___"],
.pkp_navigation_user a[href*="____"] {
    color: white !important;
    white-space: nowrap !important; /* Prevent text from wrapping */
}

/* Make Journals & Books navigation item text black */
.pkp_navigation_user a[href*="Journals"] {
    color: black !important;
}

/* Prevent navigation item text from wrapping to multiple lines */
.pkp_navigation_user a {
    white-space: nowrap !important;
}

.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/help"] {
    position: relative;
    padding-left: 40px !important; /* space for icon */
    background-image: url('https://i.imgur.com/gLAhF4M.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 24px 24px !important;
}

/* Increase font size for all navigation items */
.pkp_navigation_user a {
    font-size: 16px !important;
    text-decoration: none !important; /* adjust size as needed */
}

/* Apply bold sans-serif font style to navigation items */
.pkp_navigation_user a {
    font-family: 'Open Sans', Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* Apply High Tower Text serif font style to navigation items */
.pkp_navigation_user a {
    font-family: 'High Tower Text', serif !important;
    font-weight: normal !important;
    letter-spacing: normal !important;
}

/* All nav items use High Tower Text */
.pkp_navigation_user a {
    font-family: 'High Tower Text', serif !important;
    font-weight: normal !important;
    letter-spacing: normal !important;
}

/* Except ScienceDirects keeps Arial */
.pkp_navigation_user a[href*="ScienceDirects"] {
    font-family: Arial, sans-serif !important;
    font-weight: 600 !important;
    color: orange !important;
}

.pkp_navigation_user a[href*="Help"] {
    background-size: 40px 40px !important;
    padding-left: 56px !important; /* increase padding to fit larger icon */
}

.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/help"] {
    background-size: 40px 40px !important;
    padding-left: 56px !important;
    background-position-x: 10px !important; /* adjust horizontal position */
}

.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/help"] {
    background-size: 36px 36px !important;
    padding-left: 52px !important; /* adjust padding to match smaller icon */
    background-position-x: 10px !important;
}

.pkp_navigation_user a[href*="account"] {
    position: relative;
    padding-left: 40px !important; /* space for icon */
    background-image: url('https://i.imgur.com/uuVPc9w.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px 24px; /* adjust icon size */
}

.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/login"] {
    position: relative;
    padding-left: 40px !important; /* space for icon */
    background-image: url('https://i.imgur.com/uuVPc9w.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px 24px; /* adjust icon size */
}

.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/Signin"] {
    position: relative;
    padding-left: 40px !important; /* space for icon */
    background-image: url('https://i.imgur.com/BhMmJRN.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px 24px; /* adjust icon size */
}

.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/search"] {
    position: relative;
    padding-left: 40px !important; /* space for icon */
    background-image: url('https://i.imgur.com/IANw9qU.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px 24px; /* adjust icon size */
}

.metrics-container {
    margin-top: 50px !important;
}

.metrics-container {
    transform: translateY(50px) !important;
    transition: transform 0.3s ease;
}

a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    display: inline-block !important;
    margin-top: 50px !important;
}

a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    display: inline-block !important;
    margin-top: 300px !important;
}

a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    display: inline-block !important;
    margin-top: 300px !important;
    margin-left: -300px !important;
}

a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    margin-left: 1px !important;
}

a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    margin-left: -50px !important;
}

a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    margin-left: -100px !important;
}

a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    margin-left: -400px !important;
}

/* Split CiteScore and Impact Factor into two lines: number 20px, text 15px, both unbolded */
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/CiteScores"] {
    position: relative;
    color: #fff !important;
    font-weight: 700 !important;
}
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::before,
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::before {
    content: "9.1";
    display: block;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 2px #444;
}
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::after,
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::after {
    content: "CiteScore";
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 0 2px #444;
    margin-top: -17px;
    letter-spacing: .5px;
}
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/CiteScores"] {
    font-size: 0 !important;
}

/* Impact Factor */
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"],
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    position: relative;
    color: #fff !important;
    font-weight: 700 !important;
}
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::before,
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::before {
    content: "6.2";
    display: block;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 2px #444;
}
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::after,
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::after {
    content: "Impact Factor";
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 0 2px #444;
    margin-top: -17px;
    letter-spacing: .5px;
}
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"],
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    font-size: 0 !important;
}


/* Center number and label in CiteScore and Impact Factor navigation links */
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"],
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    position: relative;
    color: #fff !important;
    font-weight: 700 !important;
    text-align: center !important;
}


/* Move Impact Factor and separator 200px to the left */
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    border-left: 2px solid #fff !important;
    padding-left: 0 !important;
    margin-left: -400px !important;
}


/* Left-align the CiteScore and Impact Factor items */
a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    text-align: left !important;
}


/* Force left align for both CiteScore and Impact Factor, and their numbers/text lines */
a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    text-align: left !important;
    justify-content: flex-start !important;
}

a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::before,
a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::after,
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::before,
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::after {
    text-align: left !important;
    margin-left: 0 !important;
    display: block !important;
    width: 100%;
    justify-content: flex-start !important;
}


/* Push Impact Factor 25px away from the separator, keep left-aligned and overlapped */
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    border-left: 2px solid #fff !important;
    margin-left: -400px !important;
    padding-left: 25px !important;
    text-align: left !important;
}


a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    text-align: left !important;
    justify-content: flex-start !important;
}

a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::before,
a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::after,
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::before,
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::after {
    text-align: left !important;
    margin-left: 0 !important;
    display: block !important;
    width: 100%;
    justify-content: flex-start !important;
}


a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::after,
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::after {
    margin-top: -22px !important;
}


/* Remove vertical space from possible metric container parents */
.pkp_structure_head, .pkp_site_name_wrapper, .metrics-container, .journal-metrics, .metric-bar, .metrics {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Remove any top/bottom space from the metric links themselves */
a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: top !important;
}


a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    margin-top: 400px !important;
}


a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::after,
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::after {
    margin-top: 10px !important;
}


/* Universal nav links color and background fix */
.pkp_navigation_primary a,
.pkp_navigation_user a,
.navbar a {
  color: #000000 !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

.pkp_navigation_primary a:hover,
.pkp_navigation_user a:hover,
.navbar a:hover,
.pkp_navigation_primary a:focus,
.pkp_navigation_user a:focus,
.navbar a:focus,
.pkp_navigation_primary a:active,
.pkp_navigation_user a:active,
.navbar a:active,
.pkp_navigation_primary a:visited,
.pkp_navigation_user a:visited,
.navbar a:visited {
  color: #000000 !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

.pkp_navigation_primary a:focus,
.pkp_navigation_user a:focus,
.navbar a:focus {
  outline: none !important;
  box-shadow: none !important;
}


/* Keep ScienceDirects link always orange */
a[href="https://energyconversions.org/index.php/ecm/ScienceDirects"] {
    color: orange !important;
}


/* ScienceDirects link with icon and orange color */
.pkp_navigation_user a[href*="ScienceDirects"] {
    position: relative;
    padding-left: 58px !important;  /* space for the icon */
    background-image: url('https://i.imgur.com/yblBYRq.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 48px 48px !important;
    color: orange !important;
    font-weight: 600 !important;
}
.pkp_navigation_user a[href*="ScienceDirects"]:hover {
    text-decoration: underline !important;
    color: #ff6c00 !important;
}


/* Make dash and underscore navigation items white and prevent wrapping */
.pkp_navigation_user a[href*="-"],
.pkp_navigation_user a[href*="--"],
.pkp_navigation_user a[href*="_"],
.pkp_navigation_user a[href*="__"],
.pkp_navigation_user a[href*="___"],
.pkp_navigation_user a[href*="____"] {
    color: white !important;
    white-space: nowrap !important; /* Prevent text wrapping */
}


/* Make Journals & Books nav item black */
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"] {
    color: black !important;
}


/* Stronger override to keep Journals & Books link black on all states */
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"],
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:link,
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:visited,
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:hover,
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:focus,
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:active {
  color: black !important;
  text-decoration: none !important;
  background: none !important;
}

.pkp_structure_main {
  margin-left: 10px !important;
  margin-right: 10px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.pkp_structure_content,
.pkp_structure_main {
  margin-left: 5px !important;
  margin-right: 5px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}



/* === REMOVE SIDE BARS AND MAKE CONTENT FULL WIDTH === */
.pkps_structure_sidebar,
#sidebar,
.left_sidebar,
.right_sidebar,
.pkp_structure_sidebar {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_structure_main,
.pkp_structure_content,
#main-content,
.page,
.pkp_page_index {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}



/* Prevent horizontal scroll caused by negative margins */
body {
    overflow-x: hidden !important;
}

/* Negative side margins for main content */
.pkp_structure_main,
.pkp_structure_content,
#main-content,
.page,
.pkp_page_index {
    margin-left: -100px !important;
    margin-right: -100px !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
}

/* Centered safe readable content, 1300px max */
.pkp_structure_main > *,
.pkp_structure_content > *,
#main-content > *,
.page > *,
.pkp_page_index > * {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}



.pkp_structure_footer {
    position: relative !important;
    background: #fff !important;
    border-top: 1px solid #ff6c00 !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
}
.pkp_structure_footer::after {
    content: "";
    display: block;
    position: absolute;
    left: 40px;
    top: 18px;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('https://i.imgur.com/yblBYRq.png');
    background-image: image-set(
      url('https://i.imgur.com/yblBYRq.png') type('image/png'),
      url('https://i.imgur.com/yblBYRq.jpg') type('image/jpeg')
    );
}



.pkp_structure_footer {
      margin-top: -400px !important; /* moved up 50px more */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
}

.pkp_structure_footer p,
.pkp_structure_footer span,
.pkp_structure_footer div {
      margin-top: -400px !important; /* moved up 50px more */
    padding-top: 0 !important;
}



.pkp_structure_footer,
.pkp_structure_footer p,
.pkp_structure_footer span,
.pkp_structure_footer div {
    line-height: 0.005 !important;
}



/* === ECMJ Advertisement Bar (CSS Only) === */


/* === ECMJ Advertisement Bar (Imgur Image E1zqAu8, White Sides & White Border) === */
body::before {
  content: "";
  display: block;
  width: 100vw;
  max-width: 100vw;
  height: 90px; /* Adjust height if needed */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
  background-image: url('https://i.imgur.com/E1zqAu8.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-bottom: 2px solid #fff;
  z-index: 9999;
  position: relative;
}



/* === ScienceDirect-style Article Page Layout === */
body.pkp_page_article {
  background-color: #f8f8f8;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  padding: 20px;
}

/* Article Container */
.pkp_page_article .obj_article_details {
  background: #ffffff;
  max-width: 960px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Article Title */
.pkp_page_article .article-details-header h1 {
  font-size: 30px;
  font-weight: normal;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Author Block */
.pkp_page_article .article-details-author {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
}

/* Metadata (DOI, Dates, etc.) */
.pkp_page_article .article-details-meta {
  font-size: 13px;
  color: #666;
  background: #f0f0f0;
  padding: 10px 15px;
  margin-bottom: -3px;
  border-left: 4px solid #0077cc;
}

/* Abstract Block */
.pkp_page_article .article-details-abstract {
  font-size: 17px;
  line-height: 1.6;
  background: #f9f9f9;
  padding: 15px;
  margin-top: 10px;
  border-left: 4px solid #0077cc;
}



/* Journal title text and left-hand image above article */
.page_article .obj_article_details::before {
  content: "    Energy Conversions";
  display: block;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  color: black;
  height: 100px;
  line-height: 100px;
  margin-bottom: 10px;
  margin-left: 0px;

  background-image: url('https://i.imgur.com/x6Igy8y.png'), url('https://i.imgur.com/VLQRjEs.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: left center, calc(100% - 300px) center;
  background-size: contain, contain;
  padding: 0 120px;
}



/* Add right-hand image on article page */




/* Style volume/issue number under the journal name */
.page_article .obj_article_details .title {
  display: block;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: normal;
  color: #333;
  text-align: center;
  margin-top: -200px;
  margin-left: -370px;
  margin-bottom: -3px;
}



/* Replace 'Vol.' with 'Volume' using content manipulation */
.page_article .obj_article_details .title::before {
  content: attr(data-replace);
  display: inline;
  visibility: visible;
  font-family: Georgia, serif;
}
.page_article .obj_article_details .title {
  visibility: hidden;
  position: relative;
}



.page_article .obj_article_details .title::before {
  content: "Volume 101 No. 1 (2025): Issue 201";
  display: block;
  color: #222;
  font-size: 18px;
  font-family: Georgia, serif;
}
.page_article .obj_article_details .title {
  color: transparent;
}



/* Refine appearance to show only "Volume 101" */
.page_article .obj_article_details .title::before {
  content: "Volume 101";
}

.page_article .obj_article_details .title {
  color: transparent;
}



/* Approach 9: Shrink font and remove spacing */
.page_article .value {
  font-size: 0px !important;
  margin: 0 !important;
  padding: 0 !important;
}


body {
    background-color: white !important;
}


* {
    box-shadow: none !important;
    text-shadow: none !important;
}


/* Position and style PDF icon as 'View' */
.obj_galley_link.pdf {
    position: relative;
    top: -200px;
    left: -550px;
    z-index: 1000;
    font-family: Calibri, sans-serif;
    font-size: 15px;
    color: white !important;
    background-color: #007BFF; /* Bootstrap blue */
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
}

/* Hover effect: white background, blue text */
.obj_galley_link.pdf:hover {
    background-color: white!important;
    color: #0272b1!important;
}

/* Replace icon with 'View' text */
.obj_galley_link.pdf::after {
    content: "View";
    display: inline-block;
    vertical-align: middle;
}



a.obj_galley_link.pdf {
    background-color: #0272b1 !important;
    color: white !important;
    font-family: Calibri, sans-serif !important;
    font-size: 15px !important;
    padding: 2px 15px !important;
    border-radius: 0px !important;
    text-decoration: none !important;
    position: relative !important;
    top: -200px !important;
    left: -550px !important;
    z-index: 1000 !important;
}

a.obj_galley_link.pdf:hover {
    background-color: white !important;
    color: #0272b1 !important;
}







.page_article .obj_article_details .title::before {
    content: "Volume 101, July 2025" !important;
    color: #0272b1 !important;
    font-family: Calibri, sans-serif !important;
    font-size: 11px !important;
    display: block !important;
    text-align: center !important;
    margin-top: 5px;
    margin-left: -400px !important;
    visibility: visible !important;
}

.page_article .obj_article_details .title {
    color: transparent !important;
    font-size: 0 !important;
}

/* Shift entire article landing page content 10px to the right */
body.pkp_page_article .pkp_structure_main,
body.pkp_page_article .pkp_structure_content,
body.pkp_page_article #main-content,
body.pkp_page_article .page,
body.pkp_page_article .pkp_page_index {
    margin-left: 10px !important;
}

/* Target only the article title, authors, and abstract to shift them slightly to the right */
.page_article .article-details-header,
.page_article .item.authors,
.page_article .item.abstract {
    margin-left: 10px !important;
}

/* Reduce right margin for article title, authors, and abstract */
.page_article .article-details-header,
.page_article .item.authors,
.page_article .item.abstract {
    margin-right: 10px !important;
}

/* Set width of article title, authors, and abstract to 660px */
.page_article .article-details-header,
.page_article .item.authors,
.page_article .item.abstract {
    width: 660px !important;
}

/* Make the decorative line (::after) under pkp_structure_main transparent */
.pkp_structure_main::after {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    content: none !important;
    height: 0 !important;
    display: none !important;
}

/* Hide all similar decorative lines and horizontal dividers */

/* Pseudo-elements used for visual lines */
.pkp_structure_main::after,
.pkp_structure_content::after,
.pkp_structure_page::after,
.page::after,
#main-content::after,
.page_article .obj_article_details::after {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    content: none !important;
    height: 0 !important;
    display: none !important;
}

/* Horizontal rule elements */
hr,
hr.article-separator,
hr.separator,
.page_article hr,
.pkp_structure_content hr {
    display: none !important;
    height: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Remove bottom borders that create line-like visuals */
.page_article .obj_article_details,
.page_article .article-details-header,
.page_article .item.authors,
.page_article .item.abstract {
    border-bottom: none !important;
}

/* Make the published item block fully transparent */
.page_article .item.published {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove vertical dividers typically caused by borders in layout containers */
.page_article .row,
.page_article .entry_details,
.page_article .main_entry,
.page_article .galleys,
.page_article .article-details,
.page_article .obj_article_details > div {
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* Make the background of the main article page container transparent */
.page.page_article {
    background-color: transparent !important;
}

/* Remove the left-side vertical divider line */
.page_article .row > div:first-child,
.page_article .entry_details > div:first-child,
.page_article .main_entry > div:first-child {
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* Make all container borders transparent */
.page_article *,
.page_article *::before,
.page_article *::after {
    border: none !important;
    box-shadow: none !important;
}

/* Fully hide the ::before element creating the left margin line */
.pkp_structure_main::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: transparent !important;
    width: 0 !important;
}



/* Apply only on article landing pages */
body.pkp_page_article .pkp_site_name_wrapper {
    background-color: black !important;
    height: 120px !important;
    display: block !important;
    position: relative !important;
}

/* Hide logo and menu button only on article pages */
body.pkp_page_article .pkp_site_name_wrapper .pkp_site_name,
body.pkp_page_article .pkp_site_name_wrapper .pkp_site_nav_toggle {
    display: none !important;
    visibility: hidden !important;
}



/* Fully hide the header wrapper on article landing pages */
body.pkp_page_article .pkp_site_name_wrapper {
    display: none !important;
    visibility: hidden !important;
}



/* Hide the primary navigation bar on article landing pages */
body.pkp_page_article ul#navigationPrimary,
body.pkp_page_article .pkp_navigation_primary_wrapper,
body.pkp_page_article .pkp_navigation_primary {
    display: none !important;
    visibility: hidden !important;
}



/* Clean hide CiteScore and Impact Factor only on article landing pages */
body.pkp_page_article a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
body.pkp_page_article a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"],
body.pkp_page_article a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::before,
body.pkp_page_article a[href="https://energyconversions.org/index.php/ecm/CiteScores"]::after,
body.pkp_page_article a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::before,
body.pkp_page_article a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]::after {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    width: 0 !important;
}



/* Move CiteScore and both Impact Factor links 150px to the left */
a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"] {
    margin-left: -150px !important;
}



/* Push CiteScore to a total of 240px to the left */
a[href="https://energyconversions.org/index.php/ecm/CiteScores"] {
    margin-left: -240px !important;
}

/* Move the gold line up and create 10px space below it */
.page_article .obj_article_details::before {
    margin-bottom: 10px !important;
}

/* Increase the top margin of the gold line area by 10px */
.page_article .obj_article_details::before {
    margin-top: 10px !important;
}

/* Make the gold line under header black */
.page_article .obj_article_details::before {
    border-bottom: 1px solid black !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Make the horizontal line under the top banner black */
header#headerNavigationContainer.pkp_structure_head {
    border-bottom: 1px solid black !important;
}

/* Show thick black line only on article landing pages */
body.pkp_page_article header#headerNavigationContainer.pkp_structure_head {
    border-bottom: 3px solid black !important;
    margin-top: -5px !important;
}

/* Remove border line from other pages */
header#headerNavigationContainer.pkp_structure_head {
    border-bottom: none !important;
}

/* Adjust padding instead of margin to pull header closer to user nav bar */
body.pkp_page_article header#headerNavigationContainer.pkp_structure_head {
    padding-top: 0px !important;
    border-bottom: 3px solid black !important;
}

/* Forcefully hide advertisement bar only on article landing pages */
body.pkp_page_article::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* Make the decorative line text gray */
.page_article .obj_article_details::before {
    color: gray !important;
}

/* Make the decorative line text Arial */
.page_article .obj_article_details::before {
    font-family: Arial, sans-serif !important;
}

/* Make the decorative line text black */
.page_article .obj_article_details::before {
    color: black !important;
}


/* Remove decorative line under article title */
.page_article .obj_article_details::before {
    border-bottom: none !important;
}


/* Style span.name with Garamond, 16px, normal, underlined */
span.name {
    font-family: Garamond, serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    font-weight: normal !important;
    text-decoration: underline !important;
}

/* Hide the Author label */
span.userGroup {
    display: none !important;
}

/* Flexbox container for authors */
.item.authors, /* common container */
.authors,
div.authors {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

/* Each author span inline-block and nowrap */
.item.authors span.name,
.authors span.name,
div.authors span.name {
    display: inline-block !important;
    white-space: nowrap !important;
}


/* Authors container flexbox */
ul.authors {
    display: flex !important;
    gap: 20px !important;
    padding-left: 0 !important;
    list-style-type: none !important;
}

/* Author list items styling */
ul.authors li {
    display: inline-block !important;
    font-family: Garamond, serif !important;
    font-weight: lighter !important;
    font-size: 18px !important;
    text-decoration: underline !important;
    opacity: 0.8 !important;
    position: relative;
}

/* Small icon after each author */
ul.authors li::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background-image: url('https://i.imgur.com/uuVPc9w.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Larger/different icon for the last author */
ul.authors li:last-child::after {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background-image: url('https://i.imgur.com/U3xi9Jh.png');
    position: relative;
    left: 6px;
    z-index: 2;
}

/* Hide ::before if any on last author */
ul.authors li:last-child::before {
    content: none !important;
}


ul.authors li::after {
    margin-left: 2px !important;
}

ul.authors li:last-child::after {
    margin-left: 3px !important;
    left: 4px !important;
}


ul.authors li::after {
    margin-left: 0px !important;
}

ul.authors li:last-child::after {
    margin-left: 1px !important;
    left: 2px !important;
}


ul.authors {
    gap: 8px !important;
}


ul.authors li {
    color: black !important;
}


ul.authors li {
    color: black !important;
}


ul.authors li {
    color: #000000 !important;
}


/* Remove hide rule for page titles */
.page_title, h1.page_title, h2.page_title, h1, h2 {
    display: block !important;
}

/* Style page title */
h1.page_title,
.page_article h1.page_title {
    font-family: Georgia, serif !important;
    font-size: 40px !important;
    font-weight: normal !important;
    line-height: 1.3 !important;
    text-align: left !important;
    color: #003a8c !important;
}

/* Hide Published label */
h2.label {
    display: none !important;
}


.page_article .obj_article_details {
    display: flex !important;
    flex-direction: column !important;
}

.page_article .obj_article_details > a.title {
    order: 0 !important;
}

.page_article .obj_article_details > h1.page_title {
    order: 1 !important;
}

.page_article .obj_article_details > span.name {
    order: 2 !important;
}


.page_article h1.page_title {
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    word-wrap: break-word !important;
}


.page_article h1.page_title {
    max-width: 700px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    word-wrap: break-word !important;
}


.page_article h1.page_title {
    max-width: 600px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    word-wrap: break-word !important;
}


/* Move page title before abstract */
.page_article .obj_article_details > h1.page_title {
    order: 0 !important;
}

.page_article .obj_article_details > .item.abstract {
    order: 2 !important;
}


/* Move PDF button 10px below the header wrapper */
a.obj_galley_link.pdf {
    position: absolute !important;
    top: calc(120px + 10px) !important;  /* header height + spacing */
    left: 50px !important;
    z-index: 1000 !important;
}


/* FINAL FIX: Position PDF button below header */
a.obj_galley_link.pdf {
    position: absolute !important;
    top: 130px !important; /* header height + 10px spacing */
    left: 50px !important;
    z-index: 1000 !important;

    margin: 0 !important;
    padding: 6px 15px !important;
    background-color: #0272b1 !important;
    color: white !important;
    font-family: Calibri, sans-serif !important;
    font-size: 15px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}


/* ADJUSTED: Move PDF button 100px up */
a.obj_galley_link.pdf {
    top: 30px !important;
}


/* ADJUSTED: Move PDF button 20px more up */
a.obj_galley_link.pdf {
    top: 10px !important;
}


/* ADJUSTED: Move PDF button 20px more up */
a.obj_galley_link.pdf {
    top: -5px !important;
}


/* ADJUSTED: Move PDF button 100px to the right */
a.obj_galley_link.pdf {
    left: 150px !important;
}


/* ADJUSTED: Move PDF button 100px more to the right */
a.obj_galley_link.pdf {
    left: 250px !important;
}


/* ADJUSTED: Move PDF button 100px more to the right */
a.obj_galley_link.pdf {
    left: 350px !important;
}


/* ADJUSTED: Move PDF button 10px left */
a.obj_galley_link.pdf {
    left: 340px !important;
}


/* Position volume title 10px below the header */
a.title[href*="/issue/view/issue"] {
  position: absolute !important;
  top: 130px !important;
  left: 40px !important;
  z-index: 999 !important;

  font-family: Georgia, serif !important;
  font-size: 16px !important;
    text-decoration: none !important;
  color: black !important;
  text-decoration: none !important;
}


/* Move the Latest Issue volume line 100px down */
.page_issue_header a[href*="Latestissue"] {
    position: relative !important;
    top: 100px !important;
}


/* Move sidebar nav item Volume 101, July 2025 down by 100px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    position: relative !important;
    top: 100px !important;
}


/* Move sidebar nav item Volume 101, July 2025 down by 150px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    top: 150px !important;
}


/* Move sidebar nav item Volume 101, July 2025 left by 400px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    left: -400px !important;
}


/* Move sidebar nav item Volume 101, July 2025 left by 600px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    left: -600px !important;
}


/* Move sidebar nav item Volume 101, July 2025 left by 700px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    left: -700px !important;
}


/* Move sidebar nav item Volume 101, July 2025 left by 800px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    left: -800px !important;
}


/* Move sidebar nav item Volume 101, July 2025 left by 750px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    left: -500px !important; /* moved right +250px */
}


/* Move sidebar nav item Volume 101, July 2025 down by 200px and left by 750px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    top: 200px !important;
    left: -500px !important; /* moved right +250px */
}


/* Move sidebar nav item Volume 101, July 2025 down by 190px and left by 750px */
.pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    top: 190px !important;
    left: -500px !important; /* moved right +250px */
}



/* === Show "Volume 101, July 2025" ONLY on article landing page === */
body.pkp_page_article .pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    display: inline-block !important;
    position: absolute !important;
    top: 150px !important;
    left: -500px !important; /* moved right +250px */
    color: #0272b1 !important;
    text-decoration: none !important;
    background: none !important;
    z-index: 999 !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
}

/* === Hide from ALL other pages === */
body:not(.pkp_page_article) .pkp_navigation_user_wrapper li.profile a[href*="Latestissue"] {
    display: none !important;
    visibility: hidden !important;
}






/* === Decorative Line Above Article Title moved up 5px using transform === */
.page_article h1.page_title::before {
    content: "";
    display: block;
    width: 600px;
    height: 2px;
    background-color: black;
    margin-bottom: 12px;
    margin-top: 10px;
    transform: translateY(-5px);
}

/* Decorative line 400px under ScienceDirects link */
body.pkp_page_article .pkp_navigation_user a[href*="ScienceDirects"]::after {
    content: "";
    position: absolute;
    top: 152px;
    left: 0;
    width: 1500px; /* adjust length as needed */
    height: 1px;
    background-color: black;
    display: block;
    z-index: 999;
}

/* Ensure relative positioning for correct absolute placement */
.pkp_navigation_user {
    position: relative !important;
}

/* Move authors section 50px up on article landing page */
body.pkp_page_article .item.authors {
    margin-top: -50px !important;
  left: -30px !important;
}

/* Shift authors section 10px to the left on article landing page */
body.pkp_page_article .item.authors {
    margin-left: -1px !important;
}

/* Set top margin of the article landing page to 15px */
body.pkp_page_article {
    margin-top: 15px !important;
        padding-top: 35px !important; /* was 65px; moved up by 30px */
}
body.pkp_page_article .pkp_structure_page,
body.pkp_page_article body > div.wrapper,
body.pkp_page_article body > div.container,
body.pkp_page_article body > div.page,
body.pkp_page_article body > main {
    margin-top: 15px !important;
        padding-top: 35px !important; /* was 65px; moved up by 30px */
}

/* Reduce title font size on article landing page */
body.pkp_page_article h1.page_title {
    font-size: 33px !important;
}

/* Move 'Recommended articles' (P2V1ECM) link down */
body.pkp_page_article a[href*="P2V1ECM"] {
    display: inline-block !important;
    margin-top: 280px !important;
    margin-left: -320px !important;
}

/* Styled like ScienceDirect Recommended Articles */
body.pkp_page_article a[href*="P2V1ECM"] {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
    font-weight: normal !important;
    color: black !important;
    border-bottom: 2px solid rgb(235, 235, 235) !important;
    line-height: 1.2 !important;
    padding-bottom: 12px !important;
    display: inline-block;
    width: 300px !important;
    text-align: left !important;
}

/* Decorative gray line above page title */
body.pkp_page_article h1.page_title::before {
    content: "";
    display: block;
    width: 600px;
    height: 2px;
    background-color: rgb(235, 235, 235);
    margin-bottom: 10px;
    transform: translateY(-15px);
}

/* Hover effect for Recommended articles: show orange underline */
body.pkp_page_article a[href*="P2V1ECM"]:hover {
    border-bottom: 2px solid orange !important;
}

/* Show Recommended articles only on article landing pages */
a[href*="P2V1ECM"] {
    display: none !important;
}
body.pkp_page_article a[href*="P2V1ECM"] {
    display: inline-block !important;
}

/* Add dropdown icon next to Recommended articles */
body.pkp_page_article a[href*="P2V1ECM"]::after {
    content: " ˅";
    font-size: 24px;
    color: rgb(2, 114, 177);
    padding-left: -358px;
}



/* Move "Download full issue" link 850px to the left and 90px down on article landing page */
body.pkp_page_article li.profile a[href*="issue/view/issue201/1"] {
    font-family: Arial, sans-serif !important;
    color: #0272b1 !important;
    position: relative !important;
    left: -850px !important;
    top: 90px !important;
    text-decoration: none !important;
}

/* Orange underline on hover */
body.pkp_page_article li.profile a[href*="issue/view/issue201/1"]:hover {
    text-decoration: underline !important;
    text-decoration-color: orange !important;
}



/* Hide "Download full issue" from all pages except article landing page and Latest Issue page */
body:not(.pkp_page_article):not(.pkp_page_issue) li.profile a[href*="issue/view/issue201/1"] {
    display: none !important;
    visibility: hidden !important;
}



body.pkp_page_article .item.abstract {
    position: relative !important;
    background-color: white !important;
    color: black !important;
    padding: 32px 32px 16px 32px !important;
    margin: 20px 0px 8px 40px !important;
    border: none !important;
    border-radius: 0px !important;
    width: 580.263px !important;
    max-width: 680px !important;
    height: auto !important;
    box-shadow: none !important;
    font-family: ElsevierGulliver, Georgia, "Times New Roman", Times, STIXGeneral, "Cambria Math", "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", "Arial Unicode MS", serif, sans-serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    line-height: 26px !important;
    text-size-adjust: 100% !important;
    unicode-bidi: isolate !important;
    -webkit-font-smoothing: antialiased !important;
    -webkit-locale: "en" !important;
    box-sizing: border-box !important;
}

/* Label text with font size 12px */
body.pkp_page_article .item.abstract::before {
    content: " Full text access";
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 9.52px !important;
    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", STIXGeneral, "Cambria Math", "Arial Unicode MS", sans-serif;
    font-style: italic;
    line-height: 22px !important;
    color: black;
    text-align: right;
    display: block;
    box-sizing: border-box;
}

/* Smaller green dot, shifted 10px to the right */
body.pkp_page_article .item.abstract::after {
    content: "🟢︎";
    position: absolute;
    top: -43px;
    right: 10em;
    font-size: 9px !important;
    line-height: 22px !important;
}

/* Horizontal border */
body.pkp_page_article .item.abstract::marker {
    content: "";
    display: block;
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
}



/* Styled box around Keywords section (matching abstract) */
body.pkp_page_article section.item.keywords {
    position: relative !important;
    background-color: rgb(245, 245, 245) !important;
    color: black !important;
    padding: 32px 32px 16px 32px !important;
    margin: 40px 0px 8px 40px !important;
    border: none !important;
    border-radius: 0px !important;
    width: 580.263px !important;
    max-width: 680px !important;
    height: auto !important;
    box-shadow: none !important;
    font-family: ElsevierGulliver, Georgia, "Times New Roman", Times, STIXGeneral, "Cambria Math", "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", "Arial Unicode MS", serif, sans-serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    line-height: 26px !important;
    text-size-adjust: 100% !important;
    unicode-bidi: isolate !important;
    -webkit-font-smoothing: antialiased !important;
    -webkit-locale: "en" !important;
    box-sizing: border-box !important;
}

/* Decorative line 20px above the box - thin light gray */
/* Insert smaller '🟢︎' emoji before 'Full text access' label above keywords section - Option 3 */
/* Styled 'Highlights' label above keywords section */
body.pkp_page_article section.item.keywords::before {
    content: "Highlights";
    display: block;
    font-family: ElsevierGulliver, Georgia, "Times New Roman", Times, STIXGeneral, "Cambria Math", "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", "Arial Unicode MS", serif, sans-serif;
    font-size: 20px;
    font-variant-numeric: lining-nums;
    font-weight: 400;
    color: black;
    text-align: left;
    margin-bottom: 4px;
}

/* Style the label inside Keywords */
body.pkp_page_article section.item.keywords h2.label {
    font-size: 11px !important;
    font-style: italic !important;
    color: black !important;
    margin-bottom: 12px !important;
    font-family: ElsevierSans, Arial, sans-serif !important;
}

/* Style the keywords text */
body.pkp_page_article section.item.keywords span.value {
    display: block !important;
    font-size: 16px !important;
    text-decoration: none !important;
    font-family: Georgia, serif !important;
    line-height: 26px !important;
    color: black !important;
}


/* Hide the Full Text Access label completely */
.access_label {
    display: none !important;
}


/* Hide Full Text Access label only inside the abstract section */
body.pkp_page_article section.item.abstract .access_label {
    display: none !important;
}


/* Aggressive removal of Full Text Access label near or in Abstract section */
body.pkp_page_article section.item.abstract .access_label,
body.pkp_page_article section.item.abstract > .access_label,
body.pkp_page_article section.item.abstract h2.label + .access_label {
    display: none !important;
}


/* Fully remove the pseudo-element that shows "Full text access" before the abstract */
body.pkp_page_article section.item.abstract::before {
    content: none !important;
    display: none !important;
}


/* Remove any decorative dot or status element inside the abstract section */
body.pkp_page_article section.item.abstract::before {
    content: none !important;
    display: none !important;
    background: none !important;
}


/* Remove the decorative colored dot after the abstract section */
body.pkp_page_article section.item.abstract::after {
    content: none !important;
    display: none !important;
    background: none !important;
}


/* Extend the height of the keywords box */
body.pkp_page_article section.item.keywords {
    min-height: 200px !important;
}


/* Further extend the height of the keywords box */
body.pkp_page_article section.item.keywords {
    min-height: 300px !important;
}


body.pkp_page_article section.item.keywords li {
    box-sizing: border-box !important;
    color: black !important;
    display: block !important;
    font-family: ElsevierGulliver, Georgia, "Times New Roman", Times, STIXGeneral, "Cambria Math", "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", "Arial Unicode MS", serif, sans-serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    font-variant-numeric: lining-nums !important;
    height: 52px !important;
    line-height: 26px !important;
    list-style-image: none !important;
    list-style-position: outside !important;
    list-style-type: none !important;
    margin-bottom: 16px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
      margin-top: -10px !important; /* moved down 20px total (10px less) */
    padding-bottom: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-top: 0px !important;
    text-align: left !important;
    text-size-adjust: 100% !important;
    unicode-bidi: isolate !important;
    width: 342.25px !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Insert 'Full text access' label above the keywords section */
/* Insert smaller '🟢︎' emoji before 'Full text access' label above keywords section - Option 3 */
/* Styled 'Highlights' label above keywords section */
body.pkp_page_article section.item.keywords::before {
    content: "Highlights";
    display: block;
    font-family: ElsevierGulliver, Georgia, "Times New Roman", Times, STIXGeneral, "Cambria Math", "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", "Arial Unicode MS", serif, sans-serif;
    font-size: 20px;
    font-variant-numeric: lining-nums;
    font-weight: 400;
    color: black;
    text-align: left;
    margin-bottom: 4px;
}

/* Make affiliation appear in a separate block under the author's name */
ul.authors span.affiliation {
    display: block !important;
    margin-top: 4px !important;
    font-size: 15px !important;
    font-family: Georgia, serif !important;
    color: #444 !important;
    line-height: 1.4 !important;
}


/* Ensure each affiliation stays under its respective author */
ul.authors li {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 10px !important;
}

/* Force affiliation to its own line within each author block */
ul.authors span.affiliation {
    display: block !important;
    font-size: 15px !important;
    font-family: Georgia, serif !important;
    color: #444 !important;
    line-height: 1.4 !important;
    margin-top: 2px !important;
}

/* Hide author role icon */
ul.authors span.userGroup {
    display: none !important;
}

/* Remove the mail/user icons for clean layout */
ul.authors li::after {
    content: none !important;
}


/* Make author list horizontal */
ul.authors {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important; /* spacing between authors */
}

/* Keep each author name + affiliation block tidy */
ul.authors li {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 10px !important;
}


/* Align authors at the top */
ul.authors {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    align-items: flex-start !important;  /* key fix for top alignment */
}


/* Push affiliation block 10px down on article landing pages */
body.pkp_page_article span.affiliation {
    margin-top: 10px !important;
    display: inline-block !important;
}


/* Push affiliation block an additional 10px down on article landing pages (total 20px) */
body.pkp_page_article span.affiliation {
    margin-top: 20px !important;
}


/* Push affiliation block an additional 10px down on article landing pages (total 30px) */
body.pkp_page_article span.affiliation {
      margin-top: -400px !important; /* moved up 50px more */
}


/* Push affiliation block 10px to the right on article landing pages */
body.pkp_page_article span.affiliation {
    margin-left: 10px !important;
}


/* Push affiliation block an additional 10px to the right on article landing pages (total 20px) */
body.pkp_page_article span.affiliation {
    margin-left: 10px !important;
}


/* Push affiliation block an additional 20px to the right on article landing pages (total 40px) */
body.pkp_page_article span.affiliation {
    margin-left: 40px !important;
}


/* Increase spacing between multiple affiliations inside the same block */
body.pkp_page_article span.affiliation span {
    display: inline-block !important;
    margin-right: 25px !important;  /* space between affiliations */
}


/* Further increase spacing between affiliations (now 50px) */
body.pkp_page_article span.affiliation span {
    margin-right: 50px !important;
}


/* Increase line height of affiliation text */
body.pkp_page_article span.affiliation {
    line-height: 28px !important;
}


/* Reduce the size of the first letter in each affiliation span */
body.pkp_page_article span.affiliation span::first-letter {
    font-size: 80% !important;
}


/* Further reduce the size of the first letter in each affiliation span */
body.pkp_page_article span.affiliation span::first-letter {
    font-size: 60% !important;
}


/* Shift the first letter of affiliation text up slightly */
body.pkp_page_article span.affiliation span::first-letter {
    vertical-align: super !important;
    position: relative !important;
    top: -2px !important;
}


/* Set the first letter of affiliation text to 70% size and keep it shifted up */
body.pkp_page_article span.affiliation span::first-letter {
    font-size: 70% !important;
    vertical-align: super !important;
    position: relative !important;
    top: -2px !important;
}


/* Set affiliation font to ElsevierSans and similar fonts */
body.pkp_page_article span.affiliation {
    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode", sans-serif !important;
}


/* Increase spacing between the first letter and remaining text in affiliation */
body.pkp_page_article span.affiliation span::first-letter {
    margin-right: 4px !important;
}


/* Further increase spacing between the first letter and remaining text in affiliation */
body.pkp_page_article span.affiliation span::first-letter {
    margin-right: 8px !important;
}


/* Slightly reduce line height of affiliation block */
body.pkp_page_article span.affiliation {
    line-height: 24px !important;
}


/* Further reduce line height of affiliation block to 22px */
body.pkp_page_article span.affiliation {
    line-height: 22px !important;
}


/* Set line height of affiliation block to 20px */
body.pkp_page_article span.affiliation {
    line-height: 20px !important;
}


/* Style only the last affiliation */
body.pkp_page_article ul.authors li:last-child .affiliation span:last-child {
    color: black !important;
    display: block !important;
    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", STIXGeneral, "Cambria Math", "Arial Unicode MS", sans-serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
}


/* Strong override to remove underline from last affiliation */
body.pkp_page_article ul.authors li:last-child .affiliation span:last-child {
    color: black !important;
    display: block !important;
    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", STIXGeneral, "Cambria Math", "Arial Unicode MS", sans-serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    border: none !important;
}


/* Force-remove underline inherited from parent li for last affiliation */
body.pkp_page_article ul.authors li:last-child .affiliation span {
    text-decoration: none !important;
    border: none !important;
}

/* Optional: Override underline on parent li itself */
body.pkp_page_article ul.authors li:last-child {
    text-decoration: none !important;
}


/* Remove first-letter styling from the last affiliation only */
body.pkp_page_article ul.authors li:last-child .affiliation span:last-child::first-letter {
    all: unset !important;
}

/* Shift last affiliation 25px down, 35px left, and set font size to 15px */
body.pkp_page_article ul.authors li:last-child .affiliation span:last-child {
    margin-top: 25px !important;
    margin-left: -35px !important;
    font-size: 15px !important;
    display: inline-block !important;
}



/* Add larger icon and text link after last affiliation, moved 35px left */
body.pkp_page_article ul.authors li:last-child .affiliation::after {
    content: " What do these dates mean?";
    display: inline-block;
    margin-top: 10px !important;
    margin-left: -35px !important;
    padding-left: 34px;
    background-image: url('https://i.imgur.com/GiWm5vc.png');
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: left center;
    height: 28px;
    color: #000000;
    font-family: Garamond, serif;
    font-size: 18px;
    text-decoration: underline;
    line-height: 28px;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}



/* Insert image 50px below the last affiliation */
body.pkp_page_article ul.authors li:last-child::after {
    content: "";
    display: block;
    width: 200px; /* adjust if needed */
    height: auto;
    background-image: url('https://i.imgur.com/8RIDL8L.png');
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: 50px;
}



/* Insert image 50px below the entire authors/affiliations block */
/* Insert clickable smaller image -15px above the bottom of authors/affiliations block */
body.pkp_page_article .item.authors::after {
    content: "";
    display: block;
    width: 150px;
    height: 75px;
    background-image: url('https://i.imgur.com/8RIDL8L.png');
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: -15px;
    margin-left: -358px;
    cursor: pointer;
}

/* Overlay anchor link using ::before */
body.pkp_page_article .item.authors::before {
    content: "";
    display: block;
    position: absolute;
    width: 150px;
    height: 75px;
    margin-top: -15px;
    margin-left: -358px;
    z-index: 999;
}

/* Optional: visually indicate it's clickable with a hover effect */
body.pkp_page_article .item.authors:hover::after {
    opacity: 0.8;
}


/* === BEGIN GPT PATCH: Slogan Shift === */

/* === PATCH: Shift 'Supports open access' (wrapper ::after) 100px to the right === */
.pkp_site_name_wrapper::after {
  transform: translateX(235px) !important;
}

/* === END GPT PATCH === */


/* === BEGIN GPT PATCH: Title Fix === */

/* === TITLE FIX: Force green banner title to 'Energy Conversions' === */
.pkp_site_name_wrapper::before {
  content: "    Energy Conversions" !important;
}

/* === END GPT PATCH: Title Fix === */


/* === BEGIN GPT PATCH: Remove homepageAbout Anchor === */

/* === PATCH: Remove homepageAbout anchor and any adjacent About section heading === */
a#homepageAbout {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

a#homepageAbout + h2,
a#homepageAbout + * h2,
#homepageAbout + h2 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
}

/* === END GPT PATCH === */


/* === BEGIN GPT PATCH: Remove Journal Insights Title === */

/* === PATCH: Remove 'Journal Insights' Page Title === */
h1.page_title,
.page_title,
.pkp_page_index_journal h1.page_title,
.pkp_page_index_journal .page_title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
}

/* === END GPT PATCH === */


/* ===== FIX: Scope the icon to the top user nav only; remove it elsewhere ===== */

/* 1) Reset any global styling that may have been applied earlier */
a[href="https://energyconversions.org/index.php/ecm/about/submissions"] {
    background: none !important;
    padding-left: 0 !important;
}

/* 2) Explicitly remove the icon from primary nav (where "Submit your article" usually lives) */
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/about/submissions"],
.pkp_navigation_primary_wrapper a[href="https://energyconversions.org/index.php/ecm/about/submissions"],
.navbar a[href="https://energyconversions.org/index.php/ecm/about/submissions"] {
    background: none !important;
    padding-left: 0 !important;
}

/* 3) Apply the icon ONLY within the user nav bar (where "Sign in" is) */
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/about/submissions"] {
    position: relative !important;
    padding-left: 40px !important;
    background-image: url('https://i.imgur.com/BhMmJRN.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 24px 24px !important;
}


/* === REMOVE TOP BANNER / AD BAR (pseudo-element) === */
/* Target the exact page combination shown in DevTools */
body.pkp_page_index.pkp_op_index.has_site_logo::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Fallback: disable any global body::before banner everywhere */
body::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}



/* ===== CLEANUP: remove BODY padding that created extra white space ===== */
html body.pkp_page_issue_archive,
html body[class*="pkp_page_issue"] {
    padding-left: 0 !important;   /* rollback previous body padding */
    padding-right: 0 !important;
}

/* Shift ONLY the main content block to the right (no extra gutter on the left) */
body.pkp_page_issue_archive .pkp_structure_main { 
    padding-left: 0 !important;   /* ensure no inherited padding */
}
body.pkp_page_issue_archive .pkp_structure_main > .page,
body.pkp_page_issue_archive .pkp_structure_main > .pkp_page_content,
body.pkp_page_issue_archive .pkp_structure_main > .content,
body.pkp_page_issue_archive main.pkp_structure_main > .page {
    margin-left: 180px !important;   /* visible shift without adding outer white space */
    margin-right: 40px !important;
    box-sizing: border-box !important;
}

/* Keep inner elements from re-introducing offsets */
body.pkp_page_issue_archive .pkp_structure_main > .page * {
    padding-left: 0 !important;
}

/* Safety: no negative outer margins anywhere on archive */
body.pkp_page_issue_archive .pkp_structure_main,
body.pkp_page_issue_archive .pkp_structure_content,
body.pkp_page_issue_archive #main-content,
body.pkp_page_issue_archive .page {
    margin-left: 0 !important;
    margin-right: 0 !important;
}



/* ===== FINAL ALIGNMENT: move main content 200px to the right ===== */
body.pkp_page_issue_archive .pkp_structure_main > .page,
body.pkp_page_issue_archive .pkp_structure_main > .pkp_page_content,
body.pkp_page_issue_archive .pkp_structure_main > .content,
body.pkp_page_issue_archive main.pkp_structure_main > .page {
    margin-left: 200px !important;   /* move 200px to the right */
    margin-right: 40px !important;
    box-sizing: border-box !important;
}



/* ===== TRANSFORM OVERRIDE: shift archive content exactly 200px to the right ===== */
body.pkp_page_issue_archive {
    overflow-x: hidden !important;
}

body.pkp_page_issue_archive .pkp_structure_main,
body.pkp_page_issue_archive .pkp_structure_content,
body.pkp_page_issue_archive #main-content,
body.pkp_page_issue_archive .page,
body.pkp_page_issue_archive .pkp_page_index {
    margin-left: 0 !important;      /* neutralize global negative margins */
    padding-left: 0 !important;
    transform: translateX(600px) !important;   /* force visible shift */
}
/* ===== END TRANSFORM OVERRIDE ===== */



/* === TARGETED FIX: Move the <ul class="issues_archive"> block 200px right === */
body.pkp_page_issue_archive ul.issues_archive {
    position: relative !important;
    left: 200px !important;      /* shift block horizontally */
    width: calc(100% - 200px) !important;  /* keep it fitting in page */
    box-sizing: border-box !important;
}

/* Prevent any horizontal scrollbar */
body.pkp_page_issue_archive {
    overflow-x: hidden !important;
}



/* === SPECIFIC FIX (matches <div class="page page_issue_archive"> … <ul class="issues_archive">) === */
/* Reset earlier transforms/margins that may fight this on archive page containers */
.page.page_issue_archive .pkp_structure_main,
.page.page_issue_archive .pkp_structure_content,
.page.page_issue_archive #main-content,
.page.page_issue_archive .page {
    transform: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Shift only the issues list 200px to the right */
.page.page_issue_archive ul.issues_archive {
    margin-left: 200px !important;           /* primary shift */
    width: calc(100% - 200px) !important;    /* keep layout within viewport */
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;                      /* neutralize any earlier 'left' shift */
}

/* Prevent horizontal scroll bars */
.page.page_issue_archive { overflow-x: hidden !important; }



/* === ENHANCED SHIFT: Move issues list 300px to the right === */
.page.page_issue_archive ul.issues_archive {
    margin-left: 300px !important;           /* stronger shift */
    width: calc(100% - 300px) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
}



/* === EXTREME SHIFT: Move issues list 450px to the right === */
.page.page_issue_archive ul.issues_archive {
    margin-left: 450px !important;           /* move further right */
    width: calc(100% - 450px) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
}



/* === ULTRA SHIFT: Move issues list 750px to the right === */
.page.page_issue_archive ul.issues_archive {
    margin-left: 750px !important;           /* move further right */
    width: calc(100% - 750px) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
}



/* === STYLE FIX for issue titles like "2025 — Volumes 5" === */
.page.page_issue_archive a.title {
    display: block !important;
    font-family: "Lato", sans-serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #0056a6 !important;        /* blue tone like your image */
    text-align: center !important;
    text-decoration: none !important;
    margin: 15px 0 !important;
    padding: 12px 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background-color: #f8f9fa !important;
    transition: all 0.3s ease-in-out !important;
}

/* Hover animation: subtle shadow and color change */
.page.page_issue_archive a.title:hover {
    background-color: #0056a6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}



/* === EXACT STYLE OVERRIDE for issue title links to match DevTools dump === */
.page.page_issue_archive a.title {
    /* Typography per your computed styles */
    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", STIXGeneral, "Cambria Math", "Arial Unicode MS", sans-serif !important;
    font-weight: 400 !important;
    font-size: 19.2px !important;
    line-height: 27.2px !important;
    color: rgb(0, 103, 152) !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-align: left !important;
    -webkit-font-smoothing: antialiased !important;

    /* Box model reset (remove previous button/card styling) */
    display: inline !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    /* Behavior */
    cursor: pointer !important;
    text-decoration: none !important;  /* as per dump (none); we’ll add underline only on hover/focus */
}

/* Hover/focus state to mimic native link emphasis */
.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
    text-decoration: underline !important;
    color: rgb(0, 103, 152) !important; /* keep same brand blue */
}

/* Ensure link inside summary container doesn’t inherit conflicting styles */
.page.page_issue_archive .obj_issue_summary h2,
.page.page_issue_archive .obj_issue_summary h2 .title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

/* Optional: spacing below each row stays subtle like in screenshot */
.page.page_issue_archive .obj_issue_summary {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}



/* === COLOR UPDATE: Make issue title text dark gray (rgb(31, 31, 31)) === */
.page.page_issue_archive a.title {
    color: rgb(31, 31, 31) !important;
}

.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
    color: rgb(31, 31, 31) !important;
    text-decoration: underline !important;
}



/* === ORANGE UNDERLINE ON HOVER === */
.page.page_issue_archive a.title {
    color: rgb(31, 31, 31) !important;
    text-decoration: none !important;
}

.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
    color: rgb(31, 31, 31) !important; /* keep text dark gray */
    text-decoration: underline !important;
    text-decoration-color: orange !important; /* underline turns orange */
}



/* === ORANGE UNDERLINE ON HOVER (THICKER LINE) === */
.page.page_issue_archive a.title {
    color: rgb(31, 31, 31) !important;
    text-decoration: none !important;
}

.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
    color: rgb(31, 31, 31) !important; /* keep text dark gray */
    text-decoration: underline !important;
    text-decoration-color: orange !important; /* underline turns orange */
    text-decoration-thickness: 3px !important; /* thicker line */
}



/* === REDUCE VERTICAL SPACING BETWEEN ISSUE TITLES === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page.page_issue_archive a.title {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important; /* tighter vertical spacing */
}



/* === EXTRA COMPACT ISSUE TITLE SPACING === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page.page_issue_archive a.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.1 !important; /* very compact */
}



/* === ULTRA COMPACT ISSUE TITLE SPACING === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -2px !important;
    margin-bottom: -2px !important;
}

.page.page_issue_archive a.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.0 !important; /* ultra tight */
}



/* === EXTREME COMPACT ISSUE TITLE SPACING === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -6px !important;
    margin-bottom: -6px !important;
}

.page.page_issue_archive a.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0.9 !important; /* extremely tight line spacing */
}



/* === SUPER EXTREME COMPACT ISSUE TITLE SPACING === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -5px !important;
    margin-bottom: -10px !important;
}

.page.page_issue_archive a.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0.85 !important; /* ultra tight */
}



/* === REMOVE HORIZONTAL LINE UNDER EACH ISSUE TITLE === */
.obj_issue_summary,
.obj_issue_summary::before,
.obj_issue_summary::after,
.page_issue_archive li,
.page_issue_archive li::after,
.page_issue_archive li::before {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* Keep text alignment and spacing intact */
.page_issue_archive .obj_issue_summary {
    padding: 0 !important;
    margin: 0 !important;
}



/* === PUSH ISSUE TITLES UP === */
.page.page_issue_archive .obj_issue_summary {
    margin-top: -15px !important; /* pushes the text upward */
    padding-top: 0 !important;
}

.page.page_issue_archive a.title {
    line-height: 1.0 !important; /* keeps compact spacing */
}







/* === PUSH THE DESCRIPTION LINE DOWN (LESS) === */
.page.page_issue_archive .obj_issue_summary .description {
    margin-top: 10px !important; /* smaller downward offset */
    padding-top: 5px !important;
}



























/* === MOVE THE LIGHT GRAY SEPARATOR LINE DIRECTLY UNDER TITLE === */
.page.page_issue_archive .obj_issue_summary {
    border-bottom: 2px solid #d3d3d3 !important;
    padding-bottom: 0 !important;
    margin-bottom: -12px !important; /* pushes the line tightly under title */
}


/* === Add left-side image below navigation bar on Issues Landing Page === */
body.pkp_page_issue::before {
  content: "";
  display: block;
  position: relative;
  top: 15px;                /* space below navbar */
  left: 0;                  /* align to left edge */
  width: 260px;             /* image width */
  height: 180px;            /* image height */
  background-image: url('https://i.imgur.com/VTOvt0b.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  margin-bottom: -3px;      /* space below the image */
}


/* === ROBUST: Left-side image below navbar on Issues landing page (mirrors article approach) === */
body.pkp_page_issue .pkp_navigation_primary_wrapper { position: relative !important; z-index: 10 !important; }
body.pkp_page_issue .pkp_structure_main { position: relative !important; z-index: 1 !important; }

/* Primary injection point */
body.pkp_page_issue .pkp_structure_main::before {
  content: "";
  display: block;
  height: 180px;                 /* image height */
  background-image: url('https://i.imgur.com/VTOvt0b.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 20px 0;   /* 20px from the left edge */
  margin-top: 15px;              /* gap below navbar */
  margin-bottom: -3px;           /* space after the image */
  pointer-events: none;
}

/* Fallbacks for different OJS layouts */
body.pkp_page_issue #main-content::before,
body.pkp_page_issue .page::before {
  content: "";
  display: block;
  height: 0;                     /* default to zero so it doesn't duplicate */
  background: none;
}

/* If .pkp_structure_main is hidden or has no height, use #main-content instead */
@media all {
  body.pkp_page_issue .pkp_structure_main:empty::before {
    height: 0 !important;
  }
  body.pkp_page_issue #main-content::before {
    height: 180px !important;
    background-image: url('https://i.imgur.com/VTOvt0b.png') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: 20px 0 !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
}

/* Neutralize overly-aggressive negative margins that could hide the image */
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue .pkp_structure_content,
body.pkp_page_issue #main-content,
body.pkp_page_issue .page {
  overflow: visible !important;
}

/* Ensure the image area isn't overlapped by fixed headers */
body.pkp_page_issue header#headerNavigationContainer,
body.pkp_page_issue .pkp_navigation_primary_wrapper {
  z-index: 20 !important;
  position: relative !important;
}


/* === STRONG PATCH: Left image under navbar on Issues landing page (multi-selector + !important) === */
/* Lift potential overlaps from fixed headers */
body.pkp_page_issue header#headerNavigationContainer,
body.pkp_page_issue .pkp_navigation_primary_wrapper { position: relative !important; z-index: 20 !important; }

/* Make main containers visible and non-clipping */
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue .pkp_structure_content,
body.pkp_page_issue #main-content,
body.pkp_page_issue .page,
body.pkp_page_issue .page_issue {
  overflow: visible !important;
}

/* Primary target: OJS issue content container (try the most specific first) */
body.pkp_page_issue .page_issue::before,
body.pkp_page_issue #main-content::before,
body.pkp_page_issue .pkp_structure_main::before,
body.pkp_page_issue .page::before {
  content: "" !important;
  display: block !important;
  height: 200px !important;                         /* visible spacer for image */
  background-image: url('https://i.imgur.com/VTOvt0b.png') !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: 20px 0 !important;           /* align left with a small inset */
  margin-top: 16px !important;                      /* space below navbar */
  margin-bottom: 16px !important;                   /* space after image */
  pointer-events: none !important;
}

/* Prevent duplicate rendering if multiple targets exist: zero out later duplicates via order */
@media all {
  body.pkp_page_issue .page_issue + #main-content::before,
  body.pkp_page_issue .page_issue + .page::before {
    height: 0 !important;
    background: none !important;
    margin: 0 !important;
  }
}

/* If negative side margins exist elsewhere, neutralize on issues page */
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue .pkp_structure_content,
body.pkp_page_issue #main-content,
body.pkp_page_issue .page,
body.pkp_page_issue .page_issue {
  margin-left: max(0px, var(--issue-left-reset, 0px)) !important;
  margin-right: max(0px, var(--issue-right-reset, 0px)) !important;
}

/* Optional: keep image crisp on HiDPI */
@media (min-resolution: 2dppx) {
  body.pkp_page_issue .page_issue::before,
  body.pkp_page_issue #main-content::before,
  body.pkp_page_issue .pkp_structure_main::before,
  body.pkp_page_issue .page::before {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}


/* === SMALLER VERSION: Reduced image size for Issues landing page === */
body.pkp_page_issue .page_issue::before,
body.pkp_page_issue #main-content::before,
body.pkp_page_issue .pkp_structure_main::before,
body.pkp_page_issue .page::before {
  height: 120px !important;                   /* smaller height */
  background-size: 120px auto !important;     /* smaller image size */
  background-position: 20px 0 !important;     /* keep aligned left */
  margin-top: 10px !important;                /* smaller spacing */
  margin-bottom: 10px !important;
}


/* === MEDIUM VERSION: Slightly larger image for Issues landing page === */
body.pkp_page_issue .page_issue::before,
body.pkp_page_issue #main-content::before,
body.pkp_page_issue .pkp_structure_main::before,
body.pkp_page_issue .page::before {
  height: 150px !important;                   /* medium height */
  background-size: 150px auto !important;     /* medium image size */
  background-position: 20px 0 !important;     /* aligned left */
  margin-top: 12px !important;                /* balanced spacing */
  margin-bottom: 12px !important;
}


/* === Hide Archives title on Issues Landing Page === */
body.pkp_page_issue h1 {
  display: none !important;
}


/* === Move issue title to the left on Issues Landing Page === */
body.pkp_page_issue a.title {
  display: block;
  margin-left: 0 !important;        /* removes default left margin */
  text-align: left !important;      /* ensure text is aligned left */
  padding-left: 10px !important;    /* small spacing from left edge */
}


/* === Force issue titles to align/move left on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

body.pkp_page_issue ul.issues_archive li {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: translateX(-20px); /* nudge 20px to the left */
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title {
  display: inline-block !important;
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}

/* If any container forces centering, neutralize it */
body.pkp_page_issue .page,
body.pkp_page_issue #main-content,
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue .pkp_structure_content {
  text-align: initial !important;
}


/* === Move issue titles even more to the left (extra 50px) === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-70px) !important; /* total left shift */
}


/* === Move issue titles further left (maximum shift) === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-120px) !important; /* extreme left shift */
}


/* === Move issue titles even further left (extreme shift) === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-180px) !important; /* extreme left shift */
}


/* === Move issue titles to the far left (ultra shift) === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-250px) !important; /* ultra left shift */
}


/* === Move issue titles to the extreme far left (super shift) === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-320px) !important; /* super left shift */
}


/* === Move issue titles upward on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -40px) !important; /* same left, now 40px up */
}


/* === Move issue titles further upward on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -90px) !important; /* same left, now 90px up */
}


/* === Move issue titles even further upward on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -150px) !important; /* same left, now 150px up */
}


/* === Move issue titles even more upward on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -220px) !important; /* same left, now 220px up */
}


/* === Move issue titles slightly lower (less up) on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -170px) !important; /* same left, now 170px up */
}


/* === Move issue titles slightly to the right on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-280px, -170px) !important; /* 40px right, same vertical position */
}


/* === Remove divider lines under issue titles === */
body.pkp_page_issue ul.issues_archive li,
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: none !important;
}


/* === Remove long horizontal line to the right of issue titles === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2,
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* === Restore divider lines between issues === */
body.pkp_page_issue ul.issues_archive li {
  border-bottom: 1px solid #ddd !important;
  box-shadow: none !important;
}


/* === Move divider lines slightly upward on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li {
  position: relative !important;
}

body.pkp_page_issue ul.issues_archive li::after {
  content: "";
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -8px !important; /* move line up relative to item */
  border-bottom: 1px solid #ddd !important;
  pointer-events: none !important;
}

body.pkp_page_issue ul.issues_archive li {
  border-bottom: none !important; /* remove default line so only moved one shows */
}


/* === Move divider lines further upward on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li::after {
  top: -5px !important; /* move line further up */
}


/* === Move divider lines even further upward on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li::after {
  top: -35px !important; /* move line further up */
}


/* === Move divider lines much higher on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li::after {
  top: -80px !important; /* extreme upward shift */
}


/* === Move divider lines extremely high on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li::after {
  top: -140px !important; /* ultra upward shift */
}


/* === Move divider lines even further upward on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li::after {
  top: -400px !important; /* super ultra upward shift */
}


/* === Move divider lines to a mega-upward position on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li::after {
  top: -300px !important; /* mega upward shift */
}


/* === Move divider lines to the left on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li::after {
  left: -100px !important; /* shift line to the left */
  right: auto !important;
  width: calc(100% + 100px) !important; /* extend to fill the gap if needed */
}


/* === Hide all divider lines on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li,
body.pkp_page_issue ul.issues_archive li::after,
body.pkp_page_issue ul.issues_archive,
body.pkp_page_issue .obj_issue_summary {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: none !important;
  content: none !important;
}


/* === Add line under issue titles on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  position: relative !important;
  padding-bottom: 10px !important;
  margin-bottom: 15px !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background-color: #bcbcbc !important; /* light gray line */
}


/* === Move line slightly down below issue titles === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  bottom: -6px !important; /* move line a bit lower */
}


/* === Move line a bit more down below issue titles === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  bottom: -14px !important; /* move line further down */
}


/* === Reduce the distance between issue titles on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: 5px !important;  /* reduce gap between issue blocks */
  padding-bottom: 0 !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: 6px !important;  /* tighter spacing below title */
  padding-bottom: 4px !important;
}


/* === Further reduce the distance between issue titles on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: 0 !important;   /* minimal gap between issue blocks */
  padding-bottom: 0 !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: 2px !important;  /* minimal space below title */
  padding-bottom: 2px !important;
}


/* === Minimize distance between issue titles to the absolute minimum === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: -5px !important;  /* overlapping minimal spacing */
  padding-bottom: 0 !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: 0 !important;  /* no space between titles */
  padding-bottom: 0 !important;
  line-height: 1 !important;     /* tighter text spacing */
}


/* === Remove all remaining distance between issue titles === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: -10px !important;  /* overlap further */
  padding-bottom: 0 !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0.9 !important; /* extra-tight spacing */
}


/* === Completely remove spacing and slightly overlap issue titles === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: -18px !important;  /* increased overlap */
  padding-bottom: 0 !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: -4px !important;  /* tighter overlap between titles */
  padding-bottom: 0 !important;
  line-height: 0.85 !important; /* extremely tight text spacing */
}


/* === Add orange underline on hover under issue titles === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title {
  position: relative !important;
  display: inline-block !important;
  text-decoration: none !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -6px !important;
  width: 0 !important;
  height: 3px !important;
  background-color: orange !important;
  transition: width 0.3s ease-in-out !important;
}

body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title:hover::after {
  width: 100% !important; /* underline appears smoothly on hover */
}


/* === Add a line above the top issue on Issues Landing Page === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  content: "" !important;
  position: absolute !important;
  top: -15px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: #bcbcbc !important; /* light gray line */
}


/* === Move the line above the top issue further up === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -40px !important; /* moved higher above first issue */
}


/* === Move the line above the top issue much higher === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -400px !important; /* moved much higher above first issue */
}


/* === Move the line above the top issue extremely high === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -400px !important; /* extreme upward shift */
}


/* === Move the line above the top issue slightly down (less up) === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -160px !important; /* moved a bit lower than before */
}


/* === Move the top line above the first issue to the left === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -100px !important; /* shift line to the left */
  width: calc(100% + 100px) !important; /* extend to maintain width */
}


/* === Move the top line above the first issue even further to the left === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -180px !important; /* more left shift */
  width: calc(100% + 180px) !important; /* extend width to match */
}


/* === Move the top line above the first issue much further to the left === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -260px !important; /* super left shift */
  width: calc(100% + 260px) !important; /* extend width to fill space */
}


/* === Move the top line above the first issue slightly more to the left === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -300px !important; /* ultra left shift */
  width: calc(100% + 300px) !important; /* extend width accordingly */
}


/* === Move the top line above the first issue slightly less to the left === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -250px !important; /* reduced left shift */
  width: calc(100% + 250px) !important; /* adjust width accordingly */
}


/* === Move the top line above the first issue slightly more to the left === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -280px !important; /* moved slightly more left */
  width: calc(100% + 280px) !important; /* adjust width accordingly */
}


/* === Move the top line above the first issue slightly up === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -180px !important; /* moved slightly higher */
}


/* === Shorten the top line from the right end === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 85% !important; /* shorten line length */
}


/* === Adjust the top line to be 90% width === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 90% !important; /* shorten line slightly less for better proportion */
}


/* === Adjust the top line to be 95% width === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 95% !important; /* slightly longer line */
}


/* === Adjust the top line to be full width (100%) === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 100% !important; /* full width line */
}


/* === Extend the top line above the first issue to 150% width === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 150% !important; /* extended beyond container width */
}


/* === Adjust the top line to be 140% width === */
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 140% !important; /* extend slightly less than 150% */
}


/* === Extend the underline under issue titles further to the right === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  width: 120% !important; /* make the line longer */
  right: -20% !important; /* extend beyond the title area */
}


/* === Extend the underline under issue titles to 140% width === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  width: 140% !important; /* make the line even longer */
  right: -40% !important; /* extend further beyond the title area */
}


/* === Extend the underline under issue titles to 145% width === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  width: 145% !important; /* slightly longer line */
  right: -45% !important; /* extend further beyond title area */
}


/* === Extend the underline under issue titles to 147% width === */
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  width: 147% !important; /* make the line slightly longer */
  right: -47% !important; /* extend a bit more beyond the title area */
}


/* v68 strong override appended at end */

/* === STRONG OVERRIDE: indent title with non‑breaking spaces and force it to apply === */
body.pkp_page_article .obj_article_details::before,
.page_article .obj_article_details::before {
  content: "\00a0\00a0\00a0\00a0Energy Conversions" !important; /* 4 NBSPs then text */
  white-space: pre !important;  /* preserve the NBSPs as visual spaces */
}



/* === v69 CLEAN FIX: padding-left for proper spacing before text === */
body.pkp_page_article .obj_article_details::before,
.page_article .obj_article_details::before {
  content: "Energy Conversions" !important;
  padding-left: 30px !important; /* consistent spacing */
  white-space: normal !important;
}



/* === v70 STRONGER INDENT: padding-left increased to 60px === */
body.pkp_page_article .obj_article_details::before,
.page_article .obj_article_details::before {
  content: "Energy Conversions" !important;
  padding-left: 60px !important;
  white-space: normal !important;
}



/* === v71 STRONGER INDENT: padding-left increased to 100px === */
body.pkp_page_article .obj_article_details::before,
.page_article .obj_article_details::before {
  content: "Energy Conversions" !important;
  padding-left: 100px !important;
  white-space: normal !important;
}



/* === v72 STRONGER INDENT: padding-left increased to 150px === */
body.pkp_page_article .obj_article_details::before,
.page_article .obj_article_details::before {
  content: "Energy Conversions" !important;
  padding-left: 150px !important;
  white-space: normal !important;
}



/* === v73 STRONGER INDENT: padding-left increased to 220px === */
body.pkp_page_article .obj_article_details::before,
.page_article .obj_article_details::before {
  content: "Energy Conversions" !important;
  padding-left: 220px !important;
  white-space: normal !important;
}



/* === v74 ADJUSTED INDENT: padding-left set to 180px === */
body.pkp_page_article .obj_article_details::before,
.page_article .obj_article_details::before {
  content: "Energy Conversions" !important;
  padding-left: 180px !important;
  white-space: normal !important;
}



/* === v75 ADJUSTED INDENT: padding-left set to 190px === */
body.pkp_page_article .obj_article_details::before,
.page_article .obj_article_details::before {
  content: "Energy Conversions" !important;
  padding-left: 190px !important;
  white-space: normal !important;
}



/* === v85: RESET AND RESTYLE ARTICLE TITLE === */
.page_article h1.page_title,
body.pkp_page_article h1.page_title,
.obj_article_details h1.page_title {
  all: unset !important; /* remove inherited/conflicting rules */
  display: inline !important;
  font-family: ElsevierGulliver, Georgia, "Times New Roman", Times, STIXGeneral,
               "Cambria Math", "Lucida Sans Unicode", "Microsoft Sans Serif",
               "Segoe UI Symbol", "Arial Unicode MS", serif, sans-serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 42px !important;
  color: rgb(31, 31, 31) !important;
  text-align: start !important;
  white-space: normal !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 5 !important;
}



/* === v86: LIMIT ARTICLE TITLE WIDTH FROM RIGHT END === */
.page_article h1.page_title,
body.pkp_page_article h1.page_title,
.obj_article_details h1.page_title {
  max-width: 70% !important;        /* reduce the width from right end */
  margin-right: auto !important;    /* ensure left alignment */
  margin-left: 0 !important;
  display: block !important;        /* wrap if needed */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}



/* === v87: LIMIT ARTICLE TITLE WIDTH FROM RIGHT END TO 69% === */
.page_article h1.page_title,
body.pkp_page_article h1.page_title,
.obj_article_details h1.page_title {
  max-width: 69% !important;        /* fine-tuned width */
  margin-right: auto !important;
  margin-left: 0 !important;
  display: block !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}



/* === v88: MOVE VOLUME TEXT ABOVE ARTICLE TITLE === */
.page_article .item.issue,
.page_article .item.volume,
.page_article .published-details,
.page_article .publication,
.page_article .issue-details {
  display: block !important;
  order: -1 !important;           /* Move before the title */
  margin-bottom: 6px !important;  /* spacing below volume text */
  font-size: 11px !important;
  color: #444 !important;
  text-align: left !important;
  font-style: italic !important;
}

/* Ensure the title sits immediately below */
.page_article h1.page_title,
body.pkp_page_article h1.page_title,
.obj_article_details h1.page_title {
  margin-top: 0 !important;
}



/* === v89: MOVE VOLUME TEXT FURTHER UP === */
.page_article .item.issue,
.page_article .item.volume,
.page_article .published-details,
.page_article .publication,
.page_article .issue-details {
  margin-top: -5px !important;   /* shift higher upward */
  margin-bottom: 6px !important;
}



/* === v90: MOVE VOLUME TEXT EVEN HIGHER === */
.page_article .item.issue,
.page_article .item.volume,
.page_article .published-details,
.page_article .publication,
.page_article .issue-details {
  margin-top: -40px !important;   /* shift even higher upward */
  margin-bottom: 6px !important;
}



/* === v91: MOVE VOLUME TEXT HIGHEST === */
.page_article .item.issue,
.page_article .item.volume,
.page_article .published-details,
.page_article .publication,
.page_article .issue-details {
  margin-top: -60px !important;   /* move very high upward */
  margin-bottom: 6px !important;
}



/* === v92: MOVE VOLUME TEXT TOPMOST === */
.page_article .item.issue,
.page_article .item.volume,
.page_article .published-details,
.page_article .publication,
.page_article .issue-details {
  margin-top: -80px !important;   /* move to topmost position */
  margin-bottom: 6px !important;
}



/* === v93: MOVE VOLUME TEXT TOPMOST (120px HIGHER) === */
.page_article .item.issue,
.page_article .item.volume,
.page_article .published-details,
.page_article .publication,
.page_article .issue-details {
  margin-top: -400px !important;   /* move much higher upward */
  margin-bottom: 6px !important;
}



/* === v94: MOVE VOLUME TEXT TOPMOST (140px HIGHER) === */
.page_article .item.issue,
.page_article .item.volume,
.page_article .published-details,
.page_article .publication,
.page_article .issue-details {
  margin-top: -140px !important;   /* move higher upward */
  margin-bottom: 6px !important;
}



/* === v95: VOLUME TEXT NORMAL (NOT ITALIC) === */
.page_article .item.issue,
.page_article .item.volume,
.page_article .published-details,
.page_article .publication,
.page_article .issue-details {
  margin-top: -140px !important;   /* keep same top position */
  margin-bottom: 6px !important;
  font-style: normal !important;   /* remove italics */
}



/* === v96: REDUCE SPACING BETWEEN AUTHORS === */
.page_article ul.authors,
.obj_article_details ul.authors {
  gap: 8px !important;             /* tighter horizontal spacing */
  column-gap: 8px !important;
  row-gap: 0 !important;
  justify-content: center !important;
}

.page_article ul.authors li,
.obj_article_details ul.authors li {
  margin: 0 3px !important;        /* reduce side margins between authors */
}



/* === v97: REDUCE SPACING BETWEEN AUTHORS EVEN MORE === */
.page_article ul.authors,
.obj_article_details ul.authors {
  gap: 4px !important;             /* tighter horizontal spacing */
  column-gap: 4px !important;
  row-gap: 0 !important;
  justify-content: center !important;
}

.page_article ul.authors li,
.obj_article_details ul.authors li {
  margin: 0 1px !important;        /* minimal side margins */
}



/* === v98: ADD COMMAS BETWEEN AUTHORS === */
.page_article ul.authors li:not(:last-child)::after,
.obj_article_details ul.authors li:not(:last-child)::after {
  content: ", " !important; /* Add comma after each author except the last one */
  color: inherit !important;
}



/* === v101: AUTHORS ON ONE LINE, COMMAS ONLY, NO EXTRA ICONS === */

/* 1) Make the authors list render inline and disable flex/gaps from earlier rules */
.page_article ul.authors,
.obj_article_details ul.authors,
.item.authors ul.authors {
  display: block !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  gap: 0 !important;           /* neutralize any previous flex gap */
}

/* 2) Each author inline with tiny spacing */
.page_article ul.authors li,
.obj_article_details ul.authors li,
.item.authors ul.authors li {
  display: inline !important;
  margin: 0 2px 0 0 !important;
  position: static !important;
  vertical-align: baseline !important;
}

/* 3) Remove ALL decorative icons/images previously attached to authors */
.page_article ul.authors li::before,
.page_article ul.authors li::after,
.obj_article_details ul.authors li::before,
.obj_article_details ul.authors li::after,
.item.authors ul.authors li::before,
.item.authors ul.authors li::after {
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
}

/* 4) Add clean commas between names (inline, not duplicated) */
.page_article ul.authors li:not(:last-child)::after,
.obj_article_details ul.authors li:not(:last-child)::after,
.item.authors ul.authors li:not(:last-child)::after {
  content: ", " !important;
  display: inline !important;
  position: static !important;
  color: inherit !important;
  vertical-align: baseline !important;
}



/* === Clean ScienceDirect-like Authors Styling (No Icons, With Commas) === */
ul.authors {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
ul.authors li {
    font-family: ElsevierSans, Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #1F1F1F !important;
    line-height: 24px !important;
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
ul.authors li::before,
ul.authors li::after {
    content: "" !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul.authors li:not(:last-child)::after {
    content: "," !important;
    margin-left: 2px !important;
    margin-right: 5px !important;
    color: #1F1F1F !important;
}



/* === Orange underline on author hover (ScienceDirect-style) === */
ul.authors li {
    position: relative !important;
}

ul.authors li:hover {
    cursor: pointer !important;
}

ul.authors li::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -2px !important;
    width: 0% !important;
    height: 2px !important;
    background-color: #ff6c00 !important;
    transition: width 0.25s ease-in-out !important;
}

ul.authors li:hover::after {
    width: 100% !important;
}



/* === FIX: Keep commas and add orange underline under author names on hover === */

/* Restore comma after each author except the last one */
ul.authors li:not(:last-child)::after {
    content: "," !important;
    margin-left: 2px !important;
    margin-right: 5px !important;
    color: #1F1F1F !important;
    background: none !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
}

/* Prepare author name span for underline effect */
ul.authors li span.name {
    position: relative !important;
    display: inline-block !important;
}

/* Orange underline element under the name text only */
ul.authors li span.name::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -2px !important;
    width: 0% !important;
    height: 2px !important;
    background-color: #ff6c00 !important; /* ScienceDirect orange */
    transition: width 0.25s ease-in-out !important;
}

/* On hover, extend the orange line to full width of the name */
ul.authors li span.name:hover::after {
    width: 100% !important;
}



/* === FIX 2: Change existing underline to orange on hover instead of adding a new one === */

/* Remove any decorative ::after underline */
ul.authors li span.name::after {
    content: none !important;
}

/* Authors default underline (black) */
ul.authors li span.name {
    text-decoration: underline !important;
    text-decoration-color: #000000 !important;
    text-underline-offset: 3px !important;
}

/* On hover, make underline orange */
ul.authors li span.name:hover {
    text-decoration-color: #ff6c00 !important; /* ScienceDirect Orange */
}



/* === Strong image rule after LAST author name === */

/* Clear any previous background images on author names */
ul.authors li span.name {
    background-image: none !important;
}

/* Add image to the last author name in any authors list */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    background-image: url('https://i.imgur.com/8d4RaRJ.png') !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 18px 18px !important;
    padding-right: 24px !important;
    display: inline-block !important;
}



/* === Increase last author image to 24x24 === */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    background-size: 24px 24px !important;
    padding-right: 30px !important;
}



/* === Increase last author image to 24x30 === */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    background-size: 24px 30px !important;
    padding-right: 36px !important;
}
\n\n
/* === Increase last author image to 30x24 === */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    background-size: 30px 24px !important;
    padding-right: 38px !important;
}



/* === Increase horizontal length of last-author image to 45x24 === */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    background-size: 45px 24px !important;
    padding-right: 55px !important;
}



/* === Slightly less horizontal length: 40x24 === */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    background-size: 40px 24px !important;
    padding-right: 50px !important;
}



/* === Slightly less horizontal length: 36x24 === */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    background-size: 36px 24px !important;
    padding-right: 46px !important;
}



/* === Reduce vertical length: 36x20 === */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    background-size: 36px 20px !important;
    padding-right: 46px !important;
}



/* === Bring image closer to the author name === */
.item.authors ul.authors li:last-child span.name,
ul.authors li:last-child span.name,
span.name:last-of-type {
    padding-right: 38px !important;
}



/* === Remove any pseudo-element badge attached to the Authors section === */
body.pkp_page_article section.item.authors::after,
body.pkp_page_article section.item.authors::before {
    content: "" !important;
    background: none !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
}



/*************************************************
 * SHOW MORE – BLUE TEXT + ORANGE UNDERLINE ON HOVER (TEXT-DECORATION VERSION)
 *************************************************/

/* Ensure authors block is centered and block-level */
ul.authors {
    display: block !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
}

/* Default: blue text, NO underline */
ul.authors::after {
    content: "Show more  \25BC"; /* ▼ arrow */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;

    font-family: ElsevierSans, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #0272b1;

    cursor: pointer;

    text-decoration: none !important;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease-in-out;
}

/* Hover: ONLY underline appears in orange, text remains blue */
ul.authors:hover::after {
    color: #0272b1 !important; /* keep blue */
    text-decoration-line: underline !important;
    text-decoration-color: #eb6500 !important;
}



/*************************************************
 * FINAL FIX – FORCE "SHOW MORE" ON ITS OWN LINE
 * AND REMOVE FLEX LAYOUT FROM AUTHORS
 *************************************************/

/* Override any earlier flex layout on authors list */
.item.authors ul.authors,
ul.authors {
    display: block !important;      /* no flex, normal block */
    padding-left: 0 !important;
    margin-bottom: 1rem !important;
    text-align: left !important;    /* align with author names */
}

/* Force "Show more" to be on its own line under authors */
.item.authors ul.authors::after,
ul.authors::after {
    content: "Show more  \25BC";   /* ▼ arrow */
    display: block !important;      /* own line */
    margin-top: 6px;

    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode", sans-serif !important;
    font-size: 11px !important;
    font-weight: 400;
    color: #0272b1;
    cursor: pointer;

    text-decoration: none !important;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease-in-out;
}

/* Hover: blue text, orange underline */
.item.authors ul.authors:hover::after,
ul.authors:hover::after {
    color: #0272b1 !important;
    text-decoration-line: underline !important;
    text-decoration-color: #eb6500 !important;
}



/* === ECM FINAL v2: Share & Cite row + long floating line above Highlights === */

/* Ensure the highlights box can host absolutely positioned elements */
body.pkp_page_article section.item.keywords {
    position: relative !important;
}

/* Long floating line between Share/Cite and the Highlights box */
body.pkp_page_article section.item.keywords::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: -22px !important;          /* distance above the box */
    width: 100% !important;         /* full width of the box */
    height: 1px !important;
    background-color: #d0d0d0 !important;
}

/* Share icon – Share text – Cite icon – Cite text */
body.pkp_page_article section.item.keywords::after {
    content: "Share          Cite" !important;   /* spaces preserved */
    white-space: pre !important;

    position: absolute !important;
    left: 0 !important;
    top: -48px !important;          /* above the floating line */

    display: inline-block !important;
    font-family: Garamond, serif !important;
    font-size: 18px !important;
    font-weight: normal !important;
    color: #000000 !important;
    text-decoration: none !important;
    cursor: default !important;

    padding-left: 32px !important;  /* room for Share icon */

    /* two icons to the left of each word */
    background-image:
        url('https://i.imgur.com/LMIazwy.png'),  /* Share icon */
        url('https://i.imgur.com/vov1g59.png');  /* Cite icon */
    background-repeat: no-repeat, no-repeat !important;
    background-position:
        0px center,     /* Share icon */
        92px center     /* Cite icon */
        !important;
    background-size:
        22px 22px,
        22px 22px !important;
}

/* Hover effect: orange underline on the text */
body.pkp_page_article section.item.keywords:hover::after {
    text-decoration: underline !important;
    text-decoration-color: #ff6a00 !important;
}



/* === Make floating line black === */
body.pkp_page_article section.item.keywords::before {
    background-color: #000000 !important;
}



/* === Push floating black line 10px DOWN === */
body.pkp_page_article section.item.keywords::before {
    top: -12px !important;
}



/* === Restore 'Highlights' title inside the grey box === */
body.pkp_page_article section.item.keywords .value::before {
    content: "Highlights";
    display: block;
    font-family: ElsevierGulliver, Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 4px;
}



/* === Strong restore of 'Highlights' inside the keywords grey box === */

/* Hide the default 'Keywords' label if present */
body.pkp_page_article section.item.keywords .label {
    display: none !important;
}

/* Use the value container as the visual box header */
body.pkp_page_article section.item.keywords .value {
    position: relative !important;
    padding-top: 28px !important;  /* room for the 'Highlights' title */
}

/* Inject 'Highlights' as a title inside the grey box */
body.pkp_page_article section.item.keywords .value::before {
    content: "Highlights" !important;
    position: absolute !important;
    top: -44px !important; /* moved up 50px on mobile */
    left: 0 !important;
    display: block !important;
    font-family: ElsevierGulliver, Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #000000 !important;
}



/* === Move Highlights title 10px UP === */
body.pkp_page_article section.item.keywords .value::before {
    top: -4px !important;
}



/* === Push keywords text 10px DOWN below Highlights === */
body.pkp_page_article section.item.keywords .value {
    padding-top: 38px !important;
}



/* ===== Left-margin background image on article pages (ECM) - original image size ===== */
body.pkp_page_article {
    background-image: url("https://i.imgur.com/MVEZxDT.jpg");
    background-repeat: no-repeat;
    /* x = 10px from left, y = 200px from top */
    background-position: 30px 140px;
    background-attachment: scroll;
}



/* ===== Extra PDF link label near left image (clickable, keeps original View PDF icon) ===== */
body.pkp_page_article 
\n\n
/* === Custom PDF icon from Imgur inside the View PDF button === */




/* === PDF button with Imgur icon as background === */
a.obj_galley_link.pdf {
    background-image: url("https://i.imgur.com/wDbU2rR.png") !important;
    background-repeat: no-repeat !important;
    background-position: 8px center !important;
    background-size: 18px 18px !important;
    padding-left: 36px !important; /* space for icon */
}



/* Hide original inner PDF label/icon on article pages, keep only custom button icon + View text */
body.pkp_page_article .obj_galley_link.pdf span,
body.pkp_page_article .obj_galley_link.pdf i {
    display: none !important;
}



/* On article pages, hide original PDF text inside link; show only custom icon + View label */
body.pkp_page_article .obj_galley_link.pdf {
    font-size: 0 !important;
}

body.pkp_page_article .obj_galley_link.pdf::after {
    font-size: 16px;
    content: "View PDF";
}


body.pkp_page_article .obj_galley_link.pdf::before {
    content: "Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025\A Volume 101 · July 2025";
    white-space: pre;
    line-height: 2.7;

    position: absolute;
    left: -358px;   /* horizontally align near side image at 30px */
    top: 108px;   /* vertically align near side image at 140px */
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: normal;
    color: transparent;
    z-index: 1100;
}



/* === Embedded PDF icon as background on PDF button (article pages only) === */
body.pkp_page_article a.obj_galley_link.pdf {
    background-image: url("https://i.imgur.com/wDbU2rR.png") !important;
    background-repeat: no-repeat !important;
    background-position: 8px center !important;
    background-size: 18px 18px !important;
    padding-left: 36px !important; /* space for icon */
}

/* Circular editor-in-chief image under the label on the home page */
.pkp_page_index span[style*="font-size: 16.0pt"][style*="color: white"] {
    display: inline-block;
    text-align: center;
}

/* Circle avatar under "Editor-in-chief" */
.pkp_page_index span[style*="font-size: 16.0pt"][style*="color: white"]::after {
    content: "";
    display: block;
    margin: 60px auto 0;
    width: 120px;             /* adjust size as needed */
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-image: url("https://i.imgur.com/d8iMymw.png");
    background-size: cover;
    background-position: center;
}

/* === Home page CTA styling for "View full aims & scope" and "View all insights" === */

/* Remove default underline from links on the home page */
.pkp_page_index a,
.pkp_page_index a:hover,
.pkp_page_index a:focus {
    text-decoration: none !important;
}

/* "View full aims & scope" – blue text with animated orange underline on hover.
   Targets the Word-pasted span that has line-height and blue color. */
.pkp_page_index span[style*="line-height: 150%"][style*="color: blue"] {
    color: rgb(2, 114, 177) !important;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    display: inline-block;
}

/* Orange line animation under "View full aims & scope" */
.pkp_page_index span[style*="line-height: 150%"][style*="color: blue"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #f58220; /* Elsevier-style orange */
    transition: width 0.2s ease-in-out;
}

.pkp_page_index span[style*="line-height: 150%"][style*="color: blue"]:hover::after {
    width: 100%;
}

/* "View all insights" – black text with icon and orange underline on hover.
   Targets similar span but WITHOUT line-height in the inline style. */
.pkp_page_index span[style*="font-size: 12.0pt"][style*="color: blue"]:not([style*="line-height"]) {
    color: #000000 !important;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Icon before "View all insights" (original image size) */
.pkp_page_index span[style*="font-size: 12.0pt"][style*="color: blue"]:not([style*="line-height"])::before {
    content: url("https://i.imgur.com/l0MtBdW.png");
    display: inline-block;
    margin-right: 6px;
}

/* Orange hover line for "View all insights" */
.pkp_page_index span[style*="font-size: 12.0pt"][style*="color: blue"]:not([style*="line-height"])::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #f58220;
    transition: width 0.2s ease-in-out;
}

.pkp_page_index span[style*="font-size: 12.0pt"][style*="color: blue"]:not([style*="line-height"]):hover::after {
    width: 100%;
}

/* Reduce vertical spacing for "View Full editorial board" row on home page */
.pkp_page_index td:has(a[href*="Editorialboard"]) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
}

.pkp_page_index td:has(a[href*="Editorialboard"]) .MsoNormal {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Tighten line-height of the "View Full editorial board" link text */
.pkp_page_index a[href*="Editorialboard"] span {
    line-height: 1.1 !important;
}

/* Remove left/right whitespace on the home page (full-width layout) */
body.pkp_page_index,
.pkp_page_index .pkp_structure_page,
.pkp_page_index .pkp_structure_content,
.pkp_page_index .pkp_structure_main,
.pkp_page_index .pkp_page_content,
.pkp_page_index .page,
.pkp_page_index body > div.wrapper,
.pkp_page_index body > div.container,
.pkp_page_index body > div.page,
.pkp_page_index body > main {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove side padding from bootstrap containers on home page */
body.pkp_page_index .container,
body.pkp_page_index .pkp_structure_content .pkp_structure_main,
body.pkp_page_index .pkp_structure_main > .page {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Smaller font for "View Full editorial board" link text */
.pkp_page_index a[href*="Editorialboard"] span {
    font-size: 10pt !important;
    line-height: 1.1 !important;
}

/* Pull "View Full editorial board" line upwards (reduce vertical gap) */
.pkp_page_index td:has(a[href*="Editorialboard"]) .MsoNormal {
    margin-top: -5px !important;
    margin-bottom: 0 !important;
}

/* Force underline for "View Full editorial board" link text */
.pkp_page_index a[href*="Editorialboard"],
.pkp_page_index a[href*="Editorialboard"] span {
    text-decoration: underline !important;
}

/* Add icon image to the left of the "feedback" mail link */
body.pkp_page_index a[href*="mailto:energycovs@gmail.com"] {
    display: inline-flex;
    align-items: center;
}

/* Icon before "feedback" text */
body.pkp_page_index a[href*="mailto:energycovs@gmail.com"]::before {
    content: url("https://i.imgur.com/MGPaPsY.png");
    display: inline-block;
    margin-right: 6px;
}

/* Make the feedback mail link a floating button in the bottom-right corner */
body.pkp_page_index a[href*="mailto:energycovs@gmail.com"] {
    position: fixed;
    bottom: -3px;
    right: 20px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: #f58220;
    color: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    text-decoration: none !important;
    font-size: 11pt;
    font-family: Arial, sans-serif;
}

/* Ensure icon stays visible and nicely aligned */
body.pkp_page_index a[href*="mailto:energycovs@gmail.com"]::before {
    content: url("https://i.imgur.com/MGPaPsY.png");
    display: inline-block;
    margin-right: 4px;
}

/* Subtle hover effect */
body.pkp_page_index a[href*="mailto:energycovs@gmail.com"]:hover {
    background-color: #d86f19;
}

/* Hide the feedback mail link on all pages except the home page */
body:not(.pkp_page_index) a[href*="mailto:energycovs@gmail.com"] {
    display: none !important;
}

/* Floating image at bottom-right corner on the home page (original size) */
body.pkp_page_index::after {
    content: url("https://i.imgur.com/MGPaPsY.png");
    position: fixed;
    bottom: -3px;
    right: 20px;
    pointer-events: none; /* don't block clicks on other elements */
    z-index: 9999;
}

/* === Remove icon image next to "Search this journal" in the main nav === */
.pkp_navigation_primary > li > a[href*="search"] {
    background-image: none !important;
    background-repeat: none !important;
    background-position: initial !important;
    background-size: auto !important;
    padding-left: 10px !important; /* reset padding so text is aligned */
}

/* === Custom icon next to "Search this journal" in the main nav === */
.pkp_navigation_primary > li > a[href*="search"] {
    background-image: url("https://i.imgur.com/MPhdH20.png") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 18px 18px !important;
    padding-left: 30px !important; /* space for the icon */
}

/* === Custom icon next to "Submit your article" in the main nav === */
.pkp_navigation_primary > li > a[href*="submissions"] {
    background-image: url("https://i.imgur.com/rUtqRlE.png") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 18px 18px !important;
    padding-right: 32px !important; /* space for the icon */
}

/* === Custom icon next to "Order journal" in the main nav === */
.pkp_navigation_primary > li > a[href*="Orderjournal"] {
    background-image: url("https://i.imgur.com/rUtqRlE.png") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 18px 18px !important;
    padding-right: 32px !important; /* space for the icon */
}

/* === Disable orange hover underline on main navigation items === */
.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Remove any pseudo-element hover lines on nav items */
.pkp_navigation_primary > li > a::after,
.pkp_navigation_primary > li > a:hover::after,
.pkp_navigation_primary > li > a:focus::after {
    content: none !important;
    border-bottom: none !important;
    background: none !important;
}

/* === Keep main navigation text color the same on hover (no orange) === */
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: inherit !important;
}

/* === Orange hover underline only for "Guide for authors" in main nav === */
.pkp_navigation_primary > li > a[href*="author"] {
    position: relative;
    display: inline-block;   /* shrink width to text so line matches text width */
}

/* Orange line animation under "Guide for authors" */
.pkp_navigation_primary > li > a[href*="author"]::after {
    content: "" !important;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #f58220 !important;
    transition: width 0.2s ease-in-out;
}

/* Expand line on hover/focus */
.pkp_navigation_primary > li > a[href*="author"]:hover::after,
.pkp_navigation_primary > li > a[href*="author"]:focus::after {
    width: 100%;
}

/* === Orange underline only under the text of "Guide for authors" (no full container line) === */
.pkp_navigation_primary > li > a[href*="author"]::after {
    content: none !important;   /* disable block underline for this item */
}

/* Hover/focus: text underline in orange matching text width */
.pkp_navigation_primary > li > a[href*="author"]:hover,
.pkp_navigation_primary > li > a[href*="author"]:focus {
    text-decoration: underline !important;
    text-decoration-color: #f58220 !important;
    text-decoration-thickness: 12px;
    text-underline-offset: 4px; /* small gap between text and line */
}

/* === Thick orange underline (12px) on hover for selected main nav items === */
.pkp_navigation_primary > li > a[href*="author"]:hover,
.pkp_navigation_primary > li > a[href*="author"]:focus,
.pkp_navigation_primary > li > a[href*="submissions"]:hover,
.pkp_navigation_primary > li > a[href*="submissions"]:focus,
.pkp_navigation_primary > li > a[href*="Orderjournal"]:hover,
.pkp_navigation_primary > li > a[href*="Orderjournal"]:focus,
.pkp_navigation_primary > li > a[href*="search"]:hover,
.pkp_navigation_primary > li > a[href*="search"]:focus,
.pkp_navigation_primary > li > a[href*="login"]:hover,
.pkp_navigation_primary > li > a[href*="login"]:focus,
.pkp_navigation_primary > li > a[href*="user"]:hover,
.pkp_navigation_primary > li > a[href*="user"]:focus,
.pkp_navigation_primary > li > a[href*="help"]:hover,
.pkp_navigation_primary > li > a[href*="help"]:focus,
.pkp_navigation_primary > li > a[href*="journal"]:hover,
.pkp_navigation_primary > li > a[href*="journal"]:focus,
.pkp_navigation_primary > li > a[href*="book"]:hover,
.pkp_navigation_primary > li > a[href*="book"]:focus {
    text-decoration: underline !important;
    text-decoration-color: #f58220 !important;
    text-decoration-thickness: 12px;
    text-underline-offset: 4px;
}

/* === 12px orange underline on hover for specific header nav links (by exact URL) === */
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:hover,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:focus,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/help"]:hover,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/help"]:focus,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/search"]:hover,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/search"]:focus,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/login"]:hover,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/login"]:focus,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/about/submissions"]:hover,
.pkp_navigation_primary > li > a[href="https://energyconversions.org/index.php/ecm/about/submissions"]:focus,
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:hover,
a[href="https://energyconversions.org/index.php/ecm/Journals_Books"]:focus,
a[href="https://energyconversions.org/index.php/ecm/help"]:hover,
a[href="https://energyconversions.org/index.php/ecm/help"]:focus,
a[href="https://energyconversions.org/index.php/ecm/search"]:hover,
a[href="https://energyconversions.org/index.php/ecm/search"]:focus,
a[href="https://energyconversions.org/index.php/ecm/login"]:hover,
a[href="https://energyconversions.org/index.php/ecm/login"]:focus,
a[href="https://energyconversions.org/index.php/ecm/about/submissions"]:hover,
a[href="https://energyconversions.org/index.php/ecm/about/submissions"]:focus {
    text-decoration: underline !important;
    text-decoration-color: #f58220 !important;
    text-decoration-thickness: 12px;
    text-underline-offset: 4px;
}

/* === Hide big journal header/nav on the login page only === */
body.pkp_page_login .pkp_structure_head {
    display: none !important;
}

/* Pull login content up now that the header is hidden */
body.pkp_page_login .pkp_structure_content {
    margin-top: 20px !important;
}

/* === Login page logo/image at the top center === */
body.pkp_page_login .pkp_structure_content::before {
    content: url("https://i.imgur.com/t3jByxq.png");
    display: block;
    margin-top: 30px;
    margin-bottom: 10px;
    margin-left: 350px;
}

/* === Override login labels cleanly using .username and .password containers === */
/* Target only the username & password labels inside the login form */
body.pkp_page_login form#login .username span.label,
body.pkp_page_login form#login .password span.label {
    position: relative;
    font-size: 0 !important; /* hide original label text ("Username or Email", "Password", etc.) */
    
    /* Match label visual style */
    display: block;
    float: left;
    text-align: right;
    padding-right: 2em;
    width: 165px;
    color: #003366;
    line-height: 20px;
    vertical-align: middle;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: -10px;
}

/* New text for username label */
body.pkp_page_login form#login .username span.label::before {
    content: "Username:" !important;
    font-size: 11px !important;
    font-weight: normal;
    color: #003366;
}

/* New text for password label */
body.pkp_page_login form#login .password span.label::before {
    content: "Password:" !important;
    font-size: 11px !important;
    font-weight: normal;
    color: #003366;
}

/* Hide asterisks/screen-reader extras inside these two labels only */
body.pkp_page_login form#login .username span.label .required,
body.pkp_page_login form#login .username span.label .pkp_screen_reader,
body.pkp_page_login form#login .password span.label .required,
body.pkp_page_login form#login .password span.label .pkp_screen_reader {
    display: none !important;
}

/* === LOGIN FORM LAYOUT TO MIMIC EDITORIAL MANAGER STYLE === */

/* Main login form box */
body.pkp_page_login form#login {
    max-width: 520px;
    margin: -90px auto 40px auto;
    padding: 18px 24px 24px 24px;
    border: 1px solid #cccccc;
    background: #f7f7f7;
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
    position: relative;
    left: 100px;
    font-family: Arial, Helvetica, sans-serif;
}

/* "Please Enter the Following" tab heading */
body.pkp_page_login form#login::before {
    content: "Please Enter the Following";
    position: absolute;
    top: -13px;
    left: 12px;
    padding: 3px 10px;
    background: #ffffff;
    border: 1px solid #cccccc; /* gray border to match box */
    font-weight: bold;
    font-size: 12px;
}

/* Arrange username & password rows similarly to screenshot */
body.pkp_page_login form#login .username,
body.pkp_page_login form#login .password {
    clear: both;
    overflow: hidden;
    margin-bottom: -25px;
}

/* Value container (inputs) beside labels */
body.pkp_page_login form#login .username .value,
body.pkp_page_login form#login .password .value {
    float: left;
}

/* Text fields style similar to screenshot */
body.pkp_page_login form#login input[type="text"],
body.pkp_page_login form#login input[type="password"],
body.pkp_page_login form#login input[type="email"] {
    min-width: 230px;
    padding: 2px 4px;
    border: 1px solid #a6a6a6;
    background: #ffffff;
    line-height: 18px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

/* Submit button look (grey rectangular button) */
body.pkp_page_login form#login .buttons button,
body.pkp_page_login form#login .buttons input[type="submit"],
body.pkp_page_login form#login button.submit,
body.pkp_page_login form#login input[type="submit"] {
    background: #e0e0e0;
    border: 1px solid #999999;
    padding: 3px 6px 0px 6px; /* صغرنا من اليمين والشمال */
    margin-top: 0px;
    margin-bottom: -4px;
    margin-right: 4px;
    font-size: 12px;
    font-weight: normal;
    line-height: 11px;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

body.pkp_page_login form#login .buttons button:hover,
body.pkp_page_login form#login .buttons input[type="submit"]:hover,
body.pkp_page_login form#login button.submit:hover,
body.pkp_page_login form#login input[type="submit"]:hover {
    background: #f0f0f0;
}

/* Optional: make "Remember me" row align under fields but not like main labels */
body.pkp_page_login form#login .remember {
    margin-top: 8px;
    margin-left: 165px; /* align with inputs after labels */
    font-size: 12px;
}

/* === Image to the left of the login box === */
/* Commented out to keep heading text visible
body.pkp_page_login form#login::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -230px;
    width: 200px;
    height: 266px;
    display: block;
    background-image: url("https://i.imgur.com/evre0RO.png");
    background-repeat: no-repeat;
    background-size: 200px 266px;
}
*/

/* === Change "Forgot your password?" link text to "Send Login Details" on login page === */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login/lostPassword"] {
    position: relative;
    font-size: 0 !important; /* hide original text */
    display: inline-block;
    margin-top: 72px; /* moved 20px further up */
    margin-left: 100px; /* push it 100px to the right */
}

body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login/lostPassword"]::before {
    content: "Send Login Details";
    font-size: 9.52px !important;
    font-weight: normal;
    color: #0000ee;
}

/* === Change Login button text to "Author Login" on login page === */
body.pkp_page_login form#login button.submit {
    position: relative;
    font-size: 0 !important; /* hide original "Login" text */
}

body.pkp_page_login form#login button.submit::before {
    content: url("https://i.imgur.com/NlrPQzt.png");
    display: inline-block;
}

/* === Four role-style login buttons in a single row (Author / Reviewer / Editor / Publisher) === */
body.pkp_page_login form#login .buttons {
    display: inline-flex;
    gap: 8px;
    margin-top: 10px;
}

/* Base style for Author Login button when using image */
body.pkp_page_login form#login .buttons button.submit {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0; /* hide native text completely */
    line-height: 0;
    box-shadow: none;
    display: inline-block;
    cursor: pointer;
}

/* Author Login text (real button) */
body.pkp_page_login form#login button.submit::before {
    content: "Author Login";
    font-size: 11px !important;
    font-weight: normal;
    color: #003366;
    font-family: Arial, Helvetica, sans-serif;
}


/* Editor & Publisher buttons as pseudo-elements on the container */

/* === Remove leftover empty boxes next to Author Login === */
body.pkp_page_login form#login .buttons::before,
body.pkp_page_login form#login .buttons::after {
    content: none !important;
    display: none !important;
}

/* Style Register like "Send Login Details" */
body.pkp_page_login form#login .buttons a[href*="register"] {
    font-size: 9.52px !important;
    font-weight: normal;
    color: #0000ee;
    padding: 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-block;
    margin-top: -79px; /* pushed 22px down from -101px (2px more down) */
    margin-left: -210px; /* moved 210px to the left total */
    text-decoration: none !important; /* no underline by default */
}

/* Underline Register on hover */
body.pkp_page_login form#login .buttons a[href*="register"]:hover {
    text-decoration: underline !important;
}

/* === Force Author Login button to be exactly the image (override everything) === */
body.pkp_page_login form#login .buttons button.submit {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;      /* hides any "Login" text */
    line-height: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    background-image: url("https://i.imgur.com/NlrPQzt.png") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    display: inline-block !important;
    cursor: pointer;
}

/* Cancel any ::before content on the submit button */
body.pkp_page_login form#login .buttons button.submit::before {
    content: none !important;
}

/* === Final override: render Author Login as image button === */
body.pkp_page_login form#login .buttons button.submit {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;   /* hide "Login" text */
    line-height: normal !important;
    box-shadow: none !important;
    display: inline-block !important;
    cursor: pointer;
}

/* Use ::after to show the image in its original size */
body.pkp_page_login form#login .buttons button.submit::after {
    content: url("https://i.imgur.com/NlrPQzt.png") !important;
    display: inline-block !important;
    position: relative;
    top: -150px; /* moved image 40px down from -190px (now 150px up total) */
}

/* Make sure no other pseudo-content conflicts */
body.pkp_page_login form#login .buttons button.submit::before {
    content: none !important;
}

/* Remove underline from "Send Login Details" link */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login/lostPassword"],
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login/lostPassword"]:hover {
    text-decoration: none !important;
}

/* Underline "Send Login Details" on hover */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login/lostPassword"]:hover::before {
    text-decoration: underline !important;
}

/* Add small icon image next to "Send Login Details" */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login/lostPassword"]::after {
    content: url("https://i.imgur.com/bF91gGm.png");
    display: inline-block;
    margin-left: -104px; /* moved 110px left from original 6px */
    position: relative;
    top: -12px; /* moved icon 12px up total */
}

/* Hide "Keep me logged in" label next to the checkbox on login page */
body.pkp_page_login form#login input[type="checkbox"] + span.label {
    display: none !important;
}

/* Hide the 'remember me' checkbox itself on login page */
body.pkp_page_login form#login input#remember,
body.pkp_page_login form#login input[type="checkbox"][name="remember"] {
    display: none !important;
}


/* === Helper text next to Register link: "What is ORCID?" (login page only, not lostPassword) === */
body.pkp_page_login:not(.pkp_op_lostPassword) a[href*="user/register"]::after {
    content: " What is ORCID?";
    margin-left: 8px;
    font-size: 0.9em;
    color: #0000ee;
    cursor: default;
    position: relative;
    top: -27px; /* moved 3px down */
    left: -40px;
    display: inline-block;
    pointer-events: none;
}

/* === Top banner image on login page (floating over content) === */
body.pkp_page_login .pkp_structure_page {
    position: relative;
}

body.pkp_page_login .pkp_structure_page::before {
    content: url("https://i.imgur.com/32Bt37r.png");
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    z-index: 1000;
    pointer-events: none;
}

/* === Make the 'Home' login link visible only on the login page === */

/* Hide this specific link everywhere except on the login page */
/* body:not(.pkp_page_login) a[href*="/index.php/ecm/login"] {
    display: none !important;
}  -- disabled to keep login links visible on other pages */

/* Ensure it is visible on the login page */
body.pkp_page_login a[href*="/index.php/ecm/login"] {
    display: inline-block !important;
}


/* === On login page: show header but only show 'Home' link to /index.php/ecm/login === */

/* Re-show header on login page */
body.pkp_page_login .pkp_structure_head {
    display: block !important;
    margin-top: -60px;   /* move header further up on login page */
    padding-top: 0;
    padding-bottom: 0;
}

/* Hide all primary nav links on login page except the home login link */
body.pkp_page_login .pkp_navigation_primary a:not([href*="/index.php/ecm/login"]) {
    display: none !important;
}

/* Make sure the login 'Home' link itself is visible on login page */
body.pkp_page_login a[href*="/index.php/ecm/login"] {
    display: inline-block !important;
}


/* On login page, hide other header elements so only the Home login link remains visible */
body.pkp_page_login .pkp_site_name,
body.pkp_page_login .pkp_navigation_user_wrapper,
body.pkp_page_login .pkp_site_nav_search {
    display: none !important;
}


/* === Hide green journal header bar on login page === */
body.pkp_page_login .pkp_site_name_wrapper {
    display: none !important;
}


/* === "Insert Special Character" helper floating in content area on login page (outside the grey box) === */
body.pkp_page_login:not(.pkp_op_lostPassword)::after {
    content: "Insert Special Character";
    position: absolute;
    top: 195px;        /* moved 95px up from original (5px more up) */
    right: 350px;      /* horizontal placement */
    font-size: 0.9em;
    color: #0000ee;
    cursor: pointer;
pointer-events: auto;
transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}



/* === Tighten the Home nav container on login page so its height matches the text === */
body.pkp_page_login .pkp_site_nav_menu,
body.pkp_page_login .pkp_navigation_primary_wrapper,
body.pkp_page_login .pkp_navigation_primary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

/* Make the Home link itself have minimal vertical padding */
body.pkp_page_login a[href*="/index.php/ecm/login"] {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.2;
}

/* === Login page header tightened (added by ChatGPT) === */
.pkp_page_login .pkp_head_wrapper {
    padding-top: 4px;
    padding-bottom: 4px;
}

.pkp_page_login .pkp_head_wrapper .pkp_site_name img {
    max-height: 55px;
    height: auto;
    width: auto;
}

.pkp_page_login .pkp_navigation_primary_row,
.pkp_page_login .pkp_navigation_user_wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.pkp_page_login .pkp_nav_list > li > a {
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.2;
}

/* === Login page header tightened MORE (added by ChatGPT) === */
.pkp_page_login .pkp_head_wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.pkp_page_login .pkp_head_wrapper .pkp_site_name img {
    max-height: 40px; /* was 55px */
    height: auto;
    width: auto;
}

.pkp_page_login .pkp_navigation_primary_row,
.pkp_page_login .pkp_navigation_user_wrapper {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.pkp_page_login .pkp_nav_list > li > a {
    padding: 0 4px;   /* أقل مسافة يمين/شمال، مفيش padding رأسي */
    font-size: 11px;  /* أصغر شوية */
    line-height: 1.1;
}

/* === Login page header: try negative margins (added by ChatGPT) === */
.pkp_page_login .pkp_head_wrapper {
    margin-top: -15px;   /* يسحب الهيدر لفوق */
    margin-bottom: -5px; /* يقرب المحتوى اللي بعده */
}

.pkp_page_login .pkp_navigation_primary_row {
    margin-top: -4px;
    margin-bottom: -4px;
}

.pkp_page_login .pkp_navigation_user_wrapper {
    margin-top: -4px;
    margin-bottom: -4px;
}

/* === Login page header: slightly bigger again (added by ChatGPT) === */
.pkp_page_login .pkp_head_wrapper {
    margin-top: -8px;   /* كان -15 */
    margin-bottom: 0;   /* رجعناه للصفر */
    padding-top: 2px;
    padding-bottom: 2px;
}

.pkp_page_login .pkp_head_wrapper .pkp_site_name img {
    max-height: 48px; /* كان 40px */
    height: auto;
    width: auto;
}

.pkp_page_login .pkp_navigation_primary_row,
.pkp_page_login .pkp_navigation_user_wrapper {
    margin-top: -2px;
    margin-bottom: -2px;
}

.pkp_page_login .pkp_nav_list > li > a {
    padding: 1px 6px;   /* شوية ارتفاع عن قبل */
    font-size: 12px;    /* أكبر من 11px */
    line-height: 1.2;
}

/* === Login page header: slightly bigger + comfortable (added by ChatGPT) === */
.pkp_page_login .pkp_head_wrapper {
    margin-top: -5px;   /* أقرب شوية لفوق بس مش كتير */
    margin-bottom: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}

.pkp_page_login .pkp_head_wrapper .pkp_site_name img {
    max-height: 55px; /* أكبر سنة من 48px */
    height: auto;
    width: auto;
}

.pkp_page_login .pkp_navigation_primary_row,
.pkp_page_login .pkp_navigation_user_wrapper {
    margin-top: -1px;
    margin-bottom: -1px;
}

.pkp_page_login .pkp_nav_list > li > a {
    padding: 2px 7px;   /* شوية ارتفاع وراحة أكتر */
    font-size: 12px;    /* أوضح سنة */
    line-height: 1.25;
}

/* === Login page: move "Home" completely to the left in primary nav === */
.pkp_page_login #navigationPrimary {
    display: flex; /* تأكيد إنه فليكس */
}

.pkp_page_login #navigationPrimary li:last-child {
    order: -1;          /* يخليه أول عنصر في الصف */
    margin-right: auto; /* يزقه نحية الشمال والباقي يروح يمين */
}


/* === Extra image on the login page (centered under header) === */
body.pkp_page_login .pkp_structure_page::after {
    content: url("https://i.imgur.com/gC4yZfh.png");  /* updated image from new Imgur link */
    position: fixed;
    top: 120px;          /* vertical position from top, adjust if needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;        /* above content, below very top overlays */
    pointer-events: none; /* do not block clicks on underlying elements */
}


/* === Extra image on the login page (using body::before so it always exists) === */
body.pkp_page_login::before {
    content: url("https://i.imgur.com/gC4yZfh.png");  /* updated image from new Imgur link */
    position: fixed;
    top: 120px;          /* vertical position from top, adjust if needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;
    pointer-events: none;
}


/* === Logo/image above the login box (login page only) === */
body.pkp_page_login form#login::after {
    content: url("https://i.imgur.com/gC4yZfh.png");  /* updated image from new Imgur link */
    display: block;
    margin: -130px 0 0 -10px;   /* moved 150px up total (30px down from previous) and 10px left */   /* moved 100px up (20 - 100 = -80px) and 10px left */   /* 20px space above, 100px from the left inside the box (moved 100px left) */
    pointer-events: none;       /* don't block clicks on form controls */
}


/* === Floating Home icon (login link) on login page only === */
body.pkp_page_login .pkp_navigation_primary a[href*="/index.php/ecm/login"] {
    position: absolute !important;
    top: 74px;                          /* vertical position of the icon */
    left: calc(50% - 680px);            /* horizontal position (left side) */
    z-index: 9999;
    display: inline-block !important;
    font-size: 0;                       /* hide text */
    line-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    color: transparent !important;      /* ensure text is invisible */
}

/* Use the FRlqtd1 image as the Home icon */
body.pkp_page_login .pkp_navigation_primary a[href*="/index.php/ecm/login"]::before {
    content: url('https://i.imgur.com/FRlqtd1.png');
    display: block;
}

/* Remove orange hover/active/focus underline/outline from this icon on login page */
body.pkp_page_login .pkp_navigation_primary a[href*="/index.php/ecm/login"],
body.pkp_page_login .pkp_navigation_primary a[href*="/index.php/ecm/login"]:hover,
body.pkp_page_login .pkp_navigation_primary a[href*="/index.php/ecm/login"]:focus,
body.pkp_page_login .pkp_navigation_primary a[href*="/index.php/ecm/login"]:active {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-image: none !important;
}


/* === Add side illustration image next to login box (not inside it) === */
body.pkp_page_login form#login::after {
    content: "";
    position: absolute;
    top: 170px;           /* vertical position relative to the box - adjust if needed */
    left: -230px;        /* move image to the left of the box */
    width: 200px;
    height: 266px;
    display: block;
    background-image: url("https://i.imgur.com/evre0RO.png");
    background-repeat: no-repeat;
    background-size: 200px 266px;
    pointer-events: none; /* don't block clicks on the form */
}


/* === Add second image inside the login box (bottom-right) === */
body.pkp_page_login form#login {
    background-image: url("https://i.imgur.com/gC4yZfh.png");
    background-repeat: no-repeat;
    background-position: right 20px bottom 30px; /* moved 10px up */
    background-size: auto; /* original image size */
}


/* === Make footer text transparent on login page === */
body.pkp_page_login .pkp_structure_footer * {
    color: transparent !important;
}

/* === Use energyconversions.org footer link as invisible clickable area over side image === */
body.pkp_page_login .pkp_structure_footer a[href*="energyconversions.org"] {
    position: absolute !important;   /* relative to viewport */
    top: 200px;                   /* moved 30px down for better alignment */
    left: 280px;                  /* moved 100px left from previous position */                  /* approximate horizontal alignment; adjust if needed */
    width: 200px;
    height: 266px;
    display: block !important;
    text-indent: -9999px;         /* hide link text */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    z-index: 3000;
}


/* === Hide footer visually on login page but KEEP clickable overlay === */
body.pkp_page_login .pkp_structure_footer {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}


/* === Push footer container below the visible screen on login page === */
body.pkp_page_login .pkp_structure_footer {
    position: absolute !important;
    bottom: -200px !important;  /* move it below the viewport */
    width: 100% !important;
}


/* === Hide 'Home' link that points to login from all pages,
   but keep it visible on login page and article landing pages === */

/* Hide from all primary navbars by default */
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: none !important;
}

/* Restore on login page navbars */
body.pkp_page_login .pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: inline-block !important;
}

/* Restore on article landing pages (assuming pkp_page_article body class) */
body.pkp_page_article .pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: inline-block !important;
}


/* === FIX: Restore all login links, hide only the first 'Home' item pointing to login on non-login/non-article pages === */

/* 1) Restore all login links by default */
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: inline-block !important;
}

/* 2) On all pages EXCEPT login & article pages, hide ONLY the first nav item to login (assumed 'Home') */
body:not(.pkp_page_login):not(.pkp_page_article) .pkp_navigation_primary > li:first-child > a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: none !important;
}


/* === New rule: Hide 'Home' (login link) in nav, keep 'Submit your article' (same href) === */
/* Hide ALL nav items that go to the login page in the primary navbar */
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: none !important;
}

/* Re-show ONLY the LAST item in the primary navbar with that href (assumed 'Submit your article') */
.pkp_navigation_primary li:last-child > a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: inline-block !important;
}


/* === FIX DIRECTION: Keep 'Submit your article', hide 'Home' === */
/* Restore all login links by default */
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: inline-block !important;
}

/* On all pages EXCEPT login & article pages, hide ONLY the last login-link item (assumed 'Home') */
body:not(.pkp_page_login):not(.pkp_page_article) .pkp_navigation_primary li:last-child > a[href="https://energyconversions.org/index.php/ecm/login"] {
    display: none !important;
}


/* === NAVBAR: Make home page navbar match Energy Conversion and Management layout === */
body.pkp_page_index .pkp_navigation_primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

/* Base style for items */
body.pkp_page_index .pkp_navigation_primary > li > a {
    padding: 10px 22px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    color: #000;
}

/* Borders between items */
body.pkp_page_index .pkp_navigation_primary > li {
    border-left: 1px solid #e0e0e0;
}
body.pkp_page_index .pkp_navigation_primary > li:last-child {
    border-right: 1px solid #e0e0e0;
}

/* Reorder items based on their ORIGINAL positions in markup:
   1: About
   2: Articles & Issues
   3: Search in this journal
   4: Guide for authors
   5: Publish
   6: Submit your article
   7: Order journal
   Target order:
   Articles & Issues | About | Publish | Order journal | Search | Submit | Guide
*/
body.pkp_page_index .pkp_navigation_primary > li:nth-child(1) { order: 2; } /* About */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(2) { order: 1; } /* Articles & Issues */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(3) { order: 5; } /* Search in this journal */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(4) { order: 7; } /* Guide for authors */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(5) { order: 3; } /* Publish */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(6) { order: 6; } /* Submit your article */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(7) { order: 4; } /* Order journal */

/* ICONS */
/* Search icon ONLY before "Search in this journal" (original 3rd item) */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(3) > a::before {
    content: "\1F50D";
    font-size: 13px;
    margin-right: 6px;
    position: relative;
    top: 1px;
}

/* Ensure Publish has NO search icon (override any previous rule) */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(5) > a::before {
    content: "" !important;
}

/* External-link arrow after "Order journal" (original 7th) and "Submit your article" (original 6th) */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(7) > a::after,
body.pkp_page_index .pkp_navigation_primary > li:nth-child(6) > a::after {
    content: "\2197";
    font-size: 11px;
    margin-left: 4px;
    position: relative;
    top: -1px;
}

/* Hover style similar to ECM */
body.pkp_page_index .pkp_navigation_primary > li > a:hover,
body.pkp_page_index .pkp_navigation_primary > li > a:focus {
    background-color: #f5f5f5;
    text-decoration: none;
}


/* === FINAL ORDER TUNING: Match ECM order exactly on HOME page === */
/* Current DOM order (left-to-right before order): 
   1: Publish
   2: Articles & Issues
   3: Search in this journal
   4: Submit your article
   5: Order journal
   6: Guide for authors
   7: About
   Target visual order:
   Articles & Issues | About | Publish | Order journal | Search in this journal | Submit your article | Guide for authors
*/

body.pkp_page_index .pkp_navigation_primary > li {
    order: 0; /* reset */
}

body.pkp_page_index .pkp_navigation_primary > li:nth-child(2) { order: 1; } /* Articles & Issues */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(7) { order: 2; } /* About */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(1) { order: 3; } /* Publish */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(5) { order: 4; } /* Order journal */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(3) { order: 5; } /* Search in this journal */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(4) { order: 6; } /* Submit your article */
body.pkp_page_index .pkp_navigation_primary > li:nth-child(6) { order: 7; } /* Guide for authors */



/* === ECM-LIKE NAVBAR ORDER USING :has() ON HOME PAGE === */
body.pkp_page_index .pkp_navigation_primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

/* reset any previous ordering */
body.pkp_page_index .pkp_navigation_primary > li {
    order: 0;
}

/* 1) Articles & Issues */
body.pkp_page_index .pkp_navigation_primary > li:has(> a[href*="issue"]) {
    order: 1;
}

/* 2) About */
body.pkp_page_index .pkp_navigation_primary > li:has(> a[href*="about"]) {
    order: 2;
}

/* 3) Publish (login link in primary nav) */
body.pkp_page_index .pkp_navigation_primary > li:has(> a[href="https://energyconversions.org/index.php/ecm/login"]) {
    order: 3;
}

/* 4) Order journal (external order link) */
body.pkp_page_index .pkp_navigation_primary > li:has(> a[href*="order"]) {
    order: 4;
}

/* 5) Search in this journal */
body.pkp_page_index .pkp_navigation_primary > li:has(> a[href*="search"]) {
    order: 5;
}

/* 6) Submit your article (likely external submission system) */
body.pkp_page_index .pkp_navigation_primary > li:has(> a[href*="submit"]) {
    order: 6;
}

/* 7) Guide for authors (author guidelines) */
body.pkp_page_index .pkp_navigation_primary > li:has(> a[href*="author"]) {
    order: 7;
}


/* === FINAL ECM-LIKE NAVBAR BASED ON ACTUAL MARKUP (HOME PAGE ONLY) === */
/* UL structure (original DOM order):
   1: Articles & Issues   -> <a href="#"> (with issues submenu)
   2: Publish             -> <a href="#"> (with guide/compare submenu)
   3: Order journal       -> <a href=".../Orderjournal">
   4: About               -> <a href="#"> (with about submenu)
   5: Search in this journal -> <a href=".../search">
   6: Guide for authors   -> <a href=".../Guideforauthors">
   7: Submit your article -> <a href=".../login">
   8: Home                -> <a href=".../login">
   Target visual order:
   Articles & Issues | About | Publish | Order journal | Search in this journal | Submit your article | Guide for authors
*/

body.pkp_page_index #navigationPrimary.pkp_navigation_primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

/* reset ordering */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li {
    order: 0;
}

/* 1) Articles & Issues (li 1) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(1) { order: 1; }

/* 2) About (li 4) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(4) { order: 2; }

/* 3) Publish (li 2) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(2) { order: 3; }

/* 4) Order journal (li 3) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(3) { order: 4; }

/* 5) Search in this journal (li 5) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(5) { order: 5; }

/* 6) Submit your article (li 7) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(7) { order: 6; }

/* 7) Guide for authors (li 6) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(6) { order: 7; }

/* Hide Home item (li 8) completely on home page */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(8) {
    display: none !important;
}

/* --- ICON CLEANUP & STYLING --- */

/* Remove any old icons first */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li > a::before,
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li > a::after {
    content: none;
}

/* Add magnifying glass before 'Search in this journal' (li 5) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(5) > a::before {
    content: "\1F50D";
    font-size: 13px;
    margin-right: 6px;
}

/* Add external-link arrow after 'Order journal' (li 3) and 'Submit your article' (li 7) */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(3) > a::after,
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:nth-child(7) > a::after {
    content: "\2197";
    font-size: 11px;
    margin-left: 4px;
}

/* Basic hover & cell look similar to ECM */
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li {
    border-left: 1px solid #e0e0e0;
}

body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li:last-child {
    border-right: 1px solid #e0e0e0;
}

body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li > a {
    padding: 10px 20px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    color: #000;
}

body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li > a:hover,
body.pkp_page_index #navigationPrimary.pkp_navigation_primary > li > a:focus {
    background-color: #f2f2f2;
    text-decoration: none;
}

/* === ECM-LIKE NAVBAR ON ALL NON-HOME PAGES (MATCH HOME ORDER) === */
/* This keeps the special layout on the home page (body.pkp_page_index)
   and applies the same item order to all other journal pages. */

body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

/* Reset any previous ordering from older rules */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li {
    order: 0;
    display: flex;
    align-items: stretch;
}

/* UL structure on all journal pages (non-home):
   1: Articles & Issues
   2: Publish
   3: Order journal
   4: About
   5: Search in this journal
   6: Guide for authors
   7: Submit your article
   8: Home
   Target visual order (like home page):
   Articles & Issues | About | Publish | Order journal | Search in this journal | Submit your article | Guide for authors | Home
*/

/* 1) Articles & Issues (li 1) */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(1) {
    order: 1;
}

/* 2) About (li 4) */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(4) {
    order: 2;
}

/* 3) Publish (li 2) */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(2) {
    order: 3;
}

/* 4) Order journal (li 3) */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(3) {
    order: 4;
}

/* 5) Search in this journal (li 5) */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(5) {
    order: 5;
}

/* 6) Submit your article (li 7) */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(7) {
    order: 6;
}

/* 7) Guide for authors (li 6) */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(6) {
    order: 7;
}

/* 8) Home (li 8) stays at the far right */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(8) {
    order: 8;
}

/* Make the links look similar to the home page cells */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li > a {
    padding: 10px 20px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    color: #000;
}

/* Hover effect like home */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li > a:hover,
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li > a:focus {
    background-color: #f2f2f2;
    text-decoration: none;
}

/* External-link arrow after "Order journal" (li 3) and "Submit your article" (li 7) */
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(3) > a::after,
body:not(.pkp_page_index) #navigationPrimary.pkp_navigation_primary > li:nth-child(7) > a::after {
    content: "\2197";
    font-size: 11px;
    margin-left: 4px;
    position: relative;
    top: -1px;
}

/* =====================================================================
   REGISTER PAGE (Pre-registration style like Editorial Manager)
   Target: https://energyconversions.org/index.php/ecm/user/register
   Body classes in OJS are usually: pkp_page_user pkp_op_register
   ===================================================================== */

/* Overall content layout: leave space on the left for the description panel */
body.pkp_page_user.pkp_op_register .pkp_page_content {
    position: relative;
    max-width: 1100px;
    margin: 40px auto 60px;
    padding-left: 320px;        /* space for the left text column */
    min-height: 420px;
}

/* Left text column: "Pre-registration Page" + description */
body.pkp_page_user.pkp_op_register .pkp_page_content::before {
    content: "Pre-registration Page\A\ATo register to use the Editorial Manager system, please enter the requested information or use your ORCID record if this option is available. Upon successful registration, you will be sent an e-mail with instructions to verify your registration. For more details see Registration Help.";
    white-space: pre-wrap;
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    padding-right: 20px;
    margin-right: 20px;
    border-right: 1px solid #cccccc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: #000000;
}

/* Grey registration box on the right */
body.pkp_page_user.pkp_op_register form#register {
    position: relative;
    top: -50px !important;
    transform: translateX(-60px) !important;
background-color: #f5f5f5;
    border: 1px solid #cccccc;
    padding: 26px 32px 30px;
    max-width: 650px;
    margin: 10px auto 0;
    box-shadow: none;
}

/* Top tab: "Choose a Registration Method" */
body.pkp_page_user.pkp_op_register .pkp_page_content::before {
    content: "Choose a Registration Method";
    position: absolute;
    top: -20px;          /* moved up */
    left: 338px;        /* 320px left column + a bit of padding */
    padding: 3px 12px;
    background-color: #f5f5f5;
    border: 1px solid #cccccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    z-index: 5;
}


/* Insert Special Character link on the top-right (similar to screenshot) */
body.pkp_page_user.pkp_op_register .pkp_page_content::after {
    content: "Insert Special Character";
    position: absolute;
    top: -60px;
    right: -10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #0000ee;
    cursor: pointer;
pointer-events: auto;
transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}


/* Basic two-column alignment for labels and fields inside register form */
body.pkp_page_user.pkp_op_register form#register .form-group,
body.pkp_page_user.pkp_op_register form#register .fields,
body.pkp_page_user.pkp_op_register form#register .pkp_form_field {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

/* Labels on the left */
body.pkp_page_user.pkp_op_register form#register label,
body.pkp_page_user.pkp_op_register form#register .label {
    width: 185px;
    text-align: right;
    padding-right: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000000;
}

/* Inputs on the right */
body.pkp_page_user.pkp_op_register form#register input[type="text"],
body.pkp_page_user.pkp_op_register form#register input[type="password"],
body.pkp_page_user.pkp_op_register form#register input[type="email"],
body.pkp_page_user.pkp_op_register form#register select,
body.pkp_page_user.pkp_op_register form#register textarea {
    min-width: 240px;
    padding: 2px 4px;
    border: 1px solid #a6a6a6;
    font-size: 12px;
}

/* Buttons row (e.g., Register/Cancel) */
body.pkp_page_user.pkp_op_register form#register .buttons,
body.pkp_page_user.pkp_op_register form#register .formButtons {
    margin-top: 12px;
}

/* Put buttons slightly to the right similar to screenshot */
body.pkp_page_user.pkp_op_register form#register .buttons input,
body.pkp_page_user.pkp_op_register form#register .formButtons button,
body.pkp_page_user.pkp_op_register form#register .formButtons input {
    margin-left: 190px;
}

/* Re-use the same top decorative images from the login page on the register page */

/* Banner image at the very top */
body.pkp_page_user.pkp_op_register .pkp_structure_page::before {
    content: url("https://i.imgur.com/32Bt37r.png");
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    z-index: 1000;
    pointer-events: none;
}

/* Center image under the header (same as login) */
body.pkp_page_user.pkp_op_register .pkp_structure_page::after {
    content: url("https://i.imgur.com/gC4yZfh.png");
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;
    pointer-events: none;
}

/* Make sure main content has some top margin so it doesn't clash visually with the fixed images */
body.pkp_page_user.pkp_op_register .pkp_structure_content {
    margin-top: 180px;
}

/* =========================================================
   REGISTER PAGE ONLY (pkp_op_register)
   Hide logo + green header area + text on green
   Hide upper navigation bar (user nav)
   Hide lower navigation bar (primary nav)
   Hide footer (same as before)
   ========================================================= */

body.pkp_op_register header#headerNavigationContainer,
body.pkp_op_register .pkp_structure_head,
body.pkp_op_register .pkp_site_name_wrapper,
body.pkp_op_register .pkp_site_name {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Upper navigation bar (user nav) */
body.pkp_op_register .pkp_navigation_user_wrapper,
body.pkp_op_register .pkp_navigation_user {
    display: none !important;
    visibility: hidden !important;
}

/* Lower navigation bar (primary nav) */
body.pkp_op_register #navigationPrimary,
body.pkp_op_register .pkp_navigation_primary_wrapper,
body.pkp_op_register .pkp_navigation_primary {
    display: none !important;
    visibility: hidden !important;
}

/* Footer and PKP branding on register page only */
body.pkp_op_register .pkp_structure_footer,
body.pkp_op_register .pkp_brand_footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Pull main content up now that header/footer are hidden */
body.pkp_op_register .pkp_structure_page,
body.pkp_op_register .pkp_structure_content,
body.pkp_op_register .pkp_structure_main,
body.pkp_op_register #main-content {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

/* =========================================================
   REGISTER PAGE ONLY: floating image (original size)
   Using the image from https://imgur.com/a/FBR2vWW#FRlqtd1
   ========================================================= */

body.pkp_op_register::after {
    content: url("https://i.imgur.com/FRlqtd1.png");
    position: fixed;
    bottom: 520px;
    right: -10px;
    z-index: 9999;
    pointer-events: none; /* doesn't block clicks */
}

/* Push the gray register box down on REGISTER page */
body.pkp_op_register form#register {
    margin-top: 60px !important;
}

/* Text line directly under "Choose a Registration Method" tab on REGISTER page */
body.pkp_op_register form#register::after {
    content: "Retrieve your details from the ORCID registry:\A\A\A\A\A\AOr type in your details and continue to register without using ORCID:";
    white-space: pre-wrap;
    line-height: 1.2;
    position: absolute;
    top: 12px;
    left: 52px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
}

/* Make all text on REGISTER page use #000033 */
body.pkp_op_register,
body.pkp_op_register * {
    color: #000033 !important;
}

/* Ensure tab and ORCID text also use #000033 */
body.pkp_op_register form#register::before,
body.pkp_op_register form#register::after {
    color: #000033 !important;
}

/* Fine-tune font size for tab + ORCID line */
body.pkp_op_register form#register::before,
body.pkp_op_register form#register::after {
    font-size: 12.5px !important;
}

/* Hide legends "Profile" and "Login" on REGISTER page (hide all legends in the register form) */
body.pkp_op_register form#register legend {
    display: none !important;
}

/* =========================================================
   REGISTER PAGE: stack labels and fields vertically
   (each label above its input box)
   ========================================================= */

body.pkp_op_register form#register .form-group,
body.pkp_op_register form#register .fields,
body.pkp_op_register form#register .pkp_form_field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* Labels above inputs, left-aligned */
body.pkp_op_register form#register label,
body.pkp_op_register form#register .label {
    width: auto;
    text-align: left;
    padding-right: 0;
    margin-bottom: 3px;
}

/* Inputs full-width under labels */
body.pkp_op_register form#register input[type="text"],
body.pkp_op_register form#register input[type="password"],
body.pkp_op_register form#register input[type="email"],
body.pkp_op_register form#register select,
body.pkp_op_register form#register textarea {
    min-width: 260px;
    width: 100%;
    max-width: 100%;
}

/* Buttons row aligned with left edge of fields */
body.pkp_op_register form#register .buttons input,
body.pkp_op_register form#register .formButtons button,
body.pkp_op_register form#register .formButtons input {
    margin-left: 0 !important;
}

/* === REGISTER PAGE: labels + inputs inline and centered in gray box === */

/* 1) Each field row as a paragraph, centered */
body.pkp_page_user.pkp_op_register form#register p {
    width: 230px;
    max-width: 100%;
    margin: 10px auto;
    text-align: left;
}

/* 2) Label inline-block, fixed width */
body.pkp_page_user.pkp_op_register form#register label[for="givenName"],
body.pkp_page_user.pkp_op_register form#register label[for="familyName"],
body.pkp_page_user.pkp_op_register form#register label[for="affiliation"],
body.pkp_page_user.pkp_op_register form#register label[for="country"],
body.pkp_page_user.pkp_op_register form#register label[for="email"],
body.pkp_page_user.pkp_op_register form#register label[for="username"],
body.pkp_page_user.pkp_op_register form#register label[for="password"],
body.pkp_page_user.pkp_op_register form#register label[for="password2"] {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0 0 4px 0;
    vertical-align: baseline;
}

/* 3) Hide BR between label and input if it exists */
body.pkp_page_user.pkp_op_register form#register label[for="givenName"] + br,
body.pkp_page_user.pkp_op_register form#register label[for="familyName"] + br,
body.pkp_page_user.pkp_op_register form#register label[for="affiliation"] + br,
body.pkp_page_user.pkp_op_register form#register label[for="country"] + br,
body.pkp_page_user.pkp_op_register form#register label[for="email"] + br,
body.pkp_page_user.pkp_op_register form#register label[for="username"] + br,
body.pkp_page_user.pkp_op_register form#register label[for="password"] + br,
body.pkp_page_user.pkp_op_register form#register label[for="password2"] + br {
    display: none;
}

/* 4) Inputs smaller and inline, so الزوج كله يتوسّط في السطر */
body.pkp_page_user.pkp_op_register form#register #givenName,
body.pkp_page_user.pkp_op_register form#register #familyName,
body.pkp_page_user.pkp_op_register form#register #affiliation,
body.pkp_page_user.pkp_op_register form#register #country,
body.pkp_page_user.pkp_op_register form#register #email,
body.pkp_page_user.pkp_op_register form#register #username,
body.pkp_page_user.pkp_op_register form#register #password,
body.pkp_page_user.pkp_op_register form#register #password2 {
    display: block;
    width: 230px;
    max-width: 100%;
    margin: 0;
}

/* Push all register fields down inside the gray box */
body.pkp_page_user.pkp_op_register form#register {
    padding-top: 130px;
}

/* === Dummy ORCID button above register fields (register page only) === */

body.pkp_page_user.pkp_op_register form#register {
    position: relative; /* allow absolutely positioned pseudo-element */
}

/* ORCID-like dummy button */
body.pkp_page_user.pkp_op_register form#register::before {
    content: "Use My ORCID Record";
    position: absolute;
    top: 48px;              /* button position inside gray box (slightly higher) */
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0 16px 0 52px; /* space for icon */
    border-radius: 4px;
    border: 1px solid #b5b5b5;
    background-image:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2726%27%20height%3D%2726%27%20viewBox%3D%270%200%2026%2026%27%3E%0A%3Ccircle%20cx%3D%2713%27%20cy%3D%2713%27%20r%3D%2712%27%20fill%3D%27%23A6CE39%27%20stroke%3D%27%237FAE2B%27%20stroke-width%3D%271%27%2F%3E%0A%3Ctext%20x%3D%2713%27%20y%3D%2717%27%20text-anchor%3D%27middle%27%20font-family%3D%27Arial%2C%20Helvetica%2C%20sans-serif%27%20font-size%3D%2711%27%20font-weight%3D%27700%27%20fill%3D%27%23FFFFFF%27%3EiD%3C%2Ftext%3E%0A%3C%2Fsvg%3E"),
        linear-gradient(#f7f7f7, #e6e6e6);
    background-repeat: no-repeat, no-repeat;
    background-position: 12px center, 0 0;
    background-size: 24px 24px, 100% 100%;
    color: rgb(0, 51, 101) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9.52px !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    transition: box-shadow 0.2s ease;

}


/* Hover effect to make dummy ORCID button feel like a real button */
body.pkp_page_user.pkp_op_register form#register:hover::before {
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}


/* === v48 FIX: force register field labels above inputs (left-aligned) === */
body.pkp_op_register form#register .pkp_form_field,
body.pkp_op_register form#register .form-group,
body.pkp_op_register form#register .fields,
body.pkp_op_register form#register p {
  display: block !important;
  width: 240px !important;
  max-width: 100% !important;
  margin: 10px auto !important;   /* center the whole field block */
  text-align: left !important;
}

body.pkp_op_register form#register .pkp_form_field label,
body.pkp_op_register form#register label,
body.pkp_op_register form#register .label {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
}

/* Hide stray <br> between label and input if present */
body.pkp_op_register form#register label + br {
  display: none !important;
}

body.pkp_op_register form#register input[type="text"],
body.pkp_op_register form#register input[type="password"],
body.pkp_op_register form#register input[type="email"],
body.pkp_op_register form#register select,
body.pkp_op_register form#register textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}


/* === v49 UPDATE: place register field labels NEXT TO inputs (two-column) === */
body.pkp_op_register form#register .pkp_form_field,
body.pkp_op_register form#register .form-group,
body.pkp_op_register form#register .pkp_form_group,
body.pkp_op_register form#register p {
  /* keep block stacking but allow floats inside */
  position: relative !important;
  clear: both !important;
}

/* Clearfix for any container that holds label + input */
body.pkp_op_register form#register .pkp_form_field::after,
body.pkp_op_register form#register .form-group::after,
body.pkp_op_register form#register .pkp_form_group::after,
body.pkp_op_register form#register p::after {
  content: "" !important;
  display: block !important;
  clear: both !important;
}

/* Labels on the LEFT */
body.pkp_op_register form#register label {
  display: block !important;   /* block so float works consistently */
  float: left !important;
  width: 160px !important;
  margin: 0 !important;
  padding: 6px 10px 0 0 !important;
  text-align: left !important;
  line-height: 1.2 !important;
}

/* Inputs on the RIGHT of the label */
body.pkp_op_register form#register label + input[type="text"],
body.pkp_op_register form#register label + input[type="password"],
body.pkp_op_register form#register label + input[type="email"],
body.pkp_op_register form#register label + select,
body.pkp_op_register form#register label + textarea {
  display: block !important;
  float: left !important;
  width: calc(100% - 170px) !important;
  max-width: calc(100% - 170px) !important;
  margin: 0 !important;
}

/* If there is a wrapper span/div between label and input, make it behave */
body.pkp_op_register form#register label + span,
body.pkp_op_register form#register label + div {
  float: left !important;
  width: calc(100% - 170px) !important;
  max-width: calc(100% - 170px) !important;
}

/* Make nested inputs inside wrapper spans/divs take full wrapper width */
body.pkp_op_register form#register label + span input,
body.pkp_op_register form#register label + div input,
body.pkp_op_register form#register label + span select,
body.pkp_op_register form#register label + div select,
body.pkp_op_register form#register label + span textarea,
body.pkp_op_register form#register label + div textarea {
  width: 100% !important;
  max-width: 100% !important;
}

/* Keep the "required" asterisk inline with label text */
body.pkp_op_register form#register label .req,
body.pkp_op_register form#register label .required {
  float: none !important;
  display: inline !important;
}



/* === v55 UPDATE: make REGISTER form labels red (override global text color) === */
body.pkp_op_register form#register label,
body.pkp_op_register form#register .label,
body.pkp_page_user.pkp_op_register form#register label,
body.pkp_page_user.pkp_op_register form#register .label {
    color: rgb(204, 0, 0) !important;
}


/* === v56 UPDATE: set REGISTER required asterisk color to match labels === */
body.pkp_op_register form#register label .req,
body.pkp_op_register form#register label .required,
body.pkp_page_user form#register label .req,
body.pkp_page_user form#register label .required {
    color: rgb(204, 0, 0) !important;
}



/* =========================================================
   REGISTER PAGE: Add top texts inside the gray box
   - Left:  "Choose a Registration Method"
   - Right: "Insert Special Character"
   (Uses pkp_structure_main pseudo-elements to avoid clashing
    with the ORCID button pseudo-element on form#register::before)
========================================================= */
body.pkp_page_user.pkp_op_register .pkp_structure_main {
    position: relative !important;
    padding-top: 34px !important; /* make room for the top texts */
}

body.pkp_page_user.pkp_op_register .pkp_structure_main::before {
    content: "Choose a Registration Method";
    position: absolute;
    top: -4px;
    left: 12px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    background: transparent !important;
    padding: 0 !important;
    z-index: 50 !important;
}

body.pkp_page_user.pkp_op_register .pkp_structure_main::after {
    content: "Insert Special Character";
    position: absolute;
    top: -4px;
    right: 12px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: normal !important;
    color: #0000ee !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    background: transparent !important;
    padding: 0 !important;
    z-index: 50 !important;
}


/* === Register page: add top-left + top-right helper texts inside grey box (robust) === */
body.pkp_page_user.pkp_op_register form#register { overflow: visible !important; }

/* Use the FIRST fieldset (or form itself) as anchor so we don't conflict with form#register::before (ORCID button) */
body.pkp_page_user.pkp_op_register form#register fieldset:first-of-type { position: relative !important; }

/* Top-left: Choose a Registration Method */
body.pkp_page_user.pkp_op_register form#register fieldset:first-of-type::before {
    content: "Choose a Registration Method";
    position: absolute;
    top: -154px !important;
    left: 0;
    padding: 3px 12px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000033;
    z-index: 900;
}

/* Top-right: Insert Special Character */
body.pkp_page_user.pkp_op_register form#register fieldset:first-of-type::after {
    content: "Insert Special Character";
    position: absolute;
    top: -160px;
    right: 0;
    padding: 3px 12px;
    background: #ffffff;
    border: 1px solid transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgb(0, 51, 101);
    z-index: 900;
    cursor: pointer;
}

/* Fallback if the register form has NO fieldset */
body.pkp_page_user.pkp_op_register form#register:not(:has(fieldset)) { position: relative !important; }
body.pkp_page_user.pkp_op_register form#register:not(:has(fieldset))::after {
    content: "Insert Special Character";
    position: absolute;
    top: -4px;
    right: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: rgb(0, 51, 101);
    z-index: 9999;
}



/* === v75: Shift the whole register box up by 50px (including tabs + ORCID block) === */
body.page_register form#register,
body.page_register #register {
  position: relative !important;
  top: -50px !important;
  left: -30px !important;
}




/* === v135: Move the gray register box 40px to the right ONLY on /user/register (no ?source=...) === */
body.page_register form#register:not([action*="source="]) {
  left: 10px !important; /* was -30px in v75, now -30 + 40 = 10 */
}

/* ===================== REGISTER: decorative vertical line (left of grey box) ===================== */
/* Put the line OUTSIDE the grey fieldset by drawing it with a pseudo-element shifted to the left */
body.page_register form#register fieldset:first-of-type{
  position: relative !important;
  border-left: none !important;
  padding-left: 0 !important;
}

body.page_register form#register fieldset:first-of-type::before{
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: -18px !important;   /* outside the grey box */
  width: 3px !important;
  background: #e5e5e5 !important;
}


/* === v82 fix: ensure outside-left decorative line is visible === */
/* Anchor: first fieldset in register form (the grey box wrapper) */
.pkp_page_register form#register fieldset:first-of-type{
  position: relative !important;
  overflow: visible !important; /* allow the outside line to show */
}

/* Draw the vertical line OUTSIDE the grey box (left side) */
.pkp_page_register form#register fieldset:first-of-type::before{
  content: "" !important;
  position: absolute !important;
  left: -22px !important;   /* outside the grey border */
  top: 84px !important;     /* start below the tabs */
  height: calc(100% - 160px) !important;
  width: 3px !important;
  background: rgba(0,0,0,0.12) !important;
  border-radius: 3px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}



/* ===================== v83 FIX: Vertical line outside grey box WITHOUT breaking tabs ===================== */
/* The fieldset ::before is already used for "Choose a Registration Method".
   So we draw the outside-left vertical line using the fieldset's LEGEND pseudo-element instead. */
body.pkp_page_user.pkp_op_register form#register fieldset:first-of-type{
  position: relative !important;
  overflow: visible !important; /* allow the outside line to show */
}

/* Make legend a full-height absolute anchor (doesn't affect layout) */
body.pkp_page_user.pkp_op_register form#register fieldset:first-of-type > legend{
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: -22px !important;      /* push outside the grey box */
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
  font-size: 0 !important;     /* avoid any visible legend text */
}

/* The actual vertical decorative line */
body.pkp_page_user.pkp_op_register form#register fieldset:first-of-type > legend::before{
  content: "" !important;
  position: absolute !important;
  top: 18px !important;        /* a little breathing room */
  bottom: 18px !important;
  left: 0 !important;
  width: 3px !important;
  background: #e5e5e5 !important;
}

/* Safety: if some earlier rule overwrote the tabs, force them back */
body.pkp_page_user.pkp_op_register form#register fieldset:first-of-type::before{
  content: "Choose a Registration Method" !important;
}
body.pkp_page_user.pkp_op_register form#register fieldset:first-of-type::after{
  content: "Insert Special Character" !important;
}

/* ===================== LEFT SIDE DECORATIVE IMAGE ===================== */
/* Fixed (not floating) image on the left side; keeps intrinsic size; REGISTER ONLY */
body.pkp_page_user.pkp_op_register .pkp_structure_page,
.pkp_page_register .pkp_structure_page,
body[class*="pkp_page_user"][class*="pkp_op_register"] .pkp_structure_page{
  position: relative !important;
}

body.pkp_page_user.pkp_op_register .pkp_structure_page::after,
.pkp_page_register .pkp_structure_page::after,
body[class*="pkp_page_user"][class*="pkp_op_register"] .pkp_structure_page::after{
  content: url("https://i.imgur.com/pg2oR6W.png") !important;
  position: absolute !important;
  left: 20px !important;
  top: 180px !important;
  transform: translateX(30px) !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Safety: never show this register decoration on login */
body.pkp_page_user.pkp_op_login .pkp_structure_page::after,
body[class*="pkp_op_login"] .pkp_structure_page::after{
  content: none !important;
  display: none !important;
}


/* ===================== LEFT FIXED IMAGE (Imgur) - Reliable Version ===================== */
/* Uses direct i.imgur.com asset URL so it can render as an actual image (intrinsic size). */
/* fallback in case png isn't correct; uncomment ONE if needed */
/* */
/* */

/* ===================== FIX: Inputs not clickable (overlay blocking) ===================== */
/* Decorative pseudo-elements (tabs/lines/images) must not capture mouse events */
body[class*="pkp_page_user"][class*="pkp_op_register"]::before,
body[class*="pkp_page_user"][class*="pkp_op_register"]::after,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register::before,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register::after,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register fieldset::before,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register fieldset::after,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register legend::before,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register legend::after,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register *::before,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register *::after {
    pointer-events: none !important;
}

/* Ensure the actual form controls sit above any decorations */
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register fieldset,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register .pkp_form_field {
    position: relative;
    z-index: 5;
}

body[class*="pkp_page_user"][class*="pkp_op_register"] form#register input,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register select,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register textarea,
body[class*="pkp_page_user"][class*="pkp_op_register"] form#register button {
    position: relative;
    z-index: 6;
    pointer-events: auto !important;
}


/* ============================================================
   LOST PASSWORD PAGE (ONLY): mimic Editorial Manager layout
   URL: /index.php/ecm/login/lostPassword
   Scope: body.pkp_page_login.pkp_op_lostPassword
   ============================================================ */

/* Remove the "third image" injected in content area on lostPassword only */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content::before,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content::after {
    content: none !important;
    display: none !important;
}

/* Keep other pages unaffected: also neutralize any accidental background images inside lostPassword content */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content img.pkp_site_logo,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_head img {
    /* do not hide header images */
    display: inline-block !important;
}

/* Page spacing (lostPassword only) */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main {
    padding-top: 40px !important;
}

/* Two-column layout like Editorial Manager: left info + right form */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content {
    display: grid !important;
    grid-template-columns: 260px 520px !important;
    column-gap: 80px !important;
    justify-content: center !important;
    align-items: start !important;
}

/* Left title: "Account Finder" */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > h2 {
    grid-column: 1 !important;
    margin: 20px 0 10px 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 22px !important;
    font-weight: bold !important;
    color: #003a8c !important;
}

/* Left description paragraph */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > p {
    grid-column: 1 !important;
    margin: 0 !important;
    max-width: 240px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  transform: translateX(-150px) !important;
    color: #003a8c !important;
}

/* Right form box (Reset Password form) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form {
    grid-column: 2 !important;
    max-width: 520px !important;
    margin: 0 !important;
    padding: 18px 24px 24px 24px !important;
    border: 1px solid #cccccc !important;
    background: #f7f7f7 !important;
    box-shadow: 0 0 4px rgba(0,0,0,0.15) !important;
    position: relative !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* "Please Enter The Following" tab heading */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form::before {
    content: "Please Enter The Following" !important;
    position: absolute !important;
    top: -13px !important;
    left: 12px !important;
    padding: 3px 10px !important;
    background: #f4f4f4 !important;
    border: 1px solid #cccccc !important;
    font-weight: bold !important;
    font-size: 11px !important;
    color: #003a8c !important;
}

/* Align label + input in one row (best-effort for OJS markup) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .fields,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Labels (make "E-mail*" red like EM) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form label {
    display: inline-block !important;
    width: 90px !important;
    text-align: right !important;
    margin-right: 10px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: #cc0000 !important;
}

/* Inputs */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="text"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="email"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="password"] {
    width: 210px !important;
    padding: 2px 4px !important;
    border: 1px solid #a6a6a6 !important;
    background: #f4f4f4 !important;
    line-height: 18px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08) !important;
}

/* Buttons row */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .buttons,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .formButtons {
    margin-top: 12px !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
}

/* Buttons style (Cancel / Send Login Details) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form button,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a.pkp_button {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    padding: 2px 10px !important;
    border: 1px solid #9a9a9a !important;
    background: #e6e6e6 !important;
    color: #003a8c !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* Hover */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form button:hover,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="submit"]:hover,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a.pkp_button:hover {
    background: #f0f0f0 !important;
}

/* "Go to Login Page" link (centered, blue) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content a[href*="/login"] {
    display: block !important;
    text-align: center !important;
    margin-top: 12px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    color: #0000ee !important;
    text-decoration: none !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content a[href*="/login"]:hover {
    text-decoration: underline !important;
}

/* Rename the page title to "Account Finder" (visual only) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > h2 {
    font-size: 0 !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > h2::before {
    content: "Account Finder" !important;
    font-size: 22px !important;
    font-weight: bold !important;
    color: #003a8c !important;
}


/* === Lost Password (Reset Password) page: hide instruction paragraph === */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > h2 + p,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > p:first-of-type {
    display: none !important;
}

/* STRONG hide (lostPassword only): hide the instruction paragraph.
   The text is rendered as a <p>, but in some templates it is not the first sibling.
   So we hide all <p> inside the lostPassword content area, then re-enable any
   paragraphs inside form error/notification blocks (if they appear).
*/
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content p {
  display: none !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content .pkp_form_error p,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content .pkp_notification p,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content .pkpError p {
  display: block !important;
}

/* =============================
   LOST PASSWORD: Hide the instruction paragraph (ULTRA)
   Page: /index.php/ecm/login/lostPassword
   Scope: body.pkp_page_login.pkp_op_lostPassword
   ============================= */

/* Hide any paragraph inside the main content area on lostPassword (covers nested wrappers) */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .pkp_page_content p,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .pkp_structure_content p,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .page p {
  display: none !important;
}

/* But keep system/error/notification messages visible */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .cmp_notification,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .cmp_notification p,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .pkp_form_error,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .pkp_form_error p,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .error,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main .error p {
  display: block !important;
}


/* ============================
   LOST PASSWORD - Editorial Manager style (page-only)
   ============================ */
body.pp_lostPassword .pkp_structure_main,
body.pp_lostPassword .pkp_structure_content{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body.pp_lostPassword .pkp_structure_content{
  position: relative;
  padding-top: 70px !important;
}

/* Center the form box */
body.pp_lostPassword .pkp_structure_content form,
body.pp_lostPassword .pkp_structure_content .cmp_form,
body.pp_lostPassword .pkp_structure_content .pkp_form{
  width: min(760px, 92vw);
  margin: 0 auto !important;
}

/* Fieldset box like the screenshot */
body.pp_lostPassword .pkp_structure_content fieldset{
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  padding: 28px 28px 18px 28px !important;
}

/* Legend: "Please Enter The Following" */
body.pp_lostPassword .pkp_structure_content legend{
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 2px 10px !important;
  border: 1px solid #cfcfcf !important;
  background: #f4f4f4 !important;
}

/* "Insert Special Character" link (only if it exists) */
body.pp_lostPassword .pkp_structure_content a[href*="insert"],
body.pp_lostPassword .pkp_structure_content a[href*="special"]{
  position: absolute !important;
  top: 36px !important;
  right: 18px !important;
  font-size: 11px !important;
  color: #0000ee !important;
  text-decoration: none !important;
}
body.pp_lostPassword .pkp_structure_content a[href*="insert"]:hover,
body.pp_lostPassword .pkp_structure_content a[href*="special"]:hover{
  text-decoration: underline !important;
}

/* Form row alignment */
body.pp_lostPassword .pkp_structure_content .form-group,
body.pp_lostPassword .pkp_structure_content .fields,
body.pp_lostPassword .pkp_structure_content .pkp_form .fields{
  display: grid !important;
  grid-template-columns: 120px 1fr !important;
  gap: 10px 16px !important;
  align-items: center !important;
}

/* Label: red "E-mail*" */
body.pp_lostPassword .pkp_structure_content label{
  color: #b30000 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Input */
body.pp_lostPassword .pkp_structure_content input[type="text"],
body.pp_lostPassword .pkp_structure_content input[type="email"],
body.pp_lostPassword .pkp_structure_content input[type="password"]{
  width: 260px !important;
  max-width: 100% !important;
  height: 24px !important;
  border: 1px solid #bfbfbf !important;
  background: #f4f4f4 !important;
  padding: 2px 6px !important;
}

/* Buttons row */
body.pp_lostPassword .pkp_structure_content .buttons,
body.pp_lostPassword .pkp_structure_content .formButtons,
body.pp_lostPassword .pkp_structure_content .pkp_form .buttons{
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-top: 14px !important;
}

/* Buttons look */
body.pp_lostPassword .pkp_structure_content button,
body.pp_lostPassword .pkp_structure_content input[type="submit"],
body.pp_lostPassword .pkp_structure_content input[type="button"]{
  background: #e6e6e6 !important;
  border: 1px solid #9e9e9e !important;
  border-radius: 6px !important;
  padding: 4px 14px !important;
  font-size: 11px !important;
  cursor: pointer !important;
}

/* "Go to Login Page" link centered under buttons */
body.pp_lostPassword .pkp_structure_content a[href*="/login"],
body.pp_lostPassword .pkp_structure_content a[href*="login"]{
  display: block !important;
  text-align: center !important;
  margin-top: 16px !important;
  color: #0000ee !important;
  font-size: 11px !important;
}


/* ============================
   LOST PASSWORD - Force EditorialManager-like layout (page-only, stronger)
   Notes: Text changes below are VISUAL via CSS only.
   ============================ */

/* Center container */
body.pp_lostPassword .pkp_structure_content,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content{
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: 100% !important;
}

/* Gray outer box */
body.pp_lostPassword .pkp_structure_content fieldset,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content fieldset{
  border: 1px solid #cfcfcf !important;
  background: #efefef !important;
  padding: 26px 26px 18px 26px !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  box-shadow: none !important;
}

/* Legend strip */
body.pp_lostPassword .pkp_structure_content legend,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content legend{
  background: #f4f4f4 !important;
  border: 1px solid #cfcfcf !important;
  padding: 2px 10px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

/* "Insert Special Character" link appearance (if present) */
body.pp_lostPassword .pkp_structure_content a[href*="insertSpecialCharacter"],
body.pp_lostPassword .pkp_structure_content a[href*="special"],
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content a[href*="insertSpecialCharacter"],
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content a[href*="special"]{
  display: block !important;
  text-align: center !important;
  margin: 0 0 10px 0 !important;
  font-size: 11px !important;
  text-decoration: none !important;
}

/* Form row alignment */
body.pp_lostPassword .pkp_form .form-group,
body.pkp_page_login.pkp_op_lostPassword .pkp_form .form-group{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: center !important;
}

/* Label style (red E-mail*) */
body.pp_lostPassword .pkp_form label,
body.pkp_page_login.pkp_op_lostPassword .pkp_form label{
  color: #b10000 !important;
  font-weight: 700 !important;
  min-width: 90px !important;
  text-align: right !important;
}

/* Input width like EM */
body.pp_lostPassword .pkp_form input[type="text"],
body.pp_lostPassword .pkp_form input[type="email"],
body.pkp_page_login.pkp_op_lostPassword .pkp_form input[type="text"],
body.pkp_page_login.pkp_op_lostPassword .pkp_form input[type="email"]{
  width: 320px !important;
  max-width: 320px !important;
}

/* Actions centered */
body.pp_lostPassword .pkp_form .buttons,
body.pp_lostPassword .pkp_form .formButtons,
body.pp_lostPassword .pkp_form .pkp_form_actions,
body.pkp_page_login.pkp_op_lostPassword .pkp_form .buttons,
body.pkp_page_login.pkp_op_lostPassword .pkp_form .formButtons,
body.pkp_page_login.pkp_op_lostPassword .pkp_form .pkp_form_actions{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

/* Make primary submit look like EM button */
body.pp_lostPassword .pkp_form button[type="submit"],
body.pp_lostPassword .pkp_form input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword .pkp_form button[type="submit"],
body.pkp_page_login.pkp_op_lostPassword .pkp_form input[type="submit"]{
  padding: 4px 14px !important;
  border: 1px solid #a9a9a9 !important;
  border-radius: 4px !important;
  background: linear-gradient(#ffffff, #dcdcdc) !important;
  color: #003a8c !important;
  font-size: 0 !important; /* hide original text visually */
  line-height: 1 !important;
}

/* VISUAL rename: "Reset Password" -> "Send Login Details" */
body.pp_lostPassword .pkp_form button[type="submit"]::after,
body.pkp_page_login.pkp_op_lostPassword .pkp_form button[type="submit"]::after{
  content: "Send Login Details" !important;
  font-size: 11px !important;
}
body.pp_lostPassword .pkp_form input[type="submit"]{
  color: transparent !important; /* for input buttons */
  text-shadow: none !important;
}
body.pp_lostPassword .pkp_form input[type="submit"]::after,
body.pkp_page_login.pkp_op_lostPassword .pkp_form input[type="submit"]::after{
  content: "Send Login Details" !important;
  font-size: 11px !important;
  color: #003a8c !important;
  position: relative !important;
  display: inline-block !important;
  transform: translateY(-1px) !important;
}

/* Turn the "Go to Login Page" / register-ish link into a Cancel button (visual) */
body.pp_lostPassword .pkp_structure_content a[href*="/login"],
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content a[href*="/login"]{
  display: inline-block !important;
  padding: 4px 14px !important;
  border: 1px solid #a9a9a9 !important;
  border-radius: 4px !important;
  background: linear-gradient(#ffffff, #dcdcdc) !important;
  color: transparent !important; /* hide original link text */
  text-decoration: none !important;
  font-size: 0 !important;
}

/* VISUAL rename link text to Cancel */
body.pp_lostPassword .pkp_structure_content a[href*="/login"]::after,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content a[href*="/login"]::after{
  content: "Cancel" !important;
  font-size: 11px !important;
  color: #003a8c !important;
}

/* If there are multiple login links (top nav), only style the one inside the fieldset */
body.pp_lostPassword .pkp_structure_content fieldset a[href*="/login"],
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content fieldset a[href*="/login"]{
  color: transparent !important;
  font-size: 0 !important;
}
body.pp_lostPassword .pkp_structure_content fieldset a[href*="/login"]::after,
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_content fieldset a[href*="/login"]::after{
  content: "Cancel" !important;
  font-size: 11px !important;
  color: #003a8c !important;
}



/* =========================
   LOST PASSWORD (ONLY) - Editorial Manager look
   Robust selectors: any body class containing 'lostPassword'
   ========================= */
body[class*="lostPassword"] h1.page_title,
body[class*="lostPassword"] h1{
  display:none !important;
}

/* Center the content area */
body[class*="lostPassword"] .pkp_structure_main,
body[class*="lostPassword"] .pkp_structure_content{
  display:flex !important;
  justify-content:center !important;
}

/* The main form wrapper */
body[class*="lostPassword"] form,
body[class*="lostPassword"] .pkp_structure_content form{
  background:#f2f2f2 !important;
  border:1px solid #c7c7c7 !important;
  padding:28px 28px 22px !important;
  width:min(760px, 92vw) !important;
  box-sizing:border-box !important;
  position:relative !important;
  margin:28px auto 0 !important;
}

/* "Please Enter The Following" legend */
body[class*="lostPassword"] form::before{
  content:"Please Enter The Following" !important;
  position:absolute !important;
  top:-12px !important;
  left:18px !important;
  background:#f2f2f2 !important;
  padding:0 8px !important;
  border:1px solid #c7c7c7 !important;
  font-weight:700 !important;
  font-size:13px !important;
  line-height:20px !important;
}

/* "Insert Special Character" (visual only) */
body[class*="lostPassword"] form::after{
  content:"Insert Special Character" !important;
  position:absolute !important;
  top:-22px !important;
  right:18px !important;
  font-size:12px !important;
  color:#0000ee !important;
  text-decoration:underline !important;
  font-weight:400 !important;
}

/* Hide the long instruction paragraph if present */
body[class*="lostPassword"] form p{
  display:none !important;
}

/* Make the label + input align like EM */
body[class*="lostPassword"] form .fields,
body[class*="lostPassword"] form .pkp_formRow,
body[class*="lostPassword"] form .form-group,
body[class*="lostPassword"] form .cmp_form_field{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  margin:8px 0 14px !important;
}

/* Force label to look like 'E-mail*' in red */
body[class*="lostPassword"] form label{
  margin:0 !important;
  white-space:nowrap !important;
  font-size:0 !important;
}
body[class*="lostPassword"] form label::after{
  content:"E-mail*" !important;
  font-size:13px !important;
  font-weight:700 !important;
  color:#c00000 !important;
}

/* Input size */
body[class*="lostPassword"] form input[type="text"],
body[class*="lostPassword"] form input[type="email"],
body[class*="lostPassword"] form input[type="password"]{
  width:220px !important;
  height:22px !important;
  padding:2px 6px !important;
  box-sizing:border-box !important;
  border:1px solid #9a9a9a !important;
  border-radius:0 !important;
}

/* Buttons row */
body[class*="lostPassword"] form .buttons,
body[class*="lostPassword"] form .pkp_form_buttons,
body[class*="lostPassword"] form .formButtons,
body[class*="lostPassword"] form .cmp_form_buttons{
  display:flex !important;
  justify-content:center !important;
  gap:14px !important;
  margin-top:8px !important;
}

/* Submit button text -> "Send Login Details" (works for <button>) */
body[class*="lostPassword"] form button[type="submit"],
body[class*="lostPassword"] form .cmp_button{
  position:relative !important;
  min-width:140px !important;
  padding:4px 12px !important;
  border:1px solid #9a9a9a !important;
  background:#e6e6e6 !important;
  border-radius:4px !important;
  font-size:0 !important;   /* hide original label */
  color:transparent !important;
}
body[class*="lostPassword"] form button[type="submit"]::after,
body[class*="lostPassword"] form .cmp_button::after{
  content:"Send Login Details" !important;
  font-size:12px !important;
  color: #003a8c !important;
}

/* Register link -> Cancel button (visual only) */
body[class*="lostPassword"] form a[href*="/user/register"],
body[class*="lostPassword"] form a[href*="/user/register?"],
body[class*="lostPassword"] form a[href*="user/register"]{
  display:inline-block !important;
  min-width:90px !important;
  text-align:center !important;
  padding:4px 12px !important;
  border:1px solid #9a9a9a !important;
  background:#e6e6e6 !important;
  border-radius:4px !important;
  text-decoration:none !important;
  font-size:0 !important;
  color:transparent !important;
}
body[class*="lostPassword"] form a[href*="/user/register"]::after,
body[class*="lostPassword"] form a[href*="/user/register?"]::after,
body[class*="lostPassword"] form a[href*="user/register"]::after{
  content:"Cancel" !important;
  font-size:12px !important;
  color: #003a8c !important;
}

/* Hide any extra links under the form except the Cancel button */
body[class*="lostPassword"] form .pkp_helpers,
body[class*="lostPassword"] form .cmp_form_links{
  display:none !important;
}


/* ============================
   LOST PASSWORD — Editorial Manager style (CLEAN LAYOUT)
   Scoped ONLY to /login/lostPassword (body.pp_lostPassword)
   ============================ */
body.pp_lostPassword .pkp_structure_main {
  padding-top: 0 !important;
}

/* Center the whole form area */
body.pp_lostPassword .pkp_structure_main .page,
body.pp_lostPassword .pkp_structure_main .page_content,
body.pp_lostPassword .pkp_structure_main .pkp_page_content {
  max-width: none !important;
}

/* Kill any previous transforms/margins that caused overlap */
body.pp_lostPassword .pkp_structure_main *,
body.pp_lostPassword .pkp_structure_content * {
  transform: none !important;
}

/* Target the lost password form robustly */
body.pp_lostPassword form[action*="lostPassword"],
body.pp_lostPassword form[id*="lostPassword"],
body.pp_lostPassword .cmp_form form,
body.pp_lostPassword .pkp_structure_main form {
  position: relative !important;
  width: 540px !important;
  max-width: calc(100% - 40px) !important;
  margin: 90px auto 0 auto !important;
  padding: 26px 30px 22px 30px !important;
  background: #efefef !important;
  border: 1px solid #bfbfbf !important;
  box-shadow: none !important;
}

/* Title band like EM legend */
body.pp_lostPassword form[action*="lostPassword"]::before,
body.pp_lostPassword form[id*="lostPassword"]::before,
body.pp_lostPassword .cmp_form form::before,
body.pp_lostPassword .pkp_structure_main form::before{
  content: "Please Enter The Following" !important;
  position: absolute !important;
  top: -12px !important;
  left: 14px !important;
  padding: 2px 10px !important;
  background: #efefef !important;
  border: 1px solid #bfbfbf !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

/* "Insert Special Character" link top-right */
body.pp_lostPassword form a,
body.pp_lostPassword .cmp_form a {
  font-size: 11px !important;
}
body.pp_lostPassword form a[href*="special"],
body.pp_lostPassword form a[href*="Special"],
body.pp_lostPassword form a[onclick*="special"],
body.pp_lostPassword form a[onclick*="Special"],
body.pp_lostPassword .cmp_form a[href*="special"],
body.pp_lostPassword .cmp_form a[href*="Special"]{
  position: absolute !important;
  top: -22px !important;
  right: 6px !important;
  display: inline-block !important;
}

/* Field row: label + input inline, centered */
body.pp_lostPassword .cmp_form .fields,
body.pp_lostPassword .cmp_form .form,
body.pp_lostPassword form .fields,
body.pp_lostPassword form .form,
body.pp_lostPassword form fieldset,
body.pp_lostPassword form .fieldset,
body.pp_lostPassword form .formSection{
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.pp_lostPassword form .form-group,
body.pp_lostPassword form .formGroup,
body.pp_lostPassword form .field,
body.pp_lostPassword form .fields .field,
body.pp_lostPassword form .cmp_form_field,
body.pp_lostPassword .cmp_form .form-group,
body.pp_lostPassword .cmp_form .field{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 0 0 18px 0 !important;
}

/* Label styling */
body.pp_lostPassword form label,
body.pp_lostPassword .cmp_form label{
  width: 120px !important;
  text-align: right !important;
  color: #b30000 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

/* Input styling */
body.pp_lostPassword form input[type="text"],
body.pp_lostPassword form input[type="email"],
body.pp_lostPassword .cmp_form input[type="text"],
body.pp_lostPassword .cmp_form input[type="email"]{
  width: 240px !important;
  max-width: 240px !important;
  height: 22px !important;
  padding: 2px 6px !important;
  border: 1px solid #a9a9a9 !important;
  background: #fff !important;
  margin: 0 !important;
}

/* Buttons row */
body.pp_lostPassword form .buttons,
body.pp_lostPassword form .formButtons,
body.pp_lostPassword form .form_buttons,
body.pp_lostPassword .cmp_form .buttons{
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: -42px !important; /* moved up 50px */
}

/* Submit button - visual rename when it's <button> */
body.pp_lostPassword form button[type="submit"],
body.pp_lostPassword .cmp_form button[type="submit"]{
  position: relative !important;
  min-width: 160px !important;
  height: 28px !important;
  border: 1px solid #8f8f8f !important;
  background: #e6e6e6 !important;
  border-radius: 3px !important;
  padding: 0 12px !important;
  cursor: pointer !important;
  color: transparent !important;
}
body.pp_lostPassword form button[type="submit"]::after,
body.pp_lostPassword .cmp_form button[type="submit"]::after{
  content: "Send Login Details" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #003a8c !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* If submit is <input>, keep it EM-like (can't change value text via CSS) */
body.pp_lostPassword form input[type="submit"],
body.pp_lostPassword .cmp_form input[type="submit"]{
  min-width: 160px !important;
  height: 28px !important;
  border: 1px solid #8f8f8f !important;
  background: #e6e6e6 !important;
  border-radius: 3px !important;
  padding: 0 12px !important;
  cursor: pointer !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* Register link styled as Cancel button */
body.pp_lostPassword a[href*="/user/register"],
body.pp_lostPassword a[href*="user/register"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 90px !important;
  height: 28px !important;
  border: 1px solid #8f8f8f !important;
  background: #e6e6e6 !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  font-size: 0 !important; /* hide original text */
  color: transparent !important;
}
body.pp_lostPassword a[href*="/user/register"]::before,
body.pp_lostPassword a[href*="user/register"]::before{
  content: "Cancel" !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #003a8c !important;
}

/* Hide the big page title (Reset Password) only on this page */
body.pp_lostPassword .page_title,
body.pp_lostPassword h1 {
  display: none !important;
}

/* Ensure no stray paragraphs show */
body.pp_lostPassword .pkp_structure_main p {
  display: none !important;
}

/* Keep notifications visible */
body.pp_lostPassword .pkp_helpers_clear,
body.pp_lostPassword .pkp_notification,
body.pp_lostPassword .cmp_notification,
body.pp_lostPassword .error,
body.pp_lostPassword .pkp_form_error{
  display: block !important;
}



/* ============================================================
   v115 PATCH — LOST PASSWORD page: match Editorial Manager look
   Fixes: left "Account Finder" block, vertical divider, form box sizing,
          input alignment, link/button placement.
   Scope: /index.php/ecm/login/lostPassword
   ============================================================ */

body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main{
  padding-top: 30px !important;
}

/* Keep only the EM-style layout on this page */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content{
  position: relative !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 20px 40px 320px !important; /* space for left block */
  box-sizing: border-box !important;
  display: block !important; /* override any earlier grid/flex that caused overlap */
}

/* Hide whatever built-in title/paragraph OJS prints (we'll inject EM copy) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > h1,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > h2,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content > p{
  display: none !important;
}

/* Left column (Account Finder) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content::before{
  content: "Account Finder\A\AEnter your e-mail address in the box below. If an account exists with this e-mail address, your username and password will be e-mailed to you." !important;
  white-space: pre-line !important;
  position: absolute !important;
  left: 0 !important;
  top: 16px !important;
  width: 260px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #003a8c !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  transform: translateX(-150px) !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content::before::first-line{
  font-size: 22px !important;
  font-weight: 700 !important;
}

/* Vertical divider */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content::after{
  content: "" !important;
  position: absolute !important;
  left: 285px !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 1px !important;
  background: #cfcfcf !important;
}

/* Right-side form box */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content .cmp_form,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content .pkp_form{
  width: 520px !important;
  max-width: 520px !important;
  margin: 10px 0 0 0 !important;
  padding: 22px 24px 18px 24px !important;
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  box-shadow: none !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Fieldset/legend if present */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content fieldset{
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content legend{
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  border: 1px solid #cfcfcf !important;
  background: #fff !important;
  position: absolute !important;
  top: -12px !important;
  left: 12px !important;
}

/* "Insert Special Character" link (if exists anywhere in the form) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="special"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="insert"]{
  position: absolute !important;
  top: 10px !important;
  right: 18px !important;
  font-size: 11px !important;
  color: #0000ee !important;
  text-decoration: none !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="special"]:hover,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="insert"]:hover{
  text-decoration: underline !important;
}

/* Email row: label red + aligned input */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .pkp_form_field,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .form-group,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .fields{
  display: grid !important;
  grid-template-columns: 90px 1fr !important;
  gap: 10px 12px !important;
  align-items: center !important;
  margin-top: 18px !important;
}

/* Labels */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form label{
  color: #b30000 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* Inputs */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="email"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="text"]{
  height: 22px !important;
  border: 1px solid #c0c0c0 !important;
  background: #fff !important;
  padding: 2px 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Buttons row */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .buttons,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .formButtons,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .pkp_form_buttons,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .submit,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form .actions{
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

/* Submit button — show "Send Login Details" visually */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form button[type="submit"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="submit"]{
  min-width: 160px !important;
  height: 28px !important;
  border: 1px solid #8f8f8f !important;
  background: #e6e6e6 !important;
  border-radius: 3px !important;
  font-size: 0 !important;           /* hide existing label */
  color: transparent !important;
  cursor: pointer !important;
  position: relative !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form button[type="submit"]::after,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="submit"]::after{
  content: "Send Login Details" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #003a8c !important;
}

/* "Cancel" button: style the login/register link(s) as Cancel */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="/login"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="/user/register"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="register"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 90px !important;
  height: 28px !important;
  border: 1px solid #8f8f8f !important;
  background: #e6e6e6 !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  font-size: 0 !important;           /* hide original text */
  color: transparent !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="/login"]::before,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="/user/register"]::before,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form a[href*="register"]::before{
  content: "Cancel" !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #003a8c !important;
}

/* "Go to Login Page" (if present as a plain link) */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content a[href*="/login"]{
  color: #0000ee !important;
  font-size: 11px !important;
  text-decoration: none !important;
}
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content a[href*="/login"]:hover{
  text-decoration: underline !important;
}



/* ============================================================
   v116 PATCH — Make the gray box bigger (Lost Password)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content{
  max-width: 1050px !important;
  padding-left: 340px !important; /* more room for left column */
}

body.pkp_page_login.pkp_op_lostPassword .pkp_page_content::after{
  left: 305px !important; /* keep divider aligned */
}

/* Bigger gray box */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content .cmp_form,
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content .pkp_form{
  width: 650px !important;
  max-width: 650px !important;
  min-height: 165px !important;
  padding: 26px 28px 22px 28px !important;
}

/* Slightly wider email input like EM */
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="email"],
body.pkp_page_login.pkp_op_lostPassword .pkp_page_content form input[type="text"]{
  max-width: 360px !important;
}



/* ============================================================
   v117 PATCH — Selector hardening (if nothing changed)
   Applies even if body classes differ.
   Targets: any form that posts to lostPassword.
   ============================================================ */

/* Scope container: login pages */
body .pkp_structure_main .pkp_page_content{
  position: relative !important;
}

/* Only apply when the page contains the lostPassword form */
body .pkp_structure_main .pkp_page_content form[action*="lostPassword"],
body .pkp_structure_main .pkp_page_content form[id*="lostPassword"],
body .pkp_structure_main .pkp_page_content form[name*="lostPassword"]{
  /* BIGGER gray box */
  width: 650px !important;
  max-width: 650px !important;
  min-height: 170px !important;
  padding: 26px 28px 22px 28px !important;
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  box-sizing: border-box !important;
  margin: 10px 0 0 0 !important;
}

/* Make the right side container wide enough */
body .pkp_structure_main .pkp_page_content:has(form[action*="lostPassword"]),
body .pkp_structure_main .pkp_page_content:has(form[id*="lostPassword"]){
  max-width: 1050px !important;
  margin: 0 auto !important;
  padding: 0 20px 40px 340px !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Left "Account Finder" block */
body .pkp_structure_main .pkp_page_content:has(form[action*="lostPassword"])::before,
body .pkp_structure_main .pkp_page_content:has(form[id*="lostPassword"])::before{
  content: "Account Finder\A\AEnter your e-mail address in the box below. If an account exists with this e-mail address, your username and password will be e-mailed to you." !important;
  white-space: pre-line !important;
  position: absolute !important;
  left: 0 !important;
  top: 16px !important;
  width: 270px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #003a8c !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  transform: translateX(-150px) !important;
}
body .pkp_structure_main .pkp_page_content:has(form[action*="lostPassword"])::after,
body .pkp_structure_main .pkp_page_content:has(form[id*="lostPassword"])::after{
  content: "" !important;
  position: absolute !important;
  left: 305px !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 1px !important;
  background: #cfcfcf !important;
}

/* Wider input (like EM) */
body .pkp_structure_main .pkp_page_content form[action*="lostPassword"] input[type="email"],
body .pkp_structure_main .pkp_page_content form[action*="lostPassword"] input[type="text"]{
  width: 360px !important;
  max-width: 360px !important;
}

/* Visual label + grid alignment */
body .pkp_structure_main .pkp_page_content form[action*="lostPassword"] .pkp_form_field,
body .pkp_structure_main .pkp_page_content form[action*="lostPassword"] .form-group,
body .pkp_structure_main .pkp_page_content form[action*="lostPassword"] .fields{
  display: grid !important;
  grid-template-columns: 90px 1fr !important;
  gap: 10px 12px !important;
  align-items: center !important;
}
body .pkp_structure_main .pkp_page_content form[action*="lostPassword"] label{
  color: #b30000 !important;
  font-weight: 700 !important;
}



/* ============================================================
   v118 PATCH — Nuclear fallback (no :has, max specificity)
   If STILL nothing changes, it's almost always the CSS file not loading.
   This patch targets by form action and common OJS wrappers.
   ============================================================ */

/* Bigger gray panel no matter what wrapper is used */
.pkp_structure_main form[action*="lostPassword"],
.pkp_structure_main form[action*="lostPassword"] .cmp_form,
.pkp_structure_main form[action*="lostPassword"] .pkp_form,
.pkp_structure_main form[action*="lostPassword"] fieldset,
.pkp_structure_main form[action*="lostPassword"] .fields,
.pkp_structure_main form[action*="lostPassword"] .pkp_form_fields{
  box-sizing: border-box !important;
}

.pkp_structure_main form[action*="lostPassword"]{
  width: 700px !important;
  max-width: 700px !important;
  min-height: 190px !important;
  padding: 30px 32px 26px 32px !important;
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  margin: 10px auto 0 auto !important; /* center */
  display: block !important;
  position: relative !important;
}

/* If the gray box is actually a wrapper around the form, style it too */
.pkp_structure_main form[action*="lostPassword"] .cmp_form,
.pkp_structure_main form[action*="lostPassword"] .pkp_form{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Make page area wide enough and add left panel spacing */
body.pkp_page_login .pkp_structure_main .pkp_page_content{
  max-width: 1100px !important;
  margin: 0 auto !important;
}

/* EM-like layout using a fixed left block + divider (no :has) */
body.pkp_page_login .pkp_structure_main .pkp_page_content{
  padding-left: 340px !important;
  position: relative !important;
}
body.pkp_page_login .pkp_structure_main .pkp_page_content::before{
  content: "Account Finder\A\AEnter your e-mail address in the box below. If an account exists with this e-mail address, your username and password will be e-mailed to you." !important;
  white-space: pre-line !important;
  position: absolute !important;
  left: 0 !important;
  top: 16px !important;
  width: 270px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #003a8c !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  transform: translateX(-150px) !important;
}
body.pkp_page_login .pkp_structure_main .pkp_page_content::after{
  content: "" !important;
  position: absolute !important;
  left: 305px !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 1px !important;
  background: #cfcfcf !important;
}

/* Field alignment inside the lostPassword form */
.pkp_structure_main form[action*="lostPassword"] .pkp_form_field,
.pkp_structure_main form[action*="lostPassword"] .form-group,
.pkp_structure_main form[action*="lostPassword"] .fields{
  display: grid !important;
  grid-template-columns: 90px 1fr !important;
  gap: 10px 12px !important;
  align-items: center !important;
  margin-top: 18px !important;
}

.pkp_structure_main form[action*="lostPassword"] label{
  color: #b30000 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.pkp_structure_main form[action*="lostPassword"] input[type="email"],
.pkp_structure_main form[action*="lostPassword"] input[type="text"]{
  width: 380px !important;
  max-width: 380px !important;
  height: 22px !important;
  border: 1px solid #c0c0c0 !important;
  background: #fff !important;
  padding: 2px 6px !important;
}

/* Buttons row centered */
.pkp_structure_main form[action*="lostPassword"] .buttons,
.pkp_structure_main form[action*="lostPassword"] .formButtons,
.pkp_structure_main form[action*="lostPassword"] .pkp_form_buttons,
.pkp_structure_main form[action*="lostPassword"] .submit,
.pkp_structure_main form[action*="lostPassword"] .actions{
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 16px !important;
}



/* ============================================================
   v119 PATCH — Fix what you're seeing (fieldset is the gray box)
   Your screenshot shows the gray box is the FIELDSET, not the form.
   So we enlarge + center the FIELDSET and re-layout label/input.
   ============================================================ */

/* Make the FIELDSET itself the big gray box */
.pkp_structure_main form[action*="lostPassword"] fieldset{
  width: 700px !important;
  max-width: 700px !important;
  min-height: 220px !important;
  padding: 34px 32px 28px 32px !important;
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  margin: 10px auto 0 auto !important;
  position: relative !important;
}

/* EM-style legend */
.pkp_structure_main form[action*="lostPassword"] fieldset legend{
  position: absolute !important;
  top: -12px !important;
  left: 14px !important;
  padding: 3px 10px !important;
  border: 1px solid #cfcfcf !important;
  background: #fff !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}

/* Put "Insert Special Character" at top-right inside box */
.pkp_structure_main form[action*="lostPassword"] fieldset a{
  position: absolute !important;
  top: 10px !important;
  right: 18px !important;
  font-size: 11px !important;
  color: #0000ee !important;
  text-decoration: none !important;
}
.pkp_structure_main form[action*="lostPassword"] fieldset a:hover{ text-decoration: underline !important; }

/* Reset any weird positioning that pushes label outside the box */
.pkp_structure_main form[action*="lostPassword"] label,
.pkp_structure_main form[action*="lostPassword"] input{
  position: static !important;
  float: none !important;
  margin: 0 !important;
  transform: none !important;
}

/* One clean row: label + input (centered like EM) */
.pkp_structure_main form[action*="lostPassword"] fieldset{
  display: grid !important;
  grid-template-columns: 120px 1fr !important;
  column-gap: 14px !important;
  row-gap: 14px !important;
  align-items: center !important;
}

/* Label (red) */
.pkp_structure_main form[action*="lostPassword"] label{
  color: #b30000 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

/* Input width like EM */
.pkp_structure_main form[action*="lostPassword"] input[type="email"],
.pkp_structure_main form[action*="lostPassword"] input[type="text"]{
  width: 420px !important;
  max-width: 420px !important;
  height: 22px !important;
  border: 1px solid #c0c0c0 !important;
  background: #fff !important;
  padding: 2px 6px !important;
  box-sizing: border-box !important;
  justify-self: start !important;
}

/* Buttons centered under fields (span full width) */
.pkp_structure_main form[action*="lostPassword"] .buttons,
.pkp_structure_main form[action*="lostPassword"] .formButtons,
.pkp_structure_main form[action*="lostPassword"] .pkp_form_buttons,
.pkp_structure_main form[action*="lostPassword"] .submit,
.pkp_structure_main form[action*="lostPassword"] .actions{
  grid-column: 1 / -1 !important;
  justify-content: center !important;
  margin-top: 6px !important;
}

/* If the email field is wrapped, make wrapper span both columns */
.pkp_structure_main form[action*="lostPassword"] .pkp_form_field,
.pkp_structure_main form[action*="lostPassword"] .form-group,
.pkp_structure_main form[action*="lostPassword"] .fields{
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: 120px 1fr !important;
  column-gap: 14px !important;
  align-items: center !important;
}



/* ============================================================
   v121 — LOST PASSWORD CSS-ONLY FIX (break inline absolute layout)
   Targets legacy EM table/fieldset markup inside lostPassword form.
   ============================================================ */

/* Scope to the lostPassword form only */
.pkp_structure_main form[action*="lostPassword"]{
  display: block !important;
  margin: 0 auto !important;
}

/* 1) Neutralize inline absolute positioning that is freezing the layout */
.pkp_structure_main form[action*="lostPassword"] *{
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
  transform: none !important;
}

/* 2) Make the main gray panel BIG (fieldset OR main table) */
.pkp_structure_main form[action*="lostPassword"] fieldset{
  width: 760px !important;
  max-width: 520px !important;
  min-height: 240px !important;
  margin: 35px auto 0 auto !important;
  padding: 34px 34px 26px 34px !important;
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  box-sizing: border-box !important;
}

/* If no fieldset, style the first table as the gray box */
.pkp_structure_main form[action*="lostPassword"] table{
  width: 760px !important;
  max-width: 520px !important;
  margin: 35px auto 0 auto !important;
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  box-sizing: border-box !important;
  border-collapse: collapse !important;
}

/* 3) Legend like EM */
.pkp_structure_main form[action*="lostPassword"] legend{
  display: inline-block !important;
  padding: 3px 10px !important;
  border: 1px solid #cfcfcf !important;
  background: #fff !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  margin-bottom: 18px !important;
}

/* 4) Put fields in a clean row: label (red) + input */
.pkp_structure_main form[action*="lostPassword"] td{
  padding: 8px 10px !important;
  vertical-align: middle !important;
}

.pkp_structure_main form[action*="lostPassword"] label,
.pkp_structure_main form[action*="lostPassword"] .label,
.pkp_structure_main form[action*="lostPassword"] font[color="red"]{
  color: #b30000 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  white-space: nowrap !important;
}

/* Inputs */
.pkp_structure_main form[action*="lostPassword"] input[type="text"],
.pkp_structure_main form[action*="lostPassword"] input[type="email"]{
  width: 420px !important;
  max-width: 420px !important;
  height: 22px !important;
  border: 1px solid #c0c0c0 !important;
  background: #fff !important;
  padding: 2px 6px !important;
  box-sizing: border-box !important;
}

/* 5) Buttons centered */
.pkp_structure_main form[action*="lostPassword"] input[type="submit"],
.pkp_structure_main form[action*="lostPassword"] button{
  min-width: 160px !important;
  height: 28px !important;
  border: 1px solid #8f8f8f !important;
  background: #e6e6e6 !important;
  border-radius: 3px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #003a8c !important;
  cursor: pointer !important;
  margin: 12px 6px 0 6px !important;
}

/* Center submit/cancel row if it's in a table row */
.pkp_structure_main form[action*="lostPassword"] table tr:last-child td{
  text-align: center !important;
  padding-top: 14px !important;
}

/* 6) Remove any leftover weird spacing */
.pkp_structure_main form[action*="lostPassword"] br{ display:none !important; }

/* 7) Remove any debug banners */
html::before{ content: none !important; display:none !important; }



/* ============================================================
   v122 — Bigger gray box (lostPassword)
   ============================================================ */
.pkp_structure_main form[action*="lostPassword"] fieldset{
  width: 920px !important;
  max-width: 920px !important;
  min-height: 320px !important;
  padding: 44px 46px 36px 46px !important;
}

.pkp_structure_main form[action*="lostPassword"] table{
  width: 920px !important;
  max-width: 920px !important;
  min-height: 320px !important;
}

/* Wider input to match bigger box */
.pkp_structure_main form[action*="lostPassword"] input[type="text"],
.pkp_structure_main form[action*="lostPassword"] input[type="email"]{
  width: 520px !important;
  max-width: 520px !important;
}



/* ============================================================
   v123 — Bigger gray box (force it on the FORM itself)
   If fieldset/table sizing doesn't show, the "box" you're seeing is the form.
   ============================================================ */

/* FORCE the form to be the big gray panel */
.pkp_structure_main form[action*="lostPassword"]{
  width: 920px !important;
  max-width: 920px !important;
  min-height: 320px !important;
  margin: 35px auto 0 auto !important;
  padding: 44px 46px 36px 46px !important;
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  box-sizing: border-box !important;
}

/* Keep children transparent so the form background shows as the big box */
.pkp_structure_main form[action*="lostPassword"] fieldset,
.pkp_structure_main form[action*="lostPassword"] table{
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Wider input */
.pkp_structure_main form[action*="lostPassword"] input[type="text"],
.pkp_structure_main form[action*="lostPassword"] input[type="email"]{
  width: 520px !important;
  max-width: 520px !important;
}

/* Tiny debug: outline the big box so you can SEE it */
.pkp_structure_main form[action*="lostPassword"]{ outline: 2px dashed #999 !important; }



/* ============================================================
   v124 — Correct page targeting + override inline width attributes
   (OJS lostPassword action may NOT contain "lostPassword")
   Adds extra action fallbacks and forces width on table/td wrappers.
   ============================================================ */

/* Target the lostPassword page by BODY classes (OJS) */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main form,
body.pkp_page_login.pkp_op_lostPassword form,
/* Fallback: common reset endpoints */
.pkp_structure_main form[action*="requestResetPassword"],
.pkp_structure_main form[action*="resetPassword"],
.pkp_structure_main form[action*="lostPassword"],
.pkp_structure_main form[action*="sendPasswordReset"],
.pkp_structure_main form[action*="user/requestResetPassword"]{
  width: 920px !important;
  max-width: 920px !important;
  min-height: 320px !important;
  margin: 35px auto 0 auto !important;
  padding: 44px 46px 36px 46px !important;
  border: 1px solid #cfcfcf !important;
  background: #f5f5f5 !important;
  box-sizing: border-box !important;
  display: block !important;
  outline: 3px solid #ff6c00 !important; /* visible proof */
}

/* Kill inline width/height attributes inside */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main form * ,
.pkp_structure_main form[action*="requestResetPassword"] * ,
.pkp_structure_main form[action*="resetPassword"] * ,
.pkp_structure_main form[action*="lostPassword"] * {
  max-width: none !important;
}

/* Force wrapper table + cells to fill the big box */
body.pkp_page_login.pkp_op_lostPassword form table,
body.pkp_page_login.pkp_op_lostPassword form tbody,
body.pkp_page_login.pkp_op_lostPassword form tr,
body.pkp_page_login.pkp_op_lostPassword form td,
.pkp_structure_main form[action*="requestResetPassword"] table,
.pkp_structure_main form[action*="requestResetPassword"] td,
.pkp_structure_main form[action*="resetPassword"] table,
.pkp_structure_main form[action*="resetPassword"] td,
.pkp_structure_main form[action*="lostPassword"] table,
.pkp_structure_main form[action*="lostPassword"] td{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* If the "gray box" is a fieldset, make it full width too */
body.pkp_page_login.pkp_op_lostPassword form fieldset,
.pkp_structure_main form[action*="requestResetPassword"] fieldset,
.pkp_structure_main form[action*="resetPassword"] fieldset,
.pkp_structure_main form[action*="lostPassword"] fieldset{
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Wider inputs */
body.pkp_page_login.pkp_op_lostPassword form input[type="email"],
body.pkp_page_login.pkp_op_lostPassword form input[type="text"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="email"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="text"],
.pkp_structure_main form[action*="resetPassword"] input[type="email"],
.pkp_structure_main form[action*="resetPassword"] input[type="text"],
.pkp_structure_main form[action*="lostPassword"] input[type="email"],
.pkp_structure_main form[action*="lostPassword"] input[type="text"]{
  width: 520px !important;
  max-width: 520px !important;
}



/* ============================================================
   v125 — Reduce width, remove orange border, EM-like alignment
   ============================================================ */

/* Reduce the box width + remove outline */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main form,
body.pkp_page_login.pkp_op_lostPassword form,
.pkp_structure_main form[action*="requestResetPassword"],
.pkp_structure_main form[action*="resetPassword"],
.pkp_structure_main form[action*="lostPassword"],
.pkp_structure_main form[action*="sendPasswordReset"],
.pkp_structure_main form[action*="user/requestResetPassword"]{
  width: 650px !important;
  max-width: 650px !important;
  min-height: 170px !important;
  padding: 26px 28px 22px 28px !important;
  outline: none !important;
}

/* First data row: make label + input on one line (table -> flex) */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2){
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* Hide the "Registered user's email*" label (left) */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(1){
  display: none !important;
}

/* Move the "E-mail*" label (usually 3rd td) to the left */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(3){
  order: 1 !important;
  width: 90px !important;
  max-width: 90px !important;
  text-align: right !important;
}

/* Input cell */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2){
  order: 2 !important;
  flex: 1 1 auto !important;
  width: auto !important;
}

/* Buttons cell (usually last td) stays to the right, but we drop it to new line */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:last-child{
  order: 3 !important;
  width: 100% !important;
  text-align: center !important;
  margin-top: 14px !important;
}

/* Input width inside smaller box */
body.pkp_page_login.pkp_op_lostPassword form input[type="email"],
body.pkp_page_login.pkp_op_lostPassword form input[type="text"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="email"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="text"],
.pkp_structure_main form[action*="resetPassword"] input[type="email"],
.pkp_structure_main form[action*="resetPassword"] input[type="text"],
.pkp_structure_main form[action*="lostPassword"] input[type="email"],
.pkp_structure_main form[action*="lostPassword"] input[type="text"]{
  width: 320px !important;
  max-width: 320px !important;
}

/* Remove any outline/debug leftovers */
html::before{ content: none !important; display:none !important; }



/* ============================================================
   v126 — Put buttons on SAME LINE (like your red mark)
   - hide "Registered user's email*"
   - keep "E-mail*" at left
   - make input stretch, buttons on right
   ============================================================ */

/* The main row (email + buttons) */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2){
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;  /* KEEP ONE LINE */
}

/* Hide "Registered user's email*" */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(1){
  display: none !important;
}

/* Put E-mail* label on the far left */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(3){
  order: 1 !important;
  width: 80px !important;
  max-width: 80px !important;
  text-align: right !important;
}

/* Input cell stretches */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2){
  order: 2 !important;
  flex: 1 1 auto !important;
  width: auto !important;
}

/* Buttons cell goes to the RIGHT (same line) */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:last-child{
  order: 3 !important;
  width: auto !important;
  margin-left: auto !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* Let input fill space (no fixed 320px) */
body.pkp_page_login.pkp_op_lostPassword form input[type="email"],
body.pkp_page_login.pkp_op_lostPassword form input[type="text"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="email"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="text"],
.pkp_structure_main form[action*="resetPassword"] input[type="email"],
.pkp_structure_main form[action*="resetPassword"] input[type="text"],
.pkp_structure_main form[action*="lostPassword"] input[type="email"],
.pkp_structure_main form[action*="lostPassword"] input[type="text"]{
  width: 100% !important;
  max-width: none !important;
}



/* ============================================================
   v127 — Move buttons DOWN under the field (like EM)
   ============================================================ */

/* Allow wrapping so buttons go to next line */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2){
  flex-wrap: wrap !important;
}

/* Buttons cell becomes full width UNDER the input */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:last-child{
  flex: 0 0 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  text-align: center !important;
  padding-top: 14px !important;
}

/* Keep E-mail* + input aligned on first line */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(3){
  flex: 0 0 80px !important;
}
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2){
  flex: 1 1 auto !important;
}



/* ============================================================
   v128 — Guaranteed move: push buttons DOWN under the field (offset)
   (Table structure varies; this moves the actual buttons regardless.)
   ============================================================ */

/* Add space below the input row so buttons can sit underneath */
body.pkp_page_login.pkp_op_lostPassword form,
.pkp_structure_main form[action*="requestResetPassword"],
.pkp_structure_main form[action*="resetPassword"],
.pkp_structure_main form[action*="lostPassword"]{
  padding-bottom: 60px !important;
}

/* Move the buttons down */
body.pkp_page_login.pkp_op_lostPassword form input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword form button,
body.pkp_page_login.pkp_op_lostPassword form a[href*="login"],
body.pkp_page_login.pkp_op_lostPassword form a[href*="register"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="submit"],
.pkp_structure_main form[action*="requestResetPassword"] button,
.pkp_structure_main form[action*="requestResetPassword"] a,
.pkp_structure_main form[action*="resetPassword"] input[type="submit"],
.pkp_structure_main form[action*="resetPassword"] button,
.pkp_structure_main form[action*="resetPassword"] a,
.pkp_structure_main form[action*="lostPassword"] input[type="submit"],
.pkp_structure_main form[action*="lostPassword"] button,
.pkp_structure_main form[action*="lostPassword"] a{
  position: relative !important;
  top: 46px !important;           /* <-- move down */
}

/* Center the button group */
body.pkp_page_login.pkp_op_lostPassword form td:last-child,
.pkp_structure_main form[action*="requestResetPassword"] td:last-child,
.pkp_structure_main form[action*="resetPassword"] td:last-child,
.pkp_structure_main form[action*="lostPassword"] td:last-child{
  text-align: center !important;
}



/* ============================================================
   v129 — Center the buttons group inside the gray box
   ============================================================ */

/* Wrap buttons in a centered inline-flex using their common parent (last td) */
body.pkp_page_login.pkp_op_lostPassword form td:last-child,
.pkp_structure_main form[action*="requestResetPassword"] td:last-child,
.pkp_structure_main form[action*="resetPassword"] td:last-child,
.pkp_structure_main form[action*="lostPassword"] td:last-child{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
}

/* Ensure buttons don't stretch */
body.pkp_page_login.pkp_op_lostPassword form input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword form button,
body.pkp_page_login.pkp_op_lostPassword form a[href*="login"],
body.pkp_page_login.pkp_op_lostPassword form a[href*="register"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="submit"],
.pkp_structure_main form[action*="requestResetPassword"] button,
.pkp_structure_main form[action*="resetPassword"] input[type="submit"],
.pkp_structure_main form[action*="resetPassword"] button,
.pkp_structure_main form[action*="lostPassword"] input[type="submit"],
.pkp_structure_main form[action*="lostPassword"] button{
  flex: 0 0 auto !important;
}



/* ============================================================
   v130 — Shift the buttons group 30px LEFT
   ============================================================ */

/* Move the actual buttons left by 30px (reliable regardless of wrappers) */
body.pkp_page_login.pkp_op_lostPassword form input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword form button,
body.pkp_page_login.pkp_op_lostPassword form a[href*="login"],
body.pkp_page_login.pkp_op_lostPassword form a[href*="register"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="submit"],
.pkp_structure_main form[action*="requestResetPassword"] button,
.pkp_structure_main form[action*="requestResetPassword"] a,
.pkp_structure_main form[action*="resetPassword"] input[type="submit"],
.pkp_structure_main form[action*="resetPassword"] button,
.pkp_structure_main form[action*="resetPassword"] a,
.pkp_structure_main form[action*="lostPassword"] input[type="submit"],
.pkp_structure_main form[action*="lostPassword"] button,
.pkp_structure_main form[action*="lostPassword"] a{
  position: relative !important;
  left: -30px !important;
}



/* ============================================================
   v131 — Shift the buttons group 30px MORE (total 60px left)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword form input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword form button,
body.pkp_page_login.pkp_op_lostPassword form a[href*="login"],
body.pkp_page_login.pkp_op_lostPassword form a[href*="register"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="submit"],
.pkp_structure_main form[action*="requestResetPassword"] button,
.pkp_structure_main form[action*="requestResetPassword"] a,
.pkp_structure_main form[action*="resetPassword"] input[type="submit"],
.pkp_structure_main form[action*="resetPassword"] button,
.pkp_structure_main form[action*="resetPassword"] a,
.pkp_structure_main form[action*="lostPassword"] input[type="submit"],
.pkp_structure_main form[action*="lostPassword"] button,
.pkp_structure_main form[action*="lostPassword"] a{
  left: -60px !important;
}



/* ============================================================
   v132 — Shift the buttons group 30px MORE (total 90px left)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword form input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword form button,
body.pkp_page_login.pkp_op_lostPassword form a[href*="login"],
body.pkp_page_login.pkp_op_lostPassword form a[href*="register"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="submit"],
.pkp_structure_main form[action*="requestResetPassword"] button,
.pkp_structure_main form[action*="requestResetPassword"] a,
.pkp_structure_main form[action*="resetPassword"] input[type="submit"],
.pkp_structure_main form[action*="resetPassword"] button,
.pkp_structure_main form[action*="resetPassword"] a,
.pkp_structure_main form[action*="lostPassword"] input[type="submit"],
.pkp_structure_main form[action*="lostPassword"] button,
.pkp_structure_main form[action*="lostPassword"] a{
  left: -90px !important;
}



/* ============================================================
   v133 — Move input 30px RIGHT + put "E-mail*" on the LEFT of input
   ============================================================ */

/* In the email row, swap order so label is LEFT then input */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2){
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* Hide "Registered user's email*" (keep hidden) */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(1),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(1){
  display: none !important;
}

/* Make E-mail* cell come FIRST (left side) */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(3),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(3){
  order: 1 !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;   /* left of input */
  margin-right: 6px !important;
}

/* Input cell comes SECOND and shifts RIGHT 30px */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2){
  order: 2 !important;
  flex: 1 1 auto !important;
  margin-left: 30px !important; /* shift right */
}

/* Keep buttons under (still) */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:last-child,
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:last-child{
  order: 3 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  text-align: center !important;
  padding-top: 14px !important;
  margin-left: 0 !important;
}



/* ============================================================
   v134 — Robust: "E-mail*" is inside SAME cell as input (legacy EM)
   Force that cell to flex and put the red "E-mail*" BEFORE the input,
   and shift the whole input+label block 30px to the right.
   ============================================================ */

/* Target the row's INPUT CELL and make it flex */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td,
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td,
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td,
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td{
  vertical-align: middle !important;
}

/* The cell that contains the email input */
body.pkp_page_login.pkp_op_lostPassword form input[type="text"],
body.pkp_page_login.pkp_op_lostPassword form input[type="email"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="text"],
.pkp_structure_main form[action*="requestResetPassword"] input[type="email"],
.pkp_structure_main form[action*="resetPassword"] input[type="text"],
.pkp_structure_main form[action*="resetPassword"] input[type="email"],
.pkp_structure_main form[action*="lostPassword"] input[type="text"],
.pkp_structure_main form[action*="lostPassword"] input[type="email"]{
  position: relative !important;
}

/* Make the direct parent TD of the input a flex row */
body.pkp_page_login.pkp_op_lostPassword form input[type="text"] ,
body.pkp_page_login.pkp_op_lostPassword form input[type="email"]{
  /* no-op: keep selector for specificity */
}

body.pkp_page_login.pkp_op_lostPassword form input[type="text"]:not([type="submit"]) ,
body.pkp_page_login.pkp_op_lostPassword form input[type="email"]{
  /* no-op */
}

body.pkp_page_login.pkp_op_lostPassword form input[type="text"]:not([type="submit"])::placeholder{
  /* no-op */
}

/* Actual: style the parent TD via :has when available; fallback applies broadly */
body.pkp_page_login.pkp_op_lostPassword form td:has(> input[type="text"]),
body.pkp_page_login.pkp_op_lostPassword form td:has(> input[type="email"]),
.pkp_structure_main form[action*="requestResetPassword"] td:has(> input[type="text"]),
.pkp_structure_main form[action*="requestResetPassword"] td:has(> input[type="email"]),
.pkp_structure_main form[action*="resetPassword"] td:has(> input[type="text"]),
.pkp_structure_main form[action*="resetPassword"] td:has(> input[type="email"]),
.pkp_structure_main form[action*="lostPassword"] td:has(> input[type="text"]),
.pkp_structure_main form[action*="lostPassword"] td:has(> input[type="email"]){
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-left: 30px !important; /* shift block RIGHT 30px */
}

/* Put the red "E-mail*" before the input (common legacy patterns) */
body.pkp_page_login.pkp_op_lostPassword form td:has(> input[type="text"]) font[color],
body.pkp_page_login.pkp_op_lostPassword form td:has(> input[type="email"]) font[color],
body.pkp_page_login.pkp_op_lostPassword form td:has(> input[type="text"]) span[style*="color"],
body.pkp_page_login.pkp_op_lostPassword form td:has(> input[type="email"]) span[style*="color"],
.pkp_structure_main form[action*="requestResetPassword"] td:has(> input[type="text"]) font[color],
.pkp_structure_main form[action*="requestResetPassword"] td:has(> input[type="email"]) font[color],
.pkp_structure_main form[action*="resetPassword"] td:has(> input[type="text"]) font[color],
.pkp_structure_main form[action*="resetPassword"] td:has(> input[type="email"]) font[color],
.pkp_structure_main form[action*="lostPassword"] td:has(> input[type="text"]) font[color],
.pkp_structure_main form[action*="lostPassword"] td:has(> input[type="email"]) font[color]{
  order: 1 !important;
  margin: 0 6px 0 0 !important;
}

/* Input after label */
body.pkp_page_login.pkp_op_lostPassword form td:has(> input[type="text"]) > input[type="text"],
body.pkp_page_login.pkp_op_lostPassword form td:has(> input[type="email"]) > input[type="email"],
.pkp_structure_main form[action*="requestResetPassword"] td:has(> input[type="text"]) > input[type="text"],
.pkp_structure_main form[action*="requestResetPassword"] td:has(> input[type="email"]) > input[type="email"],
.pkp_structure_main form[action*="resetPassword"] td:has(> input[type="text"]) > input[type="text"],
.pkp_structure_main form[action*="resetPassword"] td:has(> input[type="email"]) > input[type="email"],
.pkp_structure_main form[action*="lostPassword"] td:has(> input[type="text"]) > input[type="text"],
.pkp_structure_main form[action*="lostPassword"] td:has(> input[type="email"]) > input[type="email"]{
  order: 2 !important;
}



/* ============================================================
   v135 — No-:has fallback: flip inline order using RTL on the input cell
   Works when "E-mail*" is printed AFTER the input in the same TD.
   Also shifts input 30px to the RIGHT.
   ============================================================ */

/* The cell that contains the email input (most legacy EM layouts) */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2),
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2){
  direction: rtl !important;          /* reverses inline order */
  text-align: left !important;
  white-space: nowrap !important;
}

/* Keep the input itself left-to-right and shift it RIGHT 30px */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2) input[type="text"],
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2) input[type="email"],
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2) input[type="text"],
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2) input[type="email"],
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2) input[type="text"],
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2) input[type="email"],
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2) input[type="text"],
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2) input[type="email"]{
  direction: ltr !important;
  transform: translateX(30px) !important; /* move right */
}

/* Make the red "E-mail*" label sit on the LEFT of the input after RTL flip */
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2) font,
body.pkp_page_login.pkp_op_lostPassword form table tr:nth-child(2) td:nth-child(2) span,
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2) font,
.pkp_structure_main form[action*="requestResetPassword"] table tr:nth-child(2) td:nth-child(2) span,
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2) font,
.pkp_structure_main form[action*="resetPassword"] table tr:nth-child(2) td:nth-child(2) span,
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2) font,
.pkp_structure_main form[action*="lostPassword"] table tr:nth-child(2) td:nth-child(2) span{
  direction: ltr !important;
  margin-right: 8px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}



/* ============================================================
   v136 — Guaranteed: HIDE original "E-mail*" and inject a new one on the LEFT
   Works even with nested tables, because we target ANY td that HAS the email input.
   Also shifts the whole input cell 30px to the right (padding-left).
   ============================================================ */

/* Target the TD that contains the email input (any nesting) */
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="email"]),
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="text"]),
.pkp_structure_main form[action*="requestResetPassword"] td:has(input[type="email"]),
.pkp_structure_main form[action*="requestResetPassword"] td:has(input[type="text"]),
.pkp_structure_main form[action*="resetPassword"] td:has(input[type="email"]),
.pkp_structure_main form[action*="resetPassword"] td:has(input[type="text"]),
.pkp_structure_main form[action*="lostPassword"] td:has(input[type="email"]),
.pkp_structure_main form[action*="lostPassword"] td:has(input[type="text"]){
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding-left: 30px !important;  /* shift cell right 30px */
  white-space: nowrap !important;
}

/* Hide any existing red text labels inside that TD (legacy "E-mail*") */
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="email"]) font,
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="email"]) span,
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="text"]) font,
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="text"]) span,
.pkp_structure_main form[action*="requestResetPassword"] td:has(input[type="email"]) font,
.pkp_structure_main form[action*="requestResetPassword"] td:has(input[type="email"]) span,
.pkp_structure_main form[action*="resetPassword"] td:has(input[type="email"]) font,
.pkp_structure_main form[action*="resetPassword"] td:has(input[type="email"]) span,
.pkp_structure_main form[action*="lostPassword"] td:has(input[type="email"]) font,
.pkp_structure_main form[action*="lostPassword"] td:has(input[type="email"]) span{
  display: none !important;
}

/* Inject our own label BEFORE the input */
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="email"])::before,
.pkp_structure_main form[action*="requestResetPassword"] td:has(input[type="email"])::before,
.pkp_structure_main form[action*="resetPassword"] td:has(input[type="email"])::before,
.pkp_structure_main form[action*="lostPassword"] td:has(input[type="email"])::before{
  content: "E-mail*" !important;
  color: #b30000 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Ensure input stays after the label */
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="email"]) input[type="email"],
body.pkp_page_login.pkp_op_lostPassword form td:has(input[type="text"]) input[type="text"],
.pkp_structure_main form[action*="requestResetPassword"] td:has(input[type="email"]) input[type="email"],
.pkp_structure_main form[action*="resetPassword"] td:has(input[type="email"]) input[type="email"],
.pkp_structure_main form[action*="lostPassword"] td:has(input[type="email"]) input[type="email"]{
  order: 2 !important;
}



/* ============================================================
   v137 — Hide "Registered user's email*" label span
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword span.label,
body.pkp_page_login.pkp_op_lostPassword .label,
.pkp_structure_main form[action*="requestResetPassword"] span.label,
.pkp_structure_main form[action*="resetPassword"] span.label,
.pkp_structure_main form[action*="lostPassword"] span.label{
  display: none !important;
}



/* ============================================================
   v138 — Put the email label (label::after) on the LEFT of the input
   Target OJS markup: div.fields > div.email > label + input
   ============================================================ */

/* Force proper row layout */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Make label appear first (left), then input */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label{
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 80px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Show "E-mail*" via the label pseudo element on the LEFT */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after{
  content: "E-mail*" !important;
  color: #b30000 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Input second */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  order: 2 !important;
  width: 320px !important;
  max-width: 320px !important;
}



/* ============================================================
   v139 — Move label+input block 50px to the RIGHT
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  margin-left: 50px !important;
}



/* ============================================================
   v140 — Move label+input block MORE (100px total)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  margin-left: 100px !important;
}



/* ============================================================
   v141 — Guaranteed move: translate the whole email row to the RIGHT
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  position: relative !important;
  transform: translateX(120px) !important;
}

/* Safety: force label+input too */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  position: relative !important;
  transform: translateX(120px) !important;
}



/* ============================================================
   v142 — Less shift (60px right)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translateX(60px) !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: translateX(60px) !important;
}



/* ============================================================
   v143 — Less shift (30px right)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translateX(30px) !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: translateX(30px) !important;
}



/* ============================================================
   v144 — Shift 10px right
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translateX(10px) !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: translateX(10px) !important;
}



/* ============================================================
   v145 — Shift 20px right
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translateX(20px) !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: translateX(20px) !important;
}



/* ============================================================
   v146 — Shift 30px right
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translateX(30px) !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: translateX(30px) !important;
}



/* ============================================================
   v147 — Move the email row UP 10px (keep 30px right)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translate(30px, -10px) !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: translate(30px, -10px) !important;
}



/* ============================================================
   v148 — Move email row to the RIGHT 10px more (40px right, 10px up)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translate(40px, -10px) !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: translate(40px, -10px) !important;
}



/* ============================================================
   v149 — Push ONLY the "E-mail*" label 10px to the right
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after{
  position: relative !important;
  left: 10px !important;
}



/* ============================================================
   v150 — Move ONLY the "E-mail*" label (not the input)
   - Undo any transforms applied directly to label/input
   - Shift label text 10px right
   ============================================================ */

/* Keep row positioning from parent, but DO NOT move input itself */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: none !important;
}

/* Shift only the label (and its generated text) */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label{
  position: relative !important;
  left: 10px !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after{
  position: relative !important;
  left: 10px !important;
}



/* ============================================================
   v151 — Push ONLY the input to the right (not the label)
   ============================================================ */

/* Keep label fixed */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label{
  left: 10px !important;   /* keep prior label shift */
}

/* Move ONLY the input */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  position: relative !important;
  left: 10px !important;   /* push right */
}



/* ============================================================
   v152 — Push input 10px more (total 20px right)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  left: 10px !important;
}



/* ============================================================
   v153 — Push input 20px more (total 40px right)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  left: 40px !important;
}



/* ============================================================
   v154 — Push input 10px more (total 50px right)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  left: 50px !important;
}



/* ============================================================
   v155 — Move input UP 20px (keep 50px right)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: translateY(-20px) !important;
}



/* ============================================================
   v156 — Move "E-mail*" 20px UP
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after{
  position: relative !important;
  top: -5px !important;
}



/* ============================================================
   v157 — Move "E-mail*" DOWN 10px (net: up 10px)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after{
  top: -5px !important;
}



/* ============================================================
   v158 — Move "E-mail*" DOWN more (top: -5px)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after{
  top: -5px !important;
}



/* ============================================================
   v159 — Move "E-mail*" DOWN more (top: 0px)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after{
  top: 0px !important;
}



/* ============================================================
   v160 — Align "E-mail*" vertically with the input
   ============================================================ */

/* Make the email row a clean flex row (center aligned) */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  display: flex !important;
  align-items: center !important;   /* vertical alignment */
  gap: 10px !important;
}

/* Reset any previous vertical nudges on label */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after{
  top: 0 !important;
  transform: none !important;
}

/* Force label box to match input height and center text */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label{
  display: inline-flex !important;
  align-items: center !important;
  height: 22px !important;          /* match your input height */
  line-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Input: keep your current right/left positioning, but align baseline */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  vertical-align: middle !important;
}



/* ============================================================
   v161 — FIX: remove per-element Y offsets and move the WHOLE row up
   (Your input was moved up alone earlier, causing misalignment.)
   ============================================================ */

/* Kill any old transforms on label/input so they align */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label::after,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  transform: none !important;
  top: auto !important;
}

/* Move the whole row (label+input together) up by 20px
   Keep your current X placement (40px right) and the earlier -10px up => -30px total */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translate(40px, -30px) !important;
  align-items: center !important;
}

/* Keep your separate X shifts (label 10px, input 50px) */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label{
  position: relative !important;
  left: 10px !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  position: relative !important;
  left: 50px !important;
}



/* ============================================================
   v162 — Reduce distance between "E-mail*" and input
   ============================================================ */

/* Reduce flex gap between label and input */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  gap: 2px !important;
}

/* Also reduce extra left offsets slightly (closer together) */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label{
  left: 6px !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email input{
  left: 44px !important;
}



/* ============================================================
   v163 — Move ONLY the label ("E-mail*") towards the input
   (push label right, keep input where it is)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email label{
  left: 10px !important;   /* move label closer to input */
}



/* ============================================================
   v164 — Make the gray box narrower from the RIGHT side
   (reduce overall width + keep left alignment)
   ============================================================ */

/* Gray box = form container in our setup */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main form,
body.pkp_page_login.pkp_op_lostPassword form,
.pkp_structure_main form[action*="requestResetPassword"],
.pkp_structure_main form[action*="resetPassword"],
.pkp_structure_main form[action*="lostPassword"],
.pkp_structure_main form[action*="sendPasswordReset"],
.pkp_structure_main form[action*="user/requestResetPassword"]{
  width: 560px !important;        /* narrower */
  max-width: 560px !important;
  margin-left: 0 !important;      /* anchor to left */
  margin-right: auto !important;
}



/* ============================================================
   v165 — Shift gray box 20px LEFT
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main form,
body.pkp_page_login.pkp_op_lostPassword form,
.pkp_structure_main form[action*="requestResetPassword"],
.pkp_structure_main form[action*="resetPassword"],
.pkp_structure_main form[action*="lostPassword"],
.pkp_structure_main form[action*="sendPasswordReset"],
.pkp_structure_main form[action*="user/requestResetPassword"]{
  position: relative !important;
  left: -20px !important;
}



/* ============================================================
   v166 — Shift gray box UP 20px
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword .pkp_structure_main form,
body.pkp_page_login.pkp_op_lostPassword form,
.pkp_structure_main form[action*="requestResetPassword"],
.pkp_structure_main form[action*="resetPassword"],
.pkp_structure_main form[action*="lostPassword"],
.pkp_structure_main form[action*="sendPasswordReset"],
.pkp_structure_main form[action*="user/requestResetPassword"]{
  top: -5px !important;
}



/* ============================================================
   v167 — Push the email row to the right 10px
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translate(50px, -30px) !important; /* +10px right from 40px */
}



/* ============================================================
   v168 — Email row 10px more right (total +20px from base)
   ============================================================ */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .fields .email{
  transform: translate(60px, -30px) !important;
}



/* ============================================================
   v169 — Make buttons look like the EM example (small blue buttons)
   ============================================================ */

/* Target the buttons area on lostPassword */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .buttons,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .actions,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm td:last-child{
  text-align: center !important;
  padding-top: 12px !important;
}

/* Base style for both buttons */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm button,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm a{
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
  border: 1px solid #6c8ebf !important;
  background: linear-gradient(#ffffff, #dbe9ff) !important;
  color: #003a8c !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15) !important;
  cursor: pointer !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
}

/* Keep them small and inline like EM */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm td:last-child{
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

/* Force Cancel to appear first if it’s an <a> */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm a{
  order: 1 !important;
  text-decoration: none !important;
  display: inline-block !important;
}

/* Submit second */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm input[type="submit"],
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm button[type="submit"]{
  order: 2 !important;
}

/* Hover */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm input[type="submit"]:hover,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm button:hover,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm a:hover{
  border-color: #3d6fb6 !important;
  background: linear-gradient(#ffffff, #cfe2ff) !important;
}


/* =========================================================
   LOST PASSWORD FIX (safe)
   - Align buttons on one row
   - Remove "Register" link
   - Replace "Reset Password" text with "Send Login Details" (without hiding button)
   ========================================================= */

/* align buttons row */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm td:last-child,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .buttons,
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm .actions{
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

/* hide register link (only links that contain "register") */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm a[href*="register"]{
  display: none !important;
}

/* keep cancel link visible (your /ecm/index link) */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm a[href*="/index.php/ecm/index"]{
  display: inline-flex !important;
}

/* Replace submit button label */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm button.submit[type="submit"]{
  position: relative !important;
  color: transparent !important;   /* hide original text (e.g., Reset Password) */
}

/* new label */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm button.submit[type="submit"]::after{
  content: "Send Login Details" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #003a8c !important;
  white-space: nowrap !important;
}

/* Lost Password submit button – gray background */
#lostPasswordForm button.submit[type="submit"]{
  background-color: #e6e6e6 !important;
  border: 1px solid #999 !important;
  color: #003a8c !important;
}

/* hover (optional) */
#lostPasswordForm button.submit[type="submit"]:hover{
  background-color: #dcdcdc !important;
}


/* =========================================================
   ULTRA FORCE: gray background for the lostPassword submit button
   (covers hover/focus/active + stronger selectors)
   ========================================================= */
html body #lostPasswordForm button.submit,
html body #lostPasswordForm button.submit[type="submit"],
html body.pkp_page_login #lostPasswordForm button.submit,
html body.pkp_page_login #lostPasswordForm button.submit[type="submit"],
html body .cmp_form_lost_password #lostPasswordForm button.submit[type="submit"]{
  background: #e6e6e6 !important;
  background-image: none !important;
  border: 1px solid #999 !important;
}

/* keep text visible even if earlier rules made it transparent */
html body #lostPasswordForm button.submit,
html body #lostPasswordForm button.submit[type="submit"]{
  color: #003a8c !important;
}

/* states */
html body #lostPasswordForm button.submit:hover,
html body #lostPasswordForm button.submit:focus,
html body #lostPasswordForm button.submit:active{
  background: #dcdcdc !important;
  background-image: none !important;
  border-color: #888 !important;
}


/* Move the submit button up by 20px (lostPassword only) */
html body #lostPasswordForm button.submit[type="submit"],
html body #lostPasswordForm button.submit{
  position: relative !important;
  top: -5px !important;
}


/* Make submit button text not bold */
html body #lostPasswordForm button.submit,
html body #lostPasswordForm button.submit[type="submit"],
html body #lostPasswordForm button.submit[type="submit"]::after{
  font-weight: 400 !important;
}

/* =========================================================
   SAFETY: kill any leaked "Cancel" pseudo-text from older CSS versions
   (Only targets the old leaking selectors we used before)
   ========================================================= */
body a[href*="user/register"]::after,
body form a[href*="user/register"]::after{
  content: none !important;
}
body form .buttons::before,
body form .buttons::after{
  /* prevent old decorative boxes leaking */
  content: none !OR NOT !important;
}

/* =========================================================
   LOST PASSWORD ONLY – Decorative Cancel beside submit (STRICT)
   ========================================================= */
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm button.submit{
  position: relative !important;
}
body.pkp_page_login.pkp_op_lostPassword #lostPasswordForm button.submit::before{
  content: "Cancel" !important;
  width: 110px !important;
  height: 26px !important;
  display: inline-block !important;
  background: #e6e6e6 !important;
  border: 1px solid #999 !important;
  border-radius: 3px !important;
  color: #003a8c !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -122px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}


/* =========================================================
   ISSUE PAGE – remove PDF galley link on issue TOC page
   Target: <a class="obj_galley_link pdf">PDF</a>
   Applies only on issue pages (/issue/view/*)
   ========================================================= */
body.pkp_page_issue a.obj_galley_link.pdf{
  display: none !important;
}

/* =========================================================
   ISSUE PAGES ONLY (Issue archive + single issue)
   Merged from v214 into v197
   ========================================================= */

/* ===== Issue Archive: shift issues list to the right (final) ===== */
html body.pkp_page_issue_archive,
html body[class*="pkp_page_issue"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page.page_issue_archive { overflow-x: hidden !important; }

.page.page_issue_archive ul.issues_archive {
  margin-left: 750px !important;
  width: calc(100% - 750px) !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 0 !important;
}

/* Issue archive title links styling + thick orange hover underline */
.page.page_issue_archive a.title {
  box-sizing: border-box !important;
  cursor: pointer !important;
  display: inline !important;
  font-family: ElsevierGulliver, Georgia, "Times New Roman", Times, STIXGeneral, "Cambria Math", "Lucida Sans Unicode",
               ElsevierSans, Arial, Helvetica, Roboto, "Microsoft Sans Serif", "Segoe UI Symbol", "Arial Unicode MS", sans-serif !important;
  color: rgb(31, 31, 31) !important;
  text-decoration: none !important;
}

.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
  color: rgb(31, 31, 31) !important;
  text-decoration: underline !important;
  text-decoration-color: orange !important;
  text-decoration-thickness: 3px !important;
}

/* Increase spacing between archive items */
.page.page_issue_archive .obj_issue_summary {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* ===== Single Issue page: label row above title ===== */

/* Remove any built-in access indicator / galley links on issue pages */
body.pkp_page_issue .js-open-access,
body.pkp_page_issue .js-access-indicator,
body.pkp_page_issue .access,
body.pkp_page_issue .access_indicator,
body.pkp_page_issue .access-indicator-yes,
body.pkp_page_issue .obj_article_summary .galleys,
body.pkp_page_issue .obj_article_summary .galleys_links{
  display: none !important;
}

/* Make title container a flex wrap so labels sit above title */
body.pkp_page_issue .obj_article_summary h3.title,
body.pkp_page_issue .toc h3.title{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Title link goes to next line */
body.pkp_page_issue .obj_article_summary h3.title a,
body.pkp_page_issue .toc h3.title a{
  flex-basis: 100% !important;
  order: 2 !important;
  margin-top: 2px !important;
  display: block !important;
}

/* Left label: checkbox + Research article */
body.pkp_page_issue .obj_article_summary h3.title::before,
body.pkp_page_issue .toc h3.title::before{
  content: "□  Research article" !important;
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: normal !important;
  white-space: nowrap !important;
}

/* Right label: green dot + Open access (italic) — moved 2px up */
body.pkp_page_issue .obj_article_summary h3.title::after,
body.pkp_page_issue .toc h3.title::after{
  content: "Open access" !important;
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: italic !important;
  white-space: nowrap !important;

  transform: translateY(-2px) !important; /* shift up 2px */

  padding-left: 12px !important; /* space for dot */
  background-image: radial-gradient(circle, #2e7d32 0 60%, transparent 61%) !important;
  background-repeat: no-repeat !important;
  background-size: 8px 8px !important;   /* slightly bigger green circle */
  background-position: 0 50% !important;
}

/* Ensure no stray pseudo content on the link itself */
body.pkp_page_issue .obj_article_summary h3.title a::after,
body.pkp_page_issue .toc h3.title a::after,
body.pkp_page_issue .obj_article_summary h3.title a::before,
body.pkp_page_issue .toc h3.title a::before{
  content: none !important;
  display: none !important;
}


/* ===== MERGED FROM v221 (Issue page styling baseline) ===== */
body.pkp_page_issue_archive,
html body[class*="pkp_page_issue"] {
    padding-left: 0 !important;   /* rollback previous body padding */
    padding-right: 0 !important;
}
body.pkp_page_issue_archive .pkp_structure_main { 
    padding-left: 0 !important;   /* ensure no inherited padding */
}
body.pkp_page_issue_archive .pkp_structure_main > .page,
body.pkp_page_issue_archive .pkp_structure_main > .pkp_page_content,
body.pkp_page_issue_archive .pkp_structure_main > .content,
body.pkp_page_issue_archive main.pkp_structure_main > .page {
    margin-left: 180px !important;   /* visible shift without adding outer white space */
    margin-right: 40px !important;
    box-sizing: border-box !important;
}
body.pkp_page_issue_archive .pkp_structure_main > .page * {
    padding-left: 0 !important;
}
body.pkp_page_issue_archive .pkp_structure_main,
body.pkp_page_issue_archive .pkp_structure_content,
body.pkp_page_issue_archive #main-content,
body.pkp_page_issue_archive .page {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.pkp_page_issue_archive .pkp_structure_main > .page,
body.pkp_page_issue_archive .pkp_structure_main > .pkp_page_content,
body.pkp_page_issue_archive .pkp_structure_main > .content,
body.pkp_page_issue_archive main.pkp_structure_main > .page {
    margin-left: 200px !important;   /* move 200px to the right */
    margin-right: 40px !important;
    box-sizing: border-box !important;
}
body.pkp_page_issue_archive {
    overflow-x: hidden !important;
}
body.pkp_page_issue_archive .pkp_structure_main,
body.pkp_page_issue_archive .pkp_structure_content,
body.pkp_page_issue_archive #main-content,
body.pkp_page_issue_archive .page,
body.pkp_page_issue_archive .pkp_page_index {
    margin-left: 0 !important;      /* neutralize global negative margins */
    padding-left: 0 !important;
    transform: translateX(600px) !important;   /* force visible shift */
}
body.pkp_page_issue_archive ul.issues_archive {
    position: relative !important;
    left: 200px !important;      /* shift block horizontally */
    width: calc(100% - 200px) !important;  /* keep it fitting in page */
    box-sizing: border-box !important;
}
body.pkp_page_issue_archive {
    overflow-x: hidden !important;
}
body.pkp_page_issue::before {
  content: "";
  display: block;
  position: relative;
  top: 15px;                /* space below navbar */
  left: 0;                  /* align to left edge */
  width: 260px;             /* image width */
  height: 180px;            /* image height */
  background-image: url('https://i.imgur.com/VTOvt0b.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  margin-bottom: -3px;      /* space below the image */
}
body.pkp_page_issue .pkp_navigation_primary_wrapper { position: relative !important; z-index: 10 !important; }
body.pkp_page_issue .pkp_structure_main { position: relative !important; z-index: 1 !important; }
body.pkp_page_issue .pkp_structure_main::before {
  content: "";
  display: block;
  height: 180px;                 /* image height */
  background-image: url('https://i.imgur.com/VTOvt0b.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 20px 0;   /* 20px from the left edge */
  margin-top: 15px;              /* gap below navbar */
  margin-bottom: -3px;           /* space after the image */
  pointer-events: none;
}
body.pkp_page_issue #main-content::before,
body.pkp_page_issue .page::before {
  content: "";
  display: block;
  height: 0;                     /* default to zero so it doesn't duplicate */
  background: none;
}
body.pkp_page_issue .pkp_structure_main:empty::before {
    height: 0 !important;
  }
body.pkp_page_issue #main-content::before {
    height: 180px !important;
    background-image: url('https://i.imgur.com/VTOvt0b.png') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: 20px 0 !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue .pkp_structure_content,
body.pkp_page_issue #main-content,
body.pkp_page_issue .page {
  overflow: visible !important;
}
body.pkp_page_issue header#headerNavigationContainer,
body.pkp_page_issue .pkp_navigation_primary_wrapper {
  z-index: 20 !important;
  position: relative !important;
}
body.pkp_page_issue header#headerNavigationContainer,
body.pkp_page_issue .pkp_navigation_primary_wrapper { position: relative !important; z-index: 20 !important; }
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue .pkp_structure_content,
body.pkp_page_issue #main-content,
body.pkp_page_issue .page,
body.pkp_page_issue .page_issue {
  overflow: visible !important;
}
body.pkp_page_issue .page_issue::before,
body.pkp_page_issue #main-content::before,
body.pkp_page_issue .pkp_structure_main::before,
body.pkp_page_issue .page::before {
  content: "" !important;
  display: block !important;
  height: 200px !important;                         /* visible spacer for image */
  background-image: url('https://i.imgur.com/VTOvt0b.png') !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: 20px 0 !important;           /* align left with a small inset */
  margin-top: 16px !important;                      /* space below navbar */
  margin-bottom: 16px !important;                   /* space after image */
  pointer-events: none !important;
}
body.pkp_page_issue .page_issue + #main-content::before,
  body.pkp_page_issue .page_issue + .page::before {
    height: 0 !important;
    background: none !important;
    margin: 0 !important;
  }
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue .pkp_structure_content,
body.pkp_page_issue #main-content,
body.pkp_page_issue .page,
body.pkp_page_issue .page_issue {
  margin-left: max(0px, var(--issue-left-reset, 0px)) !important;
  margin-right: max(0px, var(--issue-right-reset, 0px)) !important;
}
body.pkp_page_issue .page_issue::before,
  body.pkp_page_issue #main-content::before,
  body.pkp_page_issue .pkp_structure_main::before,
  body.pkp_page_issue .page::before {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
body.pkp_page_issue .page_issue::before,
body.pkp_page_issue #main-content::before,
body.pkp_page_issue .pkp_structure_main::before,
body.pkp_page_issue .page::before {
  height: 120px !important;                   /* smaller height */
  background-size: 120px auto !important;     /* smaller image size */
  background-position: 20px 0 !important;     /* keep aligned left */
  margin-top: 10px !important;                /* smaller spacing */
  margin-bottom: 10px !important;
}
body.pkp_page_issue .page_issue::before,
body.pkp_page_issue #main-content::before,
body.pkp_page_issue .pkp_structure_main::before,
body.pkp_page_issue .page::before {
  height: 150px !important;                   /* medium height */
  background-size: 150px auto !important;     /* medium image size */
  background-position: 20px 0 !important;     /* aligned left */
  margin-top: 12px !important;                /* balanced spacing */
  margin-bottom: 12px !important;
}
body.pkp_page_issue h1 {
  display: none !important;
}
body.pkp_page_issue a.title {
  display: block;
  margin-left: 0 !important;        /* removes default left margin */
  text-align: left !important;      /* ensure text is aligned left */
  padding-left: 10px !important;    /* small spacing from left edge */
}
body.pkp_page_issue ul.issues_archive {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
body.pkp_page_issue ul.issues_archive li {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: translateX(-20px); /* nudge 20px to the left */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title {
  display: inline-block !important;
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}
body.pkp_page_issue .page,
body.pkp_page_issue #main-content,
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue .pkp_structure_content {
  text-align: initial !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-70px) !important; /* total left shift */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-120px) !important; /* extreme left shift */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-180px) !important; /* extreme left shift */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-250px) !important; /* ultra left shift */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translateX(-320px) !important; /* super left shift */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -40px) !important; /* same left, now 40px up */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -90px) !important; /* same left, now 90px up */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -150px) !important; /* same left, now 150px up */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -220px) !important; /* same left, now 220px up */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-320px, -170px) !important; /* same left, now 170px up */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  transform: translate(-280px, -170px) !important; /* 40px right, same vertical position */
}
body.pkp_page_issue ul.issues_archive li,
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: none !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2,
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}
body.pkp_page_issue ul.issues_archive li {
  border-bottom: 1px solid #ddd !important;
  box-shadow: none !important;
}
body.pkp_page_issue ul.issues_archive li {
  position: relative !important;
}
body.pkp_page_issue ul.issues_archive li::after {
  content: "";
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -8px !important; /* move line up relative to item */
  border-bottom: 1px solid #ddd !important;
  pointer-events: none !important;
}
body.pkp_page_issue ul.issues_archive li {
  border-bottom: none !important; /* remove default line so only moved one shows */
}
body.pkp_page_issue ul.issues_archive li::after {
  top: -5px !important; /* move line further up */
}
body.pkp_page_issue ul.issues_archive li::after {
  top: -35px !important; /* move line further up */
}
body.pkp_page_issue ul.issues_archive li::after {
  top: -80px !important; /* extreme upward shift */
}
body.pkp_page_issue ul.issues_archive li::after {
  top: -140px !important; /* ultra upward shift */
}
body.pkp_page_issue ul.issues_archive li::after {
  top: -400px !important; /* super ultra upward shift */
}
body.pkp_page_issue ul.issues_archive li::after {
  top: -300px !important; /* mega upward shift */
}
body.pkp_page_issue ul.issues_archive li::after {
  left: -100px !important; /* shift line to the left */
  right: auto !important;
  width: calc(100% + 100px) !important; /* extend to fill the gap if needed */
}
body.pkp_page_issue ul.issues_archive li,
body.pkp_page_issue ul.issues_archive li::after,
body.pkp_page_issue ul.issues_archive,
body.pkp_page_issue .obj_issue_summary {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: none !important;
  content: none !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  position: relative !important;
  padding-bottom: 10px !important;
  margin-bottom: 15px !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: #bcbcbc !important; /* light gray line */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  bottom: -6px !important; /* move line a bit lower */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  bottom: -14px !important; /* move line further down */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: 5px !important;  /* reduce gap between issue blocks */
  padding-bottom: 0 !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: 6px !important;  /* tighter spacing below title */
  padding-bottom: 4px !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: 0 !important;   /* minimal gap between issue blocks */
  padding-bottom: 0 !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: 2px !important;  /* minimal space below title */
  padding-bottom: 2px !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: -5px !important;  /* overlapping minimal spacing */
  padding-bottom: 0 !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: 0 !important;  /* no space between titles */
  padding-bottom: 0 !important;
  line-height: 1 !important;     /* tighter text spacing */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: -10px !important;  /* overlap further */
  padding-bottom: 0 !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0.9 !important; /* extra-tight spacing */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary {
  margin-bottom: -18px !important;  /* increased overlap */
  padding-bottom: 0 !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 {
  margin-bottom: -4px !important;  /* tighter overlap between titles */
  padding-bottom: 0 !important;
  line-height: 0.85 !important; /* extremely tight text spacing */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title {
  position: relative !important;
  display: inline-block !important;
  text-decoration: none !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -6px !important;
  width: 0 !important;
  height: 3px !important;
  background-color: orange !important;
  transition: width 0.3s ease-in-out !important;
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2 a.title:hover::after {
  width: 100% !important; /* underline appears smoothly on hover */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  content: "" !important;
  position: absolute !important;
  top: -15px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: #bcbcbc !important; /* light gray line */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -40px !important; /* moved higher above first issue */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -400px !important; /* moved much higher above first issue */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -400px !important; /* extreme upward shift */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -160px !important; /* moved a bit lower than before */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -100px !important; /* shift line to the left */
  width: calc(100% + 100px) !important; /* extend to maintain width */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -180px !important; /* more left shift */
  width: calc(100% + 180px) !important; /* extend width to match */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -260px !important; /* super left shift */
  width: calc(100% + 260px) !important; /* extend width to fill space */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -300px !important; /* ultra left shift */
  width: calc(100% + 300px) !important; /* extend width accordingly */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -250px !important; /* reduced left shift */
  width: calc(100% + 250px) !important; /* adjust width accordingly */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  left: -280px !important; /* moved slightly more left */
  width: calc(100% + 280px) !important; /* adjust width accordingly */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  top: -180px !important; /* moved slightly higher */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 85% !important; /* shorten line length */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 90% !important; /* shorten line slightly less for better proportion */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 95% !important; /* slightly longer line */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 100% !important; /* full width line */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 150% !important; /* extended beyond container width */
}
body.pkp_page_issue ul.issues_archive li:first-child::before {
  width: 140% !important; /* extend slightly less than 150% */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  width: 120% !important; /* make the line longer */
  right: -20% !important; /* extend beyond the title area */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  width: 140% !important; /* make the line even longer */
  right: -40% !important; /* extend further beyond the title area */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  width: 145% !important; /* slightly longer line */
  right: -45% !important; /* extend further beyond title area */
}
body.pkp_page_issue ul.issues_archive .obj_issue_summary h2::after {
  width: 147% !important; /* make the line slightly longer */
  right: -47% !important; /* extend a bit more beyond the title area */
}
body.pkp_page_issue a.obj_galley_link.pdf{
  display: none !important;
}
body.pkp_page_issue div.page.page_issue::before,
body.pkp_page_issue .page.page_issue::before,
body.pkp_page_issue .page_issue::before{
  content: none !important;
  background: none !important;
  background-image: none !important;
  display: none !important;
}
body.pkp_page_issue .obj_article_summary .title,
body.pkp_page_issue .obj_article_summary .title a,
body.pkp_page_issue .obj_article_summary h3.title,
body.pkp_page_issue .obj_article_summary h3.title a,
body.pkp_page_issue .toc .title a,
body.pkp_page_issue .toc .title{
  box-sizing: border-box !important;
  color: rgb(31, 31, 31) !important;
  cursor: pointer !important;
  display: inline !important;

  font-family: ElsevierGulliver, Georgia, "Times New Roman", Times, STIXGeneral, "Cambria Math",
               "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", "Arial Unicode MS",
               serif, sans-serif !important;
  font-size: 19.2px !important;
  font-variant-numeric: lining-nums !important;
  font-weight: 400 !important;
  height: auto !important;
  line-height: 29.2px !important;

  list-style-image: none !important;
  list-style-position: outside !important;
  list-style-type: none !important;

  margin: 0 !important;
  padding: 0 !important;

  text-size-adjust: 100% !important;
  width: auto !important;
  -webkit-font-smoothing: antialiased !important;
}
body.pkp_page_issue .obj_article_summary .title a:hover,
body.pkp_page_issue .toc .title a:hover{
  text-decoration: underline !important;
}
body.pkp_page_issue .obj_article_summary .title a:hover,
body.pkp_page_issue .toc .title a:hover{
  text-decoration-line: underline !important;
  text-decoration-color: orange !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 3px !important;
}
body.pkp_page_issue .obj_article_summary .title a::before,
body.pkp_page_issue .toc .title a::before{
  content: "Research article  Open access" !important;
  position: absolute !important;
  left: 0 !important;
  top: -10px !important;
  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: italic !important;
  white-space: nowrap !important;
}
body.pkp_page_issue .obj_article_summary .title a::after,
body.pkp_page_issue .toc .title a::after{
  content: "" !important;
  position: absolute !important;
  top: -5px !important;
  left: 104px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #2e7d32 !important;
}
body.pkp_page_issue .obj_article_summary .title a,
body.pkp_page_issue .toc .title a{
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  position: relative !important;
  padding-top: 0 !important; /* cancel old padding-based approach */
}
body.pkp_page_issue .obj_article_summary .title a::before,
body.pkp_page_issue .toc .title a::before{
  content: "Research article  🟢  Open access" !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 6px !important;

  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: normal !important;
  white-space: nowrap !important;
}
body.pkp_page_issue .obj_article_summary .title a::after,
body.pkp_page_issue .toc .title a::after{
  content: none !important;
  display: none !important;
}
body.pkp_page_issue .obj_article_summary .title a::before,
body.pkp_page_issue .toc .title a::before{
  /* text */
  content: "Research article    Open access" !important;
  font-size: 11px !important;          /* slightly bigger */
  line-height: 16px !important;

  /* green dot as background circle (stays green) */
  background-image: radial-gradient(circle, #2e7d32 0 55%, transparent 56%) !important;
  background-repeat: no-repeat !important;
  background-size: 7px 7px !important;  /* slightly bigger dot */
  /* position between the two phrases (tuned for this exact text) */
  background-position: 15.9ch 50% !important;
  padding-right: 0 !important;
}
body.pkp_page_issue .obj_article_summary .title,
body.pkp_page_issue .toc .title{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}
body.pkp_page_issue .obj_article_summary .title a,
body.pkp_page_issue .toc .title a{
  flex-basis: 100% !important;
  order: 2 !important;
}
body.pkp_page_issue .obj_article_summary .title::before,
body.pkp_page_issue .toc .title::before{
  content: "Research article" !important;
  order: 1 !important;
  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
}
body.pkp_page_issue .obj_article_summary .title::after,
body.pkp_page_issue .toc .title::after{
  content: "Open access" !important;
  order: 1 !important;

  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: italic !important;

  /* green dot */
  padding-left: 12px !important;
  background-image: radial-gradient(circle, #2e7d32 0 55%, transparent 56%) !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px !important;
  background-position: 0 50% !important;
}
body.pkp_page_issue .obj_article_summary .title a::before,
body.pkp_page_issue .toc .title a::before,
body.pkp_page_issue .obj_article_summary .title a::after,
body.pkp_page_issue .toc .title a::after{
  content: none !important;
  display: none !important;
}
body.pkp_page_issue .obj_article_summary .title a,
body.pkp_page_issue .toc .title a{
  margin-top: 6px !important;
}
body.pkp_page_issue .obj_article_summary .title::after,
body.pkp_page_issue .toc .title::after,
body.pkp_page_issue .obj_article_summary .title a::before,
body.pkp_page_issue .toc .title a::before,
body.pkp_page_issue .obj_article_summary .title a::after,
body.pkp_page_issue .toc .title a::after{
  content: none !important;
  background: none !important;
  display: none !important;
}
body.pkp_page_issue .obj_article_summary .title,
body.pkp_page_issue .toc .title{
  display: block !important;
  position: relative !important;
}
body.pkp_page_issue .obj_article_summary .title::before,
body.pkp_page_issue .toc .title::before{
  content: "Research article    Open access" !important;
  display: inline-block !important;
  margin-bottom: 6px !important;

  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: normal !important;
  white-space: nowrap !important;

  /* green dot between the two phrases */
  background-image: radial-gradient(circle, #2e7d32 0 55%, transparent 56%) !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px !important;
  background-position: 15.9ch 50% !important;
  padding-left: 0 !important;
}
body.pkp_page_issue .obj_article_summary .title a,
body.pkp_page_issue .toc .title a{
  display: block !important;
  margin-top: 4px !important;
}
body.pkp_page_issue .obj_article_summary .title::before,
body.pkp_page_issue .toc .title::before{
  content: none !important;
  background: none !important;
}
body.pkp_page_issue .obj_article_summary .title,
body.pkp_page_issue .toc .title{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}
body.pkp_page_issue .obj_article_summary .title a,
body.pkp_page_issue .toc .title a{
  flex-basis: 100% !important;
  order: 2 !important;
  margin-top: 2px !important;
  display: block !important;
}
body.pkp_page_issue .obj_article_summary .title::before,
body.pkp_page_issue .toc .title::before{
  content: "□  Research article" !important;
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;

  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: normal !important;
  white-space: nowrap !important;
}
body.pkp_page_issue .obj_article_summary .title::after,
body.pkp_page_issue .toc .title::after{
  content: "Open access" !important;
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;

  position: relative !important;
  top: -2px !important;

  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: italic !important;
  white-space: nowrap !important;

  padding-left: 12px !important; /* space for dot */
  background-image: radial-gradient(circle, #2e7d32 0 55%, transparent 56%) !important;
  background-repeat: no-repeat !important;
  background-size: 7px 7px !important;
  background-position: 0 50% !important;
}
body.pkp_page_issue .obj_article_summary .title a::after,
body.pkp_page_issue .toc .title a::after,
body.pkp_page_issue .obj_article_summary .title a::before,
body.pkp_page_issue .toc .title a::before{
  content: none !important;
  display: none !important;
}
body.pkp_page_issue .js-open-access,
body.pkp_page_issue .js-access-indicator,
body.pkp_page_issue .access,
body.pkp_page_issue .access_indicator,
body.pkp_page_issue .access-indicator-yes,
body.pkp_page_issue .obj_article_summary .galleys,
body.pkp_page_issue .obj_article_summary .galleys_links{
  display: none !important;
}
body.pkp_page_issue .obj_article_summary h3.title,
body.pkp_page_issue .toc h3.title{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}
body.pkp_page_issue .obj_article_summary h3.title a,
body.pkp_page_issue .toc h3.title a{
  flex-basis: 100% !important;
  order: 2 !important;
  margin-top: 2px !important;
  display: block !important;
}
body.pkp_page_issue .obj_article_summary h3.title::before,
body.pkp_page_issue .toc h3.title::before{
  content: "Research article" !important;
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  white-space: nowrap !important;

  /* Bigger checkbox rectangle (issue pages only) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><rect x='1' y='1' width='14' height='14' fill='none' stroke='rgb(31,31,31)' stroke-width='1.2'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  background-position: left center !important;
  padding-left: 22px !important;
}
body.pkp_page_issue .obj_article_summary h3.title::after,
body.pkp_page_issue .toc h3.title::after{
  content: "Open access" !important;
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: rgb(31, 31, 31) !important;
  font-style: italic !important;
  white-space: nowrap !important;

  padding-left: 12px !important;
  background-image: radial-gradient(circle, #2e7d32 0 55%, transparent 56%) !important;
  background-repeat: no-repeat !important;
  background-size: 7px 7px !important;
  background-position: 0 50% !important;
}
body.pkp_page_issue .obj_article_summary{
  margin-left: 300px !important;
  margin-bottom: 20px !important;
}



/* ================= ARCHIVE PAGE RESTORE (from v196) ================= */
/* ===== CLEANUP: remove BODY padding that created extra white space ===== */
html body.pkp_page_issue_archive {
    padding-left: 0 !important;   /* rollback previous body padding */
    padding-right: 0 !important;
}

/* Shift ONLY the main content block to the right (no extra gutter on the left) */
body.pkp_page_issue_archive .pkp_structure_main { 
    padding-left: 0 !important;   /* ensure no inherited padding */
}

body.pkp_page_issue_archive .pkp_structure_main > .page,
body.pkp_page_issue_archive .pkp_structure_main > .pkp_page_content,
body.pkp_page_issue_archive .pkp_structure_main > .content,
body.pkp_page_issue_archive main.pkp_structure_main > .page {
    margin-left: 180px !important;   /* visible shift without adding outer white space */
    margin-right: 40px !important;
    box-sizing: border-box !important;
}

/* Keep inner elements from re-introducing offsets */
body.pkp_page_issue_archive .pkp_structure_main > .page * {
    padding-left: 0 !important;
}

/* Safety: no negative outer margins anywhere on archive */
body.pkp_page_issue_archive .pkp_structure_main,
body.pkp_page_issue_archive .pkp_structure_content,
body.pkp_page_issue_archive #main-content,
body.pkp_page_issue_archive .page {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ===== FINAL ALIGNMENT: move main content 200px to the right ===== */
body.pkp_page_issue_archive .pkp_structure_main > .page,
body.pkp_page_issue_archive .pkp_structure_main > .pkp_page_content,
body.pkp_page_issue_archive .pkp_structure_main > .content,
body.pkp_page_issue_archive main.pkp_structure_main > .page {
    margin-left: 200px !important;   /* move 200px to the right */
    margin-right: 40px !important;
    box-sizing: border-box !important;
}

/* ===== TRANSFORM OVERRIDE: shift archive content exactly 200px to the right ===== */
body.pkp_page_issue_archive {
    overflow-x: hidden !important;
}

body.pkp_page_issue_archive .pkp_structure_main,
body.pkp_page_issue_archive .pkp_structure_content,
body.pkp_page_issue_archive #main-content,
body.pkp_page_issue_archive .page,
body.pkp_page_issue_archive .pkp_page_index {
    margin-left: 0 !important;      /* neutralize global negative margins */
    padding-left: 0 !important;
    transform: translateX(600px) !important;   /* force visible shift */
}

/* ===== END TRANSFORM OVERRIDE ===== */



/* === TARGETED FIX: Move the <ul class="issues_archive"> block 200px right === */
body.pkp_page_issue_archive ul.issues_archive {
    position: relative !important;
    left: 200px !important;      /* shift block horizontally */
    width: calc(100% - 200px) !important;  /* keep it fitting in page */
    box-sizing: border-box !important;
}

/* Prevent any horizontal scrollbar */
body.pkp_page_issue_archive {
    overflow-x: hidden !important;
}

/* === SPECIFIC FIX (matches <div class="page page_issue_archive"> … <ul class="issues_archive">) === */
/* Reset earlier transforms/margins that may fight this on archive page containers */
.page.page_issue_archive .pkp_structure_main,
.page.page_issue_archive .pkp_structure_content,
.page.page_issue_archive #main-content,
.page.page_issue_archive .page {
    transform: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Shift only the issues list 200px to the right */
.page.page_issue_archive ul.issues_archive {
    margin-left: 200px !important;           /* primary shift */
    width: calc(100% - 200px) !important;    /* keep layout within viewport */
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;                      /* neutralize any earlier 'left' shift */
}

/* Prevent horizontal scroll bars */
.page.page_issue_archive { overflow-x: hidden !important; }

/* === ENHANCED SHIFT: Move issues list 300px to the right === */
.page.page_issue_archive ul.issues_archive {
    margin-left: 300px !important;           /* stronger shift */
    width: calc(100% - 300px) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
}

/* === EXTREME SHIFT: Move issues list 450px to the right === */
.page.page_issue_archive ul.issues_archive {
    margin-left: 450px !important;           /* move further right */
    width: calc(100% - 450px) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
}

/* === ULTRA SHIFT: Move issues list 750px to the right === */
.page.page_issue_archive ul.issues_archive {
    margin-left: 750px !important;           /* move further right */
    width: calc(100% - 750px) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
}

/* === STYLE FIX for issue titles like "2025 — Volumes 5" === */
.page.page_issue_archive a.title {
    display: block !important;
    font-family: "Lato", sans-serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #0056a6 !important;        /* blue tone like your image */
    text-align: center !important;
    text-decoration: none !important;
    margin: 15px 0 !important;
    padding: 12px 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background-color: #f8f9fa !important;
    transition: all 0.3s ease-in-out !important;
}

/* Hover animation: subtle shadow and color change */
.page.page_issue_archive a.title:hover {
    background-color: #0056a6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}

/* === EXACT STYLE OVERRIDE for issue title links to match DevTools dump === */
.page.page_issue_archive a.title {
    /* Typography per your computed styles */
    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode", "Microsoft Sans Serif", "Segoe UI Symbol", STIXGeneral, "Cambria Math", "Arial Unicode MS", sans-serif !important;
    font-weight: 400 !important;
    font-size: 19.2px !important;
    line-height: 27.2px !important;
    color: rgb(0, 103, 152) !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-align: left !important;
    -webkit-font-smoothing: antialiased !important;

    /* Box model reset (remove previous button/card styling) */
    display: inline !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    /* Behavior */
    cursor: pointer !important;
    text-decoration: none !important;  /* as per dump (none); we’ll add underline only on hover/focus */
}

/* Hover/focus state to mimic native link emphasis */
.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
    text-decoration: underline !important;
    color: rgb(0, 103, 152) !important; /* keep same brand blue */
}

/* Ensure link inside summary container doesn’t inherit conflicting styles */
.page.page_issue_archive .obj_issue_summary h2,
.page.page_issue_archive .obj_issue_summary h2 .title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

/* Optional: spacing below each row stays subtle like in screenshot */
.page.page_issue_archive .obj_issue_summary {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

31)) === */
.page.page_issue_archive a.title {
    color: rgb(31, 31, 31) !important;
}

.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
    color: rgb(31, 31, 31) !important;
    text-decoration: underline !important;
}

/* === ORANGE UNDERLINE ON HOVER === */
.page.page_issue_archive a.title {
    color: rgb(31, 31, 31) !important;
    text-decoration: none !important;
}

.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
    color: rgb(31, 31, 31) !important; /* keep text dark gray */
    text-decoration: underline !important;
    text-decoration-color: orange !important; /* underline turns orange */
}

/* === ORANGE UNDERLINE ON HOVER (THICKER LINE) === */
.page.page_issue_archive a.title {
    color: rgb(31, 31, 31) !important;
    text-decoration: none !important;
}

.page.page_issue_archive a.title:hover,
.page.page_issue_archive a.title:focus {
    color: rgb(31, 31, 31) !important; /* keep text dark gray */
    text-decoration: underline !important;
    text-decoration-color: orange !important; /* underline turns orange */
    text-decoration-thickness: 3px !important; /* thicker line */
}

/* === REDUCE VERTICAL SPACING BETWEEN ISSUE TITLES === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page.page_issue_archive a.title {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important; /* tighter vertical spacing */
}

/* === EXTRA COMPACT ISSUE TITLE SPACING === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page.page_issue_archive a.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.1 !important; /* very compact */
}

/* === ULTRA COMPACT ISSUE TITLE SPACING === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -2px !important;
    margin-bottom: -2px !important;
}

.page.page_issue_archive a.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.0 !important; /* ultra tight */
}

/* === EXTREME COMPACT ISSUE TITLE SPACING === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -6px !important;
    margin-bottom: -6px !important;
}

.page.page_issue_archive a.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0.9 !important; /* extremely tight line spacing */
}

/* === SUPER EXTREME COMPACT ISSUE TITLE SPACING === */
.page.page_issue_archive .obj_issue_summary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -5px !important;
    margin-bottom: -10px !important;
}

.page.page_issue_archive a.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0.85 !important; /* ultra tight */
}

.page_issue_archive li,
.page_issue_archive li::after,
.page_issue_archive li::before {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* Keep text alignment and spacing intact */
.page_issue_archive .obj_issue_summary {
    padding: 0 !important;
    margin: 0 !important;
}

/* === PUSH ISSUE TITLES UP === */
.page.page_issue_archive .obj_issue_summary {
    margin-top: -15px !important; /* pushes the text upward */
    padding-top: 0 !important;
}

.page.page_issue_archive a.title {
    line-height: 1.0 !important; /* keeps compact spacing */
}

/* === PUSH THE DESCRIPTION LINE DOWN (LESS) === */
.page.page_issue_archive .obj_issue_summary .description {
    margin-top: 10px !important; /* smaller downward offset */
    padding-top: 5px !important;
}

/* === MOVE THE LIGHT GRAY SEPARATOR LINE DIRECTLY UNDER TITLE === */
.page.page_issue_archive .obj_issue_summary {
    border-bottom: 2px solid #d3d3d3 !important;
    padding-bottom: 0 !important;
    margin-bottom: -12px !important; /* pushes the line tightly under title */
}
/* ================= END ARCHIVE PAGE RESTORE ================= */



/* ============================================================
   ISSUE PAGES ONLY (DO NOT AFFECT ARCHIVE)
   Bundle rebuilt v300 (image + H1 + date + extra images + headings)
   ============================================================ */

/* ---------- MAIN ISSUE TOP IMAGE (no crop, original size) ---------- */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .pkp_structure_content::before {
    content: url('https://i.imgur.com/PkaTAVd.png') !important;
    display: block !important;
    margin: 0 auto 25px auto !important;
    margin-left: 350px !important;   /* right shift */
      margin-top: -400px !important; /* moved up 50px more */
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Never show the top image on archive */
body.pkp_page_issue_archive .pkp_structure_content::before,
body[class*="archive"] .pkp_structure_content::before {
    content: none !important;
    display: none !important;
}

/* ---------- ISSUE TITLE H1 (ScienceDirect style) ---------- */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) h1 {
    box-sizing: border-box !important;
    color: rgb(31, 31, 31) !important;
    display: block !important;
    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode",
                 "Microsoft Sans Serif", "Segoe UI Symbol",
                 STIXGeneral, "Cambria Math", "Arial Unicode MS", sans-serif !important;
    font-size: 32px !important;
    font-variant-numeric: lining-nums !important;
    font-weight: 100 !important;
    height: 40px !important;
    line-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-size-adjust: 100% !important;
    unicode-bidi: isolate !important;
    width: 467.328px !important;
    -webkit-font-smoothing: antialiased !important;

    /* position */
    position: absolute !important;
    top: -300px !important;
    left: 30px !important;
    z-index: 10 !important;
}

/* Hard hide H1 on archive */
body.pkp_page_issue_archive h1,
body[class*="archive"] h1 {
    display: none !important;
    visibility: hidden !important;
}

/* ---------- HIDE "Published:" LABEL ONLY ---------- */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) span.label {
    display: none !important;
    visibility: hidden !important;
}

/* ---------- PUBLISHED DATE VALUE (ScienceDirect style + position) ---------- */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) span.value {
    box-sizing: border-box !important;
    color: rgb(31, 31, 31) !important;
    display: block !important;
    font-family: ElsevierSans, Arial, Helvetica, Roboto, "Lucida Sans Unicode",
                 "Microsoft Sans Serif", "Segoe UI Symbol",
                 STIXGeneral, "Cambria Math", "Arial Unicode MS", sans-serif !important;
    font-size: 16px !important;
    font-variant-numeric: lining-nums !important;
    font-weight: 400 !important;
    height: 24px !important;
    line-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-size-adjust: 100% !important;
    unicode-bidi: isolate !important;
    width: 467.328px !important;
    -webkit-font-smoothing: antialiased !important;

    position: relative !important;
    top: -280px !important;   /* up */
    left: -12px !important;   /* left */
}

/* ---------- IMAGE UNDER DATE ---------- */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) span.value::after {
    content: url('https://i.imgur.com/kXqSL8o.png');
    display: block;
    margin-top: 10px;
    width: auto;
    height: auto;
    max-width: 100%;
    cursor: pointer !important; /* clickable feel without hover */
}

/* Never show date-under-image on archive */
body.pkp_page_issue_archive span.value::after,
body[class*="archive"] span.value::after {
    content: none !important;
    display: none !important;
}

/* ---------- IMAGE ABOVE FIRST ARTICLE ONLY ---------- */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .cmp_article_list > li:first-child::before,
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .cmp_article_list > .article_summary:first-child::before,
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .article_summary:first-of-type::before {
    content: url('https://i.imgur.com/7JPyq5G.png');
    display: block;
    margin: 10px 0 14px 0;
    margin-left: 275px !important;   /* right shift */
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Never show first-article image on archive */
body.pkp_page_issue_archive .obj_issue_toc .cmp_article_list > li:first-child::before,
body.pkp_page_issue_archive .obj_issue_toc .article_summary:first-of-type::before,
body[class*="archive"] .obj_issue_toc .cmp_article_list > li:first-child::before,
body[class*="archive"] .obj_issue_toc .article_summary:first-of-type::before {
    content: none !important;
    display: none !important;
}

/* ---------- REMOVE "Research Articles" HEADING (H2) ON ISSUE ONLY ---------- */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) h2 {
    display: none !important;
    visibility: hidden !important;
}



/* === ISSUE PAGE: remove the horizontal line (div.section::before) === */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .section::before {
    content: none !important;
    display: none !important;
}

/* Fallback: if line is a border on the section */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .section {
    border-top: 0 !important;
}



/* === ISSUE PAGE: move articles list UP 100px === */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .cmp_article_list,
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .cmp_article_list_articles {
    position: relative !important;
    top: -100px !important;
}



/* === ISSUE PAGE: move articles list RIGHT 25px (keep up 100px) === */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .cmp_article_list,
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .cmp_article_list_articles {
    left: 25px !important;
}



/* === ISSUE PAGE: move articles list RIGHT total 40px (25+15) === */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .cmp_article_list,
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .obj_issue_toc .cmp_article_list_articles {
    left: 40px !important;
}


/* ============================================================
   SHOW + CENTER "Make a New Submission" MENU ITEM (if present)
   ============================================================ */
li.new_submission{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

li.new_submission a{
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-align: center !important;
}


/* ============================================================
   REGISTER: HIDE "Thanks for registering! What would you like to do next?"
   (OJS doesn't add a unique class to that <p>, so we target the first
   paragraph in the register-op page content area.)
   ============================================================ */
body.pkp_page_user.pkp_op_register .page_content > p:first-of-type,
body.pkp_page_user.pkp_op_register #main-content > p:first-of-type,
body.pkp_page_user.pkp_op_register .pkp_structure_main > p:first-of-type{
  display: none !important;
}


/* ============================================================
   STRONGER HIDE for the post-registration message block
   ("Thanks for registering! What would you like to do next?")
   OJS typically renders it inside a notification/message wrapper.
   ============================================================ */
body.pkp_page_user.pkp_op_register .cmp_notification,
body.pkp_page_user.pkp_op_register .pkp_notification,
body.pkp_page_user.pkp_op_register .cmp_notification p,
body.pkp_page_user.pkp_op_register .pkp_notification p,
body.pkp_page_user.pkp_op_register .message,
body.pkp_page_user.pkp_op_register .message p,
body.pkp_page_user.pkp_op_register .pkp_page_content > p{
  /* keep scoped to register op only */
  display: none !important;
}


/* ============================================================
   MOST PRECISE (structure-based) hide:
   Hide the <p> that sits right before the action list that contains
   li.new_submission (post-registration "what next" screen).
   Uses :has() (supported in modern Chrome/Edge/Safari).
   ============================================================ */
body.pkp_page_user p:has(+ ul li.new_submission),
body.pkp_page_user p:has(+ ul li.new_submission a){
  display: none !important;
}


/* ============================================================
   STYLE "Make a New Submission" LINK AS "Continue >>" BUTTON
   (applies to li.new_submission a)
   ============================================================ */
li.new_submission a{
  display: inline-block !important;
  padding: 2px 10px !important;
  border: 1px solid #7f9db9 !important;
  background: #e9eef7 !important;
  color: #000 !important;
  font: 13px Arial, Helvetica, sans-serif !important;
  line-height: 18px !important;
  text-decoration: none !important;
  border-radius: 2px !important;
  cursor: pointer !important;
}

li.new_submission a:hover{
  background: #dfe7f3 !important;
}

li.new_submission a:active{
  background: #cfdcf0 !important;
}


/* ============================================================
   OVERRIDE: Match provided "Continue >>" button computed styles
   for the post-registration action link (li.new_submission a)
   ============================================================ */
li.new_submission a{
  -webkit-appearance: auto !important;
  appearance: auto !important;

  background-color: rgb(206, 206, 206) !important;
  background-image: linear-gradient(rgb(228, 228, 228) 50%, rgb(206, 206, 206) 100%) !important;

  border: 1px solid rgb(206, 206, 206) !important;
  border-radius: 3.92px !important;

  box-shadow: rgb(85, 85, 85) 1px 1px 2px 0px !important;
  box-sizing: border-box !important;

  color: rgb(0, 51, 101) !important;
  cursor: pointer !important;

  display: inline-block !important;

  font-family: verdana, geneva, arial, helvetica, sans-serif !important;
  font-size: 11.2px !important;
  font-weight: 400 !important;

  height: 17px !important;
  line-height: normal !important;

  margin: 5.6px !important;

  padding: 1px 5px !important;

  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: none !important;

  user-select: none !important;

  white-space: nowrap !important;
}

/* Optional hover/active similar feel (subtle) */
li.new_submission a:hover{
  filter: brightness(0.98) !important;
}
li.new_submission a:active{
  filter: brightness(0.95) !important;
}


/* ============================================================
   SHIFT "Make a New Submission" BUTTON 200px TO THE RIGHT
   ============================================================ */
li.new_submission{
  justify-content: flex-start !important; /* override centering if present */
}

li.new_submission a{
  margin-left: 200px !important;
}


/* ============================================================
   ADD +300px MORE TO THE RIGHT (total 500px)
   ============================================================ */
li.new_submission a{
  margin-left: 500px !important;
}


/* ============================================================
   ADD +200px MORE TO THE RIGHT (total 700px)
   ============================================================ */
li.new_submission a{
  margin-left: 700px !important;
}


/* ============================================================
   MOVE "Make a New Submission" BUTTON DOWN 100px
   ============================================================ */
li.new_submission a{
  margin-top: calc(5.6px + 100px) !important; /* preserves original 5.6px */
}


/* ============================================================
   ADD GRAY INFO BOX ABOVE THE BUTTON (CSS-only via ::before)
   Targets the <ul> that contains li.new_submission using :has()
   ============================================================ */
body.pkp_page_user ul:has(li.new_submission)::before{
  content: "Please use the buttons below to go back to the Previous Page or to make a new submission";
  background-color: rgb(244, 244, 244) !important;
  border-top: 1px solid rgb(204, 0, 0) !important;
  border-bottom: 1px solid rgb(204, 0, 0) !important;
  color: rgb(0, 0, 51) !important;
  display: block !important;
  font-family: verdana, geneva, arial, helvetica, sans-serif !important;
  font-size: 11.2px !important;

  width: 522.5px !important;
  height: 182px !important;

  margin-top: 20px !important;
  margin-bottom: 10px !important;
  margin-left: 10px !important;
  margin-right: 10px !important;

  padding-top: 10px !important;
  padding-bottom: 10px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;

  unicode-bidi: isolate !important;
  position: relative !important;
  left: 10px !important;
  box-sizing: border-box !important;

  /* keep text readable inside a tall box */
  line-height: 1.35 !important;
  transform: translateX(-150px) !important;
}

/* Ensure the list doesn't overlap the ::before box */
body.pkp_page_user ul:has(li.new_submission){
  padding-top: 0 !important;
}


/* ============================================================
   MOVE THE GRAY INFO BOX 300px TO THE RIGHT
   ============================================================ */
body.pkp_page_user ul:has(li.new_submission)::before{
  left: 310px !important; /* was 10px, +300px */
}


/* ============================================================
   MOVE THE GRAY INFO BOX +100px MORE (total right shift 400px)
   ============================================================ */
body.pkp_page_user ul:has(li.new_submission)::before{
  left: 410px !important; /* was 310px */
}


/* ============================================================
   MOVE THE GRAY INFO BOX +100px MORE (total right shift 500px)
   ============================================================ */
body.pkp_page_user ul:has(li.new_submission)::before{
  left: 510px !important; /* was 410px */
}


/* ============================================================
   MOVE THE GRAY INFO BOX +100px MORE (total right shift 600px)
   ============================================================ */
body.pkp_page_user ul:has(li.new_submission)::before{
  left: 610px !important; /* was 510px */
}


/* ============================================================
   MOVE THE BUTTON +100px MORE TO THE RIGHT (total 800px)
   ============================================================ */
li.new_submission a{
  margin-left: 800px !important; /* was 700px */
}


/* ============================================================
   MOVE THE GRAY INFO BOX DOWN 100px
   ============================================================ */
body.pkp_page_user ul:has(li.new_submission)::before{
  margin-top: 120px !important; /* was 20px */
}


/* ============================================================
   MOVE THE BUTTON UP 100px (undo previous +100px down)
   ============================================================ */
li.new_submission a{
  margin-top: 5.6px !important; /* was 105.6px */
}


/* ============================================================
   MOVE THE BUTTON UP ANOTHER 100px (total 200px up)
   ============================================================ */
li.new_submission a{
  position: relative !important;
  top: -100px !important;
}


/* ============================================================
   MOVE THE BUTTON UP 30px MORE (top: -130px)
   ============================================================ */
li.new_submission a{
  top: -130px !important;
}


/* ============================================================
   DECORATIVE "<<" PREVIOUS PAGE BUTTON (CSS-only, not a real link)
   Placed next to the "Make a New Submission" button area.
   ============================================================ */
body.pkp_page_user ul:has(li.new_submission)::after{
  content: "<< Previous Page";
  -webkit-appearance: auto !important;
  appearance: auto !important;

  background-color: rgb(206, 206, 206) !important;
  background-image: linear-gradient(rgb(228, 228, 228) 50%, rgb(206, 206, 206) 100%) !important;

  border: 1px solid rgb(206, 206, 206) !important;
  border-radius: 3.92px !important;

  box-shadow: rgb(85, 85, 85) 1px 1px 2px 0px !important;
  box-sizing: border-box !important;

  color: rgb(0, 51, 101) !important;
  cursor: pointer !important;

  display: inline-block !important;

  font-family: verdana, geneva, arial, helvetica, sans-serif !important;
  font-size: 11.2px !important;
  font-weight: 400 !important;

  height: 17px !important;
  line-height: normal !important;

  margin: 5.6px !important;
  padding: 1px 5px !important;

  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: none !important;

  user-select: none !important;
  white-space: nowrap !important;

  width: 112.703px !important;

  /* Positioning to sit near the existing button */
  position: relative !important;
  left: 610px !important;   /* align with your gray box offset theme */
  top: -130px !important;   /* match your button vertical offset */
  pointer-events: none !important; /* decorative only */
}


/* ============================================================
   FIX: ensure previous decorative button appears without breaking layout
   - Disable the earlier ul::after attempt
   - Add the button as li.new_submission::before (more reliable)
   ============================================================ */
body.pkp_page_user ul:has(li.new_submission)::after{
  content: none !important;
  display: none !important;
}

/* anchor pseudo-element to the list item */
li.new_submission{
  position: relative !important;
}

/* Decorative previous button */
li.new_submission::before{
  content: "<< Previous Page";
  -webkit-appearance: auto !important;
  appearance: auto !important;

  background-color: rgb(206, 206, 206) !important;
  background-image: linear-gradient(rgb(228, 228, 228) 50%, rgb(206, 206, 206) 100%) !important;

  border: 1px solid rgb(206, 206, 206) !important;
  border-radius: 3.92px !important;

  box-shadow: rgb(85, 85, 85) 1px 1px 2px 0px !important;
  box-sizing: border-box !important;

  color: rgb(0, 51, 101) !important;
  cursor: pointer !important;

  display: inline-block !important;

  font-family: verdana, geneva, arial, helvetica, sans-serif !important;
  font-size: 11.2px !important;
  font-weight: 400 !important;

  height: 17px !important;
  line-height: normal !important;

  margin: 5.6px !important;
  padding: 1px 5px !important;

  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: none !important;

  user-select: none !important;
  white-space: nowrap !important;

  width: 112.703px !important;

  /* place it near your current button position */
  position: absolute !important;
  left: 560px !important;   /* sits to the left of the new submission button */
  top: -130px !important;   /* match your current vertical offset */
  pointer-events: none !important; /* decorative only */
}


/* ============================================================
   SHIFT decorative Previous button +10px to the right
   ============================================================ */
li.new_submission::before{
  left: 570px !important; /* was 560px */
}


/* ============================================================
   SHIFT decorative Previous button +20px more (total +30px)
   ============================================================ */
li.new_submission::before{
  left: 590px !important; /* was 570px */
}


/* ============================================================
   MOVE decorative Previous button DOWN 20px
   ============================================================ */
li.new_submission::before{
  top: -110px !important; /* was -130px */
}


/* ============================================================
   MOVE decorative Previous button DOWN 20px more (total 40px)
   ============================================================ */
li.new_submission::before{
  top: -90px !important; /* was -110px */
}


/* ============================================================
   MOVE decorative Previous button RIGHT 30px
   ============================================================ */
li.new_submission::before{
  left: 620px !important; /* was 590px */
}


/* ============================================================
   MOVE decorative Previous button RIGHT 40px more
   ============================================================ */
li.new_submission::before{
  left: 660px !important; /* was 620px */
}


/* ============================================================
   MOVE decorative Previous button RIGHT 40px more
   ============================================================ */
li.new_submission::before{
  left: 700px !important; /* was 660px */
}


/* ============================================================
   MOVE decorative Previous button RIGHT 100px more
   ============================================================ */
li.new_submission::before{
  left: 800px !important; /* was 700px */
}


/* ============================================================
   MOVE decorative Previous button RIGHT 10px more
   ============================================================ */
li.new_submission::before{
  left: 810px !important; /* was 800px */
}


/* ============================================================
   SHIFT THE BOX/PSEUDO-ELEMENT (as seen in DevTools: body...::after)
   30px to the RIGHT
   ============================================================ */
body.pkp_page_user.pkp_op_register.has_site_logo::after{
  transform: translateX(30px) !important;
}


/* ============================================================
   MOVE THAT body::after ELEMENT 60px TO THE LEFT
   (override previous +30px right)
   ============================================================ */
body.pkp_page_user.pkp_op_register.has_site_logo::after{
  transform: translateX(-60px) !important;
}


/* ============================================================
   MOVE THAT body::after ELEMENT 20px TO THE RIGHT
   (from -60px to -40px)
   ============================================================ */
body.pkp_page_user.pkp_op_register.has_site_logo::after{
  transform: translateX(-40px) !important;
}


/* ============================================================
   MOVE THAT body::after ELEMENT 10px TO THE RIGHT
   (from -40px to -30px)
   ============================================================ */
body.pkp_page_user.pkp_op_register.has_site_logo::after{
  transform: translateX(-30px) !important;
}


/* ============================================================
   MOVE THAT body::after ELEMENT 10px TO THE RIGHT
   (from -30px to -20px)
   ============================================================ */
body.pkp_page_user.pkp_op_register.has_site_logo::after{
  transform: translateX(-20px) !important;
}


/* ============================================================
   MOVE THAT body::after ELEMENT 10px TO THE RIGHT
   (from -20px to -10px)
   ============================================================ */
body.pkp_page_user.pkp_op_register.has_site_logo::after{
  transform: translateX(-10px) !important;
}

/* =========================================================
   PAGE-SPECIFIC FIX: requestResetPassword ONLY
   Remove the "Insert Special Character" overlay (::after)
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword::after,
body.pkp_page_login.pkp_op_requestResetPassword.has_site_logo::after{
  content: "" !important;
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =========================================================
   STRONG OVERRIDE (requestResetPassword ONLY)
   Neutralize any generic rule like:
   body.pkp_page_login:not(.pkp_op_lostPassword)::after { content: ... }
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword:not(.pkp_op_lostPassword)::after,
body.pkp_page_login.pkp_op_requestResetPassword.has_site_logo:not(.pkp_op_lostPassword)::after,
body.pkp_page_login.pkp_op_requestResetPassword::after,
body.pkp_page_login.pkp_op_requestResetPassword.has_site_logo::after{
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =========================================================
   requestResetPassword ONLY
   Remove the top-center login pseudo-image (the "3rd image")
   that is injected via:
   body.pkp_page_login .pkp_structure_content::before { content: url(...) }
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content::before,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content:before{
  content: none !important;
  display: none !important;
  visibility: hidden !important;
}

/* =========================================================
   requestResetPassword ONLY
   Move the 2nd top image (site logo in header) 20px to the left
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_site_name_wrapper,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_site_name,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_branding,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_branding img{
  position: relative !important;
  left: -20px !important;
}

/* =========================================================
   requestResetPassword ONLY (STRONGER)
   Move the header logo block 20px to the left
   (uses transform to work with flex/centering layouts)
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_site_name_wrapper,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_site_name_wrapper a,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_site_name,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_site_name a,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_branding,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_branding a,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_branding img,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_site_name_wrapper img{
  transform: translateX(-20px) !important;
}

/* =========================================================
   requestResetPassword ONLY (ULTRA)
   Move the header/logo area 20px to the left.
   Some themes clamp transforms; margin is more reliable.
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head .pkp_site_name_wrapper,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head .pkp_site_name,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head .pkp_site_name a,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head .pkp_branding,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head .pkp_branding a{
  margin-left: -20px !important;
}

/* If the logo is inside a flex-centered wrapper, nudge wrapper too */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head .pkp_head_wrapper,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head .pkp_head_wrapper > *{
  margin-left: -20px !important;
}

/* =========================================================
   requestResetPassword ONLY
   Move the TOP BANNER image (pkp_structure_page::before) 20px left
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_page::before{
  left: calc(50% - 20px) !important;
  transform: translateX(-50%) !important;
}

/* =========================================================
   requestResetPassword ONLY
   UNDO: keep the top banner (pkp_structure_page::before) centered
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_page::before{
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* =========================================================
   requestResetPassword ONLY
   Move the SITE LOGO (2nd image from top) 20px to the left
   Works for both <img> logos and background-image logos.
   ========================================================= */

/* If logo is an IMG */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_site_name_wrapper img,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_branding img{
  transform: translateX(-20px) !important;
}

/* If logo is a BACKGROUND image on wrapper/header */
body.pkp_page_login.pkp_op_requestResetPassword.has_site_logo .pkp_structure_head,
body.pkp_page_login.pkp_op_requestResetPassword.has_site_logo .pkp_site_name_wrapper,
body.pkp_page_login.pkp_op_requestResetPassword.has_site_logo .pkp_branding{
  background-position: calc(50% - 20px) center !important;
  background-position-x: calc(50% - 20px) !important;
}

/* If there is a flex container centering the logo */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head .pkp_head_wrapper{
  justify-content: flex-start !important;
  padding-left: 10px !important; /* net effect: visual nudge left */
}

/* =========================================================
   requestResetPassword ONLY
   Move the element linked to /login (e.g., <a href=".../login">Home</a>)
   20px to the left (covers link-wrapped logo/text)
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head a[href$="/login"],
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head a[href*="/index.php/ecm/login"],
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_head a[href*="/ecm/login"]{
  display: inline-block !important;
  transform: translateX(-4px) !important;
}

/* =========================================================
   requestResetPassword ONLY
   Style the confirmation message (.description) like Editorial Manager
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .description{
  display: block !important;
  max-width: 520px !important;
  margin: -28px auto 0 auto !important;
  padding: 8px 10px !important;
  border-top: 1px solid #c00000 !important;
  border-bottom: 1px solid #c00000 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background: #f4f4f4 !important;
  color: #000033 !important;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  transform: translateX(-150px) !important;
  box-sizing: border-box !important;
}

/* Keep links inside consistent */
body.pkp_page_login.pkp_op_requestResetPassword .description a{
  color: #0000ee !important;
  text-decoration: underline !important;
}
body.pkp_page_login.pkp_op_requestResetPassword .description a:hover{
  text-decoration: underline !important;
}

/* =========================================================
   requestResetPassword ONLY
   Center the "Login" link under the confirmation box
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href$="/login"],
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href*="/index.php/ecm/login"],
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href*="/ecm/login"]{
  display: block !important;
  width: 520px !important;        /* match the box width */
  margin: 8px auto 0 auto !important;
  transform: translateX(-150px) !important; /* match the box shift */
  text-align: center !important;
}

/* =========================================================
   requestResetPassword ONLY
   Style the centered login link:
   - color: #0000ee
   - display text as "Return to Login Page"
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href$="/login"],
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href*="/index.php/ecm/login"],
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href*="/ecm/login"]{
  color: #0000ee !important;
  text-decoration: underline !important;
  font-size: 0 !important;          /* hide original "Login" text */
  line-height: 0 !important;
}

/* Replace visible label */
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href$="/login"]::after,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href*="/index.php/ecm/login"]::after,
body.pkp_page_login.pkp_op_requestResetPassword .pkp_structure_content a[href*="/ecm/login"]::after{
  content: "Return to Login Page";
  font-size: 11px !important;
  line-height: 1.2 !important;
  color: #0000ee !important;
}

/* =========================================================
   requestResetPassword ONLY
   Add left-side image (original size) 20px away from the box
   ========================================================= */
body.pkp_page_login.pkp_op_requestResetPassword .description{
  position: relative !important; /* anchor pseudo-element */
}

body.pkp_page_login.pkp_op_requestResetPassword .description::before{
  content: url("https://i.imgur.com/GfGUJkt.png");
  position: absolute !important;
  right: calc(100% + 20px) !important; /* 20px gap from box */
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: block !important;
  pointer-events: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — STYLE #navigationPrimary LIKE PROVIDED (EM STYLE)
   Applies only on: /index.php/ecm/login
   ========================================================= */

/* Ensure the menu is visible on login page */
body.pkp_page_login #navigationPrimary,
body.pkp_page_login ul#navigationPrimary{
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Main UL styling (matches your computed style list) */
body.pkp_page_login ul#navigationPrimary{
  background-attachment: scroll !important;
  background-clip: border-box !important;
  background-color: rgb(223, 227, 230) !important;
  background-image: none !important;
  background-origin: padding-box !important;
  background-position: 0% 0% !important;
  background-repeat: repeat !important;
  background-size: auto !important;

  border-bottom: 0 !important;
  border-top: 0 !important;
  border-left: 1.5px solid rgb(223, 227, 230) !important;
  border-right: 1.5px solid rgb(223, 227, 230) !important;

  bottom: 0 !important;
  color: rgb(21, 41, 53) !important;
  display: flex !important;

  font-family: Verdana, Arial, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;

  height: 40.5px !important;
  left: 0 !important;

  list-style-image: none !important;
  list-style-position: outside !important;
  list-style-type: none !important;

  margin-block-start: 80px !important;
  margin-top: 80px !important;
  margin-block-end: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;

  outline: none !important;

  overflow-x: visible !important;
  overflow-y: visible !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-inline-start: 82px !important;
  padding-left: 82px !important;
  padding-right: 0 !important;

  position: relative !important;
  top: 0 !important;

  unicode-bidi: isolate !important;
  vertical-align: middle !important;
  visibility: visible !important;
  width: 100% !important;
  z-index: 100 !important;

  -webkit-border-horizontal-spacing: 0 !important;
  -webkit-border-vertical-spacing: 0 !important;

  gap: 18px !important; /* for clean spacing */
  align-items: center !important;
}

/* Top-level list items */
body.pkp_page_login ul#navigationPrimary > li{
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Top-level links */
body.pkp_page_login ul#navigationPrimary > li > a{
  color: rgb(21, 41, 53) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 40.5px !important;
  line-height: 40.5px !important;
  padding: 0 10px !important;
}

/* Dropdown UL (submenu) */
body.pkp_page_login ul#navigationPrimary > li > ul{
  display: none !important; /* default hidden, like menus */
  position: absolute !important;
  top: 40.5px !important;
  left: 0 !important;
  background: rgb(223, 227, 230) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  min-width: 220px !important;
  z-index: 999 !important;
  border: 1px solid rgb(223, 227, 230) !important;
}

/* Show submenu on hover */
body.pkp_page_login ul#navigationPrimary > li:hover > ul{
  display: block !important;
}

/* Submenu items */
body.pkp_page_login ul#navigationPrimary > li > ul > li{
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.pkp_page_login ul#navigationPrimary > li > ul > li > a{
  display: block !important;
  padding: 8px 14px !important;
  color: rgb(21, 41, 53) !important;
  text-decoration: none !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

/* Optional hover feel */
body.pkp_page_login ul#navigationPrimary a:hover{
  text-decoration: underline !important;
}


/* =========================================================
   LOGIN PAGE ONLY — REMOVE ALL IMAGES (keep navigation text/links)
   This removes:
   - Any CSS-injected banners (::before/::after)
   - Any <img> / <picture> / <svg> on the login page
   - Any background-image on common wrappers
   ========================================================= */

/* Kill all pseudo-element images on login page */
body.pkp_page_login::before,
body.pkp_page_login::after,
body.pkp_page_login .pkp_structure_page::before,
body.pkp_page_login .pkp_structure_page::after,
body.pkp_page_login .pkp_structure_content::before,
body.pkp_page_login .pkp_structure_content::after,
body.pkp_page_login header::before,
body.pkp_page_login header::after,
body.pkp_page_login .pkp_structure_head::before,
body.pkp_page_login .pkp_structure_head::after{
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Remove any background images that might still show */
body.pkp_page_login,
body.pkp_page_login header,
body.pkp_page_login .pkp_structure_page,
body.pkp_page_login .pkp_structure_content,
body.pkp_page_login .pkp_structure_head{
  background-image: none !important;
}

/* Hide ALL inline images/icons on the login page */
body.pkp_page_login img,
body.pkp_page_login picture,
body.pkp_page_login svg{
  display: none !important;
}

/* If header logo wrapper reserves space, remove it */
body.pkp_page_login .pkp_site_name_wrapper,
body.pkp_page_login .pkp_site_name,
body.pkp_page_login .pkp_site_logo{
  background: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — REMOVE ANY IMAGE/ICON ONLY FOR THE "Home" LINK
   Target: <a href="https://energyconversions.org/index.php/ecm/login">Home</a>
   ========================================================= */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login"],
body.pkp_page_login a[href$="/index.php/ecm/login"]{
  background-image: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* If any icon is injected via pseudo-elements on the link */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login"]::before,
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login"]::after,
body.pkp_page_login a[href$="/index.php/ecm/login"]::before,
body.pkp_page_login a[href$="/index.php/ecm/login"]::after{
  content: none !important;
  display: none !important;
  background: none !important;
}

/* If the theme adds an <img>/<svg> inside the Home link */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login"] img,
body.pkp_page_login a[href$="/index.php/ecm/login"] img,
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/login"] svg,
body.pkp_page_login a[href$="/index.php/ecm/login"] svg{
  display: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — HIDE "Guide for authors" LINK
   Target: https://energyconversions.org/index.php/ecm/Guideforauthors
   ========================================================= */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/Guideforauthors"],
body.pkp_page_login a[href*="/index.php/ecm/Guideforauthors"]{
  display: none !important;
}

/* Hide the whole LI if it's inside navigationPrimary */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href*="/index.php/ecm/Guideforauthors"]),
body.pkp_page_login nav.pkp_navigation_primary ul.pkp_nav_list > li:has(> a[href*="/index.php/ecm/Guideforauthors"]){
  display: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — HIDE "Order journal" LINK
   Target: https://energyconversions.org/index.php/ecm/Orderjournal
   ========================================================= */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/Orderjournal"],
body.pkp_page_login a[href*="/index.php/ecm/Orderjournal"]{
  display: none !important;
}

/* Hide the whole LI if it's inside navigationPrimary */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href*="/index.php/ecm/Orderjournal"]),
body.pkp_page_login nav.pkp_navigation_primary ul.pkp_nav_list > li:has(> a[href*="/index.php/ecm/Orderjournal"]){
  display: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — HIDE "Publish" MENU (the top-level <a href="#">Publish</a>)
   We identify it by its submenu links (Guideforauthors / sciencedirect compare).
   ========================================================= */

/* Hide the whole LI that contains submenu link(s) used under Publish */
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/Guideforauthors"]),
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="sciencedirect.com/compare"]),
body.pkp_page_login nav.pkp_navigation_primary ul.pkp_nav_list > li:has(ul a[href*="/index.php/ecm/Guideforauthors"]),
body.pkp_page_login nav.pkp_navigation_primary ul.pkp_nav_list > li:has(ul a[href*="sciencedirect.com/compare"]){
  display: none !important;
}

/* =========================================================
   LOGIN PAGE ONLY — REMOVE POSITIONING FOR "Submit your article" LINK
   It shares the same href as "Home" sometimes, so we target the /login link
   that is NOT the last <li> item (Home is last in your menu structure).
   ========================================================= */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href*="/index.php/ecm/login"]):not(:last-child) > a,
body.pkp_page_login nav.pkp_navigation_primary ul.pkp_nav_list > li:has(> a[href*="/index.php/ecm/login"]):not(:last-child) > a{
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 10px !important;  /* keep consistent with other menu links */
  width: auto !important;
  height: 40.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  z-index: auto !important;
}


/* =========================================================
   LOGIN PAGE ONLY — REMOVE POSITIONING FOR "Home" LINK (to /login)
   In your menu, Home is the LAST item linking to /login.
   ========================================================= */
body.pkp_page_login ul#navigationPrimary > li:last-child > a[href*="/index.php/ecm/login"],
body.pkp_page_login nav.pkp_navigation_primary ul.pkp_nav_list > li:last-child > a[href*="/index.php/ecm/login"]{
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 10px !important;
  width: auto !important;
  height: 40.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  z-index: auto !important;
}


/* =========================================================
   LOGIN PAGE ONLY — HIDE "Articles & Issues" MENU (href="#")
   Identify it by its submenu links: /issue/current or /issue/archive
   ========================================================= */
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/issue/current"]),
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/issue/archive"]),
body.pkp_page_login nav.pkp_navigation_primary ul.pkp_nav_list > li:has(ul a[href*="/issue/current"]),
body.pkp_page_login nav.pkp_navigation_primary ul.pkp_nav_list > li:has(ul a[href*="/issue/archive"]){
  display: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — REMOVE THE ICON FROM "Search in this journal" LINK
   Target: /index.php/ecm/search
   Keeps the text/link, removes any icon (bg, ::before/::after, svg/img).
   ========================================================= */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login a[href*="/index.php/ecm/search"]{
  background-image: none !important;
  background: none !important;
  padding-left: 10px !important;   /* normalize in case icon spacing existed */
}

/* Icon injected via pseudo-elements */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"]::before,
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"]::after,
body.pkp_page_login a[href*="/index.php/ecm/search"]::before,
body.pkp_page_login a[href*="/index.php/ecm/search"]::after{
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Inline icon inside the link */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"] svg,
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"] img,
body.pkp_page_login a[href*="/index.php/ecm/search"] svg,
body.pkp_page_login a[href*="/index.php/ecm/search"] img{
  display: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — FIX: SHOW "Search in this journal" TEXT AGAIN
   (keeps icon removed)
   ========================================================= */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login a[href*="/index.php/ecm/search"]{
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;

  font-family: Verdana, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgb(21, 41, 53) !important;
}


/* =========================================================
   LOGIN PAGE ONLY — SHOW "Search in this journal" AS "Help" (visual only)
   Keep link href the same, remove icon, and replace visible label.
   ========================================================= */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login a[href*="/index.php/ecm/search"]{
  font-size: 0 !important; /* hide original label */
}

body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"]::after,
body.pkp_page_login a[href*="/index.php/ecm/search"]::after{
  content: "Help" !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgb(21, 41, 53) !important;
  line-height: 40.5px !important;
  display: inline-block !important;
}


/* =========================================================
   LOGIN PAGE ONLY — NAV ORDER (left -> right):
   Home, Submit your article, About, Help
   ========================================================= */

/* Ensure the UL is flex (already) */
body.pkp_page_login ul#navigationPrimary{
  display: flex !important;
  flex-direction: row !important;
}

/* 1) Home = last /login item in your markup */
body.pkp_page_login ul#navigationPrimary > li:last-child:has(> a[href*="/index.php/ecm/login"]){
  order: 1 !important;
}

/* 2) Submit your article = the other /login item (not last-child) */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href*="/index.php/ecm/login"]):not(:last-child){
  order: 2 !important;
}

/* 3) About = href="#" with About submenu links */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href="#"]):has(ul a[href*="/index.php/ecm/AimandScope"]),
body.pkp_page_login ul#navigationPrimary > li:has(> a[href="#"]):has(ul a[href*="/index.php/ecm/Editorialboard"]){
  order: 3 !important;
}

/* 4) Help = (Search link relabeled as Help) */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href*="/index.php/ecm/search"]){
  order: 4 !important;
}

/* Tighten spacing a bit */
body.pkp_page_login ul#navigationPrimary{
  gap: 14px !important;
}


/* =========================================================
   LOGIN PAGE ONLY — ATTACH ABOUT DROPDOWN TO THE "About" ITEM
   Fixes detached dropdown by anchoring submenu to its parent <li>.
   ========================================================= */

/* Make sure the About <li> is the positioning context */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href="#"]):has(ul){
  position: relative !important;
  overflow: visible !important;
}

/* Ensure the whole nav can show dropdowns */
body.pkp_page_login ul#navigationPrimary{
  overflow: visible !important;
}

/* Attach submenu directly under About */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href="#"]):has(ul) > ul{
  position: absolute !important;
  top: 100% !important;           /* directly under the About row */
  left: 0 !important;             /* aligned with About item */
  margin-top: 0 !important;
  z-index: 50 !important;
}

/* Show dropdown on hover OR keyboard focus */
body.pkp_page_login ul#navigationPrimary > li:has(> a[href="#"]):has(ul):hover > ul,
body.pkp_page_login ul#navigationPrimary > li:has(> a[href="#"]):has(ul):focus-within > ul{
  display: block !important;
}


/* =========================================================
   LOGIN PAGE ONLY — HARD FIX: ABOUT DROPDOWN ANCHORED CORRECTLY
   Target the About <li> specifically by its submenu links.
   ========================================================= */

/* Identify ABOUT menu item (it contains AimandScope / Editorialboard / JournalInsightss / news / AS) */
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/AimandScope"]),
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/Editorialboard"]),
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/JournalInsightss"]),
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/news"]),
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/AS"]){
  position: relative !important;
  overflow: visible !important;
}

/* Force submenu to be positioned relative to ABOUT li (not the page) */
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/AimandScope"]) > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/Editorialboard"]) > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/JournalInsightss"]) > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/news"]) > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/AS"]) > ul{
  position: absolute !important;
  top: calc(100% - 1px) !important;   /* attached directly under the About bar */
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 999999 !important;
}

/* Ensure ancestors do NOT clip the dropdown */
body.pkp_page_login .pkp_structure_head,
body.pkp_page_login .pkp_head_wrapper,
body.pkp_page_login header#headerNavigationContainer{
  overflow: visible !important;
}

/* Show on hover/focus */
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/AimandScope"]):hover > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/Editorialboard"]):hover > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/JournalInsightss"]):hover > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/news"]):hover > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/AS"]):hover > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/AimandScope"]):focus-within > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/Editorialboard"]):focus-within > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/JournalInsightss"]):focus-within > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/news"]):focus-within > ul,
body.pkp_page_login ul#navigationPrimary > li:has(ul a[href*="/index.php/ecm/AS"]):focus-within > ul{
  display: block !important;
}

/* If any earlier rule made ALL submenus absolute/fixed, neutralize others (keep only About) */
body.pkp_page_login ul#navigationPrimary > li > ul{
  position: absolute !important;
  transform: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — ADD TOP HEADER BAR (80px) WITH GIVEN STYLE
   ========================================================= */

/* Create a clean header bar at the very top */
body.pkp_page_login::before{
  content: "" !important;
  display: block !important;

  background-color: rgb(0, 52, 98) !important;
  color: rgb(0, 0, 51) !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;

  height: 80px !important;
  min-width: 450px !important;
  width: 100% !important;

  padding: 0 !important;

  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 201 !important;

  pointer-events: none !important;
}

/* Push the navigation menu down so it sits under the new header */
body.pkp_page_login ul#navigationPrimary{
  margin-top: 80px !important;
}


/* =========================================================
   LOGIN PAGE ONLY — CENTER THE HEADER BAR (fixed width like your sample)
   ========================================================= */
body.pkp_page_login::before{
  width: 901.111px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Keep nav aligned with the centered header width */
body.pkp_page_login ul#navigationPrimary{
  width: 901.111px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* =========================================================
   LOGIN PAGE ONLY — MOVE NAVIGATION BAR 50px UP
   ========================================================= */
body.pkp_page_login ul#navigationPrimary{
    margin-top: -400px !important; /* moved up 50px more */
}


/* =========================================================
   LOGIN PAGE ONLY — MOVE NAVIGATION BAR 20px TO THE RIGHT (safe)
   ========================================================= */
body.pkp_page_login ul#navigationPrimary{
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative !important;
  left: 10px !important;
}


/* =========================================================
   LOGIN PAGE ONLY — FULL-WIDTH HEADER + NAV (no side whitespace on zoom out)
   ========================================================= */

/* Header bar: full viewport width */
body.pkp_page_login::before{
  width: 100vw !important;
  min-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

/* Navigation bar: full viewport width */
body.pkp_page_login ul#navigationPrimary{
  width: 100vw !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;

  /* keep your left padding style */
  padding-left: 82px !important;
}

/* Remove the previous right-shift */
body.pkp_page_login ul#navigationPrimary{
  left: 0 !important;
}


/* =========================================================
   LOGIN PAGE ONLY — REMOVE SMALL WHITE GAPS ON NAV SIDES
   Usually caused by body default margin or container padding.
   ========================================================= */

/* Remove body/html margins on login page */
html:has(body.pkp_page_login),
body.pkp_page_login{
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove any horizontal padding/margins from header containers */
body.pkp_page_login header#headerNavigationContainer,
body.pkp_page_login .pkp_structure_head,
body.pkp_page_login .pkp_head_wrapper,
body.pkp_page_login .pkp_site_nav_menu,
body.pkp_page_login nav.pkp_navigation_primary{
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure nav really stretches edge-to-edge */
body.pkp_page_login ul#navigationPrimary{
  margin: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}


/* =========================================================
   LOGIN PAGE ONLY — ALT APPROACH (FULL-BLEED NAV WRAPPER)
   Fix side white slivers by making the NAV *container* full-bleed,
   not just the UL.
   ========================================================= */

/* Make the nav wrapper span full viewport width (full-bleed) */
body.pkp_page_login nav.pkp_navigation_primary,
body.pkp_page_login .pkp_site_nav_menu,
body.pkp_page_login header#headerNavigationContainer{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: auto !important;
  right: auto !important;

  background-color: rgb(223, 227, 230) !important; /* same as nav */
}

/* Ensure UL fills the wrapper (no borders creating edge gaps) */
body.pkp_page_login ul#navigationPrimary{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background-color: rgb(223, 227, 230) !important;
}


/* =========================================================
   LOGIN PAGE ONLY — ALT APPROACH #2 (FULL-BLEED BACKGROUND VIA PSEUDO-ELEMENT)
   Even if containers have tiny margins/padding, this paints the nav background
   far beyond the element to cover side slivers.
   ========================================================= */
body.pkp_page_login ul#navigationPrimary{
  position: relative !important;
  z-index: 100 !important;
}

/* Paint a huge background behind the UL */
body.pkp_page_login ul#navigationPrimary::before{
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: -200vw !important;
  right: -200vw !important;
  background: rgb(223, 227, 230) !important;
  z-index: -1 !important;
}

/* Same trick for the blue header bar */
body.pkp_page_login::before{
  position: absolute !important;
}
body.pkp_page_login::after{
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  height: 80px !important;
  left: -200vw !important;
  right: -200vw !important;
  background: rgb(0, 52, 98) !important;
  z-index: 200 !important;
  pointer-events: none !important;
}


/* LOGIN PAGE ONLY — MOVE NAV 10px UP */
body.pkp_page_login ul#navigationPrimary{
  margin-top: -30px !important; /* previous was -20px; moved up 10px more */
}


/* =========================================================
   LOGIN PAGE ONLY — SHIFT NAV ITEMS 20px TO THE RIGHT
   (we keep the bar full-bleed, move only the content)
   ========================================================= */
body.pkp_page_login ul#navigationPrimary{
    padding-left: 162px !important; /* was 82px; +80px total */
}


/* =========================================================
   LOGIN PAGE ONLY — HIDE BORDERS / DIVIDERS IN NAV BAR
   ========================================================= */

/* Remove borders on the nav bar and list */
body.pkp_page_login nav.pkp_navigation_primary,
body.pkp_page_login .pkp_site_nav_menu,
body.pkp_page_login ul#navigationPrimary{
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Remove any divider lines that might be added by theme */
body.pkp_page_login ul#navigationPrimary > li,
body.pkp_page_login ul#navigationPrimary > li::before,
body.pkp_page_login ul#navigationPrimary > li::after,
body.pkp_page_login ul#navigationPrimary::after,
body.pkp_page_login ul#navigationPrimary::before{
  border: 0 !important;
  box-shadow: none !important;
}

/* If theme uses background gradient/divider */
body.pkp_page_login ul#navigationPrimary{
  background-image: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — KILL THE SMALL LINE UNDER NAV
   Often a bottom border on header/nav wrapper or a pseudo-element divider.
   ========================================================= */
body.pkp_page_login header#headerNavigationContainer,
body.pkp_page_login .pkp_structure_head,
body.pkp_page_login .pkp_head_wrapper,
body.pkp_page_login .pkp_navigation_primary_row,
body.pkp_page_login nav.pkp_navigation_primary,
body.pkp_page_login .pkp_site_nav_menu{
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.pkp_page_login header#headerNavigationContainer::after,
body.pkp_page_login .pkp_structure_head::after,
body.pkp_page_login .pkp_head_wrapper::after,
body.pkp_page_login nav.pkp_navigation_primary::after,
body.pkp_page_login .pkp_site_nav_menu::after{
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — HIDE THE EXTRA STRIP/LINE (pkp_navigation_primary_wrapper)
   Do NOT hide the menu; just remove the tiny bar + pseudo element.
   ========================================================= */
body.pkp_page_login .pkp_navigation_primary_wrapper{
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

body.pkp_page_login .pkp_navigation_primary_wrapper::before,
body.pkp_page_login .pkp_navigation_primary_wrapper::after{
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — NAV LINK TEXT STYLE (match provided properties)
   ========================================================= */
body.pkp_page_login ul#navigationPrimary > li > a{
  color: rgb(34, 34, 34) !important;
  cursor: pointer !important;
  display: inline-block !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;

  /* height matches your sample */
  line-height: 17.3333px !important;

  list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") !important;
  list-style-position: outside !important;
  list-style-type: none !important;

  padding: 12px 16px !important;

  text-decoration: none !important;
  text-decoration-color: rgb(34, 34, 34) !important;

  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;

  visibility: visible !important;
}

/* Keep hover simple (no underline) */
body.pkp_page_login ul#navigationPrimary > li > a:hover{
  text-decoration: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — ADD "Energy Conversions" JOURNAL NAME IN HEADER
   (CSS-only: injects the text via ::before inside pkp_site_name_wrapper)
   ========================================================= */

/* Make the wrapper behave like a table row area within the 80px header */
body.pkp_page_login .pkp_site_name_wrapper{
  display: table !important;
  height: 80px !important;
  width: 100% !important;
}

/* Inject the H1 text */
body.pkp_page_login .pkp_site_name_wrapper::before{
  content: "Energy Conversions" !important;

  color: rgb(255, 255, 255) !important;
  display: table-cell !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 400 !important;

  height: 80px !important;
  width: 326.083px !important;

  margin: 13.4px 0 !important;

  text-align: left !important;
  vertical-align: middle !important;

  unicode-bidi: isolate !important;
  word-break: break-word !important;

  padding-left: 16px !important; /* small inset like typical headers */
}


/* =========================================================
   LOGIN PAGE ONLY — PUT "Energy Conversions" TEXT INSIDE THE TOP HEADER BAR
   NOTE: CSS cannot create real <h1> nodes; this renders the same text in the header bar.
   ========================================================= */

/* Remove the previous injection (if visible) */
body.pkp_page_login .pkp_site_name_wrapper::before{
  content: "" !important;
  display: none !important;
}

/* Make the blue header bar carry the title text */
body.pkp_page_login::before{
  content: "Energy Conversions" !important;

  color: rgb(255, 255, 255) !important;
  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 400 !important;

  height: 80px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  text-align: left !important;
  word-break: break-word !important;

  padding-left: 16px !important;

  pointer-events: none !important;
}


/* =========================================================
   FIX: Restore navigation behavior and place title in real header container
   (Disable body pseudo header that could overlap/break nav)
   ========================================================= */

/* Disable previous body pseudo header/title layers (if any) */
body.pkp_page_login::before,
body.pkp_page_login::after{
  content: none !important;
  display: none !important;
}

/* Make the actual header bar full-bleed and 80px tall */
body.pkp_page_login header#headerNavigationContainer{
  position: relative !important;
  height: 80px !important;
  background: rgb(0, 52, 98) !important;

  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  z-index: 201 !important;
}

/* Show the journal name inside the header bar */
body.pkp_page_login header#headerNavigationContainer::before{
  content: "Energy Conversions" !important;

  position: absolute !important;
  left: 0 !important;
  top: 0 !important;

  height: 80px !important;
  display: flex !important;
  align-items: center !important;

  padding-left: 16px !important;

  color: rgb(255, 255, 255) !important;
  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 400 !important;

  width: 326.083px !important;
  text-align: left !important;
  unicode-bidi: isolate !important;
  vertical-align: middle !important;
  word-break: break-word !important;

  pointer-events: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — SHOW ONLY "Help" LABEL FOR /search LINK
   Hide "Search in this journal" text, keep link and show Help.
   ========================================================= */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login a[href*="/index.php/ecm/search"]{
  font-size: 0 !important; /* hides original text */
}

body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"]::after,
body.pkp_page_login a[href*="/index.php/ecm/search"]::after{
  content: "Help" !important;
  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgb(34, 34, 34) !important;
  display: inline-block !important;
}


/* =========================================================
   LOGIN PAGE ONLY — HARD HIDE ORIGINAL "Search in this journal" CONTENT
   Some themes wrap the text in spans with their own font-size.
   So: hide ALL children inside the link, then show only "Help" via ::after.
   ========================================================= */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login a[href*="/index.php/ecm/search"]{
  position: relative !important;
  color: transparent !important;
  text-shadow: none !important;
}

/* Hide any wrapped text/icons inside */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"] *,
body.pkp_page_login a[href*="/index.php/ecm/search"] *{
  display: none !important;
}

/* Also hide raw text via extreme text-indent */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login a[href*="/index.php/ecm/search"]{
  text-indent: -9999px !important;
  overflow: hidden !important;
}

/* Render the visible label */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"]::after,
body.pkp_page_login a[href*="/index.php/ecm/search"]::after{
  content: "Help" !important;
  text-indent: 0 !important;

  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgb(34, 34, 34) !important;

  white-space: nowrap !important;
  pointer-events: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — FIX "Help" TEXT CUTTING
   Make "Help" flow normally (not absolutely positioned), and avoid overflow clipping.
   ========================================================= */

/* Reset the /search link to avoid clipping */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login a[href*="/index.php/ecm/search"]{
  overflow: visible !important;
  text-indent: 0 !important;
  font-size: 0 !important;       /* fully hide original text rendering */
  line-height: 0 !important;
  color: transparent !important;
  position: relative !important;
}

/* Keep any inner spans/icons hidden */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"] *,
body.pkp_page_login a[href*="/index.php/ecm/search"] *{
  display: none !important;
}

/* Render Help as normal inline content (so it won't get cropped) */
body.pkp_page_login a[href="https://energyconversions.org/index.php/ecm/search"]::after,
body.pkp_page_login a[href*="/index.php/ecm/search"]::after{
  content: "Help" !important;
  display: inline-block !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 17.3333px !important;
  font-weight: 400 !important;
  color: rgb(34, 34, 34) !important;

  white-space: nowrap !important;
  pointer-events: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — FINAL: HIDE "Search in this journal" TEXT, SHOW ONLY "Help"
   (More specific selector + text-indent + font-size:0 to prevent overrides)
   ========================================================= */
body.pkp_page_login ul#navigationPrimary a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"]{
  position: relative !important;
  overflow: hidden !important;

  /* Hide any existing label reliably */
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
  text-indent: -9999px !important;
  white-space: nowrap !important;
}

/* Hide any wrapped spans/icons inside the link */
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"] *{
  display: none !important;
}

/* Render only "Help" */
body.pkp_page_login ul#navigationPrimary a[href="https://energyconversions.org/index.php/ecm/search"]::after,
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"]::after{
  content: "Help" !important;
  display: inline-block !important;

  /* Reset hiding */
  text-indent: 0 !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 17.3333px !important;
  font-weight: 400 !important;
  color: rgb(34, 34, 34) !important;

  /* Ensure it sits normally within the padded link */
  pointer-events: none !important;
  white-space: nowrap !important;
}


/* =========================================================
   LOGIN PAGE ONLY — FIX: HELP TEXT CUT AGAIN
   Keep hiding original label, but don't clip the ::after text.
   ========================================================= */
body.pkp_page_login ul#navigationPrimary a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"]{
  overflow: visible !important; /* was hidden; this was cutting Help */
}

/* Keep the original label pushed away without needing overflow:hidden */
body.pkp_page_login ul#navigationPrimary a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"]{
  text-indent: -9999px !important;
}

/* Ensure Help draws inside the padded area */
body.pkp_page_login ul#navigationPrimary a[href="https://energyconversions.org/index.php/ecm/search"]::after,
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"]::after{
  position: relative !important;
  left: 0 !important;
}


/* =========================================================
   LOGIN PAGE ONLY — FIX: "Help" DISAPPEARED
   Hide original label by making it transparent (not by font-size/indent),
   then draw "Help" on top via ::after.
   ========================================================= */
body.pkp_page_login ul#navigationPrimary a[href="https://energyconversions.org/index.php/ecm/search"],
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"]{
  position: relative !important;
  overflow: visible !important;

  /* keep link sizing/spacing normal */
  font-size: 14px !important;
  line-height: 17.3333px !important;

  /* hide the original text safely */
  color: transparent !important;
  text-shadow: none !important;
  text-decoration-color: transparent !important;
  text-indent: 0 !important;
}

/* hide any inner spans/icons inside the link */
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"] *{
  display: none !important;
}

/* show only "Help" */
body.pkp_page_login ul#navigationPrimary a[href="https://energyconversions.org/index.php/ecm/search"]::after,
body.pkp_page_login ul#navigationPrimary a[href*="/index.php/ecm/search"]::after{
  content: "Help" !important;

  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2 !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 17.3333px !important;
  font-weight: 400 !important;
  color: rgb(34, 34, 34) !important;

  white-space: nowrap !important;
  pointer-events: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — REMOVE TOP WHITE AREA ABOVE HEADER
   ========================================================= */
body.pkp_page_login{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.pkp_page_login .pkp_structure_page,
body.pkp_page_login .pkp_structure_head,
body.pkp_page_login header#headerNavigationContainer,
body.pkp_page_login .pkp_head_wrapper{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Some themes reserve space via content wrapper */
body.pkp_page_login .pkp_structure_content{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove any spacer pseudo element above header/content */
body.pkp_page_login .pkp_structure_content::before,
body.pkp_page_login .pkp_structure_page::before,
body.pkp_page_login .pkp_structure_head::before{
  content: none !important;
  display: none !important;
}


/* =========================================================
   LOGIN PAGE ONLY — ADD LOGO IMAGE INSIDE HEADER (CSS-only)
   Can't insert real <img> via CSS, so we render it as a header pseudo-element.
   ========================================================= */
body.pkp_page_login header#headerNavigationContainer::after{
  content: "" !important;
  position: absolute !important;

  /* left aligned in header */
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 40px !important;
  height: 40px !important;

  background-image: url("https://i.imgur.com/Q61JjaS.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;

  border-width: 0 !important;
  pointer-events: none !important; /* keep clicks working */
  z-index: 202 !important;
}

/* Push the "Energy Conversions" title to the right so it doesn't overlap the logo */
body.pkp_page_login header#headerNavigationContainer::before{
  padding-left: 64px !important;
}


/* =========================================================
   LOGIN PAGE ONLY — LOGO DIDN'T SHOW: USE pkp_head_wrapper PSEUDO (MORE RELIABLE)
   Also add multiple URL fallbacks (png/jpg/jpeg).
   ========================================================= */

/* Ensure header wrapper is a positioning context */
body.pkp_page_login header#headerNavigationContainer .pkp_head_wrapper{
  position: relative !important;
  min-height: 80px !important;
}

/* Draw the logo as a pseudo-element on the wrapper (not on header::after) */
body.pkp_page_login header#headerNavigationContainer .pkp_head_wrapper::before{
  content: "" !important;
  position: absolute !important;

  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 40px !important;
  height: 40px !important;

  background-image:
    url("https://i.imgur.com/Q61JjaS.png"),
    url("https://i.imgur.com/Q61JjaS.jpg"),
    url("https://i.imgur.com/Q61JjaS.jpeg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;

  border: 0 !important;
  z-index: 50 !important;
  pointer-events: none !important;
}

/* If any previous header::after exists, neutralize it to avoid conflicts */
body.pkp_page_login header#headerNavigationContainer::after{
  content: none !important;
  display: none !important;
}

/* Keep the title clear of the logo */
body.pkp_page_login header#headerNavigationContainer::before{
  padding-left: 72px !important;
}


/* LOGIN PAGE ONLY — MOVE HEADER LOGO 10px UP */
body.pkp_page_login header#headerNavigationContainer .pkp_head_wrapper::before{
  top: calc(50% - 25px) !important;
}


/* LOGIN PAGE ONLY — HEADER HEIGHT ~80px (THICKER) */
body.pkp_page_login header#headerNavigationContainer{
  height: 80px !important;
  min-height: 80px !important;
}
body.pkp_page_login header#headerNavigationContainer .pkp_head_wrapper{
  min-height: 80px !important;
}


/* LOGIN PAGE ONLY — MOVE NAVIGATION BAR 30px DOWN */
body.pkp_page_login ul#navigationPrimary{
    margin-top: -10px !important; /* moved down 20px total (10px less) */
}


/* =========================================================
   LOGIN PAGE ONLY — SHIFT EVERYTHING BELOW THE NAV BAR DOWN 100px
   ========================================================= */
body.pkp_page_login .pkp_structure_content,
body.pkp_page_login .pkp_structure_main,
body.pkp_page_login main.pkp_structure_main{
  padding-top: 65px !important;
}


/* =========================================================
   LOGIN PAGE ONLY — WELCOME TABLE (RIGHT BELOW NAV BAR)
   ========================================================= */
body.pkp_page_login .pkp_structure_content{
  position: relative !important;
}

body.pkp_page_login .pkp_structure_content::before{
  content: "" !important;
  display: table !important;
  box-sizing: border-box !important;

  width: 780.0px !important;
  height: 61.3281px !important;

  border-collapse: separate !important;
  border: 1px solid rgb(128, 128, 128) !important;

  /* mimic cellspacing=4 */
  border-spacing: 4px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  text-align: start !important;
  text-indent: 0 !important;
  unicode-bidi: isolate !important;
  white-space: normal !important;

  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22780.0%22%20height%3D%2261.3281%22%20viewBox%3D%220%200%20780.0%2061.3281%22%3E%0A%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22780.0%22%20height%3D%2261.3281%22%20fill%3D%22%23000000%22/%3E%0A%20%20%3Ctext%20x%3D%22390.0%22%20y%3D%2222%22%20text-anchor%3D%22middle%22%20fill%3D%22%23ffffff%22%20font-family%3D%22Arial%22%20font-size%3D%2218%22%3E%0A%20%20%20%20%3Ctspan%3EWelcome%20to%20Editor%20Manager%3C/tspan%3E%0A%20%20%20%20%3Ctspan%20baseline-shift%3D%22super%22%20font-size%3D%2212%22%3E%C2%AE%3C/tspan%3E%0A%20%20%20%20%3Ctspan%3E%20for%3C/tspan%3E%0A%20%20%3C/text%3E%0A%20%20%3Ctext%20x%3D%22390.0%22%20y%3D%2248%22%20text-anchor%3D%22middle%22%20fill%3D%22%23ffffff%22%20font-family%3D%22Arial%22%20font-size%3D%2222%22%20font-weight%3D%22700%22%3E%0A%20%20%20%20%3Ctspan%3EEnergy%20Conversions%3C/tspan%3E%0A%20%20%3C/text%3E%0A%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 780.0px 61.3281px !important;
}


/* =========================================================
   LOGIN PAGE ONLY — MOVE EVERYTHING BELOW THE WELCOME TABLE UP 50px
   (Reduce the extra top padding we added for the content)
   ========================================================= */
body.pkp_page_login .pkp_structure_content,
body.pkp_page_login .pkp_structure_main,
body.pkp_page_login main.pkp_structure_main{
      padding-top: 35px !important; /* was 65px; moved up by 30px */
}


/* =========================================================
   LOGIN PAGE ONLY — RESTORE "Insert Special Character"
   Force visibility for common OJS/EM-like helpers if they were hidden.
   ========================================================= */
body.pkp_page_login a,
body.pkp_page_login .insertSpecialCharacter,
body.pkp_page_login #insertSpecialCharacter,
body.pkp_page_login .specialCharacter,
body.pkp_page_login .special_char,
body.pkp_page_login .pkp_helpers,
body.pkp_page_login .cmp_form .help,
body.pkp_page_login .cmp_form .pkp_help,
body.pkp_page_login .cmp_form .pkp_form_help,
body.pkp_page_login .cmp_form .formRequired,
body.pkp_page_login .cmp_form .formError{
  visibility: visible !important;
}

/* If it was hidden via display:none on a helper/link wrapper, re-enable */
body.pkp_page_login .pkp_helpers,
body.pkp_page_login .cmp_form .pkp_form_help,
body.pkp_page_login .cmp_form .pkp_help{
  display: block !important;
}
body.pkp_page_login a.insertSpecialCharacter,
body.pkp_page_login a#insertSpecialCharacter{
  display: inline !important;
}






/* =========================================================
   LOGIN PAGE ONLY — INSERT "Insert Special Character" TOP-RIGHT ABOVE LOGIN BOX
   (Outside the box, aligned to the right)
   ========================================================= */

/* Anchor on the login main content area */
body.pkp_page_login .pkp_structure_main{
  position: relative !important;
}

/* Place the label near the top-right of the login panel area */
body.pkp_page_login .pkp_structure_main::before{
  content: "Insert Special Character" !important;
  position: absolute !important;

  /* Top-right above the login box */
  top: 0px !important;
  right: 0px !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgb(0, 52, 98) !important;

  text-decoration: underline !important;
  cursor: pointer !important;

  z-index: 50 !important;
  pointer-events: none !important;
}


/* =========================================================
   REGISTER PAGE ONLY — REMOVE TOP IMAGE + RESET OLD CUSTOM NAV
   THEN REUSE THE SAME HEADER + NAV STYLE AS LOGIN PAGE
   ========================================================= */

/* ---- 1) Remove any “top image/banner” previously injected on register ---- */
body.pkp_page_user_register::before,
body.pkp_page_user_register::after,
body.pkp_page_register::before,
body.pkp_page_register::after,
body.pkp_op_register::before,
body.pkp_op_register::after,
body.pkp_page_user_register .pkp_structure_head::before,
body.pkp_page_user_register .pkp_structure_head::after,
body.pkp_page_register .pkp_structure_head::before,
body.pkp_page_register .pkp_structure_head::after,
body.pkp_op_register .pkp_structure_head::before,
body.pkp_op_register .pkp_structure_head::after{
  content: none !important;
  display: none !important;
}

/* Hide any header images that were added earlier */
body.pkp_page_user_register .pkp_structure_head img,
body.pkp_page_register .pkp_structure_head img,
body.pkp_op_register .pkp_structure_head img{
  display: none !important;
}

/* Neutralize header pseudo layers on register (we recreate below) */
body.pkp_page_user_register header#headerNavigationContainer::before,
body.pkp_page_user_register header#headerNavigationContainer::after,
body.pkp_page_register header#headerNavigationContainer::before,
body.pkp_page_register header#headerNavigationContainer::after,
body.pkp_op_register header#headerNavigationContainer::before,
body.pkp_op_register header#headerNavigationContainer::after{
  content: none !important;
  display: none !important;
}

/* ---- 2) Apply SAME header bar as login ---- */
body.pkp_page_user_register header#headerNavigationContainer,
body.pkp_page_register header#headerNavigationContainer,
body.pkp_op_register header#headerNavigationContainer{
  position: relative !important;
  height: 80px !important;
  min-height: 80px !important;
  background: rgb(0, 52, 98) !important;

  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  z-index: 201 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Ensure header wrapper exists and is positioning context */
body.pkp_page_user_register header#headerNavigationContainer .pkp_head_wrapper,
body.pkp_page_register header#headerNavigationContainer .pkp_head_wrapper,
body.pkp_op_register header#headerNavigationContainer .pkp_head_wrapper{
  position: relative !important;
  min-height: 80px !important;
}

/* Logo (same as login) */
body.pkp_page_user_register header#headerNavigationContainer .pkp_head_wrapper::before,
body.pkp_page_register header#headerNavigationContainer .pkp_head_wrapper::before,
body.pkp_op_register header#headerNavigationContainer .pkp_head_wrapper::before{
  content: "" !important;
  position: absolute !important;

  left: 16px !important;
  top: calc(50% - 25px) !important;

  width: 40px !important;
  height: 40px !important;

  background-image:
    url("https://i.imgur.com/Q61JjaS.png"),
    url("https://i.imgur.com/Q61JjaS.jpg"),
    url("https://i.imgur.com/Q61JjaS.jpeg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;

  border: 0 !important;
  z-index: 50 !important;
  pointer-events: none !important;
}

/* Journal name inside header */
body.pkp_page_user_register header#headerNavigationContainer::before,
body.pkp_page_register header#headerNavigationContainer::before,
body.pkp_op_register header#headerNavigationContainer::before{
  content: "Energy Conversions" !important;

  position: absolute !important;
  left: 0 !important;
  top: 0 !important;

  height: 80px !important;
  display: flex !important;
  align-items: center !important;

  padding-left: 72px !important;

  color: rgb(255, 255, 255) !important;
  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 400 !important;

  width: 326.083px !important;
  text-align: left !important;
  unicode-bidi: isolate !important;
  word-break: break-word !important;

  pointer-events: none !important;
  z-index: 202 !important;
}

/* ---- 3) Apply SAME navigation bar styling as login ---- */
body.pkp_page_user_register ul#navigationPrimary,
body.pkp_page_register ul#navigationPrimary,
body.pkp_op_register ul#navigationPrimary{
  position: relative !important;
  z-index: 100 !important;

  background: rgb(223, 227, 230) !important;
  border: 0 !important;
  box-shadow: none !important;

  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  margin-top: -10px !important;

  padding-left: 162px !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;

  display: flex !important;
  align-items: center !important;
}

/* Remove extra strip/wrapper line */
body.pkp_page_user_register .pkp_navigation_primary_wrapper,
body.pkp_page_register .pkp_navigation_primary_wrapper,
body.pkp_op_register .pkp_navigation_primary_wrapper{
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.pkp_page_user_register .pkp_navigation_primary_wrapper::before,
body.pkp_page_user_register .pkp_navigation_primary_wrapper::after,
body.pkp_page_register .pkp_navigation_primary_wrapper::before,
body.pkp_page_register .pkp_navigation_primary_wrapper::after,
body.pkp_op_register .pkp_navigation_primary_wrapper::before,
body.pkp_op_register .pkp_navigation_primary_wrapper::after{
  content: none !important;
  display: none !important;
}

/* Nav link text */
body.pkp_page_user_register ul#navigationPrimary > li > a,
body.pkp_page_register ul#navigationPrimary > li > a,
body.pkp_op_register ul#navigationPrimary > li > a{
  color: rgb(34, 34, 34) !important;
  cursor: pointer !important;
  display: inline-block !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 17.3333px !important;

  padding: 12px 16px !important;
  text-decoration: none !important;

  white-space: nowrap !important;
}

/* ---- 4) Hide unwanted nav items (keep: Home, Submit, About, Help) ---- */
body.pkp_page_user_register ul#navigationPrimary li:has(a[href*="/issue/"]),
body.pkp_page_register ul#navigationPrimary li:has(a[href*="/issue/"]),
body.pkp_op_register ul#navigationPrimary li:has(a[href*="/issue/"]),
body.pkp_page_user_register ul#navigationPrimary li:has(a[href*="/Guideforauthors"]),
body.pkp_page_register ul#navigationPrimary li:has(a[href*="/Guideforauthors"]),
body.pkp_op_register ul#navigationPrimary li:has(a[href*="/Guideforauthors"]),
body.pkp_page_user_register ul#navigationPrimary li:has(a[href*="/Orderjournal"]),
body.pkp_page_register ul#navigationPrimary li:has(a[href*="/Orderjournal"]),
body.pkp_op_register ul#navigationPrimary li:has(a[href*="/Orderjournal"]),
body.pkp_page_user_register ul#navigationPrimary li:has(a[href="#"] > span),
body.pkp_page_register ul#navigationPrimary li:has(a[href="#"] > span),
body.pkp_op_register ul#navigationPrimary li:has(a[href="#"] > span){
  display: none !important;
}

/* Rename /search label to Help */
body.pkp_page_user_register ul#navigationPrimary a[href*="/index.php/ecm/search"],
body.pkp_page_register ul#navigationPrimary a[href*="/index.php/ecm/search"],
body.pkp_op_register ul#navigationPrimary a[href*="/index.php/ecm/search"]{
  color: transparent !important;
  text-decoration-color: transparent !important;
  position: relative !important;
}
body.pkp_page_user_register ul#navigationPrimary a[href*="/index.php/ecm/search"]::after,
body.pkp_page_register ul#navigationPrimary a[href*="/index.php/ecm/search"]::after,
body.pkp_op_register ul#navigationPrimary a[href*="/index.php/ecm/search"]::after{
  content: "Help" !important;
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  font-family: Roboto, arial, helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 17.3333px !important;
  font-weight: 400 !important;
  color: rgb(34, 34, 34) !important;

  pointer-events: none !important;
  white-space: nowrap !important;
}

/* ---- 5) Remove top whitespace on register ---- */
body.pkp_page_user_register,
body.pkp_page_register,
body.pkp_op_register{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Keep page content comfortably below nav */
body.pkp_page_user_register .pkp_structure_content,
body.pkp_page_register .pkp_structure_content,
body.pkp_op_register .pkp_structure_content{
  padding-top: 65px !important;
}
/* =========================================================
   FOOTER FIX (v002) — restore normal footer height/spacing
   Applies everywhere EXCEPT login + register pages
   ========================================================= */
body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer{
  position: relative !important;
  background: #fff !important;
  border-top: 1px solid #ff6c00 !important;

  /* Make it span full viewport width cleanly */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  /* Normal layout */
  margin-top: 40px !important;
  padding: 22px 20px 22px 125px !important; /* room for icon on the left (text moved 40px left) */
  height: auto !important;
  min-height: 110px !important;
  box-sizing: border-box !important;
  overflow: visible !important;

  /* Undo any collapsing rules */
  line-height: 1.4 !important;
}

body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer *{
  line-height: inherit !important;
  color: #333 !important;
}

body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer p{
  margin: 0 0 6px 0 !important;
}
body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer p:last-child{
  margin-bottom: 0 !important;
}

/* Footer links */
body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer a{
  color: #003a8c !important;
  text-decoration: none !important;
}
body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer a:hover{
  color: #ff6c00 !important;
  text-decoration: underline !important;
}

/* Keep your footer icon, but make sure it's positioned correctly */
body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer::after{
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 34px !important;
  top: 28px !important;
  width: 85px !important;
  height: 85px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-image: url('https://i.imgur.com/yblBYRq.png') !important;
  background-image: image-set(
    url('https://i.imgur.com/yblBYRq.png') type('image/png'),
    url('https://i.imgur.com/yblBYRq.jpg') type('image/jpeg')
  ) !important;
  pointer-events: none !important;
}

/* Mobile: reduce left padding + icon size */
@media (max-width: 600px){
  body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer{
    padding-left: 80px !important; /* text moved 40px left */
    padding-right: 14px !important;
    min-height: 86px !important;
  }
  body:not(.pkp_page_login):not(.pkp_op_register) .pkp_structure_footer::after{
    left: 20px !important;
    top: 22px !important;
    width: 58px !important;
    height: 58px !important;
  }
}
/* =========================================================
   Hide "ScienceDirects" nav item (keep it in HTML, not visible)
   ========================================================= */

/* Best option (modern browsers): hide the whole <li> that contains the exact link */
.pkp_navigation_user li.profile:has(> a[href="https://energyconversions.org/index.php/ecm/ScienceDirects"]) {
  /* Keep the container/space, but make it invisible */
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Fallback: if :has() isn't supported, at least hide the <a> */
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ScienceDirects"] {
  visibility: hidden !important;
  pointer-events: none !important;
}



body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_head{
    position: relative !important;
}

/* =====================================================================================
   GLOBAL TOP-LEFT CORNER IMAGE (ALL PAGES EXCEPT LOGIN & REGISTER)
   Image: https://imgur.com/p49oQJi  (use direct asset URL for CSS)
   NOTE: If it doesn't render, try switching .png to .jpg in the URL below.
   ===================================================================================== */
body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_head{overflow: visible !important;}

body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_head::before{
    content: "" !important;
    position: absolute !important;
    top: -42px !important; /* moved up 50px */
    left: 10px !important;

    width:  140px !important;
    height:  140px !important;

    background-image: url("https://i.imgur.com/p49oQJi.png") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: left top !important;

    z-index: 50 !important;
    pointer-events: none !important;
}

/* Slightly smaller on mobile */
@media (max-width: 768px){
  body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_head::before{
    top: 6px !important;
    left: 6px !important;
    width:  100px !important;
    height:  100px !important;
  }
}


/* ============================================================
   ISSUE VIEW PAGE ONLY ( /issue/view/ )
   Push content under the LOWER (primary) navigation down by 50px
   NOTE: This targets ONLY the issue *view* operation, NOT archive.
   ============================================================ */
body.pkp_page_issue.pkp_op_view .page_issue,
body.pkp_page_issue.pkp_op_view #main-content,
body.pkp_page_issue.pkp_op_view .pkp_structure_main,
body.pkp_page_issue.pkp_op_view .pkp_structure_content {
  padding-top: 50px !important;
}


/* ============================================================
   ARTICLE LANDING PAGE ONLY (/article/view/*)
   Align PDF button with "Download full issue" link
   Requirement: PDF must be 20px to the LEFT of "Download full issue"
   ============================================================ */
body.pkp_page_article a.obj_galley_link.pdf{
  /* Match the same relative shift used for the "Download full issue" nav item */
  position: relative !important;
  top: -360px !important;
left: -440px !important; /* moved right +10px */

  /* Place PDF to the left of the reference line by its own width + 20px gap */
  transform: translateX(calc(-100% - 20px)) !important;

  display: inline-block !important;
  z-index: 2000 !important;
}


/* =========================================================
   Article landing page only: SHOW the volume title link
   Target: <a class="title" href=".../issue/view/...">2025 — Volumes 5</a>
   ========================================================= */

/* Undo any breadcrumb hiding rules, but ONLY on /article/view/* */
body.pkp_page_article .cmp_breadcrumbs,
body.pkp_page_article nav.cmp_breadcrumbs,
body.pkp_page_article .cmp_breadcrumbs * {
    display: revert !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fallback if the browser doesn't support display: revert */
body.pkp_page_article .cmp_breadcrumbs { display: block !important; }
body.pkp_page_article .cmp_breadcrumbs li { display: inline !important; }
body.pkp_page_article .cmp_breadcrumbs a { display: inline !important; }

/* Force the specific volume title link to be visible */
body.pkp_page_article a.title[href*="/issue/view/"] {
    display: inline !important;
    visibility: visible !important;
}

/* Also ensure the 'Issue' metadata block link is visible (same link) */
body.pkp_page_article .item.issue,
body.pkp_page_article .item.issue a {
    display: block !important;
    visibility: visible !important;
}


/* =========================================================
   ARTICLE VIEW ONLY: Center the volume title above H1 title
   Targets: /index.php/ecm/article/view/*
   Element: breadcrumbs volume link <a class="title" ...>2025 — Volumes 5</a>
   ========================================================= */
body.pkp_page_article nav.cmp_breadcrumbs,
body.pkp_page_article .cmp_breadcrumbs {
  position: relative !important;
}

/* Breadcrumb list wrapper (OJS may use ol or ul) */
body.pkp_page_article .cmp_breadcrumbs ol,
body.pkp_page_article .cmp_breadcrumbs ul {
  position: relative !important;
  padding-bottom: 32px !important; /* space for the centered volume link */
}

/* 3rd breadcrumb item is the volume link (Home / Archives / Volume / Section) */
body.pkp_page_article .cmp_breadcrumbs li:nth-child(3) {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(calc(-50% - 145px)) !important;
  top: 100% !important;            /* place right under the breadcrumb row */
  margin-top: 91px !important;
  width: max-content !important;
  white-space: nowrap !important;
  z-index: 50 !important;
}

/* Remove trailing separator for the moved volume breadcrumb, if any */
body.pkp_page_article .cmp_breadcrumbs li:nth-child(3)::after,
body.pkp_page_article .cmp_breadcrumbs li:nth-child(3)::before {
  content: none !important;
  display: none !important;
}

body.pkp_page_article .cmp_breadcrumbs li:nth-child(3) a.title {
  display: inline-block !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* Ensure the H1 doesn't collide with the moved volume title */
body.pkp_page_article .page_article h1,
body.pkp_page_article .page_article .obj_article_details > h1 {
  margin-top: 18px !important;
}


/* =========================================================
   ARTICLE VIEW ONLY: Hide current breadcrumb "Research Articles"
   Element: <span aria-current="page">Research Articles</span>
   ========================================================= */
body.pkp_page_article .cmp_breadcrumbs li:last-child,
body.pkp_page_article nav.cmp_breadcrumbs li:last-child {
  display: none !important;
}

/* Fallback: hide any aria-current span inside breadcrumbs on article view */
body.pkp_page_article .cmp_breadcrumbs [aria-current="page"] {
  display: none !important;
}


/* =========================================================
   ARTICLE VIEW ONLY: Hide breadcrumb link "Archives"
   Element: <a href=".../issue/archive">Archives</a>
   ========================================================= */
body.pkp_page_article .cmp_breadcrumbs a[href*="/issue/archive"],
body.pkp_page_article nav.cmp_breadcrumbs a[href*="/issue/archive"] {
  display: none !important;
}

/* Hide the breadcrumb item that contains the Archives link (and its separator) */
body.pkp_page_article .cmp_breadcrumbs li:has(a[href*="/issue/archive"]) {
  display: none !important;
}


/* =========================================================
   ARTICLE VIEW ONLY: Hide breadcrumb link "Home"
   Element: <a href=".../index.php/ecm/index">Home</a>
   ========================================================= */
body.pkp_page_article .cmp_breadcrumbs a[href$="/index.php/ecm/index"],
body.pkp_page_article nav.cmp_breadcrumbs a[href$="/index.php/ecm/index"] {
  display: none !important;
}

/* Also hide the whole breadcrumb item if supported */
body.pkp_page_article .cmp_breadcrumbs li:has(a[href$="/index.php/ecm/index"]) {
  display: none !important;
}


/* =========================================================
   ARTICLE VIEW ONLY: Remove leftover breadcrumb separators (e.g., trailing "/")
   and make volume link positioning robust (not dependent on nth-child)
   ========================================================= */

/* Remove any separators/pseudo content inside breadcrumbs */
body.pkp_page_article .cmp_breadcrumbs li::before,
body.pkp_page_article .cmp_breadcrumbs li::after,
body.pkp_page_article nav.cmp_breadcrumbs li::before,
body.pkp_page_article nav.cmp_breadcrumbs li::after {
  content: none !important;
  display: none !important;
}

/* Robust positioning: the volume link itself */
body.pkp_page_article nav.cmp_breadcrumbs,
body.pkp_page_article .cmp_breadcrumbs {
  position: relative !important;
}

body.pkp_page_article .cmp_breadcrumbs a.title[href*="/issue/view/"] {
  position: absolute !important;
  left: 50% !important;
  top: 100% !important;
  transform: translateX(calc(-50% - 145px)) !important; /* keep your current left shift */
  margin-top: 91px !important;                          /* keep your current down shift */
  white-space: nowrap !important;
  z-index: 60 !important;
  display: inline-block !important;
  text-align: center !important;
}

/* If the volume link is inside an li that still takes space, collapse it */
body.pkp_page_article .cmp_breadcrumbs li:has(a.title[href*="/issue/view/"]) {
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
}


/* =========================================================
   ARTICLE VIEW ONLY: Remove the custom injected text "Volume 101, 2025"
   (the old ::before override on .obj_article_details .title)
   ========================================================= */
body.pkp_page_article .page_article .obj_article_details .title,
body.pkp_page_article .page_article .obj_article_details .title::before {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
}

/* Fallback: sometimes the issue label uses .item.issue .value .title */
body.pkp_page_article .page_article .item.issue .value .title,
body.pkp_page_article .page_article .item.issue .value .title::before {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
}


/* =========================================================
   ARTICLE VIEW ONLY: Move the article content block up
   Target: <article class="obj_article_details"> ... </article>
   ========================================================= */
body.pkp_page_article article.obj_article_details {
  position: relative !important;
  top: -40px !important; /* move up */
}


/* =========================================================
   ARTICLE VIEW ONLY: Move the PDF galley link up by 20px
   Target: <a class="obj_galley_link pdf">PDF</a>
   ========================================================= */
body.pkp_page_article a.obj_galley_link.pdf {
  position: relative !important;
  top: -400px !important;
}


/* =========================================================
   ARTICLE VIEW ONLY: Hide breadcrumb separator span "/"
   Element: <span class="separator">/</span>
   ========================================================= */
body.pkp_page_article .cmp_breadcrumbs span.separator,
body.pkp_page_article nav.cmp_breadcrumbs span.separator {
  display: none !important;
}


/* =========================================================
   v055 FOOTER FIX (prevents footer overlapping article content)
   - Cancels negative margin hacks
   - Restores readable line-height
   - Adds safe padding so the icon doesn't collide with text
   ========================================================= */

/* Apply everywhere except login/register (keep those pages untouched) */
body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer{
  margin-top: 40px !important;
  padding: 26px 20px 26px 150px !important;
  padding-top: 26px !important;
  padding-bottom: 26px !important;
  line-height: 1.35 !important;
  min-height: 110px !important;
  clear: both !important;
}

/* Reset any negative margin/line-height applied to footer children */
body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer p,
body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer span,
body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer div{
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 1.35 !important;
}

/* Keep paragraphs compact but readable */
body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer p{
  margin: 0 0 6px 0 !important;
}
body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer p:last-child{
  margin-bottom: 0 !important;
}

/* Ensure the footer icon stays nicely aligned */
body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer::after{
  top: 22px !important;
  left: 34px !important;
  width: 85px !important;
  height: 85px !important;
}

/* Mobile: reduce left padding + icon size */
@media (max-width: 600px){
  body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer{
    padding-left: 86px !important;
    padding-right: 14px !important;
    min-height: 86px !important;
  }
  body:not(.pkp_page_login):not(.pkp_op_login):not(.pkp_op_register):not(.pkp_page_register) .pkp_structure_footer::after{
    left: 20px !important;
    top: 22px !important;
    width: 58px !important;
    height: 58px !important;
  }
}



/* =========================================================
   ISSUE PAGES ONLY: push page body below the header + lower nav
   Targets: /index.php/ecm/issue/* (view, current, etc.)
   Excludes: issue archive (if it uses pkp_page_issue_archive)
   ========================================================= */

body.pkp_page_issue:not(.pkp_page_issue_archive) #main-content,
body.pkp_page_issue:not(.pkp_page_issue_archive) .pkp_structure_main,
body.pkp_page_issue:not(.pkp_page_issue_archive) .pkp_structure_content {
  /* Add breathing room so “Download PDFs / Export citations …” is not hidden */
  padding-top: 80px !important;   /* adjust 60–120 if needed */
}

/* Guard against any previous negative/zero spacing rules on issue pages */
body.pkp_page_issue:not(.pkp_page_issue_archive) .pkp_structure_page,
body.pkp_page_issue:not(.pkp_page_issue_archive) #main-content {
  margin-top: 0 !important;
}

/* If any theme rule pulls the issue header upward, neutralize it */
body.pkp_page_issue:not(.pkp_page_issue_archive) .page_issue,
body.pkp_page_issue:not(.pkp_page_issue_archive) .page_issue_header {
  top: auto !important;
}

/* =========================================================
   ISSUE PAGES ONLY: push page body below header + lower nav
   Targets /index.php/ecm/issue/* (and excludes /issue/archive)
   ========================================================= */

/* Set a default offset (desktop). Increase/decrease if needed. */
body.pkp_page_issue:not(.pkp_page_issue_archive),
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) {
  --ecm-issue-body-offset: 0px; /* was 80px — header+nav are taller */
}

/* Mobile/tablet: header stacks, so we need more space */
@media (max-width: 992px) {
  body.pkp_page_issue:not(.pkp_page_issue_archive),
  body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) {
    --ecm-issue-body-offset: 40px;
  }
}

/* Apply offset to the main content containers */
body.pkp_page_issue:not(.pkp_page_issue_archive) #main-content,
body.pkp_page_issue:not(.pkp_page_issue_archive) #pkp_content_main,
body.pkp_page_issue:not(.pkp_page_issue_archive) .pkp_structure_main,
body.pkp_page_issue:not(.pkp_page_issue_archive) .pkp_structure_content,
body.pkp_page_issue:not(.pkp_page_issue_archive) .pkp_structure_body,
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) #main-content,
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) #pkp_content_main,
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) .pkp_structure_main,
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) .pkp_structure_content,
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) .pkp_structure_body {
  padding-top: var(--ecm-issue-body-offset) !important;
  margin-top: 0 !important;
}

/* Safety: if any inner wrapper is being pulled upward by negative margins */
body.pkp_page_issue:not(.pkp_page_issue_archive) .page,
body.pkp_page_issue:not(.pkp_page_issue_archive) .obj_issue_toc,
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) .page,
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) .obj_issue_toc {
  margin-top: 0 !important;
}

/* Optional: make anchor jumps not land under the fixed header */
body.pkp_page_issue:not(.pkp_page_issue_archive) html,
body[class*="pkp_page_issue"]:not(.pkp_page_issue_archive) html {
  scroll-padding-top: var(--ecm-issue-body-offset);
}


/* =========================================================
   FIX: Issue top image was pulled up (hidden behind header)
   Push it DOWN on issue pages only
   ========================================================= */
body.pkp_page_issue:not(.pkp_page_issue_archive):not([class*="archive"]) .pkp_structure_content::before {
  margin-top: 40px !important;   /* increase if you want it lower */
}


/* =========================================================
   ISSUE PAGES ONLY: hide "Download full issue" link (specific URL)
   Does NOT affect other pages
   ========================================================= */
body.pkp_page_issue a[href="https://energyconversions.org/index.php/ecm/issue/view/issue201/1"],
body[class*="pkp_page_issue"] a[href="https://energyconversions.org/index.php/ecm/issue/view/issue201/1"]{
  display: none !important;
  visibility: hidden !important;
}


/* =========================================================
   ISSUE ARCHIVE PAGE ONLY — HIDE SELECTED ISSUES (NOT DELETED)
   Hidden: https://energyconversions.org/index.php/ecm/issue/view/2  (2025 — Volumes 1)
   ========================================================= */

/* Preferred selector for modern browsers */
body.pkp_page_issue.pkp_op_archive li:has(a.title[href*="/issue/view/2"]) {
  display: none !important;
}

/* Fallback in case theme body classes differ */
body[class*="pkp_op_archive"] li:has(a.title[href*="/issue/view/2"]) {
  display: none !important;
}


/* Hide “2025 — Volumes 2” issue tile on Issue Archive page only */
body.pkp_page_issue.pkp_op_archive li:has(a.title[href*="/issue/view/3"]) {
  display: none !important;
}

/* fallback in case theme body classes differ */
body[class*="pkp_op_archive"] li:has(a.title[href*="/issue/view/3"]) {
  display: none !important;
}


/* Hide “2025 — Volumes 3” issue tile on Issue Archive page only */
body.pkp_page_issue.pkp_op_archive li:has(a.title[href*="/issue/view/4"]) {
  display: none !important;
}

/* fallback in case theme body classes differ */
body[class*="pkp_op_archive"] li:has(a.title[href*="/issue/view/4"]) {
  display: none !important;
}


/* Hide “2025 — Volumes 4” issue tile on Issue Archive page only */
body.pkp_page_issue.pkp_op_archive li:has(a.title[href*="/issue/view/5"]) {
  display: none !important;
}

/* fallback in case theme body classes differ */
body[class*="pkp_op_archive"] li:has(a.title[href*="/issue/view/5"]) {
  display: none !important;
}


/* Hide “2025 — Volumes 5” issue tile on Issue Archive page only */
body.pkp_page_issue.pkp_op_archive li:has(a.title[href*="/issue/view/6"]) {
  display: none !important;
}

/* fallback in case theme body classes differ */
body[class*="pkp_op_archive"] li:has(a.title[href*="/issue/view/6"]) {
  display: none !important;
}


/* =========================================================
   ISSUE VIEW PAGE ONLY — HIDE ONE ARTICLE LINK IN ONE ISSUE
   Hide: Article 56 ("Full Issue") only when viewing Issue 7
   URL: https://energyconversions.org/index.php/ecm/issue/view/7
   ========================================================= */

/* Scope to Issue View pages AND only when the page contains a link to /issue/view/7 */
body.pkp_page_issue.pkp_op_view:has(a[href*="/issue/view/7"]) a#article-56 {
  display: none !important;
}

/* Fallback (in case theme body classes differ) */
body:has(a[href*="/issue/view/7"]) a#article-56 {
  display: none !important;
}


/* =========================================================
   FIX: The issue page may NOT contain an <a> pointing to /issue/view/7,
   so scope using the canonical URL instead (more reliable).
   ========================================================= */

/* Hide the link itself (most direct) */
body.pkp_page_issue.pkp_op_view:has(link[rel="canonical"][href*="/issue/view/7"]) a[href*="/article/view/56"] {
  display: none !important;
}

/* Hide the whole article list item / block (covers most OJS themes) */
body.pkp_page_issue.pkp_op_view:has(link[rel="canonical"][href*="/issue/view/7"]) li:has(a[href*="/article/view/56"]),
body.pkp_page_issue.pkp_op_view:has(link[rel="canonical"][href*="/issue/view/7"]) article:has(a[href*="/article/view/56"]),
body.pkp_page_issue.pkp_op_view:has(link[rel="canonical"][href*="/issue/view/7"]) .obj_article_summary:has(a[href*="/article/view/56"]) {
  display: none !important;
}

/* Fallback if theme body classes differ */
body:has(link[rel="canonical"][href*="/issue/view/7"]) a[href*="/article/view/56"],
body:has(link[rel="canonical"][href*="/issue/view/7"]) li:has(a[href*="/article/view/56"]),
body:has(link[rel="canonical"][href*="/issue/view/7"]) article:has(a[href*="/article/view/56"]),
body:has(link[rel="canonical"][href*="/issue/view/7"]) .obj_article_summary:has(a[href*="/article/view/56"]) {
  display: none !important;
}


/* =========================================================
   STRONG HIDE: “Full Issue” article link (article 56) on ISSUE VIEW pages
   - Hides by id (#article-56) and by href (/article/view/56)
   - Also hides the surrounding container where supported
   ========================================================= */

/* Hide the link itself */
body.pkp_page_issue.pkp_op_view a#article-56,
body.pkp_page_issue.pkp_op_view a[href*="/article/view/56"] {
  display: none !important;
}

/* Hide the whole article block (modern browsers) */
body.pkp_page_issue.pkp_op_view li:has(a#article-56),
body.pkp_page_issue.pkp_op_view li:has(a[href*="/article/view/56"]),
body.pkp_page_issue.pkp_op_view .obj_article_summary:has(a#article-56),
body.pkp_page_issue.pkp_op_view .obj_article_summary:has(a[href*="/article/view/56"]),
body.pkp_page_issue.pkp_op_view h3:has(a#article-56),
body.pkp_page_issue.pkp_op_view h3:has(a[href*="/article/view/56"]) {
  display: none !important;
}

/* Fallback if theme body classes differ */
body a#article-56,
body a[href*="/article/view/56"] {
  display: none !important;
}


/* =========================================================
   CSS-ONLY FIX (ARTICLE VIEW):
   Keep "PDF" button always on the SAME horizontal row as "Download full issue",
   with a 20px gap to the LEFT of it.

   Why this works: we FIX both elements to the top bar area, so the article title
   height will not push them around.

   You may need to fine-tune the variables below once (top/right).
   ========================================================= */

body.pkp_page_article.pkp_op_view {
  /* adjust these 2 values if needed */
  --ecm-topbar-y: 120px;          /* vertical position for BOTH buttons */
  --ecm-download-right: 40px;     /* right offset for "Download full issue" */
  --ecm-download-width: 18ch;     /* approx width of the text "Download full issue" */
}

/* "Download full issue" link */
body.pkp_page_article.pkp_op_view a[href*="/issue/view/issue"] {
  position: fixed !important;
  top: var(--ecm-topbar-y) !important;
  right: var(--ecm-download-right) !important;
  z-index: 10000 !important;
  white-space: nowrap !important;
}

/* PDF button (keep same vertical level, 20px to the LEFT of the link above) */
body.pkp_page_article.pkp_op_view a.obj_galley_link.pdf,
body.pkp_page_article.pkp_op_view a.obj_galley_link[href*="/article/view/"][class*="pdf"] {
  position: fixed !important;
  top: var(--ecm-topbar-y) !important;
  right: calc(var(--ecm-download-right) + var(--ecm-download-width) + 20px) !important;
  z-index: 10001 !important;
  white-space: nowrap !important;
}


/* =========================================================
   FIX: PDF disappeared — force visibility + higher z-index
   ========================================================= */

/* Force both buttons to be visible even if older CSS hid them */
body.pkp_page_article.pkp_op_view a[href*="/issue/view/issue"],
body.pkp_page_article.pkp_op_view a.obj_galley_link,
body.pkp_page_article.pkp_op_view a.obj_galley_link.pdf {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Stronger selectors for PDF button in different OJS themes */
body.pkp_page_article.pkp_op_view a.obj_galley_link.pdf,
body.pkp_page_article.pkp_op_view .item.galleys a.obj_galley_link,
body.pkp_page_article.pkp_op_view .galleys a.obj_galley_link {
  position: fixed !important;
  top: var(--ecm-topbar-y) !important;
  right: calc(var(--ecm-download-right) + var(--ecm-download-width, 18ch) + 20px) !important;
  z-index: 999999 !important; /* above sticky header */
  white-space: nowrap !important;
}

/* Keep Download full issue above everything too */
body.pkp_page_article.pkp_op_view a[href*="/issue/view/issue"] {
  z-index: 999998 !important;
}


/* =========================================================
   FINAL CSS-ONLY ALIGNMENT (ARTICLE VIEW):
   Put PDF on the SAME row as "Download full issue" and 20px to its left.

   Notes:
   - This overrides earlier experiments by re-defining BOTH elements at the bottom.
   - We intentionally choose a safe top offset that stays BELOW your sticky header.
     If your header is taller, increase --ecm-topbar-y.
   ========================================================= */

body.pkp_page_article.pkp_op_view {
  --ecm-topbar-y: 300px;          /* <- if buttons are hidden behind header, increase (e.g., 200px) */
  --ecm-download-right: 40px;     /* distance from right edge */
  --ecm-download-width: 18ch;     /* approx width of "Download full issue" text */
}

/* "Download full issue" (keep it fixed so title height never affects it) */
body.pkp_page_article.pkp_op_view a[href*="/issue/view/issue"]{
  position: fixed !important;
  top: var(--ecm-topbar-y) !important;
  right: var(--ecm-download-right) !important;
  z-index: 999998 !important;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap !important;
}

/* PDF link (galley) — target the common OJS galley link class AND downloads section */
body.pkp_page_article.pkp_op_view a.obj_galley_link.pdf,
body.pkp_page_article.pkp_op_view .item.downloads a[href*="/article/view/"],
body.pkp_page_article.pkp_op_view .item.downloads a[href*="/article/download/"]{
  position: fixed !important;
  top: var(--ecm-topbar-y) !important;
  right: calc(var(--ecm-download-right) + var(--ecm-download-width) + 20px) !important; /* 20px to the LEFT */
  z-index: 999999 !important;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* If there are multiple download links, ONLY move the one labeled "PDF" (best-effort) */
body.pkp_page_article.pkp_op_view .item.downloads a:not(.obj_galley_link):not([href*="/article/view/"]):not([href*="/article/download/"]) {
  position: static !important;
}


/* =========================================================
   FIX: PDF was moved off-screen by an older rule:
     body.pkp_page_article a.obj_galley_link.pdf { top: -400px !important; }
   This block overrides it and then pins PDF 20px left of "Download full issue"
   on ALL article landing pages.
   ========================================================= */

/* 1) Neutralize any legacy "move PDF up" tweaks */
body.pkp_page_article a.obj_galley_link.pdf {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: initial !important;
}

/* 2) Pin BOTH buttons to the same row (title height won't affect them) */
body.pkp_page_article {
  --ecm-topbar-y: 300px;          /* you asked 300px */
  --ecm-download-right: 40px;     /* distance from right edge */
  --ecm-download-width: 18ch;     /* approx width of "Download full issue" */
}

/* "Download full issue" link (top right) */
body.pkp_page_article a[href*="/issue/view/issue"]{
  position: fixed !important;
  top: var(--ecm-topbar-y) !important;
  right: var(--ecm-download-right) !important;
  z-index: 999998 !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

/* PDF button — same vertical level, 20px to the LEFT of "Download full issue" */
body.pkp_page_article a.obj_galley_link.pdf,
body.pkp_page_article .item a.obj_galley_link,
body.pkp_page_article .item a[href*="/article/view/"],
body.pkp_page_article .item a[href*="/article/download/"]{
  position: fixed !important;
  top: var(--ecm-topbar-y) !important;
  right: calc(var(--ecm-download-right) + var(--ecm-download-width) + 20px) !important;
  z-index: 999999 !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* =========================================================
   CSS-ONLY (NOT FLOATING): Place the PDF button in the PAGE FLOW area
   "calculated" from the cover image (manual variable), so title length
   won't move it around and it won't stick/floating while scrolling.

   What it does:
   - Undo the old fixed/absolute positioning for PDF + Download full issue
   - Reposition the Downloads block (or the PDF link inside it) near the top
     based on --ecm-cover-h + gap.

   You MUST set --ecm-cover-h to match the displayed cover/hero image height.
   ========================================================= */

body.pkp_page_article.pkp_op_view {
  --ecm-cover-h: 300px;         /* <-- set to your visible top image height */
  --ecm-after-cover-gap: 20px;
  --ecm-actions-right: 40px;    /* right padding inside page */
  --ecm-actions-y: calc(var(--ecm-cover-h) + var(--ecm-after-cover-gap) - 200px);
}

/* Responsive tweaks (adjust if needed) */
@media (max-width: 991px) { body.pkp_page_article.pkp_op_view { --ecm-cover-h: 240px; } }
@media (max-width: 575px) { body.pkp_page_article.pkp_op_view { --ecm-cover-h: 200px; } }

/* 1) Stop any previous floating behavior on article pages */
body.pkp_page_article.pkp_op_view a[href*="/issue/view/issue"],
body.pkp_page_article.pkp_op_view a.obj_galley_link.pdf,
body.pkp_page_article.pkp_op_view .item.downloads a[href*="/article/view/"],
body.pkp_page_article.pkp_op_view .item.downloads a[href*="/article/download/"]{
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

/* 2) Put the Downloads (PDF) block near the top of the article page */
body.pkp_page_article.pkp_op_view .item.downloads {
  position: absolute !important;
  top: var(--ecm-actions-y) !important;
  right: var(--ecm-actions-right) !important;
  z-index: 50 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make Downloads title disappear so only the PDF button shows */
body.pkp_page_article.pkp_op_view .item.downloads > .label,
body.pkp_page_article.pkp_op_view .item.downloads h2,
body.pkp_page_article.pkp_op_view .item.downloads .pkp_screen_reader {
  display: none !important;
}

/* Keep the PDF link as a neat button */
body.pkp_page_article.pkp_op_view .item.downloads a.obj_galley_link.pdf,
body.pkp_page_article.pkp_op_view .item.downloads a[href*="/article/view/"],
body.pkp_page_article.pkp_op_view .item.downloads a[href*="/article/download/"]{
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}


/* =========================================================
   HARD OVERRIDE (CSS-only): STOP ANY FLOATING (fixed/sticky) PDF placement
   Then position PDF + Download full issue using ABSOLUTE so they SCROLL with the page.

   This specifically targets the actual OJS galley area: .item.galleys
   ========================================================= */

body.pkp_page_article.pkp_op_view {
  --ecm-cover-h: 300px;          /* tune to your visible top image height */
  --ecm-after-cover-gap: 20px;
  --ecm-actions-y: calc(var(--ecm-cover-h) + var(--ecm-after-cover-gap));
  --ecm-download-right: 40px;
  --ecm-download-width: 18ch;
}

/* Kill ANY previous fixed/sticky/transform rules (most-specific + important) */
body.pkp_page_article.pkp_op_view a[href*="/issue/view/issue"],
body.pkp_page_article.pkp_op_view .item.galleys a.obj_galley_link.pdf,
body.pkp_page_article.pkp_op_view .item.galleys a.obj_galley_link,
body.pkp_page_article.pkp_op_view a.obj_galley_link.pdf {
  position: absolute !important;     /* force non-floating */
  top: var(--ecm-actions-y) !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
  white-space: nowrap !important;
}

/* Place Download full issue at the right */
body.pkp_page_article.pkp_op_view a[href*="/issue/view/issue"] {
  right: var(--ecm-download-right) !important;
}

/* Place PDF 20px to the LEFT of Download full issue */
body.pkp_page_article.pkp_op_view .item.galleys a.obj_galley_link.pdf,
body.pkp_page_article.pkp_op_view a.obj_galley_link.pdf {
  right: calc(var(--ecm-download-right) + var(--ecm-download-width) + 20px) !important;
}


/* =========================================================
   FORCE MOVE UP (in case top calc isn't taking effect):
   Shift BOTH the PDF link and "Download full issue" UP by 200px using transform.
   This works even if other rules interfere with top.
   ========================================================= */
body.pkp_page_article.pkp_op_view a[href*="/issue/view/issue"],
body.pkp_page_article.pkp_op_view a.obj_galley_link.pdf,
body.pkp_page_article.pkp_op_view .item.galleys a,
body.pkp_page_article.pkp_op_view .item.downloads a {
  transform: translateY(-200px) !important;
}


/* =========================================================
   GUARANTEED MOVE (CSS-only, NOT FLOATING):
   Move the PDF block (Downloads/galleys) UP by 200px inside the ARTICLE BODY.
   This does NOT use fixed positioning, so it will scroll normally.
   Targets actual DOM on your site:
     article.obj_article_details > ... > div.item.galleys > ul.galleys_links > a.obj_galley_link.pdf
   Example page: /article/view/48  (PDF at /article/view/48/55)
   ========================================================= */

body.pkp_page_article.pkp_op_view article.obj_article_details {
  position: relative !important; /* create containing block */
}

/* Move the entire galleys (Downloads) block up */
body.pkp_page_article.pkp_op_view article.obj_article_details .item.galleys {
  position: absolute !important;
  top: -200px !important;   /* <-- moves UP by 200px */
  right: 40px !important;   /* keeps it near the right edge */
  z-index: 9999 !important;
  margin: 0 !important;
}

/* Keep only the PDF link visible as a neat button */
body.pkp_page_article.pkp_op_view article.obj_article_details .item.galleys a.obj_galley_link.pdf {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}


/* =========================================================
   TWEAKS:
   1) Move the PDF block 200px to the LEFT
   2) Restore "Download full issue" link on ARTICLE pages (in case older rules hid/moved it)
   ========================================================= */

/* 1) Shift the galleys (PDF) block 200px left */
body.pkp_page_article.pkp_op_view article.obj_article_details .item.galleys {
  transform: translateX(-720px) !important;
}

/* 2) Restore "Download full issue" inside the user navigation (article pages only) */
body.pkp_page_article.pkp_op_view #navigationUser a[href*="/issue/view/issue"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;

  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  z-index: auto !important;
  white-space: nowrap !important;
}


/* Move the PDF block UP by 100px (keep current left shift) */
body.pkp_page_article.pkp_op_view article.obj_article_details .item.galleys {
  transform: translateX(-720px) translateY(-150px) !important;
}


/* Move "Download full issue" DOWN by 100px on article pages */
body.pkp_page_article.pkp_op_view #navigationUser a[href*="/issue/view/issue"] {
  position: relative !important;
  top: 100px !important;
}


/* Move "Download full issue" LEFT by 200px (keep 100px down) on article pages */
body.pkp_page_article.pkp_op_view #navigationUser a[href*="/issue/view/issue"] {
  right: 800px !important;   /* relative positioning + right shifts left */
}


/* =========================================================
   Decorative full-width line UNDER "Download full issue" (article pages only)
   Spans the full viewport width (far left to far right)
   ========================================================= */
body.pkp_page_article.pkp_op_view #navigationUser a[href*="/issue/view/issue"]{
  position: relative !important; /* needed for ::after positioning */
}

body.pkp_page_article.pkp_op_view #navigationUser a[href*="/issue/view/issue"]::after{

content: "" !important;
position: absolute !important;
left: 50% !important;
transform: translateX(-50%) !important;
width: 100vw !important;          /* full viewport width */
top: calc(100% - 17px) !important;/* current position */
height: 0 !important;             /* use border for thickness */
border-top: 1px solid #000 !important;
background: transparent !important;
pointer-events: none !important;
}


/* =========================================================
   FIX: Balance left/right margins of the decorative full-width line.
   Because the "Download full issue" link itself was moved left, the line
   (attached to the link) can look shifted. We compensate by shifting the
   line to the RIGHT a bit.

   Tuning:
     - Increase --ecm-line-shift-x if you still see a right-side margin.
     - Decrease it if the left side starts showing a margin.
   ========================================================= */
body.pkp_page_article.pkp_op_view {
  --ecm-line-shift-x: 400px; /* adjust as needed */
}

body.pkp_page_article.pkp_op_view #navigationUser a[href*="/issue/view/issue"]::after{
  /* keep your existing 1px border line, just shift horizontally */
  left: 50% !important;
  transform: translateX(-50%) translateX(var(--ecm-line-shift-x)) !important;
  width: 100vw !important;
}


/* =========================================================
   EVEN MARGINS: Make the decorative line have equal left/right margins
   (independent of the link being shifted left/right).

   This overrides the previous ::after and pins the line to the viewport:
     - left/right margins are equal (default 40px)
     - you can adjust --ecm-line-margin or --ecm-line-top if needed
   ========================================================= */
body.pkp_page_article.pkp_op_view{
  --ecm-line-margin: 0px;
  --ecm-line-top: 95px; /* vertical position of the line in the header area */
}

body.pkp_page_article.pkp_op_view #navigationUser a[href*="/issue/view/issue"]::after{
  /* keep it thin + black */
  height: 0 !important;
  border-top: 1px solid #000 !important;
  background: transparent !important;

  /* even margins */
  position: fixed !important;
  left: var(--ecm-line-margin) !important;
  right: var(--ecm-line-margin) !important;
  width: auto !important;
  transform: none !important;

  /* vertical placement */
  top: var(--ecm-line-top) !important;
}


/* =========================================================
   EXTEND LINE HORIZONTAL LENGTH 5x (500vw), centered
   ========================================================= */
body.pkp_page_article.pkp_op_view #navigationUser a[href*="/issue/view/issue"]::after{
  left: 50% !important;
  right: auto !important;
  width: 500vw !important;          /* 5x viewport width */
  transform: translateX(-50%) !important;
}
/* =========================================================
   LOGIN PAGE ONLY: remove footer icon injected via ::after
   (targets the rule that sets yblBYRq.png on .pkp_structure_footer::after)
   ========================================================= */
body.pkp_page_login .pkp_structure_footer::after,
body.pkp_page_login .pkp_structure_footer:after {
  content: none !important;
  display: none !important;
  background-image: none !important;
}


/* ============================================================
   FINAL OVERRIDE: Move ONLY the "Make a New Submission" link
   (href="/ecm/submission") 100px to the right
   Place this at the VERY END of the CSS so it overrides earlier rules.
   ============================================================ */
li.new_submission a[href="https://energyconversions.org/index.php/ecm/submission"]{
  margin-left: 100px !important;
}


/* ============================================================
   FIX: "Make a New Submission" disappeared
   Reason: earlier rules used large margin-left (e.g., 800px) which can push it off-screen.
   This override:
   - resets margin-left to 0
   - moves it visually 100px right using transform (won't push it outside layout)
   - matches the link by href (no dependency on li.new_submission class)
   Keep at the VERY END of the CSS.
   ============================================================ */
a[href="https://energyconversions.org/index.php/ecm/submission"],
a[href$="/index.php/ecm/submission"]{
  margin-left: 0 !important;
  transform: translateX(600px) !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* ============================================================
   Move the ENTIRE registration-complete actions list (the <ul>)
   300px to the right:
   <ul class="registration_complete_actions"> ... </ul>
   ============================================================ */
ul.registration_complete_actions{
  margin-left: 0 !important;
  transform: translateX(300px) !important;
}


/* ============================================================
   Move the ENTIRE registration-complete actions list:
   - 300px to the right (keep)
   - UP by 200px (interpreting "up 100 200px" as total 200px up)
   Also reset per-link transforms so the whole block moves together
   (prevents double-shifting from older link-specific rules).
   ============================================================ */
ul.registration_complete_actions{
  margin-left: 0 !important;
  transform: translate(300px, -200px) !important;
}

/* reset older link-specific shifts inside this block */
ul.registration_complete_actions a{
  transform: none !important;
  margin-left: 0 !important;
}


/* ============================================================
   Center ONLY the "Make a New Submission" link inside its grey box area
   (targets: <ul class="registration_complete_actions"> <li class="new_submission">)
   Keeps the other links (Edit Profile / Continue Browsing) unchanged.
   ============================================================ */
ul.registration_complete_actions li.new_submission{
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

ul.registration_complete_actions li.new_submission > a{
  display: inline-block !important;
  margin: 0 !important; /* avoid margin pushing it off */
}


/* ============================================================
   Update position of the WHOLE registration_complete_actions block:
   - Move DOWN by 100px from previous (-200px -> -100px)
   - Move 300px MORE to the right (300px -> 600px)
   ============================================================ */
ul.registration_complete_actions{
  margin-left: 0 !important;
  transform: translate(600px, -100px) !important;
}


/* ============================================================
   50px less (horizontal): 600px -> 550px
   ============================================================ */
ul.registration_complete_actions{
  margin-left: 0 !important;
  transform: translate(550px, -100px) !important;
}


/* ============================================================
   Move UP 50px more: Y -100px -> -150px (X stays 550px)
   ============================================================ */
ul.registration_complete_actions{
  margin-left: 0 !important;
  transform: translate(550px, -150px) !important;
}


/* ============================================================
   Move LEFT 100px: X 550px -> 450px (Y stays -150px)
   ============================================================ */
ul.registration_complete_actions{
  margin-left: 0 !important;
  transform: translate(450px, -150px) !important;
}


/* ============================================================
   Move LEFT 100px more: X 450px -> 350px (Y stays -150px)
   ============================================================ */
ul.registration_complete_actions{
  margin-left: 0 !important;
  transform: translate(350px, -150px) !important;
}


/* ============================================================
   Move ONLY these two links to the right by 200px:
   - "Edit My Profile"  (href="/ecm/user/profile")
   - "Continue Browsing" (href="/ecm/index")
   Scope: within ul.registration_complete_actions
   ============================================================ */
ul.registration_complete_actions li.edit_profile > a,
ul.registration_complete_actions li.browse > a{
  display: inline-block !important;
  transform: translateX(200px) !important;
  margin-left: 0 !important;
}


/* ============================================================
   100px more to the right for these two links: 200px -> 300px
   ============================================================ */
ul.registration_complete_actions li.edit_profile > a,
ul.registration_complete_actions li.browse > a{
  display: inline-block !important;
  transform: translateX(300px) !important;
  margin-left: 0 !important;
}


/* ============================================================
   Put "Edit My Profile" + "Continue Browsing" RIGHT INSIDE the grey box
   (i.e., not pushed outside). This cancels their X-translate and
   centers them within the same grey-box area, like "Make a New Submission".
   ============================================================ */
ul.registration_complete_actions li.edit_profile,
ul.registration_complete_actions li.browse{
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

ul.registration_complete_actions li.edit_profile > a,
ul.registration_complete_actions li.browse > a{
  display: inline-block !important;
  transform: none !important;     /* cancel previous 300px shift */
  margin: 0 !important;
}


/* ============================================================
   Move the grey box (the whole registration_complete_actions block)
   100px to the LEFT:
   X 350px -> 250px (Y stays -150px)
   ============================================================ */
ul.registration_complete_actions{
  margin-left: 0 !important;
  transform: translate(250px, -150px) !important;
}


/* ============================================================
   Move ALL THREE action links to the RIGHT by 100px (inside the grey box):
   - Make a New Submission
   - Edit My Profile
   - Continue Browsing
   Scope: only within ul.registration_complete_actions
   ============================================================ */
ul.registration_complete_actions li.new_submission > a,
ul.registration_complete_actions li.edit_profile > a,
ul.registration_complete_actions li.browse > a{
  display: inline-block !important;
  transform: translateX(100px) !important;
  margin: 0 !important;
}


/* === v136 HOTFIX: Move REGISTER gray box 40px to the right (only /user/register, not ?source=...) === */
/* Exclude ?source pages by checking whether the form action contains 'source=' */
body.pkp_op_register form#register:not([action*="source="]),
body.pkp_page_user.pkp_op_register form#register:not([action*="source="]) {
  position: relative !important;   /* ensure transform anchors as expected */
  transform: translateX(40px) !important;
}

/* ========= Tooltips for Impact Factor + CiteScore (NO text hover change) ========= */
/* Uses :has() to attach tooltip to the parent <li>, keeping your existing ::before/::after metric styling intact. */

/* Prevent any hover text effects on these nav items */
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"],
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]:hover,
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]:focus,
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"],
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]:hover,
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]:focus,
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/CiteScores"]:hover,
.pkp_navigation_user a[href="https://energyconversions.org/index.php/ecm/CiteScores"]:focus,
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/CiteScores"],
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/CiteScores"]:hover,
.pkp_navigation_primary a[href="https://energyconversions.org/index.php/ecm/CiteScores"]:focus{
  text-decoration: none !important;
  color: #ffffff !important;
}

/* Ensure the <li> can position the tooltip */
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]),
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]),
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]),
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]){
  position: relative !important;
  overflow: visible !important;
}

/* Base tooltip box (hidden by default) */
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"])::after,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"])::after,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"])::after,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"])::after{
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;

  width: 275px !important;
  background: rgb(240,240,240) !important;
  color: rgb(76,76,76) !important;
  padding: 8px 16px !important;
  border-top: 2px solid rgb(255,108,0) !important;

  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;

  z-index: 9999 !important;
  box-sizing: border-box !important;

  white-space: normal !important;
  text-align: left !important;

  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-4px) !important;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease !important;

  pointer-events: none !important;
}

/* Tooltip arrow (hidden by default) */
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"])::before,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"])::before,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"])::before,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"])::before{
  content: "" !important;
  position: absolute !important;

  top: calc(100% + 4px) !important;
  right: 18px !important;

  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgb(240,240,240);

  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-4px) !important;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease !important;

  z-index: 10000 !important;
  pointer-events: none !important;
}

/* Specific tooltip text */
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"])::after,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"])::after{
  content: "The Impact Factor measures the average total number of citations received by papers published in the journal in a particular year. 2025 Journal CiteScope Reports (Celerate Analytics, 2025)" !important;
}

.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"])::after,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"])::after{
  content: "The CiteScore measures the average citations per published item over the last 18 months, then scales the value by 18/12 to reflect an 18-month normalized indicator. Formula:(Citations in Y + 0.5 Citations in (Y-1)) /( Number of publication in Y+ 0.5 Number of publication in (Y-1))× (18/12). Journal CiteScope Reports (Celerate Analytics, 2025)" !important;
}

/* Show tooltips on hover or focus-within */
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]):hover::after,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]):hover::before,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]):focus-within::after,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]):focus-within::before,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]):hover::after,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]):hover::before,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]):focus-within::after,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/ImpactFactors"]):focus-within::before,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]):hover::after,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]):hover::before,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]):focus-within::after,
.pkp_navigation_user li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]):focus-within::before,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]):hover::after,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]):hover::before,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]):focus-within::after,
.pkp_navigation_primary li:has(> a[href="https://energyconversions.org/index.php/ecm/CiteScores"]):focus-within::before{
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* ========= FIX: Restore top spacing on Issues pages (archive + current + single issue) ========= */
/* Some themes/pages use different wrappers. We add spacing at multiple reliable containers. */

/* Set a single knob you can tweak */
:root{
  --ecm-issues-top-space: 30px;
}

/* Issue archive listing */
body.pkp_page_issue_archive,
body.pkp_page_issue_archive .pkp_structure_main,
body.pkp_page_issue_archive #pkp_content_main,
body.pkp_page_issue_archive #main-content,
body.pkp_page_issue_archive .pkp_structure_content,
body.pkp_page_issue_archive .page.page_issue_archive{
  padding-top: var(--ecm-issues-top-space) !important;
}

/* Current issue page (if your site uses it) */
body.pkp_page_issue_current,
body.pkp_page_issue_current .pkp_structure_main,
body.pkp_page_issue_current #pkp_content_main,
body.pkp_page_issue_current #main-content,
body.pkp_page_issue_current .pkp_structure_content{
  padding-top: var(--ecm-issues-top-space) !important;
}

/* Single issue view (TOC of an issue) */
body.pkp_page_issue,
body.pkp_page_issue .pkp_structure_main,
body.pkp_page_issue #pkp_content_main,
body.pkp_page_issue #main-content,
body.pkp_page_issue .pkp_structure_content{
  padding-top: var(--ecm-issues-top-space) !important;
}

/* Safety: don't let any margin-top collapse remove the space */
body.pkp_page_issue_archive .pkp_structure_main,
body.pkp_page_issue_current .pkp_structure_main,
body.pkp_page_issue .pkp_structure_main{
  margin-top: 0 !important;
}
