/**
 * ============================================================
 * WISE Pendidikan Indonesia
 * Galley Actions — Static CSS
 * Version 2.1.0
 * ============================================================
 *
 * Purpose:
 * - Keep ORIGINALITY REPORT to the left of PDF when both exist.
 * - Keep a single PDF aligned cleanly when it is the only Galley.
 * - Preserve the existing journal-specific button colours.
 * - Avoid the OJS LESS compiler entirely.
 * ============================================================
 */

/* Desktop/tablet Current Issue cards */
html.kalidaka-modern body.pkp_page_index
.page_index_journal.kalidaka-home
.kalidaka-current-issue__toc
.obj_article_summary
.galleys_links {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	width: auto !important;
	max-width: none !important;
	white-space: nowrap !important;
}

html.kalidaka-modern body.pkp_page_index
.page_index_journal.kalidaka-home
.kalidaka-current-issue__toc
.obj_article_summary
.galleys_links > li {
	position: static !important;
	display: inline-flex !important;
	flex: 0 0 auto !important;
	width: auto !important;
	margin: 0 0 0 8px !important;
	padding: 0 !important;
	float: none !important;
}

html.kalidaka-modern body.pkp_page_index
.page_index_journal.kalidaka-home
.kalidaka-current-issue__toc
.obj_article_summary
.galleys_links > li:first-child {
	margin-left: 0 !important;
}

html.kalidaka-modern body.pkp_page_index
.page_index_journal.kalidaka-home
.kalidaka-current-issue__toc
.obj_article_summary
.galleys_links > li > a,
html.kalidaka-modern body.pkp_page_index
.page_index_journal.kalidaka-home
.kalidaka-current-issue__toc
.obj_article_summary
.galleys_links .cmp_galley_link,
html.kalidaka-modern body.pkp_page_index
.page_index_journal.kalidaka-home
.kalidaka-current-issue__toc
.obj_article_summary
.galleys_links .obj_galley_link {
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	white-space: nowrap !important;
}

/* Mobile: allow wrapping only when the viewport is genuinely narrow */
@media screen and (max-width: 560px) {
	html.kalidaka-modern body.pkp_page_index
	.page_index_journal.kalidaka-home
	.kalidaka-current-issue__toc
	.obj_article_summary
	.galleys_links {
		flex-wrap: wrap !important;
	}
}
