/**
 * Journal sidebar navigation + homepage intro.
 * Theme colour: --ojs-theme-base (injected per journal by JournalSidebarNavPlugin).
 */

.homepage_intro {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.homepage_intro_content {
	margin-bottom: 1rem;
	line-height: 1.6;
}

.homepage_intro_content > :first-child {
	margin-top: 0;
}

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

.homepage_intro_more {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
	color: var(--ojs-theme-base, #1e6292);
}

.homepage_intro_more:hover,
.homepage_intro_more:focus {
	text-decoration: underline;
}

.sidebar-journal-nav {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.75rem;
}

.pkp_structure_sidebar .sidebar-journal-nav .sidebar-btn,
.pkp_block.block_journal_sidebar_nav .sidebar-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 1.15rem;
	padding: 0.95em 1.1em;
	text-align: center;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.4;
	border-radius: 6px;
	border: none;
	color: #fff !important;
	transition: opacity 0.15s ease;
}

.sidebar-journal-nav .sidebar-btn:last-child {
	margin-bottom: 0;
}

.sidebar-journal-nav .sidebar-btn--primary {
	background-color: var(--ojs-theme-base, #1e6292);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.sidebar-journal-nav .sidebar-btn--secondary {
	background-color: color-mix(
		in srgb,
		var(--ojs-theme-base, #1e6292) 82%,
		#000 18%
	);
}

.pkp_structure_sidebar .sidebar-journal-nav .sidebar-btn:hover,
.pkp_structure_sidebar .sidebar-journal-nav .sidebar-btn:focus,
.pkp_block.block_journal_sidebar_nav .sidebar-btn:hover,
.pkp_block.block_journal_sidebar_nav .sidebar-btn:focus {
	opacity: 0.9;
	text-decoration: none !important;
	color: #fff !important;
}

.sidebar-indexing-logos {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin-top: 0.5rem;
}

.sidebar-indexing-logos a {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.sidebar-indexing-logos img {
	display: block;
	max-width: 180px;
	width: auto;
	height: auto;
	margin: 0 auto;
}

/* Rich text (About, Journal Summary): honour editor width/height attributes */
.page_about img[width],
.homepage_intro_content img[width],
.additional_content img[width] {
	height: auto;
}

.sidebar-indexing-logos img.sidebar-logo--doaj {
	width: 171px;
	max-width: 158px;
	height: 61px;
	max-height: 61px;
	object-fit: contain;
}

.sidebar-indexing-logos img.sidebar-logo--ithenticate {
	max-width: 160px;
	max-height: 48px;
	object-fit: contain;
	margin-top: 4px;
}

.sidebar-indexing-logos a:hover img {
	opacity: 0.85;
}
