/* Additive polish on top of the Robixx stylesheet. Loaded last. Nothing here changes the template's
   layout grid or animation; it fixes what the content change exposed using 100% pure template tokens. */

/* ---------- Resources and Company menus (same links as the footer columns) ---------- */

.navbar-main [data-sansong-footer-menu] .megamenu-dropdown-wrap {
  min-width: 0;
}

.navbar-main [data-sansong-footer-menu] .megamenu-dropdown-wrap[hidden] {
  display: none !important;
}

.navbar-main [data-sansong-footer-menu] .nav-dropdown-link-wrapper {
  gap: 0;
}

.navbar-main [data-sansong-footer-menu] .nav-link-item:not([hidden]) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .navbar-main [data-sansong-footer-menu] > .nav-dropdown-list-item.megamenu {
    width: 280px;
    left: 0;
    right: auto;
  }

  .navbar-main [data-sansong-footer-menu] .megamenu-dropdown-wrapper {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 24px;
  }
}

/* ---------- Inquiry form ---------- */

.sansong-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sansong-mail-draft {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-block: 4px;
  margin-top: 12px;
  text-decoration: underline;
}

/* ---------- Chinese typography ---------- */

/* A Chinese heading wraps cleanly with strict CJK line-breaking while never overflowing narrow/centered containers. */
html[lang^='zh'] :is(h1, h2, h3, h4, .heading, [class*='heading'], [class*='title']) {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  max-width: 100%;
  min-width: 0;
}

html[lang^='zh'] :is(h1, h2, h3, h4, main [class*='heading'], main [class*='title']) :is(span, div) {
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

html[lang^='zh'] :is(p, li) {
  text-wrap: pretty;
  line-break: strict;
}

/* The template tightens Latin display type; Chinese glyphs need the default spacing and more leading. */
html[lang^='zh'] :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.25;
}

/* ---------- Product photographs on a white ground ---------- */

/* Cut-out machine photographs must never be cropped by a cover-fitted frame. */
img[src*='injection-stretch-blow'],
img[src*='double-row-machine'],
img[src*='two-color-machine'],
img[src*='positioners.png'],
img[src*='robot-tracks'] {
  object-fit: contain !important;
  background: #ffffff;
}

/* Products-page welding positioner card: the studio photograph is shown whole, like the render it replaces. */
img[src*='t-positioner-studio'] {
  object-fit: contain !important;
  background: #dadada;
}

/* ---------- Chat launcher (shown until the chat window itself has loaded) ---------- */

.sason-chat-launcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 900;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: #000000;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sason-chat-launcher:hover {
  background: #ac1717;
  transform: translateY(-2px);
}

.sason-chat-launcher:focus-visible {
  outline: 2px solid #ac1717;
  outline-offset: 3px;
}

/* Contact form: a visible keyboard focus ring on every field. */
.form .text-field:focus-visible,
.form .select-field:focus-visible,
.form .textarea:focus-visible {
  outline: 2px solid #ac1717;
  outline-offset: 2px;
  border-color: #ac1717;
}

@media (prefers-reduced-motion: reduce) {
  .sason-chat-launcher {
    transition: none;
  }
}

/* ---------- Photographs (image plan) ---------- */

/* One quiet template backdrop behind every planned picture while it loads, so frames never flash white. */
img[data-image] {
  background-color: #ececec;
  object-fit: cover !important;
}

/* Automation specification block: the template video frame stays (its class is a preservation hook)
   and shows the still photograph in the same 16:9 box the film used. */
.w-richtext figure.sansong-spec-still img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* ISBM selection still: the whole photograph, scaled uniformly inside that same frame.
   img[data-image] forces cover; this rule is more specific so the photo is not cropped. */
.w-richtext figure.sansong-spec-still:has(img[data-image='sx-isbm-station-close']) > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
}

.w-richtext figure.sansong-spec-still img[data-image='sx-isbm-station-close'] {
  inset: 0;
  max-width: none;
  max-height: none;
  object-fit: contain !important;
  object-position: center center;
  background-color: #ececec;
}

