/* Katibe at night (html.katibe.is-dark, set in the browser): the cloth stays; the page goes to a lifted
   warm dark with off-white text (~12.4:1) for long reading in low light; photos dimmed. */
html.katibe.is-dark {
  --kb-ground:#181614;
  --kb-ink:#dcd5c9;
  --kb-muted:#a39b90;
  --kb-rule:#36312b;
  --kb-tint:#221f1c;
  --kb-link:#93aee6;
  --kb-link-hover:#b5c8f0;
  --on-teal:#181614;
  --input-border:#5a544c;
  --crumb-sep:#7d766c;
  --overlay:rgba(0,0,0,.6);
  color-scheme:dark
}
html.katibe.is-dark.cloth-mourning {
  --cloth:#000;
  --fringe:#ece4d3
}

/* Photos and covers: dimmed so they don't flash in a dark room. */
html.katibe.is-dark #main-content img {
  filter:brightness(.88)
}

html.katibe.is-dark .comment-form input:not([type=hidden]),html.katibe.is-dark .comment-form textarea {
  background:var(--kb-tint)!important
}

/* Old articles with inline colours. */
html.katibe.is-dark .page-content [style*="color:White"],
html.katibe.is-dark .page-content [style*="color:black"],
html.katibe.is-dark .page-content [style*="color:Black"] {
  color:var(--kb-ink)!important
}
html.katibe.is-dark .page-content [style*="background-color:#fff"],
html.katibe.is-dark .page-content [style*="background-color:#FFF"],
html.katibe.is-dark .page-content [style*="background-color:#ffffff"],
html.katibe.is-dark .page-content [style*="background-color:#FFFFFF"],
html.katibe.is-dark .page-content [style*="background-color:white"],
html.katibe.is-dark .page-content [style*="background-color:White"] {
  background:transparent!important;
  color:var(--kb-ink)!important
}
