/* Logos: .ats-logo + size variants. Inline SVG scales to the box; PNG fallbacks use object-fit: contain. */
.ats-logo {
  --ats-logo-size: 40px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--ats-logo-size);
  height: var(--ats-logo-size);
  line-height: 0;
  vertical-align: middle;
}
.ats-logo--xs { --ats-logo-size: 20px; }
.ats-logo--sm { --ats-logo-size: 28px; }
.ats-logo--md { --ats-logo-size: 40px; }
.ats-logo--lg { --ats-logo-size: 64px; }
.ats-logo__svg, .ats-logo__img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Inside a tile / avatar box the mark sits on padding so it never touches the edge. */
.ats-avatar.ats-logo .ats-logo__svg,
.ats-avatar.ats-logo .ats-logo__img { width: 62%; height: 62%; }
.ats-avatar.ats-logo--png .ats-logo__img { width: 70%; height: 70%; }
.ats-avatar--tile.ats-logo .ats-logo__svg { width: 56%; height: 56%; }
.ats-logo--letter { font-weight: 700; font-size: calc(var(--ats-logo-size) * 0.42); line-height: 1; }
/* Small inline platform mark next to a link label. */
.ats-plat { display: inline-flex; align-items: center; gap: .5rem; }
.ats-plat .ats-logo { --ats-logo-size: 16px; }
.ats-logo--provider { border-radius: 8px; }
.ats-btn .ats-logo, .ats-store .ats-logo { --ats-logo-size: 16px; margin-right: .1rem; }
.tp-links .ats-plat { display: flex; }
.gp-icon--brand { background: var(--color-surface); border: 1px solid var(--color-border); }
.gp-icon--brand .ats-logo__svg { width: 58%; height: 58%; }
.md-tile--logo { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 24%; width: var(--ats-logo-size); height: var(--ats-logo-size); }
.md-tile--logo .ats-logo__svg { width: 58%; height: 58%; }
.tp-links a.ats-plat { display: flex; justify-content: flex-start; align-items: center; gap: .6rem; }
.tp-links a.ats-plat > span:last-child { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
/* Brand tile: platform/model mark on a white surface = solid brand-colour tile + WHITE mark. Colour map lives in
   aitoolsense_brand_tile_color() (inc/logos.php), passed as --tile-bg. No gradients. */
.ats-logo--tile { background: var(--tile-bg, var(--color-accent-2)); border: 0; border-radius: 24%; color: #fff; }
.ats-logo--tile .ats-logo__svg, .ats-logo--tile .ats-logo__img { width: 58%; height: 58%; filter: brightness(0) invert(1); }
.ats-logo--tile.md-tile--logo, .ats-logo--tile.gp-icon--brand { background: var(--tile-bg, var(--color-accent-2)); border: 0; }
