/* =========================================================
   304 vs 316 Stainless Steel — CNC Machining Selection Guide
   Scoped stylesheet · container class .gc-s304
   Template: gc-doc v2 (left doc header + sticky grouped TOC
   rail + 760px reading column + numbered chapters + blue-rule
   Quick Answer + white-card CTA), mirrored from the Ti-6Al-4V
   machining page so the doc identity stays consistent.
   Brand: blue #0052cc · navy #0f2747 · accent #00a3c4
   Deploy to: /assets/css/stainless-304-316-cnc-machining.css
   ========================================================= */
.gc-s304 {
  --blue:#0052cc;
  --blue-700:#0046b0;
  --navy:#0f2747;
  --accent:#00a3c4;
  --ink:#1f2733;
  --muted:#5b6675;
  --line:#e6ebf2;
  --soft:#f5f8fc;
  --soft2:#eef3f9;
  --warn:#b45309;
  --warn-soft:#fff8ee;
  --radius:12px;
  --shadow-sm:0 1px 2px rgba(15,39,71,.05),0 8px 24px rgba(15,39,71,.06);

  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background:#fff;
  counter-reset:gcchap;
  scroll-behavior:smooth;
}
.gc-s304 *,.gc-s304 *::before,.gc-s304 *::after{box-sizing:border-box;}
.gc-s304 h2,.gc-s304 h3{color:var(--navy);line-height:1.22;font-weight:800;letter-spacing:-.015em;}
.gc-s304 h2{font-size:24px;margin:0 0 12px;}
.gc-s304 h3{font-size:18.5px;margin:0 0 8px;font-weight:700;letter-spacing:-.01em;}
.gc-s304 p{margin:0 0 16px;color:var(--ink);}
.gc-s304 a{color:var(--blue);text-decoration:none;border-bottom:1px solid rgba(0,82,204,.28);transition:border-color .15s ease,color .15s ease;}
.gc-s304 a:hover{border-bottom-color:var(--blue);color:var(--blue-700);}
.gc-s304 strong{color:var(--navy);font-weight:700;}
.gc-s304 em{font-style:normal;color:var(--navy);font-weight:600;}
.gc-s304 img{display:block;max-width:100%;height:auto;border-radius:10px;background:var(--soft2);border:1px solid var(--line);}
.gc-s304 ul,.gc-s304 ol{margin:0 0 18px;padding-left:22px;}
.gc-s304 li{margin:7px 0;color:var(--ink);}
.gc-s304 .gc-lede{font-size:18.5px;color:var(--muted);line-height:1.66;}

/* ---------- Doc header ---------- */
.gc-s304 .gc-dochead{padding:44px 0 18px;border-bottom:1px solid var(--line);}
.gc-s304 .gc-head-grid{display:grid;grid-template-columns:minmax(0,1fr) 448px;gap:46px;align-items:center;}
.gc-s304 .gc-head-text{min-width:0;}
.gc-s304 .gc-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);font-weight:800;margin-bottom:14px;}
.gc-s304 .gc-eyebrow::before{content:"";width:24px;height:2px;background:var(--blue);border-radius:2px;}
.gc-s304 .gc-dochead h2{font-size:37px;margin:0 0 14px;line-height:1.14;}
.gc-s304 .gc-dochead .gc-lede{font-size:18px;margin:0;line-height:1.64;color:var(--muted);}
.gc-s304 .gc-head-cta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:24px 0 0;}
.gc-s304 .gc-hero-media{margin:0;}
.gc-s304 .gc-hero-media img{display:block;width:100%;height:auto;border-radius:12px;background:var(--soft2);border:1px solid var(--line);box-shadow:var(--shadow-sm);}

/* ---------- Layout ---------- */
.gc-s304 .gc-layout{display:grid;grid-template-columns:236px minmax(0,1fr);gap:52px;padding:34px 0 72px;align-items:start;}
.gc-s304 .gc-doc{max-width:800px;min-width:0;}

