/*
 * Zoey Made — the shared interface icon.
 *
 * Lucide, pinned and vendored. `theme/inc/icon/lucide.php` renders it, this is everything about
 * its appearance that is not already on the element, and `assets/svg/lucide/README.md` records
 * which release the artwork came from.
 *
 * There is deliberately very little here. The renderer writes `width`, `height`, `viewBox`,
 * `stroke-width`, the caps, the joins and `currentColor` onto every icon, so an icon is already
 * the right size and the right colour with no stylesheet at all — which is the property that lets
 * it be dropped into a control that has not thought about icons. What is left is the handful of
 * things an attribute cannot say.
 *
 * Enqueued on every route, like the header: the header is where icons live today and the header
 * renders everywhere. It is well under a kilobyte.
 */

/*
 * An icon never shrinks and never stretches.
 *
 * Every control that holds one is a flex container, and a flex item's default is to shrink below
 * its own size when the line is tight. A label can afford that; a 24px glyph cannot — it is the
 * only thing some of these controls have, and a squashed icon is a squashed meaning. `flex: none`
 * is the one rule in this file that is load-bearing.
 */
.zoey-icon.zoey-icon {
  /*
   * Stroke only, and this is the rule that has to fight for it.
   *
   * Every Lucide icon is drawn as an unfilled stroked path and carries `fill="none"` as an
   * attribute — but an attribute is the weakest thing in the cascade, and two of the controls
   * these icons go into are core's. Core's own glyphs are solid shapes, so its stylesheets say
   * `fill: currentColor` on them: `.wp-block-search__icon-button .search-icon` and the
   * navigation's open button. Both beat a presentation attribute, and the result is a search
   * magnifier rendered as a solid dark blob and a hamburger with its bars filled shut.
   *
   * Measured before this rule existed — computed `fill: rgb(51, 47, 61)` on the search and menu
   * glyphs, `none` on the cart glyph, which is in this theme's own markup and had no core rule
   * over it. So it was wrong in two of three places and right in the one that was easiest to look
   * at, which is why `brand.mjs` now reads the computed value rather than trusting the markup.
   *
   * The class is doubled to clear `.wp-block-search__icon-button .search-icon`, which is two
   * classes deep. It is the idiom `header.css` already uses against core for the same reason:
   * win on specificity rather than on stylesheet print order, which is not guaranteed.
   */
  fill: none;
  flex: none;
  /*
   * And beside text it sits on the text rather than on the baseline. An inline SVG's bottom edge
   * lands on the baseline by default, which hangs a 24px glyph about 5px below 16px type. Inside
   * a flex control this does nothing, because the container's `align-items` has already decided
   * it — so one declaration covers both cases.
   */
  vertical-align: -0.125em;
}

/*
 * Forced colors.
 *
 * Nothing to do, and that is the point worth writing down. These are drawn with a real `stroke`
 * in `currentColor` rather than as a CSS mask, so a high-contrast scheme recolours them along
 * with the text they belong to — which is exactly why `docs/CSS-AND-ASSETS.md` requires a
 * meaningful shape to be inline. A masked icon would be invisible here; this one is not, and it
 * needs no override to stay that way.
 */
