:root { scroll-behavior: smooth; }
[id] { scroll-margin-top: 132px; }

/* JST brand system: always preserve the original 600:169 logo ratio. */
.brand {
  position: relative;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}
.brand::before {
  content: "";
  display: block;
  width: clamp(142px, 11.5vw, 174px);
  aspect-ratio: 600 / 169;
  flex: 0 0 auto;
  background: url("../images/brand/jst-logo.png") center / contain no-repeat;
}
.brand-mark,
.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-inner > .brand {
  padding: 8px 0;
}
.header-inner > .brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 42px;
  height: 3px;
  background: var(--blue);
}

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-home .hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -80px;
  bottom: 36px;
  width: min(46vw, 620px);
  aspect-ratio: 600 / 169;
  background: url("../images/brand/jst-logo.png") center / contain no-repeat;
  opacity: .045;
  pointer-events: none;
}
.page-home .hero > .container {
  position: relative;
  z-index: 1;
}
.page-home .hero-copy::before {
  content: "";
  display: block;
  width: clamp(112px, 10vw, 146px);
  aspect-ratio: 600 / 169;
  margin-bottom: 24px;
  background: url("../images/brand/jst-logo.png") left center / contain no-repeat;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -120px;
  bottom: 24px;
  width: min(42vw, 520px);
  aspect-ratio: 600 / 169;
  background: url("../images/brand/jst-logo.png") center / contain no-repeat;
  opacity: .035;
  pointer-events: none;
}
.site-footer > .container {
  position: relative;
  z-index: 1;
}
.site-footer .brand {
  margin-bottom: 22px;
}
.site-footer .brand::before {
  width: clamp(136px, 10vw, 160px);
}

