/* Smart-contract illustration, carousel and timeline composition only.
   Shared components own containers, section rhythm and card visuals. */
.smart-contract-page .sc-benefit-image {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: var(--ds-space-6);
}

.smart-contract-page .sc-illustrated-row {
  align-items: center;
}

.smart-contract-page .sc-illustration {
  justify-self: center;
  width: 100%;
  max-width: 480px;
  height: auto;
}

.smart-contract-page .sc-service-image {
  align-self: flex-start;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: var(--ds-space-4);
}

.smart-contract-page .slider {
  min-width: 0;
}

.smart-contract-page .glide__slides {
  align-items: stretch;
  cursor: grab;
}

.smart-contract-page .slider__slide {
  height: auto;
}

.smart-contract-page .sc-example-card {
  height: 100%;
}

.smart-contract-page .slider__img {
  align-self: center;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: var(--ds-space-4);
}

.smart-contract-page .slider__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--ds-space-4);
  margin-top: var(--ds-space-8);
}

.smart-contract-page .slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--ds-space-2);
}

.smart-contract-page .sc-advantage-illustration {
  justify-self: center;
  width: 100%;
  max-width: 366px;
}

.smart-contract-page .sc-advantage-illustration img {
  width: 100%;
  height: auto;
}

.smart-contract-page .sc-advantage-icon {
  display: none;
}

.smart-contract-page .sc-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--ds-space-8);
  max-width: 960px;
}

.smart-contract-page .sc-timeline__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--ds-space-8);
}

.smart-contract-page .sc-timeline__marker {
  position: relative;
  isolation: isolate;
}

.smart-contract-page .sc-timeline__marker::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--color-primary);
  z-index: -1;
}

.smart-contract-page .sc-timeline__item:last-child .sc-timeline__marker::before {
  display: none;
}

.smart-contract-page .sc-timeline__content {
  padding-bottom: var(--ds-space-8);
}

.smart-contract-page .sc-timeline__item:last-child .sc-timeline__content {
  padding-bottom: 0;
}

@media (min-width: 640px) {
  .smart-contract-page .sc-illustrated-row--reverse > :first-child {
    grid-column: 2;
    grid-row: 1;
  }

  .smart-contract-page .sc-illustrated-row--reverse > :last-child {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 639px) {
  .smart-contract-page .sc-advantage-illustration {
    display: none;
  }

  .smart-contract-page .sc-advantage-icon {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: var(--ds-space-4);
  }

  .smart-contract-page .sc-timeline__item {
    gap: var(--ds-space-4);
  }

  .smart-contract-page .slider__dots {
    order: 1;
    flex-basis: 100%;
  }
}
