/* ==========================================================================
   แม่แบบหน้าจดหมายข่าว (ขนาดจริง 1240 x 1754 px = A4 แนวตั้ง)
   ========================================================================== */
.nls { --a: #007f3d; --a2: #04382b; --g: #d4af37; --soft: #eef7f1; --ink: #13241e;
  position: relative; width: 1240px; height: 1754px; overflow: hidden; background: #fff; color: var(--ink);
  font-family: 'Sarabun', sans-serif; display: flex; flex-direction: column; box-sizing: border-box; }
.nls *, .nls *::before, .nls *::after { box-sizing: border-box; }
.nls img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nls h1, .nls h2, .nls h3, .nls p { margin: 0; }

/* หัวกระดาษ */
.nls-head { position: relative; height: 230px; padding: 34px 56px 0; color: #fff; background: linear-gradient(120deg, var(--a2) 0%, var(--a) 70%, var(--a) 100%); display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.nls-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(90deg, var(--g), #f7e7a4, var(--g)); }
.nls-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 2px, transparent 2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.nls-logo { position: relative; z-index: 1; width: 128px; height: 128px; border-radius: 50%; background: #fff; padding: 10px; flex: 0 0 auto; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.nls-logo img { object-fit: contain; }
.nls-brand { position: relative; z-index: 1; flex: 1; min-width: 0; }
.nls-brand .k { display: inline-block; font: 600 26px 'Kanit', sans-serif; letter-spacing: .04em; color: var(--a2); background: linear-gradient(135deg, #f7e7a4, var(--g)); padding: 4px 18px; border-radius: 999px; }
.nls-brand h1 { font: 700 52px/1.15 'Kanit', sans-serif; margin-top: 10px; color: #fff; }
.nls-brand p { font: 500 24px 'Sarabun', sans-serif; opacity: .9; }
.nls-date { position: relative; z-index: 1; text-align: right; font: 500 24px/1.35 'Kanit', sans-serif; flex: 0 0 auto; }
.nls-date b { display: block; font-size: 30px; color: #f7e7a4; }
.nls-date small { display: block; font: 400 21px 'Sarabun', sans-serif; opacity: .85; }

/* โลโก้ใหม่มีกรอบทองในตัว: ไม่ต้องมีวงกลมพื้นขาวซ้อน */
.nls-logo { background: transparent; padding: 0; box-shadow: none; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }

/* หัวข่าวแบบมีผู้บริหาร (.hx) */
.nls.hx .nls-head { height: 330px; padding: 26px 40px 20px 44px; gap: 18px; align-items: center; }
.nls.hx .nls-head::after { display: none; }
.nls.hx .nls-logo { width: 150px; height: 150px; align-self: center; }
.nls.hx .nls-brand { flex: 1 1 0; }
.nls.hx .nls-brand .k { font-size: 21px; padding: 3px 14px; }
.nls.hx .nls-brand h1 { font-size: 46px; line-height: 1.12; margin-top: 10px; }
.nls.hx .nls-brand p { font-size: 19px; margin-top: 6px; }
.nls-execs { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 10px; flex: 0 0 auto; align-self: flex-end; }
.nls-execs figure { margin: 0; width: 122px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nls-execs .pic { display: block; width: 112px; height: 142px; border-radius: 60px 60px 12px 12px; overflow: hidden; border: 4px solid var(--g); background: #e7efe9; box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.nls-execs .pic img { object-position: 50% 18%; }
.nls-execs figcaption { margin-top: 8px; font: 400 13px/1.25 'Sarabun', sans-serif; color: rgba(255,255,255,.88); }
.nls-execs figcaption b { display: block; font: 600 15px/1.2 'Kanit', sans-serif; color: #fff; }
.nls-execs .nw, .nls-dbar b, .nls-dbar span, .nls.hx .nls-brand .k { white-space: nowrap; }
.nls-execs figure.main { width: 160px; }
.nls-execs figure.main .pic { width: 150px; height: 190px; border-radius: 80px 80px 14px 14px; border-width: 5px; }
.nls-execs figure.main figcaption b { font-size: 18px; color: #f7e7a4; }
.nls-execs figure.main figcaption { font-size: 14px; }
.nls-dbar { flex: 0 0 auto; height: 62px; padding: 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(90deg, var(--g), #f7e7a4 50%, var(--g)); color: var(--a2); }
.nls-dbar b { font: 600 27px 'Kanit', sans-serif; }
.nls-dbar span { font: 500 22px 'Kanit', sans-serif; opacity: .9; }
.nls.hx .nls-body { padding-top: 32px; }

/* เนื้อหา */
.nls-body { flex: 1; min-height: 0; padding: 40px 56px 0; display: flex; flex-direction: column; gap: 26px; }
.nls-tag { align-self: flex-start; font: 600 26px 'Kanit', sans-serif; color: #fff; background: var(--a); padding: 6px 22px; border-radius: 10px; }
.nls-title h2 { font: 700 58px/1.18 'Kanit', sans-serif; color: var(--a2); }
.nls-title h3 { font: 500 32px/1.3 'Kanit', sans-serif; color: var(--a); margin-top: 6px; }
.nls-photos { display: grid; gap: 14px; flex: 1 1 auto; min-height: 520px; }
.nls-photos figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; background: var(--soft); }
.nls-photos figure.empty { display: grid; place-items: center; color: #8fa59a; font: 500 26px 'Kanit', sans-serif; border: 4px dashed #c7d8cf; }
.nls-photos figure.empty::after { content: "วางรูปที่นี่"; }
.nls-text { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; flex: 0 0 auto; }
.nls-text p { font-size: 27px; line-height: 1.6; text-align: left; line-break: strict; word-break: normal; overflow-wrap: anywhere; }
.nls-text .en { color: #42564e; font-size: 25px; border-left: 4px solid var(--g); padding-left: 22px; text-align: left; }
.nls-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.nls-list li { position: relative; padding: 14px 20px 14px 64px; background: var(--soft); border-radius: 14px; font: 500 27px/1.4 'Sarabun', sans-serif; }
.nls-list li::before { content: counter(li); counter-increment: li; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--a); color: #fff; font: 600 21px 'Kanit', sans-serif; }
.nls-list { counter-reset: li; }
.nls-list li small { display: block; color: #5d6d67; font-size: 22px; }

/* ส่วนท้าย */
.nls-foot { flex: 0 0 auto; margin-top: 30px; height: 96px; padding: 0 56px; display: flex; align-items: center; gap: 34px; background: var(--a2); color: #fff; font: 500 23px 'Sarabun', sans-serif; }
.nls-foot span { display: inline-flex; align-items: center; gap: 10px; }
.nls-foot i { color: var(--g); }
.nls-foot .sp { flex: 1; }

/* ---------- 1 กิจกรรมทั่วไป ---------- */
.tpl-activity .nls-photos.n1 { grid-template: 1fr / 1fr; }
.tpl-activity .nls-photos.n2 { grid-template: 1fr / 1fr 1fr; }
.tpl-activity .nls-photos.n3 { grid-template: 1fr 1fr / 1.5fr 1fr; } .tpl-activity .nls-photos.n3 figure:first-child { grid-row: span 2; }
.tpl-activity .nls-photos.n4 { grid-template: 1fr 1fr / 1fr 1fr; }
.tpl-activity .nls-photos.n5 { grid-template: 1fr 1fr / repeat(6, 1fr); } .tpl-activity .nls-photos.n5 figure:nth-child(-n+2) { grid-column: span 3; } .tpl-activity .nls-photos.n5 figure:nth-child(n+3) { grid-column: span 2; }
.tpl-activity .nls-photos.n6 { grid-template: 1fr 1fr / repeat(3, 1fr); }

/* ---------- 2 วันสำคัญ / พิธี ---------- */
.tpl-ceremony { --a: #1e3a8a; --a2: #0f1d4a; --g: #d4af37; --soft: #eef2fb; }
.tpl-ceremony .nls-body { background: radial-gradient(60% 40% at 50% 0%, rgba(212,175,55,.12), transparent 70%); }
.tpl-ceremony .nls-title { text-align: center; }
.tpl-ceremony .nls-title h2 { color: #0f1d4a; }
.tpl-ceremony .nls-title h3 { color: #a07d12; }
.tpl-ceremony .nls-tag { align-self: center; background: linear-gradient(135deg, #b8860b, #d4af37); color: #0f1d4a; }
.tpl-ceremony .nls-photos { grid-template: 2fr 1fr / repeat(3, 1fr); padding: 14px; border: 6px double var(--g); border-radius: 26px; }
.tpl-ceremony .nls-photos figure:first-child { grid-column: 1 / -1; }
.tpl-ceremony .nls-photos.n1 { grid-template: 1fr / 1fr; } .tpl-ceremony .nls-photos.n2 { grid-template: 2fr 1fr / 1fr; }
.tpl-ceremony .nls-photos.n3 { grid-template: 2fr 1fr / 1fr 1fr; }

/* ---------- 3 รางวัล / ความสำเร็จ ---------- */
.tpl-award { --a: #b91c1c; --a2: #7f1d1d; --g: #eab308; --soft: #fff7e6; }
.tpl-award .nls-congrats { text-align: center; font: 700 64px/1 'Kanit', sans-serif; background: linear-gradient(100deg, #b45309, #eab308, #b45309); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tpl-award .nls-congrats small { display: block; font: 600 30px 'Kanit', sans-serif; letter-spacing: .3em; margin-top: 8px; color: #b45309; -webkit-text-fill-color: #b45309; }
.tpl-award .nls-title { text-align: center; }
.tpl-award .nls-tag { align-self: center; }
.tpl-award .nls-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; flex: 1; min-height: 0; }
.tpl-award .nls-photos { grid-template: 1.6fr 1fr / 1fr 1fr; min-height: 0; }
.tpl-award .nls-photos figure:first-child { grid-column: 1 / -1; border: 8px solid #fde68a; }
.tpl-award .nls-photos.n1 { grid-template: 1fr / 1fr; } .tpl-award .nls-photos.n2 { grid-template: 1.6fr 1fr / 1fr; }
.tpl-award .nls-side { display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow: hidden; }
.tpl-award .nls-list li { background: #fff7e6; border: 2px solid #fde68a; }
.tpl-award .nls-list li::before { content: "★"; background: linear-gradient(135deg, #eab308, #b45309); font-size: 22px; }
.tpl-award .nls-text { grid-template-columns: 1fr; gap: 14px; }

/* ---------- 4 ประชุม / อบรม ---------- */
.tpl-meeting { --a: #0f766e; --a2: #134e4a; --g: #5eead4; --soft: #ecfdf8; }
.tpl-meeting .nls-main { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; flex: 1; min-height: 0; }
.tpl-meeting .nls-photos { grid-template-rows: repeat(var(--r, 2), 1fr); min-height: 0; }
.tpl-meeting .nls-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow: hidden; }
.tpl-meeting .nls-side h4 { margin: 0; font: 600 30px 'Kanit', sans-serif; color: var(--a2); }
.tpl-meeting .nls-text { grid-template-columns: 1fr; }

/* ---------- 5 กีฬา / การแข่งขัน ---------- */
.tpl-sports { --a: #ea580c; --a2: #1e3a8a; --g: #facc15; --soft: #fff4ec; }
.tpl-sports .nls-head { background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #ea580c 100%); }
.tpl-sports .nls-title h2 { font-style: italic; text-transform: uppercase; color: #1e3a8a; }
.tpl-sports .nls-tag { background: linear-gradient(135deg, #ea580c, #facc15); transform: skewX(-10deg); }
.tpl-sports .nls-photos { grid-template: 1.3fr 1fr / repeat(6, 1fr); gap: 10px; }
.tpl-sports .nls-photos figure { border-radius: 6px; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.tpl-sports .nls-photos figure:nth-child(-n+2) { grid-column: span 3; }
.tpl-sports .nls-photos figure:nth-child(n+3) { grid-column: span 2; }
.tpl-sports .nls-photos.n1 figure { grid-column: 1 / -1; grid-row: 1 / -1; }
.tpl-sports .nls-photos.n2 figure { grid-row: 1 / -1; }
.tpl-sports .nls-photos.n3 figure:nth-child(3) { grid-column: 1 / -1; }
.tpl-sports .nls-photos.n4 figure:nth-child(n+3) { grid-column: span 3; }

/* ---------- 6 ประกาศ / เชิญชวน ---------- */
.tpl-announce { --a: #7c3aed; --a2: #3b0764; --g: #f0abfc; --soft: #f5f0ff; }
.tpl-announce .nls-photos { grid-template: 1fr / 1fr; min-height: 560px; max-height: 640px; }
.tpl-announce .nls-photos.n2 { grid-template: 1fr / 1fr 1fr; }
.tpl-announce .nls-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tpl-announce .nls-info div { padding: 20px 24px; border-radius: 18px; background: var(--soft); border-left: 8px solid var(--a); }
.tpl-announce .nls-info small { display: block; font: 600 22px 'Kanit', sans-serif; color: var(--a); text-transform: uppercase; letter-spacing: .06em; }
.tpl-announce .nls-info b { display: block; font: 600 32px/1.3 'Kanit', sans-serif; color: var(--a2); }
.tpl-announce .nls-info em { display: block; font-style: normal; font-size: 22px; color: #5b4b74; }

/* ---------- 7 หน้าปกประจำเดือน ---------- */
.tpl-cover { --a: #007f3d; --a2: #022c22; --g: #d4af37; --soft: #f4f8f1; }
.tpl-cover .nls-body { background: radial-gradient(70% 35% at 100% 0%, rgba(212,175,55,.16), transparent 70%); }
.tpl-cover .nls-cover-m { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 18px; border-bottom: 4px solid var(--g); }
.tpl-cover .nls-cover-m small { flex-basis: 100%; font: 600 26px 'Kanit', sans-serif; letter-spacing: .1em; color: #a07d12; }
.tpl-cover .nls-cover-m b { font: 700 96px/1 'Kanit', sans-serif; color: var(--a2); }
.tpl-cover .nls-cover-m em { font: 500 38px 'Kanit', sans-serif; font-style: normal; color: var(--a); }
.tpl-cover .nls-title h2 { font-size: 46px; }
.tpl-cover .nls-main { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; flex: 1; min-height: 0; }
.tpl-cover .nls-photos { grid-template: 1.4fr 1fr / 1fr 1fr; min-height: 0; }
.tpl-cover .nls-photos figure:first-child { grid-column: 1 / -1; }
.tpl-cover .nls-photos.n4 { grid-template: 1.4fr 1fr / repeat(3, 1fr); }
.tpl-cover .nls-photos.n1 { grid-template: 1fr / 1fr; } .tpl-cover .nls-photos.n2 { grid-template: 1fr 1fr / 1fr; } .tpl-cover .nls-photos.n3 { grid-template: 1.4fr 1fr / 1fr 1fr; }
.tpl-cover .nls-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; }
.tpl-cover .nls-side h4 { margin: 0; font: 600 32px 'Kanit', sans-serif; color: var(--a2); }
.tpl-cover .nls-list li { font-size: 25px; padding: 10px 16px 10px 60px; }
.tpl-cover .nls-text { grid-template-columns: 1fr 1fr; }

/* ---------- 8 หลายข่าวในหน้าเดียว ---------- */
.tpl-multi { --a: #0369a1; --a2: #0c4a6e; --g: #f59e0b; --soft: #f0f9ff; }
.tpl-multi .nls-title h2 { font-size: 50px; }
.tpl-multi .nls-stories { flex: 1; min-height: 0; display: grid; gap: 22px; }
.tpl-multi .nls-stories.n2 { grid-template-rows: 1fr 1fr; } .tpl-multi .nls-stories.n3 { grid-template-rows: 1fr 1fr 1fr; }
.nls-story { display: grid; grid-template-columns: 46% 1fr; gap: 26px; min-height: 0; padding: 18px; border-radius: 22px; background: var(--soft); border-left: 10px solid var(--a); }
.nls-story:nth-child(even) { grid-template-columns: 1fr 46%; border-left: 0; border-right: 10px solid var(--g); }
.nls-story:nth-child(even) figure { order: 2; }
.nls-story.nophoto { grid-template-columns: 1fr; }
.nls-story figure { margin: 0; border-radius: 16px; overflow: hidden; min-height: 0; background: #dbeafe; }
.nls-story figure.empty { display: grid; place-items: center; border: 4px dashed #bfdbfe; } .nls-story figure.empty::after { content: "วางรูปที่นี่"; font: 500 24px 'Kanit', sans-serif; color: #7aa3c4; }
.nls-story > div { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.nls-story h3 { margin: 0; font: 700 38px/1.2 'Kanit', sans-serif; color: var(--a2); }
.nls-story h4 { margin: 0; font: 500 25px/1.3 'Kanit', sans-serif; color: var(--a); }
.nls-story p { font-size: 24px; line-height: 1.55; overflow-wrap: anywhere; }
.nls-story p.en { color: #475569; font-size: 21px; border-left: 4px solid var(--g); padding-left: 14px; }

/* ---------- 9 ภาพล้วน (คอลลาจ) ---------- */
.tpl-collage { --a: #be185d; --a2: #500724; --g: #fbcfe8; --soft: #fdf2f8; }
.tpl-collage .nls-body { gap: 20px; }
.tpl-collage .nls-title { text-align: center; } .tpl-collage .nls-tag { align-self: center; }
.tpl-collage .nls-photos { gap: 10px; }
.tpl-collage .nls-photos figure { border-radius: 10px; }
.tpl-collage .nls-photos.n1 { grid-template: 1fr / 1fr; }
.tpl-collage .nls-photos.n2 { grid-template: 1fr 1fr / 1fr; }
.tpl-collage .nls-photos.n3 { grid-template: 1fr 1fr / 1.4fr 1fr; } .tpl-collage .nls-photos.n3 figure:first-child { grid-row: span 2; }
.tpl-collage .nls-photos.n4 { grid-template: 1fr 1fr / 1fr 1fr; }
.tpl-collage .nls-photos.n5 { grid-template: 1.3fr 1fr / repeat(6, 1fr); } .tpl-collage .nls-photos.n5 figure:nth-child(-n+2) { grid-column: span 3; } .tpl-collage .nls-photos.n5 figure:nth-child(n+3) { grid-column: span 2; }
.tpl-collage .nls-photos.n6 { grid-template: 1fr 1fr 1fr / 1fr 1fr; }
.tpl-collage .nls-photos.n7 { grid-template: 1.4fr 1fr 1fr / repeat(3, 1fr); } .tpl-collage .nls-photos.n7 figure:first-child { grid-column: 1 / -1; }
.tpl-collage .nls-photos.n8 { grid-template: repeat(3, 1fr) / repeat(3, 1fr); } .tpl-collage .nls-photos.n8 figure:first-child { grid-column: span 2; }
.tpl-collage .nls-photos.n9 { grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.tpl-collage .nls-cap { flex: 0 0 auto; text-align: center; }
.tpl-collage .nls-cap p { font-size: 26px; line-height: 1.5; }
.tpl-collage .nls-cap p.en { color: #6b4258; font-size: 22px; margin-top: 4px; }

/* ---------- 10 ต้อนรับ / ศึกษาดูงาน ---------- */
.tpl-welcome { --a: #0e7490; --a2: #083344; --g: #d4af37; --soft: #ecfeff; }
.tpl-welcome .nls-banner { align-self: stretch; text-align: center; padding: 16px 0 14px; border-radius: 18px; color: #fff; background: linear-gradient(100deg, var(--a2), var(--a) 50%, var(--a2)); box-shadow: inset 0 -6px 0 var(--g); }
.tpl-welcome .nls-banner b { display: block; font: 700 58px/1.05 'Kanit', sans-serif; letter-spacing: .02em; }
.tpl-welcome .nls-banner small { display: block; font: 600 24px 'Kanit', sans-serif; letter-spacing: .5em; color: #f7e7a4; }
.tpl-welcome .nls-title { text-align: center; } .tpl-welcome .nls-tag { align-self: center; }
.tpl-welcome .nls-photos { grid-template: 1.5fr 1fr / 1fr 1fr; }
.tpl-welcome .nls-photos figure:first-child { grid-column: 1 / -1; }
.tpl-welcome .nls-photos.n1 { grid-template: 1fr / 1fr; } .tpl-welcome .nls-photos.n2 { grid-template: 1fr / 1fr 1fr; } .tpl-welcome .nls-photos.n2 figure:first-child { grid-column: auto; }

/* ---------- 11 ขอบคุณ / บริจาค ---------- */
.tpl-thanks { --a: #be123c; --a2: #4c0519; --g: #f59e0b; --soft: #fff1f2; }
.tpl-thanks .nls-congrats { text-align: center; font: 700 66px/1 'Kanit', sans-serif; color: var(--a); }
.tpl-thanks .nls-congrats small { display: block; font: 600 28px 'Kanit', sans-serif; letter-spacing: .35em; margin-top: 8px; color: #b45309; }
.tpl-thanks .nls-title { text-align: center; } .tpl-thanks .nls-tag { align-self: center; }
.tpl-thanks .nls-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; flex: 1; min-height: 0; }
.tpl-thanks .nls-photos { grid-template: 1.6fr 1fr / 1fr 1fr; min-height: 0; }
.tpl-thanks .nls-photos figure:first-child { grid-column: 1 / -1; }
.tpl-thanks .nls-photos.n1 { grid-template: 1fr / 1fr; } .tpl-thanks .nls-photos.n2 { grid-template: 1.6fr 1fr / 1fr; }
.tpl-thanks .nls-side { display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow: hidden; }
.tpl-thanks .nls-list li { background: #fff1f2; border: 2px solid #fecdd3; }
.tpl-thanks .nls-list li::before { content: "♥"; background: linear-gradient(135deg, #f43f5e, #be123c); font-size: 20px; }
.tpl-thanks .nls-text { grid-template-columns: 1fr; gap: 14px; }

/* ---------- 12 ศาสนา / ประเพณี ---------- */
.tpl-culture { --a: #c2410c; --a2: #431407; --g: #f59e0b; --soft: #fff7ed; }
.tpl-culture .nls-head { background: linear-gradient(120deg, #431407 0%, #9a3412 60%, #c2410c 100%); }
.tpl-culture .nls-body { background: radial-gradient(60% 30% at 50% 0%, rgba(245,158,11,.14), transparent 70%); }
.tpl-culture .nls-title { text-align: center; } .tpl-culture .nls-title h2 { color: #7c2d12; } .tpl-culture .nls-title h3 { color: #b45309; }
.tpl-culture .nls-tag { align-self: center; background: linear-gradient(135deg, #c2410c, #f59e0b); }
.tpl-culture .nls-title::after { content: "❖ ❖ ❖"; display: block; margin-top: 8px; color: var(--g); font-size: 24px; letter-spacing: .6em; }
.tpl-culture .nls-photos { padding: 12px; border-radius: 26px; background: linear-gradient(135deg, #fde68a, #f59e0b, #fde68a); grid-template: 1.4fr 1fr / repeat(6, 1fr); gap: 10px; }
.tpl-culture .nls-photos figure { border-radius: 16px; border: 3px solid #fff7ed; }
.tpl-culture .nls-photos figure:nth-child(-n+2) { grid-column: span 3; } .tpl-culture .nls-photos figure:nth-child(n+3) { grid-column: span 2; }
.tpl-culture .nls-photos.n1 figure { grid-column: 1 / -1; grid-row: 1 / -1; }
.tpl-culture .nls-photos.n2 figure { grid-row: 1 / -1; }
.tpl-culture .nls-photos.n3 figure:first-child { grid-column: 1 / -1; } .tpl-culture .nls-photos.n3 figure:nth-child(n+2) { grid-column: span 3; }
.tpl-culture .nls-photos.n4 figure:nth-child(n+3) { grid-column: span 3; }
.tpl-culture .nls-text .en { border-left-color: var(--a); }

/* ---------- 13 กำหนดการ ---------- */
.tpl-schedule { --a: #4338ca; --a2: #1e1b4b; --g: #fbbf24; --soft: #eef2ff; }
.tpl-schedule .nls-main { display: grid; grid-template-columns: 1fr; gap: 22px; flex: 1; min-height: 0; }
.tpl-schedule .nls-main.wp { grid-template-columns: 1.25fr 1fr; }
.tpl-schedule .nls-photos { min-height: 0; grid-template: 1fr / 1fr; }
.nls-sched { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
.nls-sched li { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 18px; padding: 14px 20px; border-radius: 14px; background: var(--soft); border-left: 8px solid var(--a); font: 500 27px/1.35 'Sarabun', sans-serif; }
.nls-sched li:nth-child(even) { background: #fff; border: 2px solid #e0e7ff; border-left: 8px solid var(--g); }
.nls-sched .tm { font: 600 26px 'Kanit', sans-serif; color: var(--a); }
.nls-sched .ev small { display: block; color: #5b5f7a; font-size: 21px; }
.tpl-schedule .nls-text { grid-template-columns: 1fr 1fr; }

/* ---------- 14 สารจากผู้บริหาร ---------- */
.tpl-message { --a: #166534; --a2: #052e16; --g: #d4af37; --soft: #f0fdf4; }
.tpl-message .nls-main { display: grid; grid-template-columns: 420px 1fr; gap: 34px; flex: 1; min-height: 0; }
.tpl-message .nls-photos { min-height: 0; grid-template: 1fr / 1fr; }
.tpl-message .nls-photos figure { border-radius: 210px 210px 22px 22px; border: 8px solid var(--g); }
.tpl-message .nls-side { display: flex; flex-direction: column; gap: 22px; min-height: 0; overflow: hidden; }
.tpl-message .nls-quote { position: relative; flex: 1 1 auto; min-height: 0; padding: 34px 30px 20px 40px; border-radius: 22px; background: var(--soft); }
.tpl-message .nls-quote::before { content: "“"; position: absolute; left: 14px; top: -34px; font: 700 150px/1 Georgia, serif; color: var(--g); }
.tpl-message .nls-text { grid-template-columns: 1fr; gap: 16px; }
.tpl-message .nls-text p.th { font-size: 29px; }
.nls-sign { text-align: right; font: 400 23px/1.4 'Sarabun', sans-serif; color: #3f4f47; }
.nls-sign b { display: block; font: 600 31px 'Kanit', sans-serif; color: var(--a2); }
.nls-sign small { display: block; font-size: 19px; color: #6b7a73; }

/* ---------- 15 แนะนำบุคคล ---------- */
.tpl-spotlight { --a: #7e22ce; --a2: #3b0764; --g: #facc15; --soft: #faf5ff; }
.tpl-spotlight .nls-title { text-align: center; } .tpl-spotlight .nls-tag { align-self: center; }
.nls-spot { flex: 1; min-height: 0; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.nls-spot.n1 { grid-template-columns: minmax(0, 460px); justify-content: center; }
.nls-spot.n2 { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; }
.nls-spot.n4 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.nls-spot figure { margin: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--soft); border: 4px solid var(--g); box-shadow: 0 10px 22px rgba(59,7,100,.12); }
.nls-spot figure img { flex: 1 1 0; min-height: 0; }
.nls-spot figure.empty i { flex: 1; background: repeating-linear-gradient(45deg, #f3e8ff, #f3e8ff 12px, #faf5ff 12px, #faf5ff 24px); }
.nls-spot figcaption { flex: 0 0 auto; padding: 12px 12px 14px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--a2), var(--a)); font: 600 25px/1.3 'Kanit', sans-serif; }
.nls-spot figcaption small { display: block; font: 400 19px 'Sarabun', sans-serif; color: #f5e8ff; }
.tpl-spotlight .nls-text { flex: 0 0 auto; }

/* ---------- 16 ไว้อาลัย ---------- */
.tpl-condolence { --a: #3f3f46; --a2: #09090b; --g: #a1a1aa; --soft: #f4f4f5; }
.tpl-condolence .nls-head { background: linear-gradient(120deg, #09090b, #3f3f46); }
.tpl-condolence .nls-dbar { background: linear-gradient(90deg, #52525b, #a1a1aa 50%, #52525b); color: #fff; }
.tpl-condolence .nls-head .nls-brand .k { background: #e4e4e7; color: #18181b; }
.tpl-condolence .nls-execs .pic { border-color: #a1a1aa; }
.tpl-condolence .nls-execs figure.main figcaption b { color: #fff; }
.tpl-condolence .nls-body { align-items: center; text-align: center; }
.nls-mourn { text-align: center; }
.nls-mourn b { display: block; font: 600 60px 'Kanit', sans-serif; color: #18181b; }
.nls-mourn small { display: block; font: 500 24px 'Kanit', sans-serif; letter-spacing: .4em; color: #71717a; }
.nls-mourn svg { display: block; margin: 0 auto 8px; }
.tpl-condolence .nls-photos { flex: 1 1 auto; width: 640px; max-width: 100%; min-height: 0; grid-template: 1fr / 1fr; padding: 10px; background: #18181b; border-radius: 10px; }
.tpl-condolence .nls-photos figure { border-radius: 4px; }
.tpl-condolence .nls-photos img { filter: grayscale(1); }
.tpl-condolence .nls-title h2 { color: #18181b; font-size: 50px; } .tpl-condolence .nls-title h3 { color: #52525b; }
.tpl-condolence .nls-text { grid-template-columns: 1fr; gap: 12px; width: 100%; }
.tpl-condolence .nls-text p { text-align: center; }
.tpl-condolence .nls-text .en { border-left: 0; padding-left: 0; }
.tpl-condolence .nls-foot { background: #18181b; }

/* หน้าที่ไม่มีรูป: ให้ข้อความเต็มความกว้าง */
.nls .nls-main.nop { grid-template-columns: 1fr; }
.tpl-message .nls-main.nop .nls-quote { flex: 0 1 auto; }

/* ใช้แสดงย่อในหน้าเว็บ/Studio */
.nls-frame { display: block; position: relative; width: 100%; min-width: 0; aspect-ratio: 1240 / 1754; overflow: hidden; background: #fff; }
.nls-frame > .nls { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, .3)); }

/* ==========================================================================
   ตัวเลือกปรับแต่งหน้า (data.o) — ทับค่าของแม่แบบ
   ========================================================================== */
/* ชุดสี: หัวข้อใช้สีของชุดที่เลือก (แม่แบบบางแบบกำหนดสีหัวข้อไว้ตายตัว) */
.nls.th-o .nls-title h2 { color: var(--a2); }
.nls.th-o .nls-title h3 { color: var(--a); }
/* พื้นหลัง */
.nls.bg-soft { background: var(--soft); }
.nls.bg-dots { background: #fff radial-gradient(color-mix(in srgb, var(--a) 14%, transparent) 2px, transparent 2.5px) 0 0 / 30px 30px; }
.nls.bg-line { background: #fff repeating-linear-gradient(135deg, var(--soft) 0 18px, #fff 18px 36px); }
/* จัดวางรูปแบบยืดหยุ่น */
.nls .nls-photos.lay { display: flex; flex-direction: column; gap: 14px; grid-template: none; }
.nls .nls-photos.lay > .lr { display: flex; gap: 14px; min-height: 0; min-width: 0; }
.nls .nls-photos.lay > .lr > figure { flex: 1 1 0; min-width: 0; min-height: 0; grid-area: auto; }
.nls .nls-photos.lay.lc { flex-direction: row; }
.nls .nls-photos.lay.lc > .lr:last-child { flex-direction: column; }
/* กรอบรูป */
.nls.sh-square .nls-photos figure, .nls.sh-square .nls-story figure { border-radius: 0; }
.nls.sh-round .nls-photos figure, .nls.sh-round .nls-story figure { border-radius: 44px; }
.nls.sh-soft .nls-photos figure, .nls.sh-soft .nls-story figure { border-radius: 18px; box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.nls.sh-frame .nls-photos figure, .nls.sh-frame .nls-story figure { border-radius: 6px; border: 12px solid #fff; outline: 0; box-shadow: 0 8px 22px rgba(0,0,0,.25); transform: none; }
/* พื้นที่รูป */
.nls.ph-s .nls-photos { min-height: 0; flex: 0 0 400px; }
.nls.ph-l .nls-photos { min-height: 800px; }
/* สลับรูปกับข้อความ (ข้อความขึ้นก่อน / รูปไปอยู่ขวา) */
.nls.swap .nls-body > .nls-photos, .nls.swap .nls-main > .nls-photos { order: 2; }
.nls.swap .nls-body > .nls-cap, .nls.swap .nls-body > .nls-text { order: 1; }
/* จัดข้อความกึ่งกลาง */
.nls.al-c .nls-title, .nls.al-c .nls-text p, .nls.al-c .nls-cap p { text-align: center; }
.nls.al-c .nls-tag { align-self: center; }
.nls.al-c .nls-text .en { border-left: 0; padding-left: 0; }
/* ภาษาอังกฤษใต้ภาษาไทย (คอลัมน์เดียว) */
.nls.c1 .nls-text { grid-template-columns: 1fr; gap: 14px; }
.nls.c1 .nls-text .en { border-left: 0; padding-left: 0; border-top: 3px solid var(--g); padding-top: 12px; }
/* ซ่อนส่วนต่าง ๆ */
.nls.h-tag .nls-tag { display: none; }
.nls.h-entitle .nls-title h3, .nls.h-entitle .nls-story h4 { display: none; }
.nls.h-en .en, .nls.h-en .nls-title h3, .nls.h-en .nls-story h4, .nls.h-en .nls-list li small, .nls.h-en .nls-sched small,
.nls.h-en .nls-spot figcaption small, .nls.h-en .nls-sign small, .nls.h-en .nls-info em, .nls.h-en .nls-dbar span { display: none; }
.nls.h-en .nls-text { grid-template-columns: 1fr; }
.nls.h-dbar .nls-dbar, .nls.h-dbar .nls-date { display: none; }
.nls.h-foot .nls-foot { display: none; }
.nls.h-foot .nls-body { padding-bottom: 40px; }
.nls.h-banner .nls-congrats, .nls.h-banner .nls-banner, .nls.h-banner .nls-mourn, .nls.h-banner .nls-cover-m { display: none; }
/* ฟอนต์หัวข้อ */
.nls.hf-prompt .nls-body :is(h2, h3, h4, .nls-tag, .nls-congrats, .nls-banner b) { font-family: 'Prompt', sans-serif; }
.nls.hf-mitr .nls-body :is(h2, h3, h4, .nls-tag, .nls-congrats, .nls-banner b) { font-family: 'Mitr', sans-serif; }
.nls.hf-chakra .nls-body :is(h2, h3, h4, .nls-tag, .nls-congrats, .nls-banner b) { font-family: 'Chakra Petch', sans-serif; }
.nls.hf-sarabun .nls-body :is(h2, h3, h4, .nls-tag, .nls-congrats, .nls-banner b) { font-family: 'Sarabun', sans-serif; }
.nls.hf-pridi .nls-body :is(h2, h3, h4, .nls-tag, .nls-congrats, .nls-banner b) { font-family: 'Pridi', serif; }
.nls.hf-niramit .nls-body :is(h2, h3, h4, .nls-tag, .nls-congrats, .nls-banner b) { font-family: 'Niramit', sans-serif; }
/* ฟอนต์เนื้อหา */
.nls.bf-kanit .nls-body :is(p, li, figcaption, .nls-info b, .nls-info em) { font-family: 'Kanit', sans-serif; font-weight: 400; }
.nls.bf-prompt .nls-body :is(p, li, figcaption, .nls-info b, .nls-info em) { font-family: 'Prompt', sans-serif; font-weight: 400; }
.nls.bf-mitr .nls-body :is(p, li, figcaption, .nls-info b, .nls-info em) { font-family: 'Mitr', sans-serif; font-weight: 300; }
.nls.bf-chakra .nls-body :is(p, li, figcaption, .nls-info b, .nls-info em) { font-family: 'Chakra Petch', sans-serif; }
.nls.bf-pridi .nls-body :is(p, li, figcaption, .nls-info b, .nls-info em) { font-family: 'Pridi', serif; font-weight: 400; }
.nls.bf-niramit .nls-body :is(p, li, figcaption, .nls-info b, .nls-info em) { font-family: 'Niramit', sans-serif; }
/* ==========================================================================
   v3.3 สไตล์หน้าแบบโปสเตอร์ (o.style) · สไตล์หัวข้อ (o.tstyle) · ของตกแต่ง
   ========================================================================== */
.nls .nls-body { position: relative; }
.nls.st-card .nls-body, .nls.st-fun .nls-body, .nls.st-thai .nls-body, .nls.st-modern .nls-body { z-index: 1; }
.nls.st-card .nls-foot, .nls.st-fun .nls-foot, .nls.st-thai .nls-foot, .nls.st-modern .nls-foot { position: relative; z-index: 1; }
/* การ์ดบนพื้นสี */
.nls.st-card { background: linear-gradient(165deg, var(--soft) 0%, color-mix(in srgb, var(--a) 26%, #fff) 100%); }
.nls.st-card::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 96% 34%, color-mix(in srgb, var(--g) 55%, transparent) 0 130px, transparent 131px),
              radial-gradient(circle at 2% 84%, color-mix(in srgb, var(--a) 30%, transparent) 0 190px, transparent 191px),
              radial-gradient(circle at 88% 92%, color-mix(in srgb, var(--a2) 18%, transparent) 0 110px, transparent 111px); }
.nls.st-card .nls-body { margin: 28px 40px 0; padding: 40px 46px 38px; background: #fff; border-radius: 44px; box-shadow: 0 22px 44px -18px rgba(0,0,0,.4); }
/* สดใสน่ารัก */
.nls.st-fun { background-color: var(--soft);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--g) 70%, transparent) 0 8px, transparent 9px),
                    radial-gradient(circle, color-mix(in srgb, var(--a) 35%, transparent) 0 6px, transparent 7px),
                    radial-gradient(circle, color-mix(in srgb, var(--a2) 22%, transparent) 0 4px, transparent 5px);
  background-size: 150px 150px, 118px 118px, 86px 86px; background-position: 22px 30px, 80px 12px, 40px 70px; }
.nls.st-fun .nls-body { margin: 26px 34px 0; padding: 38px 42px 36px; background: #fff; border-radius: 50px;
  border: 5px dashed color-mix(in srgb, var(--a) 45%, #fff); box-shadow: 0 0 0 12px #fff, 0 24px 44px -18px rgba(0,0,0,.35); }
.nls.st-fun .nls-tag { border-radius: 999px; transform: rotate(-3deg); box-shadow: 0 6px 0 var(--g); padding: 6px 26px; }
.nls.st-fun .nls-list li { border-radius: 999px; }
/* ไทยทอง */
.nls.st-thai { background: linear-gradient(180deg, #fffaf0 0%, color-mix(in srgb, var(--g) 24%, #fff8e8) 100%); }
.nls.st-thai .nls-body { margin: 24px 32px 0; padding: 56px 62px 50px; border-radius: 10px; background: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 4px var(--g), inset 0 0 0 12px rgba(255,255,255,.6), inset 0 0 0 14px var(--g); }
.nls.st-thai .nls-body::before { content: ""; position: absolute; inset: 6px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, var(--g), color-mix(in srgb, var(--g) 50%, var(--a2)) 50%, var(--g));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' transform='rotate(0 60 60)'%3E%3Cpath d='M6 118V32Q6 6 32 6H118' stroke-width='5'/%3E%3Cpath d='M19 118V42Q19 19 42 19H118' stroke-width='2.5'/%3E%3Cpath d='M36 36c17 0 27 10 27 25c0 10-8 17-17 17c-8 0-13-6-13-12c0-5 4-9 9-9' stroke-width='3.5'/%3E%3Cpath d='M84 19c0 10 6 16 16 16M19 84c10 0 16 6 16 16' stroke-width='3'/%3E%3Cpath d='M60 6l6 6-6 6-6-6zM6 60l6 6-6 6-6-6z' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") top left / 120px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' transform='rotate(90 60 60)'%3E%3Cpath d='M6 118V32Q6 6 32 6H118' stroke-width='5'/%3E%3Cpath d='M19 118V42Q19 19 42 19H118' stroke-width='2.5'/%3E%3Cpath d='M36 36c17 0 27 10 27 25c0 10-8 17-17 17c-8 0-13-6-13-12c0-5 4-9 9-9' stroke-width='3.5'/%3E%3Cpath d='M84 19c0 10 6 16 16 16M19 84c10 0 16 6 16 16' stroke-width='3'/%3E%3Cpath d='M60 6l6 6-6 6-6-6zM6 60l6 6-6 6-6-6z' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") top right / 120px no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' transform='rotate(180 60 60)'%3E%3Cpath d='M6 118V32Q6 6 32 6H118' stroke-width='5'/%3E%3Cpath d='M19 118V42Q19 19 42 19H118' stroke-width='2.5'/%3E%3Cpath d='M36 36c17 0 27 10 27 25c0 10-8 17-17 17c-8 0-13-6-13-12c0-5 4-9 9-9' stroke-width='3.5'/%3E%3Cpath d='M84 19c0 10 6 16 16 16M19 84c10 0 16 6 16 16' stroke-width='3'/%3E%3Cpath d='M60 6l6 6-6 6-6-6zM6 60l6 6-6 6-6-6z' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") bottom right / 120px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' transform='rotate(270 60 60)'%3E%3Cpath d='M6 118V32Q6 6 32 6H118' stroke-width='5'/%3E%3Cpath d='M19 118V42Q19 19 42 19H118' stroke-width='2.5'/%3E%3Cpath d='M36 36c17 0 27 10 27 25c0 10-8 17-17 17c-8 0-13-6-13-12c0-5 4-9 9-9' stroke-width='3.5'/%3E%3Cpath d='M84 19c0 10 6 16 16 16M19 84c10 0 16 6 16 16' stroke-width='3'/%3E%3Cpath d='M60 6l6 6-6 6-6-6zM6 60l6 6-6 6-6-6z' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") bottom left / 120px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' transform='rotate(0 60 60)'%3E%3Cpath d='M6 118V32Q6 6 32 6H118' stroke-width='5'/%3E%3Cpath d='M19 118V42Q19 19 42 19H118' stroke-width='2.5'/%3E%3Cpath d='M36 36c17 0 27 10 27 25c0 10-8 17-17 17c-8 0-13-6-13-12c0-5 4-9 9-9' stroke-width='3.5'/%3E%3Cpath d='M84 19c0 10 6 16 16 16M19 84c10 0 16 6 16 16' stroke-width='3'/%3E%3Cpath d='M60 6l6 6-6 6-6-6zM6 60l6 6-6 6-6-6z' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") top left / 120px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' transform='rotate(90 60 60)'%3E%3Cpath d='M6 118V32Q6 6 32 6H118' stroke-width='5'/%3E%3Cpath d='M19 118V42Q19 19 42 19H118' stroke-width='2.5'/%3E%3Cpath d='M36 36c17 0 27 10 27 25c0 10-8 17-17 17c-8 0-13-6-13-12c0-5 4-9 9-9' stroke-width='3.5'/%3E%3Cpath d='M84 19c0 10 6 16 16 16M19 84c10 0 16 6 16 16' stroke-width='3'/%3E%3Cpath d='M60 6l6 6-6 6-6-6zM6 60l6 6-6 6-6-6z' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") top right / 120px no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' transform='rotate(180 60 60)'%3E%3Cpath d='M6 118V32Q6 6 32 6H118' stroke-width='5'/%3E%3Cpath d='M19 118V42Q19 19 42 19H118' stroke-width='2.5'/%3E%3Cpath d='M36 36c17 0 27 10 27 25c0 10-8 17-17 17c-8 0-13-6-13-12c0-5 4-9 9-9' stroke-width='3.5'/%3E%3Cpath d='M84 19c0 10 6 16 16 16M19 84c10 0 16 6 16 16' stroke-width='3'/%3E%3Cpath d='M60 6l6 6-6 6-6-6zM6 60l6 6-6 6-6-6z' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") bottom right / 120px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' transform='rotate(270 60 60)'%3E%3Cpath d='M6 118V32Q6 6 32 6H118' stroke-width='5'/%3E%3Cpath d='M19 118V42Q19 19 42 19H118' stroke-width='2.5'/%3E%3Cpath d='M36 36c17 0 27 10 27 25c0 10-8 17-17 17c-8 0-13-6-13-12c0-5 4-9 9-9' stroke-width='3.5'/%3E%3Cpath d='M84 19c0 10 6 16 16 16M19 84c10 0 16 6 16 16' stroke-width='3'/%3E%3Cpath d='M60 6l6 6-6 6-6-6zM6 60l6 6-6 6-6-6z' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E") bottom left / 120px no-repeat; }
.nls.st-thai .nls-title { text-align: center; }
.nls.st-thai .nls-title::after { content: "\2756  \2756  \2756"; display: block; margin-top: 6px; color: var(--g); font-size: 22px; letter-spacing: .5em; }
.nls.st-thai .nls-tag { align-self: center; background: linear-gradient(135deg, var(--a2), var(--a)); border: 2px solid var(--g); }
/* โมเดิร์น */
.nls.st-modern::before { content: ""; position: absolute; right: -200px; top: 420px; width: 660px; height: 660px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 0 200px, color-mix(in srgb, var(--a) 14%, transparent) 201px 100%); }
.nls.st-modern::after { content: ""; position: absolute; left: -150px; bottom: 70px; width: 600px; height: 330px; border-radius: 70px; transform: rotate(-14deg); pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--g) 45%, transparent), color-mix(in srgb, var(--g) 10%, transparent)); }
.nls.st-modern .nls-tag { border-radius: 0 18px 0 18px; }
.nls.st-modern .nls-text .en { border-left-width: 8px; }
/* สไตล์หัวข้อ */
.nls.ts-ribbon .nls-title h2 { display: inline-block; color: #fff; padding: 10px 46px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--a) 0%, var(--a2) 100%); box-shadow: 0 10px 0 -2px var(--g), 0 18px 28px -12px rgba(0,0,0,.4); }
.nls.ts-ribbon .nls-title h3 { margin-top: 18px; }
.nls.ts-outline .nls-title h2 { color: #fff; letter-spacing: .01em;
  text-shadow: 0 -5px 0 var(--a2), 5px 0 0 var(--a2), 0 5px 0 var(--a2), -5px 0 0 var(--a2), 4px 4px 0 var(--a2), -4px 4px 0 var(--a2), 4px -4px 0 var(--a2), -4px -4px 0 var(--a2),
               3px -5px 0 var(--a2), -3px -5px 0 var(--a2), 5px 3px 0 var(--a2), -5px 3px 0 var(--a2), 0 12px 0 var(--g), 5px 12px 0 var(--g), -5px 12px 0 var(--g); }
.nls.ts-outline .nls-title h3 { color: var(--a2); margin-top: 14px; }
.nls.ts-grad .nls-title h2 { background: linear-gradient(100deg, var(--a2) 0%, var(--a) 55%, color-mix(in srgb, var(--g) 80%, var(--a)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nls.st-thai.ts-grad .nls-title h2 { background: linear-gradient(180deg, #7a5200 0%, #c8961e 45%, #f1d27a 60%, #9a6a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nls.ts-under .nls-title h2 { display: inline; padding: 0 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--g) 65%, transparent) 58%, color-mix(in srgb, var(--g) 65%, transparent) 94%, transparent 94%); }
.nls.ts-under .nls-title h3 { margin-top: 12px; }
/* กรอบรูปเพิ่ม: เอียงแบบโพลารอยด์ · เงาบล็อกสี */
.nls.sh-tilt .nls-photos figure, .nls.sh-tilt .nls-story figure { border-radius: 8px; border: 12px solid #fff; box-shadow: 0 12px 24px -8px rgba(0,0,0,.35); transform: rotate(-1.6deg); overflow: hidden; clip-path: none; }
.nls.sh-tilt .nls-photos figure:nth-child(2n), .nls.sh-tilt .nls-photos .lr:nth-child(2n) figure:nth-child(2n+1) { transform: rotate(1.8deg); }
.nls.sh-tilt .nls-photos { padding: 8px; }
.nls.sh-offset .nls-photos figure, .nls.sh-offset .nls-story figure { border-radius: 16px; overflow: hidden; clip-path: none; box-shadow: 14px 14px 0 color-mix(in srgb, var(--g) 80%, transparent); }
.nls.sh-offset .nls-photos { padding: 0 14px 14px 0; }
.nls.sh-frame .nls-photos figure, .nls.sh-soft .nls-photos figure, .nls.sh-round .nls-photos figure, .nls.sh-square .nls-photos figure { clip-path: none; }
/* ของตกแต่ง: ประกายดาว */
.nls-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.nls-deco i { position: absolute; display: block; background: var(--g);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C54 34 66 46 100 50C66 54 54 66 50 100C46 66 34 54 0 50C34 46 46 34 50 0Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C54 34 66 46 100 50C66 54 54 66 50 100C46 66 34 54 0 50C34 46 46 34 50 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nls-deco i:nth-child(1) { width: 70px; height: 70px; right: 28px; top: 16px; }
.nls-deco i:nth-child(2) { width: 34px; height: 34px; right: 104px; top: 62px; background: var(--a); opacity: .7; }
.nls-deco i:nth-child(3) { width: 52px; height: 52px; left: 14px; bottom: 18px; }
.nls-deco i:nth-child(4) { width: 26px; height: 26px; left: 74px; bottom: 64px; background: var(--a); opacity: .6; }
.nls-body > :not(.nls-deco) { position: relative; z-index: 1; }/* v3.3 ปรับตำแหน่งประกายไม่ให้ทับข้อความ · เว้นขอบลายไทย */
.nls-deco i:nth-child(3) { left: -16px; bottom: auto; top: 46%; }
.nls-deco i:nth-child(4) { left: auto; right: -12px; bottom: auto; top: 62%; }
.nls.st-card .nls-deco i:nth-child(3), .nls.st-fun .nls-deco i:nth-child(3) { left: -36px; }
.nls.st-card .nls-deco i:nth-child(4), .nls.st-fun .nls-deco i:nth-child(4) { right: -30px; }
.nls.st-thai .nls-body { padding: 60px 86px 70px; }
/* ---------- QR ลิงก์ข่าวบนเว็บ (ท้ายแผ่น) ---------- */
.nls-foot.has-qr { height: 150px; padding-right: 26px; }
.nls-qr { gap: 16px !important; margin-left: 6px; }
.nls-qr em { font: 600 20px/1.25 'Kanit', sans-serif; font-style: normal; text-align: right; color: #fff; }
.nls-qr em small { display: block; font: 400 16px 'Sarabun', sans-serif; color: var(--g); }
.nls-qr img { width: 124px; height: 124px; padding: 7px; background: #fff; border-radius: 12px; image-rendering: pixelated; box-sizing: border-box; }
