/* From Uiverse.io by doniaskima (btn-17), with theme-aware colors. */
html body .site-small-button {
  --ssb-ink: var(--ink, #422a38);
  --ssb-paper: var(--surface, var(--paper, var(--panel, #fff9fc)));
  --ssb-accent: var(--rose, var(--accent, #945575));
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 36px;
  max-width: 100%;
  padding: 6px 16px;
  border: 2px solid var(--ssb-accent);
  border-radius: 999px;
  background: var(--ssb-paper);
  color: var(--ssb-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
html body .site-small-button::before,
html body .site-small-button::after {
  --skew: .2;
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 102%;
  left: -60%;
  top: -104%;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--ssb-accent) 24%, var(--ssb-paper));
  transform: skew(30deg) translateY(var(--ssb-progress, 0%));
  transition: transform .2s ease;
}
html body .site-small-button::after { left: 60%; top: 102%; }
.site-small-button .ssb-text-container { position: relative; display: block; overflow: hidden; pointer-events: none; }
.site-small-button .ssb-text { position: relative; display: block; }
html body .site-small-button:disabled,
html body .site-small-button[aria-disabled="true"] { opacity: .5; cursor: default; }
html body .site-small-button[hidden] { display: none !important; }
html body .site-small-button:focus-visible { outline: 3px solid var(--ssb-accent); outline-offset: 3px; }
html body .site-small-button:not(:disabled):not([aria-disabled="true"]):is(:focus-visible,:active)::before { --ssb-progress: 100%; }
html body .site-small-button:not(:disabled):not([aria-disabled="true"]):is(:focus-visible,:active)::after { --ssb-progress: -102%; }
@media (hover:hover) and (pointer:fine) {
  html body .site-small-button:not(:disabled):not([aria-disabled="true"]):hover::before { --ssb-progress: 100%; }
  html body .site-small-button:not(:disabled):not([aria-disabled="true"]):hover::after { --ssb-progress: -102%; }
  .site-small-button:not(:disabled):not([aria-disabled="true"]):hover .ssb-text { animation: ssb-move-up .3s forwards; }
}
@keyframes ssb-move-up { 0%,100% {transform:translateY(0)} 50% {transform:translateY(80%)} 51% {transform:translateY(-80%)} }
@media (pointer:coarse), (max-width:640px) { html body .site-small-button { min-height: 44px; padding: 8px 14px; } }
@media (prefers-reduced-motion:reduce) {
  html body .site-small-button::before, html body .site-small-button::after { transition: none; }
  html body .site-small-button .ssb-text { animation: none !important; }
}
