/* uitzendbureau-berichten: stapelende meldingen na de eerste week.
   Block-port van ReactBitsPro Blocks/bento-23 (Tailwind naar gescopete CSS, lucide-iconen als inline SVG,
   de motion-stapel met de Web Animations API). Kop: ReactBitsPro Components/3d-text-reveal (gsap, origineel). */
.msm-uitzendbureau-berichten {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 72px 16px;
  background: var(--m-bg, #f0f3f0);
  color: var(--m-ink, #17262d);
  font-family: var(--m-font-body, 'Public Sans', Arial, sans-serif);
  scroll-margin-top: 112px;
}
.msm-uitzendbureau-berichten *,
.msm-uitzendbureau-berichten *::before,
.msm-uitzendbureau-berichten *::after { box-sizing: border-box; }
.msm-uitzendbureau-berichten .ub-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.msm-uitzendbureau-berichten .ub-intro-col { position: relative; min-width: 0; }
.msm-uitzendbureau-berichten .ub-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-primary, #e26c35);
}
.msm-uitzendbureau-berichten .ub-title {
  margin: 0;
  font-family: var(--m-font-display, 'Archivo', 'Arial Narrow', sans-serif);
  font-size: 36px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--m-ink, #17262d);
}
.msm-uitzendbureau-berichten .ub-title.is-3d {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.msm-uitzendbureau-berichten .ub-intro {
  max-width: 34rem;
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--m-muted, #5b6b72);
}

/* 3d-text-reveal (bron-CSS, gescoped; hoogte en uitlijning voor een sectiekop) */
.msm-uitzendbureau-berichten .ub-reveal { display: none; }
.msm-uitzendbureau-berichten .ub-reveal.is-ready { display: block; width: 100%; }
.msm-uitzendbureau-berichten .text-reveal-3d-wrapper {
  position: relative;
  width: 100%;
  height: var(--ub-reveal-h, 220px);
  overflow: hidden;
  perspective-origin: left center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.msm-uitzendbureau-berichten .text-reveal-3d-container {
  position: absolute;
  inset: 0;
  text-align: left;
  transform-style: preserve-3d;
  transform-origin: center center;
}
.msm-uitzendbureau-berichten .text-reveal-3d-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  font-family: var(--m-font-display, 'Archivo', 'Arial Narrow', sans-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  backface-visibility: hidden;
  color: var(--m-ink, #17262d);
}

/* Kaart (bento-23) */
.msm-uitzendbureau-berichten .ub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--m-line, #d3dbd8);
  border-radius: 24px;
  background: var(--m-surface, #ffffff);
}
.msm-uitzendbureau-berichten .ub-stage { position: relative; flex: 1; min-height: 220px; overflow: hidden; }
.msm-uitzendbureau-berichten .ub-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--m-ink, #17262d) 9%, transparent) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.msm-uitzendbureau-berichten .ub-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}
.msm-uitzendbureau-berichten .ub-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 236px;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.msm-uitzendbureau-berichten .ub-list { position: relative; margin: 0; padding: 0; list-style: none; height: 100%; }
.msm-uitzendbureau-berichten .ub-toast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--m-line, #d3dbd8);
  border-radius: 12px;
  background: var(--m-surface, #ffffff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.14);
  transform-origin: top center;
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
  will-change: transform, opacity;
}
.msm-uitzendbureau-berichten .ub-toast.is-out { opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, 0s, 0.5s; }
.msm-uitzendbureau-berichten .ub-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--m-ink, #17262d);
  color: var(--m-surface, #ffffff);
}
.msm-uitzendbureau-berichten .ub-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msm-uitzendbureau-berichten .ub-toast-text { flex: 1; min-width: 0; line-height: 1.25; }
.msm-uitzendbureau-berichten .ub-toast-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.msm-uitzendbureau-berichten .ub-toast-title {
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--m-ink, #17262d);
}
.msm-uitzendbureau-berichten .ub-toast-time {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 15px;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--m-muted, #5b6b72) 75%, var(--m-bg, #f0f3f0));
}
.msm-uitzendbureau-berichten .ub-toast-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-muted, #5b6b72);
}
.msm-uitzendbureau-berichten .ub-toggle {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--m-line, #d3dbd8);
  border-radius: 999px;
  background: var(--m-surface, #ffffff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--m-muted, #5b6b72);
  cursor: pointer;
  transform: translateX(-50%);
  transition: color 0.2s ease;
}
.msm-uitzendbureau-berichten .ub-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msm-uitzendbureau-berichten .ub-toggle:hover { color: var(--m-ink, #17262d); }
.msm-uitzendbureau-berichten .ub-toggle:focus-visible { outline: 2px solid var(--m-primary, #e26c35); outline-offset: 3px; }
.msm-uitzendbureau-berichten .ub-card-foot { padding: 8px 24px 24px; }
.msm-uitzendbureau-berichten .ub-card-title {
  margin: 0;
  font-family: var(--m-font-display, 'Archivo', 'Arial Narrow', sans-serif);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--m-ink, #17262d);
}
.msm-uitzendbureau-berichten .ub-card-text { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--m-muted, #5b6b72); }

/* Zonder JavaScript: de zes berichten als gewone lijst */
.msm-uitzendbureau-berichten .ub-stack:not(.is-ready) { height: auto; }
.msm-uitzendbureau-berichten .ub-stack:not(.is-ready) .ub-toast { position: relative; margin-bottom: 10px; }
.msm-uitzendbureau-berichten .ub-stack:not(.is-ready) .ub-toggle { display: none; }

@media (min-width: 640px) {
  .msm-uitzendbureau-berichten { padding: 96px 24px; }
  .msm-uitzendbureau-berichten .ub-title { font-size: 48px; }
}
@media (min-width: 700px) {
  .msm-uitzendbureau-berichten .ub-stack { max-width: 380px; }
}
@media (min-width: 1024px) {
  .msm-uitzendbureau-berichten { padding-left: 32px; padding-right: 32px; }
  .msm-uitzendbureau-berichten .ub-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .msm-uitzendbureau-berichten .ub-title { font-size: 56px; }
  .msm-uitzendbureau-berichten .ub-intro-col { position: sticky; top: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .msm-uitzendbureau-berichten .ub-stack,
  .msm-uitzendbureau-berichten .ub-toast,
  .msm-uitzendbureau-berichten .ub-toggle { transition: none; }
  .msm-uitzendbureau-berichten .ub-toast { will-change: auto; }
}
