/* ==========================================================================
   หน้ารวมคู่มือการใช้งาน (guide/index.php · /guide/)   bm/css/pg-guide-idx.css   25 พ.ย. 2569
   ต่อจาก bm/css/ptcargo-home-v3.css + bm/css/pg-c.css (.ph .crumb) · คลาสใหม่ขึ้นต้น gx-
   ตาม mockup ที่เจ้าของอนุมัติ (_delivery/mockup_site_pages_20261124 guide-index.html)
   ========================================================================== */
.gx-sr{display:flex;align-items:center;gap:10px;max-width:560px;min-height:52px;margin:20px 0 0;padding:0 16px;border:1px solid #cfd6e0;border-radius:14px;background:#fff}
.gx-sr:focus-within{border-color:var(--navy);box-shadow:0 0 0 3px rgba(15,39,71,.1)}
.gx-sr .ic{width:20px;height:20px;flex:0 0 20px;color:var(--mute)}
.gx-sr input{flex:1 1 auto;min-width:0;min-height:48px;border:0;outline:0;background:none;font:inherit;font-size:16px;color:var(--ink)}
.gx{padding-top:32px}
.gx-ft{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:20px 22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(120deg,#fff 55%,#fff2e8);box-shadow:0 14px 30px -24px rgba(15,39,71,.5);color:var(--ink);text-decoration:none}
.gx-ft:hover{border-color:var(--navy)}
.gx-ft-i{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--navy);color:#fff}
.gx-ft-i .ic{width:28px;height:28px;flex-basis:28px}
.gx-ft-t{display:flex;flex-direction:column;min-width:0;font-size:14px;color:var(--ink2);line-height:1.5}
.gx-ft-t small{font-size:12.5px;font-weight:700;color:var(--or-d)}
.gx-ft-t b{font-size:19px;color:var(--navy)}
.gx-ft .btn{color:#fff;text-decoration:none}
.gx-ft .btn .ic{width:18px;height:18px;flex-basis:18px}
.gx-chips{display:flex;gap:8px;margin:26px 0 6px;padding:2px 0 8px;overflow-x:auto;scrollbar-width:none}
.gx-chips::-webkit-scrollbar{display:none}
.gx-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 16px;border:1px solid var(--line);border-radius:99px;background:#fff;font:inherit;font-size:14.5px;font-weight:600;color:var(--ink2);cursor:pointer}
.gx-chip b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:var(--ground);font-size:12px;color:var(--navy)}
.gx-chip:hover{border-color:var(--navy)}
.gx-chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.gx-chip[aria-pressed="true"] b{background:rgba(255,255,255,.18);color:#fff}
.gx-sec{margin:26px 0 0;scroll-margin-top:90px}
.gx-sec[hidden]{display:none}
.gx-h{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:21px;color:var(--navy)}
.gx-h small{margin-left:auto;font-size:13px;font-weight:500;color:var(--mute);white-space:nowrap}
.gx-hi{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:11px;background:#fff2e8;color:var(--or-d)}
.gx-hi .ic{width:20px;height:20px;flex-basis:20px}
.gx-g{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none}
.gx-g li[hidden]{display:none}
.gx-v{display:flex;flex-direction:column;width:100%;height:100%;padding:0 0 12px;border:1px solid var(--line);border-radius:14px;background:#fff;font:inherit;text-align:left;color:var(--ink);cursor:pointer;overflow:hidden;transition:border-color .15s,box-shadow .15s,transform .15s}
.gx-v:hover{border-color:var(--navy);box-shadow:0 14px 26px -20px rgba(15,39,71,.6);transform:translateY(-2px)}
.gx-v:focus-visible{outline:3px solid var(--or);outline-offset:2px}
.gx-v,.gx-v:hover{text-decoration:none}
.gx-th{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:#e9edf3}
.gx-th img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.gx-pl{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:rgba(255,90,0,.94);color:#fff;box-shadow:0 6px 16px -6px rgba(0,0,0,.5)}
.gx-pl .ic{width:22px;height:22px;flex-basis:22px;margin-left:2px;fill:currentColor;stroke:none}
.gx-d{position:absolute;right:8px;bottom:8px;padding:2px 7px;border-radius:6px;background:rgba(15,39,71,.85);color:#fff;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.gx-tt{display:block;margin:10px 12px 0;font-size:14.5px;font-weight:700;line-height:1.4;color:var(--navy)}
.gx-sb{display:block;margin:4px 12px 0;font-size:13px;line-height:1.5;color:var(--ink2)}
.gx-empty{margin:30px 0 0;padding:20px;border-radius:14px;background:var(--ground);text-align:center;font-size:14.5px;color:var(--ink2)}
.gx-empty[hidden]{display:none}
.gx-a{color:var(--or-d);font-weight:600}
.gx-a:hover{text-decoration:underline}
.gx-dlg{width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:18px;background:#0b1830;color:#fff;overflow:hidden}
.gx-dlg::backdrop{background:rgba(9,18,35,.72)}
.gx-dh{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 18px}
.gx-dh h2{flex:1 1 auto;min-width:0;margin:0;font-size:16px;line-height:1.4;color:#fff}
.gx-dpg{flex:0 0 auto;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:10px;background:rgba(255,255,255,.12);font-size:14px;font-weight:600;color:#fff;text-decoration:none;white-space:nowrap}
.gx-dpg:hover{background:rgba(255,255,255,.22);color:#fff;text-decoration:none}
.gx-x{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.gx-x:hover{background:rgba(255,255,255,.2)}
.gx-x .ic{width:20px;height:20px;flex-basis:20px}
.gx-vid{display:block;width:100%;aspect-ratio:9/16;max-height:calc(100vh - 110px);background:#000}

@media (max-width:1100px){.gx-g{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:820px){
  .gx-g{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .gx-ft{grid-template-columns:auto minmax(0,1fr)}
  .gx-ft .btn{grid-column:1/-1;justify-content:center}
}
@media (max-width:520px){
  .gx-tt{font-size:14px}
  .gx-sb{font-size:12.5px}
  .gx-dlg{width:100vw;max-width:100vw;max-height:100vh;height:100vh;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
  .gx-vid{flex:1 1 auto;min-height:0;max-height:none;aspect-ratio:auto}
  .gx-dlg[open]{display:flex;flex-direction:column;justify-content:center}
  .gx-h{font-size:19px}
  /* มือถือ: หมวดละแถว เลื่อนซ้าย-ขวา */
  .gx-g{display:flex;gap:10px;margin:0 -20px;padding:0 20px 6px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 20px;scrollbar-width:none}
  .gx-g::-webkit-scrollbar{display:none}
  .gx-g li{flex:0 0 44%;scroll-snap-align:start}
}
