/* =====================================================================
   dedicatedserver · ย่อหน้าให้สั้น (cl-design 2026-10-23, TNK อนุมัติ "ok ข้อ 4") — โหลดเฉพาะหน้านี้ (patch_ds.py)
   ตารางรายกลุ่ม → แถบสรุปกดเปิดได้ · โปรรายปีแสดง 6 รุ่นแรก · ไม่แก้ HTML ที่ TNK แก้เอง (ทำด้วย JS ตอนเปิดหน้า)
   ===================================================================== */
.lt-gbr { display: none; }                                    /* <br> เว้นระยะ 13 บรรทัดระหว่างกลุ่ม (ตอนพับไม่ต้องใช้) */
.lt-gbody.lt-fold { display: none !important; }

.lt-glist-head { text-align: center; margin: 64px auto 18px; max-width: 760px; }
.lt-glist-head h2 { font-size: 26px; font-weight: 700; color: #1f2a44; margin: 0 0 6px; }
.lt-glist-head p { color: #6b7488; margin: 0; font-size: 15px; }

.lt-gbar {
  display: flex; align-items: center; gap: 16px; width: 100%;
  margin: 0 0 10px; padding: 16px 20px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid #e3e8f0; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  font: inherit; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lt-gbar:hover { border-color: #b9c7e4; box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.lt-gbar:focus-visible { outline: 3px solid rgba(47, 85, 212, .35); outline-offset: 2px; }
.lt-gbar .tx { flex: 1; min-width: 0; }
.lt-gbar .nm { display: block; font-size: 17px; font-weight: 700; color: #1f2a44; letter-spacing: .2px; }
.lt-gbar .ds { display: block; font-size: 13.5px; color: #6b7488; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-gbar .ct { display: flex; gap: 6px; flex: none; }
.lt-gbar .ct span { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.lt-gbar .ct .a { background: #e7f6ec; color: #1e7d3c; }
.lt-gbar .ct .o { background: #e8f0ff; color: #2f55d4; }
.lt-gbar .ct .f { background: #f1f3f6; color: #7a8394; }
.lt-gbar .ct .z { opacity: .45; }
.lt-gbar .tg { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #2f55d4; }
.lt-gbar .tg i { display: inline-block; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.lt-gbar[aria-expanded="true"] { border-color: #2f55d4; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.lt-gbar[aria-expanded="true"] .tg i { transform: translateY(2px) rotate(225deg); }
.lt-gbody.lt-open { margin-bottom: 28px; scroll-margin-top: 90px; }
.lt-gbody .crypto-table { margin-top: 0 !important; }   /* แม่แบบดึงตารางขึ้น -260px (เดิมมี <br> 13 บรรทัดรองไว้) → ตอนพับต้องเป็น 0 ไม่งั้นทับแถบ */
.lt-gbar-wrap { scroll-margin-top: 84px; }

/* โปรรายปี: แสดง 6 รุ่นแรก (มือถือ 4) + ปุ่มดูทั้งหมด */
#year_promo:not(.lt-yp-all) #ypResults > .wcs-card:nth-child(n+7) { display: none; }
.lt-yp-more { display: block; margin: 18px auto 0; padding: 11px 22px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid #b9dcc5; color: #1e7d3c; font: inherit; font-weight: 600; font-size: 14.5px; }
.lt-yp-more:hover { background: #f1faf4; }

body.wc-night .lt-gbar { background: #1b2232; border-color: #2c3650; }
body.wc-night .lt-gbar .nm, body.wc-night .lt-glist-head h2 { color: #e8ecf5; }
body.wc-night .lt-gbar .ds, body.wc-night .lt-glist-head p { color: #9aa5bd; }
body.wc-night .lt-gbar .ct .a { background: rgba(46, 160, 87, .18); color: #7fd69b; }
body.wc-night .lt-gbar .ct .o { background: rgba(84, 124, 255, .2); color: #a9bfff; }
body.wc-night .lt-gbar .ct .f { background: rgba(255, 255, 255, .08); color: #a3acbd; }
body.wc-night .lt-gbar .tg { color: #8fb0ff; }

@media (max-width: 767px) {
  .lt-glist-head { margin-top: 40px; }
  .lt-glist-head h2 { font-size: 22px; }
  .lt-gbar { flex-wrap: wrap; gap: 8px 10px; padding: 14px 16px; }
  .lt-gbar .tx { flex-basis: calc(100% - 40px); }
  .lt-gbar .ds { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .lt-gbar .ct { order: 3; flex-wrap: wrap; }
  .lt-gbar .tg { order: 2; margin-left: auto; }
  .lt-gbar .tg b { display: none; }
  #year_promo:not(.lt-yp-all) #ypResults > .wcs-card:nth-child(n+5) { display: none; }
}

/* บล็อกที่เคยคั่นระหว่างกลุ่ม ย้ายมาต่อท้ายรายการแถบ */
.lt-gextra { margin-top: 56px !important; }
