
.dock {
  position: fixed;
  left: clamp(14px, 1.6vw, 24px);
  bottom: clamp(18px, 2.4vh, 30px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(247, 245, 241, .92);
  border: 1px solid rgba(29, 29, 31, .10);
  box-shadow: 0 1px 2px rgba(29, 29, 31, .04), 0 18px 34px -26px rgba(29, 29, 31, .5);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  backdrop-filter: saturate(120%) blur(6px);
}
.dock-sep {
  height: 1px;
  margin: 3px 6px;
  background: rgba(29, 29, 31, .10);
}
.dock-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b4740;
  cursor: pointer;
  padding: 0;
  transition: background .26s cubic-bezier(.16, 1, .3, 1), color .26s cubic-bezier(.16, 1, .3, 1),
              transform .26s cubic-bezier(.16, 1, .3, 1);
}
.dock-btn svg { display: block; width: 19px; height: 19px; }
.dock-btn:hover,
.dock-btn:focus-visible {
  background: rgba(29, 29, 31, .06);
  color: #16150f;
  transform: translateY(-1px);
  outline: none;
}
.dock-btn:focus-visible { box-shadow: 0 0 0 2px rgba(138, 111, 67, .55); }
.dock-btn.is-active {
  background: #1d1d1f;
  color: #f7f5f1;
}
.dock-btn.is-active:hover { background: #000; color: #fff; }


.dock-tip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-6px, -50%);
  padding: 5px 10px;
  border-radius: 8px;
  background: #1d1d1f;
  color: #f7f5f1;
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}
.dock-btn:hover .dock-tip,
.dock-btn:focus-visible .dock-tip {
  opacity: 1;
  transform: translate(0, -50%);
}


@media (min-width: 961px) {
  header#siteHead nav#nav,
  header.site-head nav.nav {
    display: none !important;
  }
}


@media (max-width: 960px) {
  .dock {
    left: 50%;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    flex-direction: row;
    gap: 2px;
    padding: 6px;
    border-radius: 999px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dock::-webkit-scrollbar { display: none; }
  .dock-sep { width: 1px; height: auto; margin: 6px 3px; }
  .dock-btn { width: 38px; height: 38px; }
  .dock-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dock-btn, .dock-tip { transition: none; }
}


body { padding-bottom: 0; }
@media (min-width: 961px) {
  body:has(.dock) footer.site-foot { padding-bottom: max(34px, calc(24px + 40px)); }
}

@media (min-width: 961px) {
  header#siteHead .head-actions,
  header.site-head .head-actions {
    margin-left: auto !important;
  }
  header#siteHead .head-inner,
  header.site-head .head-inner {
    gap: 0 !important;
  }
}
@media (max-width: 960px) {
  body { padding-bottom: 64px; }
}
