/* One palette for desktop links and their mobile menu equivalents. */
nav:is([aria-label="主导航"], [aria-label="移动端导航"], [aria-label="手机导航"]) a[href="/learn"] :is(span.rounded-full, .member-nav-badge) {
  background-color: #ffd179;
  color: #593108;
}
nav:is([aria-label="主导航"], [aria-label="移动端导航"], [aria-label="手机导航"]) :is(a[href="/video-editing"], a[href="/fde"]) :is(span.rounded-full, .member-nav-badge) {
  display: none;
}

.site-wordmark { display: block; width: 128px; height: auto; }
.wide-nav > a { position: relative; }
.member-nav-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 99px;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 0 0 2px white;
}
.wide-nav .member-nav-badge { position: absolute; right: -4px; top: -7px; }
.mobile-nav .member-nav-badge { margin-left: 5px; }
@media (max-width: 1080px) {
  .site-wordmark { width: 96px; }
}

/* Compact reading headers have a home link but no separate desktop logo. */
header.fixed.fredtalk-desktop-header-only nav[aria-label="主导航"] > a[href="/"]::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 40px);
  transform: translateY(-50%);
  width: 152px;
  height: 76px;
  background: url("/brand/yifei-home-amber.webp") center / contain no-repeat;
}

.fredtalk-mobile-header-only a[href="/"][class~="font-black"],
.auth-visual-brand strong {
  display: inline-block;
  width: 96px;
  height: 48px;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
  background: url("/brand/yifei-home-amber.webp") center / contain no-repeat;
}
.auth-visual-brand strong { width: clamp(9rem, 16vw, 13rem); height: auto; aspect-ratio: 2; align-self: center; }
