/**
 * @file
 * Default colors for Solar icon set SVGs.
 *
 * Overrides the inline stroke="black" / fill="black" from the SVG source files
 * with currentColor so icons inherit their parent's text color.
 */

/* The line-duotone / linear styles use BOTH stroked paths and filled paths:
   the main shape is often a fill="black" path (e.g. the cart body, the mailbox
   body) while the "duo" details are opacity:0.5 strokes. Recolor each role to
   currentColor. Do NOT blanket `fill: none` — that erased the filled shapes and
   left only the faint stroke details (the cart looked empty). !important is
   needed because contextual rules (gin navigation toolbar, sticky local tasks)
   set fill on icon SVGs with higher specificity. */
.solar-ld [stroke],
.solar-linear [stroke] {
  stroke: currentColor !important;
}

.solar-ld [fill="black"],
.solar-linear [fill="black"] {
  fill: currentColor !important;
}

/* The svg root and stroke-only paths stay unfilled, even under contextual fill
   rules — otherwise gin's toolbar fill rule would flood the stroke shapes. */
.solar-ld,
.solar-linear,
.solar-ld [stroke]:not([fill]),
.solar-linear [stroke]:not([fill]) {
  fill: none !important;
}

/* When Gin is active, default icon color to the title color. */
[data-gin-accent] .solar-ld,
[data-gin-accent] .solar-linear {
  color: var(--gin-color-title);
}

/* Navigation toolbar: use Gin primary for icon strokes. */
[data-gin-accent] .toolbar-button .solar-ld,
[data-gin-accent] .toolbar-button .solar-linear {
  color: var(--gin-color-primary);
}
