/* Hide "本书使用 HonKit 发布" footer link + its preceding divider */
.book-summary ul.summary li:has(> a.gitbook-link),
.book-summary ul.summary li.divider:has(+ li > a.gitbook-link) {
  display: none;
}

.book-summary {
  padding-top: 96px;
  position: relative;
}

.book-summary::before {
  content: "";
  display: block;
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 64px;
  background-image: url("/assets/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Header brand: replace title text area with logo + name */
.book-header h1 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.book-header h1 a::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url("/assets/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}
