/* Dynova home mark — the small logo in the navbar's right-hand cluster,
   just left of the cart. Links back to the brand gateway at "/".
   Shared by the Health and Nutrition shells; paints its own colours so it
   depends on neither brand's variables. */

.dn-home-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.dn-home-mark img {
  width: 1.3rem;
  height: auto;
  display: block;
  /* The mark is now a crop straight out of the logo lockup (dynova-mark-logo.png)
     everywhere — its strokes are thinner than the old flat SVG's, so it wants a
     touch more presence at this size than that version needed. */
  opacity: 0.9;
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* A violet halo blooms out from behind the mark on hover. */
.dn-home-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(109, 93, 255, 0.45), rgba(109, 93, 255, 0) 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dn-home-mark:hover::before,
.dn-home-mark:focus-visible::before { opacity: 1; transform: scale(1.5); }
.dn-home-mark:hover img,
.dn-home-mark:focus-visible img { opacity: 1; transform: scale(1.08); }
.dn-home-mark:active { transform: scale(0.92); }
.dn-home-mark:focus-visible { outline: 2px solid #8f7cff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .dn-home-mark,
  .dn-home-mark img,
  .dn-home-mark::before { transition-duration: 0.01ms; }
  .dn-home-mark:hover img { transform: none; }
}

/* Brand lock-up on the auth pages (sign-in, sign-up, password reset).
   Both shells render these on a dark surface, so the wordmark is light;
   the gradient mark itself reads on either background. */
.dn-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  text-decoration: none;
}
.dn-auth-brand img { height: 2.6rem; width: auto; display: block; }
.dn-auth-brand span { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.dn-auth-brand b { color: #ffffff; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; }
.dn-auth-brand small {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  margin-top: 4px;
}
