/* Monochrome root sidebar icons for HonKit summary chapters */
.book-summary ul.summary > li.chapter > a::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  background-color: currentColor;
  opacity: 0.9;
}

/* Home */
.book-summary ul.summary > li.chapter:nth-child(1) > a::before {
  -webkit-mask: url('../_icons/home.svg') no-repeat center / contain;
  mask: url('../_icons/home.svg') no-repeat center / contain;
}

/* Local Schema */
.book-summary ul.summary > li.chapter:nth-child(2) > a::before {
  -webkit-mask: url('../_icons/local.svg') no-repeat center / contain;
  mask: url('../_icons/local.svg') no-repeat center / contain;
}

/* Remote Schema */
.book-summary ul.summary > li.chapter:nth-child(3) > a::before {
  -webkit-mask: url('../_icons/remote.svg') no-repeat center / contain;
  mask: url('../_icons/remote.svg') no-repeat center / contain;
}

/* Right floating TOC panel generated by beforeComposePageTypeHook */
.markdown-section .on-this-page {
  float: right;
  position: sticky;
  top: 84px;
  width: 220px;
  margin: 0.2rem 0 1rem 1.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  background: #fcfcfd;
  box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.45);
}

.markdown-section .on-this-page__title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5b6678;
}

.markdown-section .on-this-page__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
  line-height: 1.35;
}

.markdown-section .on-this-page__list li {
  margin: 0;
  padding: 0;
}

.markdown-section .on-this-page__list a {
  display: block;
  padding: 0.28rem 0.35rem;
  border-radius: 6px;
  color: #2f3a4c;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.markdown-section .on-this-page__list a:hover {
  background: #f1f4f8;
  color: #1d4f91;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .markdown-section .on-this-page {
    float: none;
    position: static;
    width: auto;
    margin: 0 0 1rem;
  }
}

/* Render field names and field types as code-like links in metadata rows */
.markdown-section h4 > a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.94em;
  font-weight: 600;
  color: #1f3a5f;
  background: #f6f8fb;
  border: 1px solid #d7deea;
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  text-decoration: none;
}

.markdown-section h4 > a:hover {
  background: #edf2fb;
  border-color: #c6d2e7;
  color: #16345b;
  text-decoration: none;
}
