/**
 * UCM Campus theme — child of the OJS default theme.
 * Conventional journal-portal look with ONE brand blue throughout.
 */
:root {
	--ucm-blue: #1e3a8a;          /* the single brand blue */
	--ucm-blue-hover: #182f72;    /* same hue, used only for hover/active */
	--ucm-blue-tint: #eef2fb;     /* very light tint of the same blue */
	--ucm-gold: #e3a90f;          /* thin accent lines only */
	--ucm-ink: #222433;
	--ucm-muted: #5f6475;
	--ucm-line: #dfe3ea;
	--ucm-bg: #f4f6f9;
	--ucm-radius: 6px;
}

html body { color: var(--ucm-ink); }
html body a { color: var(--ucm-blue); }

/* ================= HEADER (all site pages) ================= */
html body .pkp_structure_head {
	background: var(--ucm-blue);
	border-bottom: 0;
}

/* hide the default primary-menu row when it has no items */
html body .pkp_navigation_primary_row:not(:has(li)) { display: none; }

html body .pkp_structure_head .pkp_site_name .is_text {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .01em;
}

html body .pkp_structure_head .pkp_navigation_user > li > a {
	color: rgba(255, 255, 255, .9);
	font-weight: 600;
}

html body .pkp_structure_head .pkp_navigation_user > li > a:hover,
html body .pkp_structure_head .pkp_navigation_user > li > a:focus {
	color: #fff;
	text-decoration: underline;
}

/* desktop: one tidy row — site name left, Daftar/Login right */
@media (min-width: 992px) {
	html body .pkp_structure_head .pkp_head_wrapper {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		max-width: 1160px;
		width: 100%;
		min-height: 64px;
		margin: 0 auto;
		padding: 0 20px;
		box-sizing: border-box;
	}

	html body .pkp_structure_head .pkp_site_name_wrapper,
	html body .pkp_structure_head .pkp_site_name {
		width: auto;
		margin: 0;
		padding: 0;
		height: auto;
	}

	html body .pkp_structure_head .pkp_site_name .is_text {
		display: block;
		font-size: 1.35rem;
		line-height: 64px;
		padding: 0;
	}

	html body .pkp_structure_head .pkp_site_nav_menu {
		position: static;
		width: auto;
		padding: 0;
		background: transparent;
		display: flex;
		justify-content: flex-end;
	}

	/* default theme centres this with left:50% + translateX(); undo it */
	html body .pkp_structure_head .pkp_navigation_user_wrapper {
		position: static;
		top: auto;
		right: auto;
		left: auto;
		transform: none;
		width: auto;
		padding: 0;
	}

	html body .pkp_structure_head .pkp_navigation_user > li:last-child > a {
		margin-right: 0;
		padding-right: 0;
	}

	html body .pkp_structure_head .pkp_navigation_user {
		width: auto;
		padding: 0;
		margin: 0;
		display: flex;
		gap: 6px;
	}

	html body .pkp_structure_head .pkp_navigation_user > li > a {
		padding: 6px 10px;
	}
}

/* mobile: compact bar with toggle + site name */
@media (max-width: 991px) {
	html body .pkp_structure_head .pkp_site_name_wrapper { height: 56px; }
	html body .pkp_structure_head .pkp_site_name {
		height: 56px;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		padding-left: 24px; /* default theme already offsets it left:40px; toggle ends at 50px */
	}
	html body .pkp_structure_head .pkp_site_name .is_text {
		font-size: 1.05rem;
		line-height: 1.3;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	html body .pkp_structure_head .pkp_site_nav_toggle {
		top: 8px;
		left: 10px;
		background: rgba(255, 255, 255, .12);
		border-radius: 4px;
	}
	/* hamburger icon: middle bar = span border, top/bottom bars = span::before/::after */
	html body .pkp_structure_head .pkp_site_nav_toggle > span {
		background: none;
		border-bottom-color: #fff;
	}
	html body .pkp_structure_head .pkp_site_nav_toggle > span::before,
	html body .pkp_structure_head .pkp_site_nav_toggle > span::after {
		background: #fff;
	}
	html body .pkp_site_nav_menu {
		top: 56px;
		background: #fff;
		padding: 8px 16px 16px;
		box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .25);
	}
	html body .pkp_site_nav_menu a,
	html body .pkp_structure_head .pkp_site_nav_menu .pkp_navigation_user > li > a { color: var(--ucm-blue); }
}

