/* Shared Trustyu brand/header contract for every Forge surface. */
:root {
  --trustyu-header-height: 88px;
  --trustyu-header-max: 1488px;
  --trustyu-header-surface: rgba(21, 22, 23, 0.96);
  --trustyu-header-copy: #d2d3d0;
}

.nav {
  height: var(--trustyu-header-height);
  padding: 0 32px;
  display: block;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav.dense,
.nav.is-solid {
  height: var(--trustyu-header-height);
  background: var(--trustyu-header-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(100%, var(--trustyu-header-max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.nav-logo-mark,
.technical-nav .brand img,
.site-header .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 0;
  object-fit: contain;
}

.nav-brand {
  color: #f5f5f5;
  font-family: Inter, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: none;
}

.nav-brand span {
  color: var(--lime);
}

.nav-context {
  margin-left: 5px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--slate-light);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-right {
  flex: 0 0 auto;
  gap: 16px;
}

.nav-links a,
.nav-evidence-trigger {
  position: relative;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.nav-links a { color: var(--trustyu-header-copy); }

.nav-editorial-link { gap: 7px; }
.nav-editorial-link svg { width: 18px; height: 18px; flex: 0 0 auto; }

.nav-secondary-start {
  margin-left: 4px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-links > li > a::after,
.nav-evidence-trigger::before {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--lime);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus-visible,
.nav-links > li > a.active,
.nav-evidence-trigger:hover,
.nav-evidence-trigger:focus-visible {
  background: transparent;
  color: var(--lime);
}

.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after,
.nav-links > li > a.active::after,
.nav-evidence-trigger:hover::before,
.nav-evidence-trigger:focus-visible::before {
  transform: scaleX(1);
}

.nav-cta,
.technical-nav .button {
  min-height: 44px;
  padding: 12px 17px;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.technical-nav .button:hover,
.technical-nav .button:focus-visible {
  background: #bbed2f;
  box-shadow: 0 0 0 4px rgba(216, 255, 87, 0.08);
}

.technical-nav {
  min-height: var(--trustyu-header-height);
  height: var(--trustyu-header-height);
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.2s, backdrop-filter 0.2s;
}

.technical-nav.is-solid,
.site-header.is-solid {
  background: var(--trustyu-header-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.technical-nav .shell {
  width: min(var(--trustyu-header-max), calc(100% - 64px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

.technical-nav .brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f5f5f5;
  font-family: Inter, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: none;
  text-decoration: none;
}

.technical-nav .brand strong,
.technical-nav .brand-wordmark,
.site-header .brand-name {
  color: #f5f5f5;
  font-family: Inter, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  text-transform: none;
}

.technical-nav .brand-wordmark span,
.site-header .brand-name-yu {
  display: inline;
  color: var(--lime, #d8ff57);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.technical-links {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 22px);
  overflow: hidden;
  white-space: nowrap;
}

.technical-nav .site-language-slot {
  flex: 0 0 auto;
}

.technical-links a {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  color: var(--trustyu-header-copy);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: none;
}

.site-header {
  min-height: var(--trustyu-header-height);
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.2s, backdrop-filter 0.2s;
}

.site-header .header-inner {
  width: min(var(--trustyu-header-max), calc(100% - 64px));
  min-height: var(--trustyu-header-height);
  gap: 20px;
}

.site-header .brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f5f5f5;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .editorial-nav { gap: 16px; }

.site-header .editorial-nav a {
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--trustyu-header-copy);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.site-header .editorial-nav a:hover,
.site-header .editorial-nav a:focus-visible,
.site-header .editorial-nav a[aria-current='page'] {
  background: transparent;
  color: var(--lime, #d8ff57);
}

.site-header .editorial-menu-toggle {
  width: 44px;
  height: 44px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
}

.site-header .editorial-menu-toggle:hover,
.site-header .editorial-menu-toggle:focus-visible {
  border-color: rgba(216, 255, 87, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lime, #d8ff57);
}

.technical-links a:hover,
.technical-links a:focus-visible {
  background: transparent;
  color: var(--lime);
}

@media (max-width: 1399px) and (min-width: 1280px) {
  .nav { padding-inline: 24px; }

  .nav-inner,
  .technical-nav .shell,
  .site-header .header-inner { gap: 16px; }

  .nav-links,
  .site-header .editorial-nav { gap: 16px; }

  .nav-secondary-start {
    margin-left: 0;
    padding-left: 16px;
  }

  .technical-nav .shell,
  .site-header .header-inner {
    width: min(var(--trustyu-header-max), calc(100% - 48px));
  }
}

@media (max-width: 1279px) and (min-width: 1024px) {
  :root { --trustyu-header-height: 80px; }

  .nav { padding-inline: 24px; }

  .nav-inner,
  .technical-nav .shell {
    gap: 12px;
  }

  .nav-logo-mark,
  .technical-nav .brand img,
  .site-header .brand-logo {
    width: 32px;
    height: 32px;
  }

  .nav-brand {
    font-size: 22px;
  }

  .nav-links,
  .nav-right,
  .technical-links {
    gap: 10px;
  }

  .nav-secondary-start {
    margin-left: 0;
    padding-left: 12px;
  }

  .nav-links a,
  .nav-evidence-trigger,
  .technical-links a {
    font-size: 12px;
  }

  .technical-nav .brand-wordmark,
  .site-header .brand-name { font-size: 22px; }

  .technical-nav {
    height: auto;
  }

  .technical-nav .shell {
    min-height: var(--trustyu-header-height);
    flex-wrap: wrap;
    row-gap: 0;
  }

  .technical-links {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start;
    padding: 0 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .technical-links::-webkit-scrollbar { display: none; }
}

@media (max-width: 1023px) {
  :root {
    --trustyu-header-height: 76px;
  }

  .nav,
  .nav.dense,
  .nav.is-solid {
    height: var(--trustyu-header-height);
    padding-inline: 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-ham {
    display: flex;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .technical-nav {
    height: auto;
  }

  .technical-nav .shell {
    width: min(100% - 48px, var(--trustyu-header-max));
    min-height: var(--trustyu-header-height);
    flex-wrap: wrap;
    row-gap: 0;
    height: auto;
  }

  .technical-links {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start;
    padding: 0 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .technical-links::-webkit-scrollbar { display: none; }

  .site-header .header-inner {
    width: min(100% - 48px, var(--trustyu-header-max));
    min-height: var(--trustyu-header-height);
  }
}

@media (max-width: 780px) {
  .technical-nav .shell {
    gap: 0;
    padding-top: 0;
  }

  .technical-links {
    gap: 8px;
  }

  .technical-links a {
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 560px) {
  .nav-brand {
    font-size: 23px;
  }

  .nav-logo-mark,
  .technical-nav .brand img,
  .site-header .brand-logo {
    width: 32px;
    height: 32px;
  }

  .technical-nav .brand-wordmark,
  .site-header .brand-name { font-size: 23px; }
}

@media (max-width: 479px) {
  .nav { padding-inline: 18px; }

  .technical-nav .shell,
  .site-header .header-inner {
    width: min(100% - 36px, var(--trustyu-header-max));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav *,
  .technical-nav,
  .technical-nav * {
    transition: none !important;
  }
}
