/* Brand alignment for the calculator interiors.

   The eight calculators already carry a complete visual design of their own,
   written as an inline <style> inside each Elementor HTML widget and scoped by
   id (`#amg-prc .prc-pill`). That is specificity (1,1,0), so no class-based rule
   here can reach it without `!important`.

   This file therefore does NOT attempt to restyle the calculators wholesale.
   It changes three things where the tools' own palette diverges from the site
   brand, and nothing else. Everything is CSS: no HTML, no JavaScript and no
   `_elementor_data` is touched, so behaviour is exactly as before.

   Deliberately NOT changed:
   - layout of any kind, and nothing at all on `-body`, `-pane` or `-ln`, which
     are what amg-tools-mobile.php v1.7 fixed for 320-375px;
   - the live result panel, which carries red and green status states;
   - the calculators' own type scale and spacing, which already work.
*/

/* 1. The selected option. The tools mark it with #e8efed, a pale grey-green that
      reads as barely-selected next to the unselected white. Brand green matches
      the chips used everywhere else on the site and makes the choice obvious. */

.amg-tool-page .elementor-widget-html .prc-pill[aria-pressed="true"],
.amg-tool-page .elementor-widget-html .rrv-pill[aria-pressed="true"],
.amg-tool-page .elementor-widget-html .tgv-pill[aria-pressed="true"],
.amg-tool-page .elementor-widget-html .pvc-pill[aria-pressed="true"],
.amg-tool-page .elementor-widget-html .swc-pill[aria-pressed="true"],
.amg-tool-page .elementor-widget-html .fcc-pill[aria-pressed="true"],
.amg-tool-page .elementor-widget-html .trt-pill[aria-pressed="true"],
.amg-tool-page .elementor-widget-html .prf-pill[aria-pressed="true"] {
  background: var(--amg-green) !important;
  border-color: var(--amg-green) !important;
  color: #fff !important;
}

