:root {
  --header-text: #083f5d;
  --header-border: #d4e1eb;
  --banner-bg: #edf4fa;
  --banner-text: #123a52;
}

.pkp_structure_head {
  background: #ffffff;
  border-bottom: 1px solid var(--header-border);
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
  padding-top: 0 !important;
}

.pkp_site_nav_menu,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_navigation_user_wrapper {
  background: #ffffff !important;
}

.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_navigation_primary_wrapper {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.pkp_site_name_wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 0;
  padding: 12px 24px;
  padding-right: 140px;
  overflow: visible;
}

.pkp_site_name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.pkp_site_name a.is_img.has_branding_text {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.pkp_site_name a.is_img.has_branding_text img {
  height: 58px;
  width: auto;
}

.pkp_site_name .site_branding_text {
  display: flex;
  flex-direction: column;
}

.pkp_site_name .site_title {
  display: block;
  color: var(--header-text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.pkp_site_name .site_description {
  display: block;
  color: var(--header-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 4px;
  white-space: nowrap;
}

.pkp_site_name_wrapper .header_guest_actions {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pkp_site_name_wrapper .header_login_cta,
.pkp_site_name_wrapper .header_register_cta {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.pkp_site_name_wrapper .header_login_cta:hover,
.pkp_site_name_wrapper .header_login_cta:focus,
.pkp_site_name_wrapper .header_register_cta:hover,
.pkp_site_name_wrapper .header_register_cta:focus {
  text-decoration: none;
  background: #ffffff;
  color: #070758;
}

.header_user_menu {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
}

.header_user_menu .header_user_menu_list,
.header_user_menu .pkp_navigation_user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.header_user_menu .pkp_navigation_user > li {
  width: auto !important;
  float: none !important;
}

.header_user_menu .pkp_navigation_user > li > a {
  color: #122433;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cfe0ee;
  background: #f4f9fd;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.header_user_menu .pkp_navigation_user > li > a:hover,
.header_user_menu .pkp_navigation_user > li > a:focus {
  text-decoration: none;
  background: #e8f2fa;
  border-color: #b6d1e5;
  color: #0a4f77;
}

.header_user_menu .pkp_navigation_user .task_count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: #0a4f77;
}

.header_user_menu .pkp_navigation_user > li > ul {
  left: auto;
  right: 0;
  margin-top: 8px;
  min-width: 220px;
  padding: 8px 0;
  border: 1px solid #d8e5ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(8, 63, 93, 0.14);
}

.header_user_menu .pkp_navigation_user > li > ul a {
  display: block;
  padding: 9px 14px;
  color: #1b3850;
  text-decoration: none;
  font-size: 15px;
}

.header_user_menu .pkp_navigation_user > li > ul a:hover,
.header_user_menu .pkp_navigation_user > li > ul a:focus {
  background: #eef5fb;
}

.pkp_navigation_primary_row {
  border-top: 1px solid var(--header-border);
  border-bottom: 1px solid var(--header-border);
}

.pkp_navigation_primary_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  padding-left: 24px;
  padding-right: 24px;
}

.custom_nav_left .pkp_navigation_primary,
.custom_nav_left .custom_static_menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 34px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom_nav_left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.custom_nav_left .pkp_navigation_primary > li > a,
.custom_nav_left .custom_static_menu > li > a {
  color: #122433;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 8px 4px;
  white-space: nowrap;
}

.custom_nav_left .pkp_navigation_primary > li,
.custom_nav_left .custom_static_menu > li {
  width: auto;
  flex: 0 0 auto;
}

.custom_nav_left .pkp_navigation_primary > li > a:hover,
.custom_nav_left .pkp_navigation_primary > li > a:focus,
.custom_nav_left .custom_static_menu > li > a:hover,
.custom_nav_left .custom_static_menu > li > a:focus,
.pkp_navigation_search_wrapper .pkp_search:hover,
.pkp_navigation_search_wrapper .pkp_search:focus {
  text-decoration: underline;
}

.custom_nav_right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-shrink: 0;
}

.custom_header_quick_links {
  border-left: 1px solid var(--header-border);
  padding-left: 24px;
}

.custom_nav_left > .pkp_navigation_search_wrapper.nav_search_inline {
  border-left: 1px solid var(--header-border);
  padding-left: 20px;
  margin-left: 2px;
}

.pkp_navigation_search_wrapper {
  margin: 0;
}

.pkp_navigation_search_wrapper .pkp_search {
  color: #122433;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.custom_header_quick_links {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.custom_header_quick_links .quick_link {
  color: #122433;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.custom_header_quick_links .quick_link .fa {
  font-size: 18px;
  transition: color 0.18s ease;
}

.pkp_navigation_search_wrapper .pkp_search:hover,
.pkp_navigation_search_wrapper .pkp_search:focus,
.custom_header_quick_links .quick_link:hover,
.custom_header_quick_links .quick_link:focus {
  text-decoration: none;
  background: #e9f2fa;
  color: #0a4f77;
}

.custom_header_quick_links .quick_link:hover .fa,
.custom_header_quick_links .quick_link:focus .fa {
  color: #0a4f77;
}

.pkp_navigation_search_wrapper .pkp_search:focus-visible,
.custom_header_quick_links .quick_link:focus-visible {
  outline: 2px solid #8db4cf;
  outline-offset: 1px;
}

.custom_journal_banner {
  background: linear-gradient(90deg, var(--banner-bg) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--header-border);
}

.custom_journal_banner_inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 0;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.custom_journal_banner .banner_link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.custom_journal_banner .banner_link:hover .banner_image,
.custom_journal_banner .banner_link:focus .banner_image {
  filter: brightness(0.96);
}

.custom_journal_banner .banner_title {
  margin: 0;
  color: var(--banner-text);
  font-size: 28px;
  font-weight: 800;
}

.custom_journal_banner .banner_text {
  margin: 8px 0 0;
  color: #214a66;
  font-size: 16px;
}

.custom_journal_banner .banner_image_wrap {
  width: 100%;
}

.custom_journal_banner .banner_image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 1200px) {
  .pkp_site_name .site_title {
    font-size: 24px;
  }

  .pkp_site_name .site_description {
    font-size: 14px;
  }

  .custom_nav_left .pkp_navigation_primary > li > a,
  .pkp_navigation_search_wrapper .pkp_search,
  .custom_header_quick_links .quick_link {
    font-size: 15px;
  }

  .custom_nav_right > .pkp_navigation_search_wrapper,
  .custom_header_quick_links {
    padding-left: 16px;
  }

  .custom_nav_left > .pkp_navigation_search_wrapper.nav_search_inline {
    padding-left: 14px;
  }

  .custom_nav_left .pkp_navigation_primary,
  .custom_nav_left .custom_static_menu {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .pkp_site_name_wrapper {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 110px;
  }

  .pkp_site_name a.is_img.has_branding_text img {
    height: 46px;
  }

  .pkp_site_name .site_title {
    font-size: 20px;
  }

  .pkp_site_name .site_description {
    font-size: 14px;
  }

  .custom_nav_right {
    gap: 14px;
  }

  .custom_header_quick_links {
    display: none;
  }

  .pkp_navigation_primary_wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pkp_site_name_wrapper {
    padding: 0 16px;
  }

  .header_user_menu {
    right: 16px;
  }
}

@media (max-width: 768px) {
  .pkp_site_name_wrapper {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 16px;
  }

  .pkp_site_name a.is_img.has_branding_text {
    gap: 10px;
  }

  .pkp_site_name a.is_img.has_branding_text img {
    height: 40px;
  }

  .pkp_site_name .site_description {
    display: none;
  }

  .pkp_site_name .site_title {
    font-size: 18px;
    white-space: normal;
    line-height: 1.2;
  }

  .pkp_site_name_wrapper .header_guest_actions {
    display: none;
  }

  .header_user_menu {
    display: none;
  }

  .custom_nav_left .pkp_navigation_primary,
  .custom_nav_left .custom_static_menu {
    gap: 10px 14px;
    flex-wrap: wrap;
  }

  .pkp_navigation_primary_wrapper {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .custom_nav_left {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .custom_nav_right {
    display: none;
  }

  .custom_nav_left .pkp_navigation_primary > li > a,
  .custom_nav_left .custom_static_menu > li > a,
  .pkp_navigation_search_wrapper .pkp_search {
    font-size: 14px;
    padding: 6px 4px;
  }

  .custom_nav_left > .pkp_navigation_search_wrapper.nav_search_inline {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }

  .custom_journal_banner_inner {
    padding: 14px 0;
  }

  .custom_journal_banner .banner_title {
    font-size: 22px;
  }

  .custom_journal_banner .banner_text {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .pkp_site_name_wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pkp_site_name .site_title {
    font-size: 16px;
  }

  .pkp_navigation_primary_wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .custom_nav_left .pkp_navigation_primary > li > a,
  .custom_nav_left .custom_static_menu > li > a,
  .pkp_navigation_search_wrapper .pkp_search {
    font-size: 13px;
  }
}

/* Standalone login page styling */
body.pkp_page_login {
  background: #f3f3f3;
}

.pkp_page_login .page_login {
  max-width: 540px;
  margin: 28px auto;
  padding: 34px 52px 44px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.pkp_page_login .cmp_breadcrumbs {
  margin-bottom: 24px;
}

.pkp_page_login .cmp_breadcrumbs ol {
  margin: 0;
  padding: 0;
}

.pkp_page_login .page_login > h1 {
  margin: 8px 0 24px;
  font-size: 50px;
  line-height: 1.05;
  text-align: center;
  color: #1d5fd3;
  font-weight: 800;
}

.pkp_page_login .cmp_form.login {
  max-width: none;
}

.pkp_page_login .cmp_form.login .fields > div {
  padding-bottom: 18px;
}

.pkp_page_login .cmp_form.login .label {
  font-size: 16px;
  color: #4f5a68;
  margin-bottom: 6px;
}

.pkp_page_login .cmp_form.login input[type="text"],
.pkp_page_login .cmp_form.login input[type="password"] {
  width: 100%;
  max-width: none;
  height: 52px;
  border: 1px solid #d3d7dc;
  border-radius: 4px;
  font-size: 18px;
}

.pkp_page_login .cmp_form.login .password a {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: #6a7380;
  font-size: 14px;
  text-decoration: none;
}

.pkp_page_login .cmp_form.login .remember {
  padding-bottom: 16px;
}

.pkp_page_login .cmp_form.login .remember .label {
  font-size: 16px;
  color: #4f5a68;
}

.pkp_page_login .cmp_form.login .buttons {
  margin-top: 6px;
}

.pkp_page_login .cmp_form.login .buttons .submit,
.pkp_page_login .cmp_form.login .buttons .register {
  float: none;
  display: flex;
  width: 100%;
  max-width: none;
  height: 56px;
  margin: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.pkp_page_login .cmp_form.login .buttons .submit {
  background: #f2b93c;
  border: 0;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.pkp_page_login .cmp_form.login .buttons .register {
  margin-top: 10px;
  background: #ffffff;
  border: 2px solid #b146ff;
  color: #3f4955;
}

.pkp_page_login .page_login > p {
  color: #6a7380;
}

@media (max-width: 768px) {
  .pkp_page_login .page_login {
    margin: 12px;
    padding: 22px 18px 28px;
  }

  .pkp_page_login .page_login > h1 {
    font-size: 40px;
  }

  .pkp_page_login .cmp_form.login .label,
  .pkp_page_login .cmp_form.login .remember .label,
  .pkp_page_login .cmp_form.login .password a,
  .pkp_page_login .cmp_form.login .buttons .submit,
  .pkp_page_login .cmp_form.login .buttons .register {
    font-size: 14px;
  }
}
