/* Ukiyo-e icons (design-system.md, Icons): woodblock colours inside a near-black outline, so
   they keep their own and never take the text's. A state's colour lives on its tint and in its
   words; the icon only says which state it is. Sized in em, so they grow with the user's text. */
@layer components {
  .icon {
    display: inline-block; /* the reset makes images blocks; an icon sits in its line of text */
    flex: none;
    inline-size: 1.25em;
    block-size: 1.25em;
    vertical-align: -0.3em;
  }

  /* On a dark page the outline sinks into the background: a hairline of light gives it back. */
  @media (prefers-color-scheme: dark) {
    .icon { filter: drop-shadow(0 0 1px rgb(250 249 252 / 0.9)) drop-shadow(0 0 1px rgb(250 249 252 / 0.5)); }
  }

  /* A sign-in link to copy: the clipboard beside the field that holds it. */
  .link-copy { display: flex; align-items: center; gap: var(--inline-space-half); }
  .link-copy input { flex: 1; min-inline-size: 0; }

  /* An alert's state, at the size the round glyph had. */
  .icon--state { inline-size: 1.5rem; block-size: 1.5rem; }
}
