/* Original brand artwork. Load after experience.css and selection.css. */
.brand-mark {
  --brand-width: 120px;
  --brand-height: 48px;
  --brand-image-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: var(--brand-width);
  max-width: 100%;
  min-width: 0;
  height: var(--brand-height);
  min-height: 44px;
  padding: 0;
  border-radius: 6px;
  color: #051f20;
  line-height: 1.4;
  text-decoration: none;
  vertical-align: middle;
}
.brand-mark > img.brand-mark-image {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  min-width: 0;
  max-width: 100%;
  max-height: var(--brand-image-height);
  margin: 0;
  object-fit: contain;
  object-position: left center;
}
.brand-mark-label { color: inherit; font-size: 14px; line-height: 1.4; font-weight: 750; letter-spacing: -.02em; overflow-wrap: anywhere; }
.brand-mark--strip { --brand-width: 120px; --brand-height: 48px; --brand-image-height: 48px; }
.brand-mark--card { --brand-width: 110px; --brand-height: 44px; --brand-image-height: 30px; }
.brand-mark--detail { --brand-width: 160px; --brand-height: 52px; --brand-image-height: 52px; }
.brand-mark--directory { --brand-width: 180px; --brand-height: 70px; --brand-image-height: 70px; }
.brand-mark--heading { --brand-width: 180px; --brand-height: 64px; --brand-image-height: 64px; }
.brand-mark--quiz { --brand-width: 110px; --brand-height: 44px; --brand-image-height: 30px; }
.brand-mark--card .brand-mark-label, .brand-mark--quiz .brand-mark-label { font-size: 12px; letter-spacing: 0; }
.brand-mark--detail .brand-mark-label { font-size: 17px; }
.brand-mark--directory .brand-mark-label, .brand-mark--heading .brand-mark-label { font-size: 21px; }
.brand-mark.brand-mark--dark { justify-content: center; padding: 5px 9px; border-radius: 8px; background: #0b2b26; color: #fff; }
.brand-mark.brand-mark--dark:hover { color: #fff; }
.brand-mark--dark > img.brand-mark-image { max-height: min(var(--brand-image-height), calc(var(--brand-height) - 10px)); object-position: center; }
a.brand-mark:focus-visible { outline: 3px solid #235347; outline-offset: 4px; }
a.brand-mark:active { background: #daf1de; }
a.brand-mark--dark:active { background: #163832; }
.brand-mark.is-logo-missing > .brand-mark-image { display: none; }
.brand-mark.is-logo-missing > .brand-mark-label {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 0;
}

/* All seven primary brands stay visible; the grid wraps instead of clipping. */
.brand-strip.brand-strip--logos {
  display: grid;
  grid-template-columns: minmax(132px, 1.2fr) repeat(7, minmax(0, 1fr));
  align-items: center;
  justify-content: stretch;
  gap: 14px 18px;
  padding-top: 19px;
  padding-bottom: 19px;
}
.brand-strip--logos > span:not(.brand-mark), .brand-strip--logos > p { min-width: 0; margin: 0; color: #52655b; font-size: 13px; line-height: 1.5; }
.brand-strip--logos > .brand-mark { justify-content: center; justify-self: center; min-height: 48px; }
.brand-strip--logos > .brand-mark > .brand-mark-image { object-position: center; }
.brand-strip--logos .brand-mark-label { color: inherit; font-size: 14px; line-height: 1.4; text-align: center; }

/* Equal logo regions keep the price cards aligned; SKU text remains available. */
.product-meta.brand-product-meta {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 4px 10px;
  min-width: 0;
  min-height: 44px;
  margin: 10px 0 7px;
  text-transform: none;
}
.product-meta.brand-product-meta > .brand-mark { justify-self: start; }
.product-meta.brand-product-meta > .sku,
.catalog-products .product-meta.brand-product-meta > .sku {
  display: block;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  color: #52655b;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 450;
  letter-spacing: 0;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}
.detail-brand-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 19px; min-width: 0; margin: 0 0 15px; }
.detail-brand-row > .brand-mark { max-width: 100%; }
.detail-brand-collection { min-width: 0; max-width: 100%; color: #52655b; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.brand-card > .brand-mark--directory { max-width: 100%; margin: 0; }
.brand-card > .brand-mark--directory:has(+ h2:not(.sr-only)) { display: none; }
.catalog-brand-logo { display: flex; align-items: center; min-width: 0; max-width: 100%; margin: 0 0 16px; }
.catalog-brand-logo.brand-mark--heading { display: inline-flex; }
#selection-dialog.nfq-dialog div.nfq-product-brand { display: flex; align-items: center; min-width: 0; min-height: 44px; margin: -5px 0 9px; padding: 0; line-height: 1.4; text-transform: none; letter-spacing: 0; }
#selection-dialog.nfq-dialog .nfq-product-brand > .brand-mark { max-width: 100%; }

@media (max-width: 1180px) {
  .brand-strip.brand-strip--logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
  .brand-strip--logos > span:not(.brand-mark), .brand-strip--logos > p { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .brand-strip.brand-strip--logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; padding-top: 17px; padding-bottom: 17px; }
  .brand-strip--logos > span:not(.brand-mark), .brand-strip--logos > p { margin-bottom: 2px; font-size: 13px; }
  .product-meta.brand-product-meta { grid-template-columns: minmax(0, 1fr); gap: 1px; margin-top: 8px; margin-bottom: 9px; }
  .product-meta.brand-product-meta > .sku,
  .catalog-products .product-meta.brand-product-meta > .sku { grid-column: 1; justify-self: start; display: block; text-align: left; }
  .detail-brand-row { gap: 8px 14px; margin-bottom: 13px; }
  .detail-brand-collection { font-size: 13px; }
  .catalog-brand-logo { margin-bottom: 14px; }
}
@media (max-width: 380px) {
  .brand-strip.brand-strip--logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Signature’s original wordmark includes a dark rectangular background. */
.brand-mark[data-brand="signature"] > .brand-mark-image { border-radius: 3px; }
.brand-mark--card[data-brand="signature"], .brand-mark--quiz[data-brand="signature"] { --brand-image-height: 42px; }
