/*
 * Yubeen Site Assets — Global Back to Top
 * Version target: 0.27.40
 *
 * B2 — Yubeen Precision Tab
 * - Fixed to the right viewport edge.
 * - Intentionally quiet: no label, no oversized FAB treatment.
 * - Visibility is owned by back-to-top.js.
 */

.ybn-back-to-top {
  position: fixed;
  z-index: 700;
  top: 73%;
  right: 0;

  width: 44px;
  height: 62px;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px 0 0 16px;

  background: rgba(15, 18, 18, 0.90);
  color: #ffffff;

  box-shadow: -6px 8px 22px rgba(0, 0, 0, 0.12);

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(8px, -50%);

  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 220ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.ybn-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.ybn-back-to-top:hover {
  background: rgba(11, 14, 14, 0.96);
  box-shadow: -8px 10px 26px rgba(0, 0, 0, 0.16);
}

.ybn-back-to-top:active {
  transform: translate(0, -50%) scale(0.96);
}

.ybn-back-to-top:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: -5px;
}

.ybn-back-to-top__icon {
  width: 24px;
  height: 24px;

  display: block;
  overflow: visible;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;

  transition: transform 180ms ease;
}

.ybn-back-to-top:hover .ybn-back-to-top__icon {
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .ybn-back-to-top {
    top: 74%;
    width: 40px;
    height: 56px;
    border-radius: 14px 0 0 14px;
    box-shadow: -5px 7px 18px rgba(0, 0, 0, 0.11);
  }

  .ybn-back-to-top__icon {
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ybn-back-to-top,
  .ybn-back-to-top__icon {
    transition: none !important;
  }
}

@media print {
  .ybn-back-to-top {
    display: none !important;
  }
}
