/* Shared interactive states. Layout, type sizes and non-clickable copy stay unchanged. */
body.v5 { --mg-link-hover:var(--v7-gold, #a49250); --mg-arrow-hover:#17263e; }
body.v5 :is(.mg-nav-bar,.mg-site-header,.mg-home-copy,.mg-photo-hero,.mg-photo-caption,.mg-hub-bar,.v5-area--work,.v6-branch.is-work,.v6-cta,.v6-court,.v6-court-band,.v6-stats,.v5-footer,.mg-mandate-team) {
  --mg-link-hover:var(--v7-gold, #a49250); --mg-arrow-hover:#faf8f4;
}

/* Text links and practice/person headings. */
body.v5 :is(.v5-area h3 a,.v5-topic-link,.v6-area-overview,.v5-text-link,.v6-link,.v5-person-card h3 a,.mg-practice-menu a,.mg-hub-links a,.v6-branch h2 a,.v6-branch-links a,.v6-advisor a,.mg-mandate-link,.v6-breadcrumb a,.v5-footer a) {
  transition:color .18s ease,border-color .18s ease;
}
body.v5 :is(.v5-area h3 a,.v5-topic-link,.v6-area-overview,.v5-text-link,.v6-link,.v5-person-card h3 a,.mg-practice-menu a,.mg-hub-links a,.v6-branch h2 a,.v6-branch-links a,.v6-advisor a,.mg-mandate-link,.v6-breadcrumb a,.v5-footer a):is(:hover,:focus-visible) {
  color:var(--mg-link-hover); border-color:currentColor;
}
/* The dropdown is a light surface inside the navy navigation. */
body.v5 .mg-practice-menu { --mg-link-hover:var(--v7-gold, #a49250); --mg-arrow-hover:#17263e; }
body.v5 .mg-nav-bar :is(.mg-top-link,.mg-nav-phone,.mg-nav-location):is(:hover,:focus-visible) { color:var(--v7-gold, #a49250); }
body.v5 :is(.v5-topic-link,.v6-area-overview,.v5-text-link,.v6-link):is(:hover,:focus-visible) > [aria-hidden="true"],
body.v5 .v6-branch-links a:is(:hover,:focus-visible) > .arrow { color:var(--mg-arrow-hover); }
body.v5 .v5-area h3 a:focus-visible { outline:2px solid currentColor; outline-offset:6px; }

/* Hovering a linked portrait highlights the corresponding name as well. */
body.v5 .v5-person-card:has(a:is(:hover,:focus-visible)) h3 a,
body.v5 .v6-author-grid :is(h2,h3) a:is(:hover,:focus-visible),
body.v5 .firm-founder-card a:is(:hover,:focus-visible) { color:var(--mg-link-hover); }
body.v5 :is(.v5-knowledge-band a,.v6-route-card,.v6-article-row,.v6-topic-nav a):is(:hover,:focus-visible) :is(h2,h3,b),
body.v5 .v6-branch-links a:is(:hover,:focus-visible) b { color:var(--mg-link-hover); }
body.v5 :is(.v5-knowledge-band a,.v6-route-card,.v6-article-row,.v6-topic-nav a):is(:hover,:focus-visible) { border-color:var(--mg-link-hover); }
body.v5 .v6-topic-nav a[aria-current]:is(:hover,:focus-visible) { color:var(--v7-gold, #a49250); }

/* Logos retain their original geometry and use the existing gold SVG variant. */
body.v5 a:is(:hover,:focus-visible) img[src*="marten-graner-logo.svg"]:not([src*="by-marten-graner-logo.svg"]) {
  content:url("source/marten-graner-logo.svg?v=70fda2649b61#gold");
}

/* Navy/outlined calls to action turn gold, including both large photo heroes. */
body.v5 :is(.mg-home-cta,.mg-facts-cta,.mg-hub-search button,.v5-button,.v6-button,.v6-contact-submit,.button--light) {
  transition:color .18s ease,background-color .18s ease,border-color .18s ease;
}
body.v5.v6-home-approved :is(.mg-home-cta,.mg-facts-cta):is(:hover,:focus-visible),
body.v5.mg-photo-page .mg-photo-content :is(.v5-button,.button--light):is(:hover,:focus-visible),
body.v5 .mg-hub-search button:is(:hover,:focus-visible) {
  background:var(--v7-gold, #a49250); border-color:var(--v7-gold, #a49250); color:#17263e !important;
}
body.v5.v6-home-approved :is(.mg-home-cta,.mg-facts-cta):is(:hover,:focus-visible) > span,
body.v5.mg-photo-page .mg-photo-content :is(.v5-button,.button--light):is(:hover,:focus-visible) > span { color:#17263e; }

/* Already-gold buttons reverse to navy with a legible gold label. */
body.v5 :is(.v5-button,.v6-button,.v6-contact-submit):is(:hover,:focus-visible) {
  background:#17263e; border-color:var(--v7-gold, #a49250); color:var(--v7-gold, #a49250) !important;
}
/* The profile/team hero buttons have a navy starting surface. */
body.v5.mg-photo-page .mg-photo-content .v5-button:is(:hover,:focus-visible) {
  background:var(--v7-gold, #a49250); color:#17263e !important;
}
body.v5 :is(.v6-button,.v6-contact-submit):is(:hover,:focus-visible) > span { color:inherit; }

/* Carry the same feedback into article and firm-page links. */
body.v5 :is(.prose,.article-body,.wha-body,.firm-practice-card,.v6-contact-hint) a:is(:hover,:focus-visible) {
  color:var(--mg-link-hover); text-decoration-color:currentColor;
}
body.v5 .firm-practice-card--work { --mg-link-hover:var(--v7-gold, #a49250); }
body.v5 :is(.v5-topic-link,.v6-area-overview,.v5-text-link,.v6-link,.v6-button,.mg-home-cta,.mg-facts-cta):focus-visible {
  outline:2px solid var(--mg-link-hover); outline-offset:4px;
}
@media(prefers-reduced-motion:reduce) {
  body.v5 :is(.mg-home-cta,.mg-facts-cta,.v5-topic-link,.v6-area-overview,.v5-text-link,.v6-link,.v5-button,.v6-button,.v6-contact-submit) { transition:none; }
}
