/* =========================================================================
   Precision Stainless Steel Turned Parts Manufacturer
   Scoped stylesheet — EVERY selector is prefixed .psstp- (container .psstp-page)
   Online path: https://www.xmgoldcattle.com/assets/css/precision-stainless-steel-turned-parts.css
   Deploy to: website root /assets/css/  (FTP / 宝塔 / file manager) — NOT uploads
   After edit bump ?ver= to clear cache.
   ========================================================================= */

.psstp-page {
  --psstp-blue: #0052cc;
  --psstp-navy: #0f2747;
  --psstp-accent: #00a3c4;
  --psstp-ink: #1b2733;
  --psstp-muted: #5a6675;
  --psstp-line: #e2e7ee;
  --psstp-bg: #f5f7fa;
  --psstp-card: #ffffff;
  --psstp-soft: #eef3f8;
  --psstp-radius: 14px;
  --psstp-shadow: 0 10px 30px rgba(15, 39, 71, .08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--psstp-ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}
.psstp-page * { box-sizing: border-box; }
.psstp-page img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
.psstp-page a { color: var(--psstp-blue); text-decoration: none; }
.psstp-page a:hover { text-decoration: underline; }

.psstp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.psstp-page h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; color: var(--psstp-navy); margin: 0 0 14px; letter-spacing: -.01em; }
.psstp-page h3 { font-size: 19px; color: var(--psstp-navy); margin: 0 0 8px; }
.psstp-page p { margin: 0 0 14px; }
.psstp-page ul { margin: 0 0 14px; padding-left: 20px; }
.psstp-page li { margin: 4px 0; }

