/* Web-only chapter controls plus restrained in-book ownership furniture. */
.chapter-web-nav {
  position: absolute;
  top: 4mm;
  right: 8mm;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .05em;
}

.chapter-web-nav--cover { top: 18mm; }

.chapter-web-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border: 1px solid rgba(43, 76, 62, .2);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 5px 16px rgba(28, 52, 43, .07);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chapter-web-nav a:last-child {
  color: var(--matcha);
  border-color: rgba(43, 76, 62, .32);
}

.chapter-web-nav a:hover,
.chapter-web-nav a:focus-visible {
  color: var(--matcha);
  border-color: rgba(43, 76, 62, .48);
  background: rgba(255, 255, 255, .96);
  outline: none;
}

.chapter-copyright {
  position: absolute;
  left: 50%;
  bottom: 3.5mm;
  z-index: 4;
  color: rgba(43, 76, 62, .48);
  font-family: var(--f-mono);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (max-width: 760px) {
  .chapter-web-nav {
    top: 5px;
    right: 6px;
    gap: 4px;
    font-size: 7px;
  }

  .chapter-web-nav--cover { top: 18mm; }
  .chapter-web-nav a { min-height: 23px; padding: 4px 7px; }
}

@media print {
  .chapter-web-nav { display: none !important; }
  .chapter-copyright { opacity: .72; }
}
