/* A quiet glass invitation. Keep opacity in step with the existing arrival. */
.topbar > .host-entry {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: none;
  min-height: 46px;
  margin-right: auto;
  padding: 7px 18px;
  overflow: hidden;
  border: 1px solid #b7a99a50;
  border-radius: 999px;
  background: linear-gradient(145deg, #fffdf8b8, #f4eee58c);
  color: #675f54;
  box-shadow: inset 0 1px 0 #ffffff9c, 0 2px 8px #71513b05;
  backdrop-filter: blur(16px) saturate(105%);
  -webkit-backdrop-filter: blur(16px) saturate(105%);
  font: 500 .875rem/1.25 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 1.2s ease, transform .22s cubic-bezier(.22,1,.36,1), border-color .22s ease, box-shadow .22s ease;
}
.topbar > .host-entry::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, #ffffff60, #e9dfd422 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.topbar > .host-entry:focus-visible {
  outline: 2px solid #86402e;
  outline-offset: 4px;
  border-color: #a65845;
}
@media (hover: hover) and (pointer: fine) {
  .topbar > .host-entry:hover {
    transform: translateY(-.5px);
    border-color: #a89a8666;
    box-shadow: inset 0 1px 0 #ffffffc9, 0 3px 10px #71513b08;
    text-decoration: none;
  }
  .topbar > .host-entry:hover::before { opacity: 1; }
}
.topbar > .host-entry:active { transform: translateY(0) scale(.99); }
.topbar > .host-entry .host-entry-label { display: block; white-space: nowrap; }
.topbar > .host-entry .host-entry-long { margin: 0; }
.topbar > .host-entry .host-entry-brand {
  display: block;
  flex: none;
  width: 58px;
  max-width: none;
  height: auto;
  aspect-ratio: 540 / 145;
  object-fit: contain;
  pointer-events: none;
}

/* A compact, complete label; the logo keeps the centre on small screens. */
@media (max-width: 999px) {
  html[data-ding-mobile-view] body > .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding-inline: 14px;
  }
  html[data-ding-mobile-view] .topbar > a.host-entry {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-height: 44px;
    margin: 0;
    gap: 2px;
    padding: 5px 10px;
    border-radius: 17px;
    text-align: center;
  }
  html[data-ding-mobile-view] .topbar > .host-entry .host-entry-long { display: inline; margin: 0; }
  html[data-ding-mobile-view] .topbar > .host-entry .host-entry-brand { width: 54px; }
  html[data-ding-mobile-view] .topbar #site-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  html[data-ding-mobile-view] .topbar #site-brand .ding-brand-lockup {
    width: clamp(92px, 29vw, 168px);
  }
  html[data-ding-mobile-view] .topbar .account-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding-inline: 10px;
    white-space: nowrap;
  }
}
@media (max-width: 359px) {
  html[data-ding-mobile-view] body > .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  /* Two complete label lines plus the mark fit within 56px, even in the 60px header. */
  html[data-ding-mobile-view] .topbar > a.host-entry { gap: 1px; padding: 4px 8px; }
  html[data-ding-mobile-view] .topbar > .host-entry .host-entry-label { font-size: 14px; line-height: 1.05; }
  html[data-ding-mobile-view] .topbar > .host-entry .host-entry-long { display: block; }
  html[data-ding-mobile-view] .topbar > .host-entry .host-entry-brand { width: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar > .host-entry, .topbar > .host-entry::before { transition: none; }
  .topbar > .host-entry:is(:hover, :active) { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar > .host-entry { background: #f7f3ec; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (forced-colors: active) {
  .topbar > .host-entry { border-color: ButtonText; color: LinkText; background: Canvas; box-shadow: none; }
  .topbar > .host-entry::before { display: none; }
}
