/*
 * Shop SHAI — dark-section contrast repair.
 * Scope: existing sales actions and the four flagship step captions only.
 *
 * Cause: shared shai-interiors.css uses :has(#catalogue-status)-qualified
 * generic h2/p/a rules. Those rules override the original light-on-dark
 * heading and button colours. This file loads AFTER shai-lettering.css
 * (which imports shai-interiors.css), and uses the existing section ID.
 *
 * No templates, pricing, checkout, state, backend, tracking or protected
 * architecture changed. Remove the link to reverse this colour-only fix.
 */
@media screen {
  /* Dark introductory panel: cream and champagne instead of dark ink. */
  #choose-by-goal .sales-paths-heading h2 {
    color: #f4f0e9;
  }

  #choose-by-goal .sales-paths-heading p:not(.eyebrow) {
    color: #ded2b9;
  }

  #choose-by-goal .sales-paths-heading .eyebrow {
    color: #d6c4a0;
  }

  /* Light product cards: keep dark headings/body and legible section labels. */
  #choose-by-goal .sales-path h3 {
    color: #202432;
  }

  #choose-by-goal .sales-path > p {
    color: #5c594f;
  }

  #choose-by-goal .sales-path .sales-step {
    color: #6b542e;
  }

  #choose-by-goal .sales-path .sales-limit {
    color: #5c594f;
  }

  /* Dark action surfaces: bright text, consistent hover/focus contrast. */
  #choose-by-goal .sales-path-links a:not(.sales-product) {
    color: #fffdf8;
    background: #202432;
    border-color: #8b7854;
  }

  #choose-by-goal .sales-path-links a:not(.sales-product):is(:hover, :focus-visible) {
    color: #ffffff;
    background: #343a4b;
    border-color: #b5a17b;
  }

  /* Pale product link: dark ink must remain dark on a pale background. */
  #choose-by-goal .sales-path-links a.sales-product {
    color: #202432;
    background: #eae3d6;
    border-color: #b5a88f;
  }

  #choose-by-goal .sales-path-links a.sales-product:is(:hover, :focus-visible) {
    color: #202432;
    background: #f4f0e9;
  }

  /* Light institutional box with a dark, high-contrast request link. */
  #choose-by-goal .sales-path-organizations h3 {
    color: #202432;
  }

  #choose-by-goal .sales-path-organizations p {
    color: #5c594f;
  }

  #choose-by-goal .sales-path-organizations a {
    color: #fffdf8;
    background: #202432;
    border-color: #b5a17b;
  }

  #choose-by-goal .sales-path-organizations a:is(:hover, :focus-visible) {
    color: #ffffff;
    background: #343a4b;
    border-color: #d6c4a0;
  }

  /* Visible keyboard focus on white cards and dark backgrounds alike. */
  #choose-by-goal :is(.sales-path-links a, .sales-path-organizations a):focus-visible {
    outline: 3px solid #735b30;
    outline-offset: 3px;
  }
  /* Flagship has a warm paper background from shai-interiors.css.
   * The earlier pale label text had insufficient contrast.
   * Keep the four <small> step descriptions dark on the warm background.
   * Keep headings, numbers, buttons, layout and every other font unchanged.
   */
  body:has(#catalogue-status) .flagship ol li small {
    color: #5c594f;
  }
}

@media (forced-colors: active) {
  #choose-by-goal :is(.sales-path-links a, .sales-path-organizations a) {
    forced-color-adjust: auto;
  }
}
