/* Shared navigation: one component for desktop, touch and keyboard use. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  width: 100%;
  background: #000;
  border: 0;
  box-shadow: none;
  isolation: isolate;
}

.site-header .nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: calc(100% - var(--page-gutter) * 2);
  max-width: var(--content-width);
  min-height: 96px;
  margin-inline: auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.site-header .brand .brand-logo {
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  max-width: none;
  object-fit: contain;
  border-radius: 50%;
  /* The PNG already has a clean transparent outside edge and its own black ring.
     No white disc or CSS ring may be placed behind/around it. */
  background: transparent;
  filter: none;
  box-shadow: none;
}

.site-header .brand:hover .brand-title { color: var(--trc-yellow); }

.site-header .main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-header .nav-products-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  color: #a9b8ae;
  background: transparent;
  font-size: .88rem;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease;
}

.site-header .nav-link:hover,
.site-header .products-dropdown[open] > .nav-link {
  color: var(--trc-yellow);
  background: transparent;
}

.site-header .nav-link.active {
  color: var(--text);
  background: transparent;
}

.site-header .nav-link.active:hover { color: var(--trc-yellow); }
/* Top-level menu symbols use exactly the muted gray of the product menu symbols. */
.site-header .nav-icon { width: 18px; height: 18px; stroke-width: 1.7; color: var(--muted); }
.site-header .nav-chevron { width: 14px; height: 14px; margin-left: 2px; transition: transform .18s ease; }
.site-header .products-dropdown { position: static; }
.site-header .products-dropdown > summary { list-style: none; }
.site-header .products-dropdown > summary::-webkit-details-marker { display: none; }
.site-header .products-dropdown[open] > summary .nav-chevron { transform: rotate(180deg); }
.site-header .products-dropdown:not([open]) > .dropdown-panel { display: none; }

.site-header .dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 10;
  width: auto;
  max-width: calc(100vw - var(--page-gutter) * 2);
  padding: 6px;
  border: 1px solid rgba(195, 195, 195, .28);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .7);
}

.site-header .dropdown-panel::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.site-header .nav-product-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .nav-product-list > li { margin: 0; padding: 0; }

.site-header .nav-product {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px 12px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.site-header .nav-product:hover,
.site-header .nav-product.is-current-category {
  background: var(--green-soft);
}

.site-header .nav-product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 0;
  color: var(--muted);
}

.site-header .nav-product-symbol { width: 20px; height: 20px; }
.site-header .nav-product-copy { display: block; min-width: 0; }
.site-header .nav-product-title { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.site-header .nav-product:hover .nav-product-title,
.site-header .nav-product:hover .nav-product-icon,
.site-header .nav-product.is-current-category .nav-product-icon { color: var(--trc-yellow); }
.site-header .nav-product .product-version { color: var(--button-green); }

.site-header .nav-product-arrow {
  position: static;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--muted);
  transition: transform .18s ease, color .18s ease;
}

.site-header .nav-product:hover .nav-product-arrow { color: var(--trc-yellow); transform: translateX(2px); }
.site-header .nav-toggle { display: none; }
.site-header :is(a, button, summary):focus-visible { outline: 2px solid #c3c3c3; outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
    min-height: 88px;
  }

  .site-header .brand { gap: 10px; padding-block: 15px; font-size: .97rem; }
  .site-header .brand-title { white-space: normal; max-width: 180px; }

  .js .site-header .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-size: .78rem;
    font-weight: 620;
    line-height: 1.3;
  }

  .site-header .nav-toggle:hover,
  .site-header .nav-toggle[aria-expanded="true"] { background: transparent; color: var(--trc-yellow); }
  .site-header .nav-toggle-icon { width: 20px; height: 20px; }
  .site-header .nav-toggle-icon path { transition: transform .18s ease, opacity .18s ease; }
  .site-header .nav-toggle-top { transform-origin: 12px 7px; }
  .site-header .nav-toggle-bottom { transform-origin: 12px 17px; }
  .site-header .nav-toggle[aria-expanded="true"] .nav-toggle-top { transform: translateY(5px) rotate(45deg); }
  .site-header .nav-toggle[aria-expanded="true"] .nav-toggle-middle { opacity: 0; }
  .site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bottom { transform: translateY(-5px) rotate(-45deg); }

  .site-header .main-nav {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(195, 195, 195, .28);
    border-radius: 12px;
    background: #000;
  }

  .js .site-header .main-nav {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    max-height: calc(100vh - 108px);
    max-height: calc(100dvh - 108px);
    margin: 0;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .7);
  }

  .js .site-header .main-nav.open { display: flex; }
  .site-header .nav-products-group { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header .nav-link { justify-content: flex-start; width: 100%; min-height: 48px; padding: 12px 14px; gap: 12px; font-size: .94rem; }
  .site-header .nav-chevron { margin-left: auto; }
  .site-header .products-dropdown { width: 100%; }

  .site-header .dropdown-panel {
    position: static;
    width: 100%;
    max-width: none;
    padding: 0 0 6px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-header .dropdown-panel::before { display: none; }
  .site-header .nav-product-list { gap: 0; }

  .site-header .nav-product {
    gap: 10px;
    min-height: 46px;
    padding: 10px 10px 10px 13px;
  }
}

@media (max-width: 370px) {
  .site-header .nav-wrap { gap: 0 10px; }
  .site-header .brand { gap: 9px; font-size: .85rem; }
  .js .site-header .nav-toggle { gap: 6px; padding-inline: 9px; }
  .site-header .nav-product { gap: 9px; }
  .site-header .nav-product-title { font-size: .86rem; }
  .site-header .nav-product-arrow { width: 14px; height: 14px; }
}

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

@media print {
  .site-header { display: none !important; }
}


/* 2026-12-02: keep the brand title on a single line and let the clean round logo breathe. */
@media (max-width: 980px) {
  .site-header .brand { font-size: clamp(.74rem, 2.1vw, .92rem); gap: 9px; }
  .site-header .brand-title { white-space: nowrap; max-width: none; overflow: hidden; text-overflow: ellipsis; }
  .site-header .brand .brand-logo { flex-basis: 52px; width: 52px; height: 52px; }
}
@media (max-width: 370px) {
  .site-header .brand { font-size: .78rem; }
  .site-header .brand .brand-logo { flex-basis: 46px; width: 46px; height: 46px; }
}
