/* NÜXGROW · หน้า /we-test v0.2.2 (16 ต.ค. 2569 · บล็อกสาร: หัวการ์ดแถวเดียว · คำอธิบายสีแถวเดียว · กลุ่มเล็กเป็นแถวรายการ) · v0.2.1 บล็อกบนตื้นลง · v0.2.0 — ส่วนเสริมของกริดบล็อก (bento.css) เฉพาะหน้านี้
   ส่วนบน (หัว + 3 แบบตรวจ) · สารที่ตรวจได้ = แถบสัดส่วน 9 กลุ่ม + การ์ดกว้างตามจำนวนสาร · ส่วนล่างสรุปเป็นช่อง
   ตัวแปร --qp-* เท่านั้น · ตัวไทย ≥ 14 px */
.wt-nb { white-space: nowrap; }

/* สีประจำกลุ่ม (ใช้ทั้งแถบ · จุด · ขอบการ์ด · ตัวเลข) */
.wt-g--01 { --c: var(--qp-green); } .wt-g--02 { --c: var(--qp-info); } .wt-g--03 { --c: var(--qp-gold); }
.wt-g--04 { --c: var(--qp-data-4); } .wt-g--05 { --c: var(--qp-data-5); } .wt-g--06 { --c: color-mix(in srgb, var(--qp-info) 50%, var(--qp-green)); }
.wt-g--07 { --c: color-mix(in srgb, var(--qp-data-4) 55%, var(--qp-crit)); } .wt-g--08 { --c: var(--qp-crit); } .wt-g--09 { --c: var(--qp-ink-2); }   /* 9 สีไม่ซ้ำกันทั้ง 2 ธีม (ผสมจาก --qp-*) */
.wt-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* ── ส่วนบน: หัว + 3 แบบตรวจ ── */
.wt-top__bd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 28px; align-items: center; }
.bx--hero .wt-top__bd { padding-top: 14px; padding-bottom: 14px; }
.wt-top__copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wt-top__sub { font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--qp-ink); }
.wt-top__copy .dt-actions { margin-top: 2px; }
.wt-types { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--qp-line); border-radius: 12px; background: var(--qp-surface-2); }
.wt-types__h { font-size: 14px; font-weight: 600; color: var(--qp-ink-2); }
.wt-types__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wt-types__list li { display: grid; grid-template-columns: 26px auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--qp-line); border-radius: 10px; background: var(--qp-surface); }
.wt-types__list b { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--qp-ink); }
.wt-types__list li > span:last-child { font-size: 15px; line-height: 1.45; color: var(--qp-ink-2); }
.wt-types__list li > span:last-child::before { content: "· "; color: var(--qp-muted); }
.wt-types__list .wt-k { width: 26px; height: 26px; }
.wt-types__ft { font-size: 14px; line-height: 1.55; color: var(--qp-ink-2); }
.wt-types__ft b { color: var(--qp-ink); }
.wt-k { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--qp-gold) 16%, transparent); color: var(--qp-gold); font-family: var(--qp-font-mono); font-size: 14px; font-weight: 500; }

/* ── สารที่ตรวจได้ (พระเอกของหน้า) ── */
.wt-cmp .bx__bd { gap: 14px; }
.wt-cmp__head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px 30px; align-items: center; }
.wt-cmp__big { display: flex; align-items: baseline; gap: 8px; }
.wt-cmp__big b { font-family: var(--qp-font-mono); font-weight: 500; font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; color: var(--qp-ink); }
.wt-cmp__big span { font-size: 16px; font-weight: 600; color: var(--qp-ink-2); }
.wt-cmp__mix { min-width: 0; }
.wt-bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; }
.wt-bar i { flex: var(--w) 1 0; min-width: 6px; background: var(--c); }
.wt-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wt-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--qp-ink-2); }
.wt-legend b { font-family: var(--qp-font-mono); font-weight: 500; color: var(--qp-ink); }

