/* Figma Items / B2B shared system: image-first cards, unchanged detail photography. */
.cards { gap: 20px; align-items: stretch; }
.card.product-card { display: flex; flex-direction: column; align-self: start; min-width: 0; }
.card.product-card .card-image { aspect-ratio: 1; height: auto; border: 0; border-radius: 12px; }
.card.product-card .card-image img { object-fit: contain; padding: 0; }
.card.product-card .card-text { padding: 12px 0 0; min-width: 0; }
.card.product-card h3 {
  min-height: 0; margin: 0; font-size: 16px; line-height: 24px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card.category-card h3 {
  display: block; margin: 0; min-width: 0; min-height: 0; height: 24px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 16px; line-height: 24px;
}
#latest-products .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
#latest-products .card.product-card .card-image { aspect-ratio: 1; }
@media (max-width: 1100px) {
  #latest-products .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #latest-products .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card.product-card .card-text { padding-inline: 0; }
  .card.product-card h3 { font-size: 14px; line-height: 20px; }
}
.single-model .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.single-model .card.product-card .card-image { aspect-ratio: 16/10; border: 0; }
#related .cards:has(> :nth-child(2):last-child),
.related-knowledge .home-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards:has(> .category-card) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card.category-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; min-height: 112px; }
.card.category-card .card-image { aspect-ratio: auto; height: 100%; border: 0; }
.card.category-card .card-image img { object-fit: contain; padding: 10px; }
.card.category-card .card-text { padding: 14px 14px 14px 10px; min-width: 0; }
.card.category-card h3 { font-size: 16px; line-height: 24px; height: 24px; min-height: 0; }
.home-news { gap: 20px; align-items: start; }
.news-card > a { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.news-card .news-image { position: relative; aspect-ratio: 16/9; height: auto; flex: none; overflow: hidden; border-radius: 12px; }
.news-card .news-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card .news-image--informational img { object-fit: contain; }
.news-card .news-copy { display: grid; gap: 8px; padding: 12px 0 0; min-width: 0; overflow-wrap: anywhere; }
.news-card .news-copy h3 { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-card .news-copy p {
  color: var(--muted); font-size: 14px; line-height: 21px; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
.news-card:hover { transform: none; }
.home-advantages { gap: 20px; align-items: stretch; }
.home-advantages article { padding: 20px; min-width: 0; display: flex; flex-direction: column; }
.home-advantages article h3 {
  font-size: 16px; line-height: 23px; min-height: 46px; height: 46px; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
}
.home-advantages article p { font-size: 14px; line-height: 22px; margin: 12px 0 0; overflow-wrap: anywhere; }
.home-advantages article p.is-long-intro {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
}
.full-intro-button { align-self: start; border: 0; background: transparent; color: var(--brand); font-size: 13px; padding: 12px 0 0; margin-top: auto; }
.oem-copy dl { margin: 16px 0 0; }
.oem-copy dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.oem-copy dl dt, .oem-copy dl dd { margin: 0; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.oem-copy dl > div:last-child { border: 0; }
.stats { padding: 24px 0; }
.stats strong { font-size: 34px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.partner-logos { gap: 20px; }
.partner-logos > img { width: 100%; height: 86px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; background: white; }
.document-sheet .document-name {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  height: 21px; font-size: 14px; line-height: 21px; margin-top: 12px;
}
/* Repeated information images stay complete; photo galleries retain full-bleed fit. */
.gallery:has(> figure:nth-child(2)):not(.gallery-document):not(.gallery-photo) .image-button {
  aspect-ratio: 16/10; width: 100%; background: #fff; overflow: hidden;
}
.gallery:has(> figure:nth-child(2)):not(.gallery-document):not(.gallery-photo) .image-button img { width: 100%; height: 100%; object-fit: contain; }
.gallery figcaption {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 19px; min-height: 38px; margin-top: 10px;
}
.chips span { padding: 8px 12px; border-radius: 6px; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; max-width: 100%; }
#inquiry-preview dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 20px 0; }
#inquiry-preview dl > :is(dt,dd) { margin: 0; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; white-space: pre-wrap; }
.item-full-text {
  position: fixed; z-index: 100; max-width: 360px; max-height: min(300px, 65vh); overflow: auto;
  padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: white; color: var(--ink); box-shadow: 0 6px 24px #143f4a16;
  font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap;
}
.item-full-text--catalogue {
  max-inline-size: min(360px, calc(100vw - 24px));
  padding: 4px 12px;
  border: 0;
  background: var(--ink);
  color: white;
  box-shadow: none;
  font-weight: 500;
  line-height: 24px;
}
#item-intro { width: min(760px, 80vw); max-height: 80vh; padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
#item-intro::backdrop { background: #142f38bb; }
#item-intro h2 { font-size: 22px; margin: 0 80px 20px 0; }
#item-intro p { line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; text-wrap: wrap; }
#item-intro button { float: right; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; }
/* Public reading roles resolve the existing page-specific cascade without changing layout. */
main .page-heading h1,
main .catalog-header h1, main .product-summary h1,
#company .section-head h1 { font-size: 32px; line-height: 40px; font-weight: 600; }
main .section-head h2 { font-size: 28px; line-height: 36px; font-weight: 600; }
main .hero h1 { font-size: 48px; line-height: 56px; font-weight: 600; }
main :is(.article-block, .source-article, .readable-article) h2,
main .geo-questions h2, main .prose > h2,
#oem > .wrap > h2 { font-size: 24px; line-height: 32px; font-weight: 600; }
main :is(.article-block, .source-article, .readable-article, .geo-questions) h3,
main .prose > h2 ~ h3, #oem > .wrap > h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
main :is(.company-story, .article-block, .source-article, .readable-article, .procurement-body, .geo-questions) p,
main .source-points li { font-size: 16px; line-height: 26px; color: var(--body); }
main .lead, main .process-heading .lead, .oem-copy .lead { font-size: 18px; line-height: 28px; color: var(--body); }
main .news-listing .news-intro { font-size: 16px; line-height: 26px; color: var(--body); }
main .comparison-article > .article-caveat { font-size: 14px; line-height: 22px; color: var(--muted); }
.buyer-comparison dd { color: var(--body); }
#image-preview .image-preview-footer p { color: var(--body); }
@media (max-width: 760px) {
  main .section-head h2 { font-size: 24px; line-height: 32px; }
  main .hero h1 { font-size: 32px; line-height: 40px; }
}
/* State overlays are absolute: never resize the main image, thumbnails or cards. */
[data-media-state] { position: relative; }
.media-feedback { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 1; }
[data-media-state="loading"] > .media-feedback { display: grid; place-content: center; gap: 14px; text-align: center; color: var(--muted); font-size: 12px; background: #f1f5f6; }
[data-media-state="loading"] > .media-feedback::before { content: ''; display: block; width: 80px; height: 60px; margin: auto; border-radius: 8px; background: #e2eaed; }
[data-media-state="loading"] > img { opacity: 0; }
[data-media-state="failed"] > img { object-fit: contain !important; }
[data-media-state="failed"] > .media-feedback { display: flex; align-items: end; justify-content: center; padding-bottom: 12px; color: var(--muted); font-size: 12px; }
[data-media-state="failed"][data-media-fallback-loaded="true"] > .media-feedback { display: none; }
[data-media-state="failed"][data-media-missing="true"] { background: #edf4f6; }
[data-media-missing="true"] > img { opacity: 0; }
.thumb .media-feedback { font-size: 0; }
.thumb[data-media-state="loading"] > .media-feedback::before { width: 28px; height: 24px; }
.thumb[data-media-state="failed"] > .media-feedback { background: transparent; }
.thumb[data-media-state="failed"] > .media-feedback::after { content: '!'; color: var(--muted); font-size: 12px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-media-state="loading"] > .media-feedback::before { animation: image-wait 1.4s ease-in-out infinite alternate; }
  @keyframes image-wait { to { opacity: .45; } }
}
