.brand.brand--logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 184px;
  height: 38px;
  font-weight: 800;
  letter-spacing: .2px;
  overflow: visible;
}

.brand.brand--logo .brand__image {
  position: absolute;
  left: 0;
  top: -7px;
  display: block;
  width: auto;
  height: 52px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .34));
  image-rendering: auto;
}

.brand.brand--logo.brand--public-logo .brand__early-access {
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid rgba(208, 88, 105, .42);
  border-radius: 999px;
  background: rgba(112, 20, 42, .22);
  color: rgba(255, 238, 242, .92);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateY(-50%);
}

@media (max-width: 767.98px) {
  .brand.brand--logo {
    flex: 1 1 auto;
    min-width: 0;
    width: 160px;
    height: 34px;
    gap: 9px;
    font-size: 1rem;
    white-space: nowrap;
  }

  .brand.brand--logo .brand__image {
    top: -11px;
    height: 56px;
    max-width: none;
  }

  .brand.brand--logo.brand--public-logo .brand__image {
    top: -7px;
    height: 48px;
  }

  .brand.brand--logo.brand--public-logo .brand__early-access {
    left: 172px;
    right: auto;
    top: 50%;
    min-height: 18px;
    padding: 3px 6px;
    font-size: 8px;
    transform: translateY(-50%);
  }
}

@media (min-width: 768px) {
  .brand.brand--logo.brand--panel-logo {
    width: 156px;
    height: 34px;
  }

  .brand.brand--logo.brand--panel-logo .brand__image {
    top: -5px;
    height: 44px;
  }
}

@media (max-width: 430px) {
  .brand.brand--logo {
    width: 154px;
    height: 32px;
    gap: 8px;
    font-size: .96rem;
    letter-spacing: .12px;
  }

  .brand.brand--logo .brand__image {
    top: -10px;
    height: 52px;
    max-width: none;
  }

  .brand.brand--logo.brand--public-logo .brand__image {
    top: -6px;
    height: 44px;
  }

  .brand.brand--logo.brand--public-logo .brand__early-access { left: 158px; }
}

@media (max-width: 390px) {
  .brand.brand--logo {
    width: 146px;
    height: 30px;
    gap: 7px;
    font-size: .91rem;
  }

  .brand.brand--logo .brand__image {
    top: -9px;
    height: 48px;
    max-width: none;
  }

  .brand.brand--logo.brand--public-logo .brand__image {
    top: -5px;
    height: 40px;
  }

  .brand.brand--logo.brand--public-logo .brand__early-access { left: 145px; }
}

/* The original Dark image keeps every existing size/shadow rule. The Light
   wordmark is a real transparent asset, not a recoloured/filtered logo. */
.brand.brand--logo .brand__image--light {
  display: none;
}

html[data-theme="light"]:not([data-theme-scope="admin"]) .brand.brand--logo .brand__image--dark {
  display: none;
}

html[data-theme="light"]:not([data-theme-scope="admin"]) .brand.brand--logo .brand__image--light {
  display: block;
  filter: none;
}

html[data-theme="light"]:not([data-theme-scope="admin"]) .brand.brand--logo.brand--public-logo .brand__early-access {
  border-color: var(--yk-public-border, rgba(80, 62, 46, .18));
  background: var(--yk-public-secondary, #eee7de);
  color: var(--yk-public-link, #861a33);
}
