/* Depth Stack Carousel (depth-stack-carousel): shared carousel look. Scoped to .ms-depth-stack-carousel. */
.ms-depth-stack-carousel {
  --cc-accent: #7dd3fc;
  --cc-ink: #f4f4f5;
  --cc-btn: #7dd3fc;
  --cc-btn-fg: #111111;
  --cc-btn-radius: 999px;
  --cc-radius: 18px;
  --cc-stage-h: 520px;
  --cc-slide-max: 340px;
  --cc-slide-w: 46%;
  --cc-aspect: 0.75;
  --cc-arrow: 44px;
  --cc-arrow-inset: 16px;
  --cc-kicker: 11px;
  --cc-title: 22px;
  --cc-text: 14px;
  --cc-button: 13px;
  --cc-shade: 0.7;
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: var(--cc-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-y: visible;
  padding: 28px 0 22px;
}
.ms-depth-stack-carousel *, .ms-depth-stack-carousel *::before, .ms-depth-stack-carousel *::after { box-sizing: border-box; }
.ms-depth-stack-carousel .cc-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.ms-depth-stack-carousel .cc-nav {
  position: relative;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.ms-depth-stack-carousel .cc-nav:hover:not(:disabled) { transform: scale(1.06); filter: brightness(1.08); }
.ms-depth-stack-carousel .cc-nav:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 3px; }
.ms-depth-stack-carousel .cc-nav[hidden] { display: none !important; }
.ms-depth-stack-carousel .cc-nav:disabled { cursor: default; opacity: 0.38; }
.ms-depth-stack-carousel[data-arrows="sides"] .cc-viewport > .cc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.ms-depth-stack-carousel[data-arrows="sides"] .cc-viewport > .cc-nav:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.ms-depth-stack-carousel .cc-viewport > .cc-nav--prev { left: var(--cc-arrow-inset); }
.ms-depth-stack-carousel .cc-viewport > .cc-nav--next { right: var(--cc-arrow-inset); }
.ms-depth-stack-carousel .cc-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 max(16px, var(--cc-arrow-inset));
  min-height: 12px;
}
.ms-depth-stack-carousel[data-dots-align="left"] .cc-bar { justify-content: flex-start; }
.ms-depth-stack-carousel[data-dots-align="right"] .cc-bar { justify-content: flex-end; }
.ms-depth-stack-carousel[data-dots="none"]:not([data-arrows="bottom"]) .cc-bar { display: none; }
.ms-depth-stack-carousel .cc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ms-depth-stack-carousel[data-dots="none"] .cc-dots { display: none; }
.ms-depth-stack-carousel .cc-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cc-ink) !important;
  opacity: 0.32;
  cursor: pointer;
  transition: width 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.ms-depth-stack-carousel .cc-dot:hover { opacity: 0.6; }
.ms-depth-stack-carousel .cc-dot.is-active { opacity: 1; background: var(--cc-accent) !important; }
.ms-depth-stack-carousel[data-dots="pill"] .cc-dot.is-active { width: 24px; }
.ms-depth-stack-carousel[data-dots="dot"] .cc-dot.is-active { transform: scale(1.25); }
.ms-depth-stack-carousel[data-dots="line"] .cc-dot { width: 22px; height: 3px; border-radius: 2px; }
.ms-depth-stack-carousel[data-dots="line"] .cc-dot.is-active { width: 34px; }
.ms-depth-stack-carousel .cc-dot:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 3px; }

/* Card body (image + text + button mode) */
.ms-depth-stack-carousel .cc-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  padding: 22px;
  color: var(--cc-ink);
  text-align: left;
  opacity: var(--cc-body-op, 1);
  pointer-events: none;
}
.ms-depth-stack-carousel[data-mode="content"] .cc-body { display: flex; }
.ms-depth-stack-carousel .cc-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0) 80%);
  opacity: var(--cc-shade);
}
.ms-depth-stack-carousel[data-content-pos="top"] .cc-body { justify-content: flex-start; }
.ms-depth-stack-carousel[data-content-pos="top"] .cc-body::before { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0) 80%); }
.ms-depth-stack-carousel[data-content-pos="center"] .cc-body { justify-content: center; }
.ms-depth-stack-carousel[data-content-pos="center"] .cc-body::before { background: rgba(0, 0, 0, 0.55); }
.ms-depth-stack-carousel[data-text-align="center"] .cc-body { align-items: center; text-align: center; }
.ms-depth-stack-carousel[data-text-align="right"] .cc-body { align-items: flex-end; text-align: right; }
.ms-depth-stack-carousel .cc-kicker {
  margin: 0;
  font-size: var(--cc-kicker);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-accent);
}
.ms-depth-stack-carousel .cc-title { font-weight: 700; }
.ms-depth-stack-carousel .cc-desc {
  margin: 0;
  font-size: var(--cc-text);
  line-height: 1.45;
  opacity: 0.86;
  max-width: 34em;
}
.ms-depth-stack-carousel .cc-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 0.62em 1.15em;
  font-size: var(--cc-button);
  font-weight: 650;
  line-height: 1.1;
  pointer-events: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.ms-depth-stack-carousel .cc-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Track: every slide sits centred and is moved by the runtime. */
.ms-depth-stack-carousel .cc-viewport {
  position: relative;
  width: 100%;
  height: var(--cc-stage-h);
  perspective: 1200px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}
.ms-depth-stack-carousel .cc-viewport.is-dragging { cursor: grabbing; }
.ms-depth-stack-carousel .cc-viewport:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: -2px; }
.ms-depth-stack-carousel .cc-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.ms-depth-stack-carousel .cc-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(var(--cc-slide-w), var(--cc-slide-max), calc((var(--cc-stage-h) - 24px) * var(--cc-aspect)));
  aspect-ratio: var(--cc-aspect);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.ms-depth-stack-carousel .cc-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--cc-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}
.ms-depth-stack-carousel .cc-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ms-depth-stack-carousel .cc-fxshade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  .ms-depth-stack-carousel .cc-body { padding: 16px; }
}

/* Content background (t54u): off keeps the box invisible to layout */
.ms-depth-stack-carousel .cc-box { display: contents; }
.ms-depth-stack-carousel[data-content-bg] .cc-box {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
  padding: var(--mm-cbg-pad, 18px);
  background: var(--mm-cbg, rgba(0, 0, 0, 0.6));
  -webkit-backdrop-filter: var(--mm-cbg-filter, none);
  backdrop-filter: var(--mm-cbg-filter, none);
}
.ms-depth-stack-carousel[data-content-bg="full"] .cc-body { padding: 0; }
.ms-depth-stack-carousel[data-content-bg="full"] .cc-box { align-self: stretch; border-radius: 0; }
.ms-depth-stack-carousel[data-content-bg="hug"] .cc-box { border-radius: var(--mm-cbg-radius, 14px); }
