/* Header links shared by all five site languages and Publisher templates. */
html:root .site-header.editorial-header .hero-socials a[href="https://github.com/glassdaggerpress"] {
  --social-brand: #000;
  background: #f7fbff;
  color: #000 !important;
}
html:root .site-header.editorial-header .hero-socials a[href="https://github.com/glassdaggerpress"]:hover,
html:root .site-header.editorial-header .hero-socials a[href="https://github.com/glassdaggerpress"]:focus-visible {
  background: #000;
  border-color: #000;
  color: #fff !important;
}
/* Share the second desktop row without overlapping the language pills. */
html .site-header.editorial-header > .header-reedsy {
  align-self: end;
  background: transparent;
  border: 0;
  border-radius: 6px;
  display: block;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  justify-self: start;
  line-height: 0;
  margin: 0;
  max-width: 100%;
  padding: 0;
  width: 150px;
}
html .editorial-header > .header-reedsy img {
  aspect-ratio: 480 / 144;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  display: block;
  height: auto;
  margin: 0;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}
html .editorial-header > .header-reedsy:focus-visible {
  outline: 3px solid #214d70;
  outline-offset: 3px;
}
html .editorial-header.has-site-nav-v2 > .site-language-switcher--pills {
  align-self: center;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  justify-self: end !important;
  max-width: calc(100% - 166px);
  width: auto;
}
@media (max-width: 900px) {
  /* Preserve the menu and language rows; the badge stays at the bottom left. */
  html .editorial-header.has-site-nav-v2 > .site-language-switcher--pills {
    grid-row: 2 !important;
    justify-self: center !important;
    max-width: 100%;
    width: 100%;
  }
  html .site-header.editorial-header > .header-reedsy {
    grid-row: 4 !important;
    width: 135px;
  }
  html .editorial-header.has-site-nav-v2 .mobile-nav-socials { flex-wrap: wrap; }
}

/* Keep the social links available at tablet widths too. */
@media (min-width: 901px) and (max-width: 1200px) {
  html .editorial-header.has-site-nav-v2 {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }
  html .editorial-header.has-site-nav-v2 .main-nav {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  html .editorial-header.has-site-nav-v2 .header-actions > .hero-socials {
    display: flex !important;
  }
}
@media (max-width: 900px) {
  html .editorial-header.has-site-nav-v2 {
    max-height: calc(100svh - 24px);
    overflow-y: auto !important;
  }
}
