/* #######################################################################
 * 🐢 TPL — Nav CSS
 * Version: v1.2.0
 * Status: [STABLE]
 * Change: hover animation + persistent green underline synced to active page
 ####################################################################### */

/* Topbar */
.tn-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  height: 68px;
  padding: 0 24px;
  background: var(--t-bg);
  border-bottom: 1px solid #e6e6e6;
}
html[data-theme="dark"] .tn-topbar {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Brand */
.tn-topbar .brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--t-fg);
  text-decoration: none;
}

/* Nav */
.tn-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 0;
}

/* Links */
.tn-link {
  position: relative;
  padding: 10px 2px;
  color: var(--t-fg);
  text-decoration: none;
  font-weight: 500;
  transition: color .25s ease;
}

/* Hover + active underline animation */
.tn-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 3px;
  background: var(--t-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

/* Hover grow-in */
.tn-link:hover::after {
  transform: scaleX(1);
}

/* Persistent underline for active page */
.tn-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Smooth hover exit */
.tn-link:not([aria-current="page"]):hover::after {
  opacity: .9;
}

/* Remove old ink */
.tn-nav .ink,
.tn-ink,
.nav-ink,
.nav__ink {
  display: none !important;
}