/* Consistent treatment for genuine brand marks. Do not generate surrogate logos. */
.brand-directory .brand-card[aria-label="Levity" i] .brand-logo-mark--wordmark{
  color:#111936!important;
  font-size:clamp(28px,3vw,40px);
  font-weight:850;
}
.brand-directory .brand-card{
  min-width:0; min-height:158px; padding:18px;
  background:#fff; border-radius:16px;
  box-shadow:0 6px 22px -20px rgba(20,44,65,.28);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
/* Override the shared inner-page card border for the Brands directory. */
body:not(.home) .brand-directory .brand-card{
  border:3px solid #a8bab6!important;
}
body .brand-directory .brand-card:hover{
  border-color:#94b6ad!important; box-shadow:0 14px 30px -22px rgba(20,44,65,.36);
  transform:translateY(-2px);
}
.brand-directory .brand-card:focus-visible,.home-all-brands .roster-chip:focus-visible{
  outline:3px solid #227f72;outline-offset:3px;
}
.brand-directory .brand-card__badge.brand-logo-mark--image{
  box-sizing:border-box; width:100%; height:108px; padding:8px 12px;
  background:transparent; border:0; box-shadow:none;
}
.brand-directory .brand-card__badge img{
  width:100%;height:100%;max-width:205px;max-height:90px;
  object-fit:contain;object-position:center;display:block;
}
/* Give the smaller marks more room inside the directory cards. */
.brand-directory .brand-card:is([aria-label="Crescent 9" i], [aria-label="Cycling Frog" i], [aria-label="Farmer's Secret" i], [aria-label="Hemp & Tea Company" i], [aria-label="High Spirits" i]) .brand-card__badge.brand-logo-mark--image{
  padding:3px 6px;
}
.brand-directory .brand-card:is([aria-label="Crescent 9" i], [aria-label="Cycling Frog" i], [aria-label="Farmer's Secret" i], [aria-label="Hemp & Tea Company" i], [aria-label="High Spirits" i]) .brand-card__badge img{
  width:100%;
  height:100%;
  max-width:205px;
  max-height:100%;
}
/* Give the same smaller marks more room in the homepage grid and fridge. */
:is(.home-all-brands .roster-chip__badge, .clean-fridge .clean-fridge__mark) img:is(
  [src*="Crescent-9-logo"], [src*="Cycling-Frog-logo"], [src*="Farmers-Secret-logo"],
  [src*="Hemp-Tea-Company-logo"], [src*="High-Spirits-official-logo"]
){
  max-width:100%;
  max-height:100%;
}
body :is(.home-all-brands .roster-chip__badge, .clean-fridge .clean-fridge__mark):has(img:is(
  [src*="Crescent-9-logo"], [src*="Cycling-Frog-logo"], [src*="Farmers-Secret-logo"],
  [src*="Hemp-Tea-Company-logo"], [src*="High-Spirits-official-logo"]
)){
  height:clamp(76px,10vw,100px);
}
/* Recolor the official white wordmark on light logo surfaces. */
:is(.home-all-brands .roster-chip__badge,
    .brand-directory .brand-card__badge,
    .clean-fridge .clean-fridge__mark,
    .brand-band .brand-band__badge) img[src*="Moontide-official-beverage-wordmark"]{
  filter:brightness(0) saturate(100%) invert(13%) sepia(24%) saturate(1470%) hue-rotate(175deg) brightness(88%)!important;
}
.brand-directory .brand-card__badge.brand-logo-mark--dark:has(> img[src*="Moontide-official-beverage-wordmark"]){
  background:transparent!important;
}
.brand-directory .brand-logo-mark--wordmark{
  display:flex;align-items:center;justify-content:center;
  min-height:108px;width:100%;padding:12px;box-sizing:border-box;
  font-family:var(--font-display,sans-serif);font-weight:750;
  font-size:clamp(22px,2vw,29px);letter-spacing:-.035em;
  color:#1c244b;text-align:center;line-height:1.1;
}
.home .home-all-brands .roster-chip{
  border-radius:14px;min-height:112px;border:1px solid transparent;
  transition:background .2s,border-color .2s;
}
.home .home-all-brands .roster-chip:hover{background:#f7faf9!important;border-color:#e0e6e4}
.home .home-all-brands .roster-chip__badge{height:82px}
.home .home-all-brands .roster-chip img{max-height:75px;max-width:185px}
.brand-band__badge.brand-logo-mark--image{
  background:rgba(255,255,255,.96)!important; border:1px solid rgba(255,255,255,.6);
  box-shadow:0 8px 22px -18px rgba(4,19,21,.28);
}
.brand-band__badge.brand-logo-mark--image img{
  object-fit:contain;object-position:center;max-width:100%;max-height:100%;
}
@media(max-width:720px){
 .brand-directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .brand-directory .brand-card{min-height:120px;padding:10px;border-radius:12px}
 .brand-directory .brand-card__badge.brand-logo-mark--image{height:88px;padding:6px}
 .brand-directory .brand-card__badge img{max-height:76px;max-width:100%}
 .brand-directory .brand-logo-mark--wordmark{min-height:88px;font-size:clamp(18px,4.7vw,26px)}
 .home .home-all-brands .roster-chip{min-height:98px;padding:10px}
 .home .home-all-brands .roster-chip img{max-height:65px}
}
@media(prefers-reduced-motion:reduce){
 .brand-directory .brand-card,.home .home-all-brands .roster-chip{transition:none}
 .brand-directory .brand-card:hover{transform:none}
}

/* Inset desktop frame without changing the storefront layout. */
@media(min-width:1024px) and (hover:hover) and (pointer:fine){
 body::after{
  content:"";
  position:fixed;
  inset:6px;
  border:1px solid #a8bab6;
  pointer-events:none;
  z-index:99;
 }
}
