/* ============================================================
   CROSLYNK · TOOLING PAGE (tooling.html only)
   Shares tokens with style.css and components with simulation.css
   (hero, stat strip, jump bar, svc cards, band, case tabs, FAQ,
   enquiry, lightbox), manufacturing.css (finder, route sections,
   thumbs, spec grid, window table, comparison table, QC grid) and
   testing.css (lab panel, compact cards, goal key, dark-zone tables).
   ============================================================ */

/* ---------- hero ---------- */
.tlg-page .sim-hero .hero-copy h1 { max-width: 15ch; }
.tlg-page .sim-stats b { font-size: 1.32rem; white-space: nowrap; }
.tlg-page .sim-readout img { object-position: 50% 55%; }

/* ---------- five service tiles ---------- */
.svc-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.svc-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border-radius: 18px; overflow: hidden; 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.08);
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s;
}
.svc-tile:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(103, 70, 31, 0.14); }
.svc-tile:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.svc-tile .st-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #2a2014; }
.svc-tile .st-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-premium); }
.svc-tile:hover .st-img img { transform: scale(1.06); }
.svc-tile .st-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.svc-tile .st-n { font: 600 0.66rem/1 'IBM Plex Mono', monospace; letter-spacing: 0.12em; color: var(--amber-dark); }
.svc-tile b { font-size: 1rem; line-height: 1.3; }
.svc-tile .st-body > span:not(.st-n) { font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.svc-tile em { margin-top: auto; padding-top: 8px; font-style: normal; font: 500 0.72rem/1.3 'Poppins', sans-serif; color: var(--amber-dark); }

/* ---------- finder (extends manufacturing.css / testing.css) ---------- */
@media (min-width: 901px) { #tlfinder.finder-q.card { justify-content: flex-start; } }
#tlfinder .finder-note { margin-top: auto; }

/* ---------- tool type and fixture family cards ---------- */
.tool-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; }
.tool-types.six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-types .tt.card { padding: 16px 16px 14px; display: flex; flex-direction: column; }
.tool-types h4 { margin: 0 0 2px; font-size: 0.98rem; }
.tool-types .acc { font: 600 0.68rem/1.4 'IBM Plex Mono', monospace; color: var(--amber-dark); margin-bottom: 6px; }
.tool-types p { font-size: 0.8rem; line-height: 1.55; margin: 0 0 12px; }
.tool-types .svc-add { margin-top: auto; align-self: flex-start; font-size: 0.7rem; padding: 8px 11px; }
.fam-h { margin-top: 40px; }

/* ---------- tool and steel tables ---------- */
.tlg-page #moulds .cmp-wrap { margin-top: 34px; }
.steel-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-top: 30px; align-items: start; }
.steel-split > * { min-width: 0; }
.steel-split .sub-h { margin-top: 0; }
.tight-wrap { margin-top: 0 !important; }
.cmp.steel { min-width: 620px; }
.cmp.ops { min-width: 560px; }
.cmp.steel td:first-child, .cmp.ops td:first-child { min-width: 120px; }
.deliv-card.card { padding: 22px; }
.deliv-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tick-list li { position: relative; padding-left: 26px; font-size: 0.86rem; line-height: 1.5; color: #4f4537; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 5px;
  background: var(--amber-ghost) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F5A12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid var(--line-strong);
}

/* ---------- fixtures ---------- */
.rule-list.fx li::before { content: "RULE"; background: var(--amber-dark); }
.rule-list.fx li { padding-left: 50px; }

/* ---------- machining ---------- */
.tgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tgrid.three .svc-media { height: 150px; }
.tgrid.three .tc-std { min-height: 0; }
.parts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.parts-row .pg-item { position: relative; height: 220px; border-radius: 16px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: #2a2014; display: block; width: 100%; }
.parts-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-premium); }
.parts-row .pg-item:hover img { transform: scale(1.05); }
.parts-row .pg-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; text-align: left; background: linear-gradient(180deg, rgba(14, 9, 3, 0) 0%, rgba(14, 9, 3, 0.86) 70%); }
.parts-row .pg-cap b { display: block; color: #fff6e6; font-size: 0.88rem; font-weight: 600; }
.parts-row .pg-cap span { font: 400 0.6rem/1.3 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #FFC64A; }

/* ---------- metal selection (dark zone, reuses case tabs) ---------- */
#metals .case-panel.active { grid-template-columns: 1fr 1.15fr; }
#metals .rail-fig img { aspect-ratio: 3 / 2; }
#metals .rail-cat td:nth-child(2) { font-family: 'Poppins', sans-serif; font-size: 0.78rem; color: #FFD34D; }
#metals .rail-cat td:first-child { color: #fff4e0; font-weight: 500; }
#metals .rail-cat td:last-child { color: #cdbfa6; }
#metals .sub-h.dk { color: #b8a98f; margin: 16px 0 8px; }
#metals .spec-chips { margin-top: 0; }
#metals .svc-add { background: #FFB020; border-color: #FFB020; color: #1a1206; }
#metals .svc-add:hover { background: #FFC64A; border-color: #FFC64A; }
#metals .svc-add.added { background: var(--good); border-color: var(--good); color: #fff; }
.metal-note { font: 400 0.7rem/1.6 'IBM Plex Mono', monospace; color: #9e917a; text-align: center; margin: 26px auto 0; max-width: 780px; }

/* ---------- quality ---------- */
.doc-card.card { padding: 18px; }
.doc-card h3 { font-size: 0.98rem; margin-bottom: 10px; }
.qc-side .io-table td:first-child { width: 52%; }

/* ---------- process & engagement ---------- */
.tlg-page #process .engage-grid { margin-top: 44px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .svc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tgrid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steel-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  #metals .case-panel.active { grid-template-columns: 1fr; }
  .tool-types.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .svc-tile .st-body { padding: 12px; }
  .svc-tile .st-body > span:not(.st-n) { font-size: 0.76rem; }
  .tool-types, .tool-types.six { grid-template-columns: 1fr; }
  .tgrid.three { grid-template-columns: 1fr; }
  .tgrid.three .svc-media { height: 170px; }
  .parts-row .pg-item { height: 170px; }
  .tlg-page .sim-stats b { font-size: 1.12rem; }
  .rule-list.fx li { padding-left: 48px; }
}
@media (max-width: 420px) {
  .svc-tiles { grid-template-columns: 1fr; }
  .svc-tile { flex-direction: row; }
  .svc-tile .st-img { width: 120px; flex: 0 0 120px; aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-tile, .svc-tile .st-img img, .parts-row img { transition: none; }
}

/* ---------- "Build a scope" buttons in the dark metal tabs ---------- */
.go-finder {
  font: 600 0.78rem/1 'Poppins', sans-serif; cursor: pointer; padding: 11px 15px; border-radius: 10px; margin-top: 4px;
  color: #1a1206; background: #FFB020; border: 1px solid #FFB020; transition: background 0.2s;
}
.go-finder:hover { background: #FFC64A; }
.go-finder:focus-visible { outline: 2px solid #fff4e0; outline-offset: 2px; }

/* Finder: cards keep their natural height on this page. */
@media (min-width: 901px) { .tlg-page #finder .finder { align-items: start; } }
.tlg-page #tlfinder .finder-note { margin-top: 0; }

/* simplified layout (Oct 2026): one image per service, short copy */
.route-grid { align-items: center; }
.route-media { position: static; }
.svc-tile .st-body { padding: 18px 18px 18px; }
.tool-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-types .tt.card { padding: 14px 14px 12px; gap: 10px; }
.tool-types h4 { font-size: 0.9rem; }
@media (max-width: 560px) { .tool-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
