/* THE DEVELOPER STRIP'S MARKS: moved here unchanged from home.css on 30 November 2026, when the owner made
   every band a section a page's Body may place ("also all the "bands" are all to be in "section" that can be
   added in other places."). Loaded by the home page and by a page whose Body draws the strip (base.html,
   `placed_bands`), with devmark.js, which shows a mark once it has painted. */

/* The preview's developer strip is a row of names; ours draws the developer's
   own mark where the record has one, so the mark needs a size — without it an
   unbounded logo would set the strip's height. Capped to the line box the
   names sit on, so a strip of mixed marks and names stays level.

   The mark starts hidden and the NAME is the default state: `mark-ok` (home.js)
   is added only once the image has actually decoded. The strip therefore reads
   correctly while a mark is still in flight and when it 404s — every failure
   mode lands on the name rather than on an empty cell. It used to be the other
   way round (name hidden, restored by an `error` handler), and with the media
   host unreachable six of twelve cells rendered with no visible label at all:
   the requests were still pending, so no `error` had fired to restore them.

   `display:none` here is why the mark is NOT `loading="lazy"` in home.html, and
   that pairing is measured, not assumed: a lazy image with no box is never
   intersected, so it is never fetched. With both set, Chrome made ZERO requests
   for the three marks — before scrolling and after scrolling the strip to the
   centre of the viewport — and the logos were silently off. Eager is three
   small webp files on a page that already draws the strip. If this ever goes
   back to lazy, the hiding has to move to something that keeps a box. */
.dev img {
  display: none;
  height: 20px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
}

/* The mark is a LIGHT-THEME thing, and that is measured, not assumed. Every
   developer mark in the store is dark ink on a transparent ground — the three
   the live payload carries average a luminance of 42-63 over their opaque
   pixels — and .devstrip paints var(--surface), which is #1c1c1c in dark. A
   dark mark on that ground is not a faint logo, it is an empty cell. The
   payload has logo_dark for exactly this, and no row in the developers table
   populates it (0 of 455), so there is nothing to switch to: in dark the strip
   falls back to the name, which is what the approved preview draws anyway.
   When light/dark marks are uploaded, this block is where they are read. */
.dev.mark-ok img {
  display: block;
}
.dev.mark-ok .devname {
  display: none;
}
/* Both dark rules outrank their light counterparts on specificity, not on
   source order: (0,3,1) over (0,2,1) for the mark, (0,4,0) over (0,3,0) for
   the name. A reordering of this file cannot silently flip the strip. */
:root[data-skin="dark"] .dev img {
  display: none;
}
:root[data-skin="dark"] .dev .devname {
  display: block;
}
