/* =========================================================================
   Techlinkx Loop Builder — Brands Grid widget
   Editorial / minimal directory: big logo hero, name, device count, chevron.
   Self-contained design tokens (scoped) so it renders correctly anywhere.
   ========================================================================= */
.tlxlb-bx{
    --tlxlb-border:#e5e7eb;
    --tlxlb-border-strong:#d1d5db;
    --tlxlb-text:#1f2937;
    --tlxlb-text-dim:#6b7280;
    --tlxlb-text-faint:#9ca3af;
    --tlxlb-accent:#3b82f6;
    --tlxlb-cols:4;
    max-width:1080px;
    margin:0 auto;
    padding:0 4px;
    color:var(--tlxlb-text);
    font-family:inherit;
}
.tlxlb-bx *{box-sizing:border-box;}

/* ============= Breadcrumb ============= */
.tlxlb-bx-crumb{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    color:var(--tlxlb-text-dim);
    margin-bottom:22px;
}
.tlxlb-bx-crumb a{color:inherit;text-decoration:none;}
.tlxlb-bx-crumb a:hover{color:var(--tlxlb-accent);}
.tlxlb-bx-crumb__sep{color:var(--tlxlb-text-faint);}
.tlxlb-bx-crumb__now{color:var(--tlxlb-text);font-weight:500;}

/* ============= Header ============= */
.tlxlb-bx-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:32px;
    padding-bottom:22px;
    border-bottom:1px solid var(--tlxlb-border);
    margin-bottom:28px;
}
.tlxlb-bx-head__title{
    margin:0;
    font-size:44px;
    font-weight:700;
    letter-spacing:-0.03em;
    line-height:1;
    color:var(--tlxlb-text);
}
.tlxlb-bx-head__sub{
    margin:10px 0 0;
    font-size:13px;
    color:var(--tlxlb-text-dim);
    line-height:1.5;
}
.tlxlb-bx-head__sub strong{color:var(--tlxlb-text);font-weight:600;}

.tlxlb-bx-search{
    position:relative;
    width:240px;
    flex-shrink:0;
}
.tlxlb-bx-search input{
    width:100%;
    height:34px;
    padding:0 10px 0 30px;
    border:none;
    border-bottom:1px solid var(--tlxlb-border-strong);
    background:transparent;
    font:inherit;
    font-size:13px;
    color:var(--tlxlb-text);
    outline:none;
    transition:border-color .12s;
}
.tlxlb-bx-search input::placeholder{color:var(--tlxlb-text-faint);}
.tlxlb-bx-search input:focus{border-bottom-color:var(--tlxlb-text);}
.tlxlb-bx-search__icon{
    position:absolute;
    left:4px;
    top:50%;
    transform:translateY(-50%);
    color:var(--tlxlb-text-faint);
    pointer-events:none;
}

/* ============= Grid ============= */
.tlxlb-bx-grid{
    display:grid;
    grid-template-columns:repeat(var(--tlxlb-cols,4),minmax(0,1fr));
    gap:16px;
}

.tlxlb-bx-tile{
    position:relative;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid var(--tlxlb-border);
    border-radius:12px;
    overflow:hidden;
    color:inherit;
    text-decoration:none;
    transition:transform .12s ease,border-color .12s,box-shadow .12s;
}
.tlxlb-bx-tile:hover{
    transform:translateY(-2px);
    border-color:var(--tlxlb-border-strong);
    box-shadow:0 8px 20px rgba(15,23,42,0.06);
}
.tlxlb-bx-tile:hover .tlxlb-bx-tile__name{color:var(--tlxlb-accent);}
.tlxlb-bx-tile:hover .tlxlb-bx-tile__chev{transform:translateX(3px);color:var(--tlxlb-accent);opacity:1;}

/* Big logo hero — 2:1 (half the previous square height), never crops */
.tlxlb-bx-tile__hero{
    aspect-ratio:2 / 1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fafbfc;
    border-bottom:1px solid var(--tlxlb-border);
    padding:14px 18px;
    overflow:hidden;
}
.tlxlb-bx-tile__hero img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
}
.tlxlb-bx-tile__glyph{
    font-weight:800;
    font-size:clamp(34px,5vw,64px);
    line-height:0.9;
    letter-spacing:-0.05em;
    color:var(--tlxlb-text);
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    width:100%;
    white-space:nowrap;
    text-transform:uppercase;
}

.tlxlb-bx-tile__foot{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:14px 16px 16px;
}
.tlxlb-bx-tile__meta{display:flex;flex-direction:column;gap:2px;min-width:0;}
.tlxlb-bx-tile__name{
    font-size:16px;
    font-weight:600;
    letter-spacing:-0.012em;
    color:var(--tlxlb-text);
    line-height:1.2;
    transition:color .12s;
}
.tlxlb-bx-tile__count{
    font-size:12px;
    color:var(--tlxlb-text-dim);
    font-variant-numeric:tabular-nums;
}
.tlxlb-bx-tile__count strong{color:var(--tlxlb-text);font-weight:600;}

.tlxlb-bx-tile__chev{
    color:var(--tlxlb-text-faint);
    opacity:0.5;
    transition:transform .15s ease,color .12s,opacity .12s;
    display:flex;
    flex-shrink:0;
}

/* Filler tile to keep the last row tidy */
.tlxlb-bx-tile--ghost{
    background:transparent;
    border:1px dashed var(--tlxlb-border);
    pointer-events:none;
    min-height:100%;
}
.tlxlb-bx-tile--ghost:hover{transform:none;box-shadow:none;border-color:var(--tlxlb-border);}

/* ============= Empty state (search) ============= */
.tlxlb-bx-empty{
    padding:60px 8px;
    text-align:left;
    border-bottom:1px solid var(--tlxlb-border);
    border-top:1px solid var(--tlxlb-border);
    margin-top:18px;
}
.tlxlb-bx-empty__title{
    font-size:16px;
    font-weight:600;
    color:var(--tlxlb-text);
    margin-bottom:4px;
}
.tlxlb-bx-empty__sub{font-size:13px;color:var(--tlxlb-text-dim);}

/* ============= Footer ============= */
.tlxlb-bx-foot{
    margin-top:40px;
    font-size:12px;
    color:var(--tlxlb-text-faint);
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.tlxlb-bx-foot a{color:inherit;text-decoration:none;}
.tlxlb-bx-foot a:hover{color:var(--tlxlb-accent);}

/* ============= Responsive ============= */
@media(max-width:900px){
    .tlxlb-bx-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:680px){
    .tlxlb-bx-head{flex-direction:column;align-items:flex-start;gap:16px;}
    .tlxlb-bx-head__title{font-size:34px;}
    .tlxlb-bx-search{width:100%;}
    .tlxlb-bx-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
    .tlxlb-bx-tile--ghost{display:none;}
}
