/* Megaflip Trading logo tiles: one glass tile, the plate follows each firm's own logo background.
   Source of truth: academy/logos.py + site/assets/logos/sources.json. Logos are never recoloured or stretched. */
.lg{position:relative;flex:none;display:inline-grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;overflow:hidden;border-radius:14px;isolation:isolate;
  padding:8px 12px;width:116px;height:46px;vertical-align:middle;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,255,255,.08),0 14px 26px -16px rgba(0,0,0,.9),0 2px 6px -2px rgba(0,0,0,.5)}
.lg img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
/* soft top light: the touch of 3D */
.lg::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;
  background:linear-gradient(160deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,.04) 38%,rgba(255,255,255,0) 60%)}
.lg-ink{background:radial-gradient(120% 140% at 30% 0%,#1A3266 0%,#0F2147 55%,#0A1A38 100%)}
.lg-paper{background:radial-gradient(120% 140% at 30% 0%,#FFFFFF 0%,#F2F5FA 60%,#E3E9F2 100%);
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(10,28,61,.16),inset 0 0 0 1px rgba(10,28,61,.06),0 14px 26px -16px rgba(0,0,0,.9),0 2px 6px -2px rgba(0,0,0,.5)}
.lg-paper::after{background:linear-gradient(160deg,rgba(255,255,255,.7) 0%,rgba(255,255,255,0) 45%)}
.lg-black{background:radial-gradient(120% 140% at 30% 0%,#1C1C1C 0%,#050505 60%,#000 100%)}
.lg-sm{width:84px;height:34px;padding:6px 9px;border-radius:10px}
.lg-lg{width:188px;height:72px;padding:12px 18px;border-radius:18px}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .lg{transition:transform .35s var(--ease,ease),box-shadow .35s var(--ease,ease)}
  a:hover .lg,a:focus-visible .lg,.lg-lift:hover{transform:perspective(700px) rotateX(9deg) translateY(-2px)}
}

/* prop firm hub rows: tile beside the name, the name column gets the room */
.pf-firm-n{display:flex;align-items:center;gap:14px;min-width:0}
.pf-firm-n>span{min-width:0}
/* wide rows: tile above the name, so long names keep one or two lines */
@media (min-width:1080px){.pf-firm-n{flex-direction:column;align-items:flex-start;gap:12px}
  .pf-firm-a{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,.9fr) auto}}
@media (max-width:420px){.pf-firm-n .lg{width:96px;height:40px}}
/* tables: tile above the name */
.pf-table th .lg,.bk-table th .lg{display:grid;margin:0 0 8px}
/* profiles and featured */
.sx-head>.lg{margin:0 0 18px}
.bk-feat .lg{margin:0 0 14px}
/* compare columns */
.cmp-col .lg{margin:0 0 2px}
@media (max-width:759px){.cmp-col .lg{width:100%;max-width:96px;height:36px;padding:6px 8px;border-radius:10px}}
/* card grids */
.sx-card .lg{margin:0 0 12px}
