/* Homepage-only placement and contact badges. */
.directory-site .banner-wall > .banner-slot {position:relative}
.directory-site .banner-wall > .banner-slot:nth-child(-n+10) {grid-column:1 / -1}
.directory-site .banner-wall .banner-contact-badge {
 position:absolute;inset-inline-end:6px;inset-block-end:5px;z-index:1;
 padding:4px 7px;border-radius:4px;background:#10232f;color:#fff;
 font-size:11px;font-weight:700;line-height:1;white-space:nowrap;pointer-events:none;
}
@media(max-width:760px){
 .directory-site .banner-wall {grid-template-columns:minmax(0,1fr);gap:8px}
}
@media(min-width:761px){
 .directory-site .banner-wall {--banner-half-column-gap:5px}
 .directory-site .banner-slot {height:90px;width:fit-content;max-width:100%;justify-self:center;background:transparent;box-shadow:none}
 .directory-site .banner-slot img {display:block;width:auto;max-width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
 .directory-site .banner-wall > .banner-slot:nth-child(-n+10) {
  /* Span from the outside edges of the two centered 540px-max short slots. */
  width:min(100%,calc(50% + 540px + var(--banner-half-column-gap)));
  background:#17323f;
 }
 .directory-site .banner-wall > .banner-slot:nth-child(-n+10) img {margin-inline:auto}
}
@media(min-width:761px) and (max-width:820px){
 .directory-site .banner-wall {--banner-half-column-gap:2px}
}

/* Style only the directory's own stock banner artwork; advertiser uploads keep their image. */
.directory-site .banner-wall > .banner-slot:has(> img[src^="/assets/banners/banner-"][src$=".svg"]) {
 background:linear-gradient(100deg,#142d3a,#1a3d49);
 outline:1px solid #426573;outline-offset:-1px;
}
.directory-site .banner-wall > .banner-slot:has(> img[src^="/assets/banners/banner-"][src$=".svg"]) > img {opacity:0}
.directory-site .banner-wall > .banner-slot:has(> img[src^="/assets/banners/banner-"][src$=".svg"]) > .banner-contact-badge {
 inset:0;display:grid;place-items:center;padding:0 8px;background:none;
 color:#edf8fb;font-size:clamp(14px,3.8vw,20px);line-height:1.2;letter-spacing:-.02em;
}
.directory-site .banner-wall > .banner-slot:has(> img[src^="/assets/banners/banner-"][src$=".svg"]):focus-visible {
 outline:2px solid #b9e7f1;outline-offset:-3px;
}
