/* Related-reading dark theme contract. Only article aside.related callouts.
   Keep light theme unchanged. Visited links must remain readable on dark panels. */
html[data-theme="dark"] body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related {
  background: #172b40 !important;
  color: #eef5fb !important;
}
html[data-theme="dark"] body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related :is(strong,h2,h3,p,span) {
  color: #eef5fb !important;
}
html[data-theme="dark"] body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:any-link,
html[data-theme="dark"] body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:any-link * {
  color: #a9d5ff !important;
}
html[data-theme="dark"] body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:is(:hover,:focus-visible),
html[data-theme="dark"] body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:is(:hover,:focus-visible) * {
  color: #d5eaff !important;
}
html[data-theme="dark"] body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:focus-visible {
  outline: 2px solid #f6bb48;
  outline-offset: 3px;
}

/* Repeated .related classes intentionally outrank late per-article !important rules.
   System-dark static pages may omit data-theme; explicit light always opts out. */
@media (prefers-color-scheme: dark) {
/* Related-reading dark theme contract. Only article aside.related callouts.
   Keep light theme unchanged. Visited links must remain readable on dark panels. */
html:not([data-theme="light"]) body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related {
  background: #172b40 !important;
  color: #eef5fb !important;
}
html:not([data-theme="light"]) body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related :is(strong,h2,h3,p,span) {
  color: #eef5fb !important;
}
html:not([data-theme="light"]) body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:any-link,
html:not([data-theme="light"]) body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:any-link * {
  color: #a9d5ff !important;
}
html:not([data-theme="light"]) body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:is(:hover,:focus-visible),
html:not([data-theme="light"]) body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:is(:hover,:focus-visible) * {
  color: #d5eaff !important;
}
html:not([data-theme="light"]) body :is(#pcsm-main,#main,.entry-content,.pcsm-original-article) aside.related.related.related.related a:focus-visible {
  outline: 2px solid #f6bb48;
  outline-offset: 3px;
}

}
