/* The host theme sets a:hover to blue and underlines it. Match its specificity
   only inside V1 so surface colours and the original component states still win. */
:where(body.im-site) :where(.im-header, main, .im-foot, .ed-panel) a:is(:hover, :focus-visible, :active) {
  color: inherit;
  text-decoration-line: none;
}

/* Header, mobile menu and footer. Keep the menu's own brass indicator. */
:where(body.im-site) a.im-skip { color: #103048; text-decoration: none; }
:where(body.im-site) a.im-brand,
:where(body.im-site) a.im-foot-brand { color: inherit; text-decoration: none; }
:where(body.im-site) .im-main-nav a { color: #183648; text-decoration: none; }
:where(body.im-site) a.im-talk { color: #fff6e6; text-decoration: none; }
:where(body.im-site) .im-foot-contact a { color: #fcf4e7; }
:where(body.im-site) .im-foot a:hover { text-decoration-line: underline; }
:where(body.im-site) .im-foot a.im-foot-brand:hover { text-decoration-line: none; }

/* Home: hero actions, evidence, chapter navigation and inline invitations. */
:where(body.im-site) a.ih-contact { color: #f7deaa; text-decoration: none; }
:where(body.im-site) a.ih-note { color: #d6e0dd; text-decoration-line: underline; }
:where(body.im-site) a.hx-link { color: #694d25; text-decoration-line: underline; }
:where(body.im-site) .walk-result a { color: var(--walk-brass); text-decoration-line: underline; }
:where(body.im-site) .walk-research a { color: #694c28; }
:where(body.im-site) .walk-nav a { color: #4e5350; }
:where(body.im-site) a.walk-action { text-decoration-line: underline; }

/* Approach, decision guides, case studies and About. Stronger variant rules
   in each page stylesheet retain their light/dark and selected states. */
:where(body.im-site) a.av3-link { color: var(--av-gold); text-decoration: none; }
:where(body.im-site) a.dg-case { color: #614619; text-decoration-line: underline; }
:where(body.im-site) a.dg-jump { color: #e6d4aa; text-decoration-line: underline; }
:where(body.im-site) a.results-primary { color: #102f40; text-decoration: none; }
:where(body.im-site) .results-feature a { color: #f2d594; }
:where(body.im-site) .results-card a { color: #103a4f; }
:where(body.im-site) a.hc-back { color: #dfd9c9; text-decoration-line: underline; }
:where(body.im-site) .hc-lenses a { color: var(--hc-brass); text-decoration-line: underline; }
:where(body.im-site) a.ab-cta { color: var(--ab-deep); text-decoration: none; }
:where(body.im-site) .ab-case-link a { color: var(--ab-gold); text-decoration-line: underline; }

/* Policy and information pages, contact details and the enquiry dialog. */
:where(body.im-site) .info-topics a,
:where(body.im-site) a.info-inline-link { color: var(--info-ink); }
:where(body.im-site) .im-direct-contact a { color: #f2dfb9; }
:where(body.im-site) .ed-panel a { color: #745426; text-decoration-line: underline; }

/* Linked cards use a muted brass border and a visible keyboard focus ring. */
body.im-site a.ih-advisory { --imtl-card-ink: #153342; --imtl-card-brass: #846431; }
body.im-site a.ih-delivery { --imtl-card-ink: #f9f1df; --imtl-card-brass: #e8c98f; }
body.im-site a.proof-item { --imtl-card-ink: var(--ink, #112e3e); }
body.im-site a.ab-google { --imtl-card-ink: var(--ab-ink, #153342); }
body.im-site a:is(.ih-path, .proof-item, .ab-google):is(:hover, :focus-visible, :active) {
  color: var(--imtl-card-ink);
  text-decoration: none;
}
body.im-site a.ih-path:is(:hover, :focus-visible)::after { color: var(--imtl-card-brass); }
body.im-site a.ih-path:is(:hover, :focus-visible) { border-color: var(--imtl-card-brass); }
body.im-site a:is(.ih-path, .proof-item, .ab-google):focus-visible {
  outline: 2px solid #846431;
  outline-offset: 4px;
}
