/* Standard WordPress pages hide the theme sidebar; let their main column fill the row. */
body.page-template-default #main > .container > .row > .col-lg-8 {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

/* Some page-specific legacy rules hide every footer except the old one. Keep Footer V2 visible. */
body.wp-singular.page-template-default footer.footer.footer-v2 {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
}

/* Remove the redundant pale SEO intro and make the closing SEO copy fit the dark brand surface. */
body.page-id-5223 #ha-seo-intro-5223 {
  display: none !important;
}
body.page-id-5223 #ha-seo-expansion-5223,
body.page-id-5223 #ha-seo-enrich-5223,
body.page-id-5223 #ha-seo-enrich-5223 + p {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px max(20px, calc((100vw - 1180px) / 2)) !important;
  background: #10161d !important;
  color: #cbd5e1 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}
body.page-id-5223 #ha-seo-expansion-5223 {
  padding-top: 30px !important;
}
body.page-id-5223 #ha-seo-enrich-5223 {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  color: #fff !important;
  font-size: clamp(26px, 3vw, 40px) !important;
  line-height: 1.15 !important;
}
body.page-id-5223 #ha-seo-enrich-5223 + p {
  padding-bottom: 30px !important;
}

/* Use the theme footer as the single footer on non-home pages and posts. */
body.page:not(.home) .entry-content footer.ha-footer,
body.single-post .entry-content footer.ha-footer {
  display: none !important;
  visibility: hidden !important;
}

/* Improve small accent text on light cards where Lighthouse found low contrast. */
body.page-id-1062 .ha-menu-card small,
body.page-id-1062 .ha-service-index-card small,
body.page-id-5034 .ha-prooflink a,
body.page-id-5018 .ha-industry-card > span,
body.page-id-5018 .ha-industry-link {
  color: #963800 !important;
}

/* Make in-copy links distinguishable without relying on color alone. */
body.page-id-5018 .entry-content p a:not(.ha-btn) {
  text-decoration: underline !important;
  text-underline-offset: 0.16em;
}

/* Keep labels readable on the light contact cards; preserve the dark accent card. */
body.page-id-1079 .ha-start-card:not(.ha-start-card-accent) .ha-start-label {
  color: #963800 !important;
}

