/**
 * Prime Academic Press — force layer v5.
 * 1) Remove top search button.
 * 2) Keep login/logout default style neutral (not always golden).
 * 3) Use the same "logout yellow" tone for hover emphasis.
 */

:root {
	--pap-logout-yellow-1: #f7d45a;
	--pap-logout-yellow-2: #d4a81f;
	--pap-logout-yellow-border: #f4d03f;
	--pap-logout-yellow-text: #2f2202;
}

/* Top search button: hard-disable (covers stale template cache cases). */
header#headerNavigationContainer.pap-masthead .pap-topbar-end__search,
header#headerNavigationContainer.pap-masthead a.pap-header-search-link {
	display: none !important;
}

/* Reset top utility buttons to neutral (cancel always-golden login/logout). */
header#headerNavigationContainer.pap-masthead .pap-topbar-end__user .pkp_navigation_user > li > a,
header#headerNavigationContainer.pap-masthead #navigationUser a[href*="/login"],
header#headerNavigationContainer.pap-masthead #navigationUser li.menu-item-2 > a {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	color: rgba(242, 245, 249, 0.92) !important;
	font-weight: 500 !important;
	box-shadow: none !important;
}

header#headerNavigationContainer.pap-masthead .pap-topbar-end__user .pkp_navigation_user > li > a:hover,
header#headerNavigationContainer.pap-masthead .pap-topbar-end__user .pkp_navigation_user > li > a:focus {
	background: rgba(255, 255, 255, 0.09) !important;
	border-color: rgba(255, 255, 255, 0.24) !important;
	color: #ffffff !important;
}

/* Dropdown menu base state: remove fixed yellow (including logout row). */
header#headerNavigationContainer.pap-masthead .pap-topbar-end__user .dropdown-menu > li > a,
header#headerNavigationContainer.pap-masthead .pap-topbar-end__user .dropdown-menu > li:last-child > a {
	background: #ffffff !important;
	border-color: rgba(0, 0, 0, 0.06) !important;
	color: #1f2a37 !important;
}

/* Dropdown hover: use the same logout-yellow tone for all items. */
header#headerNavigationContainer.pap-masthead .pap-topbar-end__user .dropdown-menu > li > a:hover,
header#headerNavigationContainer.pap-masthead .pap-topbar-end__user .dropdown-menu > li > a:focus {
	background: linear-gradient(180deg, var(--pap-logout-yellow-1) 0%, var(--pap-logout-yellow-2) 100%) !important;
	border-color: var(--pap-logout-yellow-border) !important;
	color: var(--pap-logout-yellow-text) !important;
}

/* Content-area button hover: convert to golden highlight for recognition. */
.pkp_structure_main .btn:hover,
.pkp_structure_main .btn:focus,
.pkp_structure_main a.btn:hover,
.pkp_structure_main a.btn:focus,
.pkp_structure_main input[type="submit"]:hover,
.pkp_structure_main input[type="submit"]:focus,
.pkp_structure_main button:hover,
.pkp_structure_main button:focus {
	background: linear-gradient(180deg, var(--pap-logout-yellow-1) 0%, var(--pap-logout-yellow-2) 100%) !important;
	border-color: var(--pap-logout-yellow-border) !important;
	color: var(--pap-logout-yellow-text) !important;
	box-shadow: 0 0 0 1px rgba(255, 248, 221, 0.3) inset !important;
}

/* Includes journal index pill-style links (View Journal / Current Issue). */
.pkp_structure_main .nav-pills > li > a:hover,
.pkp_structure_main .nav-pills > li > a:focus,
.pkp_structure_main .read-more:hover,
.pkp_structure_main .read-more:focus {
	background: linear-gradient(180deg, var(--pap-logout-yellow-1) 0%, var(--pap-logout-yellow-2) 100%) !important;
	border-color: var(--pap-logout-yellow-border) !important;
	color: var(--pap-logout-yellow-text) !important;
}
