/**
 * Prime Academic Press — force layer v3.
 * Fixes:
 * 1) Logo and action buttons share one row/height and stay inside the topbar.
 * 2) Site index upper text block uses same content style as lower text section.
 */

/* ──────────────────────────────────────────────────────────────────────────
   1) Topbar: keep logo + buttons in same region and same height
   ────────────────────────────────────────────────────────────────────────── */
header#headerNavigationContainer.pap-masthead .pap-header-top-strip .pap-topbar-row {
	min-height: 48px !important;
	padding-top: 6px !important;
	padding-bottom: 6px !important;
	align-items: center !important;
}

header#headerNavigationContainer.pap-masthead .pap-topbar-start,
header#headerNavigationContainer.pap-masthead .pap-topbar-end {
	align-self: center !important;
}

header#headerNavigationContainer.pap-masthead .pap_site_name_block {
	max-width: 100% !important;
	overflow: hidden !important;
}

header#headerNavigationContainer.pap-masthead .pap-topbar-start .pap-topbar-logo.navbar-brand {
	display: inline-flex !important;
	align-items: center !important;
	height: 36px !important;
	max-height: 36px !important;
	max-width: min(42vw, 360px) !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
}

header#headerNavigationContainer.pap-masthead .pap-topbar-start .pap-topbar-logo.navbar-brand img {
	display: block !important;
	height: auto !important;
	max-height: 32px !important;
	max-width: 100% !important;
	width: auto !important;
	object-fit: contain !important;
	object-position: left center !important;
}

header#headerNavigationContainer.pap-masthead .pap-topbar-end__search {
	display: flex !important;
	align-items: center !important;
}

header#headerNavigationContainer.pap-masthead .pap-topbar-end__user .pkp_navigation_user > li > a,
header#headerNavigationContainer.pap-masthead a.pap-header-search-link {
	display: inline-flex !important;
	align-items: center !important;
	height: 34px !important;
	line-height: 20px !important;
	padding-top: 6px !important;
	padding-bottom: 6px !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   2) Site index top content: same style as lower content
   ────────────────────────────────────────────────────────────────────────── */
body.pap-site-index #main-site .about_site {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-bottom: 1.8rem !important;
}

body.pap-site-index #main-site .about_site::before {
	display: none !important;
}

body.pap-site-index #main-site .about_site,
body.pap-site-index #main-site .about_site p,
body.pap-site-index #main-site .about_site ul,
body.pap-site-index #main-site .about_site ol {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif !important;
	line-height: 1.72 !important;
	color: #141c28 !important;
	max-width: none !important;
	width: 100% !important;
}

body.pap-site-index #main-site .about_site h1,
body.pap-site-index #main-site .about_site h2,
body.pap-site-index #main-site .about_site h3,
body.pap-site-index #main-site .about_site h4 {
	font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif !important;
	font-weight: 600 !important;
	color: #141c28 !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-top: 1.35rem !important;
	margin-bottom: 0.55rem !important;
	letter-spacing: 0 !important;
}

body.pap-site-index #main-site .about_site h1 {
}

body.pap-site-index #main-site .about_site h2,
body.pap-site-index #main-site .about_site h3,
body.pap-site-index #main-site .about_site h4 {
}
