/* ---------------------------
   Global link colour (site-wide)
   --------------------------- */
a {
  color: #dd4814;
}

/* -------------------------------------------
   Header / Primary navigation: top-level links
   (only direct children of #navigationPrimary)
   ------------------------------------------- */
ul#navigationPrimary > li > a {
  color: #ffffff !important;      /* top-level nav links (visible on dark header) */
  font-weight: 600;
  display: inline-block;
}

/* -------------------------------------------
   Dropdown menu: ensure white background and
   readable dark text for dropdown entries
   ------------------------------------------- */
ul#navigationPrimary .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* dropdown links (dark for readability) */
ul#navigationPrimary .dropdown-menu a,
ul#navigationPrimary .dropdown-menu li a {
  color: #222222 !important;
  background: transparent !important;
  display: block;
  white-space: normal;
}

/* dropdown hover: highlight with site orange */
ul#navigationPrimary .dropdown-menu a:hover,
ul#navigationPrimary .dropdown-menu li a:hover,
ul#navigationPrimary .dropdown-menu a:focus {
  color: #dd4814 !important;
  background: transparent !important;
  text-decoration: none;
}

/* keep top-level hover state (still white or visible) */
ul#navigationPrimary > li > a:hover,
ul#navigationPrimary > li > a:focus {
  color: #ffffff !important;
  text-decoration: none;
}

/* search and user link colors (visible on dark header) */
.pkp_navigation_search_wrapper a,
.pkp_navigation_user_wrapper a,
#navigationUser a {
  color: #ffffff !important;
  text-decoration: none;
}

/* 1) Ensure the profile opener (the visible toggle) stays white */
#navigationUser > li.profile > a,
#navigationUser > li.profile > a:focus,
#navigationUser > li.profile > a:hover,
#navigationUser > li.profile.active > a {
  color: #ffffff !important;   /* keep opener color (change if you want a different color) */
}

/* 2) Make all links inside the profile dropdown black (readable on white background) */
#navigationUser .dropdown-menu a,
#navigationUser .dropdown-menu li a {
  color: #000000 !important;   /* dropdown items become black */
  background: transparent !important;
}

/* 3) If any badges/spans inside links (e.g. task_count) have separate color rules, force them black too */
#navigationUser .dropdown-menu a .task_count,
#navigationUser .dropdown-menu a span {
  color: #000000 !important;
}

/* 4) Optional: keep a hover highlight (orange) for dropdown items */
#navigationUser .dropdown-menu a:hover,
#navigationUser .dropdown-menu li a:hover {
  color: #dd4814 !important;
  text-decoration: none !important;
}

/* -------------------------------------------
   Footer tweaks
   ------------------------------------------- */
/* hide PKP/OJS branding link in footer */
a[href*="aboutThisPublishingSystem"] {
  display: none !important;
}
img[alt*="More information about the publishing system"] {
  display: none !important;
}
