/* Keep article hero text readable when the top cover area is light. */
#page-header.post-bg:not(.nav-fixed) #nav {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

#page-header.post-bg:not(.nav-fixed) #nav #site-name,
#page-header.post-bg:not(.nav-fixed) #nav #blog_name .back-home-button,
#page-header.post-bg:not(.nav-fixed) #nav #menus .site-page,
#page-header.post-bg:not(.nav-fixed) #nav #nav-right .nav-button a,
#page-header.post-bg:not(.nav-fixed) #nav #toggle-menu a,
#page-header.post-bg:not(.nav-fixed) #nav .site-page i,
#page-header.post-bg:not(.nav-fixed) #nav .site-page span {
  color: #172033 !important;
  text-shadow: none !important;
}

#page-header.post-bg:not(.nav-fixed) #nav #menus .menus_item:hover > a.site-page,
#page-header.post-bg:not(.nav-fixed) #nav #blog_name .back-home-button:hover,
#page-header.post-bg:not(.nav-fixed) #nav #site-name:hover,
#page-header.post-bg:not(.nav-fixed) #nav #nav-right .nav-button a:hover,
#page-header.post-bg:not(.nav-fixed) #nav #toggle-menu a:hover {
  color: #ffffff !important;
  background: #2563eb !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

#page-header.post-bg:not(.nav-fixed) #nav #menus .menus_item:hover > a.site-page span,
#page-header.post-bg:not(.nav-fixed) #nav #site-name:hover .title,
#page-header.post-bg:not(.nav-fixed) #nav #nav-right .nav-button a:hover i,
#page-header.post-bg:not(.nav-fixed) #nav #toggle-menu a:hover i {
  color: #ffffff !important;
}

[data-theme="dark"] #page-header.post-bg:not(.nav-fixed) #nav {
  background: rgba(15, 23, 42, 0.80);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] #page-header.post-bg:not(.nav-fixed) #nav #site-name,
[data-theme="dark"] #page-header.post-bg:not(.nav-fixed) #nav #blog_name .back-home-button,
[data-theme="dark"] #page-header.post-bg:not(.nav-fixed) #nav #menus .site-page,
[data-theme="dark"] #page-header.post-bg:not(.nav-fixed) #nav #nav-right .nav-button a,
[data-theme="dark"] #page-header.post-bg:not(.nav-fixed) #nav #toggle-menu a,
[data-theme="dark"] #page-header.post-bg:not(.nav-fixed) #nav .site-page i,
[data-theme="dark"] #page-header.post-bg:not(.nav-fixed) #nav .site-page span {
  color: #f8fafc !important;
}

#page-header.post-bg #post-info .post-title {
  color: #172033;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 0.18em 0.38em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

#page-header.post-bg #post-info #post-meta {
  color: rgba(23, 32, 51, 0.78);
  text-shadow: none;
  width: auto;
  max-width: min(50rem, 100%);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  padding: 0.55rem 0.8rem;
}

#page-header.post-bg #post-info #post-meta a,
#page-header.post-bg #post-info .post-meta-label,
#page-header.post-bg #post-info .post-meta-icon,
#page-header.post-bg #post-info .article-meta__tags {
  color: rgba(23, 32, 51, 0.82);
  text-shadow: none;
}

[data-theme="dark"] #page-header.post-bg #post-info .post-title {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.76);
  border-color: rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] #page-header.post-bg #post-info #post-meta {
  color: rgba(248, 250, 252, 0.78);
  background: rgba(15, 23, 42, 0.66);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] #page-header.post-bg #post-info #post-meta a,
[data-theme="dark"] #page-header.post-bg #post-info .post-meta-label,
[data-theme="dark"] #page-header.post-bg #post-info .post-meta-icon,
[data-theme="dark"] #page-header.post-bg #post-info .article-meta__tags {
  color: rgba(248, 250, 252, 0.82);
}

@media screen and (max-width: 768px) {
  #page-header.post-bg #post-info .post-title {
    border-radius: 14px;
    padding: 0.16em 0.34em;
  }

  #page-header.post-bg #post-info #post-meta {
    align-items: center;
    padding: 0.5rem 0.7rem;
  }
}
