/* The Section pattern owns the backdrop and editable header; this SDC owns content. */
.urovo-workflow-section {
  isolation: isolate;
  overflow: hidden;
}
.urovo-workflow-section header:not(:has(> .flex)) > div:has(p) {
  margin-top: 24px;
}
.urovo-workflow-section > .container {
  min-width: 0;
}
.urovo-workflow-section header:not(:has(> .flex)) {
  text-align: center;
  margin-bottom: clamp(36px, 4.5vw, 62px);
}
.urovo-workflow-section header:not(:has(> .flex)) h2 {
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 500;
  letter-spacing: normal;
}
.urovo-workflow-section header:not(:has(> .flex)) p {
  margin-top: 24px;
  font-size: clamp(15px, 1.4vw, 20px);
}
.urovo-workflow {
  position: relative;
  min-width: 0;
  max-width: 100%;
  /* Section supplies the foreground; derive secondary text without a theme prop. */
  --workflow-muted: color-mix(in srgb, currentColor 35%, #7393a9);
  --workflow-rule: color-mix(in srgb, currentColor 16%, transparent);
  --workflow-tag-color: color-mix(in srgb, var(--primary, #00aeef) 70%, currentColor);
  --workflow-tag-border: color-mix(in srgb, var(--primary, #00aeef) 40%, transparent);
  --workflow-tag-bg: color-mix(in srgb, var(--primary, #00aeef) 8%, transparent);
  color: inherit;
}
.urovo-workflow__visual {
  display: none;
}
.urovo-workflow-step h3 {
  margin: 0;
}
.urovo-workflow__slide {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}
.urovo-workflow__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.urovo-workflow__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 30% at 12% 100%, rgb(3 12 28 / 58%), transparent), linear-gradient(180deg, transparent 66%, rgb(3 12 28 / 30%));
}
.urovo-workflow__slide figcaption {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 34px;
  display: flex;
  gap: 10px;
  color: white;
  font-size: 18px;
  text-shadow: 0 2px 10px rgb(0 0 0 / 78%);
}
.urovo-workflow__slide figcaption strong {
  font-weight: 500;
}
.urovo-workflow.is-enhanced {
  display: grid;
  grid-template-columns: minmax(0, var(--workflow-image-ratio, 1fr)) minmax(0, var(--workflow-text-ratio, 1fr));
  gap: clamp(20px, 1.75vw, 28px);
}
.is-enhanced .urovo-workflow__visual {
  display: block;
  position: relative;
  min-width: 0;
  min-height: clamp(360px, 35vw, 560px);
  border-radius: 18px;
  overflow: hidden;
  background: #17344e;
}
.is-enhanced .urovo-workflow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(28px) scale(1.035);
  transition:
    opacity 0.72s ease,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-enhanced .urovo-workflow__slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: none;
}
.is-enhanced .urovo-workflow__steps {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.urovo-workflow-step {
  position: relative;
  border-top: 1px solid var(--workflow-rule);
}
.is-enhanced .urovo-workflow-step {
  flex: 0 0 58px;
}
.is-enhanced .urovo-workflow-step.is-active {
  flex: 1 1 auto;
}
.urovo-workflow-step:last-child {
  border-bottom: 1px solid var(--workflow-rule);
}
.urovo-workflow-step__trigger {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--workflow-muted);
  text-align: left;
  cursor: pointer;
}
.urovo-workflow-step__trigger > span {
  color: inherit;
  font-weight: 600;
}
.urovo-workflow-step__trigger strong {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.urovo-workflow-step__trigger i {
  padding-right: 12px;
  color: inherit;
  font-style: normal;
  font-size: 24px;
  font-weight: 300;
}
.urovo-workflow-step.is-active .urovo-workflow-step__trigger {
  color: inherit;
}
.urovo-workflow-step.is-active .urovo-workflow-step__trigger > span,
.urovo-workflow-step.is-active .urovo-workflow-step__trigger i {
  color: var(--primary);
}
.urovo-workflow-step__trigger:hover {
  color: inherit;
}
.urovo-workflow :is(button, a):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.urovo-workflow-step__panel {
  display: grid;
  grid-template-rows: 1fr;
}
.is-enhanced .urovo-workflow-step__panel {
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition:
    grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}
.is-enhanced .is-active .urovo-workflow-step__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.urovo-workflow-step__content {
  min-height: 0;
  overflow: hidden;
  padding-inline: 38px 24px;
}
.urovo-workflow-step__content > :last-child {
  margin-bottom: 22px;
}
.urovo-workflow-step__content p {
  margin: 12px 0 0;
  color: var(--workflow-muted);
}
.urovo-workflow-step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.urovo-workflow-step__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid var(--workflow-tag-border);
  background: var(--workflow-tag-bg);
  color: var(--workflow-tag-color);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.urovo-workflow-step__content a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.urovo-workflow-step__tags + a {
  margin-top: 16px;
}
.urovo-workflow-step__content a:hover {
  color: inherit;
}
.urovo-workflow-step__content a svg {
  transition: transform 0.3s;
}
.urovo-workflow-step__content a:hover svg {
  transform: translateX(5px);
}
.urovo-workflow-step__progress {
  display: none;
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  overflow: hidden;
}
.is-enhanced .is-active .urovo-workflow-step__progress {
  display: block;
}
.urovo-workflow-step__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #2f7bff);
}
.is-running .is-active .urovo-workflow-step__progress i {
  animation: urovo-workflow-progress 4.6s linear forwards;
}
@keyframes urovo-workflow-progress {
  to {
    width: 100%;
  }
}
@media (max-width: 950px) {
  .urovo-workflow.is-enhanced {
    grid-template-columns: 1fr;
  }
  .is-enhanced .urovo-workflow__visual {
    min-height: min(68vw, 520px);
  }
  .is-enhanced .urovo-workflow__steps {
    min-height: 480px;
  }
}
@media (max-width: 639px) {
  .is-enhanced .urovo-workflow__visual {
    min-height: 72vw;
    border-radius: 12px;
  }
  .urovo-workflow__slide figcaption {
    left: 20px;
    bottom: 20px;
  }
  .urovo-workflow-step__content {
    padding-right: 8px;
  }
  .urovo-workflow-step__content > :last-child {
    margin-bottom: 20px;
  }
  .urovo-workflow-step__tags {
    gap: 6px 8px;
    margin-top: 12px;
  }
  .urovo-workflow-step__tag {
    padding: 4px 10px;
    font-size: 12px;
  }
}

/* Reverse the desktop columns without changing the image-first mobile order. */
@media (min-width: 951px) {
  .urovo-workflow--image-right.is-enhanced {
    grid-template-columns: minmax(0, var(--workflow-text-ratio, 1fr)) minmax(0, var(--workflow-image-ratio, 1fr));
  }
  .urovo-workflow--image-right.is-enhanced > .urovo-workflow__visual {
    grid-column: 2;
    grid-row: 1;
  }
  .urovo-workflow--image-right.is-enhanced > .urovo-workflow__steps {
    grid-column: 1;
    grid-row: 1;
  }
}

/* The container controls numbering in both the accordion and image captions. */
.urovo-workflow--hide-index [data-workflow-number] {
  display: none;
}
.urovo-workflow--hide-index .urovo-workflow-step__trigger {
  grid-template-columns: 1fr auto;
}
.urovo-workflow--hide-index .urovo-workflow-step__content {
  padding-inline-start: 0;
}

.urovo-workflow--ratio-1-2 {
  --workflow-image-ratio: 1fr;
  --workflow-text-ratio: 2fr;
}

.urovo-workflow--ratio-1-1 {
  --workflow-image-ratio: 1fr;
  --workflow-text-ratio: 1fr;
}

.urovo-workflow--ratio-2-1 {
  --workflow-image-ratio: 2fr;
  --workflow-text-ratio: 1fr;
}

.urovo-workflow--ratio-2-3 {
  --workflow-image-ratio: 2fr;
  --workflow-text-ratio: 3fr;
}

.urovo-workflow--ratio-3-2 {
  --workflow-image-ratio: 3fr;
  --workflow-text-ratio: 2fr;
}