img[data-image$='-render'],
img[data-image='t-isbm-standard'] {
  object-fit: contain !important;
  background-color: #f8f8f8;
}

.sansong-product-media:has(img[data-image]) {
  background: #f8f8f8;
}

/* The template's dotted world map became a real photograph. */
.home-map-wrap .image-map[data-image] {
  object-fit: cover;
  border-radius: 6px;
}

.home-map-wrap .image-map[data-image='tpl-map-01'] {
  object-fit: contain;
  border-radius: 0;
}

/* Applications & evidence: still contact sheet of real work. */
.clients-logo-wall.sansong-evidence-hidden {
  display: none !important;
}

.sansong-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.sansong-evidence-item {
  margin: 0;
}

.sansong-evidence-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.sansong-evidence-item figcaption {
  margin-top: 10px;
  font-family: var(--_typography---fonts--secondary-family, inherit);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5f5f;
}

html[lang^='zh'] .sansong-evidence-item figcaption {
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media (max-width: 991px) {
  .sansong-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
  }
}

.sansong-has-illustration,
.sansong-media-frame {
  position: relative;
}

/* Caption panel over the about / FAQ workshop pictures: dark template panel with white text (>= 14:1). */
.about-engineering-overlay {
  background-color: rgba(26, 26, 26, 0.78);
}
.about-engineering-overlay .about-overlay-text {
  color: #ffffff;
}

/* Template credits: short numbered licence strips. */
.licensing-grid .licensing-image-link {
  height: 72px;
}
.licensing-grid .licensing-image {
  object-fit: contain;
  background: #f8f8f8;
}

.product-section-wrapper .img-about.sansong-machine-banner[data-image='ss-isbm-banner-architectural'] {
  background-size: cover !important;
  background-position: 50% 50% !important;
  background-color: #1a1a1a !important;
}
.product-row-media img[src$='robotic-welding-cell.jpg'],
.product-row-media img[src$='sx-robot-cells-aisle.webp'] {
  object-fit: contain;
  background: #f8f8f8;
}
@media screen and (max-width: 767px) {
  .partners-categories-photo {
    display: none;
  }
}

/* ---------- Whole-site picture & hero review ---------- */

/* About: widen hero copy container now that the machine photograph sits centered below the headline. */
.about-hero-content {
  max-width: min(960px, 100%);
}

.about-hero-image-holder[data-image] {
  position: relative;
  inset: auto;
  display: block !important;
  width: min(1240px, 100%);
  height: auto;
  aspect-ratio: 2400 / 1200;
  margin: 40px auto 0;
  background-size: contain !important;
  background-position: 50% 50% !important;
  filter: none !important;
}

.pricing-faq-photo[data-image] {
  mix-blend-mode: normal;
}

@media screen and (min-width: 768px) {
  .collection-image-holder.sansong-wide-thumb {
    aspect-ratio: 16 / 10;
    max-width: 420px;
  }
}

.partners-categories-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 18%, rgba(0, 0, 0, 0.7) 36%, rgba(0, 0, 0, 0.84) 100%);
}
@media screen and (max-width: 991px) {
  .partners-categories-photo[data-image] {
    opacity: 0.75;
  }
}

.product-row-media img[src$='t-isbm-row.webp'] {
  object-fit: contain !important;
  background: #f8f8f8;
}

/* Products-page track and ISBM cards: factory photographs fill the same frames the previous pictures used. */
.product-row-media img[src$='sx-floor-track-robot.webp'],
.product-row-media img[src$='sx-isbm-takeout-cell.webp'] {
  object-fit: cover;
  background: #ececec;
}

/* Home banner (injection unit close-up): on phones keep the silver assembly in the narrow frame. */
@media screen and (max-width: 767px) {
  .photo-banner[data-image='sx-injection-unit'] {
    background-position: 68% 50% !important;
  }
}

.partner-rows-photo[data-image='sansong-collaboration-engineers'] {
  object-position: 50% 15%;
}

.sansong-illustration-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(26, 26, 26, 0.68);
  color: #ffffff;
  font: 500 11px/1.2 Switzer, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

