﻿/* Lior video-review fixes (docs/reviews/2026-08-28-lior-video-review.md) - logos stream.
   Loads AFTER the generated page.css; survives port-page.mjs regeneration. */

/* === V1: client logos stretch to the full tile width (review 00:54 + 6 more pages) ===
   Root cause: every product/tool page.css defines its logo-strip images capped at
   140x52 (mobile 79x30), but a later width-proofing patch in the same files
   ("logo strip - width-proof grid, 2026-08-26 W02") re-declares
   `.trust-chip img, .trusted-tile img, .trusted-chip img { max-width: 100% }`
   UNSCOPED. Equal specificity + later in the file means the 140px cap is lost at
   desktop AND the 79px cap is lost on mobile (only the 768-1023 band re-caps
   afterwards). Logo sources are @2x exports (up to 280px wide), so wide-aspect
   logos (Revolution, Dream Big, CRM Properties, Trident, Keyrenter...) grow until
   they hit the tile edge (198px in a 200px tile) while compact logos stay small.
   Affected: super-crm (.trusted-tile), super-broker (.trusted-chip), and
   super-pm / super-bdm / lead-finder / property-analyzer / investor-dashboard /
   asset-management (.trust-chip). Home's .trust-logos strip is a different,
   correct pattern - deliberately untouched.
   Fix: this file loads after every page.css, so these declarations win the
   cascade and restore the intended caps uniformly on all ported pages, per band.
   min(...,100%) keeps the W02 no-overflow guarantee in narrow tiles. Tile
   heights are untouched, so section height does not change. */
.trusted-tile img,
.trust-chip img,
.trusted-chip img {
  max-width: min(140px, 100%);
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain; /* super-pm/super-bdm shipped `cover` here; contain is the safe uniform value */
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* tablet band keeps the W02 values all pages already use */
  .trusted-tile img,
  .trust-chip img,
  .trusted-chip img {
    max-width: min(92px, 100%);
    max-height: 34px;
  }
}
@media (max-width: 767px) {
  /* mobile cap restored (the W02 100% rule was overriding it); 79x30 is the
     value 7 of the 8 pages declare - super-bdm's 82x36 is normalized to match,
     per Lior's "all client-logo sections must render identically" (18:39) */
  .trusted-tile img,
  .trust-chip img,
  .trusted-chip img {
    max-width: min(79px, 100%);
    max-height: 30px;
  }
}
