/* UMP E-Journal Portal */

/* Inter (variable, weights 400-800), self-hosted: no request to Google, same look on every device.
   SIL Open Font License 1.1, see ../assets/fonts/Inter-LICENSE.txt. latin-ext only downloads
   when a page actually contains those characters (e.g. author names with diacritics). */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ump-green: #075E46;
	--ump-green-dark: #064D3A;
	--ump-green-soft: #E8F3EF;
	--ump-gold: #F4B900;
	--ump-gold-dark: #DDA800;
	--text: #1E2A26;
	--muted: #5E6B66;
	--border: #E1E7E4;
	--bg: #F7F9F8;
	--white: #FFFFFF;
	--shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 10px 28px rgba(0, 0, 0, 0.09);
	--container: 1320px;
	/* Type scale: 12 / 14 / 16 / 20 / 28 / 44. Small uppercase labels may use 11px. */
	--fs-xs: 12px;
	--fs-sm: 14px;
	--fs-md: 16px;
	--fs-lg: 20px;
	--fs-xl: 28px;
	--fs-2xl: 44px;
	/* Radii: controls, cards/panels, pills. */
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-pill: 999px;
	--focus-ring: 2px solid var(--ump-green);
}

/* Base */
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 85px;
}
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}
img {
	display: block;
	max-width: 100%;
}
button,
input,
select {
	font: inherit;
}
button,
a {
	-webkit-tap-highlight-color: transparent;
}
input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
}
/* Keyboard focus ring. :where() keeps specificity at zero so component styles still win. */
:where(a, button, summary, select, [tabindex]):focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}
:where(.ump_hero, .site_footer, .btn_primary, .ump_portal_tabs button.active) :focus-visible,
:where(.btn_primary, .ump_portal_tabs button.active, .ump_apply_filters):focus-visible {
	outline-color: var(--ump-gold);
}
.hero_article_search_box input:focus-visible {
	box-shadow: 0 0 0 3px var(--ump-gold);
}

