/* One shared Velmora header: Library layout with the Campus Gate motion language. */
.ve-top-banner {
  position: relative;
  overflow: hidden;
}

.ve-top-banner::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 163, 115, .5), transparent);
  content: "";
  animation: ve-header-glow 7s ease-in-out infinite;
}

.ve-header {
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}

.ve-header .ve-brand-link {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.ve-header .ve-brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid rgba(212, 163, 115, .35);
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s, box-shadow .35s;
}

.ve-header .ve-brand-link:hover {
  transform: translateY(-1px);
}

.ve-header .ve-brand-link:hover .ve-brand-logo {
  transform: scale(1.1) rotate(-3deg);
  border-color: var(--ve-gold);
  box-shadow: 0 0 20px rgba(212, 163, 115, .6), 0 8px 24px rgba(0, 0, 0, .8);
}

.ve-header .ve-brand-title {
  color: #ead0ae;
  font-family: var(--ve-font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  transition: color .3s, letter-spacing .3s, text-shadow .3s;
}

.ve-header .ve-brand-link:hover .ve-brand-title {
  color: #fff;
  letter-spacing: 1.5px;
  text-shadow: 0 0 16px rgba(212, 163, 115, .7);
}

.ve-header .ve-brand-subtitle {
  color: var(--ve-text-muted);
  font-size: 8.5px;
  line-height: 1.35;
  letter-spacing: 1px;
  transition: color .3s, letter-spacing .3s;
}

.ve-header .ve-brand-link:hover .ve-brand-subtitle {
  color: var(--ve-gold-soft);
  letter-spacing: 1.25px;
}

.ve-header .ve-nav-links {
  display: flex !important;
  gap: 8px !important;
  align-items: center;
}

.ve-header .ve-nav-link {
  position: relative;
  padding: 5px 8px;
  color: #dce1e7;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.ve-header .ve-nav-link:hover,
.ve-header .ve-nav-link.active {
  color: #fff;
  background: rgba(212, 163, 115, .12);
  border-color: rgba(212, 163, 115, .28);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 163, 115, .15);
}

.ve-header .ve-nav-link.active {
  color: var(--ve-gold-soft);
}

.ve-nav-library-menu {
  position: relative;
}

.ve-nav-library-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
}

.ve-nav-library-menu > .ve-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ve-nav-caret {
  width: 6px;
  height: 6px;
  margin: -3px 1px 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.ve-nav-submenu {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 9px);
  left: 50%;
  display: grid;
  width: 280px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(212, 163, 115, .12), transparent 45%),
    rgba(7, 12, 18, .985);
  border: 1px solid rgba(212, 163, 115, .36);
  border-radius: 13px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .035);
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ve-nav-submenu::before {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 11px;
  height: 11px;
  content: "";
  background: #101722;
  border-top: 1px solid rgba(212, 163, 115, .36);
  border-left: 1px solid rgba(212, 163, 115, .36);
  transform: translateX(-50%) rotate(45deg);
}

.ve-nav-library-menu:hover .ve-nav-submenu,
.ve-nav-library-menu:focus-within .ve-nav-submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ve-nav-library-menu:hover .ve-nav-caret,
.ve-nav-library-menu:focus-within .ve-nav-caret {
  transform: translateY(3px) rotate(225deg);
}

.ve-nav-submenu a {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  color: #e7eaf0;
  border-radius: 8px;
  text-decoration: none;
}

.ve-nav-submenu a:hover,
.ve-nav-submenu a:focus-visible,
.ve-nav-submenu a[aria-current="page"] {
  outline: none;
  color: #fff8ed;
  background: rgba(212, 163, 115, .12);
}

.ve-nav-submenu .ve-icon {
  width: 19px;
  height: 19px;
  color: #d9ad73;
}

.ve-nav-submenu strong,
.ve-nav-submenu small {
  display: block;
}

.ve-nav-submenu strong {
  font-family: var(--ve-font-serif);
  font-size: 14px;
}

.ve-nav-submenu small {
  margin-top: 2px;
  color: #9da9b8;
  font-size: 10px;
  font-weight: 500;
}

.ve-header .ve-nav-link-amazon {
  color: #ffb341 !important;
  background: rgba(255, 153, 0, .08) !important;
  border-color: rgba(255, 153, 0, .3) !important;
}