/* ================= PORTAL PAGE: own full-width layout ================= */
.pkp_structure_content:has(.ucm-portal) {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

.pkp_structure_content:has(.ucm-portal) .pkp_structure_main {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.pkp_structure_content:has(.ucm-portal)::before,
.pkp_structure_content:has(.ucm-portal)::after,
.pkp_structure_content:has(.ucm-portal) .pkp_structure_main::before,
.pkp_structure_content:has(.ucm-portal) .pkp_structure_main::after {
	display: none !important;
}

.pkp_structure_content:has(.ucm-portal) .pkp_structure_sidebar { display: none; }

.ucm-portal {
	background: var(--ucm-bg);
	padding-bottom: 48px;
}

.ucm-portal *,
.ucm-portal *::before,
.ucm-portal *::after { box-sizing: border-box; }

.ucm-wrap {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- menu bar (continues the header, same blue) ---------- */
.ucm-menubar {
	background: var(--ucm-blue);
	border-top: 1px solid rgba(255, 255, 255, .15);
	border-bottom: 3px solid var(--ucm-gold);
}

.ucm-menubar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ucm-menubar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.ucm-portal .ucm-menubar a {
	display: block;
	padding: 12px 16px;
	color: rgba(255, 255, 255, .88);
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none;
}

.ucm-menubar__links li:first-child a { padding-left: 0; }

.ucm-portal .ucm-menubar a:hover,
.ucm-portal .ucm-menubar a:focus { color: #fff; text-decoration: underline; }

.ucm-portal .ucm-menubar a.is-current { color: #fff; }

.ucm-portal .ucm-menubar__lang a {
	padding: 12px 8px;
	font-size: .85rem;
	letter-spacing: .04em;
}

.ucm-portal .ucm-menubar__lang a.is-current { color: var(--ucm-gold); }

/* ---------- banner (light, same blue for text) ---------- */
.ucm-banner {
	padding: 28px 0;
	background: #fff;
	border-bottom: 1px solid var(--ucm-line);
}

.ucm-portal .ucm-banner__title {
	margin: 0 0 6px;
	font-size: 1.6rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ucm-blue);
}

.ucm-banner__text {
	margin: 0;
	max-width: 720px;
	color: var(--ucm-muted);
	font-size: 1rem;
	line-height: 1.6;
}

/* ---------- two-column layout ---------- */
.ucm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	margin-top: 28px;
	align-items: start;
}

/* ---------- panels (main column) ---------- */
.ucm-panel {
	background: #fff;
	border: 1px solid var(--ucm-line);
	border-radius: var(--ucm-radius);
	margin-bottom: 24px;
}

.ucm-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--ucm-line);
}

.ucm-portal .ucm-panel__head h2 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ucm-blue);
	padding-left: 12px;
	border-left: 4px solid var(--ucm-gold);
	line-height: 1.3;
}

