/* =========================================================
   A2TDEV dark-mode audit corrections
   Keep this file last: several legacy bundles contain hard-coded
   light surfaces that otherwise win through source order.
   ========================================================= */

html[data-theme="dark"] .a2t-page-kicker {
  border-color: #2a3850 !important;
  background: #111a2a !important;
  color: #91adff !important;
}

/* Blog catalogue pagination must not inherit the generic white pager. */
html[data-theme="dark"] .pagination.a2t-blog-pagination,
html[data-theme="dark"] .a2t-blog-pagination .step-links {
  background: transparent !important;
}

html[data-theme="dark"] .a2t-blog-pagination a,
html[data-theme="dark"] .a2t-blog-pagination .current {
  border-color: #2a3850 !important;
  background: #0e1625 !important;
  color: #dce6f6 !important;
}

html[data-theme="dark"] .a2t-blog-pagination .current {
  border-color: #3567ff !important;
  background: #3567ff !important;
  color: #fff !important;
}

html[data-theme="dark"] .a2t-blog-pagination a:hover,
html[data-theme="dark"] .a2t-blog-pagination a:focus-visible {
  border-color: #49699b !important;
  background: #162238 !important;
  color: #fff !important;
}

/* Replace light-blue chips with dark, low-glare equivalents. */
html[data-theme="dark"] .a2t-blog-page .blog-post-category,
html[data-theme="dark"] .a2t-article-kicker-pro,
html[data-theme="dark"] .a2t-article-footer-pro .a2t-tag {
  border-color: rgba(103, 145, 255, .3) !important;
  background: rgba(53, 103, 255, .14) !important;
  color: #8faeff !important;
}

html[data-theme="dark"] .a2t-blog-page .blog-hero-progress {
  background: #26344b !important;
}

/* Reader content primitives that were still hard-coded for light mode. */
html[data-theme="dark"] .a2t-content-pro code {
  background: #131d2e !important;
  color: #91b1ff !important;
}

html[data-theme="dark"] .a2t-content-pro pre {
  border-color: #27344a !important;
  background: #0b1220 !important;
  color: #cbd7e8 !important;
}

html[data-theme="dark"] .a2t-content-pro pre code {
  background: transparent !important;
  color: inherit !important;
}

html[data-theme="dark"] .a2t-content-pro blockquote {
  background: #101a2c !important;
  color: #c3d0e3 !important;
}

html[data-theme="dark"] .a2t-content-heading-icon {
  border-color: #29436f !important;
  background: #11203a !important;
  color: #88aaff !important;
}

html[data-theme="dark"] .a2t-main-content-icon {
  border-color: #3567ff !important;
  background: #3567ff !important;
  color: #fff !important;
  box-shadow: 0 0 0 4px #0b101a !important;
}

html[data-theme="dark"] .a2t-article-footer-pro {
  border-top-color: #27344a !important;
}