.amg-tool-page .elementor-widget-html .prc-pill[aria-pressed="true"] [class*="-txt"],
.amg-tool-page .elementor-widget-html .rrv-pill[aria-pressed="true"] [class*="-txt"],
.amg-tool-page .elementor-widget-html .tgv-pill[aria-pressed="true"] [class*="-txt"],
.amg-tool-page .elementor-widget-html .pvc-pill[aria-pressed="true"] [class*="-txt"],
.amg-tool-page .elementor-widget-html .swc-pill[aria-pressed="true"] [class*="-txt"],
.amg-tool-page .elementor-widget-html .fcc-pill[aria-pressed="true"] [class*="-txt"],
.amg-tool-page .elementor-widget-html .trt-pill[aria-pressed="true"] [class*="-txt"],
.amg-tool-page .elementor-widget-html .prf-pill[aria-pressed="true"] [class*="-txt"] { color: #fff !important; }

.amg-tool-page .elementor-widget-html .prc-pill[aria-pressed="true"] [class*="-dot"],
.amg-tool-page .elementor-widget-html .rrv-pill[aria-pressed="true"] [class*="-dot"],
.amg-tool-page .elementor-widget-html .tgv-pill[aria-pressed="true"] [class*="-dot"],
.amg-tool-page .elementor-widget-html .pvc-pill[aria-pressed="true"] [class*="-dot"],
.amg-tool-page .elementor-widget-html .swc-pill[aria-pressed="true"] [class*="-dot"],
.amg-tool-page .elementor-widget-html .fcc-pill[aria-pressed="true"] [class*="-dot"],
.amg-tool-page .elementor-widget-html .trt-pill[aria-pressed="true"] [class*="-dot"],
.amg-tool-page .elementor-widget-html .prf-pill[aria-pressed="true"] [class*="-dot"] {
  border-color: #fff !important;
  color: #fff !important;
}

/* The points badge on a selected option, so it stays legible on green. */
.amg-tool-page .elementor-widget-html .prc-pill[aria-pressed="true"] [class*="-pts"],
.amg-tool-page .elementor-widget-html .rrv-pill[aria-pressed="true"] [class*="-pts"],
.amg-tool-page .elementor-widget-html .tgv-pill[aria-pressed="true"] [class*="-pts"],
.amg-tool-page .elementor-widget-html .pvc-pill[aria-pressed="true"] [class*="-pts"],
.amg-tool-page .elementor-widget-html .swc-pill[aria-pressed="true"] [class*="-pts"],
.amg-tool-page .elementor-widget-html .fcc-pill[aria-pressed="true"] [class*="-pts"],
.amg-tool-page .elementor-widget-html .trt-pill[aria-pressed="true"] [class*="-pts"],
.amg-tool-page .elementor-widget-html .prf-pill[aria-pressed="true"] [class*="-pts"] {
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
}

/* 2. The points badge on an unselected option: cream and gold, as everywhere else. */

.amg-tool-page .elementor-widget-html .prc-pill [class*="-pts"],
.amg-tool-page .elementor-widget-html .rrv-pill [class*="-pts"],
.amg-tool-page .elementor-widget-html .tgv-pill [class*="-pts"],
.amg-tool-page .elementor-widget-html .pvc-pill [class*="-pts"],
.amg-tool-page .elementor-widget-html .swc-pill [class*="-pts"],
.amg-tool-page .elementor-widget-html .fcc-pill [class*="-pts"],
.amg-tool-page .elementor-widget-html .trt-pill [class*="-pts"],
.amg-tool-page .elementor-widget-html .prf-pill [class*="-pts"] {
  background: var(--amg-cream) !important;
  color: var(--amg-gold-dark) !important;
}

/* 3. The in-tool CTA block uses #e9a23c; the brand gold is #d99b43. */

.amg-tool-page .elementor-widget-html .prc-cta,
.amg-tool-page .elementor-widget-html .rrv-cta,
.amg-tool-page .elementor-widget-html .tgv-cta,
.amg-tool-page .elementor-widget-html .pvc-cta,
.amg-tool-page .elementor-widget-html .swc-cta,
.amg-tool-page .elementor-widget-html .fcc-cta,
.amg-tool-page .elementor-widget-html .trt-cta,
.amg-tool-page .elementor-widget-html .prf-cta { background: var(--amg-gold) !important; color: var(--amg-green) !important; }

/* Focus visibility, which the tools' own CSS does not set. */
.amg-tool-page .elementor-widget-html .prc-pill:focus-visible,
.amg-tool-page .elementor-widget-html .rrv-pill:focus-visible,
.amg-tool-page .elementor-widget-html .tgv-pill:focus-visible,
.amg-tool-page .elementor-widget-html .pvc-pill:focus-visible,
.amg-tool-page .elementor-widget-html .swc-pill:focus-visible,
.amg-tool-page .elementor-widget-html .fcc-pill:focus-visible,
.amg-tool-page .elementor-widget-html .trt-pill:focus-visible,
.amg-tool-page .elementor-widget-html .prf-pill:focus-visible,
.amg-tool-page .elementor-widget-html .prc-chk:focus-within,
.amg-tool-page .elementor-widget-html .rrv-chk:focus-within,
.amg-tool-page .elementor-widget-html .tgv-chk:focus-within,
.amg-tool-page .elementor-widget-html .pvc-chk:focus-within,
.amg-tool-page .elementor-widget-html .swc-chk:focus-within,
.amg-tool-page .elementor-widget-html .fcc-chk:focus-within,
.amg-tool-page .elementor-widget-html .trt-chk:focus-within,
.amg-tool-page .elementor-widget-html .prf-chk:focus-within,
.amg-tool-page .elementor-widget-html .prc-btn:focus-visible,
.amg-tool-page .elementor-widget-html .rrv-btn:focus-visible,
.amg-tool-page .elementor-widget-html .tgv-btn:focus-visible,
.amg-tool-page .elementor-widget-html .pvc-btn:focus-visible,
.amg-tool-page .elementor-widget-html .swc-btn:focus-visible,
.amg-tool-page .elementor-widget-html .fcc-btn:focus-visible,
.amg-tool-page .elementor-widget-html .trt-btn:focus-visible,
.amg-tool-page .elementor-widget-html .prf-btn:focus-visible {
  outline: 3px solid var(--amg-gold) !important;
  outline-offset: 2px !important;
}
