/* Fixed scroll-to-top control — sitewide */
.zyemix-scroll-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9998;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(34, 42, 53, 0.18);
  border-radius: 4px;
  background: #222a35;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.zyemix-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.zyemix-scroll-top:hover,
.zyemix-scroll-top:focus-visible {
  background: #409eff;
  border-color: #409eff;
  outline: none;
}

.zyemix-scroll-top svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  fill: currentColor;
}

@media (max-width: 767px) {
  .zyemix-scroll-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* SEO H1 fallback when page had no native heading */
.zyemix-page-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
