/* Di Rezende Timeline responsive layouts — maintenance reference: novamira-sandbox/README.md */
.dreht--layout-vertical,
.dreht--layout-compact,
.dreht--layout-one-side {
  overflow: visible;
  cursor: default;
  padding: 12px 0;
}

.dreht--layout-vertical .dreht__track,
.dreht--layout-compact .dreht__track,
.dreht--layout-one-side .dreht__track {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 12px 0;
}

.dreht--layout-vertical .dreht__track::before,
.dreht--layout-compact .dreht__track::before,
.dreht--layout-one-side .dreht__track::before {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--dreht-ink);
  content: '';
}

.dreht--layout-vertical .dreht__track,
.dreht--layout-compact .dreht__track {
  gap: 18px;
}

.dreht--layout-vertical .dreht__track::before,
.dreht--layout-compact .dreht__track::before {
  left: 50%;
  transform: translateX(-50%);
}

.dreht--layout-vertical .dreht__item,
.dreht--layout-compact .dreht__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 0;
}

.dreht--layout-vertical .dreht__content,
.dreht--layout-compact .dreht__content,
.dreht--layout-one-side .dreht__content {
  position: static;
  width: auto;
  overflow: visible;
}

.dreht--layout-vertical .dreht__rail,
.dreht--layout-compact .dreht__rail,
.dreht--layout-one-side .dreht__rail {
  display: none;
}

.dreht--layout-vertical .dreht__connector,
.dreht--layout-compact .dreht__connector {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  justify-self: center;
  width: 2px;
  background: transparent;
}

.dreht--layout-vertical .dreht__connector::before,
.dreht--layout-compact .dreht__connector::before {
  top: 18px;
  bottom: auto;
  width: 15px;
  height: 15px;
  background: var(--dreht-item-color);
}

.dreht--layout-vertical .dreht__year,
.dreht--layout-compact .dreht__year {
  position: static;
  align-self: start;
  /* Mirrors the card's top padding, creating an equal visual interval before the year. */
  margin: 20px 0 0;
  font-size: clamp(2.05rem, 3.8vw, 3.5rem);
  letter-spacing: -.045em;
  line-height: .9;
}

/* Align the year/card group with the milestone dot whenever Vertical alternado is active. */
.dreht--layout-vertical .dreht__year,
.dreht--layout-vertical .dreht__content {
  transform: translateY(-10px);
}

.dreht--layout-vertical .dreht__content {
  align-self: start;
  padding: 20px 24px;
  border: 1px solid color-mix(in srgb, var(--dreht-item-color) 72%, transparent);
  border-radius: 2px;
}

.dreht--layout-vertical .dreht__item:nth-child(odd) .dreht__year,
.dreht--layout-vertical .dreht__item:nth-child(odd) .dreht__content {
  grid-column: 1;
  text-align: right;
}

.dreht--layout-vertical .dreht__item:nth-child(even) .dreht__year,
.dreht--layout-vertical .dreht__item:nth-child(even) .dreht__content {
  grid-column: 3;
  text-align: left;
}

.dreht--layout-compact .dreht__content {
  align-self: start;
  padding: 14px 18px;
  border: 1px solid var(--dreht-item-color);
  border-radius: 2px;
  background: color-mix(in srgb, var(--dreht-item-color) 10%, transparent);
}

