/*
 * SiteSupport Phosphor icon helper
 * Version: 1.0.1
 * Colour and size treatment for the Phosphor Regular icon swap.
 *
 * Icons themselves are currentColor SVGs (viewBox 0 0 256 256).
 * Content icons are swapped from <img> to <span class="ss-icon">
 * and painted with a CSS mask so they pick up the brand colour.
 *
 * Do not name anything .ss-ph: that class already exists in the theme
 * as a hover helper.
 *
 * Tiles (44x44 r10, 40x40 r10, 58x58 r12, 32x32 r8, 56x56 r12, 34x34 r8)
 * already live in the page HTML. This file does not change tile sizes.
 */

:root {
  --ss-icon-color: #10428B;
  --ss-icon-alert: #E8933A;
}

/* Content icons (replaces <img> of mixed heritage) */
.ss-icon {
  display: block;
  flex: none;
  box-sizing: border-box;
  color: var(--ss-icon-color);
  background-color: currentColor;
  -webkit-mask: var(--ss-icon) center / contain no-repeat;
  mask: var(--ss-icon) center / contain no-repeat;
}

.ss-icon--alert {
  color: var(--ss-icon-alert);
}

.ss-icon--inverse {
  color: #fff;
}

.ss-icon--inherit {
  color: inherit;
}

/* Contact form 7 chip icons on the homepage form (ID 153).
   The chip tile is already 34x34 with a white background. */
.ss-f .ss-chip-ic .ss-icon {
  width: 22px;
  height: 22px;
}

/* Inline Phosphor SVGs used for UI chrome (ticks, carets, arrows, buttons). */
svg.ss-icon-svg {
  display: block;
  flex: none;
  flex-shrink: 0;
}
/* 1.0.1: no CSS fill here. Each inline icon carries its own fill attribute (a brand colour or currentColor),
   and a CSS fill would override it (orange and blue icons were turning the text colour). */

/* Menu caret: keep the existing data-nav="chev" rotation in site.js. */
svg.ss-icon-svg[data-nav="chev"] {
  transition: transform .25s;
}
