/* Logo codes — cards printed by bb_logo_qr() (includes/social.php), drawn by js/logo_qr.js. */
.lq-wrap { padding: 12px 14px 16px; }
.lq-wrap .lq-hint { text-align: center; font-size: 17px; color: var(--px-dim); margin-bottom: 10px; line-height: 1.2; }
.lq-row  { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.lq-card {
  flex: 1 1 150px; max-width: 216px; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--px-panel2); border: 3px solid var(--px-dk);
  box-shadow: 4px 4px 0 var(--px-sh);
  padding: 10px 10px 12px; text-align: center;
  container-type: inline-size;
}
.lq-name { font-size: 20px; color: var(--px-gold); letter-spacing: .06em; line-height: 1; }
/* Long names (BUY ME A COFFEE) shrink to stay on one line, so the codes in a row line up.
   --n is the name's length, set by bb_logo_qr(). */
@supports (container-type: inline-size) {
  .lq-name { font-size: clamp(14px, calc(100cqi / (var(--n, 10) * .6)), 20px); white-space: nowrap; }
}

/* The code: js/logo_qr.js sizes the canvas to whole device pixels per module, centred in here. */
.lq-face {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 176px; aspect-ratio: 1;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lq-face:focus-visible { outline: 3px solid var(--px-hi); outline-offset: 3px; }
.lq-canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}

.lq-card .lq-link { font-size: 20px; color: var(--px-hi); text-decoration: none; overflow-wrap: anywhere; line-height: 1.1; }
.lq-card .lq-link:hover { text-decoration: underline; }
.lq-card .lq-where { font-size: 16px; color: var(--px-dim); line-height: 1.15; margin: 0; }
