/* "From Abstract to Program" (dgm_event_program_flow, 2026-11-20): the panel rules the element needs from the shared
   CDN stylesheet (webwidgets default.css, scss program-slideshow), so the element does not depend on that stylesheet
   keeping them. Same values, same cascade layer ("components"): while the shared rules are still there, both say the
   same and nothing changes. Left out: what only the old icon scenes used (icon circle, orbits, flying papers, avatars).
   program-flow.css (loaded after this file) holds the new look on top.
   The layer order is declared first, exactly as the CDN stylesheet declares it: this file is printed before it, and a
   first "@layer components" alone would put "components" below "base" for the whole page. */
@layer properties, theme, base, components, utilities;
@layer components {
  .program-slideshow {
    --ps-primary: var(--primary-500, var(--primary, #40834d));
    --ps-bright: color-mix(in oklab, var(--ps-primary) 70%, white);
    --ps-deep: color-mix(in oklab, var(--primary-900, color-mix(in oklab, var(--ps-primary) 34%, black)) 70%, black);
    --ps-deeper: color-mix(in oklab, var(--ps-deep) 60%, black);
    --ps-glow: color-mix(in oklab, var(--ps-primary) 40%, transparent);
    color: #fff;
    font-family: Theme-Font, Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
    margin-left: auto;
    margin-right: auto;
    max-width: 920px;
    overflow: hidden;
    padding: 2rem 1.5rem 2.25rem;
    position: relative;
    border-radius: 1.75rem;
    background: radial-gradient(ellipse at 18% 8%, color-mix(in oklab, var(--ps-bright) 16%, transparent) 0%, transparent 55%), radial-gradient(ellipse at 84% 92%, color-mix(in oklab, var(--ps-primary) 26%, transparent) 0%, transparent 55%), linear-gradient(155deg, var(--ps-deep) 0%, var(--ps-deeper) 48%, var(--ps-deep) 100%);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  @media (min-width: 640px) {
    .program-slideshow {
      padding: 2.75rem 2.5rem 3rem;
    }
  }
  .ps-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: linear-gradient(to right, color-mix(in oklab, var(--ps-bright) 9%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in oklab, var(--ps-bright) 9%, transparent) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 22%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 22%, #000 0%, transparent 72%);
    opacity: 0.5;
  }
  .ps-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .ps-blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(46px);
    opacity: 0.5;
    will-change: transform;
  }
  .ps-blob--1 {
    width: 20rem;
    height: 20rem;
    top: -5rem;
    left: -4rem;
    background: radial-gradient(circle, color-mix(in oklab, var(--ps-bright) 50%, transparent), transparent 70%);
    animation: ps-drift-a 19s ease-in-out infinite;
  }
  .ps-blob--2 {
    width: 24rem;
    height: 24rem;
    bottom: -7rem;
    right: -5rem;
    background: radial-gradient(circle, color-mix(in oklab, var(--ps-primary) 58%, transparent), transparent 70%);
    animation: ps-drift-b 23s ease-in-out infinite;
  }
  /* ── Progress rail (top) ───────────────────────────────── */
  .scene-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 0 auto 1.75rem;
    max-width: 560px;
  }
  .scene-tab {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
  }
  /* connector line between steps */
  .scene-tab::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 50%;
    left: -50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.14);
    z-index: -1;
  }
  .scene-tab:first-child::before {
    display: none;
  }
  .scene-tab-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .scene-tab:hover .scene-tab-dot {
    border-color: color-mix(in oklab, var(--ps-bright) 45%, transparent);
  }
  .scene-tab.is-active {
    color: #fff;
  }
  .scene-tab.is-active .scene-tab-dot {
    background: var(--ps-bright);
    border-color: var(--ps-bright);
    color: var(--ps-deep);
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--ps-bright) 16%, transparent), 0 10px 22px var(--ps-glow);
    transform: scale(1.06);
  }
  .scene-tab-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .scene-tab-bar {
    width: 60%;
    max-width: 90px;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    display: block;
  }
  .scene-tab-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--ps-bright);
  }
  .scene-tab.is-active .scene-tab-fill {
    animation: tab-fill 10s linear forwards;
  }
  @keyframes tab-fill {
    from {
      width: 0%;
    }
    to {
      width: 100%;
    }
  }
  /* ── Stage & scenes ────────────────────────────────────── */
  .scene-stage {
    position: relative;
    z-index: 1;
    height: 430px;
    isolation: isolate;
  }
  .scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(26px) scale(0.97);
    filter: blur(3px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
  }
  .scene.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  /* ── Central visual (icon + orbit rings + avatars) ─────── */
  .scene-eyebrow {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ps-bright);
  }
  .scene-title {
    margin-top: 0.4rem;
    font-family: "Heading-Font", Theme-Font, Inter, system-ui, sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    text-wrap: pretty;
  }
  .scene-body {
    margin-top: 0.6rem;
    max-width: 40ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    text-wrap: pretty;
  }
  .program-slideshow-caption {
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }
  @keyframes ps-drift-a {
    0%, 100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(26px, 18px);
    }
  }
  @keyframes ps-drift-b {
    0%, 100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(-22px, -16px);
    }
  }
  @media (max-width: 640px) {
    .program-slideshow {
      overflow-x: clip;
    }
    .scene-stage {
      height: 470px;
    }
    .scene-title {
      font-size: 1.45rem;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .scene-tab-fill,
    .ps-blob {
      animation: none !important;
    }
  }
}
