/* The theme's mobile dark header outlives its removed menu script; inline custom colours still set links black. */
@media only screen and (max-width: 980px) {
  .site-header .nav-primary .genesis-nav-menu a,
  .site-header .nav-primary:hover .genesis-nav-menu > li > a {
    color: #fff;
  }
  .site-header .nav-primary .genesis-nav-menu a:hover,
  .site-header .nav-primary .genesis-nav-menu a:focus {
    color: #fff;
    text-decoration: underline;
  }
  /* Keep the existing always-open navigation usable without the missing JavaScript toggle. */
  .site-header .genesis-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    padding: 0 12px 12px;
  }
  .site-header .genesis-nav-menu a { padding: 14px 10px; }
  /* Long Danish book titles otherwise paint outside the phone viewport. */
  .single-books .entry-title { overflow-wrap: anywhere; }
}

/* These two widgets contain only empty article elements after restoration. */
.home #featured-page-3,
.home #featured-page-4 { display: none; }

/* The marked nested quotation contains no surviving text or image. */
#site-fix-empty-quote { display: none; }

/* Preserve the book links when their covers are unavailable, using their existing title attributes. */
.home .featuredbook .author-pro-featured-image a:not(:has(img))::before {
  content: attr(title);
  display: block;
  color: #181c1e;
  font-weight: 700;
  line-height: 1.4;
  padding: 16px 0;
}

/* The surviving Nelson cover is only 226px wide: retain its original size rather than blur it. */
img.site-fix-nelson-cover { width: 226px; height: auto; max-width: 100%; }

/* Labels of the buy and download buttons whose links the restore removed; left bare they run together into one dead line. */
.book-details .site-fix-dead-cta { display: none; }
