/* Staging audit 2026-11-03: exact legacy components, no copy/layout changes.
 * Keep the existing named layer so these rules beat legacy !important colors.
 */
@layer hw-canon {
  /* Nine city pages: only the labels painted on the existing dark step badges.
   * Do not whiten step titles/descriptions on the surrounding light surfaces. */
  body.hw-grafit:is(.page-id-81888,.page-id-81100,.page-id-81085,.page-id-80924,.page-id-80683,.page-id-80674,.page-id-80655,.page-id-80648,.page-id-80641) main.hw-content .ha-steps-icon > .ha-steps-label {
    color:#f2f0ea !important;
  }

  /* Exact gallery/offer text widgets on verified graphite sections. No action
   * widgets, form fields or pale cards are matched by this registry. */
  body.hw-grafit.page-id-81888 main.hw-content :is([data-id="b713d0a"],[data-id="a2147b8"]) > .elementor-widget-container > .elementor-heading-title,
  body.hw-grafit:is(.page-id-81100,.page-id-81085,.page-id-80924) main.hw-content :is([data-id="7082edf"],[data-id="79c7643"]) > .elementor-widget-container > .elementor-heading-title,
  body.hw-grafit:is(.page-id-80683,.page-id-80674) main.hw-content :is([data-id="ba66033"],[data-id="b713d0a"]) > .elementor-widget-container > .elementor-heading-title,
  body.hw-grafit.page-id-80655 main.hw-content :is([data-id="ae00b3f"],[data-id="c5674d9"],[data-id="7082edf"],[data-id="17a8769"]) > .elementor-widget-container > .elementor-heading-title,
  body.hw-grafit.page-id-80648 main.hw-content :is([data-id="781c42c"],[data-id="8e6c96f"]) > .elementor-widget-container > .elementor-heading-title,
  body.hw-grafit.page-id-80641 main.hw-content :is([data-id="ae00b3f"],[data-id="c5674d9"],[data-id="ba66033"],[data-id="b713d0a"]) > .elementor-widget-container > .elementor-heading-title {
    --hw-canon-ink:#f2f0ea !important;
    color:#f2f0ea !important;
  }

  /* The posts index has body.blog (not page-id-75674). Only the current marker
   * has the graphite fill; ordinary pagination links retain their colors. */
  body.hw-grafit.blog main.hw-content nav.basic-pagination span.page-numbers.current {
    color:#f2f0ea !important;
  }

  /* Current canon instruction removes green from migrated advantages. Shape,
   * role, wording, red warnings/cons and review-star colors remain unchanged. */
  body.hw-grafit.single-post main.hw-content.hw-p08-review .hw-p08-role-advantages > li > svg.hw-p08-list-icon,
  body.hw-grafit.single-post main.hw-content.hw-p08-review .hw-benefits .hw-canon-icon[data-hw-icon-role="pros"],
  body.hw-grafit.single-post main.hw-content.hw-p08-review .hw-benefits .hw-canon-icon-host[data-hw-icon-role="pros"] {
    --hw-canon-icon-color:#705c3e !important;
    color:#705c3e !important;
  }

  /* Two retained legacy CTA sections: graphite with inverse prose. Control
   * styles still supply their own dark ink on the existing sand buttons. */
  body.hw-grafit.postid-76316 main.hw-content section[data-id="7516c7f"],
  body.hw-grafit.postid-76234 main.hw-content section[data-id="fb378c9"] {
    --hw-canon-ink:#f2f0ea !important;
    --hw-canon-muted:#f2f0ea !important;
    --hw-canon-link:#d6c2a0 !important;
    --hw-canon-icon-color:#d6c2a0 !important;
    background-color:#252522 !important;
    background-image:none !important;
  }
  body.hw-grafit.postid-76316 main.hw-content section[data-id="7516c7f"] > .elementor-background-overlay,
  body.hw-grafit.postid-76234 main.hw-content section[data-id="fb378c9"] > .elementor-background-overlay {
    background:none !important;
  }

  /* Browser review confirmed these 15 exact heading bands still use the old
   * green linear gradient. Replace only that paint with the sand canon. */
  body.hw-grafit.postid-76316 main.hw-content section:is([data-id="5c04c2e"],[data-id="60a8bd9"],[data-id="f932ca0"],[data-id="9704e70"],[data-id="9589096"],[data-id="453d4ff"],[data-id="57752c4"]),
  body.hw-grafit.postid-76234 main.hw-content section:is([data-id="ff29032"],[data-id="9cef69d"],[data-id="28edbbd"],[data-id="9292d86"],[data-id="fbc71e6"],[data-id="e2f2885"],[data-id="50746eb"],[data-id="3ec22b1"]) {
    --hw-canon-ink:#272722 !important;
    --hw-canon-muted:#605d57 !important;
    --hw-canon-link:#705c3e !important;
    background-image:none !important;
    background-color:#f0ede7 !important;
    color:#272722 !important;
  }
}
