/* The supplied artwork is preserved as transparent PNGs. Cropped CSS viewports
   reflow its mark and wordmark without stretching or redrawing either one. */
:root {
  --paw-logo-image: url("/dog/assets/brand-logo-en.png");
  --paw-logo-mark-ratio: 730 / 620;
  --paw-logo-mark-size: 171.780822% 202.258065%;
  --paw-logo-mark-position: 52.290076% 26.81388%;
  --paw-logo-name-ratio: 1048 / 204;
  --paw-logo-name-size: 119.656489% 614.705882%;
  --paw-logo-name-position: 55.339806% 78.571429%;
}
:root:lang(zh) {
  --paw-logo-image: url("/dog/assets/brand-logo-zh-horizontal.png");
  --paw-logo-mark-ratio: 765 / 620;
  --paw-logo-mark-size: 279.346405% 118.709677%;
  --paw-logo-mark-position: 4.373178% 63.793103%;
  --paw-logo-name-ratio: 1248 / 322;
  --paw-logo-name-size: 171.233974% 228.571429%;
  --paw-logo-name-position: 93.925759% 73.913043%;
}
a.paw-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 7px;
  width: 224px;
  max-width: 100%;
  min-height: 44px;
  padding: 0;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
}
.paw-brand .paw-brand__mark,
.paw-brand .paw-brand__name {
  display: block;
  min-width: 0;
  overflow: clip;
  background-image: var(--paw-logo-image);
  background-repeat: no-repeat;
  letter-spacing: 0;
  line-height: 0;
  pointer-events: none;
}
.paw-brand .paw-brand__mark {
  flex: 0 0 29%;
  width: 29%;
  aspect-ratio: var(--paw-logo-mark-ratio);
  background-size: var(--paw-logo-mark-size);
  background-position: var(--paw-logo-mark-position);
}
.paw-brand .paw-brand__name {
  flex: 1 1 0;
  aspect-ratio: var(--paw-logo-name-ratio);
  background-size: var(--paw-logo-name-size);
  background-position: var(--paw-logo-name-position);
}
aside a.brand.paw-brand { width: 100%; }
.public-house .public-header a.public-brand.paw-brand {
  width: 164px;
  min-height: 44px;
  padding: 0;
  gap: 6px;
  border-radius: 0;
}
a.support-brand.paw-brand,
a.account-brand.paw-brand { width: 190px; }
a.paw-brand:focus-visible { outline: 2px solid #8e6a40; outline-offset: 5px; }
@media (max-width: 850px) {
  aside a.brand.paw-brand {
    width: 134px;
    max-width: calc(var(--header-tools-left, 160px) - 24px);
    gap: 4px;
  }
}
@media (max-width: 620px) {
  a.welcome-brand.paw-brand { width: 182px; gap: 6px; }
  .public-house .public-header a.public-brand.paw-brand { width: 142px; gap: 5px; }
}
/* At 320px the account tools leave space for the supplied footprint mark.
   Keep that mark legible instead of reducing the whole wordmark to a few pixels. */
@media (max-width: 350px) {
  aside a.brand.paw-brand { width: 44px; max-width: calc(var(--header-tools-left, 80px) - 18px); gap: 0; }
  aside .paw-brand .paw-brand__mark { flex-basis: 100%; width: 100%; }
  aside .paw-brand .paw-brand__name { display: none; }
}