/* Header */
.site_header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(10px);
}
.site_header_inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(var(--container), calc(100% - 48px));
	margin: 0 auto;
	padding: 12px 0;
}
.site_brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}
.site_brand img {
	width: 50px;
	height: 50px;
	object-fit: contain;
	flex: 0 0 auto;
}
.site_brand div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.site_brand strong {
	color: var(--ump-green);
	font-size: clamp(16px, 4vw, 20px);
	line-height: 1.2;
}
.site_brand span {
	margin-top: 2px;
	color: var(--muted);
	font-size: clamp(9px, 3vw, 13px);
	white-space: nowrap;
}
.site_nav {
	display: flex;
	align-items: center;
	gap: 24px;
}
.site_nav a {
	position: relative;
	color: #33403B;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.site_nav a:hover,
.site_nav a.active {
	color: var(--ump-green);
}
.site_nav a:not(.login_link)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -7px;
	height: 2px;
	background: var(--ump-green);
	transition: right 0.2s ease;
}
.site_nav a:not(.login_link):hover::after,
.site_nav a.active:not(.login_link)::after {
	right: 0;
}
.login_link {
	padding: 8px 14px;
	border: 1px solid var(--ump-green);
	border-radius: var(--radius-sm);
	color: var(--ump-green) !important;
}
.login_link:hover {
	background: var(--ump-green);
	color: var(--white) !important;
}
.mobile_menu_button {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}
.mobile_menu_button span {
	display: block;
	width: 26px;
	height: 3px;
	border-radius: var(--radius-pill);
	background: var(--ump-green);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile_menu_button.is_open span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.mobile_menu_button.is_open span:nth-child(2) {
	opacity: 0;
}
.mobile_menu_button.is_open span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Main */
.portal_container {
	width: min(var(--container), calc(100% - 48px));
	margin: 0 auto;
}

/* Hero */
.ump_hero {
	position: relative;
	overflow: hidden;
	margin: 20px 0;
	border-radius: var(--radius-md);
	background: var(--ump-green);
	color: var(--white);
}
.ump_hero::before,
.ump_hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.ump_hero::before {
	width: 500px;
	height: 500px;
	right: -210px;
	top: -300px;
	border: 72px solid rgba(255, 255, 255, 0.055);
}
.ump_hero::after {
	width: 280px;
	height: 280px;
	right: 110px;
	bottom: -235px;
	border: 42px solid rgba(255, 255, 255, 0.035);
}
.ump_hero_content {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	padding: 42px 54px;
}
.ump_eyebrow {
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.ump_hero h1 {
	margin: 0;
	color: var(--white);
	/* Fluid: 26px on a 320px phone up to 44px on desktop, no jumps at breakpoints. */
	font-size: clamp(26px, 3.2vw + 16px, var(--fs-2xl));
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -1px;
}
.ump_hero_description {
	max-width: 760px;
	margin: 16px 0 24px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 16px;
}
.hero_article_search {
	width: min(860px, 100%);
	margin: 0;
}
.hero_article_search_box {
	display: flex;
	width: 100%;
}
.hero_article_search_box input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	border: 0;
	border-radius: 6px 0 0 6px;
	background: var(--white);
	color: var(--text);
	font-size: 15px;
	outline: none;
}
.hero_article_search_box input:focus {
	box-shadow: inset 0 0 0 2px rgba(7, 94, 70, 0.22);
}
.hero_article_search_box button {
	height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: var(--ump-gold);
	color: #151515;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.hero_article_search_box button:hover {
	background: var(--ump-gold-dark);
}
.hero_search_hint {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
}

/* Journals */
.journal_section {
	padding-bottom: 64px;
}
/* Heading row: title left, journal search right. */
.journal_discovery_header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}
.journal_discovery_header h2 {
	margin: 2px 0 0;
	color: var(--text);
	font-size: clamp(22px, 1.6vw + 16px, var(--fs-xl));
	line-height: 1.2;
}
.journal_discovery_label {
	color: var(--ump-green);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}
.journal_count {
	color: var(--muted);
	font-size: 13px;
}
/* Right of the heading: "Reset filter" + journal count. */
.journal_header_meta {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 4px;
}
.journal_reset {
	padding: 4px 2px;
	border: 0;
	background: transparent;
	color: var(--ump-green);
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.journal_reset[hidden] {
	display: none;
}
/* Same order at every width: [search + subject] / [indexing tabs] / [grade row of the active group].
   Tabs and grades wrap onto more lines instead of scrolling sideways, so every option stays visible,
   however many filters (SINTA, Scopus, DOAJ, Garuda, ...) are configured. */
.journal_toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}
.facet_options {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	min-width: 0;
}
.ump_portal_tabs {
	align-items: center;
	padding: 5px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}
.facet_options button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: #33403B;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.facet_options button:hover:not(:disabled) {
	background: var(--ump-green-soft);
	color: var(--ump-green);
}
.facet_options button.active,
.facet_options button.active:hover {
	background: var(--ump-green);
	color: var(--white);
}
/* No matches for this combination: dimmed, kept in place so the row doesn't jump. */
.facet_options button.is_empty {
	opacity: 0.45;
	cursor: default;
}
.filter_count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 21px;
	height: 21px;
	padding: 0 6px;
	border-radius: var(--radius-pill);
	background: #EDF3F1;
	color: var(--ump-green);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}
