/* Model catalog styles. The pages are generated by catalog/build.py; this file is hand-written. */
:root {
  --bg: #f7f8fa;
  --bg-hero: radial-gradient(1200px 520px at 85% -10%, #dfe8ff 0%, rgba(223, 232, 255, 0) 60%),
             radial-gradient(900px 480px at -10% 10%, #fdf0dc 0%, rgba(253, 240, 220, 0) 55%);
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --thumb: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #eceff3 100%);
  --text: #11151b;
  --muted: #5b6472;
  --faint: #8a93a1;
  --line: #e3e6eb;
  --accent: #3b6cf6;
  --accent-2: #e8a33d;
  --accent-soft: #e6edff;
  --ok: #157347;  --ok-soft: #ddf3e6;
  --warn: #8a5300; --warn-soft: #fcefd6;
  --info: #5a45c4; --info-soft: #ece8fd;
  --new: #0f6f86;  --new-soft: #dcf2f7;
  --shadow: 0 1px 2px rgba(17, 21, 27, .05), 0 8px 24px -12px rgba(17, 21, 27, .14);
  --shadow-hover: 0 2px 4px rgba(17, 21, 27, .06), 0 18px 40px -16px rgba(17, 21, 27, .25);
  --header: rgba(247, 248, 250, .78);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1014;
    --bg-hero: radial-gradient(1200px 520px at 85% -10%, rgba(59, 108, 246, .22) 0%, rgba(59, 108, 246, 0) 60%),
               radial-gradient(900px 480px at -10% 10%, rgba(232, 163, 61, .10) 0%, rgba(232, 163, 61, 0) 55%);
    --surface: #151a20;
    --surface-2: #1d232b;
    --thumb: radial-gradient(120% 90% at 50% 20%, #2a313b 0%, #181d24 100%);
    --text: #eef1f5;
    --muted: #a3acb9;
    --faint: #7a8494;
    --line: #262d36;
    --accent: #7ea2ff;
    --accent-soft: #1d2a4a;
    --ok: #7fd6a4;  --ok-soft: #173326;
    --warn: #f2c46e; --warn-soft: #3a2c13;
    --info: #b9acff; --info-soft: #2a2546;
    --new: #7fd3e6;  --new-soft: #133640;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-hover: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --header: rgba(13, 16, 20, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1014;
  --bg-hero: radial-gradient(1200px 520px at 85% -10%, rgba(59, 108, 246, .22) 0%, rgba(59, 108, 246, 0) 60%),
             radial-gradient(900px 480px at -10% 10%, rgba(232, 163, 61, .10) 0%, rgba(232, 163, 61, 0) 55%);
  --surface: #151a20;
  --surface-2: #1d232b;
  --thumb: radial-gradient(120% 90% at 50% 20%, #2a313b 0%, #181d24 100%);
  --text: #eef1f5;
  --muted: #a3acb9;
  --faint: #7a8494;
  --line: #262d36;
  --accent: #7ea2ff;
  --accent-soft: #1d2a4a;
  --ok: #7fd6a4;  --ok-soft: #173326;
  --warn: #f2c46e; --warn-soft: #3a2c13;
  --info: #b9acff; --info-soft: #2a2546;
  --new: #7fd3e6;  --new-soft: #133640;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-hover: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --header: rgba(13, 16, 20, .75);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* header */
header.top {
  position: sticky; top: 0; z-index: 10; background: var(--header);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; letter-spacing: -.02em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 18px;
  color: #fff; background: linear-gradient(135deg, #3b6cf6, #7a5cf0);
  box-shadow: 0 4px 12px -4px rgba(59, 108, 246, .6);
}
nav.cols { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.cols a { color: var(--muted); font-size: 14.5px; font-weight: 550; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
nav.cols a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.spacer { flex: 1; }
.iconbtn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 18px; cursor: pointer; padding: 0;
}
.iconbtn:hover { color: var(--text); border-color: var(--faint); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: grid; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: grid; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
@media (max-width: 640px) { nav.cols { display: none; } }

/* hero */
.hero { background: var(--bg-hero); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; } }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 10px 0 12px; }
h1 .dot { color: var(--accent-2); }
.hero .tag { font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; letter-spacing: -.015em; margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 17.5px; max-width: 680px; margin: 0 0 8px; }
.stats { display: flex; gap: 12px; margin: 26px 0 26px; flex-wrap: wrap; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; box-shadow: var(--shadow); min-width: 104px; }
.stats b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.2; }
.stats span { color: var(--muted); font-size: 13.5px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 650;
  background: var(--text); color: var(--bg); transition: transform .15s ease;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.hero-art { position: relative; aspect-ratio: 5 / 4; }
.hero-art img { position: absolute; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(17, 21, 27, .18)); }
.hero-art .a0 { width: 62%; left: 0; top: 2%; z-index: 1; }
.hero-art .a1 { width: 54%; left: 30%; bottom: -4%; z-index: 3; }
.hero-art .a2 { width: 42%; right: -2%; top: -2%; z-index: 2; }
@media (max-width: 860px) { .hero-art { max-width: 520px; width: 100%; margin: 0 auto; } }
.hero.small { padding: 8px 0 32px; }
.hero.small h1 { font-size: clamp(32px, 5vw, 48px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 4px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--faint); }
.jump { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.jump .count { font-weight: 650; margin-right: 6px; }
.jump a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 550; }
.jump a:hover { border-color: var(--accent); text-decoration: none; }

/* sections */
h2.sec { font-size: 26px; letter-spacing: -.025em; margin: 56px 0 18px; }
.cat { margin: 48px 0 0; }
.cat-head h2 { font-size: 28px; letter-spacing: -.025em; margin: 0 0 4px; }
.cat-head p { color: var(--muted); max-width: 760px; margin: 0 0 18px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 56px 0 14px; }
.toolbar h2.sec { margin: 0; }
.search {
  display: flex; align-items: center; gap: 8px; min-width: min(320px, 100%); padding: 0 14px; height: 44px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; min-width: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pill {
  font: inherit; font-size: 14px; font-weight: 550; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.pill.small { font-size: 13px; padding: 4px 12px; }
.pill:hover { color: var(--text); border-color: var(--faint); }
.pill[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 14px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.card .thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--thumb); border-bottom: 1px solid var(--line); }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb .chip { position: absolute; left: 12px; top: 12px; z-index: 1; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.card .eyebrow { font-size: 11.5px; }
.card h3 { font-size: 17px; letter-spacing: -.015em; margin: 0; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .body { padding: 10px 12px 14px; }
  .card h3 { font-size: 15px; }
  .card p { font-size: 13px; -webkit-line-clamp: 3; }
  .card .thumb .chip { left: 8px; top: 8px; }
}
.noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 48px; color: var(--faint); }
.colls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.coll {
  display: grid; grid-template-columns: 44% 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .18s ease, box-shadow .18s ease;
}
.coll:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.coll .cover { background: var(--thumb); display: grid; place-items: center; min-height: 200px; position: relative; }
.coll .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.coll .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.coll h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.coll p { margin: 0; color: var(--muted); font-size: 14.5px; }
.coll .more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14.5px; }
@media (max-width: 480px) { .coll { grid-template-columns: 1fr; } .coll .cover { aspect-ratio: 16 / 9; min-height: 0; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .01em; line-height: 1;
  padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.s-print-tested, .chip.s-printed { background: var(--ok-soft); color: var(--ok); }
.chip.s-test-print { background: var(--warn-soft); color: var(--warn); }
.chip.s-design { background: var(--info-soft); color: var(--info); }
.chip.s-ready-to-print { background: var(--accent-soft); color: var(--accent); }
.chip.s-new { background: var(--new-soft); color: var(--new); }

/* tables */
.tablecard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 8px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.names td:first-child { font-weight: 650; white-space: nowrap; }
.scroll { overflow-x: auto; }

/* part page */
.partpage { padding-bottom: 8px; }
.part-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.part-head h1 { margin: 6px 0; font-size: clamp(30px, 5vw, 46px); }
.part { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 22px; }
@media (max-width: 900px) { .part { grid-template-columns: 1fr; gap: 20px; } }
.gallery { position: sticky; top: 80px; }
@media (max-width: 900px) { .gallery { position: static; } }
.stage { background: var(--thumb); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.caption { padding: 10px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); min-height: 44px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumbs button {
  width: 84px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--thumb); cursor: pointer; overflow: hidden; transition: border-color .15s ease, transform .15s ease;
}
.thumbs button:hover { transform: translateY(-1px); border-color: var(--faint); }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--accent); }
.thumbs button.three { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.thumbs button.three svg { font-size: 20px; }
.viewer { width: 100%; aspect-ratio: 4 / 3; position: relative; touch-action: none; cursor: grab; }
.viewer:active { cursor: grabbing; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer .hint {
  position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; color: var(--muted); pointer-events: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
}
.facts { display: flex; flex-direction: column; gap: 14px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.fact h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fact p { margin: 0 0 8px; }
.fact p:last-child { margin-bottom: 0; }
dl { margin: 0; display: grid; gap: 0; }
dl div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 550; }
ul.files { list-style: none; padding: 0; margin: 0; font-feature-settings: "calt" 0; }
ul.files a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text); font-size: 14.5px;
}
ul.files a:hover { background: var(--surface-2); text-decoration: none; }
ul.files a > svg { color: var(--faint); }
ul.files .fname { flex: 1; overflow-wrap: anywhere; }
ul.files .size { color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.ext { font-size: 11px; font-weight: 750; letter-spacing: .04em; padding: 4px 0; width: 44px; text-align: center; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.ext.e-step { background: var(--accent-soft); color: var(--accent); }
.ext.e-3mf { background: var(--ok-soft); color: var(--ok); }
.ext.e-stl { background: var(--warn-soft); color: var(--warn); }
.note { font-size: 14px; color: var(--muted); margin: 0; }
.related h2.sec { margin-top: 64px; }

footer.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 14px; color: var(--muted); }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
