/* kookworkshop-header-shell 1.0.0 · 21st-port van @aayush-duhan/liquid-morph-floating-menu (framer-motion in de bron,
   hier CSS-transities met dezelfde duur en ease [0.22, 1, 0.36, 1]) plus een rustige kopbalk van 64 px. */
.msm-kookworkshop-header-shell {
  --kn-ease: cubic-bezier(.22, 1, .36, 1);
  position: sticky;
  top: 0;
  z-index: 60;
  display: block;
  height: 64px;
  color: var(--m-ink, #243027);
  font-family: var(--m-font-body, 'Nunito Sans', ui-sans-serif, system-ui, sans-serif);
}
.msm-kookworkshop-header-shell *,
.msm-kookworkshop-header-shell *::before,
.msm-kookworkshop-header-shell *::after { box-sizing: border-box; }

/* Kopbalk: merknaam als tekst, tekstlink Agenda en een gevulde reserveerknop. */
.msm-kookworkshop-header-shell .kn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  padding: 0 1rem;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color .25s, border-color .25s;
}
.msm-kookworkshop-header-shell.is-scrolled .kn-bar {
  background: color-mix(in srgb, var(--m-bg, #efe8db) 90%, transparent);
  border-bottom-color: var(--m-line, #ddd3c2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.msm-kookworkshop-header-shell .kn-brand {
  font-family: var(--m-font-display, 'Caprasimo', Georgia, serif);
  font-size: 1.3125rem;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--m-ink, #243027);
  text-decoration: none;
  white-space: nowrap;
}
.msm-kookworkshop-header-shell .kn-actions { display: flex; align-items: center; gap: 1.25rem; }
.msm-kookworkshop-header-shell .kn-secondary {
  display: none;
  padding: .5rem 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--m-muted, #667067);
  text-decoration: none;
  transition: color .2s;
}
.msm-kookworkshop-header-shell .kn-secondary:hover { color: var(--m-ink, #243027); }
.msm-kookworkshop-header-shell .kn-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: var(--m-primary, #d34d2f);
  color: var(--m-surface, #fffaf1);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s;
}
.msm-kookworkshop-header-shell .kn-cta:hover { background: color-mix(in srgb, var(--m-primary, #d34d2f) 86%, var(--m-ink, #243027)); }
.msm-kookworkshop-header-shell .kn-brand:focus-visible,
.msm-kookworkshop-header-shell .kn-secondary:focus-visible,
.msm-kookworkshop-header-shell .kn-cta:focus-visible { outline: 2px solid var(--m-ink, #243027); outline-offset: 3px; border-radius: 6px; }
.msm-kookworkshop-header-shell .kn-cta:focus-visible { border-radius: 999px; }

/* Zwevende pil (bron): vast onderaan in het midden, komt 20 px omhoog binnen in 0,4 s. */
.msm-kookworkshop-header-shell .kn-float {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--kn-lift, 0px));
  z-index: 100;
  transform: translateX(-50%);
  transition: bottom .2s ease-out;
  animation: kn-enter .4s var(--kn-ease) both;
}
@keyframes kn-enter {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.msm-kookworkshop-header-shell .kn-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 150px;
  height: 48px;
  border-radius: 72px;
  overflow: hidden;
  letter-spacing: -.02em;
  transition: width .8s var(--kn-ease), height .15s var(--kn-ease), border-radius .8s var(--kn-ease), transform .25s var(--kn-ease);
}
.msm-kookworkshop-header-shell:not(.is-open) .kn-pill:hover { transform: scale(1.05); }
.msm-kookworkshop-header-shell.is-open .kn-pill {
  width: 300px;
  height: var(--kn-open-h, 380px);
  border-radius: 32px;
  transition: width .8s var(--kn-ease), height .8s var(--kn-ease), border-radius .8s var(--kn-ease), transform .25s var(--kn-ease);
}
.msm-kookworkshop-header-shell .kn-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--m-primary, #d34d2f);
  border: 1px solid color-mix(in srgb, var(--m-primary, #d34d2f) 76%, var(--m-ink, #243027));
  transition: border-color .3s var(--kn-ease);
}
.msm-kookworkshop-header-shell.is-open .kn-fill { border-color: var(--m-primary, #d34d2f); transition-duration: .1s; }
/* Donkere cirkel van 200 procent die van onderen opkomt: bottom -200 naar -20 procent, 0,8 s, 0,1 s vertraging bij openen. */
.msm-kookworkshop-header-shell .kn-circle {
  position: absolute;
  left: 50%;
  bottom: -200%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  background: var(--m-ink, #243027);
  transform: translateX(-50%);
  transition: bottom .8s var(--kn-ease) 0s;
}
.msm-kookworkshop-header-shell.is-open .kn-circle { bottom: -20%; transition-delay: .1s; }

.msm-kookworkshop-header-shell .kn-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.msm-kookworkshop-header-shell.is-open .kn-links { flex: 1 1 auto; opacity: 1; visibility: visible; pointer-events: auto; overflow-y: auto; }
.msm-kookworkshop-header-shell .kn-links li { opacity: 0; transition: opacity .4s var(--kn-ease) 0s; }
.msm-kookworkshop-header-shell.is-open .kn-links li { opacity: 1; transition-delay: calc(.4s + var(--i, 0) * .08s); }
.msm-kookworkshop-header-shell .kn-links a {
  position: relative;
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--m-bg, #efe8db);
  font-family: var(--m-font-display, 'Caprasimo', Georgia, serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.msm-kookworkshop-header-shell .kn-links a:focus-visible { outline: 2px solid var(--m-primary, #d34d2f); outline-offset: 0; }
.msm-kookworkshop-header-shell .kn-links a[aria-current]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--m-primary, #d34d2f);
}
/* Letterrol: elke letter is een stapel van twee kopieën die met translateY(-50%) omhoog rolt (800 ms, 30 ms per letter). */
.msm-kookworkshop-header-shell .kn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.msm-kookworkshop-header-shell .kn-roll { display: flex; justify-content: center; }
.msm-kookworkshop-header-shell .kn-ch { display: inline-block; height: 1em; overflow: hidden; }
.msm-kookworkshop-header-shell .kn-stack {
  display: flex;
  flex-direction: column;
  transform: translateY(0%);
  transition: transform 0ms;
}
.msm-kookworkshop-header-shell .kn-stack > span { display: block; height: 1em; line-height: 1em; }
.msm-kookworkshop-header-shell .kn-links a.is-roll .kn-stack {
  transform: translateY(-50%);
  transition: transform 800ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--c, 0) * 30ms);
}

/* Onderbalk van de pil: 'Menu' links en een toggle van twee lijnen die een kruis wordt. */
.msm-kookworkshop-header-shell .kn-toggle {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 72px;
  background: none;
  color: var(--m-surface, #fffaf1);
  font: inherit;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: padding .8s var(--kn-ease), color .3s var(--kn-ease);
}
.msm-kookworkshop-header-shell.is-open .kn-toggle { padding: 0 24px 24px; color: var(--m-bg, #efe8db); }
.msm-kookworkshop-header-shell .kn-toggle:focus-visible { outline: 2px solid var(--m-surface, #fffaf1); outline-offset: -5px; }
.msm-kookworkshop-header-shell .kn-label { font-size: 14px; font-weight: 600; line-height: 1; }
.msm-kookworkshop-header-shell .kn-lines {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.msm-kookworkshop-header-shell .kn-lines i {
  position: absolute;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .4s var(--kn-ease);
}
.msm-kookworkshop-header-shell .kn-lines i:first-child { transform: translateY(-3px) rotate(0deg); }
.msm-kookworkshop-header-shell .kn-lines i:last-child { transform: translateY(3px) rotate(0deg); }
.msm-kookworkshop-header-shell.is-open .kn-lines i:first-child { transform: translateY(0) rotate(45deg); }
.msm-kookworkshop-header-shell.is-open .kn-lines i:last-child { transform: translateY(0) rotate(-45deg); }

/* Zonder JavaScript opent de pil met focus of aanwijzer, zodat de links bereikbaar blijven. */
.msm-kookworkshop-header-shell:not(.is-ready) .kn-pill:focus-within,
.msm-kookworkshop-header-shell:not(.is-ready) .kn-pill:hover { width: 300px; height: 380px; border-radius: 32px; }
.msm-kookworkshop-header-shell:not(.is-ready) .kn-pill:focus-within .kn-circle,
.msm-kookworkshop-header-shell:not(.is-ready) .kn-pill:hover .kn-circle { bottom: -20%; }
.msm-kookworkshop-header-shell:not(.is-ready) .kn-pill:focus-within .kn-links,
.msm-kookworkshop-header-shell:not(.is-ready) .kn-pill:hover .kn-links { flex: 1 1 auto; opacity: 1; visibility: visible; pointer-events: auto; }
.msm-kookworkshop-header-shell:not(.is-ready) .kn-pill:focus-within .kn-links li,
.msm-kookworkshop-header-shell:not(.is-ready) .kn-pill:hover .kn-links li { opacity: 1; }

@media (max-width: 380px) {
  .msm-kookworkshop-header-shell .kn-bar { gap: .5rem; padding: 0 .75rem; }
  .msm-kookworkshop-header-shell .kn-brand { font-size: 1.0625rem; }
  .msm-kookworkshop-header-shell .kn-cta { padding: 0 .8rem; font-size: .8125rem; }
}
@media (min-width: 560px) {
  .msm-kookworkshop-header-shell .kn-secondary { display: inline-block; }
}
@media (min-width: 640px) {
  .msm-kookworkshop-header-shell .kn-bar { padding: 0 1.5rem; }
}
@media (min-width: 768px) {
  .msm-kookworkshop-header-shell .kn-float { bottom: calc(40px + var(--kn-lift, 0px)); }
  .msm-kookworkshop-header-shell .kn-label { font-size: 20px; }
}
@media (min-width: 1024px) {
  .msm-kookworkshop-header-shell .kn-bar { padding: 0 2rem; }
  .msm-kookworkshop-header-shell .kn-brand { font-size: 1.5rem; }
}
/* Reduced motion (plan): openen en sluiten zonder cirkel en zonder letterrol, alleen dekking in 0,2 s. */
@media (prefers-reduced-motion: reduce) {
  .msm-kookworkshop-header-shell .kn-float { animation: none; }
  .msm-kookworkshop-header-shell .kn-pill,
  .msm-kookworkshop-header-shell.is-open .kn-pill,
  .msm-kookworkshop-header-shell .kn-toggle,
  .msm-kookworkshop-header-shell .kn-lines i,
  .msm-kookworkshop-header-shell .kn-fill,
  .msm-kookworkshop-header-shell .kn-bar { transition: none; }
  .msm-kookworkshop-header-shell:not(.is-open) .kn-pill:hover { transform: none; }
  .msm-kookworkshop-header-shell .kn-circle { bottom: -20%; opacity: 0; transition: opacity .2s linear; }
  .msm-kookworkshop-header-shell.is-open .kn-circle { opacity: 1; transition-delay: 0s; }
  .msm-kookworkshop-header-shell .kn-links li,
  .msm-kookworkshop-header-shell.is-open .kn-links li { transition: opacity .2s linear; transition-delay: 0s; }
  .msm-kookworkshop-header-shell .kn-links a.is-roll .kn-stack { transform: none; transition: none; }
}
