/* type-scale.css — ลดขนาดหัวข้อใหญ่ (ดีไซน์เดิม .mega สูงสุด 94–112px ใหญ่เกินและตัดคำแปลก)
   ใช้กับทุกหน้า: Landing (ใส่ใน template ผ่าน scripts/build-landing.mjs), quickcheck.html และหน้าแอป */
.site .mega { font-size: clamp(34px, 5vw, 72px); }
.site[data-lang="th"] .mega { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.28; }
.site .h2 { font-size: clamp(28px, 3.6vw, 52px); }
.site[data-lang="th"] .h2 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.32; }
/* ไม่ตัดคำกลางคำไทย (เช่น "ต้อง/มี") */
.site .mega, .site .h2 { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
/* ตัวหนังสือ "Control C+" ท้ายเว็บ: ดีไซน์เดิมดันลงให้ตกขอบ บนมือถือแถบที่อยู่ของ Safari บังส่วนที่เหลือจนดูเหมือนขาด
   → แสดงเต็มตัว และเว้นที่ด้านล่างให้พ้นแถบเบราว์เซอร์ */
.site .wm { transform: none; line-height: 1; padding-bottom: .04em; }
.site .ft { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { .site .ft { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@supports (animation-timeline: view()) {
  .site .wm { animation-name: wmu-full; animation-range: entry 0% entry 100%; }
  @keyframes wmu-full { from { transform: translateY(45%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .site .wm { animation: none; } }

/* ── จัดสมดุลหลังลดขนาดตัวอักษร: ลดช่องว่างแนวตั้ง และแบ่งคอลัมน์ให้เนื้อหาเต็มพื้นที่ ── */
.site .sec { padding-block: clamp(64px, 8vw, 112px); }
.site .hc-grid { padding-block: clamp(64px, 8vw, 112px); }
.site .stmt { padding-block: clamp(64px, 8vw, 112px); }
.site .next { padding-block: clamp(48px, 6vw, 88px); }
.site .ph { padding-top: clamp(40px, 6vw, 80px); }
.site .ph .meta { margin-bottom: clamp(24px, 3.5vw, 48px); }
.site .sh { margin-bottom: clamp(32px, 4vw, 56px); }
/* hero: หัวข้อซ้าย + คำโปรย/ปุ่มขวา สัดส่วนใกล้กัน จัดกึ่งกลางแนวตั้ง */
@media (min-width: 1040px) {
  .site .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 88px); }
}
/* หัวข้อแบรนด์ "SME Sustainability Transformation" เป็นภาษาอังกฤษทั้งสองภาษา → ไม่ใช้ขนาดหัวข้อไทย */
.site .mega.brand, .site[data-lang="th"] .mega.brand { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.06; letter-spacing: -.035em; overflow-wrap: normal; }
.site .sub2 { max-width: 34ch; }
/* แถบสีเข้ม: ข้อความใหญ่ซ้าย + รายการขวา (จอกว้าง) */
@media (min-width: 1000px) {
  .site .stmt { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
  .site .stmt .big { max-width: none; }
}
.site[data-lang="en"] .hero-grid .mega:not(.brand) { font-size: clamp(34px, 4.3vw, 62px); }
/* การ์ด "5 หน้า 1 เส้นทาง" ไม่มีเลขใหญ่แล้ว → การ์ดเตี้ยลง */
@media (min-width: 861px) { .site .acc { height: 300px; } }

/* หน้าแรก · ส่วนเส้นทาง (ไม่มีเลขแล้ว): ชื่อหน้าเป็นหัวข้อ + คำอธิบาย + ลูกศรชิดล่าง */
.jr .sh.split { align-items: end; }
.jr .jr-sub { margin: 0; max-width: 40ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.site .jr .acc { height: auto; }
.site .jr .acc a { justify-content: flex-start; gap: 12px; min-height: 250px; padding: 24px 22px 22px; }
.jr .acc .nm { font: 800 clamp(22px, 2vw, 30px)/1.15 var(--f-display); letter-spacing: -.02em; }
.jr .acc b { font: 500 clamp(15px, 1.15vw, 17px)/1.55 var(--f-body); letter-spacing: 0; max-width: 24ch; opacity: .82; }
.jr .acc .go { position: static; margin-top: auto; width: 44px; height: 44px; flex: none; }
@media (max-width: 860px) {
  .site .jr .acc a { flex: none; min-height: 0; padding: 20px 76px 20px 20px; gap: 6px; }
  .jr .acc .go { position: absolute; right: 18px; top: 50%; margin: -22px 0 0; }
}

/* ภาพประกอบการ์ดบทความ (content/articles/<slug>/art.svg) — แทนรูปทรงทั่วไปของหมวด */
.cover .art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.cover.has-art .cv{display:none}
.acard:hover .cover .art{transform:scale(1.05) rotate(-.6deg)}
