/* Figma node 313:1103 — header nav */

.site-header--figma {
  position: relative;
  z-index: 80;
  background: transparent;
  box-shadow: none;
}

.site-header--figma::before {
  content: "";
  display: block;
  height: var(--header-nav-height, 72px);
}

.figma-nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--figma-nav-bg, #141414);
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    backdrop-filter 0.28s ease,
    -webkit-backdrop-filter 0.28s ease;
}

.figma-nav-shell.is-scrolled {
  background: color-mix(in srgb, var(--figma-nav-bg, #141414) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .figma-nav-shell.is-scrolled,
:root:not([data-theme="dark"]) .figma-nav-shell.is-scrolled {
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  box-shadow: var(--shadow-header);
}

[data-theme="light"] .site-header--figma,
:root:not([data-theme="dark"]) .site-header--figma {
  --figma-nav-bg: var(--bg-elevated);
}

[data-theme="dark"] .site-header--figma {
  --figma-nav-bg: #141414;
}

.figma-nav {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  min-height: 72px;
  padding: 0 var(--page-padding);
}

.figma-nav__left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  position: relative;
}

.figma-nav__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.figma-nav__menu-btn svg {
  width: 20px;
  height: 20px;
}

.figma-nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text-primary);
}

.figma-nav__logo-mark {
  display: block;
  width: 33px;
  height: 32px;
}

.figma-nav__logo img {
  display: block;
  width: 32px;
  height: 32px;
}

.figma-nav__tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.figma-nav__tab {
  color: var(--text-tertiary, #707070);
  font: 500 15px/22px var(--font-display);
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.figma-nav__tab:hover {
  color: var(--text-secondary);
}

.figma-nav__tab.is-active {
  color: var(--text-primary);
}

.figma-nav__center {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  min-width: 0;
  width: 100%;
  max-height: 56px;
  overflow: visible;
}

.figma-nav__center .search-global-wrap {
  width: 100%;
  max-width: min(520px, 100%);
  max-height: 56px;
}

.figma-nav__center .search-global__input {
  min-height: 48px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--text-primary) 8%, transparent);
  border-color: transparent;
}

.figma-nav__center .search-global__field {
  height: 40px;
  font-size: 15px;
}

.figma-nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.figma-nav__guest,
.figma-nav__authed {
  display: flex;
  align-items: center;
  gap: 12px;
}

.figma-nav__header-links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  background: var(--control-tertiary);
  flex-shrink: 0;
}

.figma-nav__header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 12px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-primary);
  font: 500 13.5px/20px var(--font-display);
  letter-spacing: 0.1px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.figma-nav__header-link:hover {
  background: var(--control-tertiary-hover);
}

.figma-nav__header-link.is-active {
  background: color-mix(in srgb, var(--text-primary) 14%, transparent);
  color: var(--text-primary);
}

.figma-nav__header-link--whats-new {
  padding: 4px 10px 4px 8px;
}

.figma-nav__header-link-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.figma-nav__header-link-text {
  display: inline;
}

.figma-nav__guest[hidden],
.figma-nav__authed[hidden] {
  display: none !important;
}

.figma-nav__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.figma-nav__icon-btn:hover {
  opacity: 0.72;
}

.figma-nav__icon-btn img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

.figma-nav__icon-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}

.figma-nav__pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #141414;
  font: 500 13.5px/20px var(--font-display);
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s ease;
}

[data-theme="light"] .figma-nav__pill-btn,
:root:not([data-theme="dark"]) .figma-nav__pill-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.figma-nav__pill-btn:hover {
  filter: brightness(0.94);
}

.figma-nav__avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--text-primary) 12%, transparent);
  color: var(--text-primary);
  font: 600 14px/1 var(--font-display);
  cursor: pointer;
  flex-shrink: 0;
}

.figma-nav__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figma-nav .lang-switcher {
  position: relative;
}

.figma-nav .lang-menu {
  right: 0;
  left: auto;
}

