/* EDITLAB: keep the original six images and draw the eye to the first row. */
.editrack:has(#home-content:not([hidden])) > .header {
  padding-block: 16px 8px;
}

.editrack:has(#home-content:not([hidden])) > .header .nav {
  margin-block-start: 8px;
  padding-block: 4px;
}

#home-content > .editorial-intro {
  padding-block: 20px 24px;
}

#home-content .editorial-kicker {
  margin-block-end: 8px;
  font-size: 0.75rem;
}

#home-content .editorial-headline {
  color: #191d1f;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

#home-content .editorial-lead {
  margin-block-start: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
}

#home-content .editorial-headline span,
#home-content .editorial-kicker,
#home-content .editorial-lead,
#home-content .editorial-caption > span,
#home-content .editorial-source {
  color: #505860;
}

#home-content > .editorial-six {
  padding-block-end: 32px;
}

#home-content .editorial-six .editorial-caption h2 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

#home-content .editorial-caption > span,
#home-content .editorial-source {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

/* Keep the disclosure in front of its list in both reading and tab order. */
#brand-directory .brands-toggle {
  margin: 0;
  min-height: 36px;
  max-width: 100%;
  padding: 4px 8px;
  color: #29333c;
  font-size: 0.875rem;
  text-align: start;
  font-variant-numeric: tabular-nums;
}

#brand-directory .brand-list:not([hidden]) {
  margin-block-start: 8px;
}

#brand-directory .brand-name { font-size: 0.8125rem; }
#brand-directory .brand-count { color: #505860; }

#collection .filters select {
  min-width: 0;
  max-width: 100%;
}

.editrack .header :is(a, button):focus-visible,
#home-content .editorial-six .editorial-category:focus-visible,
#collection :is(button, select):focus-visible,
#customer-service-dialog :is(button, a, summary):focus-visible,
#info-dialog :is(button, a, summary):focus-visible {
  outline: 2px solid #205e75;
  outline-offset: 2px;
}

/* Match the dialog styles' ID specificity and follow their mobile rules. */
#customer-service-dialog .csc-brand > span,
#customer-service-dialog .csc-kicker,
#customer-service-dialog .csc-section-heading > span,
#customer-service-dialog .csc-footer,
#customer-service-dialog .csc-eyebrow,
#info-dialog .bdg-brand > span,
#info-dialog .bdg-eyebrow,
#info-dialog .bdg-metric-label,
#info-dialog .bdg-conditions,
#info-dialog .bdg-cutoff-tag,
#info-dialog .bdg-returns-heading > span,
#info-dialog .bdg-address-kicker,
#info-dialog .bdg-address-name {
  color: #505860;
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

#customer-service-dialog .csc-caption,
#info-dialog .bdg-service-note,
#info-dialog .bdg-service-note :where(span, small, strong, em),
#info-dialog .bdg-delivery-note {
  color: #505860;
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#customer-service-dialog .csc-brand > span,
#info-dialog .bdg-brand > span {
  min-width: 0;
  max-width: none;
  text-align: end;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  #collection :is(.filters, .catalog-refinements) select:not([hidden]),
  #collection :is(.catalog-reset, .favorites-filter, #search-clear):not([hidden]),
  #collection .catalog-categories .chip:not([hidden]),
  #brand-directory button:not([hidden]),
  .editrack .header .header-tools > button:not([hidden]),
  .editrack .header .nav > :is(a, button.plain-button):not([hidden]),
  .editrack .business-footer .bf-links > button:not([hidden]),
  #customer-service-dialog .csc-delivery-link:not([hidden]) {
    min-height: 44px;
  }

  #brand-directory button:not([hidden]) {
    min-width: 44px;
  }
}

@media (max-width: 700px) {
  .editrack:has(#home-content:not([hidden])) > .header {
    padding-block: 8px 4px;
  }

  #home-content > .editorial-intro {
    padding: 12px 20px 16px;
  }

  #home-content > .editorial-six {
    padding-block-end: 24px;
  }
}

/* Product identifiers, policy notes and section labels stay legible on white. */
#product-page :is(.detail-observation, .detail-sku, .detail-policy, .detail-source-note),
#product-page .detail-facts dt,
#product-page .info-section-title > span {
  color: #505860;
}

#cart-dialog .cart-line-body > p {
  color: #505860;
}
