/* THE ICON SET — page kit, C.58j (owner 28.09.2026).
 *
 * Every icon is an inline SVG from `_kit_icon.html`: stroked in the text's
 * own colour, with the kit's one stroke width and size, round ends, and
 * the geometry the browser draws exactly at every pixel density. */

/* The icon's box is a default the host may overrule: a host class that
 * hides its icon until a state arrives (`.chosen-mark` before a file is
 * chosen) or the `hidden` attribute must win over the set's own display,
 * so the display stands at zero specificity. */
:where(.kit-icon) {
  display: inline-block;
}

.kit-icon {
  flex: none;
  width: var(--icon-size);
  height: var(--icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  shape-rendering: geometricPrecision;
  overflow: visible;
}

/* A control that switches between two states shows the icon of the
 * state it leads to: the retracted pane offers to expand, the expanded
 * pane offers to retract. Both icons stand in the markup; the control's
 * own `aria-pressed` decides which one is drawn. */
[aria-pressed="true"] > .kit-icon-when-off,
[aria-pressed="false"] > .kit-icon-when-on,
:not([aria-pressed]) > .kit-icon-when-on {
  display: none;
}
