/* Interactive Hover Button, HorizonX · adapted for WoodySocial */
.ihb-button {
  --ihb-stage: transparent;
  --ihb-width: 158px;
  --ihb-height: 42px;
  --ihb-radius: 12px;
  --ihb-border: 1px;
  --ihb-font: 14px;
  --ihb-weight: 600;
  --ihb-surface: #d2fb55;
  --ihb-border-color: #c2e74b;
  --ihb-text: #182214;
  --ihb-fill: #1c311c;
  --ihb-hover-text: #e7ffae;
  --ihb-duration: 220ms;
  --ihb-travel: 48px;
  --ihb-nudge: 4px;
  --ihb-dot: 4px;
  --ihb-dot-x: 9%;
  --ihb-dot-y: 40%;
  --ihb-bloom: 1.8;
}
.ihb-button {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--ihb-width);
  height: var(--ihb-height);
  padding: 8px;
  border: var(--ihb-border) solid var(--ihb-border-color);
  border-radius: var(--ihb-radius);
  background: var(--ihb-surface);
  color: var(--ihb-text);
  font-family: var(
    --font-display,
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif
  );
  font-size: var(--ihb-font);
  font-weight: var(--ihb-weight);
  line-height: 1;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.ihb-fill {
  position: absolute;
  left: var(--ihb-dot-x);
  top: var(--ihb-dot-y);
  width: var(--ihb-dot);
  height: var(--ihb-dot);
  border-radius: 8px;
  background: var(--ihb-fill);
  transform: scale(1);
  transform-origin: center;
  transition:
    left var(--ihb-duration) ease,
    top var(--ihb-duration) ease,
    width var(--ihb-duration) ease,
    height var(--ihb-duration) ease,
    transform var(--ihb-duration) ease;
  pointer-events: none;
}
.ihb-rest {
  position: relative;
  z-index: 1;
  display: inline-block;
  white-space: nowrap;
  transform: translateX(var(--ihb-nudge));
  opacity: 1;
  transition:
    transform var(--ihb-duration) ease,
    opacity var(--ihb-duration) ease;
}
.ihb-swap {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: var(--ihb-hover-text);
  white-space: nowrap;
  transform: translateX(var(--ihb-travel));
  opacity: 0;
  transition:
    transform var(--ihb-duration) ease,
    opacity var(--ihb-duration) ease;
  pointer-events: none;
}
.ihb-arrow {
  width: 1.15004em;
  height: 1.15em;
  flex: 0 0 auto;
}
.ihb-button[data-state="auto"]:hover .ihb-fill,
.ihb-button[data-state="auto"]:focus-visible .ihb-fill,
.ihb-button[data-state="hover"] .ihb-fill {
  left: 0;
  top: 0;
  width: 100.00003%;
  height: 100%;
  transform: scale(var(--ihb-bloom));
}
.ihb-button[data-state="auto"]:hover .ihb-rest,
.ihb-button[data-state="auto"]:focus-visible .ihb-rest,
.ihb-button[data-state="hover"] .ihb-rest {
  transform: translateX(var(--ihb-travel));
  opacity: 0;
}
.ihb-button[data-state="auto"]:hover .ihb-swap,
.ihb-button[data-state="auto"]:focus-visible .ihb-swap,
.ihb-button[data-state="hover"] .ihb-swap {
  transform: translateX(calc(-1 * var(--ihb-nudge)));
  opacity: 1;
}
.ihb-button:focus-visible {
  outline: 2.00008px solid var(--ihb-fill);
  outline-offset: 3.00009px;
}
@media (prefers-reduced-motion: reduce) {
  .ihb-fill,
  .ihb-rest,
  .ihb-swap {
    transition: none !important;
  }
}