.facet_options button.active .filter_count {
	background: rgba(255, 255, 255, 0.18);
	color: var(--white);
}
.journal_tools {
	display: flex;
	gap: 10px;
	min-width: 0;
}
.journal_subject_select {
	flex: 0 1 190px;
	min-width: 0;
	height: 48px;
	padding: 0 38px 0 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%235E6B66' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
	box-shadow: var(--shadow-sm);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.journal_subject_select:focus {
	border-color: var(--ump-green);
	outline: none;
}
.journal_subject_select:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}
/* A subject is selected: tint the dropdown so the active filter is visible at a glance. */
.journal_subject_select.is_active {
	border-color: var(--ump-green);
	background-color: var(--ump-green-soft);
	color: var(--ump-green);
}
/* Grouped tab (e.g. SINTA): small caret, flipped while its grade row is open. */
.filter_caret {
	margin-left: -2px;
	transition: transform .15s ease;
}
.facet_options button[aria-expanded="true"] .filter_caret {
	transform: rotate(180deg);
}
/* Second level under a grouped tab: lighter, underline-style options (like sub-tabs), right under the tabs. */
.facet_subrow {
	margin-top: -2px;
	padding: 0 6px;
	border-bottom: 1px solid var(--border);
}
.facet_subrow[hidden] {
	display: none;
}
.facet_grades {
	gap: 2px;
}
.facet_grades button,
.facet_grades button.active,
.facet_grades button.active:hover {
	min-height: 40px;
	padding: 0 12px;
	border-radius: 0;
	background: transparent;
	color: var(--muted);
	font-weight: 600;
	box-shadow: inset 0 -2px 0 transparent;
}
.facet_grades button:hover:not(:disabled) {
	background: transparent;
	color: var(--ump-green);
}
.facet_grades button.active,
.facet_grades button.active:hover {
	color: var(--ump-green);
	font-weight: 700;
	box-shadow: inset 0 -2px 0 var(--ump-green);
}
.facet_grades button.active .filter_count {
	background: var(--ump-green-soft);
	color: var(--ump-green);
}
/* Styled subject dropdown (replaces the unstylable native option list; the <select> stays as fallback). */
.ump_select {
	position: relative;
	/* Wide enough for the longest subject ("Pengabdian Masyarakat") without truncating. */
	flex: 0 1 270px;
	min-width: 0;
}
.ump_select_button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: var(--shadow-sm);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.ump_select_value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ump_select_caret {
	flex: 0 0 auto;
	color: var(--muted);
	transition: transform .15s ease;
}
.ump_select.is_open .ump_select_caret {
	transform: rotate(180deg);
}
.ump_select_button:hover,
.ump_select.is_open .ump_select_button {
	border-color: var(--ump-green);
}
.ump_select.is_active .ump_select_button {
	border-color: var(--ump-green);
	background: var(--ump-green-soft);
	color: var(--ump-green);
}
.ump_select_list {
	position: absolute;
	z-index: 50;
	top: calc(100% + 6px);
	left: 0;
	min-width: 100%;
	width: max-content;
	max-width: min(340px, calc(100vw - 32px));
	max-height: 340px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: var(--shadow-md);
	list-style: none;
	outline: none;
}
.ump_select_list[hidden] {
	display: none;
}
.ump_select_list [role="option"] {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: var(--radius-sm);
	color: var(--text);
	font-size: 14px;
	cursor: pointer;
}
.ump_select_list [role="option"] .filter_name {
	flex: 1;
}
.ump_select_list [role="option"].is_focused {
	background: var(--ump-green-soft);
	color: var(--ump-green);
}
.ump_select_list [role="option"][aria-selected="true"] {
	color: var(--ump-green);
	font-weight: 700;
}
.ump_select_list [role="option"][aria-disabled="true"] {
	opacity: 0.45;
	cursor: default;
}
.ump_select_check {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}
.ump_select_list [role="option"][aria-selected="true"] .ump_select_check {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23075E46' stroke-width='2.2'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.ump_select_list:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}
.ump_visually_hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.journal_search {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	/* Search first (left), subject dropdown on its right. */
	order: -1;
	align-items: center;
	min-width: 0;
}
.journal_search_icon {
	position: absolute;
	left: 14px;
	color: var(--muted);
	pointer-events: none;
}
.journal_search input {
	flex: 1;
	min-width: 0;
	/* Same height, radius and shadow as the indexing tab box beside it. */
	height: 48px;
	padding: 0 46px 0 42px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: var(--shadow-sm);
	color: var(--text);
	/* 15px on desktop, 16px on phones (iOS zoom rule): no visible jump between the two. */
	font-size: 15px;
	outline: none;
}
/* Our own clear button replaces the browser's native one. */
.journal_search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.journal_search input:focus {
	border-color: var(--ump-green);
	box-shadow: inset 0 0 0 1px var(--ump-green);
}
.journal_search_clear {
	position: absolute;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.journal_search_clear[hidden] {
	display: none;
}
.journal_search_clear:hover,
.journal_search_clear:focus-visible {
	background: var(--ump-green-soft);
	color: var(--ump-green);
}

/* Journal cards */
.journal_grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}
.journal_card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.journal_card:hover {
	transform: translateY(-3px);
	border-color: #D4DDD9;
	box-shadow: var(--shadow-md);
}
.journal_cover {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 205px;
	padding: 17px;
	background: var(--bg);
}
.journal_cover img {
	/* width/height attributes only reserve the ratio; CSS keeps it inside the box. */
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 172px;
	object-fit: contain;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}
/* Placeholder cover: shows the journal's short name instead of a generic logo. */
.cover_placeholder {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 125px;
	height: 166px;
	padding: 14px 11px 11px;
	border-radius: 2px;
	background: var(--ump-green);
	color: var(--white);
	text-align: left;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.journal_cover.placeholder .cover_placeholder {
	display: flex;
}
.cover_placeholder strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
}
.cover_placeholder small {
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	opacity: 0.85;
}
.cover_tone_1 { background: #0B4A38; }
.cover_tone_2 { background: #1D6B58; }
.cover_tone_3 { background: #3D6647; }
/* reCAPTCHA is a fixed 304x78px iframe. Keep it left-aligned with the fields; on narrow phones
   (form fields are viewport - 66px wide) scale it from the left edge so it never pokes out of
   the card or causes sideways scrolling. Negative space from scaling is taken back via margin. */
.g-recaptcha {
	margin: 4px 0 16px;
}
@media (max-width: 370px) {
	.g-recaptcha {
		transform: scale(0.9);
		transform-origin: left top;
		margin-bottom: 8px;
	}
}
@media (max-width: 340px) {
	.g-recaptcha {
		transform: scale(0.83);
		margin-bottom: 3px;
	}
}
/* Skip link: hidden until focused with the keyboard. */
.skip_link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: var(--ump-green);
	color: var(--white);
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-200%);
}
.skip_link:focus {
	transform: none;
}
main:focus {
	outline: none;
}
.journal_body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 15px;
}
.journal_body h3 {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 8px;
	color: var(--text);
	font-size: var(--fs-md);
	font-weight: 700;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}
.journal_body h3 a {
	color: inherit;
	text-decoration: none;
}
.journal_body h3 a:hover {
	color: var(--ump-green);
}
.journal_issn {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}
.journal_subject {
	margin-bottom: 9px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.55px;
	text-transform: uppercase;
}
.journal_badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 12px;
}
.badge {
	display: inline-flex;
	align-items: center;
	min-height: 21px;
	padding: 3px 7px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.badge.sinta {
	background: #E9F3FF;
	color: #175A91;
}
.badge.doaj {
	background: #FFF3DF;
	color: #8A5710;
}
.badge.accredited {
	background: var(--ump-green-soft);
	color: var(--ump-green);
}
.badge.scopus {
	background: #F0EBF8;
	color: #61428A;
}
/* Two equal columns, always side by side and aligned across cards. Longer labels (e.g. Indonesian
   "Terbitan Terkini") wrap inside their own button instead of pushing it onto a second row. */
.journal_actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-top: auto;
	padding-top: 7px;
}
.journal_actions .btn_primary,
.journal_actions .btn_secondary {
	min-width: 0;
	padding: 7px 8px;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
}
.btn_primary,
.btn_secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 10px;
	border-radius: var(--radius-sm);
	font-size: var(--fs-xs);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn_primary {
	background: var(--ump-green);
	color: var(--white);
}
.btn_primary:hover {
	background: var(--ump-green-dark);
	color: var(--white);
}
.btn_secondary {
	border: 1px solid var(--border);
	background: var(--white);
	color: #47534E;
}
.btn_secondary:hover {
	border-color: var(--ump-green);
	color: var(--ump-green);
}