/* ---------- HERO ---------- */
.psstp-hero { background: linear-gradient(135deg, #0f2747 0%, #16365f 55%, #0f2747 100%); color: #fff; padding: 56px 0 50px; }
.psstp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.psstp-eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8fd6e6; font-weight: 700; margin-bottom: 14px; }
.psstp-hero-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 800; color: #fff; margin: 0 0 16px; letter-spacing: -.02em; }
.psstp-sub { font-size: 17px; color: #d4e2f1; margin: 0 0 18px; }
.psstp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.psstp-tag { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #eaf2fb; }
.psstp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.psstp-hero-ctasub { font-size: 13px; color: #9fb6cf; margin: 0; }
.psstp-hero-media img { border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }

/* ---------- TRUST BAR ---------- */
.psstp-trust { background: var(--psstp-soft); border-bottom: 1px solid var(--psstp-line); }
.psstp-trust-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 22px 0; }
.psstp-metrics { display: flex; flex-wrap: wrap; gap: 26px; }
.psstp-metric b { display: block; font-size: 22px; color: var(--psstp-navy); }
.psstp-metric span { font-size: 13px; color: var(--psstp-muted); }
.psstp-certs { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.psstp-cert { font-size: 13px; color: var(--psstp-navy); display: inline-flex; align-items: center; gap: 7px; }
.psstp-cert i { width: 8px; height: 8px; border-radius: 50%; background: var(--psstp-accent); display: inline-block; }

/* ---------- STICKY SUBNAV ---------- */
.psstp-subnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--psstp-line); box-shadow: 0 2px 12px rgba(15,39,71,.05); }
.psstp-subnav-in { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 9px 22px; }
.psstp-subnav-in a { font-size: 13.5px; color: var(--psstp-navy); padding: 5px 4px; white-space: nowrap; }
.psstp-subnav-in a:hover { color: var(--psstp-blue); text-decoration: none; }
.psstp-subnav-cta { margin-left: auto; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--psstp-blue); border: none; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.psstp-subnav-cta:hover { background: #003ea0; }

/* ---------- SECTION BASE ---------- */
.psstp-sec { padding: 56px 0; border-bottom: 1px solid var(--psstp-line); }
.psstp-sec:nth-of-type(even) { background: var(--psstp-bg); }
.psstp-sec-eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--psstp-accent); font-weight: 700; margin-bottom: 10px; }
.psstp-sec-lead { font-size: 17px; color: #33414f; max-width: 880px; }
.psstp-note { background: var(--psstp-soft); border-left: 3px solid var(--psstp-accent); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14.5px; color: #33414f; margin: 16px 0; }
.psstp-note b { color: var(--psstp-navy); }

/* ---------- CAPABILITY GRID (hero stats) ---------- */
.psstp-capgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.psstp-cap { background: var(--psstp-card); border: 1px solid var(--psstp-line); border-radius: var(--psstp-radius); padding: 16px 18px; box-shadow: var(--psstp-shadow); }
.psstp-cap b { display: block; font-size: 15px; color: var(--psstp-navy); margin-bottom: 4px; }
.psstp-cap span { font-size: 14px; color: var(--psstp-muted); }

/* ---------- GRADE CARDS ---------- */
.psstp-gradegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.psstp-gradecard { background: var(--psstp-card); border: 1px solid var(--psstp-line); border-radius: var(--psstp-radius); padding: 22px; box-shadow: var(--psstp-shadow); border-top: 4px solid var(--psstp-blue); }
.psstp-gradecard h3 { display: flex; align-items: center; gap: 10px; }
.psstp-gradebadge { font-size: 12px; background: var(--psstp-soft); color: var(--psstp-blue); border: 1px solid #cfe0f4; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.psstp-gradecard p { font-size: 14.5px; color: #3a4754; margin: 8px 0; }
.psstp-gradecard .psstp-use { font-size: 14px; color: var(--psstp-muted); }
.psstp-gradecard .psstp-use b { color: var(--psstp-navy); }

/* ---------- TABLES ---------- */
.psstp-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border-radius: var(--psstp-radius); overflow: hidden; box-shadow: var(--psstp-shadow); font-size: 15px; }
.psstp-table th, .psstp-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--psstp-line); }
.psstp-table thead th { background: var(--psstp-navy); color: #fff; font-size: 14px; letter-spacing: .02em; }
.psstp-table tbody tr:nth-child(even) { background: var(--psstp-bg); }
.psstp-table td b { color: var(--psstp-navy); }
.psstp-table .psstp-tnum { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- PART TAXONOMY ---------- */
.psstp-partgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.psstp-partcard { background: var(--psstp-card); border: 1px solid var(--psstp-line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--psstp-shadow); }
.psstp-partcard h3 { font-size: 16px; color: var(--psstp-blue); margin-bottom: 6px; }
.psstp-partcard ul { margin: 0; padding-left: 18px; font-size: 14px; color: #3a4754; }

/* ---------- FLOW ---------- */
.psstp-flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; align-items: center; }
.psstp-flow span { background: var(--psstp-soft); border: 1px solid #cfe0f4; color: var(--psstp-navy); padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.psstp-flow .psstp-arrow { background: none; border: none; color: var(--psstp-accent); font-weight: 800; padding: 4px; }

/* ---------- WHY / FEATURE LISTS ---------- */
.psstp-featgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.psstp-feat { background: var(--psstp-card); border: 1px solid var(--psstp-line); border-radius: 12px; padding: 18px; box-shadow: var(--psstp-shadow); }
.psstp-feat h3 { font-size: 16px; color: var(--psstp-navy); margin-bottom: 6px; }
.psstp-feat p { font-size: 14px; color: #3a4754; margin: 0; }

/* ---------- TWO-COL MEDIA+TEXT ---------- */
.psstp-media2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; margin-top: 22px; }
.psstp-media2 img { box-shadow: var(--psstp-shadow); }

/* ---------- CAPABILITY MATRIX ---------- */
.psstp-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.psstp-mat { background: var(--psstp-card); border: 1px solid var(--psstp-line); border-radius: 10px; padding: 14px; text-align: center; box-shadow: var(--psstp-shadow); font-size: 14.5px; color: var(--psstp-navy); font-weight: 600; }

/* ---------- CASE STUDIES ---------- */
.psstp-casegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.psstp-casecard { background: var(--psstp-card); border: 1px solid var(--psstp-line); border-radius: var(--psstp-radius); overflow: hidden; box-shadow: var(--psstp-shadow); }
.psstp-casecard img { border-radius: 0; width: 100%; }
.psstp-casebody { padding: 16px 18px; }
.psstp-casebody h3 { font-size: 17px; color: var(--psstp-navy); margin-bottom: 8px; }
.psstp-casemeta { font-size: 13.5px; color: var(--psstp-muted); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.psstp-casemeta b { color: var(--psstp-navy); font-weight: 700; }

/* ---------- MANUFACTURER EVIDENCE ---------- */
.psstp-evigrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.psstp-evi { background: var(--psstp-card); border: 1px solid var(--psstp-line); border-radius: 12px; padding: 16px; box-shadow: var(--psstp-shadow); }
.psstp-evi h3 { font-size: 15px; color: var(--psstp-blue); margin-bottom: 4px; }
.psstp-evi p { font-size: 13.5px; color: #3a4754; margin: 0; }

/* ---------- QUOTE / INPUTS GUIDE ---------- */
.psstp-quote { background: linear-gradient(135deg, #0f2747, #16365f); color: #fff; border-radius: var(--psstp-radius); padding: 30px; margin-top: 22px; }
.psstp-quote h3 { color: #fff; font-size: 20px; margin-top: 0; }
.psstp-quote .psstp-qlist { columns: 2; column-gap: 30px; font-size: 14.5px; color: #d4e2f1; }
.psstp-quote .psstp-qlist li { margin-bottom: 6px; break-inside: avoid; }
.psstp-quote .psstp-qnote { font-size: 13.5px; color: #9fb6cf; margin-top: 14px; }

/* ---------- CTA SECTION ---------- */
.psstp-ctasec { text-align: center; padding: 60px 0; background: var(--psstp-bg); }
.psstp-ctasec h2 { margin-bottom: 10px; }
.psstp-ctasec p { max-width: 640px; margin: 0 auto 22px; color: #3a4754; }
.psstp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- FAQ ---------- */
.psstp-faq { margin-top: 18px; border-top: 1px solid var(--psstp-line); }
.psstp-faq details { border-bottom: 1px solid var(--psstp-line); padding: 4px 0; }
.psstp-faq summary { cursor: pointer; padding: 15px 4px; font-weight: 600; color: var(--psstp-navy); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.psstp-faq summary::-webkit-details-marker { display: none; }
.psstp-faq summary::after { content: "+"; color: var(--psstp-blue); font-size: 22px; font-weight: 700; }
.psstp-faq details[open] summary::after { content: "\2212"; }
.psstp-faq p { padding: 0 4px 16px; color: #3a4754; font-size: 15px; margin: 0; }

/* ---------- gc-btn (theme global class, used as-is) ---------- */
.psstp-page .gc-btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 13px 26px; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: .15s; }
.psstp-page .gc-btn--primary { background: var(--psstp-blue); color: #fff; }
.psstp-page .gc-btn--primary:hover { background: #003ea0; text-decoration: none; }
.psstp-page .gc-btn--ghost { background: transparent; color: var(--psstp-blue); border-color: var(--psstp-blue); }
.psstp-page .gc-btn--ghost:hover { background: rgba(0,82,204,.08); text-decoration: none; }
.psstp-hero .gc-btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.psstp-hero .gc-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .psstp-hero-grid, .psstp-media2 { grid-template-columns: 1fr; }
  .psstp-capgrid, .psstp-gradegrid, .psstp-partgrid, .psstp-featgrid, .psstp-evigrid, .psstp-casegrid, .psstp-matrix { grid-template-columns: 1fr 1fr; }
  .psstp-hero-media { order: -1; }
}
@media (max-width: 600px) {
  .psstp-capgrid, .psstp-gradegrid, .psstp-partgrid, .psstp-featgrid, .psstp-evigrid, .psstp-casegrid, .psstp-matrix { grid-template-columns: 1fr; }
  .psstp-quote .psstp-qlist { columns: 1; }
  .psstp-trust-grid { flex-direction: column; }
  .psstp-table { font-size: 13.5px; }
  .psstp-table th, .psstp-table td { padding: 10px 10px; }
}

/* =========================================================================
   PAGE-SPECIFIC OVERRIDE (intentional, scoped exception)
   This commercial page was published as a WP *post* (postid-18935, blog
   category). The theme prints a blog header (title + date + category) above
   our custom hero, causing a visible double title and blog chrome. We hide
   ONLY this post's entry-hero so our custom hero is the visible title.
   Scoped to .postid-18935 — cannot leak to other pages or the global theme.
   Proper long-term fix: convert the post into a static Page in WP admin.
   ========================================================================= */
.postid-18935 .entry-hero { display: none; }

/* =========================================================================
   UTILITY SPACING (scoped) — replaces inline style="" in the HTML fragment
   Scoped as .psstp-page .psstp-* so they beat .psstp-page h3/p base margins.
   HARD RULE: the HTML fragment contains ZERO inline CSS — all styling
   lives in this external file (referenced with ?ver= from the fragment).
   ========================================================================= */
.psstp-page .psstp-mt0  { margin-top: 0; }
.psstp-page .psstp-mb0  { margin-bottom: 0; }
.psstp-page .psstp-mt18 { margin-top: 18px; }
.psstp-page .psstp-mt22 { margin-top: 22px; }
.psstp-page .psstp-mt24 { margin-top: 24px; }
.psstp-page .psstp-mt26 { margin-top: 26px; }

.psstp-page .psstp-related {
  margin-top: 18px;
  font-size: 14px;
  color: var(--psstp-muted);
}
.psstp-page .psstp-planned {
  font-size: 13px;
  color: #8794a3;
}

/* ---------- RFQ MODAL (iframe — proven mail path) ----------
   Styles kept here (external) so the HTML fragment stays CSS-free.
   NOTE: #gcqModal is a site-wide reusable component; ideally these rules
   live in a shared stylesheet (common.css) loaded on every page. For now
   they are page-scoped to keep this fragment self-contained. */
#gcqModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 20, 35, .72);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#gcqModal .psstp-modal-box {
  position: relative;
  width: min(920px, 100%);
  height: min(88vh, 860px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
#gcqModal .psstp-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #0f2747;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
#gcqModal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
