/* =====================================================================
   Two-Shot (2K) Injection Molding Services — scoped stylesheet
   Container: .tsim-hub  (fully scoped, no global leakage)
   ===================================================================== */

.tsim-hub {
  --tsim-blue: #0052cc;
  --tsim-blue-dark: #003f9e;
  --tsim-navy: #0f2747;
  --tsim-accent: #00a3c4;
  --tsim-ink: #132339;
  --tsim-muted: #5b6b82;
  --tsim-bg: #ffffff;
  --tsim-alt: #f5f8fc;
  --tsim-line: #e2e8f2;
  --tsim-radius: 14px;
  --tsim-radius-sm: 10px;
  --tsim-shadow: 0 10px 30px rgba(15, 39, 71, 0.08);
  --tsim-shadow-sm: 0 4px 14px rgba(15, 39, 71, 0.06);
  --tsim-max: 1140px;

  display: block;
  background: var(--tsim-bg);
  color: var(--tsim-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tsim-hub *,
.tsim-hub *::before,
.tsim-hub *::after { box-sizing: border-box; }

.tsim-hub ::selection { background: rgba(0, 163, 196, 0.22); }

.tsim-hub a { text-decoration: none; }

/* ---------- layout ---------- */
.tsim-inner {
  width: 100%;
  max-width: var(--tsim-max);
  margin: 0 auto;
  padding: 0 24px;
}

.tsim-sec {
  display: block;
  padding: 68px 0;
}

.tsim-sec--alt {
  background: var(--tsim-alt);
  border-top: 1px solid var(--tsim-line);
  border-bottom: 1px solid var(--tsim-line);
}

/* ---------- typography ---------- */
.tsim-h1 {
  margin: 14px 0 18px;
  font-size: 40px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tsim-navy);
}

.tsim-h2 {
  margin: 0 0 14px;
  font-size: 29px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--tsim-navy);
}

.tsim-h2--light { color: #ffffff; }

.tsim-intro {
  margin: 0 0 30px;
  max-width: 900px;
  font-size: 17px;
  color: var(--tsim-muted);
}

.tsim-body { margin: 0; color: var(--tsim-muted); }

.tsim-note {
  margin: 24px 0 0;
  padding: 16px 20px;
  background: var(--tsim-alt);
  border-left: 3px solid var(--tsim-accent);
  border-radius: 0 var(--tsim-radius-sm) var(--tsim-radius-sm) 0;
  font-size: 15px;
  color: var(--tsim-muted);
}

.tsim-legal {
  margin: 26px 0 0;
  font-size: 13.5px;
  color: var(--tsim-muted);
}

/* ---------- hero ---------- */
.tsim-hero {
  display: block;
  padding: 74px 0 66px;
  background:
    radial-gradient(1200px 480px at 82% -12%, rgba(0, 163, 196, 0.14), transparent 62%),
    linear-gradient(180deg, #f3f7fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--tsim-line);
}

.tsim-hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 48px;
  align-items: center;
}

.tsim-hero-copy { min-width: 0; }

.tsim-eyebrow {
  display: inline-block;
  padding: 6px 13px;
  background: rgba(0, 82, 204, 0.09);
  color: var(--tsim-blue);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tsim-hero-sub {
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 17.5px;
  color: var(--tsim-muted);
}

.tsim-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.tsim-badge {
  display: inline-block;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tsim-navy);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.tsim-updated { margin: 0; font-size: 13px; color: var(--tsim-muted); }

.tsim-hero-media { min-width: 0; }

.tsim-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 914;
  object-fit: cover;
  border-radius: var(--tsim-radius);
  border: 1px solid var(--tsim-line);
  box-shadow: var(--tsim-shadow);
}

/* ---------- buttons ---------- */
.tsim-btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tsim-btn--primary {
  background: var(--tsim-blue);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.24);
}

.tsim-btn--primary:hover { background: var(--tsim-blue-dark); transform: translateY(-1px); }

.tsim-btn--ghost {
  background: #ffffff;
  color: var(--tsim-blue);
  border-color: rgba(0, 82, 204, 0.34);
}

.tsim-btn--ghost:hover { background: rgba(0, 82, 204, 0.06); }

.tsim-btn--lg { padding: 16px 30px; font-size: 16.5px; }

/* ---------- decision board ---------- */
.tsim-decision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.tsim-dec-col {
  padding: 26px 26px 22px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
  border-top: 4px solid var(--tsim-line);
}

.tsim-dec-col--yes { border-top-color: var(--tsim-accent); }
.tsim-dec-col--no { border-top-color: #c9d3e2; }

.tsim-dec-h {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--tsim-navy);
}

.tsim-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tsim-list--tight { margin-top: 4px; }

.tsim-list > li { position: relative; }

.tsim-dec-item {
  padding: 0 0 12px 26px;
  font-size: 15px;
  color: var(--tsim-muted);
}

.tsim-dec-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tsim-accent);
}

