/* Sidebar header: show the RNAcentral icon to the left of the project name. */
.wy-side-nav-search > a.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wy-side-nav-search > a.icon img.logo {
  order: -1;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 4px;
  background: #fff;
  border-radius: 8px;
}

/* Home page: RNAcentral wordmark beside the page title. */
h1 img.title-logo {
  height: 1.4em;
  margin-left: 0.5em;
  vertical-align: middle;
}

/* Tools pages: logo banner under the page title. */
img.tool-logo {
  width: 320px;
  max-width: 100%;
  margin-bottom: 1em;
}

/* Tools pages: hide the page title visually when a logo banner replaces it. */
h1:has(+ img.tool-logo) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Page title with the logo in front, as on GitHub. */
h1 img.title-logo-before {
  height: 1.4em;
  margin-right: 0.3em;
  vertical-align: middle;
}

/* Contact page: brand icons for the blog and social media. */
h2 img.social-icon, li img.social-icon {
  height: 0.9em;
  margin-right: 0.25em;
  vertical-align: -0.05em;
}
