.chapter__book-toc .view-content {
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
  justify-content: center;
  gap: var(--anrt-spacing-100);
  align-items: center;
  margin-bottom: var(--anrt-spacing-300);
}

.chapter__book-toc .views-row {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--anrt-color-tertiary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  --icon-color: var(--anrt-color-tertiary-a);
  border-radius: 100%;
  position: relative;

  &:is(:hover, :focus, :focus-within) {
    --icon-color: var(--anrt-color-primary);
  }
}

.chapter__book-toc .views-row:before {
  position: absolute;
  content: '';
  width: var(--anrt-spacing-100);
  right: 100%;
  top: 50%;
  height: 1px;
  background-color: var(--anrt-color-tertiary-20);
}

.chapter__book-toc .views-row:first-child::before {
  display: none;
}

.chapter__book-toc .views-row.chapter--read {
  background-color: var(--anrt-color-primary);
  --icon-color: var(--anrt-color-white);
}

.chapter__book-toc .views-row.chapter--read::before {
  background-color: var(--anrt-color-primary);
}

.chapter__book-toc .views-field-title a {
  content: '';
  inset: 0;
  position: absolute;
}

.chapter__book-toc .views-field-field-icon {
  display: none;
}

.chapter__book-toc .views-field-field-icon svg {
  width: 1.5rem;
  height: auto;
}

.chapter__header {
  position: relative;
}

.chapter__icon {
  /* position: absolute; */
  right: 100%;
  top: 0;
  /* margin-right: var(--anrt-spacing-100); */
  --icon-color: var(--anrt-color-primary-b);
  width: 4rem;

}

/* arrows */
.anrt-book-block {
  display: flex;
  gap: var(--anrt-spacing-100);
  flex-direction: column;
}

.book-arrow {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--anrt-spacing-100);
  width: 100%;
}

.book-arrow--next {
  margin-left: auto;
}

.book-arrow__arrow {
  width: 1rem;
  --icon-color: var(--anrt-color-text);
  display: none;
}


.book-arrow__arrow svg {
  width: 100%;
  height: auto;
}

.book-arrow__arrow svg path {
  fill: var(--icon-color);
}

.book-arrow__chapter {
  flex: 1;
  background-color: rgba(255, 255, 255, .5);
  padding: var(--anrt-spacing-100);
  border-radius: .5rem;
  display: flex;
  gap: var(--anrt-spacing-100);
}

.book-arrow__chapter__icon {
  width: 4rem;
  display: none;
}

.book-arrow__chapter__text>strong {
  font-weight: 400;
  /* font-size: var(--anrt-font-size-small); */
}

.book-arrow__chapter__title {
  margin: 0;
  font-weight: 700;
}

.book-arrow__chapter__title a {
  color: inherit;
  text-decoration: none;
}

.book-arrow:hover .book-arrow__chapter {
  background-color: var(--anrt-color-white);
}

.book-arrow:hover .book-arrow__arrow {
  --icon-color: var(--anrt-color-primary-a);
}

@media screen and (min-width: 32rem) {

  .chapter__book-toc .view-content {
    gap: var(--anrt-spacing-200);
  }

  .chapter__book-toc .views-row {
    width: 3rem;
    height: 3rem;
  }

  .chapter__book-toc .views-row:before {
    width: var(--anrt-spacing-200);
  }

  .chapter__book-toc .views-field-field-icon {
    display: block;
  }

  .book-arrow__chapter__icon {
    display: block;
  }

  .book-arrow {
    width: calc(100% - var(--anrt-spacing-150));
  }

  .book-arrow__arrow {
    display: block;
  }
}

@media screen and (min-width: 48rem) {
  .anrt-book-block {
    flex-direction: row;
  }
}

@media screen and (min-width: 64rem) {

  .chapter__icon {
    position: absolute;
  }

  .chapter__book-toc .view-content {
    gap: var(--anrt-spacing-400);
  }

  .chapter__book-toc .views-row {
    width: 4rem;
    height: 4rem;
  }

  .chapter__book-toc .views-field-field-icon svg {
    width: 2rem;
  }

  .chapter__book-toc .views-row:before {
    width: var(--anrt-spacing-400);
  }

  .book-arrow {
    width: calc(50% - var(--anrt-spacing-050));
  }
}
