/* Mutiny crop badges. Icon + short label, always both. Angled bottom-right nick, no pills.
   Override the custom properties on any parent to retune a section. */
.crop-badges {
  --crop-badge-ink: #0b140f;      /* ink: pine on the badge green was 3.85:1, under the 4.5:1 AA line */
  --crop-badge-face: #f1f4ee;     /* paper */
  --crop-badge-edge: #b9cdbd;     /* pine tint for the 1px outline */
  --crop-badge-cut: 7px;
  --crop-badge-icon: 20px;
  --crop-badge-size: 17px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crop-badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 14px 4px 8px;
  color: var(--crop-badge-ink);
  background: var(--crop-badge-edge);
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: var(--crop-badge-size);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--crop-badge-cut)), calc(100% - var(--crop-badge-cut)) 100%, 0 100%);
}
.crop-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--crop-badge-face);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--crop-badge-cut) + 1px), calc(100% - var(--crop-badge-cut) + 1px) 100%, 0 100%);
}

.crop-badge > img,
.crop-badge > svg {
  flex: none;
  display: block;
  width: var(--crop-badge-icon);
  height: var(--crop-badge-icon);
}
/* inline SVG (crop-icons.js) takes the text color */
.crop-badge > svg { color: inherit; }

/* Paper on dark field green */
.crop-badge--on-dark {
  --crop-badge-ink: #f1f4ee;
  --crop-badge-face: #12291c;
  --crop-badge-edge: #2c4636;
}
/* <img> icons are pine in the file; turn them paper on dark */
.crop-badge--on-dark > img { filter: brightness(0) invert(.95) sepia(.08); }

/* Smaller, for product and dealer cards */
.crop-badges--compact {
  --crop-badge-cut: 5px;
  --crop-badge-icon: 16px;
  --crop-badge-size: 14px;
  gap: 6px;
}
.crop-badges--compact .crop-badge {
  min-height: 24px;
  gap: 4px;
  padding: 3px 10px 3px 6px;
}
