/* Contextual sub-navigation (level 2).
   Visually lighter than the top-level nav: active items use a persistent
   underline + darker text rather than the filled pill used by the topnav,
   so the two levels are easy to tell apart. */
.subnav a {
  display: block;
  color: var(--text-light);
  text-align: center;
  padding: 0.35rem 1rem;
  text-decoration: none;
  font-weight: 300;   /* light, as the original design (250 rendered as 300) */
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: var(--radius-md);
  margin: 0.15rem 0.15rem;
  transition: all 0.2s ease;
  position: relative;
}

.subnav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--vsq-color-dark);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.subnav a:hover {
  background-color: rgba(211, 192, 154, 0.12);
  color: var(--text-dark);
}

.subnav a:hover::before {
  width: 70%;
}

.subnav a.active {
  color: var(--text-dark);
  font-weight: 600;
  background: transparent;
}

.subnav a.active::before {
  width: 80%;
  height: 3px;
}
