html[data-mode="dark"] {
  --paper:#10171c;
  --cream:#172128;
  --ink:#edf3f5;
  --deep:#080d11;
  --line:#34424a;
  --muted:#a2b0b7;
  color-scheme:dark;
  background:#10171c;
}

html[data-mode="dark"] body,
html[data-mode="dark"] .featured,
html[data-mode="dark"] .store-body,
html[data-mode="dark"] .cart-section,
html[data-mode="dark"] .contact-section,
html[data-mode="dark"] .category-section,
html[data-mode="dark"] .process-section { background:#10171c; color:#edf3f5; }
html[data-mode="dark"] .utility-bar,
html[data-mode="dark"] footer { background:#080d11; }
html[data-mode="dark"] .topbar { background:rgba(16,23,28,.97); border-color:#34424a; }
html[data-mode="dark"] .brand,
html[data-mode="dark"] .topbar nav a,
html[data-mode="dark"] .text-link.dark,
html[data-mode="dark"] .light-head,
html[data-mode="dark"] .light-head h2 { color:#edf3f5; }
html[data-mode="dark"] .topbar nav a:hover,
html[data-mode="dark"] .topbar nav a.active { color:white; }
html[data-mode="dark"] .submenu,
html[data-mode="dark"] .submenu a { background:#172128; color:#edf3f5; border-color:#34424a; }
html[data-mode="dark"] .submenu a:hover { background:#223039; }
html[data-mode="dark"] .category-grid>a,
html[data-mode="dark"] .product-card,
html[data-mode="dark"] .cart-list-card,
html[data-mode="dark"] .request-form,
html[data-mode="dark"] .contact-form-wrap,
html[data-mode="dark"] .industry-grid article { background:#172128; color:#edf3f5; border-color:#34424a; }
html[data-mode="dark"] .product-card h3,
html[data-mode="dark"] .category-grid h3,
html[data-mode="dark"] .request-form h2,
html[data-mode="dark"] .cart-list-card h2 { color:#edf3f5; }
html[data-mode="dark"] .product-card p,
html[data-mode="dark"] .category-grid p,
html[data-mode="dark"] .lead p,
html[data-mode="dark"] .section-head>p { color:#a2b0b7; }
html[data-mode="dark"] .product-image { background:#e9edef; }
html[data-mode="dark"] .add-request-button { background:#202d35; color:#edf3f5; }
html[data-mode="dark"] .search,
html[data-mode="dark"] .filters button,
html[data-mode="dark"] input,
html[data-mode="dark"] textarea,
html[data-mode="dark"] select { background:#172128; color:#edf3f5; border-color:#44535c; }
html[data-mode="dark"] .filters button.active { background:var(--blue); color:white; }
html[data-mode="dark"] .footer-map { background:#080d11; }
html[data-mode="dark"] .map-card { background:#172128; color:#edf3f5; border-color:var(--orange); }
html[data-mode="dark"] .public-alert,
html[data-mode="dark"] .public-toast { background:#172128; color:#edf3f5; }
html[data-mode="dark"] .public-alert p,
html[data-mode="dark"] .public-toast p { color:#a2b0b7; }

@media(max-width:1000px) {
  html[data-mode="dark"] .topbar nav.open { background:#10171c; }
}

/* Final typography pass: cover text rules declared by individual pages/themes. */
html[data-mode="dark"] main :where(h1,h2,h3,h4,h5,h6,label,legend,li,td,th,strong) {
  color:#edf3f5 !important;
}
html[data-mode="dark"] main :where(p,small,time) {
  color:#aebbc1 !important;
}
html[data-mode="dark"] main :where(.eyebrow,.section-no,.form-kicker) {
  color:var(--orange) !important;
}
html[data-mode="dark"] main :where(a:not(.btn):not(.add-request-button)) {
  color:#d6e3e8;
}
html[data-mode="dark"] .contact-method a,
html[data-mode="dark"] .service-detail a {
  color:#edf3f5 !important;
}
html[data-mode="dark"] .service-detail li,
html[data-mode="dark"] .process-grid>div,
html[data-mode="dark"] .contact-method,
html[data-mode="dark"] .cart-product-row {
  border-color:#34424a;
}
html[data-mode="dark"] .contact-form input::placeholder,
html[data-mode="dark"] .contact-form textarea::placeholder,
html[data-mode="dark"] .request-form input::placeholder,
html[data-mode="dark"] .request-form textarea::placeholder,
html[data-mode="dark"] .search input::placeholder {
  color:#81919a;
  opacity:1;
}
html[data-mode="dark"] footer :where(h1,h2,h3,h4,strong,a) { color:#edf3f5; }
html[data-mode="dark"] footer :where(p,small,span) { color:#aebbc1; }
html[data-mode="dark"] .utility-bar :where(span,a),
html[data-mode="dark"] .header-actions :where(a,span) { color:#dce6ea !important; }
html[data-mode="dark"] .utility-bar :where(span,a) { color:#dce6ea !important; }
html[data-mode="dark"] .header-cta {
  background:var(--orange) !important;
  border-color:var(--orange) !important;
  color:#11181d !important;
}
html[data-mode="dark"] .header-cta span { color:#11181d !important; }
html[data-mode="dark"] .cart-link { color:#e5edef !important; }

/* Sections intentionally using bright backgrounds retain dark text. */
html[data-mode="dark"] :where(.cta-band,.contact-hero) :where(h1,h2,h3,h4,p,span,strong,a) {
  color:#16232c !important;
}
html[data-mode="dark"] .stats :where(h1,h2,h3,h4,p,span,strong,small) {
  color:white !important;
}
html[data-mode="dark"] :where(.home-slider,.unified-image-hero,.dark-section,.values-section) :where(h1,h2,h3,h4,strong,label) {
  color:white !important;
}
html[data-mode="dark"] :where(.home-slider,.unified-image-hero,.dark-section,.values-section) p {
  color:#b8c5cb !important;
}
html[data-mode="dark"] .product-image span,
html[data-mode="dark"] .stock-pill {
  color:white !important;
}

/* Homepage content shared by every visual theme. */
html[data-mode="dark"] .category-grid>a>span,
html[data-mode="dark"] .service-list article>span,
html[data-mode="dark"] .product-card>small,
html[data-mode="dark"] .product-card>a>small {
  color:var(--orange) !important;
}
html[data-mode="dark"] .category-grid>a>b,
html[data-mode="dark"] .service-list article>b {
  color:#e7eef1 !important;
}
html[data-mode="dark"] .slide-trust :where(span,strong),
html[data-mode="dark"] .trust-row :where(span,strong) {
  color:#dce6ea !important;
}
html[data-mode="dark"] .featured .product-card {
  background:#172128 !important;
  border-color:#3b4b54 !important;
  color:#edf3f5 !important;
}
html[data-mode="dark"] .featured .product-card :where(h3,strong) {
  color:#edf3f5 !important;
}
html[data-mode="dark"] .featured .product-card p {
  color:#aebbc1 !important;
}
html[data-mode="dark"] .featured .add-request-button {
  background:#25343d !important;
  border-color:#60727c !important;
  color:#edf3f5 !important;
}
html[data-mode="dark"] .featured .add-request-button:hover,
html[data-mode="dark"] .featured .add-request-button.added {
  background:var(--blue) !important;
  border-color:var(--blue) !important;
  color:white !important;
}
html[data-mode="dark"] .stats-grid div {
  border-color:rgba(255,255,255,.3) !important;
}
html[data-mode="dark"] .cta-band .btn {
  background:#16232c !important;
  border-color:#16232c !important;
  color:white !important;
}

/* Homepage capabilities section: override every theme-specific light variant. */
html[data-mode="dark"] .dark-section {
  background:#080d11 !important;
  color:#edf3f5 !important;
}
html[data-mode="dark"] .dark-section .section-no {
  color:var(--orange) !important;
}
html[data-mode="dark"] .dark-section .section-head h2,
html[data-mode="dark"] .dark-section .service-list h3 {
  color:#f1f5f6 !important;
}
html[data-mode="dark"] .dark-section .section-head>p,
html[data-mode="dark"] .dark-section .service-list p {
  color:#b1bec4 !important;
}
html[data-mode="dark"] .dark-section .inline-light-link {
  color:var(--orange) !important;
  text-decoration-color:var(--orange);
}
html[data-mode="dark"] .dark-section .service-list {
  border-color:#36464f !important;
}
html[data-mode="dark"] .dark-section .service-list article {
  background:#0d171c !important;
  border-color:#36464f !important;
}
html[data-mode="dark"] .dark-section .service-list article:hover {
  background:#15242c !important;
}
html[data-mode="dark"] .dark-section .service-list article>span {
  color:var(--orange) !important;
}
html[data-mode="dark"] .dark-section .service-list article>b {
  color:#dbe5e9 !important;
}
