/* ============================================================================
   หน้ากลุ่ม CONTENT & PROMO (redesign 17 พ.ย. 2026) — mockup design/mockup/pages/content.html
   ใช้กับ: /promotions · /sets · /sets/{slug} · /shelf · /shelf/{slug} · /loyalty/{token}
           /about · /faq · /how-to-order · นโยบาย 4 หน้า · /links · errors/404 · errors/419
   ลิงก์ผ่าน pages/_policy-style (ใส่ใน @section('meta') ของแต่ละหน้า)
   ⚠ ชื่อคลาสที่ catalog.css ใช้อยู่แล้ว (.promo-* .sh-* .shv-* .lk-* .ly-need/.ly-days) ห้ามใช้ซ้ำ
     catalog.css โหลดก่อนและยังสไตล์ชื่อพวกนั้นอยู่ → ที่นี่ใช้ชื่อใหม่ .pm-* .shf-* .lnk-* .lyc-*
   ⚠ ส่วน "ชิ้นส่วนกลาง" ข้างล่าง (hero-inner__inner · glass-chip · toc · hotspot · step · card h3)
     site.css ยังไม่มี — ถ้าย้ายเข้า site.css แล้ว ลบออกจากไฟล์นี้ได้
   ⚠ ไอคอนเป็น Phosphor แบบ fill — ห้ามตั้ง fill:none/stroke
   ============================================================================ */

