/* =====================================
   Victim Witness Sub Navigation
===================================== */
#header {
  position: absolute;
  margin-bottom: 0;
  padding-bottom: 0;
}

.vw-subnav {
  position: sticky !important;
  background: #F3EFE3 !important;
  top: 0;
  z-index: 999;
}

.vw-subnav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem;
}

/* -------------------------------------
   Base Links (Desktop defaults)
------------------------------------- */

.vw-subnav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 140ms ease, background 140ms ease;
}

.vw-subnav a:hover {
  border-bottom-color: #c9a24a;
}

/* Active page */
.vw-subnav a[aria-current="page"] {
  border-bottom-color: #c9a24a;
  font-weight: 800;
}

/* -------------------------------------
   Victim Witness Brand (Logo-style)
------------------------------------- */
.vw-brand {
  margin-right: 1rem;
}

.vw-brand a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  border-radius: 999px;
  border-bottom: none;
}

.vw-brand a i {
  font-size: 1.2rem;
  margin-right: .5rem;
}

/* Hover: subtle, not nav-like */
.vw-brand a:hover {
  transform: translateY(-3px);
}

/* Mobile refinement */
@media (max-width: 700px) {
  .vw-brand a {
    font-size: 0.95rem;
    padding: 0.55rem 0.9rem;
    letter-spacing: 0.03em;
  }
}


/* -------------------------------------
   Attorney Office Link
------------------------------------- */

#attorney-home-link {
  margin-left: auto;
}

#attorney-home-link a {
  background: #fff;
  color: #c9a24a !important;
  border-radius: .5rem;
  font-weight: 800;
  border: 2px solid #fff;
}

#attorney-home-link a:hover {
  background: rgb(255, 250, 238);
  border-bottom-color: transparent;
}

/* =====================================
   Mobile Styles
===================================== */

@media (max-width: 700px) {

  .vw-subnav {
    border-bottom: 1px solid #d8d2c8;
  }

  .vw-subnav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;

    gap: 0.75rem;
    padding: 0.75rem;

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .vw-subnav-list::-webkit-scrollbar {
    display: none;
  }

  /* Mobile links */
  .vw-subnav a {
    flex: 0 0 auto;
    padding: 0.6rem 0.85rem;

    background: rgba(255, 255, 255, 0.85);
    border-radius: 0.65rem;
    border-bottom: none;

    scroll-snap-align: start;
  }

  .vw-subnav a:hover {
    background: rgba(201, 162, 74, 0.2);
  }

  .vw-subnav a[aria-current="page"] {
    background: #c9a24a;
    color: #fff;
    font-weight: 800;
  }

  /* Keep chips readable on mobile */
  #vw-home-link a,
  #attorney-home-link a {
    padding: 0.6rem 1rem;
  }
}