/* Search page */
.search_page {
	width: min(var(--container), calc(100% - 48px));
	margin: 0 auto;
	padding: 36px 0 70px;
}
.search_page_header {
	max-width: 900px;
	margin-bottom: 34px;
}
.search_back {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--ump-green);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}
.search_back:hover {
	text-decoration: underline;
}
.search_page_header h1 {
	margin: 3px 0 0;
	color: var(--text);
	font-size: 36px;
	line-height: 1.15;
}
.search_page_header p {
	max-width: 680px;
	margin: 10px 0 22px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}
.article_search {
	display: flex;
	width: min(780px, 100%);
}
.article_search input {
	flex: 1;
	min-width: 0;
	height: 50px;
	padding: 0 16px;
	border: 1px solid #CBD5D1;
	border-right: 0;
	border-radius: 6px 0 0 6px;
	background: var(--white);
	color: var(--text);
	font-size: 15px;
	outline: none;
}
.article_search input:focus {
	border-color: var(--ump-green);
	box-shadow: inset 0 0 0 1px var(--ump-green);
}
.article_search button {
	height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: var(--ump-green);
	color: var(--white);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.article_search button:hover {
	background: var(--ump-green-dark);
}
.search_layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}
.search_filters {
	position: sticky;
	top: 100px;
	padding-right: 22px;
	border-right: 1px solid var(--border);
}
.search_filter_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}
.search_filter_header h2 {
	margin: 0;
	font-size: 15px;
}
.search_filter_header button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ump-green);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.filter_group {
	padding: 17px 0;
	border-top: 1px solid var(--border);
}
.filter_group h3 {
	margin: 0 0 11px;
	color: var(--text);
	font-size: 12px;
}
.filter_group label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 9px 0;
	color: #47534E;
	font-size: 12px;
	line-height: 1.45;
	cursor: pointer;
}
.filter_group input {
	margin-top: 2px;
	accent-color: var(--ump-green);
}
/* Publication year */
.ump_year_presets {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 12px;
}