/* ---------- Rail ---------- */
.gc-s304 .gc-rail{position:sticky;top:22px;align-self:start;max-height:calc(100vh - 44px);overflow-y:auto;padding-right:4px;}
.gc-s304 .gc-rail-label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:800;margin:0 0 10px;}
.gc-s304 .gc-rail-group{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:800;margin:16px 0 4px;}
.gc-s304 .gc-rail-group:first-of-type{margin-top:0;}
.gc-s304 .gc-rail ul{list-style:none;margin:0 0 4px;padding:0;}
.gc-s304 .gc-rail li{margin:0;}
.gc-s304 .gc-rail li a{display:block;font-size:13.5px;line-height:1.3;color:var(--muted);text-decoration:none;border:0;border-left:2px solid var(--line);padding:5px 0 5px 12px;transition:color .15s ease,border-color .15s ease;}
.gc-s304 .gc-rail li a:hover{color:var(--blue);border-left-color:var(--blue);}
.gc-s304 .gc-rail li a.active{color:var(--navy);font-weight:700;border-left-color:var(--blue);}

/* ---------- At a Glance ---------- */
.gc-s304 .gc-glance{background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;margin:4px 0 6px;}
.gc-s304 .gc-glance h2{margin:0 0 14px;font-size:14px;letter-spacing:.1em;text-transform:uppercase;color:var(--navy);}
.gc-s304 .gc-glance-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 30px;}
.gc-s304 .gc-glance-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14.5px;}
.gc-s304 .gc-glance-row .k{color:var(--muted);}
.gc-s304 .gc-glance-row .v{color:var(--navy);font-weight:700;text-align:right;}

/* ---------- Quick Answer ---------- */
.gc-s304 .gc-answer{border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:10px;background:var(--soft);padding:20px 22px;margin:32px 0 6px;}
.gc-s304 .gc-answer .gc-tag{display:inline-block;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);font-weight:800;margin-bottom:10px;}
.gc-s304 .gc-answer p{color:var(--ink);margin:0;font-size:17px;line-height:1.74;}
.gc-s304 .gc-answer p strong{color:var(--navy);}

/* ---------- Numbered chapter ---------- */
.gc-s304 .gc-chapter{position:relative;counter-increment:gcchap;margin:46px 0 14px;padding:0 0 10px;border-bottom:2px solid var(--line);font-size:25px;scroll-margin-top:92px;}
.gc-s304 .gc-chapter::before{content:"Section "counter(gcchap,decimal-leading-zero);display:block;font-size:11.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin-bottom:7px;}
.gc-s304 .gc-h3{margin:26px 0 8px;font-size:18.5px;scroll-margin-top:92px;}

/* ---------- Cards ---------- */
.gc-s304 .gc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0 6px;}
.gc-s304 .gc-grid-3{grid-template-columns:repeat(3,1fr);}
.gc-s304 .gc-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;transition:box-shadow .18s ease,border-color .18s ease;}
.gc-s304 .gc-card:hover{box-shadow:var(--shadow-sm);border-color:#d3deec;}
.gc-s304 .gc-card h3{margin:0 0 6px;font-size:16.5px;color:var(--navy);}
.gc-s304 .gc-card p{margin:0;font-size:14.5px;color:var(--muted);line-height:1.62;}
.gc-s304 .gc-card .gc-card-k{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);font-weight:800;margin-bottom:5px;}

