/* manege-header-shell 1.0.0 · eigen schil rond 21st.dev @cnippet-dev/m-variable-font-hover-1 (Variable Font Hover Nav).
   Uit de bron: links per letter gesplitst, het variabele gewicht (wght 400 naar 700) gestaffeld 0,03 s per letter vanuit
   het midden, gap-8 (32 px), text-base, kleur van gedempt naar inkt met transition-colors. Fraunces heeft een wght-as. */
.msm-manege-header-shell {
  --mh-h: 64px;
  --mh-spring: cubic-bezier(.34, 1.3, .64, 1);
  position: sticky;
  top: 0;
  z-index: 40;
  font-family: var(--m-font-body, 'Source Sans 3', ui-sans-serif, system-ui, sans-serif);
  color: var(--m-ink, #293126);
}
.msm-manege-header-shell *,
.msm-manege-header-shell *::before,
.msm-manege-header-shell *::after { box-sizing: border-box; }

.msm-manege-header-shell .mh-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: calc(var(--mh-h) + 1px);
  padding: 0 clamp(16px, 3vw, 32px);
  background: var(--m-surface, #faf7ef);
  border-bottom: 1px solid var(--m-line, #d5cdbd);
  animation: mh-drop .5s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes mh-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.msm-manege-header-shell .mh-brand {
  justify-self: start;
  font-family: var(--m-font-display, 'Fraunces', Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--m-ink, #293126);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}

/* De rij uit de bron: flex, gap-8, text-base, gedempt naar inkt. */
.msm-manege-header-shell .mh-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.msm-manege-header-shell .mh-item { position: relative; }
.msm-manege-header-shell .mh-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-family: var(--m-font-display, 'Fraunces', Georgia, serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--m-muted, #667061);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s cubic-bezier(.4, 0, .2, 1);
}
.msm-manege-header-shell .mh-link:hover,
.msm-manege-header-shell .mh-link.is-hot,
.msm-manege-header-shell .mh-link[aria-current] { color: var(--m-ink, #293126); }
.msm-manege-header-shell .mh-link[aria-current] { font-weight: 700; }

/* Gesplitste letters: een onzichtbare vette kopie houdt de breedte vast, de letters groeien vanuit het midden. */
.msm-manege-header-shell .mh-word { display: inline-grid; justify-items: center; }
.msm-manege-header-shell .mh-ghost,
.msm-manege-header-shell .mh-letters { grid-area: 1 / 1; white-space: pre; }
.msm-manege-header-shell .mh-ghost { visibility: hidden; font-variation-settings: 'wght' 700; }
.msm-manege-header-shell .mh-ch {
  display: inline-block;
  white-space: pre;
  font-variation-settings: 'wght' 400;
  transition-property: font-variation-settings;
  transition-duration: .7s;
  transition-delay: calc(var(--d, 0) * 1s);
  transition-timing-function: var(--mh-spring);
  transition-timing-function: linear(0, .0606 4.2%, .1986 8.3%, .3648 12.5%, .5286 16.7%, .6728 20.8%, .7901 25%, .8793 29.2%, .9428 33.3%, .9848 37.5%, 1.0101 41.7%, 1.0233 45.8%, 1.0281 50%, 1.0277 54.2%, 1.0244 58.3%, 1.0198 62.5%, 1.0151 66.7%, 1.0107 70.8%, 1.0071 75%, 1.0043 79.2%, 1.0022 83.3%, 1.0008 87.5%, .9999 91.7%, .9994 95.8%, 1);
}
.msm-manege-header-shell .mh-link.is-hot .mh-ch,
.msm-manege-header-shell .mh-link[aria-current] .mh-ch { font-variation-settings: 'wght' 700; }

.msm-manege-header-shell .mh-chev {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.msm-manege-header-shell .mh-has-sub.is-open .mh-chev { transform: rotate(180deg); }

/* Paneel onder Lessen: fade en 6 px omlaag in 0,2 s. */
.msm-manege-header-shell .mh-sub {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  min-width: 212px;
  padding: 8px;
  background: var(--m-surface, #faf7ef);
  border: 1px solid var(--m-line, #d5cdbd);
  border-radius: 14px;
  box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--m-ink, #293126) 45%, transparent), 0 4px 12px -8px color-mix(in srgb, var(--m-ink, #293126) 25%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.msm-manege-header-shell .mh-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.msm-manege-header-shell .mh-has-sub.is-open .mh-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.msm-manege-header-shell .mh-sublist { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.msm-manege-header-shell .mh-sublink {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--m-ink, #293126);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.msm-manege-header-shell .mh-sublink:hover { background: color-mix(in srgb, var(--m-line, #d5cdbd) 55%, var(--m-surface, #faf7ef)); }
.msm-manege-header-shell .mh-sublink[aria-current] {
  background: color-mix(in srgb, var(--m-line, #d5cdbd) 70%, var(--m-surface, #faf7ef));
  font-weight: 600;
}

.msm-manege-header-shell .mh-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}
.msm-manege-header-shell .mh-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--m-ink, #293126);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  border-radius: 6px;
  transition: text-decoration-color .2s ease;
}
.msm-manege-header-shell .mh-secondary:hover,
.msm-manege-header-shell .mh-secondary[aria-current] { text-decoration-color: var(--m-primary, #a55436); }
.msm-manege-header-shell .mh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--m-primary, #a55436);
  color: var(--m-surface, #faf7ef);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}
.msm-manege-header-shell .mh-cta:hover { background: color-mix(in srgb, var(--m-primary, #a55436) 86%, var(--m-ink, #293126)); }
.msm-manege-header-shell .mh-cta:active { transform: scale(.98); }

.msm-manege-header-shell .mh-menu,
.msm-manege-header-shell .mh-close {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--m-line, #d5cdbd);
  border-radius: 50%;
  background: var(--m-surface, #faf7ef);
  color: var(--m-ink, #293126);
  cursor: pointer;
}
.msm-manege-header-shell .mh-close { display: grid; }
.msm-manege-header-shell .mh-menu svg,
.msm-manege-header-shell .mh-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.msm-manege-header-shell a:focus-visible,
.msm-manege-header-shell button:focus-visible {
  outline: 2px solid var(--m-primary, #a55436);
  outline-offset: 3px;
}

/* Menu onder 768 px: paneel van rechts (0,4 s), gedimde achtergrond, gewicht vast op 500. */
.msm-manege-header-shell .mh-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: color-mix(in srgb, var(--m-ink, #293126) 42%, transparent);
  opacity: 0;
  transition: opacity .4s ease;
}
.msm-manege-header-shell .mh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(88vw, 380px);
  padding: 12px 20px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--m-surface, #faf7ef);
  border-left: 1px solid var(--m-line, #d5cdbd);
  box-shadow: -24px 0 48px -32px color-mix(in srgb, var(--m-ink, #293126) 55%, transparent);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.32, .72, 0, 1);
}
.msm-manege-header-shell .mh-backdrop[hidden],
.msm-manege-header-shell .mh-drawer[hidden] { display: none; }
.msm-manege-header-shell.mh-open .mh-backdrop { opacity: 1; }
.msm-manege-header-shell.mh-open .mh-drawer { transform: none; }
.msm-manege-header-shell .mh-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
.msm-manege-header-shell .mh-drawer-list,
.msm-manege-header-shell .mh-drawer-sub { margin: 0; padding: 0; list-style: none; }
.msm-manege-header-shell .mh-drawer-list { display: grid; gap: 4px; }
.msm-manege-header-shell .mh-big {
  display: block;
  padding: 6px 0;
  font-family: var(--m-font-display, 'Fraunces', Georgia, serif);
  font-size: 32px;
  font-weight: 500;
  font-variation-settings: 'wght' 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--m-ink, #293126);
  text-decoration: none;
  border-radius: 6px;
}
.msm-manege-header-shell .mh-big[aria-current] { color: var(--m-primary, #a55436); }
.msm-manege-header-shell .mh-drawer-sub { display: grid; gap: 0; margin: 2px 0 8px; padding-left: 16px; border-left: 1px solid var(--m-line, #d5cdbd); }
.msm-manege-header-shell .mh-drawer-sub a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 17px;
  color: var(--m-muted, #667061);
  text-decoration: none;
  border-radius: 6px;
}
.msm-manege-header-shell .mh-drawer-sub a[aria-current] { color: var(--m-ink, #293126); font-weight: 600; }
.msm-manege-header-shell .mh-cta--drawer { margin-top: auto; min-height: 52px; font-size: 16px; }

@media (min-width: 768px) {
  .msm-manege-header-shell .mh-backdrop,
  .msm-manege-header-shell .mh-drawer { display: none; }
}
@media (min-width: 768px) and (max-width: 959px) {
  .msm-manege-header-shell .mh-bar { gap: 16px; }
  .msm-manege-header-shell .mh-links { gap: 22px; }
  .msm-manege-header-shell .mh-brand { font-size: 18px; }
  .msm-manege-header-shell .mh-secondary { display: none; }
}
@media (max-width: 767px) {
  .msm-manege-header-shell .mh-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .msm-manege-header-shell .mh-links,
  .msm-manege-header-shell .mh-secondary { display: none; }
  .msm-manege-header-shell .mh-actions { gap: 10px; }
  .msm-manege-header-shell .mh-menu { display: grid; }
}
@media (max-width: 519px) {
  .msm-manege-header-shell .mh-actions .mh-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .msm-manege-header-shell .mh-bar { animation: none; }
  .msm-manege-header-shell .mh-ch,
  .msm-manege-header-shell .mh-chev,
  .msm-manege-header-shell .mh-cta { transition: none; }
  .msm-manege-header-shell .mh-sub { transform: translate(-50%, 0); transition: opacity .2s ease, visibility 0s linear .2s; }
  .msm-manege-header-shell .mh-has-sub.is-open .mh-sub { transition: opacity .2s ease, visibility 0s; }
  .msm-manege-header-shell .mh-drawer { transform: none; opacity: 0; transition: opacity .25s ease; }
  .msm-manege-header-shell.mh-open .mh-drawer { opacity: 1; }
}
