/* ==========================================================================
   FUNDER — bounded strip chrome
   --------------------------------------------------------------------------
   The arrow pair for any horizontal row that runs off the edge, driven by
   fn-strip.js. It is the same control the indices bar grew in the previous
   round, generalised: the indices version stays where it is (it also carries
   index-specific analytics), this one serves the quick-links rail and
   anything else that opts in with data-fn-strip.

   The wrapper is created by the script, so nothing here needs a markup
   change in a shared Master page.
   ========================================================================== */

.fn-ui .fn-strip {
  position: relative;
}

/* Room for the arrows to sit over, rather than on top of, the first and last
   chip. Without this the arrow covers a link and a mis-tap navigates.
   scroll-padding keeps snapping clear of the same gutter. Only applied while
   the arrows are actually shown, so a row that fits keeps its full width. */
.fn-ui .fn-strip.has-strip-nav > [data-fn-strip] {
  padding-inline: var(--fn-strip-nav-gutter, 34px);
  scroll-padding-inline: var(--fn-strip-nav-gutter, 34px);
}

.fn-ui .fn-strip-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--fn-border-strong);
  border-radius: var(--fn-radius-pill);
  background: var(--fn-bg-surface);
  box-shadow: var(--fn-shadow-md);
  color: var(--fn-text-2);
  cursor: pointer;
  transition:
    opacity var(--fn-dur-fast) var(--fn-ease),
    border-color var(--fn-dur-fast) var(--fn-ease),
    color var(--fn-dur-fast) var(--fn-ease),
    transform var(--fn-dur-fast) var(--fn-ease);
}

.fn-ui .fn-strip.has-strip-nav .fn-strip-nav {
  display: flex;
}

.fn-ui .fn-strip-nav--prev { inset-inline-start: 0; }
.fn-ui .fn-strip-nav--next { inset-inline-end: 0; }

/* A chevron drawn from a rotated corner — no icon font, no SVG request.
   The borders are PHYSICAL on purpose: border-inline-start flips in RTL
   while these rotation angles do not, and the logical pair paints an
   up-caret on one button and a down-caret on the other. Prev sits at the
   start edge (the right, in RTL) and points back toward it. */
.fn-ui .fn-strip-nav__icon {
  width: 6px;
  height: 6px;
  border-style: solid;
  border-width: 0 2px 2px 0;
  border-color: currentColor;
}

.fn-ui .fn-strip-nav--prev .fn-strip-nav__icon {
  transform: rotate(-45deg);
  margin-left: -2px;
}

.fn-ui .fn-strip-nav--next .fn-strip-nav__icon {
  transform: rotate(135deg);
  margin-right: -2px;
}

.fn-ui .fn-strip-nav:hover:not(:disabled) {
  border-color: var(--fn-interactive);
  color: var(--fn-interactive-ink);
}

.fn-ui .fn-strip-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.94);
}

.fn-ui .fn-strip-nav:focus-visible {
  outline: var(--fn-focus-width) solid var(--fn-focus);
  outline-offset: 2px;
}

/* At an end the arrow stays in place and stops responding. Removing it
   would move the other one, and the pointer is already resting on it. */
.fn-ui .fn-strip-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Touch scrolls the row directly; arrows would only cost it thumb room.
   fn-strip.js also gates on width, so this is belt and braces for the
   moment between layout and the first sync. */
@media (max-width: 767px) {
  .fn-ui .fn-strip.has-strip-nav .fn-strip-nav,
  .fn-ui .fn-strip-nav {
    display: none;
  }

  .fn-ui .fn-strip.has-strip-nav > [data-fn-strip] {
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fn-ui .fn-strip-nav,
  .fn-ui .fn-strip-nav:active:not(:disabled) {
    transition: none;
    transform: translateY(-50%);
  }
}
