/* Keep one clear connection shortcut available while visitors scroll. */
body .reference-sticky.connection-shortcut{
 visibility:visible!important;
 opacity:1!important;
 pointer-events:auto!important;
 position:fixed;
 bottom:calc(16px + env(safe-area-inset-bottom,0px));
 left:50%;
 right:auto;
 --connection-shift:-50%;
 transform:translateX(var(--connection-shift));
 z-index:40;
 display:flex;
 align-items:center;
 justify-content:center;
 min-height:54px;
 max-width:calc(100% - 180px);
 padding:13px 25px;
 border:2px solid #ffe7a4;
 border-radius:999px;
 background:#efbd42;
 color:#102e46;
 font-size:15px;
 font-weight:800;
 line-height:1.4;
 text-align:center;
 text-shadow:none;
 box-shadow:0 3px 0 #ad7b20,0 7px 20px #16374b30;
 animation:connection-gold-flicker 2.6s ease-in-out infinite;
 transition:background .2s,box-shadow .2s;
}
body .reference-sticky.connection-shortcut:hover{
 border-color:#fff4c8;
 color:#102e46;
 box-shadow:0 3px 0 #ad7b20,0 9px 25px #16374b40;
}
body .reference-sticky.connection-shortcut:active{
 animation:none;
 transform:translateX(var(--connection-shift));
 background:#ffe69d;
}
body .reference-sticky.connection-shortcut:focus-visible{
 outline:3px solid #12364f;
 outline-offset:4px;
 box-shadow:0 0 0 4px #fff,0 3px 0 #ad7b20;
 animation:none;
 transform:translateX(var(--connection-shift));
}
/* Two distinct light beats, followed by a pause; the text stays fully visible. */
@keyframes connection-gold-flicker{
 0%,18%,46%,100%{
  background-color:#efbd42;
  box-shadow:0 3px 0 #ad7b20,0 7px 20px #16374b30,0 0 0 0 #efbd4200;
  transform:translateX(var(--connection-shift)) translateY(0) scale(1);
 }
 8%,36%{
  background-color:#fff2b4;
  box-shadow:0 3px 0 #ad7b20,0 0 26px #ffd34dbb,0 0 0 8px #ffd34d42;
  transform:translateX(var(--connection-shift)) translateY(-3px) scale(1.02);
 }
}
@media(max-width:767px){
 body .reference-sticky.connection-shortcut{
  left:12px;
  right:80px;
  bottom:calc(14px + env(safe-area-inset-bottom,0px));
  --connection-shift:0px;
  transform:translateX(var(--connection-shift));
  max-width:none;
  min-height:50px;
  padding:10px 12px;
  font-size:12px;
 }
}
@media(prefers-reduced-motion:reduce){
 body .reference-sticky.connection-shortcut{animation:none;transition:none;transform:translateX(var(--connection-shift));}
}
/* The photograph viewer occupies the screen; restore the shortcut on closing. */
body.photo-opened .reference-sticky.connection-shortcut{visibility:hidden!important;pointer-events:none!important;animation:none;}