.tsim-dec-col--no .tsim-dec-item::before { background: #b6c1d3; }

.tsim-dec-item strong { color: var(--tsim-ink); font-weight: 700; }

/* ---------- table ---------- */
.tsim-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
  background: #ffffff;
}

.tsim-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.tsim-table th {
  padding: 15px 18px;
  background: var(--tsim-navy);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
}

.tsim-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--tsim-line);
  color: var(--tsim-muted);
  vertical-align: top;
}

.tsim-table tbody tr:nth-child(even) td { background: #fafcff; }
.tsim-table td:first-child { color: var(--tsim-navy); font-weight: 600; }

/* ---------- process flow ---------- */
.tsim-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.tsim-flow-step {
  position: relative;
  padding: 24px 20px 22px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-flow-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  background: var(--tsim-blue);
  color: #ffffff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
}

.tsim-flow-h { margin: 0 0 7px; font-size: 16px; font-weight: 700; color: var(--tsim-navy); }
.tsim-flow-p { margin: 0; font-size: 14.5px; color: var(--tsim-muted); }

/* ---------- figure ---------- */
.tsim-figure {
  margin: 30px 0 0;
  padding: 0;
}

.tsim-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 914;
  object-fit: cover;
  border-radius: var(--tsim-radius);
  border: 1px solid var(--tsim-line);
  box-shadow: var(--tsim-shadow);
}

.tsim-figure figcaption {
  margin-top: 11px;
  font-size: 13.5px;
  color: var(--tsim-muted);
  text-align: center;
}

/* ---------- material cards ---------- */
.tsim-mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tsim-mat-card {
  padding: 22px 20px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-mat-pair {
  display: inline-block;
  margin-bottom: 11px;
  padding: 5px 12px;
  background: rgba(0, 163, 196, 0.1);
  color: #046b80;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tsim-mat-card p { margin: 0 0 12px; font-size: 14.5px; color: var(--tsim-muted); }

.tsim-mat-tag {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tsim-blue);
  letter-spacing: 0.01em;
}

/* ---------- generic grid + card ---------- */
.tsim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tsim-card {
  padding: 24px 22px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-card-h { margin: 0 0 9px; font-size: 17px; font-weight: 700; color: var(--tsim-navy); }
.tsim-card p { margin: 0; font-size: 14.5px; color: var(--tsim-muted); }

/* ---------- bonding factors ---------- */
.tsim-factor {
  padding: 24px 22px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-left: 4px solid var(--tsim-accent);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-factor-n {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tsim-accent);
}

.tsim-factor-h { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--tsim-navy); }

/* ---------- mold grid ---------- */
.tsim-mold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tsim-mold-item {
  padding: 22px 20px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-mold-n {
  display: block;
  margin-bottom: 9px;
  font-size: 20px;
  font-weight: 800;
  color: #c7d4ea;
  letter-spacing: 0.02em;
}

.tsim-mold-h { margin: 0 0 7px; font-size: 16px; font-weight: 700; color: var(--tsim-navy); }
.tsim-mold-item p { margin: 0; font-size: 14.5px; color: var(--tsim-muted); }

/* ---------- checklist ---------- */
.tsim-check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tsim-check {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius-sm);
  font-size: 15px;
  color: var(--tsim-ink);
}

.tsim-check::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--tsim-accent);
  border-bottom: 2.5px solid var(--tsim-accent);
  transform: rotate(-45deg);
}

/* ---------- timeline ---------- */
.tsim-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tsim-tl-step {
  padding: 22px 18px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-tl-n {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: rgba(0, 82, 204, 0.09);
  color: var(--tsim-blue);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tsim-tl-h { margin: 0 0 7px; font-size: 15.5px; font-weight: 700; color: var(--tsim-navy); }
.tsim-tl-step p { margin: 0; font-size: 14px; color: var(--tsim-muted); }

.tsim-inline-a { color: var(--tsim-blue); font-weight: 600; border-bottom: 1px solid rgba(0, 82, 204, 0.35); }
.tsim-inline-a:hover { border-bottom-color: var(--tsim-blue); }

/* ---------- quality cards ---------- */
.tsim-qc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tsim-qc-card {
  padding: 22px 20px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-qc-card p { margin: 0; font-size: 14px; color: var(--tsim-muted); }

/* ---------- documentation ---------- */
.tsim-doc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tsim-doc-item {
  position: relative;
  padding: 0 0 0 24px;
  font-size: 15px;
  color: var(--tsim-muted);
}

.tsim-doc-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--tsim-blue);
  border-bottom: 2px solid var(--tsim-blue);
  transform: rotate(-45deg);
}

/* ---------- applications ---------- */
.tsim-app-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tsim-app-card {
  padding: 22px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-app-h { margin: 0 0 9px; font-size: 15.5px; font-weight: 700; color: var(--tsim-navy); }
.tsim-app-fn { margin: 0; font-size: 13.5px; color: var(--tsim-muted); }

/* ---------- volume ---------- */
.tsim-vol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tsim-vol-card {
  padding: 26px 24px;
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-vol-h { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--tsim-blue); }
.tsim-vol-p { margin: 0; font-size: 14.5px; color: var(--tsim-muted); }

/* ---------- scoping framework ---------- */
.tsim-frame-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--tsim-shadow-sm);
}

