/* ==========================================================================
   "On this page" tab bar (admissions.html, .adm-jump only).
   Centred row of pill tabs in a cream bar. The active-looking hover uses the
   index.html navy/blue pill. On narrow screens the tabs wrap onto two rows
   instead of scrolling sideways, so nothing is cut off.
   ========================================================================== */

.adm-jump {
  position: sticky;
  top: 91px;
  z-index: 20;
  background: rgba(251, 248, 241, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece4d4;
  overflow: visible;
}

.adm-jump .stage {
  display: block;
  max-width: 1240px;
  width: min(1240px, calc(100% - (var(--hp-gutter) * 2)));
  margin: 0 auto;
  padding: 16px 0;
  overflow: visible;
}

.adm-jump-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.adm-jump-list li {
  margin: 0;
  padding: 0;
}

.adm-jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #d5dde8;
  background: #fff;
  font-family: var(--hp-nav);
  font-size: 15px;
  line-height: 1;
  color: var(--hp-navy);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.adm-jump-list a:hover {
  background: var(--hp-blue);
  border-color: var(--hp-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(10, 74, 149, .22);
}

.adm-jump-list a:focus-visible {
  outline: 2px solid var(--hp-orange);
  outline-offset: 3px;
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .adm-jump {
    top: 84px;
  }
}

/* ---------- phone: compact tabs, wrapping to two rows ---------- */
@media (max-width: 640px) {
  .adm-jump {
    top: 76px;
  }
  .adm-jump .stage {
    padding: 12px 0;
  }
  .adm-jump-list {
    gap: 8px;
  }
  .adm-jump-list a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adm-jump-list a {
    transition: none;
  }
  .adm-jump-list a:hover {
    transform: none;
  }
}

/* ---------- Tab style shared with news-gallery.html ----------
   Pill tabs, each with a colour dot. The current section's tab (aria-current)
   turns navy with a glowing dot; hover lifts the tab with an orange outline. */
.adm-jump-list a {
  position: relative;
  gap: 9px;
  padding: 0 20px 0 16px;
  border: 1px solid #e3d7c2;
  background: rgba(255, 255, 255, .8);
  font-weight: 500;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.adm-jump-list a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--hp-navy));
  flex: none;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .35s ease, box-shadow .35s ease;
}
.adm-jump-list li:nth-child(1) a { --dot: #0a4a95; }
.adm-jump-list li:nth-child(2) a { --dot: #ef6b2e; }
.adm-jump-list li:nth-child(3) a { --dot: #2b8a5b; }
.adm-jump-list li:nth-child(4) a { --dot: #8a5cd6; }
.adm-jump-list li:nth-child(5) a { --dot: #f2b632; }
.adm-jump-list li:nth-child(6) a { --dot: #d9485f; }
.adm-jump-list a:hover {
  background: rgba(255, 255, 255, .95);
  border-color: var(--hp-orange);
  color: var(--hp-navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(18, 41, 75, .12);
}
.adm-jump-list a[aria-current="true"] {
  background: linear-gradient(135deg, var(--hp-navy), var(--hp-blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 74, 149, .28);
}
.adm-jump-list a[aria-current="true"]::before {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}
@media (prefers-reduced-motion: reduce) {
  .adm-jump-list a,
  .adm-jump-list a::before {
    transition: none;
  }
}
