/*
 * HomeSums site-wide fixes for the Divi pages (not the tools, which have their own CSS in
 * their shadow roots). Loaded on every page after Divi's styles. Accessibility pass,
 * 16 October 2026: text needs a contrast of at least 4.5:1, and links inside text must
 * stand out by more than colour alone.
 */

/* Links inside page text: dark emerald and underlined (Divi's default link blue was 2.7:1).
   Card "Open tool" links (.hs-cta) and the jump links keep their own styles. */
.et-l--post .et_pb_module:not(.hs-cta) .et_pb_text_inner :is(p, li, td) a:not([class]) {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.et-l--post .et_pb_module:not(.hs-cta) .et_pb_text_inner :is(p, li, td) a:not([class]):hover,
.et-l--post .et_pb_module:not(.hs-cta) .et_pb_text_inner :is(p, li, td) a:not([class]):focus {
  color: #065f46;
}

/* Home page buttons: white on #059669 was 3.8:1, on #047857 it is 5.5:1 */
a.hs-btn.hs-btn--primary {
  background: #047857;
  border-color: #047857;
}

a.hs-btn.hs-btn--primary:hover,
a.hs-btn.hs-btn--primary:focus {
  background: #065f46;
  border-color: #065f46;
}

/* Home page group headings link to their hub pages (e.g. /diy-calculators/) */
a.hs-grouplink {
  color: inherit;
  text-decoration: none;
}

a.hs-grouplink::after {
  content: " →";
  color: #047857;
}

a.hs-grouplink:hover,
a.hs-grouplink:focus {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 3px;
}
