/* Eccentric Turning CNC — scoped under .gc-ect-page (blueprint/engineering identity) */
.gc-ect-page {
  --blue: #0052cc;
  --navy: #0f2747;
  --accent: #00a3c4;
  --line: #d7e0ee;
  --soft: #f4f7fc;
  --ink: #243049;
  --muted: #5b6b85;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 56px;
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: #ffffff;
}

.gc-ect-page * { box-sizing: border-box; }

.gc-ect-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Hero ---------- */
.gc-ect-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
  margin-bottom: 30px;
}
.gc-ect-hero-copy { min-width: 0; }
.gc-ect-title {
  font-size: 30px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 700;
  overflow-wrap: break-word;
}
.gc-ect-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
  overflow-wrap: break-word;
}
.gc-ect-hero-fig {
  margin: 0;
  justify-self: end;
  max-width: 320px;
  width: 100%;
}
.gc-ect-hero-svg {
  width: 100%;
  height: auto;
  display: block;
}
.gc-ect-figcap {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
}

/* ---------- CTA button ---------- */
.gc-ect-cta {
  display: inline-block;
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}
.gc-ect-cta:hover { background: #003ea0; transform: translateY(-1px); }

/* ---------- Section headings & body ---------- */
.gc-ect-page h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-weight: 700;
}
.gc-ect-page p { margin: 0 0 14px; overflow-wrap: break-word; }
.gc-ect-page strong { color: var(--navy); }

/* ---------- Diagrams ---------- */
.gc-ect-geom,
.gc-ect-decision,
.gc-ect-insp {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin: 16px auto 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

/* ---------- Figures ---------- */
.gc-ect-fig {
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.gc-ect-fig img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}
.gc-ect-fig figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

/* ---------- Table ---------- */
.gc-ect-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.gc-ect-table th,
.gc-ect-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.gc-ect-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.gc-ect-table tbody tr:nth-child(even) { background: var(--soft); }
.gc-ect-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Lists ---------- */
.gc-ect-list {
  margin: 12px 0 22px;
  padding-left: 22px;
}
.gc-ect-list li {
  margin: 0 0 9px;
  overflow-wrap: break-word;
}

/* ---------- Notes ---------- */
.gc-ect-note {
  font-size: 14px;
  color: var(--muted);
  background: var(--soft);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 14px;
}

/* ---------- CTA band ---------- */
.gc-ect-cta-band {
  margin: 34px 0 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  text-align: center;
}
.gc-ect-cta-band h2 {
  border: none;
  margin-top: 0;
  text-align: center;
}
.gc-ect-cta-band p {
  max-width: 720px;
  margin: 0 auto 18px;
  color: var(--muted);
}

/* ---------- Related ---------- */
.gc-ect-related {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 8px;
}
.gc-ect-related a { color: var(--blue); text-decoration: none; }
.gc-ect-related a:hover { text-decoration: underline; }

/* ---------- Modal ---------- */
.gc-ect-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 39, 71, 0.55);
}
.gc-ect-modal-overlay.is-open { display: block; }
.gc-ect-modal-inner {
  position: relative;
  width: min(680px, 92vw);
  height: min(86vh, 760px);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.gc-ect-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 39, 71, 0.85);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.gc-ect-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .gc-ect-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .gc-ect-hero-fig { justify-self: center; max-width: 260px; }
  .gc-ect-title { font-size: 25px; }
  .gc-ect-page h2 { font-size: 20px; }
  .gc-ect-cta-band { padding: 22px 16px; }
}