.ve-header .ve-nav-search-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  place-items: center;
  color: #e8c797;
  background:
    radial-gradient(circle at 34% 28%, rgba(232, 199, 151, .16), transparent 42%),
    rgba(12, 19, 29, .92);
  border-color: rgba(212, 163, 115, .42);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(6, 10, 16, .84), 0 5px 16px rgba(0, 0, 0, .32);
}

.ve-header .ve-nav-search-icon .ve-icon {
  width: 16px;
  height: 16px;
}

.ve-header .ve-nav-search-icon:hover,
.ve-header .ve-nav-search-icon:focus-visible,
.ve-header .ve-nav-search-icon.active {
  color: #fff4e1;
  border-color: rgba(232, 199, 151, .8);
  border-radius: 50%;
  transform: translateY(-2px) scale(1.04);
  box-shadow: inset 0 0 0 2px rgba(6, 10, 16, .84), 0 8px 20px rgba(212, 163, 115, .18);
}

.ve-mobile-nav {
  display: none;
  position: relative;
}

.ve-mobile-tabbar {
  display: none;
}

.ve-mobile-nav summary {
  position: relative;
  display: flex;
  width: 84px;
  height: 44px;
  padding: 4px 10px 4px 5px;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  color: #e8c797;
  background:
    linear-gradient(135deg, rgba(212, 163, 115, .12), transparent 44%),
    rgba(13, 20, 31, .96);
  border: 1px solid rgba(212, 163, 115, .48);
  border-radius: 11px;
  box-shadow: inset 0 0 0 2px rgba(7, 12, 18, .85), inset 0 0 0 3px rgba(212, 163, 115, .1), 0 6px 18px rgba(0, 0, 0, .42);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.ve-mobile-nav summary:focus-visible {
  outline: 2px solid #e1b77e;
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px rgba(7, 12, 18, .85), inset 0 0 0 3px rgba(212, 163, 115, .12), 0 0 0 4px rgba(225, 183, 126, .14), 0 6px 18px rgba(0, 0, 0, .42);
}

.ve-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.ve-mobile-nav-seal {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid rgba(226, 183, 126, .52);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 115, .2), rgba(7, 12, 18, .94) 72%);
  box-shadow: inset 0 0 0 2px rgba(7, 12, 18, .88), 0 0 10px rgba(212, 163, 115, .12);
}

.ve-mobile-nav-seal::after {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 24px 0 currentColor;
  content: "";
}

.ve-mobile-nav summary .ve-icon {
  width: 18px;
  height: 18px;
  transition: color .2s ease, transform .2s ease;
}

.ve-mobile-nav-label {
  font-family: var(--ve-font-serif);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ve-mobile-nav-label-close {
  display: none;
}

.ve-mobile-nav[open] summary {
  color: #fff2dc;
  border-color: #d9ad73;
  background:
    linear-gradient(135deg, rgba(212, 163, 115, .22), transparent 48%),
    rgba(13, 20, 31, .98);
  transform: translateY(-1px);
}

.ve-mobile-nav[open] summary .ve-icon {
  transform: scale(1.08);
}

.ve-mobile-nav[open] .ve-mobile-nav-label-open {
  display: none;
}

.ve-mobile-nav[open] .ve-mobile-nav-label-close {
  display: inline;
}

.ve-mobile-nav nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1001;
  display: grid;
  width: min(310px, calc(100vw - 32px));
  padding: 10px;
  background: rgba(7, 12, 18, .98);
  border: 1px solid rgba(212, 163, 115, .3);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .72);
}