.wt-gbig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wt-gsmall { display: flex; flex-wrap: wrap; gap: 12px; }
.wt-gsmall .wt-g { flex: var(--w) 1 calc(var(--w) * 60px + 110px); }   /* กว้างตามจำนวนสาร → แถวเต็มเสมอ ไม่มีช่องโหว่ */
.wt-g { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--qp-line); border-top: 3px solid var(--c); border-radius: 12px; background: var(--qp-surface-2); }
.wt-g__hd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0 8px; }
.wt-g__hd > .wt-dot { margin-top: 7px; }
.wt-g__name { min-width: 0; line-height: 1.3; }
.wt-g__name > * { display: inline; }
.wt-g__en, .wt-g__th { white-space: nowrap; }   /* ไม่ตัดกลางคำไทย · ขึ้นบรรทัดใหม่ทั้งคำ */
.wt-g__no { font-family: var(--qp-font-mono); font-size: 12px; color: var(--qp-muted); }
.wt-g__en { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--qp-ink); }
.wt-g--big .wt-g__en { font-size: 19px; }
.wt-g__th { font-size: 14px; color: var(--qp-ink-2); }
.wt-g__n { font-family: var(--qp-font-mono); font-size: 24px; font-weight: 500; line-height: 1; color: var(--c); }
.wt-g--big .wt-g__n { font-size: 34px; }
.wt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wt-chips li { padding: 4px 11px; border: 1px solid color-mix(in srgb, var(--c) 38%, var(--qp-line)); border-radius: 999px; background: var(--qp-surface); font-size: 14px; line-height: 1.45; color: var(--qp-ink); overflow-wrap: anywhere; }
.wt-g--big .wt-chips li { font-size: 15px; }
.wt-note { font-size: 14px; line-height: 1.5; color: var(--qp-muted); }

/* ── ส่วนล่าง: ช่องสรุป ── */
.wt-cells { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wt-cells > li { min-width: 0; border: 1px solid var(--qp-line); border-radius: 12px; background: var(--qp-surface-2); }
.wt-cells--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wt-cells--5 > li { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--qp-ink); }
.wt-cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wt-cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wt-cells--2 > li, .wt-cells--3 > li { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.wt-cells b { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--qp-ink); }
.wt-cells > li > span { font-size: 14px; line-height: 1.5; color: var(--qp-ink-2); }
.wt-cells > li > a { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--qp-green); text-decoration: none; }
.wt-cells > li > a:hover { text-decoration: underline; }
.wt-cells > li > .wt-tags { margin-top: auto; padding-top: 4px; color: var(--qp-muted); }
.wt-ct__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.wt-ct__row p { font-size: 15px; line-height: 1.6; color: var(--qp-ink-2); }
.wt-ct__row p b { color: var(--qp-ink); }
.wt-ct__row .dt-actions { margin: 0; }
.wt-legal { padding-top: 10px; border-top: 1px solid var(--qp-line); font-size: 14px; line-height: 1.55; color: var(--qp-ink-2); }

@media (max-width: 1100px) {
  .wt-top__bd { grid-template-columns: minmax(0, 1fr); }
  .wt-cells--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-cells--3 { grid-template-columns: minmax(0, 1fr); }
  .wt-steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; align-items: center; }
  .wt-steps > li > .wt-k { grid-row: span 2; }
  .wt-steps > li > span:last-child { grid-column: 2; }
}
@media (max-width: 560px) {   /* มือถือ: ชื่อแบบตรวจยาว → คำอธิบายขึ้นบรรทัดใต้ชื่อ (ไม่ล้น) */
  .wt-types__list li { grid-template-columns: 26px minmax(0, 1fr); }
  .wt-types__list .wt-k { grid-row: span 2; }
  .wt-types__list li > span:last-child { grid-column: 2; }
  .wt-types__list li > span:last-child::before { content: none; }
}
@media (max-width: 760px) {
  .wt-gbig { grid-template-columns: minmax(0, 1fr); }
  .wt-cmp__head { grid-template-columns: auto auto; justify-content: start; }
  .wt-cmp__mix { grid-column: 1 / -1; }
  .wt-cells--2 { grid-template-columns: minmax(0, 1fr); }
  .wt-cells--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-cells--5 > li { min-height: 56px; font-size: 15px; }
  .wt-gsmall .wt-g { flex-basis: calc(var(--w) * 30px + 110px); padding: 12px; }   /* มือถือ: กลุ่มเล็กเรียง 2 ใบต่อแถวได้ */
  .wt-gsmall .wt-g--08 { flex-basis: 100%; }   /* ชื่อสารยาว ให้เต็มแถว */
}

