/* Front-end sign-in affordance for the public storefront (brief 2026-11-11-0722).
 *
 * Two links, everywhere: "Log in" (the one sign-in page, which lands each role on its own area)
 * and "Daftar" (the public join path that creates the account). Brand chrome pages carry them in
 * nav.pillnav; the Dawn pages carry them in the header icons row and in the mobile drawer.
 *
 * Only the type, colour and spacing are set here. Nothing here touches layout of the pages the
 * clone reproduces (position, size of existing blocks) beyond the width of the two links.
 */
:root {
  --ld-ink: #121214;
  --ld-paper: #f4f0e6;
  --ld-lime: #e3fc02;
}

/* ---------------------------------------------------------------- brand chrome (nav.pillnav) */
.pillnav a.ld-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--ld-ink);
  font: 700 15px/1 var(--body, "Instrument Sans", system-ui, sans-serif);
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ld-ink);
  background: transparent;
  white-space: nowrap;
  pointer-events: auto;
}
.pillnav a.ld-account:hover,
.pillnav a.ld-account:focus-visible {
  background: var(--ld-ink);
  color: var(--ld-paper);
}
.pillnav a.ld-account--signup {
  background: var(--ld-ink);
  color: var(--ld-paper);
  box-shadow: 3px 3px 0 var(--ld-ink);
}
.pillnav a.ld-account--signup:hover,
.pillnav a.ld-account--signup:focus-visible {
  background: var(--ld-lime);
  color: var(--ld-ink);
}

/* ------------------------------------------------------------------- Dawn chrome (header icons) */
.header__icons a.ld-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  margin-inline-start: 6px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font: 700 13px/1 var(--font-body-family, "Instrument Sans", system-ui, sans-serif);
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.header__icons a.ld-account--signup {
  background: var(--ld-ink);
  border-color: var(--ld-ink);
  color: var(--ld-paper);
}
.header__icons a.ld-account--signup:hover,
.header__icons a.ld-account--signup:focus-visible {
  background: var(--ld-lime);
  color: var(--ld-ink);
  text-decoration: none;
}
.header__icons a.ld-account:hover,
.header__icons a.ld-account:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----------------------------------------------------------------- mobile drawer (the menu on a phone) */
.menu-drawer__menu a.ld-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}
.menu-drawer__menu a.ld-account--signup {
  color: inherit;
}

/* The Dawn header icons row has no room for two text pills next to three icons on a phone; the
   drawer carries the same two links there, which is the mobile menu the brief names. */
@media (max-width: 749px) {
  .header__icons a.ld-account {
    display: none;
  }
}

/* The brand chrome keeps both links at every width: the home page has no drawer, so the pill IS
   the mobile menu. Trim the padding instead of hiding a way to sign in. */
@media (max-width: 860px) {
  .pillnav a.ld-account {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
  .pillnav a.ld-account--signup {
    box-shadow: 2px 2px 0 var(--ld-ink);
  }
}
@media (max-width: 420px) {
  .pillnav a.ld-account {
    padding: 0 8px;
    font-size: 12px;
  }
  .pillnav a.ld-account--signup {
    box-shadow: none;
  }
}
