/* Brand and typography: references/website-rules.md. Surface and states: existing paper/video components. */
:root {
  --ds-primary:#3664fb;
  --ds-primary-hover:color-mix(in srgb,var(--ds-primary) 90%,white);
  --ds-title:#000;
  --ds-ink:#1a1a1a;
  --ds-text:#333;
  --ds-secondary:#4d4d4d;
  --ds-muted:#666;
  --ds-caption:#707070;
  --ds-placeholder:#999;
  --ds-surface:#fff;
  --ds-background:#f5f7fa;
  --ds-border:#e8eaed;
  --ds-selected:#edf3ff;
  --ds-campaign:#ff383c;
  --ds-price:#ff7815;
  --ds-disabled-background:#eef2fa;
  --ds-disabled-text:var(--ds-muted);
  --ds-font:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --ds-h1:40px;
  --ds-h2:var(--ds-h1);
  --ds-h3:24px;
  --ds-h4:18px;
  --ds-h5:16px;
  --ds-h6:14px;
  --ds-body:16px;
  --ds-label:14px;
  --ds-caption-size:12px;
  --ds-number:32px;
  --ds-weight-regular:400;
  --ds-weight-heading:600;
  --ds-line-heading:1.25;
  --ds-line-body:1.65;
  --ds-tracking:normal;
  --ds-space-1:8px;
  --ds-space-2:12px;
  --ds-space-3:16px;
  --ds-space-4:20px;
  --ds-space-5:24px;
  --ds-space-6:28px;
  --ds-space-7:32px;
  --ds-section:70px;
  --ds-gutter:32px;
  --ds-content:1600px;
  --ds-radius-sm:8px;
  --ds-radius-md:12px;
  --ds-radius-lg:16px;
  --ds-radius-xl:20px;
  --ds-line:1px;
  --ds-icon:24px;
  --ds-checkbox-size:16px;
  --ds-checkbox-radius:4px;
  --ds-checkbox-border:#bfbfbf;
  --ds-tab-height:36px;
  --ds-control-height:40px;
  --ds-hero-height:320px;
  --ds-backdrop:rgb(18 28 45 / 48%);
  --ds-shadow:0 4px 16px rgb(18 34 66 / 7%);
  --ds-layer-nav:2;
  --ds-motion:240ms;
}
@media(max-width:1680px){:root{--ds-content:1264px;--ds-h1:32px}}
@media(max-width:520px){:root{--ds-gutter:16px;--ds-section:36px;--ds-h1:28px}}
@media(prefers-reduced-motion:reduce){:root{--ds-motion:0ms}}
.ds-button,.ds-tab,.ds-input,.ds-select{
  box-sizing:border-box;font:var(--ds-weight-regular) var(--ds-label)/var(--ds-line-body) var(--ds-font);
  border:var(--ds-line) solid var(--ds-border);border-radius:var(--ds-radius-sm);
}
.ds-button,.ds-tab{
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;
  min-height:var(--ds-control-height);padding:0 var(--ds-space-3);cursor:pointer;
}
.ds-button{background:var(--ds-primary);border-color:var(--ds-primary);color:var(--ds-surface)}
.ds-button:hover{background:var(--ds-primary-hover)}
.ds-button[data-variant=outline]{background:transparent;color:var(--ds-primary)}
.ds-button[data-variant=outline]:hover{background:var(--ds-background)}
.ds-button[data-variant=text]{background:transparent;border-color:transparent;color:var(--ds-primary);padding-inline:0}
.ds-button:disabled{background:var(--ds-disabled-background);border-color:transparent;color:var(--ds-disabled-text);cursor:default}
.ds-tabs{display:flex;flex-wrap:wrap;gap:var(--ds-space-2)}
.ds-tab{min-height:var(--ds-tab-height);background:transparent;color:var(--ds-text)}
.ds-tab[aria-selected=true]{color:var(--ds-primary);border-color:var(--ds-primary)}
.ds-tabs[data-variant=underline]{border-bottom:var(--ds-line) solid var(--ds-border)}
.ds-tabs[data-variant=underline] .ds-tab{border:0;border-radius:0;position:relative}
.ds-tabs[data-variant=underline] .ds-tab[aria-selected=true]::after{content:"";position:absolute;bottom:calc(-1 * var(--ds-line));inset-inline:var(--ds-space-3);height:2px;background:var(--ds-primary)}

