/* ============================================================
   SPECA SITE NAVIGATION, standalone.

   Split out of speca-system.css so the homepage can use the shared nav
   WITHOUT the rest of that sheet. The homepage has its own complete design
   system now, and speca-system.css sets width/max-width/border-radius on
   .hero for the older pages, which would turn the new full-bleed hero into
   a 1320px rounded box. One file per concern avoids that fight.

   build_site_chrome.py guarantees a <link> to this file in every page it
   injects the nav into, so the two cannot drift apart.
   ============================================================ */

.sitenav {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid #efe8de;
  background: #fff;
}

.sitenav-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.sitenav-logo {
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--navy, #1F3A5F);
  text-decoration: none;
  margin-right: 6px;
}

.sitenav-logo span {
  color: var(--coral, #E8734A);
}

.sitenav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.sitenav-item {
  position: relative;
}

.sitenav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Vertical padding here, never margin on the panel: it is what keeps the
     pointer inside the hover target on the way down to the menu. */
  padding: 14px 13px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #39414d;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
}

.sitenav-link:hover,
.sitenav-link:focus-visible {
  color: var(--ink-strong, #111823);
  background: #f6f2ec;
}

.sitenav-caret {
  width: 9px;
  height: 9px;
  flex: none;
  opacity: 0.55;
}

.sitenav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid #ece5db;
  border-radius: var(--radius-md, 16px);
  box-shadow: 0 18px 44px rgba(16, 31, 51, 0.14);
  padding: 8px;
  display: none;
}

.sitenav-item:hover > .sitenav-panel,
.sitenav-item:focus-within > .sitenav-panel {
  display: block;
}

.sitenav-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-strong, #111823);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.sitenav-panel a span {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--grey, #5B6472);
  letter-spacing: 0;
  margin-top: 1px;
}

.sitenav-panel a:hover,
.sitenav-panel a:focus-visible {
  background: #f6f2ec;
}

.sitenav-panel hr {
  border: none;
  border-top: 1px solid #f0eae1;
  margin: 6px 8px;
}

.sitenav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.sitenav-login {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey, #5B6472);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}

.sitenav-login:hover {
  color: var(--ink-strong, #111823);
}

.sitenav-start {
  background: var(--navy-dark, #17304F);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 12px;
  white-space: nowrap;
}

.sitenav-start:hover {
  background: var(--navy-darker, #0E1E34);
}

.sitenav-toggle {
  display: none;
  background: none;
  border: 1px solid #e4ddd3;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-strong, #111823);
  cursor: pointer;
}

/* Touch: no hover exists, so every menu is simply open inside a panel the
   burger toggles. */
@media (max-width: 900px) {
  .sitenav-inner {
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 10px;
  }
  .sitenav-toggle {
    display: block;
    margin-left: auto;
  }
  .sitenav-menu {
    display: none;
    order: 3;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
  }
  .sitenav[data-open="true"] .sitenav-menu {
    display: flex;
  }
  .sitenav-actions {
    order: 2;
  }
  .sitenav-login {
    display: none;
  }
  .sitenav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 16px;
  }
  .sitenav-caret {
    display: none;
  }
  .sitenav-panel {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 12px;
    min-width: 0;
    border-left: 2px solid #f0eae1;
    margin-left: 4px;
  }
  .sitenav-panel a {
    padding: 9px 10px;
    font-size: 15px;
  }
}
