/* VYBE NGMC CMS: Department events and Department updates (moving lists, cards, ticker). Uses press.css for the buttons and the movement. */

.vybe-mv { margin: 0 0 28px; --vybe-press-accent: #0b3e6b; --vybe-press-ink: #16243a; --vybe-press-muted: #5c6a7e; --vybe-press-line: #d8dee8; --vybe-mv-h: 380px; --vybe-de-w: 260px; --vybe-mv-gap: 14px; position: relative; }
.elementor-widget .vybe-mv { margin-bottom: 0; }
.vybe-mv .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; }
.vybe-mv__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 12px; }
.vybe-mv .vybe-mv__heading { margin: 0; font-size: 1.35rem; line-height: 1.25; color: var(--vybe-press-ink); }
.vybe-mv__viewport { position: relative; }
.vybe-mv__viewport:focus-visible { outline: 3px solid var(--vybe-press-accent); outline-offset: 2px; }
.vybe-mv__list { list-style: none; margin: 0; padding: 0; }
.vybe-mv .vybe-mv__list > li { margin: 0; }
.vybe-mv .vybe-mv__list > li::before, .vybe-mv .vybe-mv__list > li::marker { content: none; }
.vybe-mv .vybe-mv__list p { margin: 0; }
.vybe-mv .vybe-mv__list h3 { margin: 0 0 4px; padding: 0; }
.vybe-mv[data-axis="y"] .vybe-mv__list { display: flex; flex-direction: column; gap: var(--vybe-mv-gap); }
.vybe-mv[data-axis="x"] .vybe-mv__list { display: flex; gap: var(--vybe-mv-gap); width: max-content; }
.vybe-mv[data-axis="y"][data-mode="marquee"] .vybe-mv__viewport { height: var(--vybe-mv-h); overflow: auto; overscroll-behavior: contain; padding: 2px; }
.vybe-mv[data-axis="x"]:not([data-mode="still"]) .vybe-mv__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 10px; scrollbar-width: thin; }
.vybe-mv.is-running .vybe-mv__viewport { overflow: hidden; scroll-snap-type: none; }
.vybe-mv.is-running[data-axis="y"] .vybe-mv__viewport { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.vybe-mv.is-running[data-axis="x"] .vybe-mv__viewport { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
.vybe-mv.is-running[data-axis="y"] .vybe-mv__list { animation: vybe-pd-y var(--vybe-ps-dur, 30s) linear infinite; will-change: transform; }
.vybe-mv.is-running[data-axis="x"] .vybe-mv__list { animation: vybe-ps-x var(--vybe-ps-dur, 40s) linear infinite; will-change: transform; }
.vybe-mv.is-running:hover .vybe-mv__list, .vybe-mv.is-running:focus-within .vybe-mv__list, .vybe-mv.is-paused .vybe-mv__list { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .vybe-mv.is-running .vybe-mv__list { animation: none; }
}

/* ---------------------------------------------------------------- events: list */
.vybe-de__item { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 14px; background: #fff; border: 1px solid var(--vybe-press-line); border-radius: 12px; }
.vybe-de__item.is-now, .vybe-de__item.is-today { border-left: 4px solid #1f7a45; }
.vybe-de__item.is-done { background: #fafbfd; }
.vybe-de__tile { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 7px 6px; border-radius: 10px; background: var(--vybe-press-accent); color: #fff; line-height: 1; text-align: center; }
.vybe-de__d { font-size: 24px; font-weight: 800; }
.vybe-de__mo { margin-top: 3px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vybe-de__y { margin-top: 3px; font-size: 11px; opacity: .85; }
.vybe-de__item.is-done .vybe-de__tile { background: #5c6a7e; }
.vybe-de__b { flex: 1; min-width: 0; }
.vybe-mv .vybe-de__t { margin: 0 0 4px; font-size: 16px; line-height: 1.35; }
.vybe-de__t a { color: var(--vybe-press-ink); text-decoration: none; }
.vybe-de__t a:hover { color: var(--vybe-press-accent); text-decoration: underline; }
.vybe-mv .vybe-de__m { margin: 0 0 6px; color: var(--vybe-press-muted); font-size: 13.5px; line-height: 1.45; }
.vybe-de__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.vybe-de__st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef3f9; color: var(--vybe-press-accent); }
.vybe-de__st.is-today, .vybe-de__st.is-now { background: #e6f4ec; color: #1f6b3a; }
.vybe-de__st.is-done { background: #f0f2f5; color: #4a5566; }
.vybe-de__rep { font-size: 12.5px; font-weight: 700; color: var(--vybe-press-accent); text-decoration: none; }
.vybe-de__rep:hover { text-decoration: underline; }
.vybe-de__thumb { flex: 0 0 64px; }
.vybe-de__thumb img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

/* ---------------------------------------------------------------- events: cards */
.vybe-de__card { flex: 0 0 var(--vybe-de-w); width: var(--vybe-de-w); display: flex; flex-direction: column; margin: 0; background: #fff; border: 1px solid var(--vybe-press-line); border-radius: 12px; overflow: hidden; scroll-snap-align: start; box-shadow: 0 1px 2px rgba(16, 38, 66, .06); }
.vybe-de__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef3f9; overflow: hidden; }
.vybe-de__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vybe-de__img.is-empty { background: linear-gradient(135deg, #e8eef6, #d6e0ee); }
.vybe-de__img .vybe-de__tile { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.vybe-de__cb { padding: 12px 14px 14px; }
.vybe-mv .vybe-de__cb .vybe-de__chips { margin-bottom: 6px; }
.vybe-mv.vybe-de--grid .vybe-mv__list { display: grid; width: auto; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--vybe-de-w)), 1fr)); }
.vybe-mv.vybe-de--grid .vybe-de__card { width: auto; }

/* ---------------------------------------------------------------- updates */
.vybe-du__item { margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--vybe-press-line); border-radius: 10px; }
.vybe-mv .vybe-du__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; }
.vybe-du__k { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: #eef3f9; color: #0b3e6b; white-space: nowrap; }
.vybe-du__k--events { background: #e6f0fb; color: #0b4f8a; }
.vybe-du__k--reports { background: #eaf6ee; color: #1f6b3a; }
.vybe-du__k--achievements { background: #fff4dc; color: #7a4d00; }
.vybe-du__k--publications { background: #f1ebfb; color: #55308f; }
.vybe-du__k--documents { background: #eef1f5; color: #3a4658; }
.vybe-du__k--press { background: #fdecec; color: #9b2222; }
.vybe-du__k--newsletters { background: #e7f6f6; color: #0f5d5d; }
.vybe-du__k--notices { background: #fff0e6; color: #8a3d00; }
.vybe-du__new { display: inline-block; padding: 2px 7px; border-radius: 6px; background: #b42318; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.vybe-du .vybe-du__t { display: block; color: var(--vybe-press-ink); font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none; }
.vybe-du a.vybe-du__t:hover { color: var(--vybe-press-accent); text-decoration: underline; }
.vybe-mv .vybe-du__m { margin: 3px 0 0; color: var(--vybe-press-muted); font-size: 13px; line-height: 1.4; }
.vybe-du--list .vybe-mv__list { display: flex; flex-direction: column; gap: 10px; }

.vybe-du--ticker { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; background: #fff; border: 1px solid var(--vybe-press-line); border-radius: 999px; }
.vybe-du__label { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--vybe-press-accent); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.vybe-du--ticker .vybe-mv__viewport { flex: 1; min-width: 0; padding: 0; scroll-snap-type: none; }
.vybe-du--ticker .vybe-mv__list { gap: 28px; align-items: center; }
.vybe-du__tick { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin: 0; font-size: 15px; min-height: 36px; }
.vybe-du__tick a { color: var(--vybe-press-ink); font-weight: 600; text-decoration: none; }
.vybe-du__tick a:hover { color: var(--vybe-press-accent); text-decoration: underline; }
.vybe-du--ticker .vybe-ps__ctrl { margin-left: 0; }
.vybe-du--ticker .vybe-ps__btn { min-height: 40px; }

@media (max-width: 640px) {
  .vybe-de__item { padding: 12px; gap: 12px; }
  .vybe-de__thumb { display: none; }
  .vybe-du--ticker { border-radius: 14px; flex-wrap: wrap; }
  .vybe-du--ticker .vybe-mv__viewport { order: 3; flex-basis: 100%; }
  .vybe-du--ticker .vybe-ps__ctrl { margin-left: auto; }
}
