/* STW Loop-Sprungnavigation 1.0.0 */
.stw-loop-nav {
  --stw-loop-nav-accent: #ea5b0b;
  --stw-loop-nav-ink: #000;
  --stw-loop-nav-paper: #fff;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: clamp(28px, 4vw, 64px) 0 28px;
  padding: 0 var(--stw-loop-nav-inset, 20px);
  color: var(--stw-loop-nav-ink);
  font-family: "Boxed", Arial, sans-serif;
}

.stw-loop-nav[hidden] { display: none !important; }

.stw-loop-nav .stw-loop-nav__caption {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stw-loop-nav .stw-loop-nav__list {
  display: flex;
  flex-flow: row nowrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px 6px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #777 transparent;
  -webkit-overflow-scrolling: touch;
}

.stw-loop-nav .stw-loop-nav__item {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stw-loop-nav .stw-loop-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  min-height: 48px;
  margin: 0;
  padding: 12px 20px;
  border: 2px solid var(--stw-loop-nav-ink);
  border-radius: 0;
  background: var(--stw-loop-nav-paper);
  color: var(--stw-loop-nav-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-decoration: none !important;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.stw-loop-nav .stw-loop-nav__link:visited { color: var(--stw-loop-nav-ink); }

.stw-loop-nav .stw-loop-nav__link[aria-current="location"] {
  background: var(--stw-loop-nav-ink);
  color: var(--stw-loop-nav-paper);
}

@media (hover: hover) {
  .stw-loop-nav .stw-loop-nav__link:hover {
    background: var(--stw-loop-nav-accent);
    color: var(--stw-loop-nav-ink);
  }
}

.stw-loop-nav .stw-loop-nav__link:focus-visible {
  outline: 2px solid var(--stw-loop-nav-ink);
  outline-offset: 3px;
}

.stw-loop-nav .stw-loop-nav__arrow {
  display: block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* The existing first heading has a 100px top margin. The nav now supplies it. */
.stw-loop-nav:not([hidden]) + .elementor-widget-heading > .elementor-widget-container {
  margin-top: 0 !important;
}

[data-stw-loop-target] {
  scroll-margin-top: var(--stw-loop-scroll-offset, 160px);
}

[data-stw-loop-target]:focus-visible {
  outline: 2px dotted currentColor;
  outline-offset: 6px;
}

@media (max-width: 767px) {
  .stw-loop-nav { margin-bottom: 20px; }
  .stw-loop-nav .stw-loop-nav__list { gap: 8px; }
  .stw-loop-nav .stw-loop-nav__link { padding: 11px 16px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .stw-loop-nav .stw-loop-nav__link { transition: none; }
  .stw-loop-nav .stw-loop-nav__list { scroll-behavior: auto; }
}

@media print {
  .stw-loop-nav { display: none !important; }
}
