/* One transparent Willoway mark for public headers and standalone tools. */
:is(header, .site-header, .topbar) :is(a.brand, a.logo):not(:has(> :is(.brand-symbol, .mark, img)))::before,
:is(header, .site-header, .topbar) :is(a.brand, a.logo) > :is(.brand-symbol, .mark),
.brand-mark,
.wsw-public-willow-mark,
html:has(link[href$="helpers.css"]) body:not(:has(header .brand))::after {
  display: inline-block;
  width: 2.75rem;
  height: 2.5rem;
  flex: none;
  vertical-align: middle;
  background: url("/public-design/willoway-public-mark.webp") center / contain no-repeat !important;
}

:is(header, .site-header, .topbar) :is(a.brand, a.logo):not(:has(> :is(.brand-symbol, .mark, img)))::before,
html:has(link[href$="helpers.css"]) body:not(:has(header .brand))::after {
  content: "";
  margin-inline-end: .55rem;
}

:is(header, .site-header, .topbar) :is(a.brand, a.logo) > :is(.brand-symbol, .mark),
.brand-mark {
  color: transparent !important;
  border-color: transparent !important;
}

:is(header, .site-header, .topbar) :is(a.brand, a.logo) > :is(.brand-symbol, .mark) > :is(svg, img),
.brand-mark > :is(svg, img) {
  visibility: hidden;
}

html:has(link[href$="helpers.css"]) body:not(:has(header .brand))::after {
  display: block;
  margin: 1rem auto;
}

html:has(link[href$="helpers.css"]) body:not(:has(header .brand))::after {
  content: none;
}
html:has(link[href$="helpers.css"]) body:not(:has(header .brand)) main h1::after {
  content: "";
  display: block;
  width: min(100%, 15rem);
  aspect-ratio: 1;
  margin: .75rem auto 1rem;
  background: url("/public-design/willow-golden-diamond.webp") center / contain no-repeat;
  mask-image: radial-gradient(ellipse 68% 68% at center, #000 61%, transparent 98%);
}