/* ---------- Tables ---------- */
.gc-s304 .gc-tscroll{margin:16px 0 6px;border-radius:var(--radius);}
.gc-s304 .gc-table{width:100%;border-collapse:collapse;margin:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;font-size:14.5px;}
.gc-s304 .gc-table th,.gc-s304 .gc-table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top;}
.gc-s304 .gc-table thead th{background:var(--soft);color:var(--navy);font-weight:800;border-bottom:2px solid var(--line);font-size:12.5px;letter-spacing:.02em;text-transform:uppercase;}
.gc-s304 .gc-table tbody tr:nth-child(even){background:#fafcfe;}
.gc-s304 .gc-table tbody tr:last-child td{border-bottom:0;}
.gc-s304 .gc-table td:first-child{font-weight:700;color:var(--navy);}
.gc-s304 .gc-table .num{white-space:nowrap;font-variant-numeric:tabular-nums;}
.gc-s304 .gc-caption{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.6;}

/* ---------- Challenge -> control two-col ---------- */
.gc-s304 .gc-cc{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:16px 0 6px;}
.gc-s304 .gc-cc > div{padding:13px 17px;font-size:14.5px;}
.gc-s304 .gc-cc .gc-cc-l{background:var(--soft);border-right:1px solid var(--line);color:var(--muted);}
.gc-s304 .gc-cc .gc-cc-r{color:var(--ink);}
.gc-s304 .gc-cc .gc-cc-l strong{color:var(--navy);}
.gc-s304 .gc-cc .gc-cc-r strong{color:var(--blue);}

/* ---------- Note / callout ---------- */
.gc-s304 .gc-note{background:var(--soft);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;padding:16px 18px;margin:18px 0;font-size:15.5px;color:var(--ink);line-height:1.7;}
.gc-s304 .gc-note strong{color:var(--navy);}
.gc-s304 .gc-note.is-warn{background:var(--warn-soft);border-left-color:var(--warn);}
.gc-s304 .gc-note.is-warn strong{color:#8a3f06;}

/* ---------- Figure ---------- */
.gc-s304 .gc-figure{margin:22px 0 6px;}
.gc-s304 .gc-figure img{width:100%;height:auto;box-shadow:var(--shadow-sm);}
.gc-s304 .gc-figure figcaption{font-size:13.5px;color:var(--muted);margin-top:9px;line-height:1.6;}

/* ---------- Steps ---------- */
.gc-s304 .gc-steps{list-style:none;padding:0;margin:18px 0 6px;counter-reset:gcstep;}
.gc-s304 .gc-steps li{counter-increment:gcstep;position:relative;padding:14px 18px 14px 56px;border:1px solid var(--line);border-radius:10px;margin:0 0 10px;background:#fff;font-size:15px;}
.gc-s304 .gc-steps li::before{content:counter(gcstep);position:absolute;left:16px;top:14px;width:26px;height:26px;border-radius:50%;background:var(--soft2);color:var(--blue);font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;}
.gc-s304 .gc-steps li strong{display:block;color:var(--navy);margin-bottom:2px;}

/* ---------- Formula ---------- */
.gc-s304 .gc-formula{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:16px 20px;margin:16px 0;text-align:center;font-size:17px;color:var(--navy);font-family:"Cambria Math",Georgia,"Times New Roman",serif;letter-spacing:.01em;}
.gc-s304 .gc-formula sub{font-size:11px;}
.gc-s304 .gc-formula .cap{display:block;font-family:inherit;font-size:12.5px;color:var(--muted);margin-top:8px;letter-spacing:.02em;}

/* ---------- FAQ ---------- */
.gc-s304 .gc-faq details{border:1px solid var(--line);border-radius:10px;margin:11px 0;background:#fff;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease;}
.gc-s304 .gc-faq details:hover{border-color:#d3deec;box-shadow:var(--shadow-sm);}
.gc-s304 .gc-faq summary{cursor:pointer;padding:15px 44px 15px 19px;font-weight:700;color:var(--navy);font-size:16px;list-style:none;position:relative;line-height:1.45;}
.gc-s304 .gc-faq summary::-webkit-details-marker{display:none;}
.gc-s304 .gc-faq summary::after{content:"+";position:absolute;right:17px;top:50%;transform:translateY(-50%);font-size:21px;color:var(--blue);font-weight:800;line-height:1;}
.gc-s304 .gc-faq details[open] summary::after{content:"\2013";}
.gc-s304 .gc-faq .gc-a{padding:0 19px 17px;color:var(--ink);font-size:15.5px;line-height:1.72;}

/* ---------- CTA ---------- */
.gc-s304 .gc-cta{border:1px solid var(--line);border-top:4px solid var(--blue);background:#fff;border-radius:14px;padding:32px 30px;margin:48px 0 0;box-shadow:var(--shadow-sm);}
.gc-s304 .gc-cta h2{color:var(--navy);margin:0 0 9px;font-size:25px;}
.gc-s304 .gc-cta p{color:var(--muted);margin:0 0 22px;max-width:660px;font-size:16.5px;line-height:1.7;}
.gc-s304 .gc-cta .gcq-btn{font-size:17px;padding:15px 34px;}
.gc-s304 .gc-cta .gc-cta-micro{color:var(--muted);font-size:13.5px;margin:15px 0 0;}
.gc-s304 .gc-cta .gc-cta-link{display:inline-block;margin-top:16px;color:var(--blue);border-bottom:1px solid rgba(0,82,204,.3);font-size:15px;}
.gc-s304 .gc-cta .gc-cta-link:hover{border-bottom-color:var(--blue);color:var(--blue-700);}

/* ---------- Standard site CTA button ---------- */
.gc-s304 .gcq-btn{display:inline-block;cursor:pointer;background:var(--blue);color:#fff;font-size:16px;font-weight:800;padding:14px 30px;border-radius:10px;box-shadow:0 8px 22px rgba(0,82,204,.30);border:0;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;}
.gc-s304 .gcq-btn:hover{background:var(--blue-700);transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,82,204,.42);border:0;color:#fff;}
.gc-s304 .gcq-btn:active{transform:translateY(0);box-shadow:0 6px 16px rgba(0,82,204,.28);}
.gc-s304 .gc-hero-link{color:var(--navy);font-weight:700;font-size:15px;border-bottom:1px solid rgba(15,39,71,.25);}
.gc-s304 .gc-hero-link:hover{border-bottom-color:var(--navy);color:var(--blue);}

/* ---------- Byline ---------- */
.gc-s304 .gc-byline{font-size:13.5px;color:var(--muted);margin:16px 0 0;line-height:1.7;}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .gc-s304 .gc-layout{grid-template-columns:1fr;gap:0;padding:28px 0 56px;}
  .gc-s304 .gc-rail{display:none;}
  .gc-s304 .gc-doc{max-width:none;}
  .gc-s304 .gc-dochead{padding:34px 0 14px;}
  .gc-s304 .gc-head-grid{grid-template-columns:1fr;gap:22px;}
  .gc-s304 .gc-dochead h2{font-size:29px;}
  .gc-s304 .gc-glance-grid,.gc-s304 .gc-grid,.gc-s304 .gc-grid-3,.gc-s304 .gc-cc{grid-template-columns:1fr;}
  .gc-s304 .gc-cc .gc-cc-l{border-right:0;border-bottom:1px solid var(--line);}
  .gc-s304 .gc-chapter{font-size:22px;margin:40px 0 12px;}
  .gc-s304 .gc-glance-row .v{font-size:13.5px;}
}
@media (max-width:760px){
  .gc-s304 .gc-tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;box-shadow:inset -14px 0 12px -12px rgba(15,39,71,.18);}
  .gc-s304 .gc-tscroll .gc-table{min-width:660px;}
  .gc-s304 .gc-tscroll::-webkit-scrollbar{height:6px;}
  .gc-s304 .gc-tscroll::-webkit-scrollbar-thumb{background:#c9d5e4;border-radius:3px;}
  .gc-s304 .gc-tscroll::-webkit-scrollbar-track{background:var(--soft2);border-radius:3px;}
}
@media (max-width:520px){
  .gc-s304{padding:0 16px;}
  .gc-s304 .gc-dochead h2{font-size:25px;}
  .gc-s304 .gc-glance-grid{grid-template-columns:1fr;}
  .gc-s304 .gc-cta{padding:24px 20px;}
  .gc-s304 .gc-formula{font-size:15px;padding:14px;}
}