/* CNC page layout. Shared header and footer keep their own typography and grid. */
.cnc-page { color:var(--ds-text); font:var(--ds-body)/var(--ds-line-body) var(--ds-font); }
.cnc-page :is(h1,h2,h3) { color:var(--ds-ink); font-weight:var(--ds-weight-heading); }
.cnc-page h1 { font-size:var(--ds-h1); }
.cnc-page h2 { font-size:var(--ds-h2); }
.cnc-page h3 { font-size:var(--ds-h4); }
.cnc-page img { display:block; width:100%; height:auto; }
.cnc-page a.ds-button { padding-inline:24px; }
.cnc-page a.ds-button:hover { color:var(--ds-surface); }
.cnc-page .ds-tab { font-size:var(--ds-h5); }
.cnc-section { padding-block:var(--ds-section); }
.quote-section { padding-top:60px; }
.production-section,.applications-section { padding-top:0; }
.cnc-tinted { background:var(--ds-background); }
.cnc-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:32px; }
.cnc-photo { border-radius:var(--ds-radius-md); }
.cnc-page .more-link { display:inline-flex; align-items:center; gap:4px; color:var(--ds-primary); font-size:14px; }
.cnc-page .more-link:hover,.cnc-footer-links a:hover { text-decoration:underline; }