/* ---------- 1. ชิ้นส่วนกลาง (ยังไม่มีใน site.css) ---------- */
.ds .hero-inner h1{font-size:clamp(28px,3.2vw,42px)}
.ds .hero-inner .crumbs{margin-bottom:14px}
.ds .hero-inner .eyebrow{display:flex;margin-top:4px}
.ds .hero-inner__inner{display:grid;grid-template-columns:1.25fr .75fr;gap:32px;align-items:end}
.ds .hero-inner__aside{justify-self:end;display:grid;gap:12px}
.ds .glass-chip__icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--yellow-500);color:var(--navy-800);flex-shrink:0}
.ds .glass-chip__icon svg{width:22px;height:22px}
.ds .glass-chip small{display:block;font-size:13px;color:rgba(255,255,255,.75);line-height:1.3}
.ds .glass-chip strong{display:block;font-family:var(--font-display);font-size:19px;font-weight:500;line-height:1.35;font-variant-numeric:tabular-nums}
@media (max-width:1199px){.ds .hero-inner__inner{grid-template-columns:1fr;gap:22px}.ds .hero-inner__aside{justify-self:start;grid-auto-flow:column}}
@media (max-width:767px){.ds .hero-inner__aside{grid-auto-flow:row}}
.ds .ct-body{padding-block:clamp(24px,3vw,40px) clamp(48px,6vw,88px)}
.ds .sub-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;margin:clamp(28px,4vw,44px) 0 14px}
.ds .sub-h h2{font-size:clamp(20px,2.2vw,26px)}
.ds .sub-h .small{margin:0}
.ds .small a,.ds .ct-link{color:var(--navy-800);text-decoration:underline;text-underline-offset:3px;padding-block:9px}
.ds .card h3{margin-top:18px}
.ds .card p{margin-top:8px;color:var(--muted);font-size:15.5px}
.ds .step:not(:last-child)::after{content:"";position:absolute;top:52px;right:-18px;width:18px;height:2px;background:repeating-linear-gradient(90deg,var(--navy-800) 0 5px,transparent 5px 9px)}
.ds .step__top{display:flex;align-items:center;justify-content:space-between}
.ds .step__icon svg{width:22px;height:22px}
.ds .step h2{margin-top:20px;font-size:18px;font-weight:500;line-height:1.4}
.ds .step p{margin-top:6px;font-size:15px;color:var(--muted)}
.ds .step p a{color:var(--navy-800);text-decoration:underline;text-underline-offset:3px;padding-block:9px}
.ds .step p b{font-family:var(--font-display);font-weight:500;color:var(--ink)}
@media (max-width:1199px){.ds .step::after{display:none}}
@media (max-width:767px){.ds .steps{gap:10px}.ds .step{padding:18px 16px}.ds .step__num{font-size:34px}}
.ds .toc{position:sticky;top:96px;display:grid;gap:4px;font-size:14px}
.ds .toc__h{font-family:var(--font-display);font-weight:500;font-size:14px;color:var(--ink);padding:0 10px 6px}
.ds .toc a{padding:6px 10px;border-left:2px solid var(--line);color:var(--muted);line-height:1.45;transition:color .25s,border-color .25s}
.ds .toc a.is-active,.ds .toc a:hover{color:var(--navy-800);border-color:var(--navy-800)}
.ds .hotspot{position:absolute;width:32px;height:32px;transform:translate(-50%,-50%);border-radius:50%;background:var(--red-600);color:#fff;border:3px solid #fff;box-shadow:0 6px 16px rgba(0,0,0,.35);display:grid;place-items:center;transition:transform .3s var(--ease),background .25s}
.ds .hotspot::before{content:"";position:absolute;inset:-3px;border-radius:50%;border:2px solid var(--red-600);animation:pulse 2.4s var(--ease) infinite}
.ds .hotspot::after{content:"";position:absolute;inset:-8px}
.ds .hotspot:hover{transform:translate(-50%,-50%) scale(1.15)}
.ds .empty__ico i,.ds .empty__ico svg{width:44px;height:44px}
.ds .notice a{text-decoration:underline;text-underline-offset:3px}
.ds .ct-notice{margin-bottom:16px}

/* ---------- 2. /promotions ---------- */
.ds .pm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:1199px){.ds .pm-grid{grid-template-columns:1fr 1fr;gap:14px}}
@media (max-width:767px){.ds .pm-grid{grid-template-columns:1fr;gap:12px}}
.ds .pm-card{position:relative;display:flex;flex-direction:column;border-radius:var(--r-md);overflow:hidden;background:#fff;border:1px solid var(--line);transition:transform .45s var(--ease),box-shadow .45s,border-color .3s}
@media (hover:hover){.ds .pm-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:transparent}}
/* รูปโปรเป็นโปสเตอร์ที่ทีมงานอัป (มีตัวหนังสือในรูป) → contain ไม่ครอป · กรอบ 16:9 กันหน้ากระโดด */
.ds .pm-card__media{aspect-ratio:16/9;background:var(--soft);overflow:hidden}
.ds .pm-card__media img{width:100%;height:100%;object-fit:contain}
.ds .pm-card__body{padding:14px 16px 16px}
.ds .pm-card__title{font-size:17px;font-weight:500;line-height:1.4}

