/* EngHub shared chrome — loaded by AdvStructs and OFSys.
   Gives both applications one identical, branded route back to the hub.
   Scoped tightly so it cannot disturb either application's own styles. */

.enghub-return,
.enghub-return-button{
  --eh-navy:#0f3155;
  --eh-gold:#f2a40b;
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:38px;
  padding:0 15px 0 8px;
  border:1px solid #dde5ee;
  border-radius:999px;
  background:#fff;
  color:var(--eh-navy);
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  font-size:13px;
  font-weight:600;
  letter-spacing:-.005em;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(15,49,85,.05);
  transition:border-color .18s ease,box-shadow .18s ease,color .18s ease;
}

/* the hub's own mark, so the control reads as EngHub rather than a stray button */
.enghub-return::before,
.enghub-return-button::before{
  content:"";
  flex:none;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#f2f5f8 url("/favicon-64.png") center/16px 16px no-repeat;
  transition:background-color .18s ease;
}

.enghub-return:hover,
.enghub-return-button:hover,
.enghub-return:focus-visible,
.enghub-return-button:focus-visible{
  border-color:var(--eh-navy);
  box-shadow:0 6px 18px -8px rgba(15,49,85,.4);
}
.enghub-return:hover::before,
.enghub-return-button:hover::before,
.enghub-return:focus-visible::before,
.enghub-return-button:focus-visible::before{
  background-color:rgba(242,164,11,.22);
}
.enghub-return:focus-visible,
.enghub-return-button:focus-visible{
  outline:2px solid var(--eh-gold);
  outline-offset:2px;
}
.enghub-return:active,
.enghub-return-button:active{transform:translateY(1px)}

@media (max-width:640px){
  .enghub-return,
  .enghub-return-button{
    gap:0;
    width:38px;
    padding:0;
    justify-content:center;
    font-size:0;
  }
  .enghub-return::before,
  .enghub-return-button::before{width:26px;height:26px;background-size:18px 18px}
}
@media (prefers-reduced-motion:reduce){
  .enghub-return,.enghub-return-button{transition:none}
}