.dreht--layout-compact .dreht__title {
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

.dreht--layout-compact .dreht__description,
.dreht--layout-compact .dreht__description p {
  font-size: .94rem;
}

.dreht--layout-compact .dreht__year {
  margin-bottom: 7px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.dreht--layout-compact .dreht__item:nth-child(odd) .dreht__year,
.dreht--layout-compact .dreht__item:nth-child(odd) .dreht__content {
  grid-column: 1;
  text-align: right;
}

.dreht--layout-compact .dreht__item:nth-child(even) .dreht__year,
.dreht--layout-compact .dreht__item:nth-child(even) .dreht__content {
  grid-column: 3;
  text-align: left;
}

/* Compact uses a dense two-sided sequence around the central rail. */
@media (min-width: 768px) {
  .dreht--layout-compact .dreht__track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    column-gap: 0;
    row-gap: 28px;
    padding: 16px 0;
  }

  .dreht--layout-compact .dreht__track::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .dreht--layout-compact .dreht__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .dreht--layout-compact .dreht__item:nth-child(odd) {
    grid-column: 1;
    grid-row: auto;
    padding-right: 31px;
  }

  .dreht--layout-compact .dreht__item:nth-child(even) {
    grid-column: 3;
    grid-row: auto;
    padding-left: 31px;
    margin-top: 52px;
  }

  .dreht--layout-compact .dreht__content {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    padding: 16px 18px;
    text-align: left;
  }

  .dreht--layout-compact .dreht__year {
    position: static;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 12px 0 0;
    font-size: clamp(1.45rem, 2.7vw, 2.25rem);
    line-height: .95;
  }
  /* Keep the visual center of the year aligned with the milestone dot on tablet/compact. */
  .dreht--layout-compact .dreht__year,
  .dreht--layout-compact .dreht__content {
    transform: translateY(-10px);
  }

  .dreht--layout-compact .dreht__item:nth-child(odd) .dreht__year {
    grid-column: 1;
    text-align: right;
  }

  .dreht--layout-compact .dreht__item:nth-child(even) .dreht__year {
    grid-column: 1;
    text-align: left;
  }

  .dreht--layout-compact .dreht__item:nth-child(odd) .dreht__content,
  .dreht--layout-compact .dreht__item:nth-child(even) .dreht__content {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .dreht--layout-compact .dreht__connector {
    position: absolute;
    top: 0;
    bottom: 0;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    width: 2px;
    margin: 0;
    background: transparent;
  }

  .dreht--layout-compact .dreht__item:nth-child(odd) .dreht__connector {
    right: -32px;
    left: auto;
  }

  .dreht--layout-compact .dreht__item:nth-child(even) .dreht__connector {
    right: auto;
    left: -32px;
  }

  .dreht--layout-compact .dreht__connector::before {
    top: 22px;
    bottom: auto;
  }
}

/* One-side keeps every milestone on the right of a single continuous rail. */
.dreht--layout-one-side .dreht__track {
  gap: 20px 0;
  padding-left: 0;
}

.dreht--layout-one-side .dreht__track::before {
  left: 34px;
  width: 2px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dreht--layout-one-side .dreht__item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: auto;
  min-height: 0;
}

.dreht--layout-one-side .dreht__connector {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  justify-self: start;
  margin-left: 33px;
  width: 2px;
  /* The track pseudo-element is the only visible line; each connector supplies only its dot. */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dreht--layout-one-side .dreht__connector::after {
  display: none !important;
}

.dreht--layout-one-side .dreht__connector::before {
  top: 19px;
  bottom: auto;
  width: 15px;
  height: 15px;
  background: var(--dreht-item-color);
}

.dreht--layout-one-side .dreht__year {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  margin: 0 0 0 62px;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  letter-spacing: -.035em;
  line-height: .95;
  text-align: left;
}

.dreht--layout-one-side .dreht__content {
  grid-column: 2;
  grid-row: 1;
  padding: 20px 24px;
  border: 1px solid color-mix(in srgb, var(--dreht-item-color) 72%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--dreht-item-color) 8%, transparent);
}

.dreht--layout-one-side .dreht__title {
  margin-bottom: 9px;
}

@media (max-width: 767px) {
  .dreht--layout-compact .dreht__track {
    gap: 18px;
  }

  .dreht--layout-compact .dreht__item {
    grid-row: auto;
  }

  .dreht--layout-vertical .dreht__item,
  .dreht--layout-compact .dreht__item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .dreht--layout-vertical .dreht__track::before,
  .dreht--layout-compact .dreht__track::before {
    left: 18px;
  }

  .dreht--layout-vertical .dreht__connector,
  .dreht--layout-compact .dreht__connector {
    grid-column: 1;
  }

  .dreht--layout-vertical .dreht__year,
  .dreht--layout-vertical .dreht__content,
  .dreht--layout-compact .dreht__year,
  .dreht--layout-compact .dreht__content,
  .dreht--layout-vertical .dreht__item:nth-child(odd) .dreht__year,
  .dreht--layout-vertical .dreht__item:nth-child(odd) .dreht__content,
  .dreht--layout-compact .dreht__item:nth-child(odd) .dreht__year,
  .dreht--layout-compact .dreht__item:nth-child(odd) .dreht__content {
    grid-column: 2;
    text-align: left;
  }

  .dreht--layout-vertical .dreht__content,
  .dreht--layout-one-side .dreht__content {
    padding: 17px 18px;
  }

  .dreht--layout-one-side .dreht__track {
    gap: 18px 0;
    padding-left: 0;
  }

  .dreht--layout-one-side .dreht__track::before {
    left: 18px;
  }

  .dreht--layout-one-side .dreht__item {
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .dreht--layout-one-side .dreht__connector {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    justify-self: start;
    margin-left: 17px;
    width: 2px;
  }

  .dreht--layout-one-side .dreht__connector::before {
    top: 8px;
  }

  .dreht--layout-one-side .dreht__year {
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    text-align: left;
  }

  .dreht--layout-one-side .dreht__content {
    grid-column: 2;
    grid-row: 2;
    padding: 17px 18px;
    border: 1px solid color-mix(in srgb, var(--dreht-item-color) 72%, transparent);
    border-radius: 2px;
  }
}

/* The Timeline heading must span the whole tablet section before its text is centered. */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-16571 .elementor-element.elementor-element-5f99c05 {
    --width: 100% !important;
    width: 100% !important;
  }
}

