/* badge */
.badge {
    /* display: none; */
    position: fixed;
    bottom: 5vmin;
    width: 200px;
    text-align: center;
    left: 0;
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 0 4px 4px rgba(0,0,0,0.08);
    margin: 5px;
    transform: translateX(-68%); /* 250 - 70 + 10px / 2 (padding)*/
    transition: 0.2s transform ease;
  }
  
  .badge:hover, .badge:focus {
    transform: translateX(0);
  }
  
  /* avoid fighting :hover selector on gap between window */
  .badge::before {
    position: absolute;
    width: 5px;
    height: 100%;
    left: -5px;
    content: "";
  }
  
  .badge .banner {
    width: calc(70% - 10px);
    background-color: #F06000;
    color: white;
    height: 100%;
    position: absolute;
    border-radius: 3px 0 0 3px;
  }
  
  .badge .banner .content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 5%;
    height: 60px; /* match logo */
    line-height: 1rem;
  }

  .badge .banner .notice {
    font-size: 15px;
    margin-top: 2px;
  }
  
  .badge .banner .links {
    font-size: 10px;
    width: 100%;
    position: absolute;
    bottom: 2px;
  }
  
  .badge .banner .links a {
    color: white;
  }
  
  .badge .logo {
    float: right;
    width: 30%;
    margin: 5px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .badge .logo *:nth-child(1) {
    height: 70%;
    margin-top: 5px;
    transition: 0.2s height ease;
  }

  .badge:hover .logo *:nth-child(1), .badge:focus .logo *:nth-child(1) {
    height: 100%;
  }
  
  .badge .logo .hint {
    font-size: 8px;
    white-space: nowrap;
    transition: 0.2s max-height ease;
    max-height: 100%;
    overflow: hidden;
    margin-top: 2px;
    line-height: normal;
  }
  
  .badge:hover .logo .hint, .badge:focus .logo .hint {
    max-height: 0;
  }