.book-reader-nav {
  margin: 1.25rem 0 1.6rem;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 14px;
  background: #f8fafc;
}

.book-reader-nav--landing {
  margin-top: 1.4rem;
}

.book-reader-resume {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(57, 120, 197, 0.16);
  border-radius: 11px;
  background: #fff;
}

.book-reader-resume__kicker {
  color: #6f7b86;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-reader-resume__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #27323c;
  text-decoration: none;
}

.book-reader-resume__link:hover {
  color: var(--accent, #3978c5);
}

.book-reader-resume__link strong {
  min-width: 0;
  line-height: 1.35;
}

.book-reader-resume__link span {
  flex: 0 0 auto;
  color: var(--accent, #3978c5);
  font-size: 0.86rem;
  font-weight: 800;
}

.book-reader-resume.has-progress {
  border-color: rgba(57, 120, 197, 0.28);
  box-shadow: 0 8px 22px rgba(57, 120, 197, 0.08);
}

.book-reader-nav__context,
.book-reader-nav__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.book-reader-nav__context {
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
}

.book-reader-nav__context a {
  font-weight: 800;
  text-decoration: none;
}

.book-reader-nav__context span,
.book-reader-nav__count {
  color: #75818c;
  font-size: 0.8rem;
  font-weight: 700;
}

.book-reader-nav__header {
  margin-bottom: 0.6rem;
}

.book-reader-nav__header .books-hub__eyebrow {
  margin-bottom: 0;
}

.book-reader-nav__chapters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.35rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.book-reader-nav__chapter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #34414d;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.book-reader-nav__chapter:hover {
  border-color: rgba(57, 120, 197, 0.45);
  color: var(--accent, #3978c5);
}

.book-reader-nav__chapter.is-current {
  border-color: var(--accent, #3978c5);
  background: var(--accent, #3978c5);
  color: #fff;
}

.book-reader-nav__chapter.is-last-read:not(.is-current) {
  border-color: rgba(57, 120, 197, 0.38);
  background: rgba(57, 120, 197, 0.08);
  color: var(--accent, #3978c5);
}

@media (max-width: 640px) {
  .book-reader-nav {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding: 0.9rem;
  }

  .book-reader-resume__link,
  .book-reader-nav__context,
  .book-reader-nav__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .book-reader-resume__link span {
    flex: initial;
  }

  .book-reader-nav__chapters {
    margin-right: -0.9rem;
    padding-right: 0.9rem;
  }
}
