/* stomerij-header-shell 1.0.0 · vanilla port van 21st.dev @ddoemonn/scroll-spy in een eigen balk van 64 px. */
.msm-stomerij-header-shell {
  --hs-copy: color-mix(in srgb, var(--m-muted, #63767b) 78%, var(--m-ink, #1a3339));
  position: sticky;
  top: 0;
  z-index: 40;
  box-sizing: border-box;
  width: 100%;
  border-bottom: 1px solid var(--m-line, #d3dfdb);
  background: var(--m-bg, #eef3f1);
  color: var(--m-ink, #1a3339);
  font-family: var(--m-font-body, 'Source Sans 3', ui-sans-serif, system-ui, sans-serif);
}
.msm-stomerij-header-shell *,
.msm-stomerij-header-shell *::before,
.msm-stomerij-header-shell *::after { box-sizing: border-box; }

/* Onder 768 px: merknaam en knoppen op de eerste regel, de Scroll Spy als tweede regel. */
.msm-stomerij-header-shell .hs-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand actions" "spy spy";
  align-items: center;
  column-gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 8px;
}
.msm-stomerij-header-shell .hs-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 56px;
  border-radius: 6px;
  color: var(--m-ink, #1a3339);
  font-family: var(--m-font-display, 'Instrument Sans', ui-sans-serif, system-ui, sans-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.msm-stomerij-header-shell .hs-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 4px;
}
.msm-stomerij-header-shell .hs-secondary {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--m-ink, #1a3339);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}
.msm-stomerij-header-shell .hs-secondary:hover { background: color-mix(in srgb, var(--m-line, #d3dfdb) 70%, transparent); }
.msm-stomerij-header-shell .hs-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--m-ink, #1a3339);
  color: var(--m-surface, #f8fbfa);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.msm-stomerij-header-shell .hs-cta:hover { background: color-mix(in srgb, var(--m-ink, #1a3339) 86%, var(--m-surface, #f8fbfa)); }
.msm-stomerij-header-shell .hs-brand:focus-visible,
.msm-stomerij-header-shell .hs-secondary:focus-visible,
.msm-stomerij-header-shell .hs-cta:focus-visible {
  outline: 2px solid var(--m-accent2, #244a55);
  outline-offset: 2px;
}

/* Scroll Spy: goot met chips, de pil schuift op een veer naar de actieve chip. */
.msm-stomerij-header-shell .hs-spy { grid-area: spy; min-width: 0; }
.msm-stomerij-header-shell .hs-gutter {
  padding: 4px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--m-line, #d3dfdb) 60%, transparent);
  box-shadow: inset 0 1px 2px rgba(28, 25, 23, 0.07);
}
.msm-stomerij-header-shell .hs-track {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
}
.msm-stomerij-header-shell .hs-track::-webkit-scrollbar { display: none; }
.msm-stomerij-header-shell .hs-pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 28px;
  border-radius: 6px;
  background: var(--m-ink, #1a3339);
  opacity: 0;
  pointer-events: none;
  will-change: transform, width;
}
.msm-stomerij-header-shell .hs-pill.is-shown { opacity: 1; }
.msm-stomerij-header-shell .hs-row {
  position: relative;
  display: flex;
  gap: 4px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.msm-stomerij-header-shell .hs-chip { position: relative; flex: 1 0 auto; margin: 0; }
.msm-stomerij-header-shell .hs-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--hs-copy);
  font-size: 12.5px;
  line-height: 1;
  text-decoration: none;
  outline: none;
}
.msm-stomerij-header-shell .hs-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
}
.msm-stomerij-header-shell .hs-link:focus-visible::after {
  background: color-mix(in srgb, var(--m-accent2, #244a55) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--m-accent2, #244a55);
}
.msm-stomerij-header-shell .hs-label { position: relative; display: grid; }
.msm-stomerij-header-shell .hs-ghost,
.msm-stomerij-header-shell .hs-text { grid-column: 1; grid-row: 1; white-space: nowrap; }
.msm-stomerij-header-shell .hs-ghost { visibility: hidden; font-weight: 600; }
.msm-stomerij-header-shell .hs-text { transition: color 0.15s; }
.msm-stomerij-header-shell .hs-link:hover .hs-text { color: var(--m-ink, #1a3339); }
.msm-stomerij-header-shell .hs-link[aria-current] .hs-text { color: var(--m-surface, #f8fbfa); font-weight: 600; }
.msm-stomerij-header-shell .hs-link[aria-current]:focus-visible::after {
  box-shadow: inset 0 0 0 1px var(--m-surface, #f8fbfa);
}
.msm-stomerij-header-shell .hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .msm-stomerij-header-shell .hs-bar { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 768px) {
  .msm-stomerij-header-shell .hs-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand spy actions";
    column-gap: 20px;
    height: 64px;
    padding-bottom: 0;
  }
  .msm-stomerij-header-shell .hs-brand { height: 40px; }
  .msm-stomerij-header-shell .hs-spy { justify-self: center; max-width: 100%; }
  .msm-stomerij-header-shell .hs-actions { gap: 8px; }
}
@media (min-width: 1024px) {
  .msm-stomerij-header-shell .hs-bar { padding-left: 32px; padding-right: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .msm-stomerij-header-shell .hs-text,
  .msm-stomerij-header-shell .hs-secondary,
  .msm-stomerij-header-shell .hs-cta { transition: none; }
}
