/*!
 * VILLAGE v0.0.3 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
 */
@charset "UTF-8";

/* ¯¯¯¯¯¯¯¯¯ *\
  STEPPER
\* ˍˍˍˍˍˍˍˍˍ */
.village-stepper {
  --title-spacing: 0;
  --text-spacing: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.village-stepper__title {
  display: flex;
  flex-direction: column-reverse;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5rem;

  --title-spacing: 0 0 0.75rem 0;
  --text-spacing: 0 0 0.75rem 0;
  color: var(--text-title-grey);
}

.village-stepper__state {
  font-size: 0.875rem;
  line-height: 1.5rem;

  --title-spacing: 0 0 0.25rem 0;
  --text-spacing: 0 0 0.25rem 0;
  font-weight: 400;
  color: var(--text-mention-grey);
}

.village-stepper__state::after {
  content: "\a";
  white-space: pre;
  line-height: 2rem;
}

.village-stepper__details {
  font-size: 0.75rem;
  line-height: 1.25rem;
  margin-top: 0.75rem;
  color: var(--text-mention-grey);
}

.village-stepper .village-stepper__steps[data-village-steps="2"][data-village-current-step="2"] + .village-stepper__details,
.village-stepper .village-stepper__steps[data-village-steps="3"][data-village-current-step="3"] + .village-stepper__details,
.village-stepper .village-stepper__steps[data-village-steps="4"][data-village-current-step="4"] + .village-stepper__details,
.village-stepper .village-stepper__steps[data-village-steps="5"][data-village-current-step="5"] + .village-stepper__details,
.village-stepper .village-stepper__steps[data-village-steps="6"][data-village-current-step="6"] + .village-stepper__details,
.village-stepper .village-stepper__steps[data-village-steps="7"][data-village-current-step="7"] + .village-stepper__details,
.village-stepper .village-stepper__steps[data-village-steps="8"][data-village-current-step="8"] + .village-stepper__details {
  display: none;
}

.village-stepper__steps {
  --stepper-size: 0.5rem;
  --default-outer: calc((100% + var(--stepper-size)) / var(--steps));
  --default-inner: calc(var(--default-outer) - var(--stepper-size));
  --active-outer: calc((100% + var(--stepper-size)) / var(--current-step));
  --active-inner: calc(var(--active-outer) - var(--stepper-size));
  width: 100%;
  height: var(--stepper-size);
  background-repeat: no-repeat;
  background-size: calc((100% + var(--stepper-size)) * var(--current-step) / var(--steps) - var(--stepper-size)) 100%, 100% 100%;
  background-position: 0 0, 0 0;

  --current-step: 0;
  background-image: repeating-linear-gradient(to right, var(--background-active-village-primary) 0, var(--background-active-village-primary) var(--active-inner), transparent var(--active-inner), transparent var(--active-outer)), repeating-linear-gradient(to right, var(--background-contrast-grey) 0, var(--background-contrast-grey) var(--default-inner), transparent var(--default-inner), transparent var(--default-outer));
}

.village-stepper__steps[data-village-steps="2"] {
  --steps: 2;
  --step-width: calc(100% / 2);
}

.village-stepper__steps[data-village-steps="3"] {
  --steps: 3;
  --step-width: calc(100% / 3);
}

.village-stepper__steps[data-village-steps="4"] {
  --steps: 4;
  --step-width: calc(100% / 4);
}

.village-stepper__steps[data-village-steps="5"] {
  --steps: 5;
  --step-width: calc(100% / 5);
}

.village-stepper__steps[data-village-steps="6"] {
  --steps: 6;
  --step-width: calc(100% / 6);
}

.village-stepper__steps[data-village-steps="7"] {
  --steps: 7;
  --step-width: calc(100% / 7);
}

.village-stepper__steps[data-village-steps="8"] {
  --steps: 8;
  --step-width: calc(100% / 8);
}

.village-stepper__steps[data-village-current-step="1"] {
  --current-step: 1;
}

.village-stepper__steps[data-village-current-step="2"] {
  --current-step: 2;
}

.village-stepper__steps[data-village-current-step="3"] {
  --current-step: 3;
}

.village-stepper__steps[data-village-current-step="4"] {
  --current-step: 4;
}

.village-stepper__steps[data-village-current-step="5"] {
  --current-step: 5;
}

.village-stepper__steps[data-village-current-step="6"] {
  --current-step: 6;
}

.village-stepper__steps[data-village-current-step="7"] {
  --current-step: 7;
}

.village-stepper__steps[data-village-current-step="8"] {
  --current-step: 8;
}
@media (min-width: 36em) {
  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */
  .village-stepper__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}
@media (min-width: 62em) {
  /*! media lg */
}
@media (min-width: 78em) {
  /*! media xl */
}
