/* Shared, server-rendered login action beside the existing Start here link.
 * Scoped to the navigation so original editorial/hero buttons never change.
 */
.desktop-nav .nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: .57rem .86rem;
  border: 1px solid var(--forest, #24513b);
  border-radius: 999px;
  color: var(--forest, #24513b);
  background: transparent;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav .nav-login:hover {
  color: var(--white, #fffdf8);
  background: var(--forest, #24513b);
}
.desktop-nav .nav-login:focus-visible,
.mobile-top-actions .mobile-login:focus-visible {
  outline: 2px solid var(--forest, #24513b);
  outline-offset: 3px;
}
.mobile-top-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mobile-top-actions .mobile-start {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  margin-bottom: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.mobile-top-actions .mobile-login {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: .65rem .55rem;
  border: 1px solid var(--forest, #24513b);
  border-radius: 12px;
  color: var(--forest, #24513b);
  background: transparent;
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.mobile-top-actions .mobile-login:hover {
  background: var(--paper, #f7f3ea);
}
.mobile-top-actions .mobile-search {
  grid-column: 1 / -1;
}
@media (max-width: 420px) {
  .mobile-top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep the original desktop navigation on narrow laptops instead of
   introducing horizontal scrolling when the new account action is present. */
@media (min-width: 981px) and (max-width: 1150px) {
  .header-inner {
    gap: .6rem;
  }
  .desktop-nav {
    gap: 0;
    font-size: .82rem;
  }
  .desktop-nav .nav-dropdown summary {
    padding: .46rem .36rem;
    gap: .12rem;
  }
  .desktop-nav .nav-search {
    padding: .48rem .38rem;
  }
  /* The keyboard shortcut badge is supplementary; hide it only where
     longer Spanish labels would otherwise overflow the header. */
  .desktop-nav .nav-search kbd {
    display: none;
  }
  .desktop-nav .nav-start {
    margin-left: .12rem;
    padding: .6rem .67rem;
  }
  .desktop-nav .nav-login {
    padding: .57rem .68rem;
  }
}
