/*
 * gt-icons.css -- the box every Lucide icon draws in (MOC-390, operator ruling N32).
 *
 * The icon font itself is vendor/lucide/lucide.css (the package's own file, never edited). Markup:
 * <i class="lucide icon-NAME">. That file sets only the font family; the old icon font's base class also set the
 * line height and reset the weight, and our layouts were built on that box. So:
 *   line-height 1    -- an icon never adds a line's height to a button or a row;
 *   font-weight 400  -- the font has one weight (the reference's stroke 2). A bold parent (several buttons are 600-700)
 *                       would otherwise make the browser fake a bold glyph, thickening the stroke;
 *   font-synthesis none -- the same guard, stated for browsers that would synthesise anyway.
 */
.lucide {
  line-height: 1;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  font-synthesis: none;
  text-transform: none;
  speak: never;
}

/*
 * A LIKED heart is filled, as the reference draws it (components/story/MomentCard.tsx: Heart with "fill-destructive
 * text-destructive"); MOC-390. The font has one, outline, heart, so a liked control draws the same Lucide heart (the
 * served font's own path, lucide-static 1.59.0; ISC, notices in vendor/lucide/LICENSE) as a filled shape in the
 * icon's colour. ONE rule for every liked control: .gt-liked (Story Home feed), .is-liked (/stories) and any heart
 * button that says it is pressed. An unliked heart is untouched.
 */
.gt-liked > .lucide.icon-heart::before,
.is-liked > .lucide.icon-heart::before,
[aria-pressed="true"] > .lucide.icon-heart::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: top;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.5 5.5 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.5 5.5 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
