/* ============================================================
   NÜXGROW · หน้า /services (NÜX Ecology) · v0.1 (10 ต.ค. 2569)
   โหลดต่อท้าย quiet-precision.css + deeptech.css + pfc-skin.css · ใช้ตัวแปร --qp-* เท่านั้น · คลาสเฉพาะหน้าขึ้นต้น eco-
   แผนผังวง = HTML ล้วน (ไม่มีตัวอักษรใน SVG) · จอ < 960 px เรียงลงล่าง
   ============================================================ */

.eco-hero { min-height: 0; padding-bottom: clamp(56px, 8vw, 104px); }
.eco-sub { font-size: var(--qp-t-17); font-weight: 500; color: var(--qp-ink); }

/* ── วง 5 ส่วน ── */
.eco-ring { list-style: none; margin: 0; padding: 0; }
.eco-node { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: color-mix(in srgb, var(--qp-surface) 88%, transparent); border: 1px solid var(--qp-line-strong); border-radius: 4px; }
.eco-no { font-family: var(--qp-font-mono); font-size: var(--qp-t-12); letter-spacing: .12em; color: var(--qp-gold); }
.pfc-main a.eco-name { font-size: var(--qp-t-20); font-weight: 600; line-height: 1.3; color: var(--qp-ink); text-decoration: none; }
.pfc-main a.eco-name:hover { color: var(--qp-green); text-decoration: none; }
.eco-what { font-size: var(--qp-t-15); line-height: 1.6; color: var(--qp-ink-2); }
.eco-node .dt-pill { align-self: flex-start; margin-top: 2px; }
.eco-oval, .eco-chev, .eco-center { display: none; }
.eco-back { margin-top: 18px; font-size: var(--qp-t-15); color: var(--qp-muted); }
.eco-note { margin-top: 22px; font-size: var(--qp-t-13); color: var(--qp-muted); }

@media (max-width: 959px) {
  .eco-node + .eco-node { margin-top: 44px; }
  .eco-node + .eco-node::before { content: ""; position: absolute; left: 32px; top: -38px; width: 1px; height: 30px; background: var(--qp-line-strong); }
  .eco-node + .eco-node::after { content: ""; position: absolute; left: 28px; top: -14px; width: 7px; height: 7px; border: solid var(--qp-green); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
}

@media (min-width: 960px) {
  .eco-stage { position: relative; height: 720px; }
  .eco-oval { display: block; position: absolute; left: 12%; top: 16%; width: 76%; height: 72%; border: 1px dashed var(--qp-line-strong); border-radius: 50%; pointer-events: none; }
  .eco-center { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; left: 50%; top: 52%; width: min(300px, 26%); transform: translate(-50%, -50%); text-align: center; }
  .eco-center p:last-child { font-size: var(--qp-t-15); line-height: 1.6; color: var(--qp-ink-2); }
  .eco-node { position: absolute; width: clamp(200px, 21vw, 260px); transform: translate(-50%, -50%); }
  .eco-n1 { left: 50%; top: 16%; }
  .eco-n2 { left: 86.1%; top: 40.9%; }
  .eco-n3 { left: 72.3%; top: 81.1%; }
  .eco-n4 { left: 27.7%; top: 81.1%; }
  .eco-n5 { left: 13.9%; top: 40.9%; }
  /* ลูกศรเล็กบนเส้นวง (ตามเข็มนาฬิกา · หมุนตามเส้นสัมผัสวงรีที่จอกว้าง 1440) */
  .eco-chev { display: block; position: absolute; width: 9px; height: 9px; margin: -5px 0 0 -5px; border: solid var(--qp-green); border-width: 1.5px 1.5px 0 0; pointer-events: none; }
  .eco-c1 { left: 72.3%; top: 22.9%; transform: rotate(67deg); }
  .eco-c2 { left: 86.1%; top: 63.1%; transform: rotate(166deg); }
  .eco-c3 { left: 50%; top: 88%; transform: rotate(225deg); }
  .eco-c4 { left: 13.9%; top: 63.1%; transform: rotate(284deg); }
  .eco-c5 { left: 27.7%; top: 22.9%; transform: rotate(23deg); }
  .eco-back { display: none; }
}

/* ── เส้นทางข้อมูล (คง <table> ไว้ให้ AI/โปรแกรมอ่านเป็นตารางได้) ── */
.eco-flow { width: 100%; border-collapse: collapse; font-size: var(--qp-t-16); }
.eco-flow th { text-align: left; font-size: var(--qp-t-13); font-weight: 600; color: var(--qp-muted); padding: 0 20px 14px 0; border-bottom: 1px solid var(--qp-line-strong); }
.eco-flow td { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--qp-line); vertical-align: top; color: var(--qp-ink-2); line-height: 1.65; }
.eco-flow td:first-child { width: 34%; color: var(--qp-ink); font-weight: 600; }
.eco-flow .eco-fno { margin-right: 4px; color: var(--qp-gold); font-family: var(--qp-font-mono); font-weight: 400; }
@media (max-width: 700px) {
  .eco-flow thead { display: none; }
  .eco-flow, .eco-flow tbody, .eco-flow tr, .eco-flow td { display: block; width: 100%; }
  .eco-flow tr { padding: 18px 0; border-bottom: 1px solid var(--qp-line); }
  .eco-flow td { padding: 0; border: 0; }
  .eco-flow td:first-child { width: 100%; margin-bottom: 6px; }
}

/* ── รายละเอียดแต่ละส่วน ── */
.eco-parts { border-bottom: 1px solid var(--qp-line); }
.eco-part { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) 210px; gap: 18px clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--qp-line); align-items: start; }
.eco-part__h { display: flex; flex-direction: column; gap: 10px; }
.eco-part__h h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.3; color: var(--qp-ink); }
.eco-part__h .dt-pill { align-self: flex-start; }
.eco-part ul { margin: 14px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--qp-ink-2); font-size: var(--qp-t-16); line-height: 1.65; }
.eco-part ul b { color: var(--qp-ink); font-weight: 600; }
.eco-part .dt-actions { margin-top: 0; flex-direction: column; align-items: stretch; }
.eco-soon { color: var(--qp-muted); }
@media (max-width: 900px) {
  .eco-part { grid-template-columns: minmax(0, 1fr); }
  .eco-part .dt-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ── ติดต่อ ── */
.eco-ct .dt-actions { margin-top: 26px; }
