/*
 * ggc-theme-forced-colors (TH-B): forced-colours rules (Windows contrast themes and the like).
 * Loads on every page, last of the theme handles, and in the editor canvas. Registered and
 * enqueued only by inc/assets.php (docs/contracts.md §5.3). Unlayered.
 *
 * Forced colours repaint author colours with the system's and drop fills and shadows, so these
 * rules keep what would otherwise vanish. Sources, at 0e1d416: identity.css and styles.css
 * (direction-b), and the identity spec §9.1 and §12.
 *
 * Every declaration here is !important. Components set these same properties for their own look
 * with selectors of any weight, in files that may print before or after this one: base.css's
 * outline and dark-band buttons and its dark band's Lichen marker, and the testimonials block's
 * marker and quotation mark, among others. A heavier selector would otherwise keep its own colour
 * here, and with forced-color-adjust: none that colour is painted as authored. These rules apply
 * only under forced colours, so they never touch the normal look.
 *
 * - Every button keeps a 2 px ButtonText edge, GrayText while disabled. That includes build-01's
 *   block, whose own edges (ggc-request-secondary) the theme dequeues (docs/contracts.md §5.5):
 *   Send, the callback switch, Start another request and the fixture-only slots, which keep a
 *   dashed edge. A link-styled button stays a link, with no edge. Without these edges a button
 *   has no visible boundary here.
 * - The 6 px datum tabs drawn as backgrounds would vanish into Canvas, so they draw in CanvasText:
 *   every section label's marker, the dark band's and the testimonials block's included, the hero
 *   bar, the request plate's tab and the footer's tab. Lichen on the light Canvas would break the
 *   identity spec's rule (§8.1), and Deep Green on a dark Canvas would all but vanish. Datum rules
 *   drawn as borders take the system colour on their own.
 * - The skyline is page art and is hidden (identity spec §12).
 * - Partner and testimonial logos are images, which forced colours leave alone: a Deep Green logo
 *   on a dark Canvas would be about 1.5:1, so each gets a white backplate. The testimonials'
 *   drawn quotation mark sets its own colour, which forced colours keep, so it takes CanvasText,
 *   as its rule does.
 */
@media (forced-colors: active) {
  .wp-element-button,
  .menu-toggle,
  .ggc-consent__choice {
    border: 2px solid ButtonText !important;
  }

  .wp-element-button:disabled {
    border-color: GrayText !important;
  }

  .ggc-request .ggc-request__slot {
    border: 2px dashed ButtonText !important;
  }

  .wp-block-button.is-style-link > .wp-block-button__link {
    border: 0 !important;
  }

  .section-label::before,
  .hero-copy::before,
  .panel-plate::before,
  .footer-brand::before {
    forced-color-adjust: none !important;
    background: CanvasText !important;
  }

  .hero-skyline {
    display: none !important;
  }

  .clients::before {
    border-top-color: CanvasText !important;
  }

  .client-logo img,
  img.testimonial__logo {
    forced-color-adjust: none !important;
    padding: 0.25rem !important;
    background: #FFFFFF !important;
  }

  .testimonial__mark {
    color: CanvasText !important;
  }
}
