/* Text links read like the homepage FAQ links ("apply for the Venture
   Studio", "book a strategy call"): no underline at rest, an underline in the
   link's own colour on hover. Covers links inside running text on every page
   (not buttons, nav or footer) and the homepage's underlined .vh-link.
   Linked in <head> so nothing changes after load; !important because many
   links set their underline inline. */
:where(p, li, dd, td, blockquote, figcaption, small, .x-earlier, .ap-privacy) a:not([class*="btn"]):not(nav a, footer a, .footer a) {
  text-decoration: none !important;
}
:where(p, li, dd, td, blockquote, figcaption, small, .x-earlier, .ap-privacy) a:not([class*="btn"]):not(nav a, footer a, .footer a):is(:hover, :focus-visible) {
  text-decoration: underline !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: from-font;
  text-underline-offset: 3px;
}

/* Underlines drawn as a bottom border (homepage .vh-link, fundable .more). The
   white link on the dark Venture Studio card keeps its own style. */
.vh-link:not(.vh-way-studio .vh-link),
.links a.more {
  border-bottom-color: transparent !important;
  transition: border-color .16s ease, color .16s ease;
}
.vh-link:not(.vh-way-studio .vh-link):is(:hover, :focus-visible),
.links a.more:is(:hover, :focus-visible) {
  border-bottom-color: currentColor !important;
}

/* Logos (menu, footer, mobile) hover like the /login logo: lift, slight
   scale and brightness, soft shadow (mobile-polish's inline-flex hover). */
@media (hover: hover) and (pointer: fine) {
  a[aria-label="Velo Labs home"] {
    transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s cubic-bezier(.22,.61,.36,1), filter .2s ease;
  }
  a[aria-label="Velo Labs home"]:hover,
  a[aria-label="Velo Labs home"]:focus-visible {
    transform: translateY(-4px) scale(1.035) !important;
    filter: brightness(1.06) saturate(1.04);
    box-shadow: 0 24px 48px -20px rgba(9,25,62,.52) !important;
  }
}