.ump_year_preset {
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 12px;
	text-align: left;
	cursor: pointer;
}

.ump_year_preset:hover,
.ump_year_preset.active {
	color: var(--ump-green);
	font-weight: 700;
}

.ump_custom_year_range {
	margin-top: 12px;
}

.ump_custom_year_range[hidden] {
	display: none !important;
}

.ump_year_range_inline {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: end;
	gap: 8px;
}

.ump_year_range_field {
	min-width: 0;
}

.ump_year_range_field label {
	display: block;
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 11px;
}

.ump_year_range_field .ump_filter_field {
	width: 100%;
	min-width: 0;
}

.ump_year_separator {
	padding-bottom: 12px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1;
}
/* Results Articles */
.results_header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 8px;
}
.results_label {
	color: var(--ump-green);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}
.results_header h2 {
	margin: 3px 0 0;
	font-size: 23px;
}
.results_header select {
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: #47534E;
	font-size: 12px;
}
.results_description {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.6;
}
.view_all_articles {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	color: var(--ump-green);
	font-size: var(--fs-xs);
	font-weight: 700;
	text-decoration: none;
}
.view_all_articles:hover {
	text-decoration: underline;
}
.article_result {
	padding: 16px 0;
	border-top: 1px solid var(--border);
}
.article_meta {
	margin-bottom: 5px;
	color: var(--ump-green);
	font-size: 11px;
	font-weight: 700;
}
.article_result h3 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.4;
}
.article_result h3 a {
	color: var(--text);
	text-decoration: none;
}
.article_result h3 a:hover {
	color: var(--ump-green);
}
.article_authors {
	margin-bottom: 8px;
	color: #47534E;
	font-size: 13px;
}
.article_result p {
	max-width: 850px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}