html[lang^='zh'] .sansong-illustration-label {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.sansong-illustration-label.is-hero {
  left: auto;
  bottom: auto;
  top: clamp(96px, 12svh, 128px);
  right: max(16px, 2vw);
}

/* About page: restore smooth interactive reveal while keeping keyboard (:focus-within), click (.is-open) and touch/reduced-motion access. */
.about-feature .feature-listing-text-holder {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-feature:is(:hover, :focus-within, .is-open) .feature-listing-text-holder {
  height: auto !important;
  opacity: 1 !important;
  overflow: visible;
}
.about-feature:is(:hover, :focus-within, .is-open) .about-feature-text {
  opacity: 1 !important;
  transform: none !important;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .feature-listing-text-holder { height: auto !important; opacity: 1 !important; overflow: visible; }
  .about-feature .about-feature-text { opacity: 1 !important; transform: none !important; }
}
html[lang^="zh"] .sason-zw { word-break: keep-all; line-break: strict; text-wrap: balance; overflow-wrap: break-word; }

/* Contrast: inactive tab labels, featured dark card label, and resource counts (WCAG 2.2 AA pure template tokens). */
.w-tab-link > div { color: #373737 !important; }
.pricing-compare-head-price { color: #6b5f5f !important; opacity: 1 !important; }
:is(.pricing-card.is-featured, .fx-dark, .dark-background, .footer) .pricing-card-name.is-red { color: #ffffff !important; }
.resources-directory-count { color: #6b5f5f !important; }

/* Keyboard focus on dropdown toggles and mobile menu button. */
.w-dropdown-toggle:focus-visible, .w-nav-button:focus-visible { outline: 2px solid #ac1717; outline-offset: 3px; border-radius: 4px; }
.close-menu-button { position: relative; }
.close-menu-button::after { content: ""; position: absolute; inset: -12px; }
.footer { padding-bottom: calc(24px + 64px); }
.sason-as-h3 { font-size: var(--_typography---typography--h3); }
.sason-as-h4 { font-size: var(--_typography---typography--h4); }
.sason-as-h5 { font-size: var(--_typography---typography--h5); }
.sason-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 6px; background: #000000; color: #ffffff; font-size: 15px; text-decoration: none; }
.sason-skip:focus { top: 12px; }
main.sason-main { display: block; overflow: visible; }
main.sason-main:focus { outline: none; }

/* ---------- Baseline Visual, Contrast & Interaction Fixes ---------- */

.navbar-main .nav-brand-logo.is-over-dark img {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.42));
}

.navbar-main .hero-nav-dropdown.ss-nav-open > .nav-dropdown-list-item.megamenu,
.navbar-main .hero-nav-dropdown > .nav-dropdown-list-item.megamenu.ss-nav-open {
  display: block !important;
  height: auto !important;
  max-height: none;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}

.navbar-main .hero-nav-dropdown.ss-nav-open > .w-dropdown-toggle .nav-icon-wrap {
  transform: rotate(180deg) !important;
  transition: transform 0.25s ease;
}

.navbar-main .hero-nav-dropdown:not(.ss-nav-open) > .w-dropdown-toggle .nav-icon-wrap {
  transform: rotate(0deg) !important;
  transition: transform 0.25s ease;
}

/* Product banner buttons: crisp WCAG AA+ contrast over the dark architectural studio backdrop. */
.product-section-wrapper .product-info-wrap .primary-button {
  background-color: #000000;
  color: #ffffff;
}

.product-section-wrapper .product-info-wrap .primary-button :is(.button-text-pre, .button-text-post) {
  color: #ffffff;
}

.product-section-wrapper .product-info-wrap .primary-button:hover {
  background-color: #ac1717;
}

.product-section-wrapper .video-button-wrap .lightbox-button-grey {
  background-color: rgba(255, 255, 255, 0.94);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.product-section-wrapper .video-button-wrap .lightbox-button-grey :is(.button-text-pre, .button-text-post) {
  color: #000000;
}

.product-section-wrapper .video-button-wrap .lightbox-button-grey:hover {
  background-color: #ffffff;
  border-color: #000000;
}

/* CTA background video section: lock to 100% viewport width, object-fit cover, play/pause inside viewport, high contrast CTAs. */
.section-video-holder {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.section-video-holder > .clip-img-banner,
.section-video-holder .background-video {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  left: 0 !important;
  right: 0 !important;
  overflow: hidden;
}

.section-video-holder .background-video > video {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

.section-video-holder .cta-content-wrap {
  width: 100%;
  max-width: 100%;
}

.section-video-holder .cta-content-wrap > .base-container {
  width: 100%;
  max-width: min(1370px, 100%);
  box-sizing: border-box;
}

.section-video-holder .cta-content-row {
  width: 100%;
  gap: 24px;
}

.section-video-holder .primary-button {
  background-color: #ffffff;
  color: #000000;
}

.section-video-holder .primary-button :is(.button-text-pre, .button-text-post) {
  color: #000000;
}

.section-video-holder .lightbox-button-grey {
  background-color: rgba(26, 26, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #ffffff;
}

.section-video-holder .lightbox-button-grey :is(.button-text-pre, .button-text-post) {
  color: #ffffff;
}

.section-video-holder .lightbox-button-grey:hover {
  background-color: rgba(26, 26, 26, 0.92);
  border-color: #ffffff;
}

.section-video-holder .play-pause-button {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 26, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
}

.section-video-holder .play-pause-button:hover {
  background-color: #ac1717;
  border-color: #ffffff;
}

.w-background-video > video {
  display: block !important;
}

.w-background-video [data-wf-bgvideo-fallback-img] {
  display: none !important;
}

/* ---------- Design Review v2 Full Convergence Fixes ---------- */

@media screen and (max-width: 991px) {
  .feature-cards-grid { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .feature-card, .feature-card-image-holder { max-width: 100%; overflow: hidden; }
  .feature-card-image-holder img { max-width: 100%; }
}

/* 1. Tap targets >= 26px across all viewports (standalone/footer links inline-flex, inline prose links padding-block). */
a.sansong-text-link,
a.contact-link,
.footer-contact a,
.kw-link-list a,
.footer-copyright-link,
.footer-link,
.footer a:not(.footer-brand):not(.om-back-to-top),
.sansong-kw-table a,
.sansong-legacy-table a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  min-width: 24px;
  padding-block: 3px;
}

.sansong-info-copy a,
.product-narrative p a,
.product-details-content-holder p a,
.sansong-legacy p a,
.sansong-legacy-note a,
.sansong-kw p a,
.w-richtext p a,
.om-section p a,
.om-tpl p a,
.dpp-note a {
  padding-block: 5.5px;
}

/* 2. Mobile menu close button hover feedback. */
.close-menu-button { border-radius: 50%; transition: background-color 0.2s ease, transform 0.2s ease; }
.close-menu-button:hover, .close-menu-button:focus-visible { background-color: rgba(172, 23, 23, 0.1); transform: scale(1.06); }

/* 3. Readable prose line length <= 68ch across desktop, laptop, and tablet. */
:is(
  .sansong-info-copy,
  .kw-section,
  .sansong-legacy,
  .sansong-kw,
  .product-narrative,
  .product-details-content-holder,
  .about-engineering,
  .about-standards-head,
  .about-band,
  .section-center-title-wrap,
  .w-richtext,
  .blog-rich-text-style,
  .solution-detail-rich-text,
  .om-section,
  .om-tpl
) p,
.sansong-section-intro,
.about-hero-lead,
.leadership-hero-lead,
.dpp-note {
  max-width: 68ch;
}

:is(.section-center-title-wrap p, .sansong-section-intro:not(.fx-head-split > *), .about-hero-lead) {
  margin-inline: auto;
}

/* 4. Comfortable desktop measure on inner/about hero H1 so it wraps in 2-3 lines instead of 6. */
body .inner-banner h1,
.about-hero h1,
.section-center-title-wrap h1 {
  max-width: 18ch;
  margin-inline: auto;
}

html[lang^='zh'] :is(body .inner-banner h1, .about-hero h1, .section-center-title-wrap h1) {
  max-width: 14em;
}

/* 5. Compact mobile floating chat pill + hero bottom clearance so item 02 / bottom copy never overlaps at 390px/360px. */
@media screen and (max-width: 767px) {
  .sason-chat-launcher {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
    bottom: max(12px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
  }

  .home-hero .bottom-hero-text-holder {
    padding-bottom: 64px;
  }
}

/* 6. FAQ: sticky column landscape photo aspect cap. */
.pricing-faq-photo[data-image] { width: 100%; height: auto; max-height: 760px; aspect-ratio: 3 / 2; object-fit: cover; align-self: start; }

/* ---------- Issue 05: Crisp Non-Transparent Link Hover & Video Note Breathing Room ---------- */

/* Prevent Webflow base CSS (a:hover { opacity: .7 }, .product-card-title:hover { opacity: .5 })
   from fading interactive text links; global card hover waits for owner A/B selection. */
:is(
  a.sansong-text-link,
  .sansong-info-copy a,
  .sansong-legacy a:not(.primary-button):not(.lightbox-button-grey),
  .sansong-kw a:not(.primary-button):not(.lightbox-button-grey),
  .kw-link-list a,
  .product-narrative p a,
  .product-details-content-holder p a,
  .w-richtext p a,
  .dpp-note a,
  .sansong-mail-draft,
  .sansong-legacy-phone
) {
  opacity: 1 !important;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

:is(
  a.sansong-text-link,
  .sansong-info-copy a,
  .sansong-legacy a:not(.primary-button):not(.lightbox-button-grey),
  .sansong-kw a:not(.primary-button):not(.lightbox-button-grey),
  .kw-link-list a,
  .product-narrative p a,
  .product-details-content-holder p a,
  .w-richtext p a,
  .dpp-note a,
  .sansong-mail-draft,
  .sansong-legacy-phone
):is(:hover, :focus-visible, :active) {
  opacity: 1 !important;
  color: #000000;
  text-decoration: underline;
  text-decoration-color: #ac1717;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

a.contact-link:is(:hover, :focus-visible, :active),
.footer a:not(.footer-brand):is(:hover, :focus-visible, :active) {
  opacity: 1 !important;
}

:is(.fx-dark, .dark-background, .footer) :is(a.sansong-text-link, .sansong-legacy-phone):is(:hover, :focus-visible, :active) {
  opacity: 1 !important;
  color: #ffffff;
  text-decoration-color: #ac1717;
}

.product-card-title:is(:hover, :focus-visible) {
  opacity: 1 !important;
  color: #ac1717;
}

/* Comfortable breathing room and clean left alignment between video CTA link and channel note. */
.sansong-legacy-links {
  margin-bottom: 10px;
}

.sansong-legacy-links + .sansong-legacy-note {
  width: 100%;
  max-width: 1080px;
  margin: 10px auto 8px;
}

@media screen and (max-width: 767px) {
  .partners-categories:has(.is-hero-rebuilt) {
    background-color: #1a1a1a;
  }

  .partners-categories-bg:has(.is-hero-rebuilt) {
    bottom: auto;
    height: 540px;
  }

  .partners-categories-photo.is-hero-rebuilt {
    display: block;
    width: 100%;
    height: 540px;
    max-height: 540px;
    object-fit: cover;
    opacity: 0.68;
    object-position: 50% 24%;
  }
}

/* ---------- Owner-Approved Hover Option A (Site-Wide Card & Action Elevation) ---------- */

:is(
  .sansong-catalog-grid .collection-item,
  .partners-categories-grid > *,
  .product-row,
  .om-onmark-home .service-card,
  .om-onmark-home .project-link,
  .om-onmark-home .pricing-content-wrap,
  .om-news-card,
  .blog-card,
  .om-about-values .value-card,
  .om-cert-card,
  .om-soc-card,
  #corporate-facts .sansong-fact-card,
  #corporate-facts .sansong-stat-card
) {
  opacity: 1 !important;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.18s ease,
    color 0.18s ease;
}

:is(
  .sansong-catalog-grid .collection-item,
  .partners-categories-grid > *,
  .product-row,
  .om-onmark-home .service-card,
  .om-onmark-home .project-link,
  .om-onmark-home .pricing-content-wrap,
  .om-news-card,
  .blog-card,
  .om-about-values .value-card,
  .om-cert-card,
  .om-soc-card,
  #corporate-facts .sansong-fact-card,
  #corporate-facts .sansong-stat-card
):is(:hover, :focus-within, :focus-visible) {
  opacity: 1 !important;
  transform: scale(1.015);
  border-color: #bbbbbb;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

:is(
  .om-onmark-home .service-card,
  .om-onmark-home .project-link,
  .om-onmark-home .pricing-content-wrap,
  .om-news-card,
  .blog-card,
  .om-about-values .value-card,
  .om-soc-card,
  #corporate-facts .sansong-fact-card,
  #corporate-facts .sansong-stat-card
):is(:hover, :focus-within, :focus-visible) :is(h3, h4, .value-title, .service-ttitle, .project-name, .plan-name, .om-news-card-title, .om-soc-name) {
  color: #000000;
}

.sansong-legacy-links a:is(:hover, :focus-visible) {
  opacity: 1 !important;
  transform: scale(1.015);
  color: #000000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  :is(
    a.sansong-text-link,
    .sansong-info-copy a,
    .sansong-legacy a,
    .sansong-kw a,
    .kw-link-list a,
    .sansong-mail-draft,
    .sansong-legacy-phone,
    .sansong-catalog-grid .collection-item,
    .partners-categories-grid > *,
    .product-row,
    .om-onmark-home .service-card,
    .om-onmark-home .project-link,
    .om-onmark-home .pricing-content-wrap,
    .om-news-card,
    .blog-card,
    .om-about-values .value-card,
    .om-cert-card,
    .om-soc-card,
    #corporate-facts .sansong-fact-card,
    #corporate-facts .sansong-stat-card
  ) {
    transition: none !important;
    transform: none !important;
  }
}

/* Six 2026-11-20 photographs: the whole frame stays visible. Scale inside the existing box;
   do not crop or stretch. Letterbox uses the same quiet ground as other planned pictures. */
img[data-image='sx-isbm-line-white'],
img[data-image='sx-home-positioner'],
img[data-image='sx-home-track-gantry'],
img[data-image='sx-home-robot-cells'],
img[data-image='sx-home-isbm-green'],
img[data-image='sx-home-bottle-moulds'] {
  object-fit: contain !important;
  object-position: center center;
  background-color: #ececec;
}
.solution-detail-hero-media:has(img[data-image='sx-isbm-line-white']),
.sansong-product-media:has(img[data-image='sx-home-positioner']),
.sansong-product-media:has(img[data-image='sx-home-track-gantry']),
.sansong-product-media:has(img[data-image='sx-home-robot-cells']),
.sansong-product-media:has(img[data-image='sx-home-isbm-green']),
.sansong-product-media:has(img[data-image='sx-home-bottle-moulds']),
.product-photo:has(img[data-image='sx-home-positioner']),
.product-photo:has(img[data-image='sx-home-track-gantry']),
.product-photo:has(img[data-image='sx-home-robot-cells']),
.product-photo:has(img[data-image='sx-home-isbm-green']),
.product-photo:has(img[data-image='sx-home-bottle-moulds']) {
  background-color: #ececec;
}
.sansong-product-media:hover img[data-image='sx-home-positioner'],
.sansong-product-media:hover img[data-image='sx-home-track-gantry'],
.sansong-product-media:hover img[data-image='sx-home-robot-cells'],
.sansong-product-media:hover img[data-image='sx-home-isbm-green'],
.sansong-product-media:hover img[data-image='sx-home-bottle-moulds'],
.product-photo:hover img[data-image='sx-home-positioner'],
.product-photo:hover img[data-image='sx-home-track-gantry'],
.product-photo:hover img[data-image='sx-home-robot-cells'],
.product-photo:hover img[data-image='sx-home-isbm-green'],
.product-photo:hover img[data-image='sx-home-bottle-moulds'] {
  transform: none;
}
