/* Shared desktop top bar + dropdown nav (load before site-nav-mobile.css) */

.topbar a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
  --topbar-nav-height: 72px;
  --topbar-border-width: 1px;
  display: flex;
  align-items: stretch;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 20px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
}
.topbar-left a {
  padding: 8px 10px;
  border-radius: 10px;
  color: inherit;
}
.topbar-left a:hover {
  background: #f1f5f9;
  color: #0b1220;
}
.topbar .wrap {
  flex: 1;
  min-width: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-nav-height);
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.2);
  position: relative;
}
.logo:after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(12deg);
}
.logo.logo-img {
  width: auto;
  height: 40px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.logo.logo-img:after {
  display: none;
}
.navlinks {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  position: relative;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown-trigger:hover {
  background: #f1f5f9;
  color: #0b1220;
}
.nav-dropdown-trigger-text {
  position: relative;
}
.nav-dropdown-trigger-text::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-dropdown.open .nav-dropdown-trigger-text::before {
  transform: scaleX(1);
}
.nav-arrows {
  position: relative;
  display: inline-block;
  width: 4px;
  height: 4px;
  transform: translateY(0);
}
.nav-arrow {
  position: absolute;
  width: 4px;
  height: 4px;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.nav-arrow-down {
  left: 0;
  top: 0;
  opacity: 1;
}
.nav-arrow-up {
  left: 0;
  top: 2px;
  opacity: 0;
}
.nav-dropdown.open .nav-arrow-up {
  opacity: 1;
}
.nav-arrow::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  opacity: 0.8;
}
.nav-arrow-down::after {
  transform: rotate(45deg);
}
.nav-arrow-up::after {
  transform: rotate(-135deg);
}
.nav-dropdown.open .nav-arrow-down {
  opacity: 0;
}
.nav-dropdown.open .nav-arrow-up {
  opacity: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 19px;
  width: max-content;
  min-width: 520px;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 30;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#resources-dropdown .nav-dropdown-menu {
  min-width: 260px;
}
.nav-dropdown-menu-inner {
  display: flex;
  gap: 28px;
  padding: 0 4px;
}
.nav-dropdown-column {
  flex: 1 1 auto;
  min-width: 220px;
  overflow: visible;
}
.nav-dropdown-menu .nav-dropdown-subhead {
  display: block;
  min-height: 2.6em;
  padding: 4px 12px 8px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
}
.nav-dropdown-menu .nav-dropdown-column:not(:first-child) .nav-dropdown-subhead {
  margin-top: 0;
}
.nav-dropdown-menu a,
.nav-dropdown-menu .nav-dropdown-item {
  display: block;
  padding: 12px 12px;
  margin: 4px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: normal;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu .nav-dropdown-item:hover {
  background: rgba(249, 115, 22, 0.08);
  color: var(--brand);
}
.nav-dropdown-item-subtext {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}
.nav-dropdown-menu a:hover .nav-dropdown-item-subtext,
.nav-dropdown-menu .nav-dropdown-item:hover .nav-dropdown-item-subtext {
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  border-color: rgba(249, 115, 22, 0.25);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.04));
}
.btn.solid {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.2);
  transition: box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn.solid:hover {
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.24);
  filter: brightness(1.08);
}