.ucm-count {
	font-size: .82rem;
	font-weight: 600;
	color: var(--ucm-blue);
	background: var(--ucm-blue-tint);
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.ucm-panel__body { padding: 20px; }

.ucm-prose { line-height: 1.75; color: var(--ucm-ink); }
.ucm-prose > :first-child { margin-top: 0; }
.ucm-prose > :last-child { margin-bottom: 0; }

.ucm-notice {
	margin: 20px;
	padding: 16px 18px;
	background: var(--ucm-blue-tint);
	border-left: 4px solid var(--ucm-blue);
	border-radius: 4px;
	color: var(--ucm-ink);
}

.ucm-notice strong { color: var(--ucm-blue); }

/* ---------- journal list ---------- */
.ucm-journal-list {
	list-style: none;
	padding: 0;
}

.ucm-journal {
	display: flex;
	gap: 20px;
	padding: 20px;
	border-bottom: 1px solid var(--ucm-line);
}

.ucm-journal:last-child { border-bottom: 0; }

.ucm-portal .ucm-journal__cover {
	flex: none;
	width: 130px;
	aspect-ratio: 3 / 4;
	border: 1px solid var(--ucm-line);
	border-radius: 4px;
	overflow: hidden;
	background: var(--ucm-bg);
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.ucm-journal__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ucm-journal__placeholder {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px;
	text-align: center;
	background: var(--ucm-blue);
	color: #fff;
}

.ucm-journal__placeholder b {
	font-size: 1.3rem;
	letter-spacing: .03em;
	color: #fff;
	word-break: break-word;
}

.ucm-journal__placeholder small {
	font-size: .7rem;
	opacity: .8;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ucm-journal__info { min-width: 0; flex: 1; }

.ucm-portal .ucm-journal__title {
	font-size: 1.15rem;
	line-height: 1.35;
	font-weight: 700;
}

.ucm-portal .ucm-journal__title a {
	color: var(--ucm-blue);
	text-decoration: none;
}

.ucm-portal .ucm-journal__title a:hover { text-decoration: underline; }

.ucm-journal__issn {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: .85rem;
	color: var(--ucm-muted);
}

.ucm-journal__desc {
	font-size: .93rem;
	line-height: 1.65;
	color: var(--ucm-ink);
}

.ucm-journal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ucm-portal .ucm-btn {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--ucm-line);
	border-radius: 4px;
	background: #fff;
	color: var(--ucm-blue);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.ucm-portal .ucm-btn:hover {
	border-color: var(--ucm-blue);
	background: var(--ucm-blue-tint);
	color: var(--ucm-blue);
}

.ucm-portal .ucm-btn--primary {
	background: var(--ucm-blue);
	border-color: var(--ucm-blue);
	color: #fff;
}

.ucm-portal .ucm-btn--primary:hover {
	background: var(--ucm-blue-hover);
	border-color: var(--ucm-blue-hover);
	color: #fff;
}

/* ---------- sidebar ---------- */
.ucm-box {
	background: #fff;
	border: 1px solid var(--ucm-line);
	border-radius: var(--ucm-radius);
	margin-bottom: 20px;
	overflow: hidden;
}

.ucm-portal .ucm-box__title {
	margin: 0;
	padding: 11px 16px;
	background: var(--ucm-blue);
	color: #fff;
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	border-bottom: 3px solid var(--ucm-gold);
}

.ucm-box__body {
	padding: 14px 16px;
	font-size: .92rem;
	line-height: 1.65;
}

.ucm-linklist {
	list-style: none;
	padding: 0;
}

.ucm-linklist li { border-bottom: 1px dashed var(--ucm-line); }
.ucm-linklist li:last-child { border-bottom: 0; }

.ucm-portal .ucm-linklist a {
	display: block;
	padding: 8px 0 8px 14px;
	position: relative;
	color: var(--ucm-ink);
	text-decoration: none;
}

.ucm-portal .ucm-linklist a::before {
	content: "›";
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--ucm-blue);
	font-weight: 700;
}

.ucm-portal .ucm-linklist a:hover { color: var(--ucm-blue); text-decoration: underline; }

.ucm-stats {
	width: 100%;
	border-collapse: collapse;
}

.ucm-stats th,
.ucm-stats td {
	padding: 7px 0;
	border-bottom: 1px dashed var(--ucm-line);
	text-align: left;
	font-weight: 400;
	vertical-align: top;
}

.ucm-stats th { color: var(--ucm-muted); }
.ucm-stats td { text-align: right; font-weight: 600; color: var(--ucm-blue); }
.ucm-stats tr:last-child th,
.ucm-stats tr:last-child td { border-bottom: 0; }

/* reset default-theme margins on lists/paragraphs inside the portal */
.ucm-portal ul.ucm-journal-list,
.ucm-portal ul.ucm-linklist { margin: 0; }
.ucm-portal .ucm-journal h3.ucm-journal__title { margin: 0 0 6px; }
.ucm-portal .ucm-journal p.ucm-journal__issn { margin: 0 0 10px; }
.ucm-portal .ucm-journal p.ucm-journal__desc { margin: 0 0 14px; }
.ucm-portal .ucm-notice p { margin: 4px 0 0; line-height: 1.6; }
.ucm-portal .ucm-box__body p { margin: 0; }

/* ================= FOOTER (same blue) ================= */
html body .pkp_structure_footer_wrapper {
	background: var(--ucm-blue);
	color: rgba(255, 255, 255, .8);
	border-top: 3px solid var(--ucm-gold);
}

html body .pkp_structure_footer_wrapper a { color: #fff; }

html body .pkp_brand_footer img {
	filter: brightness(0) invert(1);
	opacity: .55;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
	.ucm-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.ucm-wrap { padding: 0 16px; }
	.ucm-menubar .ucm-wrap { padding-right: 8px; }
	.ucm-menubar__inner { gap: 4px; }
	.ucm-menubar ul.ucm-menubar__links {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		min-width: 0;
	}
	.ucm-menubar__links::-webkit-scrollbar { display: none; }
	.ucm-menubar ul.ucm-menubar__lang { flex-wrap: nowrap; flex: none; }
	.ucm-portal .ucm-menubar a { padding: 11px 10px; font-size: .88rem; white-space: nowrap; }
	.ucm-portal .ucm-menubar__lang a { padding: 11px 6px; }
	.ucm-portal .ucm-hide-sm { display: none; }
	.ucm-banner { padding: 20px 0; }
	.ucm-portal .ucm-banner__title { font-size: 1.3rem; }
	.ucm-layout { margin-top: 20px; gap: 0; }
	.ucm-journal { flex-direction: column; }
	.ucm-portal .ucm-journal__cover { width: 120px; }
}
