/* Shared company navigation. Kept separate from the product's section navigation. */
.company-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 72px;
  background: #131316;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #faf8f4;
  font-family: "Inter", Arial, sans-serif;
}

.company-header-inner {
  width: min(1240px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.company-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
}

.company-brand img {
  display: block;
  width: 154px;
  height: 42px;
}

.company-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.company-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.company-nav a:hover,
.company-nav a[aria-current="page"] {
  color: #ffadb3;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.company-nav a.company-login {
  gap: 9px;
  min-width: 108px;
  padding: 0 18px;
  border: 1px solid #faf8f4;
  border-radius: 4px;
  background: #faf8f4;
  color: #131316;
  font-weight: 600;
  text-decoration: none;
}

.company-nav a.company-login:hover { background: #fff; border-color: #fff; color: #72000e; }
.company-login svg { width: 17px; height: 17px; flex: 0 0 auto; }
.company-header a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.company-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.company-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.company-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.company-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.company-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.company-nav-toggle:hover { background: rgba(255, 255, 255, .08); }
.company-nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 860px) {
  .company-header { height: 66px; }
  .company-header-inner { width: calc(100% - 40px); gap: 16px; }
  .company-brand img { width: 138px; height: 38px; }
  .company-nav { gap: 20px; }
}

@media (max-width: 540px) {
  .company-header-inner { width: calc(100% - 28px); gap: 10px; }
  .company-brand img { width: 114px; height: 32px; }
  .company-nav { gap: 14px; }
  .company-nav a.company-login { min-width: 74px; padding: 0 12px; }
  .company-login svg { display: none; }
}

@media (max-width: 374px) {
  .company-header-inner { width: calc(100% - 24px); gap: 8px; }
  .company-brand img { width: 94px; height: 27px; }
  .company-nav { gap: 10px; }
  .company-nav a.company-login { min-width: 64px; padding: 0 8px; }
}

@media (max-width: 680px) {
  .company-header.is-enhanced .company-brand img { width: 138px; height: 38px; }
  .company-header.is-enhanced .company-nav-toggle { display: flex; }
  .company-header.is-enhanced .company-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    padding: 12px 20px 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background: #131316;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .18);
  }
  .company-header.is-open .company-nav { display: flex; }
  .company-header.is-enhanced .company-nav a:not(.company-login) {
    justify-content: flex-start;
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-size: 16px;
  }
  .company-header.is-enhanced .company-nav a.company-login {
    min-height: 44px;
    margin-top: 16px;
    padding: 0 18px;
  }
}

@media (max-width: 540px) {
  .company-header.is-enhanced .company-nav { padding-inline: 14px; }
}

@media (max-width: 374px) {
  .company-header.is-enhanced .company-nav { padding-inline: 12px; }
}