.printing-hero { position:relative; isolation:isolate; overflow:hidden; background:#eaf0f6; }
.cnc-hero-picture { position:absolute; inset:0; z-index:-1; }
.cnc-hero-picture img { height:100%; object-fit:cover; object-position:40% center; }
.printing-hero-inner { min-height:clamp(360px,22vw,420px); display:flex; align-items:center; }
.printing-hero-copy { padding-block:24px; }
.printing-hero-copy p { color:var(--ds-secondary); }
.printing-hero-copy .hero-lead { margin-top:16px; margin-bottom:4px; font-size:var(--ds-h4); color:var(--ds-ink); }
.hero-action { min-width:120px; margin-top:24px; }

.quote-panel {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
  gap:32px; padding:28px 32px; background:var(--ds-background); border-radius:var(--ds-radius-md);
}
.cooperation-steps {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px;
  padding:0; list-style:none;
}
.cooperation-steps li { display:flex; align-items:center; gap:12px; position:relative; min-height:40px; }
.cooperation-steps li > span {
  display:grid; place-items:center; flex:none; width:36px; aspect-ratio:1; border-radius:50%;
  color:var(--ds-primary); background:var(--ds-selected); font-size:18px; font-weight:600;
}
.cooperation-steps li:not(:last-child)::after {
  content:"→"; color:var(--ds-muted); position:absolute; right:0; transform:translateX(50%);
}
.quote-action { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.quote-action p { color:var(--ds-muted); font-size:14px; }

.reference-split { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,5vw,104px); align-items:center; }
.reference-about-copy { display:grid; gap:20px; }
.reference-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.reference-metrics article { padding:16px 20px; background:var(--ds-background); border-radius:var(--ds-radius-sm); }
.reference-metrics b { display:block; color:var(--ds-primary); font-size:36px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.reference-metrics b span { font-size:16px; }
.reference-metrics article h3 { margin-top:8px; color:var(--ds-secondary); font-size:16px; font-weight:400; }

.equipment-panel {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr);
  align-items:center; gap:24px; margin-top:24px; padding:24px;
  border-radius:var(--ds-radius-md); background:var(--ds-surface);
}
.equipment-copy { padding-left:clamp(0px,2vw,32px); }
.equipment-copy h3 { font-size:var(--ds-h3); }
.equipment-copy p,.application-list p { margin-top:8px; color:var(--ds-secondary); }
.equipment-panel img { justify-self:end; max-width:720px; border-radius:var(--ds-radius-sm); }

.materials-intro { margin-bottom:24px; color:var(--ds-secondary); }
.material-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.material-grid img { aspect-ratio:1340/892; object-fit:contain; background:#f3f5f8; border-radius:var(--ds-radius-md); }
.material-grid figcaption { margin-top:16px; text-align:center; color:var(--ds-muted); }

.application-split { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:center; gap:clamp(32px,5vw,80px); }
.application-split figcaption { margin-top:8px; color:var(--ds-muted); font-size:14px; }
.application-list { list-style:none; padding:0; }
.application-list li { padding-block:24px; }
.application-list li + li { border-top:1px solid var(--ds-border); }

.cnc-footer { background:var(--ds-background); }
.cnc-footer-links { display:flex; flex-wrap:wrap; gap:12px 32px; padding-block:24px; color:var(--ds-secondary); }
.cnc-footer .site-footer > .download,
.cnc-footer .site-footer .benefits,
.cnc-footer .site-footer .business { display:none; }
[data-site-navigation="cnc"] .brand { flex-basis:auto; gap:8px; white-space:nowrap; }
[data-site-navigation="cnc"] .brand img { width:104px; height:auto; }
[data-site-navigation="cnc"] .brand span { color:var(--ds-ink); font-size:18px; font-weight:600; }
[data-jlc-navigation]:empty { min-height:104px; }

@media (max-width:1300px) {
  .quote-action { flex-direction:column; align-items:flex-start; gap:8px; }
  .quote-panel { gap:24px; }
}
@media (max-width:900px) {
  .reference-split,.application-split { grid-template-columns:1fr; gap:24px; }
  .quote-panel { grid-template-columns:1fr; }
  .quote-action { flex-direction:row; align-items:center; gap:12px 16px; }
  .equipment-panel { grid-template-columns:1fr; }
  .equipment-panel img { justify-self:start; max-width:none; }
  .equipment-copy { padding-left:0; }
  .application-list li:first-child { padding-top:0; }
  .application-list li:last-child { padding-bottom:0; }
}
@media (max-width:760px) {
  .printing-hero { display:grid; padding:0; }
  .printing-hero-inner { grid-row:1; min-height:0; }
  .printing-hero-copy { padding-block:32px; }
  .cnc-hero-picture { grid-row:2; position:static; }
  .cnc-hero-picture img { height:auto; aspect-ratio:1160/652; }
  .quote-section { padding-top:40px; }
  .cooperation-steps { grid-template-columns:1fr; gap:12px; }
  .cooperation-steps li:not(:last-child)::after { content:none; }
  .material-grid { gap:16px; }
}
@media (max-width:520px) {
  .cnc-heading { margin-bottom:24px; }
  .quote-panel,.equipment-panel { padding:16px; }
  .reference-metrics b { font-size:29px; }
  .reference-metrics article { padding:12px; }
  .material-grid { grid-template-columns:1fr; gap:24px; }
  [data-site-navigation="cnc"] .brand img { width:80px; }
  [data-site-navigation="cnc"] .brand span { font-size:15px; }
  [data-site-navigation="cnc"] .nav-actions { gap:6px; }
  [data-site-navigation="cnc"] .menu { padding-inline:7px; }
}

.cnc-footer,.cnc-footer .site-footer { background:#f3f4f8; }
.cnc-footer .site-footer { padding-top:0; }
[data-site-navigation="cnc"] .nav-cta { white-space:nowrap; }
@media (max-width:360px) {
  [data-site-navigation="cnc"] .brand { gap:4px; }
  [data-site-navigation="cnc"] .brand img { width:70px; }
}
