/* Unified top navigation action sizing and color rhythm. */
.top-actions,
.appbar-actions {
  align-items: center;
}

@media (min-width: 761px) {
  .top .site-nav.nav a,
  .appbar .site-nav.nav a {
    min-height: 34px !important;
    padding: 0 13px !important;
    border-color: rgba(37,47,41,.14) !important;
    background: rgba(250,248,242,.48) !important;
    color: var(--muted, #6a675f) !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    line-height: 34px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
  }

  .top .site-nav.nav a:hover,
  .top .site-nav.nav a:focus-visible,
  .top .site-nav.nav a.active,
  .top .site-nav.nav a.primary,
  .top .site-nav.nav a[aria-current="page"],
  .appbar .site-nav.nav a:hover,
  .appbar .site-nav.nav a:focus-visible,
  .appbar .site-nav.nav a.active,
  .appbar .site-nav.nav a[aria-current="page"] {
    border-color: rgba(32,79,74,.22) !important;
    background: rgba(32,79,74,.075) !important;
    color: var(--brand, var(--accent, #204f4a)) !important;
  }
}

.top-actions .theme-switch,
.appbar-actions .theme-switch {
  width: auto !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px !important;
  border-color: rgba(37,47,41,.14) !important;
  background: rgba(250,248,242,.54) !important;
}

.top-actions .theme-switch .theme-toggle,
.appbar-actions .theme-switch .theme-toggle {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  background: rgba(250,248,242,.58) !important;
  color: var(--muted, #6a675f) !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
}

.top-actions .theme-switch .theme-toggle svg,
.appbar-actions .theme-switch .theme-toggle svg {
  width: 16px !important;
  height: 16px !important;
}

.top-actions .theme-switch .theme-toggle:hover,
.top-actions .theme-switch .theme-toggle:focus-visible,
.appbar-actions .theme-switch .theme-toggle:hover,
.appbar-actions .theme-switch .theme-toggle:focus-visible {
  border-color: rgba(32,79,74,.22) !important;
  background: rgba(32,79,74,.075) !important;
  color: var(--brand, var(--accent, #204f4a)) !important;
  outline: none !important;
}

.top-actions .top-login,
.top-actions .top-feedback,
.top-actions .avatar,
.top-actions .login-button,
.top-actions #accountEntry,
.appbar-actions .top-link,
.appbar-actions .avatar-link,
.appbar-actions #adminEntry {
  min-height: 34px !important;
  height: 34px !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 13px !important;
  border: 1px solid rgba(37,47,41,.14) !important;
  border-radius: 999px !important;
  background: rgba(250,248,242,.48) !important;
  color: var(--muted, #6a675f) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
}

.top-actions .top-login:hover,
.top-actions .top-login:focus-visible,
.top-actions .top-feedback:hover,
.top-actions .top-feedback:focus-visible,
.top-actions .avatar:hover,
.top-actions .avatar:focus-visible,
.top-actions .avatar.active,
.top-actions .login-button:hover,
.top-actions .login-button:focus-visible,
.top-actions .login-button.active,
.top-actions #accountEntry:hover,
.top-actions #accountEntry:focus-visible,
.top-actions #accountEntry.active,
.appbar-actions .top-link:hover,
.appbar-actions .top-link:focus-visible,
.appbar-actions .top-link.active,
.appbar-actions .avatar-link:hover,
.appbar-actions .avatar-link:focus-visible,
.appbar-actions .avatar-link.active,
.appbar-actions #adminEntry:hover,
.appbar-actions #adminEntry:focus-visible {
  border-color: rgba(32,79,74,.22) !important;
  background: rgba(32,79,74,.075) !important;
  color: var(--brand, var(--accent, #204f4a)) !important;
  outline: none !important;
}

html[data-theme="dark"] .top-actions .theme-switch,
html[data-theme="dark"] .appbar-actions .theme-switch {
  border-color: rgba(174,160,128,.22) !important;
  background: rgba(255,253,248,.045) !important;
}

@media (min-width: 761px) {
  html[data-theme="dark"] .top .site-nav.nav a,
  html[data-theme="dark"] .appbar .site-nav.nav a {
    border-color: rgba(174,160,128,.22) !important;
    background: rgba(255,253,248,.045) !important;
    color: rgba(187,178,161,.82) !important;
  }

  html[data-theme="dark"] .top .site-nav.nav a:hover,
  html[data-theme="dark"] .top .site-nav.nav a:focus-visible,
  html[data-theme="dark"] .top .site-nav.nav a.active,
  html[data-theme="dark"] .top .site-nav.nav a.primary,
  html[data-theme="dark"] .top .site-nav.nav a[aria-current="page"],
  html[data-theme="dark"] .appbar .site-nav.nav a:hover,
  html[data-theme="dark"] .appbar .site-nav.nav a:focus-visible,
  html[data-theme="dark"] .appbar .site-nav.nav a.active,
  html[data-theme="dark"] .appbar .site-nav.nav a[aria-current="page"] {
    border-color: rgba(209,189,137,.34) !important;
    background: rgba(209,189,137,.085) !important;
    color: var(--theme-gold-hover, #e6d29c) !important;
  }
}

html[data-theme="dark"] .top-actions .theme-switch .theme-toggle,
html[data-theme="dark"] .appbar-actions .theme-switch .theme-toggle {
  border-color: transparent !important;
  background: rgba(255,253,248,.045) !important;
  color: rgba(187,178,161,.82) !important;
}

html[data-theme="dark"] .top-actions .theme-switch .theme-toggle:hover,
html[data-theme="dark"] .top-actions .theme-switch .theme-toggle:focus-visible,
html[data-theme="dark"] .appbar-actions .theme-switch .theme-toggle:hover,
html[data-theme="dark"] .appbar-actions .theme-switch .theme-toggle:focus-visible {
  border-color: rgba(209,189,137,.40) !important;
  background: rgba(209,189,137,.10) !important;
  color: var(--theme-gold-hover, #e6d29c) !important;
}

html[data-theme="dark"] .top-actions .top-login,
html[data-theme="dark"] .top-actions .top-feedback,
html[data-theme="dark"] .top-actions .avatar,
html[data-theme="dark"] .top-actions .login-button,
html[data-theme="dark"] .top-actions #accountEntry,
html[data-theme="dark"] .appbar-actions .top-link,
html[data-theme="dark"] .appbar-actions .avatar-link,
html[data-theme="dark"] .appbar-actions #adminEntry {
  border-color: rgba(174,160,128,.22) !important;
  background: rgba(255,253,248,.045) !important;
  color: rgba(187,178,161,.82) !important;
}

html[data-theme="dark"] .top-actions .top-login:hover,
html[data-theme="dark"] .top-actions .top-login:focus-visible,
html[data-theme="dark"] .top-actions .top-feedback:hover,
html[data-theme="dark"] .top-actions .top-feedback:focus-visible,
html[data-theme="dark"] .top-actions .avatar:hover,
html[data-theme="dark"] .top-actions .avatar:focus-visible,
html[data-theme="dark"] .top-actions .avatar.active,
html[data-theme="dark"] .top-actions .login-button:hover,
html[data-theme="dark"] .top-actions .login-button:focus-visible,
html[data-theme="dark"] .top-actions .login-button.active,
html[data-theme="dark"] .top-actions #accountEntry:hover,
html[data-theme="dark"] .top-actions #accountEntry:focus-visible,
html[data-theme="dark"] .top-actions #accountEntry.active,
html[data-theme="dark"] .appbar-actions .top-link:hover,
html[data-theme="dark"] .appbar-actions .top-link:focus-visible,
html[data-theme="dark"] .appbar-actions .top-link.active,
html[data-theme="dark"] .appbar-actions .avatar-link:hover,
html[data-theme="dark"] .appbar-actions .avatar-link:focus-visible,
html[data-theme="dark"] .appbar-actions .avatar-link.active,
html[data-theme="dark"] .appbar-actions #adminEntry:hover,
html[data-theme="dark"] .appbar-actions #adminEntry:focus-visible {
  border-color: rgba(209,189,137,.34) !important;
  background: rgba(209,189,137,.085) !important;
  color: var(--theme-gold-hover, #e6d29c) !important;
}
