/* Someh v10 integrated plugin dark-mode compatibility */
html.dark-skin body,
body.dark-skin,
html[data-theme="dark"] body,
body[data-theme="dark"],
html.dark-mode body,
body.dark-mode,
html.someh-dark-mode body,
body.someh-dark-mode { color-scheme: dark; }

/* Header Themes PRO readability on dark pages */
html.dark-skin #theme-header,
body.dark-skin #theme-header,
html.dark-mode #theme-header,
body.dark-mode #theme-header,
html.someh-dark-mode #theme-header,
body.someh-dark-mode #theme-header,
html[data-theme="dark"] #theme-header,
body[data-theme="dark"] #theme-header {
  color:#e5e7eb;
}
html.dark-skin #theme-header a,
body.dark-skin #theme-header a,
html.dark-mode #theme-header a,
body.dark-mode #theme-header a,
html.someh-dark-mode #theme-header a,
body.someh-dark-mode #theme-header a,
html[data-theme="dark"] #theme-header a,
body[data-theme="dark"] #theme-header a {
  color:inherit;
}
html.dark-skin #main-nav,
body.dark-skin #main-nav,
html.dark-mode #main-nav,
body.dark-mode #main-nav,
html.someh-dark-mode #main-nav,
body.someh-dark-mode #main-nav,
html[data-theme="dark"] #main-nav,
body[data-theme="dark"] #main-nav {
  border-color:rgba(148,163,184,.22);
}

/* Pro Footer Themes readability */
html.dark-skin .pft-footer,
body.dark-skin .pft-footer,
html.dark-skin footer,
body.dark-skin footer,
html.dark-mode .pft-footer,
body.dark-mode .pft-footer,
html.dark-mode footer,
body.dark-mode footer,
html.someh-dark-mode .pft-footer,
body.someh-dark-mode .pft-footer,
html.someh-dark-mode footer,
body.someh-dark-mode footer,
html[data-theme="dark"] .pft-footer,
body[data-theme="dark"] .pft-footer,
html[data-theme="dark"] footer,
body[data-theme="dark"] footer {
  color:#e5e7eb;
}
html.dark-skin .pft-footer a,
body.dark-skin .pft-footer a,
html.dark-skin footer a,
body.dark-skin footer a,
html.dark-mode .pft-footer a,
body.dark-mode .pft-footer a,
html.dark-mode footer a,
body.dark-mode footer a,
html.someh-dark-mode .pft-footer a,
body.someh-dark-mode .pft-footer a,
html.someh-dark-mode footer a,
body.someh-dark-mode footer a,
html[data-theme="dark"] .pft-footer a,
body[data-theme="dark"] .pft-footer a,
html[data-theme="dark"] footer a,
body[data-theme="dark"] footer a {
  color:inherit;
}
html.dark-skin .pft-site-info,
body.dark-skin .pft-site-info,
html.dark-mode .pft-site-info,
body.dark-mode .pft-site-info,
html.someh-dark-mode .pft-site-info,
body.someh-dark-mode .pft-site-info,
html[data-theme="dark"] .pft-site-info,
body[data-theme="dark"] .pft-site-info {
  background:#020617;color:#cbd5e1;border-top:1px solid rgba(148,163,184,.2);
}

/* Per-post/page/product footer code output from Nevis tools */
html.dark-skin .pnpost-footer-code,
body.dark-skin .pnpost-footer-code,
html.dark-skin .pnpage-footer-code,
body.dark-skin .pnpage-footer-code,
html.dark-mode .pnpost-footer-code,
body.dark-mode .pnpost-footer-code,
html.dark-mode .pnpage-footer-code,
body.dark-mode .pnpage-footer-code,
html.someh-dark-mode .pnpost-footer-code,
body.someh-dark-mode .pnpost-footer-code,
html.someh-dark-mode .pnpage-footer-code,
body.someh-dark-mode .pnpage-footer-code {
  color:#e5e7eb;background:#0f172a;border-color:rgba(148,163,184,.25);
}

/* Mobile table safety with WCPT/Modern Tables */
@media (max-width: 768px) {
  html.dark-skin .wcpt-wrap table,
  body.dark-skin .wcpt-wrap table,
  html.dark-skin .modern-tables-wrap table,
  body.dark-skin .modern-tables-wrap table,
  html.dark-mode .wcpt-wrap table,
  body.dark-mode .wcpt-wrap table,
  html.dark-mode .modern-tables-wrap table,
  body.dark-mode .modern-tables-wrap table,
  html.someh-dark-mode .wcpt-wrap table,
  body.someh-dark-mode .wcpt-wrap table,
  html.someh-dark-mode .modern-tables-wrap table,
  body.someh-dark-mode .modern-tables-wrap table {
    background:#111827!important;color:#e5e7eb!important;border-color:#334155!important;
  }
  html.dark-skin .wcpt-wrap td,
  body.dark-skin .wcpt-wrap td,
  html.dark-skin .wcpt-wrap th,
  body.dark-skin .wcpt-wrap th,
  html.dark-skin .modern-tables-wrap td,
  body.dark-skin .modern-tables-wrap td,
  html.dark-skin .modern-tables-wrap th,
  body.dark-skin .modern-tables-wrap th,
  html.dark-mode .wcpt-wrap td,
  body.dark-mode .wcpt-wrap td,
  html.dark-mode .wcpt-wrap th,
  body.dark-mode .wcpt-wrap th,
  html.dark-mode .modern-tables-wrap td,
  body.dark-mode .modern-tables-wrap td,
  html.dark-mode .modern-tables-wrap th,
  body.dark-mode .modern-tables-wrap th {
    background:#111827!important;color:#e5e7eb!important;border-color:#334155!important;
  }
}
