/* Header nav polish (BPM 2026-09-21) */
.nav {
  width: 100%;
  max-width: 56rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1.75rem;
  font-size: 1.08rem;
}
.nav > a {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.account-menu {
  display: inline-flex;
  align-items: center;
  align-self: center;
}

/* Signed-in account menu + reusable InitialsAvatar — Text From Home */
.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  align-self: center;
}

/* Reusable InitialsAvatar (Media Bot spec) — header trigger sized smaller for nav alignment */
.tfh-initials-avatar,
.account-avatar {
  --tfh-avatar-size: 30px;
  width: var(--tfh-avatar-size);
  height: var(--tfh-avatar-size);
  border-radius: 50%;
  border: 0;
  box-shadow: none;
  background: #c4893a;
  color: #ffffff;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: calc(var(--tfh-avatar-size) * 0.42);
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-top: 0.04em;
  flex: 0 0 auto;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}
.tfh-initials-avatar--sm { --tfh-avatar-size: 28px; }
.tfh-initials-avatar--md { --tfh-avatar-size: 30px; }
.tfh-initials-avatar--lg { --tfh-avatar-size: 48px; }
.tfh-initials-avatar--xl { --tfh-avatar-size: 64px; }

.account-avatar:hover,
.account-avatar[aria-expanded="true"] {
  filter: brightness(0.96);
}

@media (max-width: 640px) {
  .account-avatar {
    --tfh-avatar-size: 28px;
  }
  .nav {
    justify-content: center;
    gap: 0.5rem 1.1rem;
    font-size: 1rem;
  }
  .nav > a { font-size: 1rem; }
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 14rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 0.85rem;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.12);
  padding: 0.4rem;
  z-index: 50;
}
.account-dropdown[hidden] { display: none !important; }
.account-dropdown a,
.account-dropdown button.account-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #1c1917;
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  cursor: pointer;
}
.account-dropdown a:hover,
.account-dropdown button.account-item:hover {
  background: #faf7f2;
}
.account-dropdown a.account-item-muted { color: #57534e; }
.account-sep {
  height: 1px;
  background: #e7e5e4;
  margin: 0.35rem 0.4rem;
  border: 0;
}
.account-ico {
  width: 1.15rem;
  text-align: center;
  opacity: 0.75;
  font-size: 0.9rem;
  flex: 0 0 auto;
}
