/* Shared by the public Directory, business profiles and AI gateway headers. */
header a.wd-market-post[href],
header a.wd-market-products[href] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 40px;
  padding: .45rem .85rem;
  border: 1px solid #97671c;
  border-radius: .45rem;
  background: #f4c542;
  color: #302212;
  box-shadow: none;
  font: 700 .9rem/1.2 system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

header a.wd-market-products[href] {
  border-color: #a9c4eb;
  background: #fff;
  color: #174c9c;
}

header a.wd-market-post[href]:hover { background: #e9b632; color: #302212; }
header a.wd-market-products[href]:hover { background: #edf5ff; color: #103e82; }
header a.wd-market-post[href]:focus-visible,
header a.wd-market-products[href]:focus-visible {
  outline: 3px solid #1757b7;
  outline-offset: 2px;
}

.ds-header .ds-market-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: .5rem;
}
.ds-header .ds-market-actions a.wd-products-cta[href] { display: inline-flex; }

@media (max-width: 760px) {
  .dc-header-inner, .dc-header-actions, .ds-header .ds-header-inner,
  .ds-header .ds-header-actions { flex-wrap: wrap; }
  .dc-header-inner, .ds-header .ds-header-inner { row-gap: .4rem; }
  .dc-header .dc-header-actions { gap: .5rem; }
  .asg-profile__topbar { grid-template-columns: minmax(0, 1fr); }
  .asg-profile__topactions { flex-wrap: wrap; justify-content: flex-start; gap: .5rem; }
  .dp-header .dp-account-actions { flex-wrap: wrap; justify-content: flex-start; gap: .45rem; }
  .discovery-header .discovery-header-actions { flex-wrap: wrap; gap: .5rem; }
}
@media (max-width: 560px) {
  header a.wd-market-products[href], header a.wd-market-post[href] {
    min-height: 36px;
    padding: .4rem .6rem;
    font-size: .82rem;
  }
  #siteHeader .header-actions > .wd-products-cta { display: none; }
}