/* ---------- 3. /sets ---------- */
.ds .set-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:1199px){.ds .set-grid{grid-template-columns:1fr 1fr;gap:14px}}
@media (max-width:767px){.ds .set-grid{grid-template-columns:1fr;gap:12px}}
.ds .set-card{position:relative;display:flex;flex-direction:column;border-radius:var(--r-md);background:#fff;border:1px solid var(--line);overflow:hidden;transition:transform .45s var(--ease),box-shadow .45s,border-color .3s}
@media (hover:hover){.ds .set-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:transparent}}
.ds .set-cover{position:relative;aspect-ratio:16/10;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:2px;background:var(--line)}
.ds .set-cover img{width:100%;height:100%;min-height:0;object-fit:contain;background:#fff}
.ds .set-cover--1 img{grid-column:1/-1;grid-row:span 2}
.ds .set-cover--2 img{grid-row:span 2}
.ds .set-cover--3 img:first-of-type{grid-row:span 2}
.ds .set-cover .badge{position:absolute;top:10px;left:10px;z-index:2}
.ds .set-body{padding:14px 16px 16px;display:grid;gap:6px}
.ds .set-name{font-size:17px;font-weight:500;line-height:1.4}
.ds .set-meta{font-size:13.5px;color:var(--muted)}
.ds .set-desc{color:var(--ink-700);white-space:pre-line;max-width:760px;margin-bottom:18px}
.ds .set-show{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:22px;align-items:start}
.ds .set-items{border-radius:var(--r-md);background:#fff;border:1px solid var(--line);overflow:hidden}
.ds .set-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 16px;border-top:1px solid var(--line)}
.ds .set-item:first-child{border-top:0}
.ds .set-item img{width:64px;height:64px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:10px}
.ds .set-item .nm{display:inline-block;padding:6px 0 2px;font-family:var(--font-display);font-weight:500;font-size:15px;line-height:1.4;color:var(--ink)}
.ds .set-item .nm:hover{color:var(--navy-800);text-decoration:underline;text-underline-offset:3px}
.ds .set-item small{display:block;font-size:13px;color:var(--muted)}
.ds .set-item .qty{font-family:var(--font-display);font-weight:600;white-space:nowrap;text-align:right}
.ds .set-buy{position:sticky;top:96px;display:grid;gap:12px;padding:20px;border-radius:var(--r-lg);background:#fff;border:1px solid var(--line)}
.ds .set-buy .ln{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:15px;color:var(--ink-700)}
.ds .set-buy .ln.save{color:var(--ok)}
.ds .set-buy .ln s{color:var(--muted)}
.ds .set-buy form{margin:0}
@media (max-width:1023px){.ds .set-show{grid-template-columns:1fr}.ds .set-buy{position:static;order:-1}}
@media (max-width:767px){.ds .set-item{grid-template-columns:52px minmax(0,1fr);padding:10px 12px}.ds .set-item img{width:52px;height:52px}.ds .set-item .qty{grid-column:2;text-align:left}}

/* ---------- 4. /shelf ---------- */
.ds .shf-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:1199px){.ds .shf-list{grid-template-columns:1fr 1fr;gap:14px}}
@media (max-width:767px){.ds .shf-list{grid-template-columns:1fr;gap:12px}}
.ds .shf-tile{position:relative;display:flex;flex-direction:column;border-radius:var(--r-md);overflow:hidden;background:#fff;border:1px solid var(--line);transition:transform .45s var(--ease),box-shadow .45s,border-color .3s}
@media (hover:hover){.ds .shf-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:transparent}}
.ds .shf-tile__img{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--soft)}
.ds .shf-tile__img img{width:100%;height:100%;object-fit:cover}
.ds .shf-tile__body{padding:14px 16px 16px;display:grid;gap:4px}
.ds .shf-tile__body b{font-family:var(--font-display);font-weight:500;font-size:17px;line-height:1.4}
.ds .shf-tile__body small{font-size:13.5px;color:var(--muted)}
.ds .shf-tile .badge{position:absolute;top:12px;left:12px;z-index:2}
.ds .shf-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px;font-size:14.5px;color:var(--muted)}
.ds .shf-bar b{color:var(--ink)}
.ds .shf-setbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:14px 18px;border-radius:var(--r-md);background:#fff;border:1px solid var(--line);margin:0 0 14px}
.ds .shf-setbar .t{flex:1 1 240px;min-width:0}
.ds .shf-setbar .t b{display:block;font-family:var(--font-display);font-weight:500;font-size:16px}
.ds .shf-setbar .t span{font-size:14px;color:var(--muted)}
.ds .shf-setbar .t strong{font-family:var(--font-display);font-weight:600;color:var(--red-600)}
.ds .shf{position:relative;isolation:isolate}
.ds .shf-img{display:block;width:100%;height:100%;object-fit:contain;border-radius:var(--r-lg);border:1px solid var(--line);background:#fff}
.ds .shf .hotspot{left:var(--x);top:var(--y);z-index:2;width:38px;height:38px}
.ds .shf .hotspot.is-on{background:var(--navy-800);transform:translate(-50%,-50%) scale(1.1)}
.ds .shf .hotspot.is-on::before{border-color:var(--navy-800);animation:none}
.ds .shf .hotspot .n{font-family:var(--font-display);font-weight:600;font-size:13px;line-height:1}
.ds .shf.no-dots .hotspot{display:none}
/* การ์ดหมุด (desktop = popover ใต้/เหนือจุด · clamp ไม่ล้นขอบกรอบ) */
.ds .shf-pop{--w:min(380px,calc(100% - 24px));position:absolute;left:clamp(calc(var(--w)/2 + 12px),var(--x),calc(100% - var(--w)/2 - 12px));top:var(--y);z-index:5;width:var(--w);max-height:min(460px,80vh);overflow:auto;transform:translate(-50%,26px);background:#fff;border-radius:var(--r-md);border:1px solid var(--line);box-shadow:var(--shadow-lg);padding:14px 14px 12px;animation:popIn .3s var(--ease)}
.ds .shf-pop.is-up{transform:translate(-50%,calc(-100% - 26px))}
.ds .shf-x{position:absolute;top:8px;right:8px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--navy-800)}
.ds .shf-x svg{width:18px;height:18px}
.ds .shf-head{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;padding-right:44px}
.ds .shf-title{font-family:var(--font-display);font-weight:500;font-size:16px;line-height:1.35}
.ds .shf-row{font-size:12.5px;color:var(--muted);background:var(--soft);padding:2px 9px;border-radius:var(--pill)}
.ds .shf-items{list-style:none;margin:10px 0 0;padding:0;display:grid}
.ds .shf-items li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--line)}
.ds .shf-items li.nop{opacity:.8}
.ds .shf-it{display:flex;gap:10px;align-items:center;min-width:0;min-height:44px}
.ds .shf-it img{width:48px;height:48px;border-radius:8px;object-fit:contain;background:#fff;border:1px solid var(--line);flex-shrink:0}
.ds .shf-it .n{font-size:14px;line-height:1.35;min-width:0;color:var(--ink)}
.ds .shf-it .n small{display:block;font-size:12.5px;color:var(--muted)}
.ds .shf-items .qp{text-align:right;font-size:13px;color:var(--muted);display:grid;gap:2px;justify-items:end}
.ds .shf-items .p{font-family:var(--font-display);font-weight:600;color:var(--red-600);font-size:15px;white-space:nowrap}
.ds .shf-items .pick{color:var(--navy-800);text-decoration:underline;text-underline-offset:3px;min-height:36px;display:inline-flex;align-items:center;font-size:13.5px}
.ds .shf-items .nopp{font-size:12.5px;color:var(--red-600)}
.ds .shf-act{margin-top:10px;display:grid;gap:8px}
.ds .shf-act form{margin:0}
.ds .shf-sum{font-size:14px;color:var(--ink-700)}
.ds .shf-sum b{font-family:var(--font-display);font-weight:600;color:var(--red-600);font-size:17px}
.ds .shf-sum small{color:var(--muted)}
.ds .shf-pop .btn{min-height:46px}
/* มือถือ: การ์ดหมุดเป็นแผ่นลอยติดล่างจอ (เหนือเมนูล่าง) — ห้ามดันอยู่ในกรอบรูป ไม่งั้นกรอบสูงขึ้นแล้วจุด % เลื่อนหลุดรูป */
@media (max-width:767px){
  .ds .shf-pop{position:fixed;left:8px;right:8px;top:auto;bottom:calc(var(--bn-h) + 10px + env(safe-area-inset-bottom,0px));width:auto;max-height:70dvh;transform:none!important;z-index:120;box-shadow:0 -10px 40px -10px rgba(18,28,38,.45);border-radius:var(--r-lg)}
}

/* ---------- 5. /loyalty/{token} ---------- */
.ds .lyc{max-width:640px;margin:0 auto}
.ds .lyc-card{position:relative;background:#fff;border-radius:var(--r-lg);border:1px solid var(--line);overflow:hidden;margin-bottom:16px}
/* แบนเนอร์อัตราส่วนอิสระ → กรอบ 3:1 แต่ contain (ไม่ครอปตัวหนังสือในรูป) */
.ds .lyc-banner{aspect-ratio:3/1;background:var(--soft);border-bottom:1px solid var(--line)}
.ds .lyc-banner img{width:100%;height:100%;object-fit:contain}
.ds .lyc-body{padding:18px 18px 16px}
.ds .lyc-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.ds .lyc-top .status{flex-shrink:0}
.ds .lyc-name{font-size:17px;font-weight:600;line-height:1.35}
.ds .lyc-reward{font-size:13.5px;color:var(--muted);margin-top:2px}
.ds .lyc-period{display:flex;gap:6px;align-items:center;font-size:13px;color:var(--muted);margin-top:6px}
.ds .lyc-period svg{width:15px;height:15px}
.ds .lyc-desc{margin-top:12px;padding-top:10px;border-top:1px dashed var(--line);color:var(--muted);font-size:14.5px;line-height:1.6}
.ds .lyc-bar{margin:14px 0 6px}
.ds .lyc-nums{display:flex;justify-content:space-between;font-size:13.5px;color:var(--muted);margin-bottom:6px}
.ds .lyc-nums b{font-family:var(--font-display);font-size:15px;color:var(--navy-800)}
.ds .lyc-left{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-top:8px;font-size:13.5px;color:var(--ink-700)}
.ds .lyc-left b{font-family:var(--font-display);color:var(--navy-800)}
.ds .lyc-left .is-hit{color:var(--ok);font-weight:500}
.ds .lyc-days{display:inline-flex;gap:5px;align-items:center;color:var(--muted)}
.ds .lyc-days svg{width:14px;height:14px}
.ds .lyc-days.is-soon{color:var(--warn);font-weight:500}
.ds .lyc-got{margin-top:10px;display:flex;gap:6px;align-items:center;color:var(--ok);font-weight:500;font-size:14px}
.ds .lyc-got svg{width:17px;height:17px}
.ds .lyc-rewards{margin-top:12px;border-top:1px dashed var(--line);padding-top:10px;display:grid;gap:4px}
.ds .lyc-rw{display:flex;gap:10px;align-items:flex-start;font-size:14px;padding:6px 0}
.ds .lyc-rw>svg,.ds .lyc-rw>i{width:18px;height:18px;color:var(--navy-800);margin-top:3px}
.ds .lyc-rw .track{font-size:12.5px;color:var(--muted)}
.ds .lyc-rw .wait{color:var(--warn);font-weight:500}
.ds .lyc-photo{margin-top:14px;border-top:1px dashed var(--line);padding-top:12px;text-align:center}
.ds .lyc-photo .lb{display:flex;gap:6px;align-items:center;justify-content:center;font-family:var(--font-display);font-size:13.5px;font-weight:500;color:var(--navy-800);margin-bottom:8px}
.ds .lyc-photo .lb svg{width:16px;height:16px}
.ds .lyc-photo img{max-width:260px;width:100%;margin:0 auto;border-radius:12px;border:1px solid var(--line);background:var(--soft)}
.ds .lyc .empty{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg)}

/* ---------- 6. about / faq / how-to ---------- */
.ds .about-text{max-width:820px}
.ds .about-text h2{margin-top:10px;font-size:clamp(22px,2.4vw,30px)}
.ds .about-text p{margin-top:12px;color:var(--ink-700);font-size:16.5px;line-height:1.8}
.ds .about-text p strong{font-family:var(--font-display);font-weight:500;color:var(--ink)}
.ds .feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:32px}
.ds .feat-grid--3{grid-template-columns:repeat(3,1fr)}
@media (max-width:1199px){.ds .feat-grid,.ds .feat-grid--3{grid-template-columns:1fr 1fr}}
@media (max-width:767px){.ds .feat-grid,.ds .feat-grid--3{grid-template-columns:1fr;gap:10px}}
.ds .feat-grid .card{padding:22px}
.ds .feat-grid .card h3{font-size:18px}
.ds .cat-chips .chip{min-height:40px;padding:4px 16px;font-size:14.5px}
.ds .about-subcats{margin-top:10px}
.ds .about-subcats summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-family:var(--font-display);font-weight:500;color:var(--navy-800);list-style:none}
.ds .about-subcats summary::-webkit-details-marker{display:none}
.ds .about-subcats summary svg{width:18px;height:18px;transition:transform .35s var(--ease)}
.ds .about-subcats[open] summary svg{transform:rotate(180deg)}
.ds .about-subcats .chips{margin-top:10px}
.ds .about-subcats .chip{min-height:36px;padding:4px 12px;font-size:13.5px}
.ds .about-contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding:26px;border-radius:var(--r-lg);background:#fff;border:1px solid var(--line)}
.ds .about-contact--1{grid-template-columns:1fr}
@media (max-width:1023px){.ds .about-contact{grid-template-columns:1fr;padding:20px}}
.ds .contact-list{display:grid;gap:10px;list-style:none;margin:0;padding:0}
.ds .contact-list li{display:flex;gap:12px;align-items:flex-start;font-size:15.5px;color:var(--ink-700)}
.ds .contact-list li>svg,.ds .contact-list li>i{width:20px;height:20px;color:var(--red-600);margin-top:4px}
.ds .contact-list a{color:var(--navy-800);text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:36px;margin:-6px 0}
.ds .map-card{display:grid;place-items:center;align-content:center;gap:10px;min-height:220px;border-radius:var(--r-md);background:var(--navy-50);color:var(--navy-800);text-align:center;padding:20px;transition:background .3s}
.ds .map-card:hover{background:var(--navy-100)}
.ds .map-card svg{width:40px;height:40px}
.ds .map-card b{font-family:var(--font-display);font-weight:500}
.ds .cta-band .title{margin-top:12px;font-size:clamp(22px,2.4vw,30px)}
.ds .faq-list{max-width:820px}
.ds .acc__body a{color:var(--navy-800);text-decoration:underline}
.ds .rp-cta{text-align:center;margin:26px 0 8px;color:var(--muted)}
.ds .rp-cta .btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:12px}
.ds .steps--8{list-style:none;margin:0;padding:0;grid-template-columns:repeat(4,1fr)}
.ds .steps--8 .step:nth-child(4n)::after{display:none}
@media (max-width:1199px){.ds .steps--8{grid-template-columns:1fr 1fr}}
@media (max-width:767px){.ds .steps--8{grid-template-columns:1fr}}