.article_keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 11px 0;
}
.article_keywords span {
	padding: 4px 7px;
	border-radius: var(--radius-pill);
	background: var(--ump-green-soft);
	color: var(--ump-green);
	font-size: 12px;
	font-weight: 700;
}
.search_empty {
	padding: 50px 20px;
	border-top: 1px solid var(--border);
	text-align: center;
}
.search_empty h3 {
	margin: 0 0 5px;
	font-size: 16px;
}
.search_empty p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
}
.filter_toggle {
	display: none;
}

/* Login */
.auth_page {
	min-height: 100vh;
	background: var(--bg);
}
.auth_back {
	padding: 8px 13px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: #47534E;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}
.auth_back:hover {
	border-color: var(--ump-green);
	color: var(--ump-green);
}
.auth_main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 76px);
	padding: 42px 20px;
}
.auth_card {
	width: min(440px, 100%);
	padding: 32px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}
.auth_intro {
	margin-bottom: 26px;
}
.auth_label {
	display: inline-block;
	margin-bottom: 7px;
	color: var(--ump-green);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}
.auth_intro h1 {
	margin: 0;
	color: var(--text);
	font-size: 30px;
	line-height: 1.2;
}
.auth_intro p {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}
.auth_form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.form_group {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.form_group label {
	color: #33403B;
	font-size: 12px;
	font-weight: 700;
}
.form_group input {
	width: 100%;
	height: 46px;
	padding: 0 13px;
	border: 1px solid #D6DDDA;
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--text);
	font-size: 14px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form_group input:focus {
	border-color: var(--ump-green);
	box-shadow: 0 0 0 3px rgba(7, 94, 70, 0.08);
}
.form_label_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.form_label_row a {
	color: var(--ump-green);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}
.form_label_row a:hover {
	text-decoration: underline;
}
.password_field {
	position: relative;
}
.password_field input {
	padding-right: 62px;
}
.password_toggle {
	position: absolute;
	top: 50%;
	right: 7px;
	transform: translateY(-50%);
	padding: 6px 8px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ump-green);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.password_toggle:hover {
	background: var(--ump-green-soft);
}
.remember_field {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #47534E;
	font-size: 12px;
	cursor: pointer;
}
.remember_field input {
	accent-color: var(--ump-green);
}
.auth_submit {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--ump-green);
	color: var(--white);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.auth_submit:hover {
	background: var(--ump-green-dark);
}
.auth_register {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	text-align: center;
	color: var(--muted);
	font-size: 12px;
}
.auth_register a {
	margin-left: 4px;
	color: var(--ump-green);
	font-weight: 700;
	text-decoration: none;
}
.auth_register a:hover {
	text-decoration: underline;
}

/* Footer */
.site_footer {
	background: var(--ump-green);
}
.site_footer_inner {
	width: min(var(--container), calc(100% - 48px));
	margin: 0 auto;
	padding-top: 30px;
}
.footer_grid {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr 1.1fr;
	gap: 40px;
	padding-bottom: 36px;
}
.footer_col {
	min-width: 0;
}
.footer_label {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--ump-gold);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}
/* Styled like a heading, but not one: keeps the page outline to real sections. */
.footer_about .footer_title {
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--white);
	font-size: 28px;
	line-height: 1.2;
}
.footer_col p {
	margin: 0 0 10px;
	color: var(--white);
	font-size: 14px;
	line-height: 1.7;
}
.footer_links,
.footer_contact_list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.footer_links li,
.footer_contact_list li {
	margin-bottom: 10px;
}
.footer_links a,
.footer_contact_list a {
	color: var(--white);
	text-decoration: none;
}
.footer_links a:hover,
.footer_contact_list a:hover {
	text-decoration: underline;
}
.footer_contact_list li {
	color: var(--white);
	font-size: 14px;
	line-height: 1.7;
}
.footer_bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 0 24px;
	border-top: 1px solid var(--white);
	color: var(--white);
	font-size: 12px;
}
.footer_bottom_right {
	white-space: nowrap;
}

