/* Blog reading mode: single post pages default to light; button switches to dark. */

body.single #rt {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: #333;
  background: rgba(240, 240, 240, 0.86);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.92;
}

body.single #rt:hover {
  transform: scale(1.1);
  background: rgba(224, 224, 224, 0.94);
  opacity: 1;
}

body.single #rt .rt-day,
body.single #rt .rt-night {
  line-height: 1;
}

body.single #rt .rt-night,
body.single.rmd #rt .rt-day {
  display: inline;
}

body.single #rt .rt-day,
body.single.rmd #rt .rt-night {
  display: none;
}

body.single.rmd,
body.single.rmd .site-root-container,
body.single.rmd .site-main-container,
body.single.rmd .site-footer-container,
body.single.rmd .site-header-container,
body.single.rmd .site-header-container .header-holder,
body.single.rmd article,
body.single.rmd .entry-header,
body.single.rmd .entry-footer,
body.single.rmd .post-navigation-container {
  background-color: #080808 !important;
}

body.single.rmd #rt {
  border-color: rgba(255, 255, 255, 0.18);
  color: #f3f3f3;
  background: rgba(8, 8, 8, 0.86);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

body.single.rmd #rt:hover {
  background: rgba(24, 24, 24, 0.94);
}

body.single.rmd .site-header-container {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.24);
}

body.single.rmd .site-header-container .text-logo,
body.single.rmd .site-header-container .main-menu a,
body.single.rmd .site-header-container .header-action-box button,
body.single.rmd .site-header-container .header-action-box svg,
body.single.rmd .site-header-container .header-action-box svg path {
  color: #f3f3f3 !important;
  fill: currentColor !important;
}

body.single.rmd .site-header-container .sub-menu-box,
body.single.rmd .site-header-container .sub-menu,
body.single.rmd .site-header-container .sub-menu a {
  background-color: #080808 !important;
  color: #f3f3f3 !important;
}

body.single.rmd .entry-content {
  color: #e9e2d5 !important;
  background: #111 !important;
  border-radius: 8px;
  padding: 22px 24px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.single.rmd .entry-content p,
body.single.rmd .entry-content li,
body.single.rmd .entry-content figcaption,
body.single.rmd .entry-content blockquote,
body.single.rmd .entry-content blockquote p {
  color: #e9e2d5 !important;
}

body.single.rmd .entry-content h1,
body.single.rmd .entry-content h2,
body.single.rmd .entry-content h3,
body.single.rmd .entry-content h4,
body.single.rmd .entry-content h5,
body.single.rmd .entry-content h6,
body.single.rmd .entry-header .entry-title,
body.single.rmd .entry-header .entry-date,
body.single.rmd .post-title {
  color: #fff !important;
}

body.single.rmd .entry-content a {
  color: #8fcbff !important;
}

body.single.rmd .entry-content figure,
body.single.rmd .entry-content .wp-block-image {
  background: #0b0b0b !important;
}

body.single.rmd .entry-content img,
body.single.rmd .entry-content video {
  filter: brightness(0.72) contrast(0.96) saturate(0.9);
}

body.single.rmd .entry-content .wp-block-pullquote {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

body.single.rmd .entry-content .wp-block-group.has-background {
  background: #191919 !important;
}

body.single.rmd .entry-content .wp-block-group.has-background p,
body.single.rmd .entry-content .wp-block-group.has-background a {
  color: #e9e2d5 !important;
}

body.single.rmd .entry-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 768px) {
  body.single #rt {
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }

  body.single.rmd .entry-content {
    padding: 18px 16px !important;
  }
}
