/**
 * @file plugins/themes/modernJournal/styles/modern.css
 *
 * Distributed under the GNU GPL v3.
 *
 * @brief Ongdi OJS theme for OJS 3.5.x. Loaded after the Default theme
 *  stylesheet. Colours/fonts come from custom properties printed inline by
 *  the plugin from the theme options.
 */

:root {
	--mj-primary: #2A5170;
	--mj-on-primary: #fff;
	--mj-secondary: #2D6192;
	--mj-on-secondary: #fff;
	--mj-accent: #EC882A;
	--mj-on-accent: #fff;
	--mj-footer: #222;
	--mj-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mj-font-heading: myriad-pro, "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mj-font-nav: "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", "Helvetica Neue", Arial, sans-serif;

	--mj-text: #595959;
	--mj-heading: #444;
	--mj-muted: #999;
	--mj-grey: #e8e8e8;
	--mj-light: #f6f6f6;
	--mj-line: #e7e7e7;
}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */
html,
body.mj_theme {
	background: #fff;
	color: var(--mj-text);
	font-family: var(--mj-font);
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: .02em;
}
.mj_theme h1, .mj_theme h2, .mj_theme h3, .mj_theme h4, .mj_theme h5, .mj_theme h6 {
	font-family: var(--mj-font-heading);
	color: var(--mj-heading);
}
.mj_theme a { color: var(--mj-primary); }
.mj_theme a:hover,
.mj_theme a:focus { color: var(--mj-secondary); }
.mj_theme :focus-visible { outline: 2px solid var(--mj-accent); outline-offset: 2px; }
.mj_theme .pkp_structure_page { background: #fff; }

.mj_container {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1170px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* ------------------------------------------------------------------ *
 * Top bar
 * ------------------------------------------------------------------ */
.mj_topbar {
	background: var(--mj-secondary);
	color: var(--mj-on-secondary);
	font-size: 13px;
}
.mj_topbar_inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	min-height: 48px;
}
.mj_topbar a,
.mj_topbar button { color: var(--mj-on-secondary); text-decoration: none; }
.mj_topbar a:hover,
.mj_topbar a:focus { color: var(--mj-on-secondary); opacity: .8; }

.mj_social { display: flex; margin: 0; padding: 0; list-style: none; }
.mj_social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 48px;
	font-size: 20px;
}

.mj_toplinks,
.mj_theme .mj_user_nav .pkp_navigation_user {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mj_toplinks { margin-inline-start: auto; }
.mj_toplinks > li > a,
.mj_toplinks .mj_lang_toggle,
.mj_theme .mj_user_nav .pkp_navigation_user > li > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 14px 12px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 13px;
	line-height: 20px;
	cursor: pointer;
}
.mj_topbar .fa { font-size: 15px; }

/* Language menu */
.mj_lang { position: relative; }
.mj_lang_toggle .fa-angle-down { opacity: .7; }
.mj_lang_menu {
	display: none;
	position: absolute;
	top: 100%;
	inset-inline-end: 0;
	z-index: 2100;
	min-width: 160px;
	margin: 0;
	padding: 5px 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 6px 12px rgba(0,0,0,.18);
	border-radius: 0 0 4px 4px;
}
.mj_lang.is_open .mj_lang_menu { display: block; }
.mj_theme .mj_lang_menu a {
	display: block;
	padding: 6px 16px;
	color: #333;
	opacity: 1;
}
.mj_theme .mj_lang_menu a:hover,
.mj_theme .mj_lang_menu a:focus { background: var(--mj-light); color: var(--mj-primary); }
.mj_lang_menu .current a { font-weight: 700; color: var(--mj-primary) !important; }

/* User menu: Login / Register / Dashboard */
.mj_theme .mj_user_nav .pkp_navigation_user {
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 13px;
}
.mj_theme .mj_user_nav .pkp_navigation_user > li { position: relative; display: block; }
.mj_theme .mj_user_nav .pkp_navigation_user > li > a { color: var(--mj-on-secondary); }
.mj_theme .mj_user_nav .pkp_navigation_user > li > a:focus { background: transparent; color: var(--mj-on-secondary); }
.mj_theme .mj_user_nav a[href*="/login"]:before,
.mj_theme .mj_user_nav a[href*="/user/register"]:before,
.mj_theme .mj_user_nav .pkp_navigation_user > li > a[data-toggle]:before {
	font-family: FontAwesome;
	font-size: 15px;
}
.mj_theme .mj_user_nav a[href*="/login"]:before { content: "\f007"; }
.mj_theme .mj_user_nav a[href*="/user/register"]:before { content: "\f084"; }
.mj_theme .mj_user_nav .pkp_navigation_user > li > a[data-toggle]:before { content: "\f007"; }
.mj_theme .mj_user_nav .pkp_navigation_user .task_count {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	margin-inline-start: 4px;
	border-radius: 9px;
	background: var(--mj-accent);
	color: var(--mj-on-accent);
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}
.mj_theme .mj_user_nav .pkp_navigation_user ul {
	display: none;
	position: absolute !important;
	top: 100% !important;
	left: auto !important;
	inset-inline-end: 0;
	transform: none !important;
	z-index: 2100;
	width: 200px;
	margin: 0;
	padding: 5px 0;
	list-style: none;
	background: #fff;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 6px 12px rgba(0,0,0,.18);
}
.mj_theme .mj_user_nav .pkp_navigation_user li:hover > ul,
.mj_theme .mj_user_nav .pkp_navigation_user li:focus-within > ul,
.mj_theme .mj_user_nav .pkp_navigation_user ul.show { display: block; }
.mj_theme .mj_user_nav .pkp_navigation_user ul a {
	display: block;
	padding: 6px 16px;
	border: 0;
	color: #333;
}
.mj_theme .mj_user_nav .pkp_navigation_user ul a:hover,
.mj_theme .mj_user_nav .pkp_navigation_user ul a:focus { background: var(--mj-light); color: var(--mj-primary); }

/* ------------------------------------------------------------------ *
 * Masthead: logo row + tab menu
 * ------------------------------------------------------------------ */
.mj_masthead {
	position: relative;
	z-index: 1500;
	background: var(--mj-primary);
	color: var(--mj-on-primary);
	box-shadow: 0 0 3px rgba(0,0,0,.5);
}
.mj_brand_row {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 115px;
	padding: 10px 0;
	box-sizing: border-box;
}
.mj_logo { flex: 1 1 auto; min-width: 0; }
.mj_logo a { text-decoration: none; }
.mj_logo .is_img img {
	display: block;
	max-height: 95px;
	max-width: 100%;
	width: auto;
	height: auto;
}
.mj_logo .is_text { display: inline-flex; flex-direction: column; color: var(--mj-on-primary); }
.mj_site_title {
	font-family: var(--mj-font-heading);
	font-size: clamp(22px, 3.2vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--mj-on-primary);
}
.mj_site_issn { margin-top: 6px; font-size: 13px; opacity: .8; }

.mj_search {
	display: flex;
	align-items: stretch;
	gap: 4px;
	flex: 0 0 auto;
}
.mj_search input {
	width: 180px;
	height: 39px;
	box-sizing: border-box;
	padding: 10px;
	border: 0;
	border-radius: 5px;
	background: #fff;
	color: #555;
	font: inherit;
	font-size: 14px;
	letter-spacing: normal;
}
.mj_search button {
	height: 39px;
	padding: 8px 12px;
	border: 0;
	border-radius: 4px;
	background: var(--mj-accent);
	color: var(--mj-on-accent);
	font: inherit;
	font-size: 16px;
	letter-spacing: normal;
	cursor: pointer;
}
.mj_search button:hover,
.mj_search button:focus { filter: brightness(1.08); }

.mj_nav_toggle {
	display: none;
	width: 42px;
	height: 38px;
	border: 1px solid rgba(255,255,255,.4);
	border-radius: 4px;
	background: transparent;
	color: var(--mj-on-primary);
	font-size: 20px;
	cursor: pointer;
}