.profile-switcher {
  position: relative;
  flex-shrink: 0;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 95;
  display: none;
  flex-direction: column;
  width: 240px;
  max-width: calc(100vw - 24px);
  padding: 16px 0 0;
  border: 0;
  border-radius: 20px;
  background: rgba(38, 38, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 80px rgba(0, 0, 0, 0.16);
  color: #fff;
  overflow: hidden;
}

[data-theme="light"] .profile-menu,
:root:not([data-theme="dark"]) .profile-menu {
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
  border: 0;
}

.profile-menu.is-open {
  display: flex;
}

.profile-menu__head {
  display: grid;
  gap: 6px;
  padding: 0 16px 12px;
}

.profile-menu__name {
  margin: 0;
  color: inherit;
  font: 600 15px/22px var(--font-display);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu__email {
  margin: 0;
  color: var(--text-tertiary);
  font: 500 13px/20px var(--font-display);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .profile-menu__email {
  color: #969fa8;
}

.profile-menu__profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px 12px;
  padding: 9px 16px;
  border-radius: 9999px;
  background: rgba(237, 237, 237, 0.08);
  color: inherit;
  font: 400 13px/20px var(--font-display);
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.15s ease, filter 0.15s ease;
}

.profile-menu__profile-btn--pro {
  background: var(--accent-pro);
  color: var(--accent-pro-text);
}

.profile-menu__profile-btn:hover,
.profile-menu__profile-btn.is-active {
  background: rgba(237, 237, 237, 0.14);
}

.profile-menu__profile-btn--pro:hover,
.profile-menu__profile-btn--pro.is-active {
  background: var(--accent-pro);
  filter: brightness(0.96);
}

.profile-menu__sep {
  height: 1px;
  margin: 8px 0;
  background: rgba(237, 237, 237, 0.08);
  border: 0;
}

[data-theme="light"] .profile-menu__sep,
:root:not([data-theme="dark"]) .profile-menu__sep {
  background: rgba(127, 140, 153, 0.16);
}

.profile-menu__section {
  display: grid;
  padding: 4px 0;
}

.profile-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: 400 16px/24px var(--font-display);
  letter-spacing: 0.2px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-menu__row:hover,
.profile-menu__row.is-active {
  background: rgba(237, 237, 237, 0.06);
}

[data-theme="light"] .profile-menu__row:hover,
[data-theme="light"] .profile-menu__row.is-active,
:root:not([data-theme="dark"]) .profile-menu__row:hover,
:root:not([data-theme="dark"]) .profile-menu__row.is-active {
  background: rgba(127, 140, 153, 0.1);
}

.profile-menu__row--plain {
  justify-content: flex-start;
}

.profile-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #bbc1c7;
}

.profile-menu__icon--settings,
.profile-menu__icon--link {
  color: #474747;
}

[data-theme="light"] .profile-menu .profile-menu__icon {
  color: var(--text-secondary);
}

[data-theme="light"] .profile-menu .profile-menu__icon--settings,
[data-theme="light"] .profile-menu .profile-menu__icon--link,
:root:not([data-theme="dark"]) .profile-menu .profile-menu__icon--settings,
:root:not([data-theme="dark"]) .profile-menu .profile-menu__icon--link {
  color: #474747;
}

.profile-menu__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.profile-menu__theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}

.profile-menu__theme-label {
  font: 400 16px/24px var(--font-display);
  letter-spacing: 0.2px;
}

.profile-menu__theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  border-radius: 9999px;
  background: rgba(237, 237, 237, 0.08);
}

[data-theme="light"] .profile-menu__theme-switch,
:root:not([data-theme="dark"]) .profile-menu__theme-switch {
  background: rgba(127, 140, 153, 0.16);
}

.profile-menu__theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.profile-menu__theme-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.profile-menu__theme-btn--sun svg {
  width: 16px;
  height: 16px;
}

.profile-menu__theme-switch[data-active="dark"] [data-theme-pick="dark"],
.profile-menu__theme-switch[data-active="light"] [data-theme-pick="light"] {
  opacity: 1;
  background: #252525;
}

[data-theme="light"] .profile-menu__theme-switch[data-active="dark"] [data-theme-pick="dark"],
:root:not([data-theme="dark"]) .profile-menu__theme-switch[data-active="dark"] [data-theme-pick="dark"] {
  background: rgba(127, 140, 153, 0.28);
}

[data-theme="light"] .profile-menu__theme-switch[data-active="light"] [data-theme-pick="light"],
:root:not([data-theme="dark"]) .profile-menu__theme-switch[data-active="light"] [data-theme-pick="light"] {
  background: rgba(127, 140, 153, 0.28);
}

.profile-menu__links {
  display: grid;
  gap: 8px;
  padding: 10px 16px 16px;
}

.profile-menu__link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 16px/24px var(--font-display);
  letter-spacing: 0.2px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.profile-menu__link:hover {
  opacity: 0.82;
}

.profile-menu__link--logout {
  color: #d8400c;
}

.profile-menu__link--logout:hover {
  opacity: 1;
}

.figma-nav .topbar-menu {
  left: 0;
  top: calc(100% + 8px);
}

@media (max-width: 1024px) {
  .figma-nav {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .figma-nav__tabs {
    display: none;
  }

  .figma-nav__menu-btn {
    display: inline-flex;
  }

  .figma-nav__center .search-global-wrap {
    max-width: 100%;
  }

  .figma-nav__authed .figma-nav__icon-btn:not(.lang-switcher__btn) {
    display: none;
  }
}

@media (max-width: 640px) {
  .figma-nav {
    min-height: 64px;
    padding-inline: 12px;
  }

  .figma-nav__center {
    display: none;
  }

  .figma-nav__header-link-text {
    display: none;
  }

  .figma-nav__header-link--whats-new {
    padding: 8px;
  }

  .figma-nav__pill-btn--pro {
    display: none;
  }
}
