/* Blog article white theme. Only linked from article pages. */
html[lang][data-blog-white="1"] {
  color-scheme: light;
  --theme-bg: #fff !important;
  --theme-soft: #f5f5f5 !important;
  --theme-surface: #fff !important;
  --theme-deep: #f3f3f3 !important;
  --theme-border: #e6e6e6 !important;
  --ys-cream: #fff !important;
  --ys-cream-2: #f7f7f7 !important;
  --bg: #fff !important;
  --v2-bg: #fff !important;
  --v2-bg-soft: #f6f6f6 !important;
  --article-rule: #e6e6e6;
  background: #fff !important;
}
html[lang][data-blog-white="1"] body,
html[lang][data-blog-white="1"] body.blog-article-page {
  background: #fff !important;
}
html[lang][data-blog-white="1"] .ys-header {
  background: #fff !important;
}
html[lang][data-blog-white="1"] .ys-footer {
  background: #fff !important;
}
html[lang][data-blog-white="1"] body::after {
  display: none !important;
}
html[lang][data-blog-white="1"] :is(.article-prose, .prose) blockquote {
  background: #f5f5f5 !important;
  border-left-color: #d4d4d4;
}
html[lang][data-blog-white="1"] .ys-sub__row input {
  background: #fff !important;
}

.blog-white-toggle {
  position: fixed;
  z-index: 91;
  right: max(2.2rem, env(safe-area-inset-right, 0px));
  bottom: max(2.2rem, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  min-width: 40px;
  padding: 0 13px 0 10px;
  border: 1px solid #dedfdd;
  border-radius: 999px;
  background: #fff;
  color: #17171b;
  font-family: var(--font-nav, var(--ys-body, system-ui, sans-serif));
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.04);
}
.blog-white-toggle.is-above-toc {
  bottom: calc(max(2.2rem, env(safe-area-inset-bottom, 0px)) + 50px);
}
.blog-white-toggle:hover {
  border-color: #17171b;
}
.blog-white-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.5px solid #bdbdbd;
  border-radius: 50%;
  background: #fff;
}
.blog-white-toggle[aria-pressed="true"] {
  border-color: #17171b;
}
.blog-white-toggle[aria-pressed="true"] .blog-white-swatch {
  border-color: #17171b;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.2 4.7 8.7 9.8 3.4' fill='none' stroke='%2317171b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat,
    #fff;
}
body.blog-article-page:has(.blog-white-toggle.is-above-toc) .floating-toc-panel {
  bottom: calc(2.2rem + 102px);
}
@media (max-width: 640px) {
  .blog-white-toggle {
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    height: 44px;
    padding: 0 12px 0 10px;
  }
  .blog-white-toggle.is-above-toc {
    bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 52px);
  }
  body.blog-article-page:has(.blog-white-toggle.is-above-toc) .floating-toc-panel {
    bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 108px);
  }
}
@media (pointer: coarse) {
  .blog-white-toggle {
    min-height: 44px;
    min-width: 44px;
  }
}
