/* Shared navy-to-green theme. Solid tokens remain valid for borders and form text. */
:root,html[data-theme="dark"] {
  --brand-start:#123a5c;
  --brand-end:#2e8b57;
  --brand-gradient:linear-gradient(90deg, #123a5c, #2e8b57);
  --brand-text-gradient:linear-gradient(90deg, #73bce8, #83d7a5);
  --paper:#000;
  --body:#fff;
  --ink:#fff;
  --accent:#a6e1bb;
  --sky:#a6e1bb;
  --accent-light:#000;
  --surface:#000;
  --card:#000;
  --white:#000;
  --charcoal:#000;
  --line:#ffffff30;
  --muted:#c4ceca;
  --dark:#000;
  --dark-text:#fff;
  --heading-paint:var(--brand-text-gradient);
  --heading-fill:transparent;
  --link-paint:var(--brand-text-gradient);
  --link-fill:transparent;
  color-scheme:dark;
}
html,body {background:#000;color:#fff}
/* Approved lockup: gradient TF symbol with a solid white wordmark. */
:is(.site-header,.site-footer) :is(.wordmark-text,.wordmark-country) {
  --heading-paint:none;
  --heading-fill:#fff;
  color:#fff;
}
::selection {background:#c4e5ce;color:#123a5c}
:focus-visible,.video-header :focus-visible,.whatsapp-float:focus-visible {outline-color:#2e8b57}

/* Gradients are painted as text, rather than passed to CSS color properties. */
:is(h1,h2,h3,h4,h1 span,h2 span,h3 span,h4 span,.wordmark-text,.wordmark-country,
    .eyebrow,.section-index,.reviews-rating strong,.product-name) {
  background-image:var(--heading-paint);
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:var(--heading-fill);
}
:is(.text-link,.main-nav>a,.nav-products>summary,.application-link,.more-categories a,
    .product-overview-link,.product-compare-action,.category-filter-link,.related-details,
    .product-help-phone,.mobile-nav>a,.product-guide-link a,.buyer-references a) {
  background-image:var(--link-paint);
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:var(--link-fill);
}
.nav-products>summary>span {color:var(--accent)}
.small-rule {background:var(--brand-gradient)}

/* Primary actions keep a legible white label across the same two-colour gradient. */
.button-accent,.button-dark,.video-header .header-quote,
html[data-theme="dark"] .button-accent,
.contact-band .button-dark,.compare-tray .button,
.category-filter.active {
  background:var(--brand-gradient);
  border-color:transparent;
  color:#fff;
  -webkit-text-fill-color:#fff;
}
.button-accent:hover,.button-dark:hover,.video-header .header-quote:hover,
html[data-theme="dark"] .button-accent:hover,
html[data-theme="dark"] .button-dark:hover,
html[data-theme="dark"] .contact-band .button-dark:hover,
.contact-band .button-dark:hover,.compare-tray .button:hover {
  background:var(--brand-gradient);
  color:#fff;
  box-shadow:0 4px 16px #123a5c24;
}
.button-outline {color:#fff;border-color:#a6e1bb}
.button-outline:hover {background:var(--brand-gradient);color:#fff;-webkit-text-fill-color:#fff}
.shortlist-count,.compare-tray,.status-toast {background:var(--brand-gradient);color:#fff}
.main-nav .mega-menu {box-shadow:0 24px 35px #123a5c18}
.mobile-nav {box-shadow:0 18px 24px #123a5c14}

/* All content panels share the requested black page background. */
.finder-section,.reviews-viewport,.seo-answer,.site-footer,
.enquiry-panel,.product-help,.buyer-checklist,.buyer-table caption,
.product-clarification,.resource-type,.contact-mini-art,.buyer-guide-card {
  background:#000;
  --ink:#fff;
  --body:#fff;
  --muted:#e2eee7;
  --accent:#fff;
  --sky:#fff;
  --line:#ffffff40;
  --heading-paint:none;
  --heading-fill:#fff;
  --link-paint:none;
  --link-fill:#fff;
  color:#fff;
  border-color:#ffffff30;
}
.finder-section :is(.eyebrow,.finder-heading p,.finder-form>label,.finder-form>p),
.reviews-viewport :is(.review-card blockquote p,.review-source,.review-author div>span),
.site-footer :is(.wordmark,.wordmark-country,.footer-column a,.footer-column p,.footer-brand>p,.footer-bottom),
.seo-answer p,.product-help-phone,.product-clarification p,.resource-type,
.enquiry-panel :is(label,p),.buyer-checklist :is(p,li),.buyer-table caption {
  color:#fff;
}
.finder-form select,.enquiry-panel :is(input,select,textarea) {
  color:#fff;
  -webkit-text-fill-color:#fff;
  background-color:#000;
  --ink:#fff;
  --muted:#c4ceca;
}
.finder-form>label>span {color:#d9efdf}
.finder-section .button,.product-help .button,.enquiry-panel .button {border-color:#ffffff80}
.review-stars {color:#ffd77b}
.review-avatar {background:#ffffff20;color:#fff;border:1px solid #ffffff40}
.reviews-viewport .text-link {border-color:#ffffff80}
.footer-bottom {border-color:#ffffff35}
.footer-gst {opacity:.85}
.enquiry-result pre {color:#fff;-webkit-text-fill-color:#fff}
.finder-results {color:#fff}
.enquiry-panel #enquiry-shortlist {background:#ffffff12;border-color:#ffffff40;color:#fff}

/* Product-family surfaces follow the black theme; a subtle rim separates cutouts. */
.range-section .category-card .category-image,
html[data-theme="dark"] .range-section .category-image {
  background:#000;
  border:1px solid var(--line);
}
.range-section .category-image img,
html[data-theme="dark"] .range-section .category-image img {
  mix-blend-mode:normal;
  filter:drop-shadow(0 0 1px #ffffff80);
}
.range-section .category-index {color:#c4ceca}
.range-section .category-image:after {border-color:#809a8b}
.product-image-link,.product-main-image,.product-thumbnail,.dialog-visual,
.image-viewer>img,.quick-result>img,.quote-item>img,.compare-tray-items img,
.comparison-table thead th>img {background:#000;border-color:var(--line)}
.product-image-link img,.dialog-visual img,.story-art img {mix-blend-mode:normal}

/* Old illustration surfaces also follow the new palette on guide pages. */
.guide-art,.guide-art-scanners,.guide-art-all,.guide-photo,.story-art {
  background:#000;color:#fff;
}
.guide-art:before {background-image:radial-gradient(#ffffff30 .8px,transparent .8px)}
.guide-art .identity-bars {color:var(--brand-start)}
.guide-label,.guide-scan-frame,.guide-checklist-art {border-color:#9bc9b0}
.guide-label-back {background:#cde5d7}
.guide-label-front>i:not(.identity-bars),.guide-checklist-art>i {background:#b9d6c5}
.guide-scan-line {background:var(--brand-gradient);box-shadow:0 0 12px #2e8b5750}
.guide-checklist-art {box-shadow:7px 7px 0 #2e8b5760}
.guide-checklist-art>i:before,.guide-checklist-art>i:after {border-color:#246e4b}
.buyer-guide-card:hover {box-shadow:0 16px 30px -24px #123a5c66}

/* Industry section follows the approved black preview, retaining brand gradients. */
.applications-band {
  background:#000;
  color:#fff;
  --body:#fff;
  --muted:#fff;
  --line:#ffffff30;
}
.applications-band :is(.heading-description,.application-card p,.application-links small) {
  color:#fff;
}
.applications-band .application-links strong {color:#fff}
.applications-band .application-links img {filter:brightness(0) invert(1)}
.applications-band .application-link {border-color:var(--brand-end)}
.applications-band :focus-visible {outline-color:#a6e1bb}

/* Keep the existing black sections and film overlay readable. */
:is(.technology-band,.insights-band,.enterprise-band,.company-facts,.contact-band,.operations-film) {
  --heading-paint:none;--heading-fill:#fff;
  --link-paint:none;--link-fill:#fff;
}
:is(.technology-band,.insights-band,.enterprise-band,.contact-band) .eyebrow {
  --heading-fill:#a6e1bb;color:#a6e1bb;
}
:is(.technology-band,.insights-band) .text-link,
.technology-band .text-link:hover,.technology-band .category-card:hover h3,
.technology-band .more-categories a:hover {color:#a6e1bb;-webkit-text-fill-color:#a6e1bb}
.insights-band .buyer-guide-card {background:#000}
.insights-band .buyer-guide-card:hover {border-color:#a6e1bb}
:is(.technology-band,.insights-band,.enterprise-band,.company-facts,.contact-band) :focus-visible {outline-color:#a6e1bb}
.film-kicker,.enterprise-title .eyebrow,.enterprise-hero h1 span {color:#a6e1bb}
.enterprise-title .small-rule {background:var(--brand-gradient)}
.film-caption,.company-facts span,.contact-band p:not(.eyebrow) {color:#e2e9e5}
.operations-film {background:#000}

/* Keep the same navigation gradient over the video and the solid header. */
.video-header:not(.is-scrolled):not(:has(.nav-products[open],.mobile-nav.open)) {
  --heading-paint:none;--heading-fill:#fff;
  --link-paint:var(--brand-text-gradient);--link-fill:transparent;
}
.video-header .mega-menu,.video-header .mobile-nav {
  --heading-paint:var(--brand-text-gradient);--heading-fill:transparent;
  --link-paint:var(--brand-text-gradient);--link-fill:transparent;
}
.video-header .header-quote {border:1px solid #ffffff40}
.video-header:not(.is-scrolled):not(:has(.nav-products[open],.mobile-nav.open)) :focus-visible {outline-color:#a6e1bb}

/* Navigation stays over the video, then becomes solid black after the film. */
.site-header,.main-nav .mega-menu,.mobile-nav {background:#000}
#site-header.video-header:is(.is-scrolled,:has(.nav-products[open]),:has(.mobile-nav.open)) {
  --header-surface:#000;
  --header-utility:#000;
  --header-ink:#fff;
  --header-secondary:#c4ceca;
  --header-icon-filter:brightness(0) invert(1);
  --header-hover:#ffffff18;
  --header-button:var(--brand-gradient);
  --header-button-ink:#fff;
}
.site-header,.site-footer {--heading-paint:none;--heading-fill:#fff}
.icon-button img,.search-box>img,.home-search>img,.mobile-search-button img,
.product-section-nav img,.quick-search-field>img,.utility-empty>img,.finder-art>img {
  filter:brightness(0) invert(1);
}
.video-header .shortlist-count {background:var(--brand-gradient);color:#fff}
.skip-link {background:#fff;color:#000}

/* Feedback and enquiry controls remain visible against the black canvas. */
.feedback-form-panel {background:#000;border-color:var(--line)}
.website-feedback input:not([type=radio]):not([type=checkbox]),.website-feedback textarea,
.feedback-stars label {
  background:#000;color:#fff;border-color:#68766f;
}
.website-feedback :is(.feedback-note,.feedback-field-help,.feedback-comment-meta),
.website-feedback-list small {color:#c4ceca}
.website-feedback :is(input,textarea)::placeholder {color:#aab7b0;opacity:1}
.feedback-stars label>span[aria-hidden] {color:#aab7b0}
.feedback-stars label.is-selected>span[aria-hidden],.website-feedback-list .feedback-review-stars {color:#ffd77b}
.feedback-stars label:has(input:checked) {border-color:#ffd77b;box-shadow:inset 0 0 0 1px #ffd77b}
.feedback-status {color:#a6e1bb}
.feedback-status[data-state=error] {color:#ffb7ae}
.website-feedback-results,.website-feedback-list>li {border-color:var(--line)}
.remove-item {background:#000;border-color:#a9716c;color:#ffb7ae}
.remove-item:hover {background:#221010;color:#ffd5cf}
.dialog-close,.image-viewer-controls button {color:#fff}
.dialog-product-tools .button {color:#fff}
.product-tools [aria-pressed="true"] .compare-check {color:#000}
.home-search button:hover {color:#000}

/* Transparent dark artwork needs a light treatment on the black logo strips. */
.partner-logo img:is([alt="Zebra"],[alt="Cognex"],[alt="Delhivery"],[alt="Bodycare"],
  [alt="Marathon Electric"],[alt="NutriGlow"],[alt="Pepperfry"],[alt="Veira Group"]) {
  filter:brightness(0) invert(1);
}
.partner-logo img:is([alt="Newland"],[alt="TSC"],[alt="Loadshare Networks"],[alt="Libas"]) {
  filter:brightness(1.8);
}

@media(forced-colors:active) {
  :is(h1,h2,h3,h4,h1 span,h2 span,h3 span,h4 span,.wordmark-text,.wordmark-country,
    .eyebrow,.section-index,.reviews-rating strong,.product-name,.text-link,.main-nav>a,
    .nav-products>summary,.application-link,.more-categories a,.product-overview-link,
    .product-compare-action,.category-filter-link,.related-details,.product-help-phone,
    .mobile-nav>a,.product-guide-link a,.buyer-references a) {
    background:none;-webkit-text-fill-color:currentColor;
  }
}