.ve-mobile-nav nav a {
  padding: 11px 12px;
  color: #e5e8ec;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.ve-mobile-nav nav a:hover,
.ve-mobile-nav nav a[aria-current="page"] {
  color: #fff;
  background: rgba(212, 163, 115, .14);
}

.ve-mobile-library-group {
  display: grid;
  margin: 3px 0;
  padding: 7px;
  background: rgba(212, 163, 115, .045);
  border: 1px solid rgba(212, 163, 115, .16);
  border-radius: 10px;
}

.ve-mobile-library-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 7px;
  color: #d9ad73;
  font-family: var(--ve-font-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ve-mobile-library-label .ve-icon {
  width: 15px;
  height: 15px;
}

.ve-mobile-library-group a {
  padding-left: 28px !important;
}

@keyframes ve-header-glow {
  0%, 100% { opacity: .35; transform: scaleX(.65); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 980px) {
  .ve-header .ve-container {
    align-items: center !important;
  }

  .ve-header .ve-nav-links {
    display: none !important;
  }

  .ve-mobile-nav {
    display: block;
  }
}

@media (max-width: 560px) {
  .ve-top-banner {
    display: none;
  }

  .ve-header {
    padding-top: env(safe-area-inset-top);
  }

  .ve-header .ve-container {
    min-height: 52px;
    padding: 5px 12px !important;
    gap: 8px;
    overflow: visible;
  }

  .ve-header .ve-brand-link {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .ve-header .ve-brand-link > div {
    min-width: 0;
    overflow: hidden;
  }

  .ve-header .ve-brand-title,
  .ve-header .ve-brand-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ve-mobile-nav {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .ve-mobile-nav summary {
    width: 88px;
    padding-right: 8px;
  }

  .ve-mobile-nav-label {
    font-size: 9.5px;
    letter-spacing: .045em;
  }

  .ve-header .ve-brand-logo {
    width: 34px;
    height: 34px;
  }

  .ve-header .ve-brand-title {
    font-size: 15px;
  }

  .ve-header .ve-brand-subtitle {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ve-mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background:
      linear-gradient(180deg, #171d28, #070c12 76%),
      #070c12;
    border: 1px solid rgba(212, 163, 115, .42);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 40px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .045);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    isolation: isolate;
  }

  .ve-mobile-tabbar a {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 50px;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: #9da9b8;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
  }

  .ve-mobile-tabbar a::before {
    position: absolute;
    top: 2px;
    width: 18px;
    height: 1px;
    background: transparent;
    content: "";
  }

  .ve-mobile-tabbar a.active {
    color: #f1d3ac;
    background: radial-gradient(circle at 50% 20%, rgba(212, 163, 115, .22), rgba(212, 163, 115, .06) 70%);
  }

  .ve-mobile-tabbar a.active::before {
    background: #e1b77e;
    box-shadow: 0 0 9px rgba(225, 183, 126, .8);
  }

  .ve-mobile-tabbar .ve-icon {
    width: 20px;
    height: 20px;
  }

  .ve-mobile-tabbar .ve-mobile-tabbar-primary {
    z-index: 1;
    min-height: 64px;
    margin-top: -17px;
    color: #ead1ad;
    background:
      radial-gradient(circle at 50% 18%, rgba(231, 190, 135, .24), rgba(212, 163, 115, .075) 70%),
      #151b25;
    border: 1px solid rgba(225, 183, 126, .42);
    border-radius: 18px;
    box-shadow: 0 -9px 22px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .055);
    font-size: 11px;
  }

  .ve-mobile-tabbar .ve-mobile-tabbar-primary::before {
    top: 5px;
    width: 22px;
  }

  .ve-mobile-tabbar .ve-mobile-tabbar-primary .ve-icon {
    width: 28px;
    height: 28px;
  }

  .ve-mobile-tabbar .ve-mobile-tabbar-primary.active {
    background:
      radial-gradient(circle at 50% 18%, rgba(242, 205, 154, .3), rgba(212, 163, 115, .1) 72%),
      #171d28;
    border-color: rgba(240, 200, 145, .64);
    box-shadow: 0 -10px 26px rgba(0, 0, 0, .48), 0 0 18px rgba(212, 163, 115, .11), inset 0 1px rgba(255, 255, 255, .07);
  }

  .ve-mobile-tabbar a:focus-visible {
    outline: 3px solid rgba(103, 217, 255, .72);
    outline-offset: -2px;
  }
}

@media (max-width: 390px) {
  .ve-header .ve-brand-subtitle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ve-top-banner::after {
    animation: none;
  }

  .ve-header .ve-brand-link,
  .ve-header .ve-brand-logo,
  .ve-header .ve-brand-title,
  .ve-header .ve-brand-subtitle,
  .ve-header .ve-nav-link {
    transition: none;
  }

  .ve-mobile-nav summary .ve-icon {
    transition: none;
  }
}