/* ---------- 7. นโยบาย 4 หน้า ---------- */
.ds .policy-wrap{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:32px;align-items:start}
.ds .policy-wrap .policy{min-width:0}
@media (max-width:1023px){.ds .policy-wrap{grid-template-columns:minmax(0,1fr)}.ds .policy-wrap .toc{display:none}}
.ds .rp-card{padding:22px 24px;border-radius:var(--r-md);background:#fff;border:1px solid var(--line);margin-bottom:14px;scroll-margin-top:110px}
@media (max-width:767px){.ds .rp-card{padding:18px 16px}}
.ds .rp-card h2{display:flex;gap:10px;align-items:center;font-size:19px;font-weight:500;line-height:1.4;margin:0 0 10px}
.ds .rp-card h2 svg,.ds .rp-card h2 i{width:20px;height:20px;color:var(--red-600);flex-shrink:0}
.ds .rp-card h3{font-size:16px;margin:14px 0 6px}
.ds .rp-card p,.ds .rp-card li{color:var(--ink-700);font-size:15.5px;line-height:1.75}
.ds .rp-card p+p{margin-top:8px}
.ds .rp-card ul,.ds .rp-card ol{margin:8px 0 0;padding-left:22px}
.ds .rp-card li+li{margin-top:6px}
.ds .rp-card a{color:var(--navy-800);text-decoration:underline;text-underline-offset:3px}
.ds .rp-card b{font-family:var(--font-display);font-weight:500;color:var(--ink)}
.ds .rp-card code{font-size:13px;background:var(--soft);padding:1px 6px;border-radius:4px}
.ds .rp-card .table-wrap{margin-top:12px}
.ds .rp-card .table{min-width:520px;font-size:14.5px}
.ds .rp-card .table td,.ds .rp-card .table th{padding:10px 14px;vertical-align:top;line-height:1.6}
.ds .rp-docs{margin:22px 0 4px;justify-content:center}
.ds .rp-docs .chip svg{width:16px;height:16px}
.ds .rp-docs .chip[aria-current]{background:var(--navy-800);border-color:var(--navy-800);color:#fff}

/* ---------- 8. /links (ลิงก์ใน bio — chrome ซ่อนด้วย body.lk-body) ---------- */
.lk-body{background:#F3F0EA}
.ds .lnk{max-width:520px;margin:0 auto;padding:28px 16px 40px;display:grid;gap:12px;color:var(--navy-800)}
.ds .lnk-tape{height:8px;width:120px;margin:0 auto 4px;background:var(--yellow-500);border-radius:4px}
.ds .lnk-head{text-align:center;padding:4px 0 6px}
.ds .lnk-head img{height:56px;width:auto;margin:0 auto}
.ds .lnk-slogan{font-family:var(--font-display);font-weight:500;font-size:17px;margin-top:10px}
.ds .lnk-lot{font-size:13.5px;color:var(--muted);margin-top:2px}
.ds .lnk-sec{font-size:13px;color:var(--muted);font-family:var(--font-display);font-weight:500;margin:8px 4px -4px}
.ds .lnk-card{display:flex;gap:14px;align-items:center;min-height:68px;padding:12px 16px;border-radius:var(--r-md);background:#fff;border:1px solid var(--line);transition:transform .35s var(--ease),box-shadow .35s}
@media (hover:hover){.ds .lnk-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}}
.ds .lnk-card:active{transform:scale(.985)}
.ds .lnk-primary{background:var(--navy-800);color:#fff;border-color:transparent}
.ds .lnk-ic{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--navy-800);color:#fff;flex-shrink:0;overflow:hidden}
.ds .lnk-ic svg{width:26px;height:26px}
.ds .lnk-ic.is-line{background:#06C755}.ds .lnk-ic.is-tiktok{background:#000}.ds .lnk-ic.is-youtube{background:#FF0000}.ds .lnk-ic.is-facebook{background:#1877F2}.ds .lnk-ic.is-shopee{background:#EE4D2D}.ds .lnk-ic.is-lazada{background:#0F146D}
.ds .lnk-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.ds .lnk-t{font-family:var(--font-display);font-weight:500;font-size:16px;line-height:1.35}
.ds .lnk-s{font-size:13px;color:var(--muted);line-height:1.45}
.ds .lnk-primary .lnk-t{font-size:17px}
.ds .lnk-primary .lnk-s{color:rgba(255,255,255,.82)}
.ds .lnk-go{color:var(--muted);display:grid}
.ds .lnk-go svg{width:20px;height:20px}
.ds .lnk-primary .lnk-go{color:#fff}
.ds .lnk-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ds .lnk-mini{min-height:76px;padding:12px 14px;gap:10px}
.ds .lnk-mini .lnk-ic{width:42px;height:42px;border-radius:12px}
.ds .lnk-mini .lnk-ic svg{width:22px;height:22px}
.ds .lnk-mini .lnk-t{font-size:15px}
@media (max-width:380px){.ds .lnk-mini{flex-direction:column;align-items:flex-start}}
.ds .lnk-tear{border-top:2px dashed var(--line-strong);margin:6px 10px}
.ds .lnk-acct{padding:20px;border-radius:var(--r-md);background:#fff;border:1px solid var(--line)}
.ds .lnk-acct h2{font-size:18px}
.ds .lnk-acct p{color:var(--muted);font-size:14.5px;margin-top:4px}
.ds .lnk-steps{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.ds .lnk-steps li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;color:var(--ink-700)}
.ds .lnk-steps li span{width:26px;height:26px;border-radius:50%;background:var(--navy-800);color:var(--yellow-500);display:grid;place-items:center;font-family:var(--font-display);font-weight:600;font-size:13px;flex-shrink:0;margin-top:1px}
.ds .lnk-acct .btn{margin-top:14px}
.ds .lnk-acct .lnk-note{font-size:13px;text-align:center;margin-top:10px}
.ds .lnk-tt{padding:14px 16px;border-radius:var(--r-md);background:#fff;border:1px solid var(--line)}
.ds .lnk-tt-h{font-family:var(--font-display);font-weight:500;font-size:14px;color:var(--muted)}
.ds .lnk-tt-row{display:flex;gap:12px;align-items:center;min-height:56px;margin-top:6px}
.ds .lnk-tt-row .lnk-ic{width:40px;height:40px;border-radius:12px}
.ds .lnk-tt-row .lnk-ic svg{width:22px;height:22px}
.ds .lnk-here{margin-left:auto}
.ds .lnk-social,.ds .lnk-apps{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ds .lnk-social a,.ds .lnk-apps a{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px;border-radius:var(--r-md);background:#fff;border:1px solid var(--line);font-family:var(--font-display);font-weight:500;font-size:14.5px;transition:transform .35s var(--ease),box-shadow .35s}
@media (hover:hover){.ds .lnk-social a:hover,.ds .lnk-apps a:hover{transform:translateY(-2px);box-shadow:var(--shadow)}}
.ds .lnk-foot{text-align:center;font-size:12.5px;color:var(--muted);padding-top:10px;line-height:1.7}
.ds .lnk-foot p{user-select:text;-webkit-user-select:text}
.ds .lnk a:focus-visible{outline:3px solid var(--red-600);outline-offset:3px;border-radius:12px}

/* ---------- 9. errors 404 / 419 (ในเว็บ มีหัว/ท้ายเว็บ) ---------- */
.ds .err{position:relative;margin:12px;min-height:min(72vh,680px);display:grid;place-items:center;text-align:center;padding:clamp(40px,6vw,80px) 20px;border-radius:var(--r-xl);background:var(--grad-navy);color:#fff;overflow:hidden;isolation:isolate}
@media (max-width:767px){.ds .err{margin:8px}}
.ds .err__code{font-family:var(--font-display);font-size:clamp(96px,15vw,180px);font-weight:700;line-height:.9;color:transparent;-webkit-text-stroke:2px var(--yellow-500)}
.ds .err h1{margin-top:12px;font-size:clamp(24px,3vw,36px);color:#fff}
.ds .err p{margin:10px auto 0;color:rgba(255,255,255,.86);max-width:520px}
.ds .err__actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:22px}
.ds .err__cats{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px}
.ds .err__cats a{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border-radius:var(--pill);border:1px solid rgba(255,255,255,.3);color:#fff;font-size:14px;transition:background .25s}
.ds .err__cats a:hover{background:rgba(255,255,255,.12)}
.ds .err__contact{margin-top:18px;font-size:14px;color:rgba(255,255,255,.75)}
.ds .err__contact a{color:#fff;text-decoration:underline;text-underline-offset:3px;padding-block:9px}
.ds .toc[hidden]{display:none}
