/* ==========================================================================
   baskt-ca.css - the contract plate under the index hero lead
   --------------------------------------------------------------------------
   Markup in index.html (a <template>), behaviour in inject/baskt-ca.js. There
   is no plate until BASKT_CA holds an address; then it shows the address,
   click to copy, with a "Copied" flash in .is-copied. Black glass, a chrome
   hairline, cyan #3ABEDD only on interaction. No filters or blend modes.
   ========================================================================== */
.baskt-ca{
  display:inline-flex; align-items:center; gap:10px;
  /* 18px above it: the hero copy block is a column flex with a 16px gap, plus 2px here */
  box-sizing:border-box; height:34px; max-width:100%; margin:2px 0 0; padding:0 14px;
  border-radius:999px; border:1px solid rgba(255,255,255,.14);
  /* black glass: the white .04 sheen over a dark base, so it reads on the photo */
  background:linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)), rgba(6,8,10,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 26px -14px rgba(0,0,0,.85);
  color:rgba(255,255,255,.78); font:inherit; line-height:1; white-space:nowrap; text-align:left;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:border-color .2s ease, background-color .2s ease, box-shadow .25s ease, color .2s ease;
}
.baskt-ca-k{
  flex:0 0 auto; padding-right:10px; border-right:1px solid rgba(255,255,255,.14);
  font:800 9.5px/1 var(--brand-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  letter-spacing:.2em; color:rgba(255,255,255,.52);
}
.baskt-ca-v{
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font:600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing:.01em;
}
.baskt-ca-ic{ flex:0 0 auto; display:inline-flex; width:14px; height:14px; opacity:.55; transition:opacity .2s ease; }
.baskt-ca-ic svg{ display:block; width:14px; height:14px; }
/* a plate written straight into markup stays out of the layout until there is an address */
.baskt-ca[hidden]{ display:none; }

/* live: cyan while "Copied" shows, and on hover where there is a real
   pointer (on touch screens a tap must not leave the plate stuck in cyan) */
.baskt-ca.is-copied{
  border-color:rgba(58,190,221,.72); color:#3ABEDD;
  background:linear-gradient(rgba(58,190,221,.08), rgba(58,190,221,.08)), rgba(6,8,10,.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(58,190,221,.12), 0 0 22px -6px rgba(58,190,221,.7);
}
.baskt-ca.is-copied .baskt-ca-ic{ opacity:1; }
@media (hover:hover){
  .baskt-ca:hover{
    border-color:rgba(58,190,221,.72); color:#3ABEDD;
    background:linear-gradient(rgba(58,190,221,.08), rgba(58,190,221,.08)), rgba(6,8,10,.7);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(58,190,221,.12), 0 0 22px -6px rgba(58,190,221,.7);
  }
  .baskt-ca:hover .baskt-ca-ic{ opacity:1; }
}
.baskt-ca:focus-visible{ outline:2px solid #3ABEDD; outline-offset:3px; }
/* "Copied": same box (the script pins its width), the word centred in the
   address slot, the copy icon drawn as a tick */
.baskt-ca.is-copied .baskt-ca-v{ flex:1 1 auto; text-align:center; letter-spacing:.08em; }
.baskt-ca.is-copied .baskt-ca-ic{ align-items:center; justify-content:center; }
.baskt-ca.is-copied .baskt-ca-ic svg{ display:none; }
.baskt-ca.is-copied .baskt-ca-ic::after{
  content:""; width:9px; height:5px; margin-top:-3px;
  border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg);
}

@media (prefers-reduced-motion:reduce){ .baskt-ca{ transition:none; } }

@media (max-width:560px){
  .baskt-ca{ height:32px; gap:8px; padding:0 12px; margin-top:0; }
  .baskt-ca-k{ padding-right:8px; }
  .baskt-ca-v{ font-size:11.5px; }
}