/* Responsive */
@media (max-width: 1162px) {
	.journal_grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 939px) {
	.site_header_inner,
	.portal_container,
	.search_page {
		width: min(calc(100% - 32px), var(--container));
	}
	.site_header_inner {
		position: relative;
	}
	.site_brand img {
		width: 44px;
		height: 44px;
	}
	.mobile_menu_button {
		display: flex;
	}
	.site_nav {
		position: absolute;
		display: none;
		top: calc(100% + 1px);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px;
		background: var(--white);
		border: 1px solid var(--border);
		border-radius: var(--radius-md);
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	}
	.site_nav.is_open {
		display: flex;
	}
	.site_nav a {
		display: block;
		padding: 11px 12px;
		border-radius: var(--radius-sm);
	}
	.site_nav a:hover,
	.site_nav a.active {
		background: var(--ump-green-soft);
		color: var(--ump-green);
	}
	.site_nav a::after {
		display: none;
	}
	.login_link {
		margin-top: 4px;
		text-align: center;
	}
	.login_link:hover {
		background: var(--ump-green) !important;
	}
	.ump_hero_content {
		padding: 38px 34px;
	}
	.journal_grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.search_layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.filter_toggle {
		display: inline-flex;
		margin-bottom: 14px;
		padding: 8px 13px;
		border: 1px solid var(--ump-green);
		border-radius: var(--radius-sm);
		background: var(--white);
		color: var(--ump-green);
		font-size: 12px;
		font-weight: 700;
		cursor: pointer;
	}
	.search_filters {
		position: static;
		display: none;
		padding: 14px;
		border: 1px solid var(--border);
		border-radius: var(--radius-md);
		background: var(--bg);
	}
	.search_filters.is_open {
		display: block;
	}
	.site_footer_inner {
		width: min(calc(100% - 32px), var(--container));
	}
	.footer_grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.footer_bottom {
		flex-direction: column;
		align-items: flex-start;
	}
	.footer_bottom_right {
		white-space: normal;
	}
}
@media (max-width: 700px) {
	/* Title and count share a row; search and subject each take the full width below. */
	.journal_discovery_header {
		flex-wrap: wrap;
		gap: 8px 12px;
	}
	.journal_tools {
		flex-wrap: wrap;
	}
	.journal_search,
	.journal_subject_select,
	.ump_select {
		flex: 1 1 100%;
	}
	.ump_select_button {
		font-size: 16px;
	}
	.ump_select_list {
		width: 100%;
		max-width: none;
	}
	.ump_select_list [role="option"] {
		min-height: 44px;
		font-size: 15px;
	}
	.facet_subrow {
		padding: 0;
	}
	/* Tabs and grades wrap (no hidden sideways scroll): a bit more compact so they take fewer lines. */
	.facet_options button {
		min-height: 38px;
		padding: 0 11px;
		font-size: 13px;
	}
	/* Wrapped tabs stretch to fill each line, so the box reads as a tidy grid, not a ragged list. */
	.ump_portal_tabs button {
		flex: 1 1 auto;
		justify-content: center;
	}
	.facet_grades button,
	.facet_grades button.active,
	.facet_grades button.active:hover {
		min-height: 36px;
		padding: 0 9px;
	}
	.ump_hero {
		margin-top: 14px;
		border-radius: var(--radius-md);
	}
	.ump_hero_content {
		padding: 32px 20px;
	}
	.ump_hero_description {
		margin: 13px 0 21px;
		font-size: 14px;
	}
	.hero_article_search_box {
		display: block;
	}
	.hero_article_search_box input {
		width: 100%;
		border-radius: var(--radius-sm);
	}
	.hero_article_search_box button {
		width: 100%;
		height: 46px;
		margin-top: 7px;
		border-radius: var(--radius-sm);
	}
	.journal_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	/* iOS Safari zooms the page into any focused field with text under 16px and does not zoom back.
	   !important: component rules (search boxes, auth forms) set 12-14px with higher specificity. */
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	select,
	textarea {
		font-size: 16px !important;
	}
	/* Comfortable touch targets on phones and small tablets. */
	.btn_primary,
	.btn_secondary {
		min-height: 44px;
		padding: 9px 12px;
		font-size: 12px;
	}
	.auth_main {
		align-items: flex-start;
		padding: 28px 12px;
	}
	.auth_card {
		padding: 24px 20px;
		border-radius: var(--radius-md);
	}
	.auth_intro h1 {
		font-size: 27px;
	}
	.auth_back {
		padding: 7px 10px;
		font-size: 12px;
	}
	.search_page {
		width: calc(100% - 24px);
		padding-top: 26px;
	}
	.search_page_header h1 {
		font-size: 29px;
	}
	.article_search {
		display: block;
	}
	.article_search input {
		width: 100%;
		border: 1px solid #CBD5D1;
		border-radius: var(--radius-sm);
	}
	.article_search button {
		width: 100%;
		height: 44px;
		margin-top: 6px;
		border-radius: var(--radius-sm);
	}
	.results_header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
	.article_result h3 {
		font-size: 16px;
	}
	.site_footer_inner {
		width: calc(100% - 24px);
		padding-top: 40px;
	}
	.footer_about .footer_title {
		font-size: 24px;
	}
	.footer_col p,
	.footer_contact_list li {
		font-size: 14px;
	}
	.footer_bottom {
		padding: 16px 0 22px;
		font-size: 12px;
	}
}
@media (max-width: 476px) {
	.journal_grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	/* Horizontal cards: cover left, details right. Keeps 38 journals from becoming ~15,000px of scrolling. */
	.journal_card {
		flex-direction: row;
	}
	.journal_cover {
		flex: 0 0 104px;
		height: auto;
		min-height: 150px;
		padding: 12px 10px;
	}
	.journal_cover img {
		max-height: 126px;
	}
	.cover_placeholder {
		width: 82px;
		height: 112px;
		padding: 9px 8px 8px;
	}
	.cover_placeholder strong {
		/* break at spaces/hyphens ("AL-|MUNAWWIR"), not mid-word */
		font-size: 10px;
		overflow-wrap: break-word;
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}
	.cover_placeholder small {
		display: none;
	}
	.journal_body {
		min-width: 0;
		padding: 12px 14px;
	}
	/* Both buttons on one row (~100px each) instead of stacked: saves ~55px per card. */
	.journal_actions .btn_primary,
	.journal_actions .btn_secondary {
		padding: 6px 6px;
	}
}
/* Small phones (iPhone SE / older Android, 320-400px): tighter spacing so content, not chrome, fills the screen. */
@media (max-width: 400px) {
	.ump_hero_content {
		padding: 24px 16px;
	}
	.ump_hero_description {
		margin: 10px 0 16px;
	}
	.journal_section {
		padding-bottom: 40px;
	}
}
@media (max-width: 360px) {
	/* The long subtitle wraps to two lines here and makes the sticky header ~90px tall. */
	.site_brand span {
		display: none;
	}
	.site_brand img {
		width: 40px;
		height: 40px;
	}
	/* Card body is ~150px wide here: two buttons would squeeze each label onto 2-3 lines, so stack them. */
	.journal_actions {
		grid-template-columns: minmax(0, 1fr);
	}
	.journal_cover {
		flex-basis: 88px;
	}
}