.tsim-frame-field {
  padding: 20px 24px;
  border-bottom: 1px solid var(--tsim-line);
  border-right: 1px solid var(--tsim-line);
}

.tsim-frame-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tsim-accent);
}

.tsim-frame-val { display: block; font-size: 15px; color: var(--tsim-ink); }

/* ---------- stats ---------- */
.tsim-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.tsim-stat {
  padding: 22px 20px;
  text-align: center;
  background: var(--tsim-navy);
  border-radius: var(--tsim-radius);
}

.tsim-stat-n { display: block; font-size: 20px; font-weight: 800; color: #ffffff; letter-spacing: -0.01em; }
.tsim-stat-l { display: block; margin-top: 5px; font-size: 13px; color: #a9bdd8; }

/* ---------- FAQ ---------- */
.tsim-faq {
  display: grid;
  gap: 12px;
}

.tsim-faq-item {
  background: #ffffff;
  border: 1px solid var(--tsim-line);
  border-radius: var(--tsim-radius-sm);
  box-shadow: var(--tsim-shadow-sm);
  overflow: hidden;
}

.tsim-faq-q {
  padding: 18px 22px 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tsim-navy);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.tsim-faq-q::-webkit-details-marker { display: none; }

.tsim-faq-q::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--tsim-accent);
}

.tsim-faq-item[open] .tsim-faq-q::after { content: "\2013"; }

.tsim-faq-a {
  padding: 0 22px 20px;
  border-top: 1px solid var(--tsim-line);
}

.tsim-faq-a p { margin: 16px 0 0; font-size: 15px; color: var(--tsim-muted); }

/* ---------- final CTA band ---------- */
.tsim-cta-band {
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(0, 163, 196, 0.22), transparent 60%),
    linear-gradient(135deg, #0f2747 0%, #12315c 100%);
}

.tsim-cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.tsim-cta-copy { min-width: 0; }
.tsim-cta-sub { margin: 0 0 24px; font-size: 16.5px; color: #c3d2e8; }

.tsim-field-list {
  padding: 26px 26px 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--tsim-radius);
}

.tsim-field-title { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: #ffffff; }

.tsim-field {
  padding: 7px 0 7px 22px;
  font-size: 14.5px;
  color: #d5e0f0;
}

.tsim-field::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tsim-accent);
}

/* ---------- cross links ---------- */
.tsim-cross {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tsim-cross-a {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #eaf1fb;
}

.tsim-cross-a:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- modal ---------- */
.tsim-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 20, 38, 0.62);
}

.tsim-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 82vh;
  background: #ffffff;
  border-radius: var(--tsim-radius);
  box-shadow: 0 30px 70px rgba(6, 16, 34, 0.4);
  overflow: hidden;
}

.tsim-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 39, 71, 0.08);
  color: var(--tsim-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tsim-modal-close:hover { background: rgba(15, 39, 71, 0.16); }

.tsim-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .tsim-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .tsim-h1 { font-size: 32px; }
  .tsim-h2 { font-size: 25px; }
  .tsim-flow { grid-template-columns: 1fr 1fr; }
  .tsim-mat-grid { grid-template-columns: 1fr 1fr; }
  .tsim-mold-grid { grid-template-columns: 1fr 1fr; }
  .tsim-qc-grid { grid-template-columns: 1fr 1fr; }
  .tsim-app-grid { grid-template-columns: 1fr 1fr; }
  .tsim-timeline { grid-template-columns: 1fr 1fr; }
  .tsim-cta-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .tsim-sec { padding: 48px 0; }
  .tsim-hero { padding: 52px 0 46px; }
  .tsim-inner { padding: 0 18px; }
  .tsim-h1 { font-size: 26px; }
  .tsim-h2 { font-size: 22px; }
  .tsim-decision { grid-template-columns: 1fr; }
  .tsim-grid { grid-template-columns: 1fr; }
  .tsim-check-list { grid-template-columns: 1fr; }
  .tsim-doc-list { grid-template-columns: 1fr; }
  .tsim-frame-grid { grid-template-columns: 1fr; }
  .tsim-stat-row { grid-template-columns: 1fr; }
  .tsim-flow { grid-template-columns: 1fr; }
  .tsim-mat-grid { grid-template-columns: 1fr; }
  .tsim-mold-grid { grid-template-columns: 1fr; }
  .tsim-qc-grid { grid-template-columns: 1fr; }
  .tsim-app-grid { grid-template-columns: 1fr; }
  .tsim-timeline { grid-template-columns: 1fr; }
  .tsim-vol-grid { grid-template-columns: 1fr; }
}