/* ── v0.2.2 บล็อกสาร: หัวการ์ดแบบเดียวกันทุกใบ [จุด][เลข][ชื่ออังกฤษ][ชื่อไทย] ……… [จำนวน] ไม่ตกบรรทัด ── */
.wt-cmp__mix { display: contents; }
.wt-cmp__head { grid-template-columns: auto auto minmax(0, 1fr); row-gap: 12px; }
.wt-bar { grid-column: 3; }
.wt-legend { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 8px 12px; }
.wt-legend li { white-space: nowrap; }
.wt-g__hd { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; }
.wt-g__hd > .wt-dot { margin-top: 0; }
.wt-g__no, .wt-g__en, .wt-g__th { flex: none; white-space: nowrap; }
.wt-g__n { flex: none; margin-left: auto; padding-left: 8px; }
/* กลุ่มเล็ก 03–09 = แถวรายการในกรอบเดียว: หัวซ้ายกว้างเท่ากัน (จำนวนตรงคอลัมน์) · ชิปเริ่มแนวเดียวกัน */
.wt-rows { display: flex; flex-direction: column; border: 1px solid var(--qp-line); border-radius: 12px; background: var(--qp-surface-2); overflow: hidden; }
.wt-rows > .wt-g--row { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: center; gap: 10px 24px; padding: 12px 16px; border: 0; border-top: 1px solid var(--qp-line); border-left: 4px solid var(--c); border-radius: 0; background: none; }
.wt-rows > .wt-g--row:first-child { border-top: 0; }
.wt-g--row .wt-g__n { font-size: 22px; }
@media (max-width: 1180px) { .wt-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); justify-content: stretch; } }   /* ช่องกว้างอย่างน้อยเท่าชื่อยาวสุด → จำนวนคอลัมน์ปรับตามจอ ไม่มีเลขหลุดช่อง */
@media (max-width: 760px) {
  .wt-legend { gap: 6px 10px; }
  .wt-bar { grid-column: 1 / -1; }   /* มือถือ: แถบสัดส่วนเต็มกว้างใต้ตัวเลข */
  .wt-rows > .wt-g--row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
}
@media (max-width: 560px) {
  .wt-g__c { display: none; }   /* หัวการ์ดใหญ่: "Phenolic" / "Flavonoid" ให้อยู่บรรทัดเดียว */
  .wt-g--big .wt-g__en { font-size: 17px; }
  .wt-g--big .wt-g__n { font-size: 28px; }
}
@media (max-width: 900px) { .wt-gbig { grid-template-columns: minmax(0, 1fr); } }   /* การ์ดใหญ่ 2 ใบเรียงลง → หัวบรรทัดเดียวพอดี */
@media (max-width: 400px) { .wt-g__hd { gap: 6px; } .wt-g--row .wt-g__en { font-size: 15px; } .wt-g--row .wt-g__n { font-size: 20px; } }
@media (max-width: 352px) { .wt-g--row .wt-g__no { display: none; } }   /* จอแคบมาก: ซ่อนเลขกลุ่มในแถว ให้หัวไม่ล้นการ์ด */
