/* ============================================================
   CROSLYNK · MANUFACTURING PAGE (manufacturing.html only)
   Shares tokens with style.css and components with simulation.css
   (hero, stat strip, jump bar, cards, band, FAQ, enquiry, lightbox).
   ============================================================ */

/* ---------- route finder ---------- */
.finder { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 30px; align-items: stretch; }
.finder > * { min-width: 0; }
.finder-q.card { padding: 24px; }
.finder-q fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.finder-q fieldset:last-child { margin-bottom: 0; }
.finder-q legend { font: 500 0.64rem/1.2 'IBM Plex Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.finder-q .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.finder-q label { cursor: pointer; }
.finder-q input { position: absolute; opacity: 0; pointer-events: none; }
.finder-q label span { display: inline-block; font: 400 0.82rem/1.2 'Poppins', sans-serif; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(194, 110, 45, 0.25); background: rgba(255, 255, 255, 0.8); color: var(--ink); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.finder-q input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff8ec; }
.finder-q input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.finder-out { position: relative; overflow: hidden; border-radius: 20px; background: #1a1209; color: #f4e6cc; display: flex; flex-direction: column; min-height: 100%; box-shadow: 0 18px 40px rgba(103, 70, 31, 0.18); }
.finder-out .fo-img { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.finder-out .fo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.35s; }
.finder-out .fo-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 18, 9, 0) 40%, #1a1209 100%); }
.finder-out .fo-body { padding: 4px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.finder-out .fo-k { font: 500 0.62rem/1.2 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #FFB020; }
.finder-out h3 { color: #fff6e6; font-size: 1.45rem; margin: 6px 0 8px; }
.finder-out ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 7px; }
.finder-out li { position: relative; padding-left: 18px; font-size: 0.86rem; color: #d9cab0; line-height: 1.5; }
.finder-out li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: #FFB020; transform: rotate(45deg); }
.finder-out .fo-alt { font-size: 0.8rem; color: #b8a98f; margin: 0 0 16px; }
.finder-out .fo-alt b { color: #fff4e0; }
.finder-out .fo-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.finder-out .fo-actions a { color: #FFC64A; font-size: 0.82rem; font-weight: 500; text-decoration: none; }
.finder-out .svc-add { background: #FFB020; border-color: #FFB020; color: #1a1206; }
.finder-out .svc-add.added { background: var(--good); border-color: var(--good); color: #fff; }

/* ---------- comparison table ---------- */
.cmp-wrap { margin-top: 26px; overflow-x: auto; border-radius: 18px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: 0 10px 26px rgba(103, 70, 31, 0.07); }
.cmp { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 0.84rem; }
.cmp th { text-align: left; font: 500 0.62rem/1.3 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-dark); padding: 14px 14px 10px; border-bottom: 1px solid var(--line-strong); }
.cmp td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: #4f4537; vertical-align: top; line-height: 1.5; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cmp td:first-child a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line-strong); }
.cmp td.num { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp tbody tr:hover td { background: var(--amber-ghost); }

/* ---------- process deep-dive ---------- */
.route-sec .wrap { position: relative; }
.route-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; margin-top: 8px; }
.route-grid > * { min-width: 0; }
.route-sec.flip .route-media { order: 2; }
.route-head-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.route-no { font: 600 0.72rem/1 'IBM Plex Mono', monospace; letter-spacing: 0.12em; color: #fff; background: var(--amber); padding: 7px 10px; border-radius: 8px; }
.route-sec h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.route-sec .route-lede { font-size: 1.02rem; line-height: 1.7; max-width: 60ch; margin: 12px 0 18px; }
.route-media { display: grid; gap: 10px; position: sticky; top: 150px; }
.route-media .main { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: #2a2014; box-shadow: 0 20px 44px rgba(103, 70, 31, 0.16); cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%; }
.route-media .main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease-premium); }
.route-media .main:hover img { transform: scale(1.04); }
.route-media .main .svc-src { position: absolute; right: 10px; bottom: 9px; font: 400 0.56rem/1 'IBM Plex Mono', monospace; color: rgba(255, 255, 255, 0.88); background: rgba(0, 0, 0, 0.4); padding: 4px 6px; border-radius: 6px; }
/* Thumbnails: the frame sets the size, the photo only fills it. The img
   width/height attributes stay in the HTML for layout stability, so the
   img is taken out of flow (absolute) and can never stretch the row. */
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.thumbs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumbs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; margin: 0; border: 0; padding: 0; background: #2a2014; border-radius: 14px; overflow: hidden; cursor: zoom-in; text-align: left; box-shadow: 0 8px 18px rgba(103, 70, 31, 0.12); isolation: isolate; }
.thumbs.two .thumb { aspect-ratio: 4 / 3; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform 0.7s var(--ease-premium); }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); pointer-events: none; }
.thumb span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 8px 7px; font: 500 0.58rem/1.3 'IBM Plex Mono', monospace; letter-spacing: 0.02em; color: #fff4e0; background: linear-gradient(180deg, rgba(14, 9, 3, 0) 0%, rgba(14, 9, 3, 0.82) 62%); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb:hover img { transform: scale(1.06); }
.thumb:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.thumbs.two .thumb span { font-size: 0.64rem; padding: 26px 10px 9px; }

.mfg-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; counter-reset: st; border-left: 2px solid var(--line-strong); }
.mfg-steps li { counter-increment: st; position: relative; padding: 0 0 14px 34px; font-size: 0.88rem; line-height: 1.55; color: #4f4537; }
.mfg-steps li:last-child { padding-bottom: 0; }
.mfg-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: -15px; top: -2px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 600 0.7rem/1 'IBM Plex Mono', monospace; color: var(--amber-dark); background: #fffaf1; border: 2px solid var(--line-strong); }
.mfg-steps li b { color: var(--ink); display: block; font-size: 0.92rem; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); }
.spec-grid div { padding: 11px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.spec-grid div:nth-child(2n) { border-right: 0; }
.spec-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-grid dt { font: 500 0.58rem/1.2 'IBM Plex Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 3px; }
.spec-grid dd { margin: 0; font-size: 0.84rem; color: var(--ink); line-height: 1.45; }

.sub-h { font: 600 0.66rem/1.2 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 9px; }
.part-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.part-chips span { font-size: 0.78rem; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line-strong); color: var(--ink); }
.window-table { width: 100%; border-collapse: collapse; font: 400 0.76rem/1.45 'IBM Plex Mono', monospace; background: #1a1209; color: #e8dcc6; border-radius: 12px; overflow: hidden; }
.window-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255, 176, 32, 0.16); }
.window-table tr:last-child td { border-bottom: 0; }
.window-table td:last-child { color: #FFC64A; text-align: right; white-space: nowrap; }
.window-note { font-size: 0.68rem !important; margin: 6px 0 0 !important; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.vs-grid .card { padding: 16px 18px; }
.vs-grid h4 { margin: 0 0 4px; font-size: 0.95rem; }
.vs-grid p { margin: 0; font-size: 0.82rem; line-height: 1.55; }
.vs-grid .use { margin-top: 8px; font: 500 0.62rem/1.4 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-dark); }
.rule-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.rule-list li { font-size: 0.84rem; line-height: 1.5; padding: 10px 12px 10px 38px; position: relative; border-radius: 10px; background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); color: #4f4537; }
.rule-list li::before { content: "DFM"; position: absolute; left: 8px; top: 11px; font: 600 0.5rem/1 'IBM Plex Mono', monospace; letter-spacing: 0.04em; color: #fff; background: var(--copper); padding: 3px 3px; border-radius: 4px; }
.rule-list li b { color: var(--ink); }
.route-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.route-sec .svc-add { font-size: 0.8rem; padding: 12px 16px; }
.callout { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, rgba(255, 176, 32, 0.16), rgba(194, 105, 45, 0.08)); border: 1px solid var(--line-strong); font-size: 0.88rem; color: var(--ink); line-height: 1.55; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.tech-grid .card { padding: 16px; }
.tech-grid h4 { margin: 0 0 2px; font-size: 1rem; }
.tech-grid .acc { font: 600 0.72rem/1.3 'IBM Plex Mono', monospace; color: var(--amber-dark); margin-bottom: 6px; }
.tech-grid p { font-size: 0.8rem; margin: 0; line-height: 1.5; }

/* ---------- finishing ---------- */
.finish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.finish-grid .card { padding: 22px; }
.finish-grid .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--amber-ghost); border: 1px solid var(--line-strong); color: var(--amber-dark); margin-bottom: 12px; }
.finish-grid .ico svg { width: 19px; height: 19px; }
.finish-grid h3 { font-size: 1rem; margin-bottom: 6px; }
.finish-grid p { font-size: 0.84rem; margin: 0; line-height: 1.6; }

/* ---------- quality ---------- */
.qc-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; margin-top: 30px; align-items: start; }
.qc-grid > * { min-width: 0; }
.qc-points { display: grid; gap: 12px; }
.qc-point { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: 0 8px 20px rgba(103, 70, 31, 0.05); }
.qc-point .when { font: 600 0.62rem/1.35 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 10px; padding: 10px 8px; text-align: center; align-self: start; }
.qc-point .when small { display: block; color: #FFB020; font-size: 0.56rem; margin-top: 3px; }
.qc-point h3 { font-size: 0.98rem; margin: 0 0 4px; }
.qc-point p { font-size: 0.84rem; margin: 0; line-height: 1.55; }
.qc-side .main { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; background: #2a2014; }
.qc-side .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-side .main .svc-src { position: absolute; right: 10px; bottom: 9px; font: 400 0.56rem/1 'IBM Plex Mono', monospace; color: rgba(255, 255, 255, 0.88); background: rgba(0, 0, 0, 0.4); padding: 4px 6px; border-radius: 6px; }
.qc-side .card { padding: 20px; margin-top: 14px; }
.qc-side h3 { font-size: 1rem; }

/* ---------- parts gallery ---------- */
.parts-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 12px; margin-top: 30px; }
.parts-grid .pg-item { position: relative; border-radius: 16px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: #2a2014; display: block; }
.parts-grid .pg-item.tall { grid-row: span 2; }
.parts-grid .pg-item.wide { grid-column: span 2; }
.parts-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease-premium); }
.parts-grid .pg-item:hover img { transform: scale(1.05); }
.parts-grid .pg-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; text-align: left; background: linear-gradient(180deg, rgba(14, 9, 3, 0) 0%, rgba(14, 9, 3, 0.85) 70%); }
.parts-grid .pg-cap b { display: block; color: #fff6e6; font-size: 0.86rem; font-weight: 600; }
.parts-grid .pg-cap span { font: 400 0.6rem/1.3 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #FFC64A; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .finish-grid { grid-template-columns: repeat(2, 1fr); }
  .parts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .finder, .route-grid, .qc-grid { grid-template-columns: 1fr; }
  .route-sec.flip .route-media { order: 0; }
  .route-media { position: static; }
  .tech-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .finish-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid div { border-right: 0; }
  .spec-grid div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .vs-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumbs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thumb span { font-size: 0.62rem; }
  .parts-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .parts-grid .pg-item.wide { grid-column: span 2; }
  .qc-point { grid-template-columns: 1fr; }
  .qc-point .when { justify-self: start; }
  .finder-out .fo-body { padding: 4px 18px 20px; }
}
/* Sticky media only when the whole column fits on screen. */
@media (max-height: 720px) {
  .route-media { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .route-media .main img, .parts-grid img, .thumb img { transition: none; }
}
@media (max-width: 900px) {
  .cmp td:nth-child(2), .cmp td:nth-child(4), .cmp td:nth-child(7) { min-width: 170px; }
}

/* ---------- finishing pass (12 Oct) ---------- */
/* Finder: spread the four questions over the card height so the card
   matches the result panel without an empty block at the bottom. */
.finder-q.card { display: flex; flex-direction: column; gap: 14px; }
.finder-q fieldset { margin: 0; }
.finder-q .finder-note { margin: 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 0.66rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 901px) {
  .finder-q.card { justify-content: space-between; }
}
/* Comparison table: fits the content width on desktop, scrolls on small screens. */
.cmp td:first-child { white-space: normal; min-width: 150px; }
.cmp td.num { white-space: nowrap; }
.cmp th, .cmp td { padding-left: 12px; padding-right: 12px; }

/* simplified layout (Oct 2026): one image per route, short copy */
.route-grid { align-items: center; }
.route-media { position: static; }
.route-copy .route-lede { font-size: 1.04rem; }
.finish-grid .card h3 { margin-bottom: 0; }
.finish-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.finish-grid .card { padding: 18px 16px; }
@media (max-width: 1000px) { .finish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .finish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
