/*
  placeholder-tile.css
  ---------------------------------------------------------------------
  A centred-content tile: stands in for a photo, icon, or avatar
  wherever a page's real media isn't available yet (an emoji, an
  initial, a glyph). Every page that uses this needs a different
  background, icon size, and shape, so all three are per-instance
  custom-property hooks rather than fixed choices - the same pattern
  .auto-grid uses for --min or .grid uses for --col-count.

  Requires: css/reset.css, css/core.css

  HTML STRUCTURE:
    <div class="placeholder-tile" style="--placeholder-bg: var(--color-accent);" aria-hidden="true">
      🎧
    </div>

  Always add aria-hidden="true" when the tile is decorative (the usual
  case) - the surrounding link or heading already carries the real
  accessible name. If the tile IS the only content (e.g. an avatar
  with no name text nearby), give it a real accessible name instead
  and drop aria-hidden.

  SIZING:
    Sits inside a sized parent (a fixed-aspect frame, a grid cell) in
    every current use, so width/height are the parent's job. For a
    tile that needs its own fixed size (an avatar circle), set
    inline-size/block-size directly on the element - that is real
    per-instance sizing, not a styling override the class should own.
  ---------------------------------------------------------------------
*/

@layer components {
  .placeholder-tile {
    display: grid;
    place-items: center;
    background: var(--placeholder-bg, var(--color-elevated));
    color: var(--placeholder-color, inherit);
    border-radius: var(--placeholder-radius, 0);
    font-size: var(--placeholder-size, 1.5rem);
    font-weight: var(--placeholder-weight, 400);
  }
}
