/* TechButton by Techzaa (Envato item GTSVFMY), example 2: arrow / bottom-fill.
 * Scoped adaptation for Trashy Treasures Website Prototype.
 * Provenance and separate project license: evidence/TECHBUTTON-UPDATE.md.
 * Original utility framework: Tailwind CSS v3.3.3 | MIT License | https://tailwindcss.com
 * No framework reset, JavaScript, icon font, or external font is imported.
 */
.techbutton {
  --tb-bg: var(--ink);
  --tb-fg: var(--paper);
  --tb-fill: var(--pink);
  --tb-active: var(--paper);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 50px;
  padding: 14px 48px 14px 20px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--tb-bg);
  border-radius: 2px;
  background: var(--tb-bg);
  color: var(--tb-fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .18s ease;
  -webkit-tap-highlight-color: #b4266033;
}
.techbutton > span { margin: 0; }
.techbutton__fill {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 3px;
  background: var(--tb-fill);
  transition: height .18s ease;
}
.techbutton__label {
  position: relative;
  display: block;
  transition: transform .18s ease;
}
.techbutton__arrow {
  position: absolute;
  display: flex;
  align-items: center;
  top: 0;
  bottom: 0;
  width: 18px;
  transition: transform .2s ease, opacity .2s ease;
}
.techbutton__arrow svg { display: block; width: 18px; height: 18px; }
.techbutton__arrow--out { right: 16px; }
.techbutton__arrow--in { left: 12px; transform: translateX(-44px); opacity: 0; }
.techbutton.cream {
  --tb-bg: var(--paper);
  --tb-fg: var(--ink);
  --tb-fill: var(--ink);
  --tb-active: var(--paper);
}
.nav-visit.techbutton { font-size: 13px; min-height: 46px; }
.techbutton:focus-visible,
.techbutton:active { color: var(--tb-active); transform: none; }
.techbutton:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }
.visit .techbutton:focus-visible { outline-color: var(--paper); }
.techbutton:is(:focus-visible, :active) .techbutton__fill { height: 100%; }
.techbutton:is(:focus-visible, :active) .techbutton__arrow--out { transform: translateX(44px); opacity: 0; }
.techbutton:is(:focus-visible, :active) .techbutton__arrow--in { transform: none; opacity: 1; }
.techbutton:is(:focus-visible, :active) .techbutton__label { transform: translateX(18px); }
@media (hover: hover) and (pointer: fine) {
  .techbutton:hover { color: var(--tb-active); transform: none; }
  .techbutton:hover .techbutton__fill { height: 100%; }
  .techbutton:hover .techbutton__arrow--out { transform: translateX(44px); opacity: 0; }
  .techbutton:hover .techbutton__arrow--in { transform: none; opacity: 1; }
  .techbutton:hover .techbutton__label { transform: translateX(18px); }
}
@media (max-width: 760px) {
  .nav-visit.techbutton { font-size: 12px; padding: 12px 37px 12px 12px; }
  .hero-actions .techbutton { font-size: 13px; padding: 13px 40px 13px 16px; }
  .mobile-bar .techbutton {
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    padding: 15px 32px 15px 14px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    background: var(--tb-bg);
    color: var(--tb-fg);
  }
  .mobile-bar .techbutton:last-child {
    --tb-bg: var(--yellow);
    --tb-fg: var(--ink);
    --tb-fill: var(--ink);
    --tb-active: var(--paper);
  }
  .mobile-bar .techbutton__arrow--out { right: 10px; }
  .mobile-bar .techbutton__arrow--in { left: 7px; }
  .mobile-bar .techbutton:is(:focus-visible, :active) { color: var(--tb-active); }
  .mobile-bar .techbutton:focus-visible { outline-color: var(--paper); outline-offset: -5px; }
  .mobile-bar .techbutton:last-child:focus-visible { outline-color: var(--paper); }
  .nav-visit.techbutton .techbutton__arrow--out { right: 10px; }
  .nav-visit.techbutton .techbutton__arrow--in { left: 7px; }
}
@media (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .mobile-bar .techbutton:hover { color: var(--tb-active); }
}
@media (prefers-reduced-motion: reduce) {
  .techbutton, .techbutton * { transition: none !important; animation: none !important; }
  .techbutton .techbutton__label,
  .techbutton:is(:hover, :focus-visible, :active) .techbutton__label { transform: none; }
  .techbutton .techbutton__arrow--in { display: none; }
  .techbutton:is(:hover, :focus-visible, :active) .techbutton__arrow--out { transform: none; opacity: 1; }
}
