/* Keep the approved brand identity visible while preserving normal page scrolling. */
.topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 24, 27, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

html {
  scroll-padding-top: 96px;
}

/* At the very end of the page, keep the identity visible in a compact safe-height bar. */
.topbar.is-end {
  height: 56px;
}

.topbar.is-end .brand-mark {
  width: 36px;
  height: 38px;
}

.topbar.is-end .nav-cta {
  padding: .5rem .8rem;
}

.mail-choice[hidden] {
  display: none;
}

.mail-choice {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(9, 12, 14, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mail-choice-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 2rem;
  background: #202529;
  color: #f7f7f4;
  border: 1px solid rgba(216, 154, 56, .65);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

.mail-choice-close {
  position: absolute;
  top: .65rem;
  right: .8rem;
  border: 0;
  background: transparent;
  color: #c7c9c9;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.mail-choice-kicker {
  margin: 0 0 .6rem;
  color: var(--gold2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.mail-choice-panel h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.1;
}

.mail-choice-panel p:not(.mail-choice-kicker):not(.mail-choice-status) {
  margin: 0;
  color: #c7c9c9;
}

.mail-choice-actions {
  display: grid;
  gap: .7rem;
  margin-top: 1.4rem;
}

.mail-choice-actions a,
.mail-choice-actions button {
  display: block;
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: #f7f7f4;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.mail-choice-actions a:first-child {
  background: var(--gold);
  color: #181818;
}

.mail-choice-actions a:hover,
.mail-choice-actions button:hover,
.mail-choice-close:focus-visible,
.mail-choice-actions a:focus-visible,
.mail-choice-actions button:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}

.mail-choice-status {
  min-height: 1.4em;
  margin: .9rem 0 0;
  color: var(--gold2);
  font-size: .85rem;
}

@media (max-width: 560px) {
  .topbar.is-end {
    height: 44px;
  }

  .topbar.is-end .brand-mark {
    width: 32px;
    height: 34px;
  }

  .topbar.is-end .menu-toggle {
    width: 34px;
    height: 34px;
  }

  .topbar.is-end .nav-cta {
    padding: .35rem .55rem;
    font-size: .7rem;
  }
}