.mj_navbar #siteNav { position: absolute; top: 0; height: 0; }
.mj_theme .mj_navbar .pkp_navigation_primary {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 4px;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: start;
}
.mj_theme .mj_navbar .pkp_navigation_primary > li { position: relative; display: block; }
.mj_theme .mj_navbar .pkp_navigation_primary > li > a {
	display: block;
	margin: 0 !important;
	padding: 8px 12px;
	border: 0;
	border-radius: 5px 5px 0 0;
	background: var(--mj-secondary);
	color: var(--mj-on-secondary);
	font-family: var(--mj-font-nav);
	font-size: 14px;
	line-height: 20px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .15s;
}
.mj_theme .mj_navbar .pkp_navigation_primary > li > a:hover,
.mj_theme .mj_navbar .pkp_navigation_primary > li > a:focus,
.mj_theme .mj_navbar .pkp_navigation_primary > li:hover > a {
	background: color-mix(in srgb, var(--mj-secondary) 82%, #fff);
	color: var(--mj-on-secondary);
	outline: 0;
}
.mj_theme .mj_navbar [aria-haspopup]:after {
	content: "\f107";
	display: inline;
	width: auto;
	height: auto;
	margin-inline-start: 6px;
	border: 0;
	font-family: FontAwesome;
	vertical-align: baseline;
}
/* Dropdown */
.mj_theme .mj_navbar .pkp_navigation_primary ul {
	display: none;
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	transform: none !important;
	z-index: 2000;
	min-width: 170px;
	width: auto;
	margin: 0;
	padding: 5px;
	list-style: none;
	background: #e8f2fb;
	border-radius: 0;
	box-shadow: 0 2px 3px rgba(0,0,0,.15);
}
.mj_theme[dir="rtl"] .mj_navbar .pkp_navigation_primary ul { left: auto !important; right: 0 !important; }
.mj_theme .mj_navbar .pkp_navigation_primary li:hover > ul,
.mj_theme .mj_navbar .pkp_navigation_primary li:focus-within > ul,
.mj_theme .mj_navbar .pkp_navigation_primary ul.show { display: block; }
.mj_theme .mj_navbar .pkp_navigation_primary ul li { display: block; }
.mj_theme .mj_navbar .pkp_navigation_primary ul a {
	display: block;
	padding: 4px 8px 4px 20px;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--mj-primary);
	font-family: var(--mj-font-nav);
	font-size: 11px;
	line-height: 16px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	position: relative;
}
.mj_theme .mj_navbar .pkp_navigation_primary ul a:before {
	content: "";
	position: absolute;
	top: 9px;
	inset-inline-start: 7px;
	width: 6px;
	height: 6px;
	background: color-mix(in srgb, var(--mj-primary) 35%, #fff);
}
.mj_theme[dir="rtl"] .mj_navbar .pkp_navigation_primary ul a { padding: 4px 20px 4px 8px; }
.mj_theme .mj_navbar .pkp_navigation_primary ul a:hover,
.mj_theme .mj_navbar .pkp_navigation_primary ul a:focus { background: #fff; color: var(--mj-secondary); }

/* ------------------------------------------------------------------ *
 * Follow bar
 * ------------------------------------------------------------------ */
.mj_followbar { background: var(--mj-light); }
.mj_followbar .mj_container { display: flex; justify-content: flex-end; padding-top: 5px; padding-bottom: 5px; }
.mj_follow { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.mj_follow a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border-left: 1px solid #ddd;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	background: #8093bb;
	transition: filter .15s;
}
.mj_follow a:hover,
.mj_follow a:focus { filter: brightness(1.1); }
.mj_follow_twitter a { background: rgba(0,171,240,.65); }
.mj_follow_facebook a { background: rgba(70,98,158,.65); }
.mj_follow_linkedin a { background: rgba(0,119,181,.65); }
.mj_follow_instagram a { background: rgba(193,53,132,.65); }
.mj_follow_youtube a { background: rgba(230,33,23,.65); }
.mj_follow_rss a { background: rgba(238,147,19,.65); }
.mj_follow_blog a { background: #8093bb; }

/* ------------------------------------------------------------------ *
 * Homepage hero
 * ------------------------------------------------------------------ */
.mj_hero { border-bottom: 3px solid #e5e5e5; }
.mj_hero_inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	padding-left: 0;
	padding-right: 0;
}
.mj_hero_inner.is_single { grid-template-columns: 1fr; }
.mj_hero_about {
	padding-bottom: 12px;
	background: linear-gradient(#fff 0%, #d4e4ef 67%, #d4e4ef 100%);
}
.mj_theme .mj_hero_title {
	margin: 0;
	padding: 7px 18px;
	background: var(--mj-secondary);
	color: var(--mj-on-secondary);
	font-size: 19px;
	font-weight: 700;
	line-height: 24px;
}
.mj_hero_text { margin: 10px 0; padding: 0 18px; font-size: 12.5px; line-height: 1.6; }
.mj_btn_dark {
	display: inline-block;
	margin: 4px 18px 0;
	padding: 6px 10px;
	border-radius: 5px;
	background: #333;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}
.mj_btn_dark:hover,
.mj_btn_dark:focus { background: #000; }
.mj_hero_slider {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 5px;
	background: var(--mj-light);
}
.mj_hero_image img { display: block; width: 100%; height: 100%; max-height: 300px; object-fit: cover; }

/* OJS 3.5 highlights inside the hero */
.mj_theme .mj_hero .highlights { flex: 1 1 auto; display: flex; margin: 0; background: transparent; }
.mj_theme .mj_hero .highlights .swiper { flex: 1 1 auto; width: 100%; }
.mj_theme .mj_hero .swiper-wrapper { height: 100%; }
.mj_theme .mj_hero .swiper {
	--swiper-theme-color: #fff;
	--swiper-navigation-size: 22px;
	height: 100%;
	min-height: 210px;
	background: linear-gradient(120deg, color-mix(in srgb, var(--mj-primary) 70%, #000), var(--mj-primary));
}
.mj_theme .mj_hero .swiper-wrapper { padding: 0; }
.mj_theme .mj_hero .swiper-slide {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	min-height: 210px;
	box-sizing: border-box;
	color: #fff;
}
.mj_theme .mj_hero .swiper-slide.-has-image { grid-template-columns: 1.1fr 1fr; }
.mj_theme .mj_hero .swiper-slide-image {
	order: 2;
	width: 100%;
	height: 100%;
	max-height: 260px;
	object-fit: cover;
	padding: 16px 16px 16px 0;
	box-sizing: border-box;
}
.mj_theme .mj_hero .swiper-slide-content { order: 1; padding: 20px 20px 36px 52px; }
.mj_theme[dir="rtl"] .mj_hero .swiper-slide-content { padding: 20px 52px 36px 20px; }
.mj_theme .mj_hero .swiper-slide-title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
}
.mj_theme .mj_hero .swiper-slide-desc { color: rgba(255,255,255,.85); font-size: 12.5px; }
.mj_theme .mj_hero .swiper-slide-desc p { margin: 0 0 8px; }
.mj_theme .mj_hero .swiper-slide-button {
	display: inline-block;
	margin-top: 8px;
	padding: 5px 16px;
	border: 0;
	border-radius: 0;
	background: #e2685f;
	color: #fff;
	font-size: 12px;
	text-decoration: none;
	box-shadow: none;
}
.mj_theme .mj_hero .swiper-button-prev,
.mj_theme .mj_hero .swiper-button-next {
	width: 36px;
	height: 36px;
	border: 2px solid rgba(255,255,255,.35);
	border-radius: 50%;
	color: #fff;
}
.mj_theme .mj_hero .swiper-pagination-bullet { background: #fff; opacity: .5; }
.mj_theme .mj_hero .swiper-pagination-bullet-active { opacity: 1; }

/* ------------------------------------------------------------------ *
 * Page layout: main + sidebar
 * ------------------------------------------------------------------ */
.mj_theme .pkp_structure_content {
	padding-top: 0;
	padding-bottom: 30px;
}
.mj_theme .pkp_structure_main:before,
.mj_theme .pkp_structure_main:after { display: none; }
.mj_theme .pkp_structure_main {
	box-sizing: border-box;
	padding: 20px 0 20px;
}
@media (min-width: 992px) {
	.mj_theme .pkp_structure_content { display: flex; align-items: stretch; }
	.mj_theme .pkp_structure_content:before,
	.mj_theme .pkp_structure_content:after { display: none; }
	.mj_theme .pkp_structure_main {
		float: none;
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		padding: 20px 30px 30px 0;
	}
	.mj_theme[dir="rtl"] .pkp_structure_main { padding: 20px 0 30px 30px; }
	.mj_theme .pkp_structure_sidebar {
		float: none;
		flex: 0 0 25%;
		width: 25%;
		max-width: 280px;
		box-sizing: border-box;
		padding-top: 20px;
		border-inline-start: 1px solid #ddd;
	}
	.mj_theme .pkp_structure_main:first-child:last-child {
		margin: 0;
		padding-inline-end: 0;
	}
}

/* Breadcrumbs: shown in the grey bar under the menu (moved by modern.js) */
.mj_followbar { border-bottom: 5px solid #ddd; }
.mj_followbar .mj_container { align-items: center; flex-wrap: wrap; gap: 5px 12px; }
.mj_crumbs { flex: 1 1 auto; min-width: 0; }
.mj_crumbs:empty { display: none; }
.mj_theme .mj_crumbs .cmp_breadcrumbs ol {
	margin: 0;
	padding: 6px 0;
	background: transparent;
	color: #777;
	font-size: 13px;
	line-height: 1.4;
}
.mj_theme .mj_crumbs .cmp_breadcrumbs li { display: inline; }
.mj_theme .mj_crumbs .cmp_breadcrumbs a { color: #6b6f72; text-decoration: none; }
.mj_theme .mj_crumbs .cmp_breadcrumbs a:hover { color: var(--mj-primary); text-decoration: underline; }
.mj_theme .mj_crumbs .cmp_breadcrumbs .separator { margin: 0 4px 0 2px; color: #777; }
.mj_theme .mj_crumbs .cmp_breadcrumbs .current { color: #777; font-weight: 400; }
.mj_followbar .mj_follow { margin-inline-start: auto; }
/* Without JavaScript the breadcrumbs stay in the page */
.mj_theme .pkp_structure_main .cmp_breadcrumbs ol { margin: 0 0 15px; padding: 0; font-size: 13px; color: #777; }

/* Inner page titles: uppercase with a grey rule (like "ABOUT THE JOURNAL") */
.mj_theme .page > h1,
.mj_theme .page_about .page > h2,
.mj_theme .page_about > h2 {
	margin: 0 0 20px;
	padding: 0 0 8px;
	border-bottom: 4px solid var(--mj-line);
	color: color-mix(in srgb, var(--mj-primary) 85%, #fff);
	font-family: var(--mj-font-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 22px;
	text-transform: uppercase;
}
.mj_theme .page_about h2,
.mj_theme .page_about h3 {
	margin: 24px 0 14px;
	padding: 0 0 8px;
	border-bottom: 4px solid var(--mj-line);
	color: color-mix(in srgb, var(--mj-primary) 85%, #fff);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}
.mj_theme .page_about h3 { font-size: 15px; border-bottom-width: 2px; }
.mj_theme .page p,
.mj_theme .page li { line-height: 1.6; }
.mj_theme .page_about img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------------ *
 * Section headings
 * ------------------------------------------------------------------ */
.mj_section { margin-bottom: 30px; }
.mj_theme .mj_section .mj_plain_title {
	margin: 0 0 15px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--mj-line);
	color: var(--mj-primary);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}
.mj_theme .mj_ribbon,
.mj_theme .mj_additional > h2:first-child,
.mj_theme .page_submissions h2 {
	position: relative;
	display: block;
	width: 50%;
	min-width: 220px;
	max-width: calc(100% - 30px);
	box-sizing: border-box;
	margin: 20px 0 15px;
	padding: 9px;
	background: var(--mj-grey);
	color: var(--mj-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 21px;
	text-transform: uppercase;
}
.mj_theme .mj_ribbon:after,
.mj_theme .mj_additional > h2:first-child:after,
.mj_theme .page_submissions h2:after {
	content: "";
	position: absolute;
	top: 0;
	inset-inline-start: 100%;
	width: 0;
	height: 0;
	border-top: 19.5px solid transparent;
	border-bottom: 19.5px solid transparent;
	border-left: 30px solid var(--mj-grey);
}
.mj_theme[dir="rtl"] .mj_ribbon:after,
.mj_theme[dir="rtl"] .mj_additional > h2:first-child:after,
.mj_theme[dir="rtl"] .page_submissions h2:after { border-left: 0; border-right: 30px solid var(--mj-grey); }

/* Buttons */
.mj_btn_accent,
.mj_theme .cmp_button,
.mj_theme .cmp_form .buttons button,
.mj_theme .page_search .submit button,
.mj_theme .block_make_submission a,
.mj_theme .obj_announcement_summary .read_more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border: 0;
	border-radius: 4px;
	background: var(--mj-accent);
	color: var(--mj-on-accent) !important;
	font-family: var(--mj-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}
.mj_btn_accent:hover,
.mj_btn_accent:focus,
.mj_theme .cmp_button:hover,
.mj_theme .cmp_form .buttons button:hover,
.mj_theme .page_search .submit button:hover,
.mj_theme .block_make_submission a:hover { filter: brightness(1.08); color: var(--mj-on-accent) !important; }

/* Galley (PDF) links */
.mj_theme .obj_galley_link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border: 0;
	border-radius: 4px;
	background: var(--mj-accent);
	color: var(--mj-on-accent);
	font-size: 13px;
	text-decoration: none;
}
.mj_theme .obj_galley_link:hover,
.mj_theme .obj_galley_link:focus { background: var(--mj-accent); color: var(--mj-on-accent); filter: brightness(1.08); }
.mj_theme .obj_galley_link.restricted:before,
.mj_theme .obj_galley_link.pdf:before { color: inherit; }
.mj_theme .galleys_links { flex-wrap: wrap !important; gap: 6px; }
.mj_theme .galleys_links li { margin-inline-end: 0 !important; }

/* ------------------------------------------------------------------ *
 * Homepage sections
 * ------------------------------------------------------------------ */
.mj_about_body:after { content: ""; display: table; clear: both; }
.mj_about_image {
	float: left;
	width: 210px;
	max-width: 40%;
	margin: 0 30px 15px 0;
}
.mj_theme[dir="rtl"] .mj_about_image { float: right; margin: 0 0 15px 30px; }
.mj_about_image img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #ccc;
	box-shadow: 3px 3px 6px rgba(0,0,0,.25);
}
.mj_about_text { line-height: 1.6; }
.mj_about_text > p:first-child { margin-top: 0; }

/* Quick links */
.mj_quicklinks_grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}
.mj_quicklinks_grid li { border-inline-start: 1px solid #eee; }
.mj_quicklinks_grid li:nth-child(4n+1) { border-inline-start: 0; }
.mj_quicklinks_grid a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 6px;
	color: var(--mj-primary);
	text-align: center;
	text-decoration: none;
}
.mj_ql_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #7fa9cf;
	color: var(--mj-primary);
	font-size: 22px;
	transition: transform .15s, background .15s, color .15s;
}
.mj_quicklinks_grid a:hover .mj_ql_icon,
.mj_quicklinks_grid a:focus .mj_ql_icon { transform: translateY(-2px); background: var(--mj-primary); color: #fff; }
.mj_ql_label {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: .03em;
}

/* Announcements */
.mj_theme .mj_news_title {
	margin: 20px 0 15px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
	color: var(--mj-heading);
	font-size: 24px;
	font-weight: 500;
}
.mj_ann_featured {
	display: flex;
	gap: 10px;
	padding-bottom: 15px;
}
.mj_ann_icon {
	flex: 0 0 51px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mj-heading);
	color: #fff;
	font-size: 20px;
}
.mj_ann_body { flex: 1 1 auto; min-width: 0; }
.mj_theme .mj_ann_title {
	margin: 0;
	font-family: var(--mj-font);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}
.mj_theme .mj_ann_title a,
.mj_theme .mj_ann_small_title a { color: var(--mj-primary); text-decoration: none; }
.mj_theme .mj_ann_title a:hover,
.mj_theme .mj_ann_small_title a:hover { text-decoration: underline; }
.mj_ann_date { margin: 4px 0 10px; color: var(--mj-muted); font-size: 11px; text-transform: uppercase; }
.mj_ann_featured .mj_ann_date { padding-bottom: 12px; border-bottom: 1px solid #eee; }
.mj_ann_summary { margin-bottom: 10px; line-height: 1.6; }
.mj_ann_summary p { margin: 0 0 8px; }
.mj_ann_item { padding: 12px 0 0; }
.mj_theme .mj_ann_small_title {
	margin: 0;
	font-family: var(--mj-font);
	font-size: 17px;
	font-weight: 400;
}

/* Current issue */
.mj_current_issue .current_issue_title {
	margin: 0 0 12px;
	color: var(--mj-primary);
	font-size: 14px;
	font-weight: 700;
}
.mj_theme .obj_issue_toc .heading:after { content: ""; display: table; clear: both; }
.mj_theme .obj_issue_toc .cover {
	float: left;
	width: 175px;
	max-width: 35%;
	margin: 0 20px 15px 0;
}
.mj_theme[dir="rtl"] .obj_issue_toc .cover { float: right; margin: 0 0 15px 20px; }
.mj_theme .obj_issue_toc .cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	border: 1px solid #ccc;
	box-shadow: 3px 3px 6px rgba(0,0,0,.25);
}
.mj_theme .obj_issue_toc .description { line-height: 1.6; }
.mj_theme .obj_issue_toc .galleys,
.mj_theme .obj_issue_toc .section {
	margin: 10px 0 0;
	padding: 0;
}
.mj_theme .obj_issue_toc .galleys:before,
.mj_theme .obj_issue_toc .section:before { display: none; }
.mj_theme .obj_issue_toc .sections:not(:first-child) { margin-top: 20px; }
.mj_theme .obj_issue_toc .section > h2,
.mj_theme .obj_issue_toc .section > h3,
.mj_theme .obj_issue_toc .section > h4,
.mj_theme .obj_issue_toc .galleys > h2,
.mj_theme .obj_issue_toc .galleys > h3 {
	position: static;
	display: block;
	margin: 0 0 8px;
	padding: 5px 0 8px;
	border-bottom: 4px solid var(--mj-line);
	background: transparent;
	color: var(--mj-primary);
	font-family: var(--mj-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
}
.mj_section_toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: start;
	cursor: pointer;
}
.mj_plus {
	position: relative;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border: 1px solid #bbb;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 2px #fff, inset 0 0 3px rgba(0,0,0,.15);
}
.mj_plus:before,
.mj_plus:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 3px;
	margin: -1.5px 0 0 -5px;
	background: var(--mj-primary);
	transition: transform .2s;
}
.mj_plus:after { transform: rotate(90deg); }
.mj_collapsible:not(.is_collapsed) .mj_plus:after { transform: rotate(0); }
.mj_collapsible.is_collapsed > .articles,
.mj_collapsible.is_collapsed > .cmp_article_list { display: none; }

.mj_theme .obj_issue_toc .articles,
.mj_theme .cmp_article_list { margin: 0; padding: 0; list-style: none; }
.mj_theme .obj_issue_toc .articles > li,
.mj_theme .cmp_article_list > li {
	margin: 0;
	padding: 10px 0 12px;
	border-bottom: 1px solid #eee;
}
.mj_theme .obj_issue_toc .articles > li:last-child,
.mj_theme .cmp_article_list > li:last-child { border-bottom: 0; }
.mj_theme .obj_article_summary .cover { float: left; width: 90px; margin: 0 14px 6px 0; }
.mj_theme[dir="rtl"] .obj_article_summary .cover { float: right; margin: 0 0 6px 14px; }
.mj_theme .obj_article_summary .cover img { max-height: 120px; border: 1px solid #ddd; }
.mj_theme .obj_article_summary > .title {
	font-family: var(--mj-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}
.mj_theme .obj_article_summary > .title a { color: var(--mj-primary); }
.mj_theme .obj_article_summary > .title a:hover { text-decoration: underline; }
.mj_theme .obj_article_summary .meta { color: #777; font-size: 13px; }
.mj_all_issues { margin-top: 18px; }

/* Issue archive */
.mj_theme .issues_archive {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 20px;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
.mj_theme .issues_archive > li { margin: 0; padding: 0; border: 0; }
.mj_theme .issues_archive .obj_issue_summary .cover { float: none; width: auto; margin: 0 0 10px; }
.mj_theme .issues_archive .obj_issue_summary .cover img { width: 100%; border: 1px solid #ccc; box-shadow: 3px 3px 6px rgba(0,0,0,.2); }
.mj_theme .obj_issue_summary h2 { margin: 0 0 6px; font-size: 15px; }
.mj_theme .obj_issue_summary h2 a { color: var(--mj-primary); text-decoration: none; }

/* Article page: main column fills the available width */
@media (min-width: 768px) {
	.mj_theme .obj_article_details .row { display: flex; align-items: stretch; }
	.mj_theme .obj_article_details .row:before,
	.mj_theme .obj_article_details .row:after { display: none; }
	.mj_theme .obj_article_details .main_entry { float: none; flex: 1 1 auto; width: auto; min-width: 0; }
	.mj_theme .obj_article_details .entry_details { float: none; flex: 0 0 270px; width: 270px; }
}
.mj_theme .obj_article_details .page_title { color: var(--mj-heading); font-size: 24px; }
.mj_theme .obj_article_details .item .label,
.mj_theme .obj_article_details .entry_details .item .label { color: var(--mj-primary); font-family: var(--mj-font-heading); }

/* Forms */
.mj_theme .cmp_form input[type="text"],
.mj_theme .cmp_form input[type="email"],
.mj_theme .cmp_form input[type="password"],
.mj_theme .cmp_form input[type="url"],
.mj_theme .cmp_form input[type="tel"],
.mj_theme .cmp_form select,
.mj_theme .cmp_form textarea,
.mj_theme .page_search input[type="text"],
.mj_theme .page_search select {
	padding: 7px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
}
.mj_theme .cmp_pagination .current { font-weight: 700; color: var(--mj-heading); }

/* ------------------------------------------------------------------ *
 * Sidebar blocks
 * ------------------------------------------------------------------ */
.mj_theme .pkp_block {
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
}
@media (min-width: 992px) { .mj_theme .pkp_structure_sidebar .pkp_block { padding: 0; } }
.mj_theme .pkp_block .title {
	position: relative;
	display: block;
	margin: 0 0 10px;
	padding: 6px 10px;
	background: var(--mj-primary);
	color: var(--mj-on-primary);
	font-family: var(--mj-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 22px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.mj_theme .pkp_block .title:after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -11px;
	width: 0;
	height: 0;
	border-top: 11px solid color-mix(in srgb, var(--mj-primary) 60%, #000);
	border-left: 10px solid transparent;
}
.mj_theme[dir="rtl"] .pkp_block .title:after { right: auto; left: 0; border-left: 0; border-right: 10px solid transparent; }
.mj_theme .pkp_block .content {
	padding: 0 10px 10px;
	border-bottom: 1px solid #ededed;
}
.mj_theme .pkp_block .content ul { margin: 0; padding-inline-start: 18px; list-style: disc; }
.mj_theme .pkp_block .content ul li { padding: 1px 0; line-height: 19px; }
.mj_theme .pkp_block a { color: var(--mj-primary); text-decoration: none; }
.mj_theme .pkp_block a:hover { text-decoration: underline; }
.mj_theme .pkp_block > :not(.title):not(.content):not(.pkp_screen_reader) { margin-left: 10px; margin-right: 10px; }
.mj_theme .block_make_submission .content { padding-top: 5px; }
.mj_theme .block_make_submission a { width: 100%; justify-content: center; box-sizing: border-box; text-decoration: none !important; }
.mj_theme .block_language .current a { font-weight: 700; }
.mj_theme .block_web_feed .content ul { list-style: none; padding: 0; }
.mj_theme .pkp_block img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------------ *
 * Footer link bar, logo strip, footer
 * ------------------------------------------------------------------ */
.mj_linkbar {
	position: relative;
	z-index: 1;
	background: var(--mj-primary);
	box-shadow: 0 0 5px 1px rgba(0,0,0,.3);
}
.mj_footer_links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 10px 0;
	list-style: none;
}
.mj_footer_links li { padding: 2px 0; }
.mj_footer_links li + li { border-inline-start: 1px solid rgba(255,255,255,.26); }
.mj_footer_links a {
	display: block;
	padding: 0 15px;
	color: var(--mj-on-primary) !important;
	font-size: 15px;
	line-height: 20px;
	text-transform: uppercase;
	text-decoration: none;
}
.mj_footer_links a:hover { text-decoration: underline; }
.mj_footer_links ul { display: none; }

.mj_logos {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: #fff;
}
.mj_logos_viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	padding: 6px 0;
}
.mj_logos_track {
	display: flex;
	gap: 12px;
	width: max-content;
	margin: 0;
	padding: 0 6px;
	list-style: none;
	will-change: transform;
}
.mj_logos_track li {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 62px;
	padding: 4px 8px;
	box-sizing: border-box;
	background: #fff;
	box-shadow: 0 0 5px rgba(0,0,0,.3);
}
.mj_logos_track img { max-width: 100%; max-height: 54px; width: auto; height: auto; }
.mj_logos_prev,
.mj_logos_next {
	flex: 0 0 36px;
	height: 54px;
	border: 0;
	background: transparent;
	color: #555;
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
}
.mj_logos_prev:hover,
.mj_logos_next:hover { color: var(--mj-primary); }
.mj_theme[dir="rtl"] .mj_logos_prev .fa,
.mj_theme[dir="rtl"] .mj_logos_next .fa { transform: scaleX(-1); }

.mj_footer {
	background: var(--mj-footer);
	border-top: 4px solid #555;
	color: #ccc;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}
.mj_footer a { color: #ccc; text-decoration: none; }
.mj_footer a:hover,
.mj_footer a:focus { color: #fff; text-decoration: underline; }
.mj_footer_cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	padding-top: 22px;
	padding-bottom: 30px;
}
@media (min-width: 768px) { .mj_footer_cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .mj_footer_cols { grid-template-columns: 4fr 3fr 2fr 3fr; } }
.mj_footer_brand {
	display: flex;
	align-items: center;
	min-height: 52px;
	margin-bottom: 20px;
	padding: 8px 14px;
	background: var(--mj-primary);
	color: var(--mj-on-primary);
	font-family: var(--mj-font-heading);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}
.mj_footer_brand img { max-height: 44px; max-width: 100%; width: auto; }
.mj_footer p { margin: 0 0 12px; }
.mj_footer_issn { margin-top: 18px !important; font-family: Georgia, serif; }
.mj_theme .mj_footer_title {
	position: relative;
	margin: 7px 0 20px;
	padding-bottom: 10px;
	color: #eee;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}
.mj_theme .mj_footer_title:after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 30px;
	height: 2px;
	background: #555;
}
.mj_footer_list { margin: 0; padding: 0; list-style: none; }
.mj_footer_list li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(255,255,255,.06);
	overflow-wrap: anywhere;
}
.mj_footer_list li:last-child { border-bottom: 0; }
.mj_footer_list .fa { width: 14px; margin-inline-end: 4px; color: #ccc; }
.mj_footer_journals li { border-bottom: 0; padding: 3px 0; }
.mj_footer_journals li.current a { color: #fff; font-weight: 700; }
.mj_footer_social { display: flex; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.mj_footer_social a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-size: 18px; color: #fff; }
.mj_footer_custom { padding-top: 10px; padding-bottom: 20px; }
.mj_theme .mj_footer .pkp_footer_content { padding-left: 15px; padding-right: 15px; text-align: start; }
.mj_footer_custom img { max-width: 100%; height: auto; }
.mj_footer_bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding-top: 15px;
	padding-bottom: 15px;
	border-top: 1px solid rgba(255,255,255,.06);
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.mj_footer_bottom p { margin: 0; }

/* Back to top */
.mj_back_to_top {
	position: fixed;
	inset-inline-end: 18px;
	bottom: 18px;
	z-index: 1600;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 4px;
	background: var(--mj-secondary);
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.mj_back_to_top.is_visible { opacity: .85; visibility: visible; }
.mj_back_to_top:hover { opacity: 1; }

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 991px) {
	.mj_brand_row { flex-wrap: wrap; min-height: 0; gap: 12px; padding: 14px 0; }
	.mj_logo { order: 1; flex: 1 1 0; }
	.mj_nav_toggle { order: 2; display: inline-flex; align-items: center; justify-content: center; }
	.mj_search { order: 3; flex: 1 1 100%; }
	.mj_search input { flex: 1 1 auto; width: auto; }

	.mj_navbar { display: none; padding-bottom: 12px; }
	.mj_navbar.is_open { display: block; }
	.mj_theme .mj_navbar .pkp_navigation_primary { flex-direction: column; align-items: stretch; gap: 2px; }
	.mj_theme .mj_navbar .pkp_navigation_primary > li > a { border-radius: 4px; }
	.mj_theme .mj_navbar .pkp_navigation_primary ul {
		position: static !important;
		display: block;
		padding: 4px 0 6px;
		box-shadow: none;
		background: transparent;
	}
	.mj_theme .mj_navbar .pkp_navigation_primary ul a { color: var(--mj-on-primary); font-size: 12px; }
	.mj_theme .mj_navbar .pkp_navigation_primary ul a:hover { background: transparent; color: var(--mj-on-primary); text-decoration: underline; }
	.mj_theme .mj_navbar [aria-haspopup]:after { display: none; }

	.mj_hero_inner { grid-template-columns: 1fr; }
	.mj_quicklinks_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mj_quicklinks_grid li:nth-child(odd) { border-inline-start: 0; }
	.mj_quicklinks_grid li:nth-child(4n+3) { border-inline-start: 0; }
	.mj_quicklinks_grid li:nth-child(even) { border-inline-start: 1px solid #eee; }
	.mj_theme .pkp_structure_sidebar { margin-top: 10px; }
}
@media (max-width: 599px) {
	.mj_topbar_inner { justify-content: center; }
	.mj_social { width: 100%; justify-content: center; }
	.mj_social a { height: 36px; }
	.mj_toplinks { margin-inline-start: 0; }
	.mj_toplinks > li > a,
	.mj_toplinks .mj_lang_toggle,
	.mj_theme .mj_user_nav .pkp_navigation_user > li > a { padding: 8px 8px; }
	.mj_toplinks > li:not(.mj_lang) > a { font-size: 0; gap: 0; }
	.mj_toplinks > li:not(.mj_lang) > a .fa { font-size: 16px; }
	.mj_followbar .mj_container { justify-content: center; }
	.mj_follow a { padding: 7px 10px; font-size: 12px; }
	.mj_theme .mj_ribbon { width: auto; }
	.mj_about_image { float: none; width: 60%; max-width: 240px; margin: 0 auto 15px; }
	.mj_theme .obj_issue_toc .cover { float: none; width: 60%; max-width: 220px; margin: 0 auto 15px; }
	.mj_footer_links a { font-size: 13px; padding: 0 10px; }
}

/* RTL: keep visually hidden helpers inside the viewport */
.mj_theme[dir="rtl"] .pkp_screen_reader:not(:focus),
.mj_theme[dir="rtl"] .cmp_skip_to_content a:not(:focus) {
	left: auto !important;
	right: 0 !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.mj_theme { overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
	.mj_theme *, .mj_theme *:before, .mj_theme *:after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.mj_topbar, .mj_navbar, .mj_search, .mj_nav_toggle, .mj_followbar, .mj_hero, .mj_back_to_top,
	.pkp_structure_sidebar, .mj_linkbar, .mj_logos, .mj_footer_cols { display: none !important; }
	.mj_theme .pkp_structure_main { width: auto; padding: 0; }
}

/* Additional homepage content: no default border/negative margins */
.mj_theme.pkp_page_index .mj_additional {
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	border-top: 0;
}

@media (max-width: 599px) {
	.mj_theme .mj_hero .swiper-slide.-has-image { grid-template-columns: 1fr; }
	.mj_theme .mj_hero .swiper-slide-image { max-height: 170px; padding: 0 44px 34px; }
	.mj_theme .mj_hero .swiper-slide-content { padding: 18px 44px 12px; }
}


/* ------------------------------------------------------------------ *
 * Submissions page
 * ------------------------------------------------------------------ */
.mj_theme .page_submissions .mj_submit_cta {
	margin: 0 0 20px;
	padding: 15px;
	border: 0;
	border-left: 5px solid var(--mj-secondary);
	border-radius: 0;
	background: #ddd;
	color: #000;
	font-size: 13px;
	line-height: 2.6;
}
.mj_theme[dir="rtl"] .page_submissions .mj_submit_cta { border-left: 0; border-right: 5px solid var(--mj-secondary); }
.mj_theme .mj_submit_cta a,
.mj_theme .mj_cta_btn {
	display: inline-block;
	margin: 0 4px;
	padding: 6px 10px;
	border-radius: 4px;
	background: var(--mj-primary);
	color: var(--mj-on-primary) !important;
	font-size: 17px;
	line-height: 1.4;
	text-decoration: none;
	vertical-align: middle;
}
.mj_theme .mj_submit_cta a:first-child { margin-inline-start: 0; }
.mj_theme .mj_submit_cta a:hover,
.mj_theme .mj_submit_cta a:focus { background: var(--mj-secondary); }
.mj_theme .page_submissions .mj_lead { margin: 0 0 14px; color: var(--mj-text); font-size: 16px; font-weight: 300; line-height: 1.45; }
.mj_theme .mj_checklist {
	position: relative;
	margin: 0 0 20px;
	padding: 10px 15px 10px 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}
.mj_theme[dir="rtl"] .mj_checklist { padding: 10px 40px 10px 15px; }
.mj_checklist > .fa {
	position: absolute;
	top: 13px;
	inset-inline-start: 15px;
	color: #777;
}
.mj_checklist_body > :first-child { margin-top: 0; }
.mj_checklist_body > :last-child { margin-bottom: 0; }
.mj_checklist_body ul,
.mj_checklist_body ol { margin: 8px 0 0; padding-inline-start: 22px; }
.mj_checklist_body li { margin: 2px 0; }
.mj_theme .page_submissions .author_guidelines,
.mj_theme .page_submissions .copyright_notice,
.mj_theme .page_submissions .privacy_statement { margin-top: 30px; }

/* ------------------------------------------------------------------ *
 * Issue page and table of contents
 * ------------------------------------------------------------------ */
.mj_theme .page_issue .obj_issue_toc .cover {
	width: 210px;
	max-width: 40%;
	margin: 0 30px 20px 0;
	padding: 4px;
	background: #fff;
	border-radius: 4px;
}
.mj_theme[dir="rtl"] .page_issue .obj_issue_toc .cover { margin: 0 0 20px 30px; }
.mj_theme .page_issue .obj_issue_toc .cover img { border: 1px solid #ddd; box-shadow: 3px 3px 6px rgba(0,0,0,.2); }
.mj_theme .obj_issue_toc .pub_id,
.mj_theme .obj_issue_toc .published { margin: 12px 0; }
.mj_theme .obj_issue_toc .sections { clear: both; }
.mj_theme .obj_issue_toc .section > h2 .mj_section_toggle,
.mj_theme .obj_issue_toc .section > h3 .mj_section_toggle { font-size: 15px; }

/* Article rows: title + authors on the left, PDF button on the right */
.mj_theme .obj_article_summary { position: relative; }
@media (min-width: 600px) {
	.mj_theme .obj_issue_toc .obj_article_summary,
	.mj_theme .cmp_article_list .obj_article_summary { padding-inline-end: 110px; min-height: 30px; }
	.mj_theme .obj_article_summary .galleys_links {
		position: absolute;
		top: 0;
		inset-inline-end: 0;
		flex-direction: column;
		align-items: flex-end;
		margin: 0;
	}
}
.mj_theme .obj_article_summary > .title { font-size: 13.5px; }
.mj_theme .obj_article_summary .meta { display: block; padding-top: 4px; color: var(--mj-text); }
.mj_theme .obj_article_summary .pages { color: var(--mj-muted); font-size: 12px; }
.mj_theme .obj_article_summary .cover { width: 150px; max-width: 30%; }
.mj_theme .obj_article_summary .cover img { max-height: none; width: 100%; }

/* ------------------------------------------------------------------ *
 * Archive: list of issues with the cover on the left
 * ------------------------------------------------------------------ */
.mj_theme .page_issue_archive .issues_archive {
	display: block;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
.mj_theme .page_issue_archive .issues_archive > li {
	margin: 0 0 5px;
	padding: 0 0 20px;
	border: 0;
}
.mj_theme .page_issue_archive .obj_issue_summary { display: flow-root; }
.mj_theme .page_issue_archive .obj_issue_summary .cover {
	float: left;
	width: 200px;
	max-width: 35%;
	margin: 0 10px 0 0;
}
.mj_theme[dir="rtl"] .page_issue_archive .obj_issue_summary .cover { float: right; margin: 0 0 0 10px; }
.mj_theme .page_issue_archive .obj_issue_summary .cover img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #ddd;
	box-shadow: none;
}
.mj_theme .page_issue_archive .obj_issue_summary h2 {
	overflow: hidden;
	margin: 0 0 5px;
	padding: 0 0 8px;
	border-bottom: 1px solid #eee;
	color: var(--mj-heading);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}
.mj_theme .page_issue_archive .obj_issue_summary h2 a { color: var(--mj-primary); text-decoration: none; }
.mj_theme .page_issue_archive .obj_issue_summary h2 a:hover { text-decoration: underline; }
.mj_theme .page_issue_archive .obj_issue_summary .series {
	margin-top: 6px;
	color: var(--mj-heading);
	font-size: 21px;
	font-weight: 300;
}
.mj_theme .page_issue_archive .obj_issue_summary .description { overflow: hidden; padding-top: 8px; }
@media (max-width: 599px) {
	.mj_theme .page_issue .obj_issue_toc .cover,
	.mj_theme .page_issue_archive .obj_issue_summary .cover { float: none; width: 60%; max-width: 220px; margin: 0 auto 12px; }
	.mj_theme .page_issue_archive .obj_issue_summary h2 { font-size: 20px; }
	.mj_theme .page_issue_archive .obj_issue_summary .series { font-size: 17px; }
	.mj_theme .page_submissions h2 { width: auto; }
}
.mj_theme .page_issue_archive .issues_archive,
.mj_theme .page_issue_archive .issues_archive > li:first-child { border-top: 0 !important; }
.mj_theme .page_issue_archive .issues_archive > li { border-bottom: 0 !important; }


/* Heading above the indexing-logo strip (theme option) */
.mj_logos_heading {
	padding: 22px 0 6px;
	background: #fff;
	border-top: 1px solid #e5e5e5;
}
.mj_theme .mj_logos_heading h2 {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	color: var(--mj-primary);
	font-family: var(--mj-font-heading);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
}
.mj_theme .mj_logos_heading h2:before,
.mj_theme .mj_logos_heading h2:after {
	content: "";
	flex: 1 1 0;
	height: 3px;
	background: linear-gradient(to right, transparent, var(--mj-grey) 30%, var(--mj-grey));
}
.mj_theme .mj_logos_heading h2:after { background: linear-gradient(to left, transparent, var(--mj-grey) 30%, var(--mj-grey)); }
.mj_logos.has_heading { padding-top: 2px; padding-bottom: 14px; }
@media (max-width: 599px) {
	.mj_theme .mj_logos_heading h2 { font-size: 15px; gap: 10px; }
}

/* ------------------------------------------------------------------ *
 * Header title next to the logo (theme option, v2.3)
 * ------------------------------------------------------------------ */
.mj_brand_row.has_header_title .mj_logo { flex: 0 0 auto; }
.mj_header_title {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--mj-on-primary);
	font-family: var(--mj-font-heading), "Noto Serif Tibetan", "Jomolhari", "Microsoft Himalaya", serif;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}
.mj_header_title a { display: block; color: inherit !important; text-decoration: none; }
.mj_header_title a:hover { opacity: .92; }
.mj_ht_line { font-size: min(var(--mj-ht-size, 20px), 8vw); }
.mj_ht_line + .mj_ht_line { margin-top: 4px; }
.mj_ht_line.is_sub { font-weight: 400; opacity: .92; }
.mj_header_title.is_center { text-align: center; }
.mj_header_title.is_right { text-align: end; }
@media (max-width: 991px) {
	.mj_brand_row.has_header_title .mj_logo { order: 1; flex: 0 0 auto; max-width: 30%; }
	.mj_header_title { order: 1; flex: 1 1 0; }
	.mj_header_title.is_center { text-align: start; }
	.mj_ht_line { font-size: min(var(--mj-ht-size, 20px), 6.2vw); }
	.mj_ht_line.is_sub { font-size: min(var(--mj-ht-size, 16px), 4.2vw); }
}

/* ------------------------------------------------------------------ *
 * Adjustable heading size (theme option "Section heading size")
 * ------------------------------------------------------------------ */
.mj_theme .mj_ribbon,
.mj_theme .mj_additional > h2:first-child,
.mj_theme .page_submissions h2 {
	width: calc(50% + 30px);
	max-width: 100%;
	padding: 10px 44px 10px 12px;
	font-size: var(--mj-h, 20px);
	line-height: 1.25;
	clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
}
.mj_theme[dir="rtl"] .mj_ribbon,
.mj_theme[dir="rtl"] .mj_additional > h2:first-child,
.mj_theme[dir="rtl"] .page_submissions h2 {
	padding: 10px 12px 10px 44px;
	clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%);
}
.mj_theme .mj_ribbon:after,
.mj_theme .mj_additional > h2:first-child:after,
.mj_theme .page_submissions h2:after { display: none; }

.mj_theme .page > h1,
.mj_theme .page_about .page > h2,
.mj_theme .page_about > h2 { font-size: calc(var(--mj-h, 20px) + 4px); line-height: 1.2; }
.mj_theme .page_about h2 { font-size: calc(var(--mj-h, 20px) + 1px); }
.mj_theme .page_about h3 { font-size: calc(var(--mj-h, 20px) - 2px); }
.mj_theme .mj_section .mj_plain_title { font-size: var(--mj-h, 20px); }
.mj_theme .mj_news_title { font-size: calc(var(--mj-h, 20px) + 6px); }
.mj_theme .mj_hero_title { font-size: calc(var(--mj-h, 20px) + 1px); line-height: 1.3; }
.mj_theme .pkp_block .title { font-size: calc(var(--mj-h, 20px) - 3px); line-height: 1.35; padding-top: 8px; padding-bottom: 8px; }
.mj_theme .mj_footer_title { font-size: calc(var(--mj-h, 20px) - 3px); }
.mj_theme .obj_issue_toc .section > h2 .mj_section_toggle,
.mj_theme .obj_issue_toc .section > h3 .mj_section_toggle { font-size: calc(var(--mj-h, 20px) - 3px); }
.mj_theme .mj_logos_heading h2 { font-size: var(--mj-h, 20px); }
@media (max-width: 599px) {
	.mj_theme .mj_ribbon,
	.mj_theme .page_submissions h2 { width: auto; font-size: min(var(--mj-h, 20px), 18px); }
}
/* Ribbons grow with long headings instead of wrapping */
.mj_theme .mj_ribbon,
.mj_theme .mj_additional > h2:first-child,
.mj_theme .page_submissions h2 {
	width: fit-content;
	min-width: min(calc(50% + 30px), 100%);
}


/* ------------------------------------------------------------------ *
 * Second logo on the right / main logo on the right (v2.7)
 * ------------------------------------------------------------------ */
.mj_right_logo { flex: 0 0 auto; order: 10; }
.mj_right_logo a { display: block; }
.mj_right_logo img {
	display: block;
	height: auto;
	max-height: var(--mj-rl-h, 90px);
	max-width: 260px;
	width: auto;
}
/* With no search box, push the right logo to the far right */
.mj_brand_row.has_right_logo .mj_right_logo { margin-inline-start: auto; }
.mj_brand_row.has_right_logo .mj_search + .mj_right_logo,
.mj_brand_row.has_right_logo .mj_search ~ .mj_right_logo { margin-inline-start: 0; }
/* Main OJS logo moved to the right end */
.mj_brand_row.logo_right .mj_logo { order: 11; margin-inline-start: auto; }
.mj_brand_row.logo_right .mj_header_title { order: 0; }
.mj_brand_row.logo_right .mj_search { order: 9; }
.mj_brand_row.logo_right.has_header_title .mj_logo { margin-inline-start: 0; }
.mj_brand_row.logo_right .mj_header_title { flex: 1 1 auto; }
@media (max-width: 991px) {
	.mj_right_logo { order: 2; }
	.mj_right_logo img { max-height: min(var(--mj-rl-h, 90px), 64px); max-width: 30vw; }
	.mj_brand_row.logo_right .mj_logo { order: 2; }
	.mj_nav_toggle { order: 3; }
	.mj_search { order: 4; }
}


/* ------------------------------------------------------------------ *
 * Footer text / heading colours (theme options, v2.8)
 * ------------------------------------------------------------------ */
.mj_footer,
.mj_footer p,
.mj_footer li,
.mj_footer a,
.mj_footer .mj_footer_list .fa,
.mj_footer_social a,
.mj_footer_bottom,
.mj_footer_bottom a { color: var(--mj-footer-text, #ccc); }
.mj_footer a:hover,
.mj_footer a:focus { color: var(--mj-footer-heading, #fff); }
.mj_footer_journals li.current a { color: var(--mj-footer-heading, #fff); }
.mj_theme .mj_footer_title,
.mj_footer_custom h1, .mj_footer_custom h2, .mj_footer_custom h3, .mj_footer_custom h4 { color: var(--mj-footer-heading, #eee) !important; }
.mj_theme .mj_footer_title:after { background: var(--mj-footer-text, #555); opacity: .6; }
.mj_footer_list li { border-bottom-color: color-mix(in srgb, var(--mj-footer-text, #ccc) 18%, transparent); }
.mj_footer_bottom { border-top-color: color-mix(in srgb, var(--mj-footer-text, #ccc) 18%, transparent); }


/* Publisher name in the top bar (v2.9) */
.mj_publisher {
	display: flex;
	align-items: center;
	margin-inline-end: 14px;
	padding-inline-end: 14px;
	border-inline-end: 1px solid rgba(255,255,255,.25);
	min-height: 48px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
}
.mj_publisher a,
.mj_publisher { color: var(--mj-on-secondary); text-decoration: none; }
.mj_publisher a { display: inline-flex; align-items: center; gap: 8px; }
.mj_publisher a:hover .mj_publisher_name,
.mj_publisher a:focus .mj_publisher_name { text-decoration: underline; }
.mj_publisher .fa { font-size: 15px; }
.mj_social:empty { display: none; }
@media (max-width: 599px) {
	.mj_publisher { width: 100%; justify-content: center; margin: 0; padding: 6px 0 0; border: 0; min-height: 0; }
}


/* ------------------------------------------------------------------ *
 * "Latest publications" sidebar block (replaces the Web Feed block, v3.0)
 * ------------------------------------------------------------------ */
.mj_theme .mj_latest_block .content { padding-top: 2px; }
.mj_theme .mj_latest_block .mj_sb_list { margin: 0; padding: 0; list-style: none; }
.mj_theme .mj_latest_block .mj_sb_list li {
	padding: 9px 0;
	border-bottom: 1px dashed #e2e2e2;
	line-height: 1.4;
}
.mj_theme .mj_latest_block .mj_sb_list li:last-child { border-bottom: 0; }
.mj_theme .mj_latest_block .mj_sb_link {
	display: block;
	color: var(--mj-primary);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
}
.mj_theme .mj_latest_block .mj_sb_link:hover { text-decoration: underline; }
.mj_theme .mj_latest_block .mj_sb_link:before { display: none; }
.mj_theme .mj_latest_block .mj_sb_meta { margin-top: 3px; color: #777; font-size: 12px; }
.mj_theme .mj_latest_block .mj_sb_authors { display: block; }
.mj_theme .mj_latest_block .mj_sb_issue { display: block; color: var(--mj-muted); font-style: italic; }
.mj_theme .mj_latest_block .mj_sb_subtitle {
	margin: 14px 0 4px;
	padding: 0 0 5px;
	border-bottom: 2px solid var(--mj-line);
	color: var(--mj-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.mj_theme .mj_latest_block .mj_sb_date { display: block; margin-bottom: 2px; color: var(--mj-muted); font-size: 11px; text-transform: uppercase; }
.mj_theme .mj_latest_block .mj_sb_news .mj_sb_link { font-weight: 600; }
.mj_theme .mj_latest_block .mj_sb_more {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}
.mj_theme .mj_latest_block .mj_sb_more:before,
.mj_theme .mj_latest_block .mj_sb_feeds a:before { display: none; }
.mj_theme .mj_latest_block .mj_sb_feeds {
	display: flex;
	gap: 6px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}
.mj_theme .mj_latest_block .mj_sb_feeds a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 3px;
	background: #f0f0f0;
	color: #666;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}
.mj_theme .mj_latest_block .mj_sb_feeds a .fa { color: #ee9313; }
.mj_theme .mj_latest_block .mj_sb_feeds a:hover { background: var(--mj-accent); color: var(--mj-on-accent); }
.mj_theme .mj_latest_block .mj_sb_feeds a:hover .fa { color: inherit; }


/* Quick Links without icons (theme option, v3.1): compact text tiles */
.mj_quicklinks.no_icons .mj_ql_icon { display: none; }
.mj_quicklinks.no_icons .mj_quicklinks_grid { gap: 10px; }
.mj_quicklinks.no_icons .mj_quicklinks_grid li { border: 0; }
.mj_quicklinks.no_icons .mj_quicklinks_grid a {
	flex-direction: row;
	justify-content: center;
	height: 100%;
	box-sizing: border-box;
	padding: 14px 10px;
	border: 1px solid #e3e3e3;
	border-inline-start: 4px solid var(--mj-primary);
	background: #fafafa;
	transition: background .15s, border-color .15s;
}
.mj_quicklinks.no_icons .mj_quicklinks_grid a:hover,
.mj_quicklinks.no_icons .mj_quicklinks_grid a:focus { background: #fff; border-color: var(--mj-primary); }


/* ------------------------------------------------------------------ *
 * "Journal metrics" sidebar block (v3.3)
 * ------------------------------------------------------------------ */
.mj_theme .mj_metrics { --mjm-bg: #0f1117; --mjm-text: #e6e8ee; --mjm-muted: #b9bdc8; --mjm-line: rgba(255,255,255,.12); --mjm-track: #2b2e36; --mjm-icon: #1f3566; --mjm-icon-text: #fff; }
.mj_theme .mj_metrics.is_light { --mjm-bg: #fff; --mjm-text: #2b2b2b; --mjm-muted: #555; --mjm-line: #e6e6e6; --mjm-track: #e9e9e9; --mjm-icon: color-mix(in srgb, var(--mj-primary) 14%, #fff); --mjm-icon-text: var(--mj-primary); }
.mj_theme .mj_metrics {
	overflow: hidden;
	border: 1px solid var(--mjm-line);
	border-radius: 12px;
	background: var(--mjm-bg);
	color: var(--mjm-text);
}
.mj_theme .mj_metrics .title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 16px 16px 14px;
	border-bottom: 1px solid var(--mjm-line);
	background: transparent;
	color: var(--mjm-text);
	letter-spacing: .08em;
}
.mj_theme .mj_metrics .title:after { display: none; }
.mj_theme .mj_metrics .mj_metrics_title .fa { color: #4c6fd6; margin-inline-end: 6px; }
.mj_theme .mj_metrics .mj_metrics_period {
	flex: 0 0 auto;
	padding: 5px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--mjm-text) 12%, transparent);
	color: var(--mjm-text);
	font-family: var(--mj-font);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}
.mj_theme .mj_metrics .content { padding: 4px 16px 10px; border: 0; }
.mj_theme .mj_metrics .mj_metrics_list { margin: 0; padding: 0; list-style: none; }
.mj_theme .mj_metrics .mj_metric {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--mjm-line);
}
.mj_theme .mj_metrics .mj_metric:last-child { border-bottom: 0; }
.mj_theme .mj_metrics .mj_metric_icon {
	flex: 0 0 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--mjm-icon);
	color: var(--mjm-icon-text);
	font-size: 16px;
}
.mj_theme .mj_metrics .mj_metric_declineRate .mj_metric_icon { background: #6b2a24; color: #fff; }
.mj_theme .mj_metrics.is_light .mj_metric_declineRate .mj_metric_icon { background: #fbe4e1; color: #c0392b; }
.mj_theme .mj_metrics .mj_metric_body { flex: 1 1 auto; min-width: 0; }
.mj_theme .mj_metrics .mj_metric_top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mj_theme .mj_metrics .mj_metric_label { color: var(--mjm-muted); font-size: 13px; line-height: 1.35; }
.mj_theme .mj_metrics .mj_metric_value { flex: 0 0 auto; color: var(--mjm-text); font-family: var(--mj-font-heading); font-size: 20px; font-weight: 700; }
.mj_theme .mj_metrics .mj_metric_bar { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: var(--mjm-track); overflow: hidden; }
.mj_theme .mj_metrics .mj_metric_bar span { display: block; height: 100%; border-radius: 3px; background: #2f5bd3; }
.mj_theme .mj_metrics .mj_metric_declineRate .mj_metric_bar span { background: #e0624f; }
.mj_theme .pkp_block .content ul.mj_metrics_list,
.mj_theme .pkp_block .content ul.mj_sb_list { padding: 0; list-style: none; }
.mj_theme .mj_metrics .title { font-size: calc(var(--mj-h, 20px) - 5px); }
.mj_theme .mj_metrics .mj_metrics_title { min-width: 0; }


/* Journal metrics: custom colours (v3.4) */
.mj_theme .mj_metrics .mj_metric_bar span { background: var(--mjm-bar, #2f5bd3); }
.mj_theme .mj_metrics .mj_metric_declineRate .mj_metric_bar span { background: var(--mjm-bar-alt, #e0624f); }
.mj_theme .mj_metrics.has_custom_colours .mj_metric_declineRate .mj_metric_icon { background: var(--mjm-icon-alt); color: var(--mjm-icon-alt-text); }
.mj_theme .mj_metrics.has_custom_colours .mj_metrics_title .fa { color: var(--mjm-text); }


/* ------------------------------------------------------------------ *
 * Publisher logo, header background image, full cover image (v3.5)
 * ------------------------------------------------------------------ */
.mj_publisher_logo { display: block; height: 26px; width: auto; max-width: 140px; object-fit: contain; }
.mj_masthead.has_header_image.is_background {
	background-image: var(--mj-header-bg);
	background-size: cover;
	background-position: center;
}
.mj_masthead.has_header_image.is_background:before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--mj-primary);
	opacity: var(--mj-header-overlay, .4);
	pointer-events: none;
}
.mj_masthead.has_header_image.is_background > .mj_container { position: relative; z-index: 1; }
.mj_masthead.is_cover .mj_cover_image { display: block; line-height: 0; }
.mj_masthead.is_cover .mj_cover_image img { display: block; width: 100%; height: auto; }
/* In full-cover mode the image carries the branding: hide the logo/title row on wide screens */
.mj_masthead.is_cover .mj_logo,
.mj_masthead.is_cover .mj_header_title,
.mj_masthead.is_cover .mj_right_logo { display: none; }
.mj_masthead.is_cover .mj_brand_row { min-height: 0; padding: 8px 0 0; justify-content: flex-end; }
.mj_masthead.is_cover .mj_brand_row:not(:has(.mj_search)) { padding: 0; }
@media (max-width: 991px) {
	.mj_masthead.is_cover .mj_brand_row { padding: 8px 0; }
}
@media (min-width: 992px) {
	.mj_masthead.is_cover > .mj_container { display: flex; align-items: flex-end; gap: 16px; }
	.mj_masthead.is_cover .mj_navbar { order: 1; flex: 1 1 auto; padding-top: 10px; }
	.mj_masthead.is_cover .mj_brand_row { order: 2; flex: 0 0 auto; padding: 8px 0; }
	.mj_masthead.is_cover .mj_search input { height: 34px; }
	.mj_masthead.is_cover .mj_search button { height: 34px; font-size: 14px; }
}
