/*
 * Shared navigation auth treatment.
 *
 * The homepage has accumulated a few page-local navigation overrides over
 * time.  Keep the auth controls in one late-loaded stylesheet so the login
 * entry is identical on the homepage and every inner page without touching
 * the data-driven navigation or product dropdown.
 */

:root {
  --jls-auth-blue: #0052d9;
  --jls-auth-blue-hover: #0b63e5;
}

@media screen and (min-width: 769px) {
  /* Keep the shared account area from shrinking on inner pages or narrow desktop widths. */
  .tpm-topnav-shell #navigationBar .pls-nav-top-operation {
    position: static !important;
    display: flex !important;
    flex: 0 0 192px !important;
    width: 192px !important;
    min-width: 192px !important;
    max-width: none !important;
    height: 62px !important;
    margin-left: auto !important;
    overflow: visible !important;
    white-space: nowrap;
  }

  .tpm-topnav-shell #navigationBar .pls-nav-top-operation .pls-nav-top-link[data-v10-auth="guest"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 76px !important;
    min-width: 76px !important;
    height: 62px !important;
    min-height: 62px !important;
    margin: 0 20px 0 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--jls-auth-blue) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 62px;
    text-decoration: none;
    transition: color .16s ease, background-color .16s ease;
  }

  .tpm-topnav-shell #navigationBar .pls-nav-top-operation .pls-nav-top-link[data-v10-auth="guest"]:hover,
  .tpm-topnav-shell #navigationBar .pls-nav-top-operation .pls-nav-top-link[data-v10-auth="guest"]:focus-visible {
    background: rgba(0, 82, 217, .08) !important;
    color: #0046b8 !important;
    text-decoration: none;
  }

  .tpm-topnav-shell #navigationBar .pls-nav-top-operation .pls-nav-top-btn[data-v10-auth="guest"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 96px !important;
    min-width: 96px !important;
    height: 62px !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--jls-auth-blue) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 62px;
    text-decoration: none;
    transition: background-color .16s ease, box-shadow .16s ease;
  }

  .tpm-topnav-shell #navigationBar .pls-nav-top-operation .pls-nav-top-btn[data-v10-auth="guest"]:hover,
  .tpm-topnav-shell #navigationBar .pls-nav-top-operation .pls-nav-top-btn[data-v10-auth="guest"]:focus-visible {
    background: var(--jls-auth-blue-hover) !important;
    color: #fff !important;
    text-decoration: none;
  }

  .tpm-topnav-shell #navigationBar .pls-nav-top-operation .pls-nav-top-link[data-v10-auth="guest"]:focus-visible,
  .tpm-topnav-shell #navigationBar .pls-nav-top-operation .pls-nav-top-btn[data-v10-auth="guest"]:focus-visible {
    outline: 2px solid rgba(0, 82, 217, .42);
    outline-offset: -2px;
  }
}

@media screen and (max-width: 768px) {
  .tpm-topnav-shell #navigationBarM .pls-m-nav-ft-btns .pls-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 0 !important;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  }

  .tpm-topnav-shell #navigationBarM .pls-m-nav-ft-btns .pls-nav-btn:first-child {
    border: 1px solid var(--jls-auth-blue) !important;
    background: var(--jls-auth-blue) !important;
    color: #fff !important;
  }

  .tpm-topnav-shell #navigationBarM .pls-m-nav-ft-btns .pls-nav-btn:first-child:hover,
  .tpm-topnav-shell #navigationBarM .pls-m-nav-ft-btns .pls-nav-btn:first-child:focus-visible {
    background: var(--jls-auth-blue-hover) !important;
    border-color: var(--jls-auth-blue-hover) !important;
    color: #fff !important;
  }

  .tpm-topnav-shell #navigationBarM .pls-m-nav-ft-btns .pls-nav-btn-hole-week {
    border: 1px solid var(--jls-auth-blue) !important;
    background: transparent !important;
    color: var(--jls-auth-blue) !important;
  }

  .tpm-topnav-shell #navigationBarM .pls-m-nav-ft-btns .pls-nav-btn-hole-week:hover,
  .tpm-topnav-shell #navigationBarM .pls-m-nav-ft-btns .pls-nav-btn-hole-week:focus-visible {
    border-color: var(--jls-auth-blue-hover) !important;
    background: rgba(0, 82, 217, .08) !important;
    color: #0046b8 !important;
  }

  .tpm-topnav-shell #navigationBarM .pls-m-nav-side-ft .pls-m-nav-link[data-v10-auth="guest"] {
    color: var(--jls-auth-blue) !important;
    text-decoration: none;
  }

  .tpm-topnav-shell #navigationBarM .pls-m-nav-side-ft .pls-m-nav-link[data-v10-auth="guest"]:hover,
  .tpm-topnav-shell #navigationBarM .pls-m-nav-side-ft .pls-m-nav-link[data-v10-auth="guest"]:focus-visible {
    color: #0046b8 !important;
  }

  .tpm-topnav-shell #navigationBarM .pls-m-nav-ft-btns .pls-nav-btn:focus-visible,
  .tpm-topnav-shell #navigationBarM .pls-m-nav-side-ft .pls-m-nav-link[data-v10-auth="guest"]:focus-visible {
    outline: 2px solid rgba(0, 82, 217, .42);
    outline-offset: 2px;
  }
}