.utility-inner { grid-template-columns: minmax(260px, 440px) 1fr auto; }
.product-subnav { position: static; top: auto; }
.compact-product-page .product-subnav { display: none; }
.language-menu { min-width: 190px; padding: 8px; }
.language-option { width: 100%; border: 0; background: transparent; color: var(--text, #111827); font: inherit; text-align: left; padding: 10px 12px; border-radius: 4px; cursor: pointer; }
.language-option:hover, .language-option.is-active { background: #eef4fa; color: #0b67b2; }
[dir="rtl"] .language-option { text-align: right; }
.page-view { min-height: 60vh; }
.product-card-media-link { display: block; color: inherit; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: #0b67b2; }
.real-product-card .product-card-media-link { aspect-ratio: 4 / 3; overflow: hidden; background: #f3f6f9; }
.real-product-card .product-media-image { width: 100%; height: 100%; object-fit: contain; }
.filter-button { text-decoration: none; }
.contact-dock { position: fixed; z-index: 70; right: 18px; top: 50%; display: grid; gap: 8px; transform: translateY(-50%); }
.contact-dock-link { position: relative; width: 54px; min-height: 54px; display: grid; place-items: center; color: #fff; border-radius: 7px; box-shadow: 0 10px 28px rgba(15, 23, 42, .2); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.contact-dock-link:hover { transform: translateX(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .28); }
.contact-dock-link svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-dock-link .dock-label { position: absolute; right: 64px; white-space: nowrap; padding: 8px 10px; color: #fff; background: #111827; border-radius: 4px; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateX(5px); transition: .18s ease; }
.contact-dock-link:hover .dock-label, .contact-dock-link:focus-visible .dock-label { opacity: 1; transform: translateX(0); }
.dock-whatsapp { background: #168f4c; }.dock-email { background: #165f98; }.dock-phone { background: #087f8c; }.dock-wechat { background: #2d8b3f; }.dock-rfq { background: #0b67b2; }
.contact-channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.contact-channel-card { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid #d9e1ea; border-radius: 6px; color: #111827; text-decoration: none; background: #fff; }
.contact-channel-card svg { width: 28px; height: 28px; color: #0b67b2; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-channel-card strong, .contact-channel-card span { display: block; }.contact-channel-card span { color: #667085; font-size: 13px; }
.product-hero-placeholder { min-height: 520px; }
.real-product-main img { width: 100%; height: 100%; object-fit: contain; background: #f3f6f9; }
.compact-product-page .product-thumbnail-image { aspect-ratio: 1 / 1; background: #fff; }
.compact-product-page .product-thumbnail-image img { width: 100%; height: 100%; object-fit: contain; }
.compact-product-page .product-detail-copy h1 { font-size: clamp(34px, 3vw, 46px); }
.compact-video-layout { display: grid; grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.product-real-video { display: block; width: 100%; max-height: 620px; border-radius: 6px; background: #0d1117; }
.product-placeholder-thumbnails button { cursor: pointer; }
.product-placeholder-thumbnails button.is-active { border-color: #0b67b2; color: #0b67b2; }
.product-spec-note { color: #667085; font-size: 13px; margin-top: 12px; }
.inquiry-form label { display: grid; gap: 8px; }
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form .form-status { min-height: 22px; color: #16754a; font-weight: 700; }
.static-notice { border-left: 3px solid #0b67b2; padding: 12px 15px; background: #eef5fb; color: #3c4b5e; font-size: 14px; }
.archive-product-grid .product-card { min-width: 0; }
.product-detail-features .section-heading { max-width: 760px; }
.machine-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.machine-detail-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d9e1ea; border-radius: 8px; background: #fff; }
.machine-detail-media { aspect-ratio: 4 / 3; overflow: hidden; background: #f3f6f9; }
.machine-detail-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.machine-detail-card figcaption { padding: 22px 22px 24px; }
.machine-detail-card h3 { margin: 0 0 10px; font-size: 21px; }
.machine-detail-card p { margin: 0; color: #667085; font-size: 15px; line-height: 1.65; }
.back-link { display: inline-flex; margin-bottom: 28px; }
.product-page .back-link::before { content: ""; }
body[data-page="products"] .page-hero-grid { grid-template-columns: 1fr; }
body[data-page="products"] .page-hero-media { display: none; }
body[data-page="products"] .page-hero { padding-bottom: 56px; }
@media (min-width: 901px) { .product-detail-copy { padding-right: 72px; } }

@media (max-width: 900px) {
  .page-home .hero::before { left: auto; right: -70px; bottom: 18px; width: min(72vw, 500px); opacity: .035; }
  body { padding-bottom: 66px; }
  .contact-dock { left: 0; right: 0; top: auto; bottom: 0; transform: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: #fff; border-top: 1px solid #d9e1ea; box-shadow: 0 -8px 24px rgba(15, 23, 42, .1); }
  .contact-dock-link { width: auto; min-width: 0; min-height: 64px; border-radius: 0; box-shadow: none; gap: 2px; align-content: center; }
  .contact-dock-link:hover { transform: none; box-shadow: none; }
  .contact-dock-link svg { width: 22px; height: 22px; }
  .contact-dock-link .dock-label { position: static; opacity: 1; transform: none; background: transparent; padding: 0 2px; font-size: 9px; line-height: 1.1; text-align: center; white-space: normal; }
  .product-thumbnails { width: 100%; max-width: 100%; margin-right: 0; padding-right: 0; }
  .contact-channel-grid { grid-template-columns: 1fr 1fr; }
  .inquiry-form .form-row { grid-template-columns: 1fr; }
  .product-hero-placeholder { width: 100%; min-height: 0; }
  .compact-video-layout { grid-template-columns: 1fr; gap: 28px; }
  .machine-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .brand::before { width: 136px; }
  .header-inner > .brand::after { width: 34px; }
  .page-home .hero-copy::before { width: 106px; margin-bottom: 18px; }
  .site-footer .brand::before { width: 142px; }
  .machine-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .contact-channel-grid { grid-template-columns: 1fr; } }
