/* Northern Art Course Section Navigation v1.2.4
 * Black secondary menu; white links; School pink / College orange active accent.
 * Tabs divide available space evenly when they fit, and scroll when they do not.
 * Scoped to .nsoa-csn to avoid changing Divi or other site menus.
 */
.nsoa-csn {
  --nsoa-csn-offset: 0px;
  --nsoa-csn-accent: #df1883;
  --nsoa-csn-progress: 0%;
  --nsoa-csn-surface: #000;
  --nsoa-csn-text: #fff;
  --nsoa-csn-hover: rgba(255,255,255,.10);
  --nsoa-csn-progress-track: rgba(255,255,255,.16);
  position: sticky;
  top: var(--nsoa-csn-offset);
  z-index: 990;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--nsoa-csn-surface);
  box-shadow: 0 3px 14px rgba(0,0,0,.12);
  color: var(--nsoa-csn-text);
  font-family: inherit;
  transition: top .12s ease;
}
.nsoa-csn,
.nsoa-csn * { box-sizing: border-box; }

.nsoa-csn__scroll {
  position: relative;
  z-index: 2; /* Keep the active tab indicator over the shared progress track. */
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.nsoa-csn__scroll::-webkit-scrollbar { display: none; }

.nsoa-csn__tabs,
.nsoa-csn ul.nsoa-csn__tabs {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  min-width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 18px;
  list-style: none;
}
.nsoa-csn__tabs li,
.nsoa-csn ul.nsoa-csn__tabs li {
  display: flex;
  align-items: stretch;
  flex: 1 0 auto; /* Evenly distribute spare space; never squash titles. */
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.nsoa-csn__tabs li::before,
.nsoa-csn__tabs li::marker { content: none; }

.nsoa-csn .nsoa-csn__link,
.nsoa-csn .nsoa-csn__link:visited {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 58px;
  margin: 0;
  padding: 11px clamp(13px, 1.4vw, 24px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--nsoa-csn-text) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .045em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.nsoa-csn .nsoa-csn__link:hover {
  background: var(--nsoa-csn-hover);
  color: #fff !important;
}
.nsoa-csn .nsoa-csn__link:focus-visible {
  outline: 2px solid var(--nsoa-csn-accent);
  outline-offset: -4px;
}
.nsoa-csn .nsoa-csn__link[aria-current="location"],
.nsoa-csn .nsoa-csn__link[aria-current="location"]:visited,
.nsoa-csn .nsoa-csn__link[aria-current="location"]:hover {
  background: rgba(255,255,255,.055);
  color: var(--nsoa-csn-accent) !important;
}
.nsoa-csn .nsoa-csn__link[aria-current="location"]::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 3px; /* Same baseline and thickness as the progress bar. */
  background: var(--nsoa-csn-accent);
}

.nsoa-csn__progress-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 3px;
  background: var(--nsoa-csn-progress-track);
  pointer-events: none;
}
.nsoa-csn__progress {
  display: block;
  width: var(--nsoa-csn-progress);
  height: 100%;
  background: var(--nsoa-csn-accent);
  transition: width .22s ease;
}
/* Show the scroll affordance only if the navigation actually overflows. */
.nsoa-csn__edge {
  display: none;
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 3px;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, #000 91%);
}
.nsoa-csn--overflowing .nsoa-csn__edge { display: block; }

.nsoa-csn-target { scroll-margin-top: calc(var(--nsoa-csn-heading-offset, 85px) + 12px); }
.nsoa-csn-anchor, .nsoa-csn-placeholder { display: block; height: 0; pointer-events: none; }
.nsoa-csn--fixed { position: fixed !important; left: 0; right: 0; width: 100%; }

@media (max-width: 980px) {
  .nsoa-csn__tabs, .nsoa-csn ul.nsoa-csn__tabs { padding: 0 10px; }
  .nsoa-csn .nsoa-csn__link { font-size: 11px; padding-right: 15px; padding-left: 15px; }
}
@media (max-width: 767px) {
  .nsoa-csn { min-height: 51px; }
  .nsoa-csn__tabs, .nsoa-csn ul.nsoa-csn__tabs { min-height: 51px; padding: 0 8px; }
  .nsoa-csn .nsoa-csn__link { min-height: 51px; font-size: 11px; letter-spacing: .045em; padding: 10px 13px; }
  .nsoa-csn .nsoa-csn__link[aria-current="location"]::after { height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .nsoa-csn, .nsoa-csn__scroll, .nsoa-csn .nsoa-csn__link,
  .nsoa-csn__progress {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
