@import url('/resources/css/shared-theme.css');
@import url('/resources/css/shared-nav.css');
@import url('/resources/css/homepages-header.css');
@import url('/resources/css/shared-buttons.css');

/* App-page nav link spacing and active states */
.ch-nav-links > li > a {
  font-weight: normal;
  letter-spacing: 0.03em;
}

.ch-nav-links > li > a:hover,
.ch-nav-links > li > a:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}


/* contrastheader used as a heading style in subscriber views */
.contrastheader {
  background-color: #133f5e;
  background-image: none;
  color: #fff;
}

/* Login / logout in .ch-nav-actions */
#loginbox,
#logoutbox {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}

#logoutbox a {
  color: rgba(255, 255, 255, 0.85);
}

#loginbox ul {
  color: #222e3c;
}

#loginbox:before,
#logoutbox:before {
  content: "";
  background-image: linear-gradient(to bottom, rgba(0,0,0,0) 5%, rgba(60,60,60,1) 30%, rgba(60,60,60,1) 70%, rgba(0,0,0,0) 95%);
  background-repeat: repeat-x;
  position: absolute;
  left: 0;
  height: 100%;
  width: 1px;
}

#viewlogout {
  cursor: pointer;
  padding: 8px 14px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border: 2px solid #fff;
  border-radius: 12px;
  background: rgba(0,0,0,0.15);
  margin: 10px 0 10px 2px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: bold;
}

#loginmenu {
  padding: 10px;
  border: 1px solid #888;
  left: auto;
  right: 0;
  width: max-content;
  max-width: calc(100vw - 20px);
}

#loginbox .dropdown-menu::before {
  border-bottom: 5px solid #888;
  left: inherit;
  right: 30px;
}

#loginform {
  padding: 10px;
  border: 1px solid #888;
  border-radius: 3px;
  position: absolute;
  right: 0;
  left: inherit;
  z-index: 10;
  width: auto;
  max-width: calc(100vw - 20px);
  margin-top: 0;
}

#loginmenu #loginform {
  position: static;
  left: auto;
  right: auto;
  border: 0;
  padding: 0;
  width: auto;
  margin: 0;
  z-index: auto;
}

/* Tighten nav link text at mid-range widths */
@media (min-width: 770px) and (max-width: 1120px) {
  .ch-nav-links > li > a {
    font-size: 0.92rem !important;
  }

  #loginbox.header-login-actions .header-login-btn {
    font-size: 0.88rem !important;
  }
}
