.buttonSystem[data-astro-cid-qixvb22m] {
  position: relative;
  display: flex;
  flex-direction: column;
  --buttonRound-color-text: currentColor;
  --buttonRound-color-outline: transparent;
  --buttonSystem-color-lines: var(--color-main-0);
  --buttonSystem-gapY: var(--layout-space-200);
  --buttonSystem-overlap: .12;
  ---groups-overlap: calc(33.3% * -1 * var(--buttonSystem-overlap));
}

@media (width <= 1000px) and (width > 600px) {
  .buttonSystem[data-astro-cid-qixvb22m] {
    ---groups-overlap: calc(50% * -1 * var(--buttonSystem-overlap));
  }
}

@media (width <= 600px) {
  .buttonSystem[data-astro-cid-qixvb22m] {
    gap: var(--layout-space-400);
  }
}
.buttonSystem-planet[data-astro-cid-e64t54pn] {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;
  width: 100%;
  position: relative;

  &:not(:first-child) {
    margin-top: var(---groups-overlap);
  }

  &:before, &:after {
    grid-column: 2 / span 1;
    position: absolute;
    content: "";
    inset: calc(-.5 * var(--buttonSystem-gapY));
    margin-inline: auto;
    width: var(--line-width-100);
    background-color: var(--buttonSystem-color-lines);
    z-index: -1;
  }

  &:before {
    grid-row: 1 / span 1;
  }

  &:after {
    grid-row: 2 / span 2;
    position: absolute;
  }

  &:first-child:before {
    display: none;
  }

  &:last-child:after {
    display: none;
  }
}

.buttonSystem-button[data-astro-cid-e64t54pn] {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: var(--font-size-200);
  grid-column: 2;
  grid-row: span 2;

  &:before {
    content: "";
    position: absolute;
    inset: 0;
    border: var(--line-width-100) solid var(--buttonSystem-color-lines);
    border-radius: 50%;
  }

  & [data-as-button-round] {
    width: 60%;
  }
}

.buttonSystem-text[data-astro-cid-e64t54pn] {
  margin-top: 50%;
  position: relative;
  grid-row: span 3;
  padding-top: .5lh;
  display: flex;
  flex-direction: column;
  gap: 1lh;

  &:before {
    position: absolute;
    content: "";
    height: var(--line-width-100);
    width: 150%;
    top: 0;
    left: 0;
    background-color: var(--buttonSystem-color-lines);
  }
}

@media (width > 1000px) {
  .buttonSystem-planet[data-astro-cid-e64t54pn]:nth-child(2n) .buttonSystem-text[data-astro-cid-e64t54pn] {
    grid-column: 3;
    padding-left: .5em;

    &:before {
      left: unset;
      right: 0;
    }
  }
}

@media (width <= 1000px) and (width > 600px) {
  .buttonSystem-planet[data-astro-cid-e64t54pn] {
    grid-template-columns: repeat(2, 1fr);
    --buttonSystem-button-offsetX: -40%;
  }

  .buttonSystem-button[data-astro-cid-e64t54pn] {
    grid-column: 1;
    transform: translateX(var(--buttonSystem-button-offsetX));
  }

  .buttonSystem-planet[data-astro-cid-e64t54pn]:after, .buttonSystem-planet[data-astro-cid-e64t54pn]:before {
    grid-column: 1 / span 1;
    margin-inline: unset;
    right: unset;
    left: calc(50% + var(--buttonSystem-button-offsetX));
  }

  .buttonSystem-text[data-astro-cid-e64t54pn] {
    grid-column: 2;
    width: calc(100% + var(--buttonSystem-button-offsetX) * -1);
    margin-left: calc(var(--buttonSystem-button-offsetX));

    &:before {
      left: -100%;
      width: 200%;
    }
  }
}

@media (width <= 600px) {
  .buttonSystem-planet[data-astro-cid-e64t54pn] {
    ---gap: var(--layout-space-300);
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: var(---gap);

    &:not(:first-child) {
      margin-top: unset;
    }

    &:after, &:before {
      content: unset;
    }
  }

  .buttonSystem-button[data-astro-cid-e64t54pn] {
    grid-column: 1;
    grid-row: 1;
    width: fit-content;
    position: relative;

    &:before {
      inset: -10%;
    }

    &:after {
      background-color: var(--buttonSystem-color-lines);
      width: var(--line-width-100);
      border: unset;
      top: 100%;
      height: var(---gap);
      content: "";
      margin-inline: auto;
      position: absolute;
    }

    & [data-as-button-round] {
      width: 12ch;
    }
  }

  .buttonSystem-text[data-astro-cid-e64t54pn] {
    grid-column: 1;
    grid-row: 2;
    margin-top: unset;

    &:before {
      content: unset;
    }
  }
}
