/* Keep the artwork centered in the framed marks used by the platform and booking headers. */
.platform-brand, .site-header-bar .site-brand {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.brand-mark:has(> img), .qj-business-hero-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  aspect-ratio: 1;
  overflow: hidden;
}

.brand-mark > img, .qj-business-hero-mark > img {
  display: block;
  inline-size: 76%;
  block-size: 76%;
  max-inline-size: 100%;
  max-block-size: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.qj-business-hero > :first-child {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

:is(.qc-brand, .dashboard-brand, .site-brand, .auth-brand, .owner-brand, .help-brand) > img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

/* Shared QJ navigation buttons */
:is(
  .platform-head > a[href="/centers/"]:not(.platform-brand),
  .qj-business > nav[aria-label="التنقل"] > a,
  .qja-page :is(.qja-sticky, .qja-actions) > a[href$="/admin/marketing/ads/"],
  .qj-page-actions > a.dashboard-account
):not([hidden]) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: .5rem .85rem;
  border: 1px solid #b0cfd3;
  border-radius: 10px;
  background: #f1f9fa;
  color: #13545d;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px #153f4810;
}
:is(
  .platform-head > a[href="/centers/"]:not(.platform-brand),
  .qj-business > nav[aria-label="التنقل"] > a,
  .qja-page :is(.qja-sticky, .qja-actions) > a[href$="/admin/marketing/ads/"],
  .qj-page-actions > a.dashboard-account
):not([hidden]):is(:hover, [aria-current="page"]) {
  background: #deeff1;
  border-color: #7aafb4;
  color: #0d454e;
  text-decoration: none;
}
:is(
  .platform-head > a[href="/centers/"]:not(.platform-brand),
  .qj-business > nav[aria-label="التنقل"] > a,
  .qja-page :is(.qja-sticky, .qja-actions) > a[href$="/admin/marketing/ads/"],
  .qj-page-actions > a.dashboard-account
):focus-visible {
  outline: 2px solid #087779;
  outline-offset: 3px;
}
.qj-business > nav[aria-label="التنقل"] {
  gap: .5rem;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  :is(.platform-head > a[href="/centers/"], .qj-business > nav[aria-label="التنقل"] > a, .qja-page .qja-sticky > a[href$="/admin/marketing/ads/"], .qj-page-actions > a.dashboard-account):not([hidden]) {
    padding-inline: .65rem;
  }
}
