/* Ribbon typography follows ePix > Font Settings > Ribbon when configured;
   otherwise the font family inherits the theme body font. */

/* Sitewide ticker: fixed to viewport, positioned beside the ePix sidebar.
   Hidden until sidebar/mobile-dock offsets are measured (no startup slide). */
.npc-noodle-ticker {
  position: fixed !important;
  left: var(--npc-ticker-left, 0px) !important;
  right: 0 !important;
  bottom: var(--npc-ticker-bottom, 0px) !important;
  top: auto !important;
  display: block;
  box-sizing: border-box;
  width: auto !important;
  height: var(--npce-ribbon-height, 52px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0;
  background: var(--npce-ribbon-bg, #78BFEA);
  text-decoration: none !important;
  cursor: default;
  z-index: 999 !important;
  transform: none !important;
  isolation: isolate;
  /* Hide until the desktop sidebar offset has been measured. */
  visibility: hidden !important;
  transition: none !important;
}
.npc-noodle-ticker.npc-ticker-positioned {
  visibility: visible !important;
}
.npc-noodle-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Flicker-safe navy fade: change opacity on a separate composited layer,
   rather than changing the stroke of the SVG path rebuilt every frame. */
.npc-noodle-ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--npce-ribbon-hover-bg, #00243F);
  opacity: 0;
  transition: opacity 850ms ease-out;
  will-change: opacity;
}
.npc-noodle-ticker:hover::before {
  opacity: 1;
  transition-duration: 1400ms;
  transition-timing-function: cubic-bezier(0.2, 0.1, 0.25, 1);
}
/* The SVG path still supplies the textPath geometry, but doesn't paint
   over the composited navy layer during its fade. */
.npc-noodle-ticker .npc-noodle-band {
  stroke: none;
  pointer-events: none;
}
/* A single ribbon-wide color state. Animated phrases must not change
   paint channels when the pointer crosses individual moving SVG links. */
.npc-noodle-lettering {
  fill: var(--npce-ribbon-text, #193B64);
  font-family: var(--npce-ribbon-font-family, inherit);
  font-size: var(--npce-ribbon-font-size, 1.16em);
  font-weight: var(--npce-ribbon-font-weight, 500);
  letter-spacing: var(--npce-ribbon-letter-spacing, 0.09em);
  dominant-baseline: middle;
}
/* Set the fill directly on the glyphs, rather than inheriting it through
   SVG <a>, where ePix link :hover/:visited rules can alter the color. */
.npc-noodle-ticker .npc-noodle-lettering .npc-noodle-word,
.npc-noodle-ticker .npc-noodle-lettering .npc-noodle-phrase-link .npc-noodle-word,
.npc-noodle-ticker .npc-noodle-lettering .npc-noodle-phrase-link:hover .npc-noodle-word,
.npc-noodle-ticker .npc-noodle-lettering .npc-noodle-phrase-link:focus .npc-noodle-word {
  fill: var(--npce-ribbon-text, #193B64) !important;
  transition: fill 850ms ease-out;
}
.npc-noodle-ticker:hover .npc-noodle-lettering .npc-noodle-word,
.npc-noodle-ticker:hover .npc-noodle-lettering .npc-noodle-phrase-link .npc-noodle-word,
.npc-noodle-ticker:hover .npc-noodle-lettering .npc-noodle-phrase-link:hover .npc-noodle-word,
.npc-noodle-ticker:hover .npc-noodle-lettering .npc-noodle-phrase-link:focus .npc-noodle-word {
  fill: #FFFFFF !important;
  transition-duration: 1400ms;
  transition-timing-function: cubic-bezier(0.2, 0.1, 0.25, 1);
}
/* Only the link directly under the pointer (or keyboard-focused) gets
   the baby-blue active state. This override is deliberately AFTER the
   ribbon-wide white rule; no JS hit-testing or competing color channels. */
.npc-noodle-ticker:hover .npc-noodle-lettering .npc-noodle-phrase-link:hover .npc-noodle-word,
.npc-noodle-ticker .npc-noodle-lettering .npc-noodle-phrase-link:focus-visible .npc-noodle-word {
  fill: var(--npce-ribbon-bg, #78BFEA) !important;
  transition-duration: 120ms;
  transition-timing-function: ease-out;
}
/* Optional desktop-only SVG textPath highlight: the rectangle is rendered
   behind the moving text by ribbon.js and tracks the native :hover target.
   It never changes glyph weight or the textPath repeat distance. */
.npc-noodle-ticker .npce-ribbon-phrase-highlight {
  display: none;
  fill: var(--npce-ribbon-highlight-bg, #78BFEA);
  pointer-events: none !important;
}
@media screen and (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .npc-noodle-ticker.npce-desktop-hover-highlight .npce-ribbon-phrase-highlight.npce-is-visible {
    display: block;
  }
  /* Only turn lettering navy if its matching highlight rectangle is
     actually painted. At the viewport edge SVG bounds can fail for a
     partially rendered word; navy without a background disappears. */
  .npc-noodle-ticker.npce-desktop-hover-highlight:hover .npc-noodle-lettering .npc-noodle-phrase-link:hover .npc-noodle-word,
  .npc-noodle-ticker.npce-desktop-hover-highlight:hover .npc-noodle-lettering .npc-noodle-phrase-link.npce-gap-hover .npc-noodle-word,
  .npc-noodle-ticker.npce-desktop-hover-highlight .npc-noodle-lettering .npc-noodle-phrase-link:focus-visible .npc-noodle-word {
    fill: #FFFFFF !important;
  }
  .npc-noodle-ticker.npce-desktop-hover-highlight:hover .npc-noodle-lettering .npc-noodle-phrase-link.npce-painted-hover .npc-noodle-word,
  .npc-noodle-ticker.npce-desktop-hover-highlight .npc-noodle-lettering .npc-noodle-phrase-link.npce-painted-hover:focus-visible .npc-noodle-word {
    fill: var(--npce-ribbon-highlight-text, #193B64) !important;
    transition-duration: 120ms;
  }
  .npc-noodle-ticker.npce-desktop-hover-highlight:hover .npc-noodle-fallback-set > a:hover,
  .npc-noodle-ticker.npce-desktop-hover-highlight .npc-noodle-fallback-set > a:focus-visible {
    color: var(--npce-ribbon-highlight-text, #193B64) !important;
    background-color: var(--npce-ribbon-highlight-bg, #78BFEA) !important;
    box-shadow: -6px 0 var(--npce-ribbon-highlight-bg, #78BFEA),
                 6px 0 var(--npce-ribbon-highlight-bg, #78BFEA);
  }
}
.npc-noodle-ticker .npc-noodle-phrase-link {
  text-decoration: none !important;
}
.npc-noodle-lettering .npc-noodle-dot {
  fill: #FFFFFF; /* white bullets at rest */
  transition: fill 850ms ease-out;
  font-family: inherit;
  font-size: 0.65317em; /* maintains existing bullet size as text grows */
  font-weight: 700;
  letter-spacing: 0;
  dominant-baseline: middle;
  baseline-shift: 2px; /* lift SVG bullets slightly on desktop */
}
.npc-noodle-ticker:hover .npc-noodle-lettering .npc-noodle-dot {
  fill: var(--npce-ribbon-bg, #78BFEA); /* brand bullets on hover */
  transition-duration: 220ms;
  transition-timing-function: ease-out;
}
.npc-noodle-fallback {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  background: transparent;
}
.npc-noodle-fallback-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--npce-ribbon-text, #193B64);
  transition: color 850ms ease-out;
}
.npc-noodle-ticker:hover .npc-noodle-fallback-set {
  color: var(--npce-ribbon-bg, #78BFEA);
  transition-duration: 1400ms;
  transition-timing-function: cubic-bezier(0.2, 0.1, 0.25, 1);
}
.npc-noodle-fallback-set > a {
  display: inline-flex;
  align-items: center;
  font-family: var(--npce-ribbon-font-family, inherit);
  font-size: var(--npce-ribbon-font-size, 1.16em);
  font-weight: var(--npce-ribbon-font-weight, 500);
  line-height: 1.4;
  letter-spacing: var(--npce-ribbon-letter-spacing, 0.09em);
  color: var(--npce-ribbon-text, #193B64);
  transition: color 850ms ease-out;
}
.npc-noodle-ticker:hover .npc-noodle-fallback-set > a {
  color: #FFFFFF;
  transition-duration: 1400ms;
  transition-timing-function: cubic-bezier(0.2, 0.1, 0.25, 1);
}
/* Keep fallback links in the same color state even as links move under the pointer. */
.npc-noodle-ticker .npc-noodle-fallback-set > a:hover,
.npc-noodle-ticker .npc-noodle-fallback-set > a:focus {
  color: var(--npce-ribbon-text, #193B64) !important;
}
.npc-noodle-ticker:hover .npc-noodle-fallback-set > a,
.npc-noodle-ticker:hover .npc-noodle-fallback-set > a:hover,
.npc-noodle-ticker:hover .npc-noodle-fallback-set > a:focus {
  color: #FFFFFF !important;
}
/* Match the active phrase color for reduced-motion / static fallback. */
.npc-noodle-ticker:hover .npc-noodle-fallback-set > a:hover,
.npc-noodle-ticker .npc-noodle-fallback-set > a:focus-visible {
  color: var(--npce-ribbon-bg, #78BFEA) !important;
  transition-duration: 120ms;
}
.npc-noodle-fallback-dot {
  /* Match the anchor's font sizing so its former ::after spacing stays put. */
  font-size: 1.16em;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.457216em;
  height: 0.457216em;
  margin: 0 24px;
  border-radius: 50%;
  background: #FFFFFF; /* white at rest */
  position: relative;
  top: -2px; /* align fallback dots with text */
  transition: background-color 850ms ease-out;
}
.npc-noodle-ticker:hover .npc-noodle-fallback-dot {
  background: var(--npce-ribbon-bg, #78BFEA);
  transition-duration: 220ms;
  transition-timing-function: ease-out;
}
/* Hide fallback only after the SVG animation has initialized successfully. */
.npc-noodle-ticker.npc-noodle-ready .npc-noodle-fallback { display: none; }
/* Preserve existing mobile lift, then raise bullets 2px more. */
@media screen and (max-width: 767px) {
  .npc-noodle-lettering .npc-noodle-dot {
    baseline-shift: 6px;
  }
}
/* Narrow desktop browser windows (for example, Chrome resized to a
   phone-width preview) retain a fine mouse pointer. Do not apply the extra
   mobile-only SVG lift there: real touch phones use a coarse pointer and
   keep the established 6px alignment. */
@media screen and (max-width: 767px) and (hover: hover) and (pointer: fine) {
  .npc-noodle-lettering .npc-noodle-dot {
    baseline-shift: 2px;
  }
}
/* Hide ribbon in phone landscape, reveal again in portrait. */
@media screen and (orientation: landscape)
       and (max-width: 1024px)
       and (max-height: 500px) {
  .npc-noodle-ticker {
    display: none !important;
  }
}
/* Reduced motion still displays an accessible, scrollable static ticker. */
@media (prefers-reduced-motion: reduce) {
  .npc-noodle-ticker .npc-noodle-svg { display: none; }
  .npc-noodle-ticker .npc-noodle-fallback { display: flex !important; }
}

/* The entire ribbon is an activation surface. Blank space and bullet
   separators resolve to the nearest phrase in ribbon.js. */
.npc-noodle-ticker, .npc-noodle-ticker .npc-noodle-svg,
.npc-noodle-ticker .npc-noodle-dot { cursor: pointer !important; }
.npc-noodle-ticker .npc-noodle-phrase-link,
.npc-noodle-ticker .npc-noodle-phrase-link .npc-noodle-word,
.npc-noodle-ticker .npc-noodle-fallback-set > a { cursor: pointer !important; }
.npc-noodle-ticker .npc-noodle-fallback-set > a { text-decoration: none !important; }
.npc-noodle-ticker .npc-noodle-phrase-link:focus-visible .npc-noodle-word { text-decoration: underline; }
.npc-noodle-ticker .npc-noodle-fallback-set > a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* NPC v1.1.35: A stable root gutter is useful on scrollable pages, but on
   scrollbar-free gallery pages Safari can leave a visible blank strip at
   the viewport edge. Release it only in that state; retain the existing
   scroll and lightbox width locks elsewhere. */
html.npc-no-scrollbar-gutter:not(.fancybox-lock) {
  scrollbar-gutter: auto !important;
}

/* Desktop Safari: svg dy handles the bullet baseline adjustment.
   Chromium keeps the original centered baseline-shift. */
.npc-noodle-ticker.npc-desktop-safari .npc-noodle-lettering .npc-noodle-dot {
  baseline-shift: 0;
}

/* v1.1.109: shared ribbon speech-bubble hint. Positioned above the
   ribbon and offset beside Peekaboo so it does not cover the head. */
.npce-ribbon-hover-hint {
  --npce-hint-bg: #ecf2f8;
  --npce-hint-text: #193B64;
  position: fixed;
  z-index: 10005;
  max-width: min(320px, calc(100vw - 20px));
  box-sizing: border-box;
  padding: 7px 14px;
  border: 0;
  /* Sharp rectangular corners match the site's brand geometry. */
  border-radius: 0;
  color: var(--npce-hint-text);
  background: var(--npce-hint-bg);
  box-shadow: none;
  font-family: inherit !important;
  font-weight: var(--npce-hint-font-weight, 400);
  font-size: var(--npce-hint-font-size, 14px);
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  pointer-events: none !important;
  opacity: 0;
  visibility: hidden;
  /* Instant show/hide; no entrance slide or fade. */
  transform: none;
  transition: none;
}
.npce-ribbon-hover-hint > strong,
.npce-ribbon-hover-hint > span { font-family: inherit !important; }
.npce-ribbon-hover-hint strong { font-weight: var(--npce-hint-lead-weight, inherit) !important; color: var(--npce-hint-lead, var(--npce-hint-text)); }
.npce-ribbon-hover-hint::after {
  content: "";
  position: absolute;
  /* Center the pointer vertically, including when the fact wraps to 2 lines. */
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--npce-hint-bg);
  pointer-events: none;
}
.npce-ribbon-hover-hint.npce-side-right::after {
  left: -10px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.npce-ribbon-hover-hint.npce-side-left::after {
  right: -10px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.npce-ribbon-hover-hint.npce-visible {
  visibility: visible;
  opacity: 1;
}
