 .directory-tools { display:flex; align-items:flex-end; justify-content:space-between; gap:1.25rem; flex-wrap:wrap; margin-bottom:1rem; }
.directory-search { display:flex; flex-direction:column; gap:.4rem; width:min(100%,22rem); font-size:.85rem; }
.directory-search input { width:100%; min-height:48px; border-radius:999px; border:1px solid var(--border); background:#ffffff0c; padding:.7rem 1rem; color:var(--text); }
.brand-tile h3 { line-height:1.3; }
.brand-grid[data-publisher-grid] { grid-template-columns:repeat(auto-fill,minmax(135px,1fr)); gap:.85rem; }
.brand-tile.brand-logo-tile { display:grid; place-items:center; min-block-size:4.5rem; padding:.4rem; border:0; border-radius:0; background:none; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.brand-tile.brand-logo-tile::before { display:none; }
.brand-tile.brand-logo-tile:hover { background:none; border:0; box-shadow:none; }
.brand-logo-tile .brand-mark { width:100%; height:4.25rem; margin:0; padding:0; border:0; border-radius:0; background:none; color:var(--text); }
.brand-logo-tile .brand-mark img { width:100%; height:4.25rem; max-height:4.25rem; object-fit:contain; }
.featured-brand-grid .brand-logo-tile { cursor:default; }
.featured-brand-grid .brand-logo-tile:hover { translate:none; scale:1; }
@media(hover:hover) and (pointer:fine) { a.brand-logo-tile:hover img { filter:drop-shadow(0 0 8px #f4b4e16b); } }
@media(max-width:520px) { .brand-grid[data-publisher-grid] { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; } .brand-logo-tile .brand-mark,.brand-logo-tile .brand-mark img { height:3.5rem; max-height:3.5rem; } }
/* October 2026 editorial review. */
.page-hero-image { aspect-ratio:16/9; }
.featured-brand-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(1rem,3vw,2.5rem); align-items:center; }
.featured-brand-grid .brand-mark img { filter:brightness(0) invert(1); }
.brand-grid[data-publisher-grid] { grid-template-columns:repeat(5,minmax(0,1fr)); gap:2.5rem 2rem; padding-block:1.5rem; }
.brand-grid[data-publisher-grid] .brand-logo-tile { min-height:100px; padding:.75rem; }
.brand-grid[data-publisher-grid] .brand-mark { height:64px; }
.brand-grid[data-publisher-grid] .brand-mark img { max-height:64px; filter:none; }
.brand-name-fallback { font-size:clamp(1.1rem,2vw,1.8rem); font-weight:700; letter-spacing:-.04em; }
.brand-grid[data-publisher-grid] .brand-elle .brand-name-fallback { font-family:Georgia,serif; }
@media(max-width:1000px) { .brand-grid[data-publisher-grid] { grid-template-columns:repeat(4,minmax(0,1fr)); } .featured-brand-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { .brand-grid[data-publisher-grid] { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem .75rem; } .brand-grid[data-publisher-grid] .brand-logo-tile { padding:.25rem; } }

.page-hero-image::after { display:none; }

/* One continuous surface keeps dark original wordmarks legible without boxed tiles. */
#all-brands { --text:#38204f; --text-muted:#634a78; --text-subtle:#705782; --border:#8f4ca52c; --border-bright:#ad47b375; --bg-glass:#ffffff30; color:var(--text); background:linear-gradient(135deg,#f5eaf5,#e5dbf5); }
#all-brands .directory-search input { color:var(--text); background:#ffffff60; }
#all-brands .directory-search input::placeholder { color:var(--text-muted); }
#all-brands .eyebrow { color:#913570; }
#all-brands .brand-gempak img { filter:drop-shadow(0 1px 1px #3c164f); }
