/* ──────────────────────────────────────────────────────────────────────────
   read_news.php — หน้าอ่านข่าว (หน้าสาธารณะ)

   รอบ 24 ก.ย. 2569: ภาษาภาพเดียวกับ /zerodropout/ ชุดเดียวกับ css/tb1-class-advisors.css
       หัวหน้าน้ำเงินไล่เฉด พาดหัวตัวเซริฟ ป้ายวันที่แบบกระจกฝ้า
       การ์ดข่าวกับการ์ด "ในข่าวนี้" ลอยทับขอบล่างของหัวหน้า ทุกส่วนเป็นการ์ดมีแถบหัว
       ภาพปกไม่ถูกไล่เฉดทับ (ปัญหาของฉบับก่อน 23 ก.ย.) เพราะอยู่ในการ์ดใต้หัวหน้า

   คงจากรอบ 2–3 ที่ ผอ. ตรวจแล้ว:
       ขนาดพาดหัวตามความยาว · เนื้อข่าวกว้างเท่าภาพปก · คอลัมน์ขวา 17–22rem
       สองคอลัมน์ไหลแยกกัน (row-gap 0 แถวกลาง 1fr) · ข่าวล่าสุดเป็นการ์ดภาพ 16:10

   สี: ทุกตัวเป็น alias ที่ชี้ไป --tb1-* ของธีม สีแดงสงวนไว้ให้การลบข่าวอย่างเดียว

   ความเฉพาะ: หน้านี้แนบ css/tb1-display-scale.css (ผ่าน nvabar ใน <body> จึงโหลดทีหลังไฟล์นี้)
       - สีลิงก์โหมดมืดของไฟล์กลางมี specificity (0,1,1) กฎสีลิงก์ของหน้าจึงต้องมีคลาสสองชั้น
       - โหมดคอนทราสต์สูงของไฟล์กลางบังคับสีให้ main/section/article/aside และตัวอักษรทุกชนิด
         ด้วย !important หน้านี้เขียนเฉพาะสิ่งที่ไฟล์กลางไม่รู้จัก
       - ขนาดตัวอักษรเป็น rem ทั้งหมด ปุ่มปรับขนาดตัวอักษรของเว็บจึงมีผล
       ธีมบังคับ font-family บน p/span/div/li ด้วย !important ตัวเซริฟจึงอยู่ที่ h1–h3 และ b
   ★ ไม่มี opacity:0 เป็นสถานะพัก ที่ขยับได้มีแค่ตำแหน่ง (สคริปต์ติด nr-motion ก่อนเท่านั้น)
   ────────────────────────────────────────────────────────────────────────── */

.nr {
    --nr-paper: var(--tb1-surface, #ffffff);
    --nr-paper-alt: var(--tb1-surface-alt, #f1f5f9);
    --nr-ink: var(--tb1-ink-1, #0f172a);
    --nr-ink-2: var(--tb1-ink-2, #334155);
    --nr-muted: var(--tb1-ink-3, #5a697f);
    --nr-line: var(--tb1-border, #e2e8f0);
    --nr-line-bold: var(--tb1-border-bold, #cbd5e1);
    --nr-brand: var(--tb1-brand, #1d4ed8);
    --nr-brand-soft: color-mix(in srgb, var(--tb1-brand, #1d4ed8) 10%, var(--tb1-surface, #ffffff));
    --nr-brand-line: color-mix(in srgb, var(--tb1-brand, #1d4ed8) 35%, var(--tb1-border, #e2e8f0));
    --nr-spine: var(--tb1-brand-strong, #1e3a8a);
    /* โทเคน text-danger โหมดสว่าง (#DC2626) ได้ 4.41:1 บนพื้นรอง ไม่ผ่าน AA */
    --nr-warn: #b91c1c;
    --nr-on-warn: #ffffff;
    --nr-serif: var(--tb1-font-display, "Noto Serif Thai", serif);
    --nr-sans: var(--tb1-font-body, "Sarabun", system-ui, sans-serif);
    --nr-ease: cubic-bezier(.4, 0, .2, 1);
    --nr-r: 16px;
    --nr-gutter: var(--tb1-shell-gutter, 20px);
    --nr-gap: clamp(18px, 2.2vw, 26px);
    --nr-col-gap: clamp(22px, 2.4vw, 34px);
    --nr-shadow: 0 14px 32px -24px rgba(15, 23, 42, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
    --nr-shadow-float: 0 24px 48px -28px rgba(15, 23, 42, .62), inset 0 1px 0 rgba(255, 255, 255, .6);
    --nr-hero-a: color-mix(in srgb, var(--tb1-banner-1, #1d4ed8) 60%, var(--tb1-ink-surface, #0f172a));
    --nr-hero-b: var(--tb1-banner-1, #1d4ed8);
    --nr-hero-c: color-mix(in srgb, var(--tb1-banner-1, #1d4ed8) 78%, var(--tb1-accent-strong, #0284c7));

    color: var(--nr-ink);
    font-family: var(--nr-sans);
    font-size: 1rem;
    line-height: 1.6;
}

:is(html.dark, html.dark-mode, html[data-theme="dark"],
    body.dark-mode, body[data-theme="dark"]) .nr {
    --nr-warn: var(--tb1-text-danger, #fda4af);
    --nr-on-warn: var(--tb1-page, #0a1120);
    --nr-brand-soft: color-mix(in srgb, var(--tb1-brand, #60a5fa) 16%, var(--tb1-surface, #111c31));
    /* brand-strong โหมดมืดเป็นฟ้าอ่อน เส้นนำจะสว่างกว่าตัวอักษร ใช้พื้นแบนเนอร์แทน */
    --nr-spine: var(--tb1-banner-4, #2563eb);
    --nr-shadow: 0 14px 32px -22px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .055);
    --nr-shadow-float: 0 24px 48px -26px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .055);
    color-scheme: dark;
}

.nr *,
.nr *::before,
.nr *::after {
    box-sizing: border-box;
}

.nr :where(h1, h2, h3, h4, p, ol, ul, figure, blockquote) {
    margin: 0;
}

.nr :where(.nr-crumbs ol, .nr-sheet, .nr-recent-list, .nr-facts) {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* [hidden] ของ UA stylesheet มี specificity ศูนย์ จึงแพ้ display ที่หน้ากำหนดเอง */
.nr [hidden] {
    display: none !important;
}

.nr .nr-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.nr-icon {
    display: block;
    flex: none;
}

.nr :focus-visible {
    outline: 3px solid var(--nr-brand);
    outline-offset: 2px;
}

/* ลิงก์ต้องมีคลาสสองชั้น ไม่งั้นแพ้สีลิงก์โหมดมืดของไฟล์กลางที่โหลดทีหลัง */
.nr .nr-link {
    color: var(--nr-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.nr .nr-link:hover {
    text-decoration-thickness: 2px;
}

/* ── เปลือกหน้า ─────────────────────────────────────────────────────────── */
body.nr-page {
    margin: 0;
    background: var(--tb1-page, #f8fafc);
    color: var(--tb1-ink-1, #0f172a);
}

/* แถบเมนูติดขอบบนสูงราว 57px ช่องที่ไล่ Tab ไปถึงหรือที่กระโดดไปต้องไม่จมใต้แถบ */
html:has(body.nr-page) {
    scroll-padding-top: 4.5rem;
}

.nr-shell {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: var(--tb1-page-max-width, 1440px);
    margin-inline: auto;
    padding: 0 var(--tb1-shell-gutter, 20px) clamp(40px, 5vw, 72px);
}

/* skip link ใช้พื้นแบนเนอร์ซึ่งเข้มทั้งสองโหมด (0,2,1) เพื่อชนะสีลิงก์ของไฟล์กลาง */
body.nr-page a.nr-skip {
    position: absolute;
    top: 8px;
    left: -9999px;
    z-index: 2000;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--tb1-banner-1, #1d4ed8);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

body.nr-page a.nr-skip:focus {
    left: 12px;
    outline: 3px solid var(--tb1-brand-300, #93c5fd);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   หัวหน้า: ตำแหน่งของหน้า หมวดข่าว พาดหัว บรรทัดวันที่ และป้ายวันที่
   ═══════════════════════════════════════════════════════════════════════ */

.nr-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-inline: calc(-1 * var(--nr-gutter));
    padding: clamp(20px, 3vw, 36px) var(--nr-gutter) clamp(96px, 9vw, 124px);
    color: #ffffff;
    /* ★ สีพื้นทึบอยู่ใต้ไล่เฉด ตัวตรวจคอนทราสต์อ่านค่านี้ และเป็นสีที่เห็นจริงตรงกลางหัวหน้า */
    background-color: var(--nr-hero-b);
    background-image: linear-gradient(135deg, var(--nr-hero-a) 0%, var(--nr-hero-b) 52%, var(--nr-hero-c) 100%);
}

/* แสงนวลสองดวงกับตารางเส้นบาง ตกแต่งล้วน อยู่หลังตัวอักษร */
.nr-hero::before,
.nr-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.nr-hero::before {
    background-image:
        radial-gradient(circle at 14% 30%, rgba(255, 255, 255, .09) 0%, transparent 46%),
        radial-gradient(circle at 86% 22%, rgba(255, 255, 255, .08) 0%, transparent 40%);
}

.nr-hero::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, #000000 35%, transparent);
    mask-image: linear-gradient(180deg, #000000 35%, transparent);
}

.nr-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 20px var(--nr-col-gap);
}

.nr-hero-text {
    min-width: 0;
}

.nr-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem 0;
    font-size: .88rem;
}

/* ตัวคั่นเป็นเส้นเฉียงบาง ไม่ใช่ตัวอักษร "/" หรือ "·" */
.nr-crumbs li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: .8em;
    margin: 0 .7rem;
    vertical-align: -.05em;
    background: rgba(255, 255, 255, .5);
    transform: skewX(-18deg);
}

/* ลิงก์ที่ไม่ได้อยู่กลางประโยคต้องมีเป้ากดสูงอย่างน้อย 24px (WCAG 2.5.8)
   inline-block ไม่ใช่ inline-flex เพราะ flex ตัดช่องว่างรอบข้อความในลิงก์ทิ้ง */
.nr .nr-crumb {
    display: inline-block;
    min-height: 24px;
    padding-block: .1rem;
    color: #e0e7ff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .45);
    text-underline-offset: 3px;
}

.nr .nr-crumb:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.nr-kicker {
    margin-top: 12px;
}

/* ★ พื้นขาว .12 บนน้ำเงินหัวหน้า ตัวอักษรขาวยังได้ราว 5:1 (โฮเวอร์ .16 ยังเกิน 4.5) */
.nr .nr-kicker-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 4px 14px 4px 11px;
    font-size: .88rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color .2s var(--nr-ease), border-color .2s var(--nr-ease);
}

.nr .nr-kicker-link:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .55);
}

.nr-kicker-link .nr-icon {
    width: 16px;
    height: 16px;
}

/* ความยาวพาดหัวเฉลี่ยราว 100 ตัวอักษร ขนาดจึงลดตามความยาว (view ใส่ is-long / is-xlong) */
.nr-title {
    margin-top: 12px;
    font-family: var(--nr-serif);
    font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.55rem);
    font-weight: 600;
    line-height: 1.36;
    color: #ffffff;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.nr-title.is-long {
    font-size: clamp(1.5rem, 1.12rem + 1.35vw, 2.1rem);
    line-height: 1.4;
}

.nr-title.is-xlong {
    font-size: clamp(1.38rem, 1.08rem + 1vw, 1.85rem);
    line-height: 1.42;
}

.nr-title:focus {
    outline: none;
}

.nr-dateline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    margin-top: 14px;
    font-size: .95rem;
    color: #e0e7ff;
}

.nr-dl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nr-dl .nr-icon {
    width: 18px;
    height: 18px;
}

.nr-dl time {
    font-weight: 600;
    color: #ffffff;
}

.nr-hero-sub {
    margin-top: 12px;
    max-width: 46rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #e0e7ff;
}

.nr .nr-hero-link {
    display: inline-block;
    min-height: 24px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ป้ายวันที่แบบกระจกฝ้า (ตกแต่ง บรรทัดวันที่มีวันเดียวกันให้โปรแกรมอ่านหน้าจอแล้ว)
   จอกว้างอยู่เหนือการ์ด "ในข่าวนี้" พอดีคอลัมน์ขวา */
.nr-datetile {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   โครงสองคอลัมน์
   DOM เรียงตามลำดับที่อ่านบนจอแคบ: ในข่าวนี้ (แชร์) ตัวข่าว ข่าวก่อนหน้าถัดไป ข่าวล่าสุด
   ทั้งกริดยกขึ้นทับขอบล่างของหัวหน้า การ์ดแรกของแต่ละคอลัมน์จึงลอยอยู่บนไล่เฉด
   ═══════════════════════════════════════════════════════════════════════ */

.nr-grid {
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * clamp(64px, 6.5vw, 88px));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "actions"
        "main"
        "pager"
        "recent";
    gap: var(--nr-gap);
}

.nr-grid.is-missing {
    grid-template-areas: "recent";
}

.nr-actions {
    grid-area: actions;
}

.nr-main {
    grid-area: main;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--nr-gap);
}

.nr-main:focus {
    outline: none;
}

.nr-pager {
    grid-area: pager;
}

.nr-recent {
    grid-area: recent;
}

/* จอกว้าง: สองคอลัมน์ไหลแยกกัน ตัวข่าว (การ์ดข่าว คลิป ภาพกิจกรรม) คร่อมแถว 1–2
   การ์ด "ในข่าวนี้" อยู่แถว 1 ข่าวล่าสุดแถว 2 ซึ่งเป็น 1fr
   grid ข้ามรายการที่คร่อมแถวยืดหยุ่นตอนคำนวณแถว auto ตัวข่าวที่ยาวจึงยืดแถว 2 ข่าวล่าสุดไม่ถูกดันลง
   row-gap ต้องเป็น 0 ระยะห่างใช้ margin-top แทน */
@media (min-width: 1024px) {
    .nr-hero-in {
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    }

    .nr-datetile {
        justify-self: end;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 9.5rem;
        padding: 14px 24px 16px;
        color: #ffffff;
        background: rgba(2, 6, 23, .22);
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 20px;
        box-shadow: 0 20px 40px -24px rgba(2, 6, 23, .6), inset 0 1px 0 rgba(255, 255, 255, .15);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .nr-grid {
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
        grid-template-areas:
            "main actions"
            "main recent"
            "pager pager";
        grid-template-rows: auto 1fr auto;
        column-gap: var(--nr-col-gap);
        row-gap: 0;
    }

    .nr-grid.is-missing {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "recent";
        grid-template-rows: auto;
    }

    .nr-main,
    .nr-actions {
        align-self: start;
    }

    .nr-grid:not(.is-missing) .nr-recent {
        align-self: start;
        margin-top: var(--nr-gap);
    }

    .nr-pager {
        margin-top: calc(var(--nr-gap) + 8px);
    }
}

.nr-datetile-day {
    font-size: .9rem;
    color: #e0e7ff;
}

.nr-datetile-num {
    font-family: var(--nr-serif);
    font-size: 3.3rem;
    font-weight: 600;
    line-height: 1.08;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.nr-datetile-month {
    font-size: .95rem;
    font-weight: 600;
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════
   การ์ด
   ═══════════════════════════════════════════════════════════════════════ */

.nr-card {
    min-width: 0;
    background: var(--nr-paper);
    border: 1px solid var(--nr-line);
    border-radius: var(--nr-r);
    box-shadow: var(--nr-shadow);
}

/* สองใบแรกลอยอยู่บนไล่เฉด เงาลึกกว่า */
.nr-actions,
.nr-story {
    box-shadow: var(--nr-shadow-float);
}

.nr-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 14px 20px;
    background: linear-gradient(180deg, var(--nr-paper-alt), var(--nr-paper));
    border-bottom: 1px solid var(--nr-line);
    border-radius: var(--nr-r) var(--nr-r) 0 0;
}

.nr-card-ic {
    width: 34px;
    height: 34px;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    color: var(--nr-brand);
    background: var(--nr-brand-soft);
    border-radius: 10px;
}

.nr-card-ic .nr-icon {
    width: 18px;
    height: 18px;
}

.nr-card-title {
    font-family: var(--nr-serif);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--nr-ink);
}

.nr-card-count {
    padding: 2px 12px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--nr-brand);
    background: var(--nr-brand-soft);
    border-radius: 999px;
}

.nr-card-count b {
    font-family: var(--nr-serif);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.nr-card-note {
    margin-left: auto;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--nr-muted);
}

.nr-card-body {
    padding: 16px 20px 20px;
}

/* ── ปุ่ม ───────────────────────────────────────────────────────────────── */
.nr .nr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 2.5rem;
    padding: 0 1.05rem;
    color: var(--nr-brand);
    background: var(--nr-paper);
    border: 1px solid var(--nr-line-bold);
    border-radius: 999px;
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s var(--nr-ease), background-color .2s var(--nr-ease);
}

.nr .nr-btn:hover {
    border-color: var(--nr-brand);
    background: var(--nr-brand-soft);
}

.nr .nr-btn:active {
    transform: translateY(1px);
}

.nr-btn .nr-icon {
    width: 17px;
    height: 17px;
}

.nr .nr-btn-small {
    min-height: 2.25rem;
    padding: 0 .9rem;
    font-size: .86rem;
}

.nr .nr-btn-warn {
    color: var(--nr-warn);
}

.nr .nr-btn-warn:hover {
    border-color: var(--nr-warn);
    background: color-mix(in srgb, var(--nr-warn) 8%, var(--nr-paper));
}

.nr .nr-dialog .nr-btn-warn {
    color: var(--nr-on-warn);
    background: var(--nr-warn);
    border-color: var(--nr-warn);
}

.nr .nr-btn[disabled] {
    opacity: .65;
    cursor: progress;
}

/* ═══════════════════════════════════════════════════════════════════════
   ในข่าวนี้ แชร์ และเครื่องมือผู้ดูแล
   ═══════════════════════════════════════════════════════════════════════ */

.nr-actions {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.nr-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.nr-facts.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nr-facts > li {
    display: flex;
    min-width: 0;
}

/* ทั้งใบเป็นลิงก์ไปที่ส่วนนั้นของข่าว แบบการ์ดตัวเลขของหน้าชุดเดียวกัน */
.nr .nr-fact {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 14px 14px 12px;
    color: var(--nr-muted);
    text-decoration: none;
    background: var(--nr-paper);
    border: 1px solid var(--nr-line);
    border-radius: 14px;
    transition: border-color .25s var(--nr-ease), box-shadow .25s var(--nr-ease), translate .25s var(--nr-ease);
}

.nr .nr-fact:hover {
    border-color: var(--nr-brand-line);
    box-shadow: 0 16px 30px -22px rgba(15, 23, 42, .6);
    translate: 0 -2px;
}

.nr-fact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tb1-banner-1, #1d4ed8), var(--tb1-accent, #0ea5e9));
    transform-origin: left center;
}

.nr-fact-ic {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tb1-banner-1, #1d4ed8), var(--tb1-accent-strong, #0284c7));
    border-radius: 10px;
}

.nr-fact-ic .nr-icon {
    width: 19px;
    height: 19px;
}

/* ข่าวที่มีแค่ภาพหรือแค่คลิป: ป้ายเดียวเต็มแถว วางไอคอนซ้ายตัวเลขขวา ไม่เหลือที่ว่างครึ่งใบ */
.nr-facts:not(.is-2) .nr-fact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
}

.nr-facts:not(.is-2) .nr-fact-ic {
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    margin-bottom: 0;
    border-radius: 12px;
}

.nr-fact-k {
    font-size: .86rem;
    line-height: 1.45;
    color: var(--nr-muted);
}

.nr-fact-v {
    font-size: .9rem;
    color: var(--nr-muted);
}

.nr-fact-v b {
    font-family: var(--nr-serif);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--nr-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nr-share,
.nr-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nr-tools {
    padding-top: 14px;
    border-top: 1px dashed var(--nr-line-bold);
}

.nr-share-label,
.nr-tools-label {
    flex-basis: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--nr-muted);
}

.nr-share-label .nr-icon,
.nr-tools-label .nr-icon {
    width: 16px;
    height: 16px;
}

.nr-tools-label {
    color: #6d28d9;
}

:is(html.dark, html.dark-mode, html[data-theme="dark"],
    body.dark-mode, body[data-theme="dark"]) .nr .nr-tools-label {
    color: #c4b5fd;
}

.nr .nr-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px 0 5px;
    color: var(--nr-ink-2);
    background: var(--nr-paper);
    border: 1px solid var(--nr-line-bold);
    border-radius: 999px;
    font: inherit;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s var(--nr-ease), color .2s var(--nr-ease), background-color .2s var(--nr-ease);
}

.nr .nr-share-btn:hover {
    color: var(--nr-brand);
    border-color: var(--nr-brand);
    background: var(--nr-brand-soft);
}

/* วงกลมสีของแต่ละแพลตฟอร์ม ป้ายชื่อข้างวงกลมบอกความหมายอยู่แล้ว สีจึงเป็นของตกแต่ง */
.nr-share-btn i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: .88rem;
    color: #ffffff;
    background: var(--tb1-banner-1, #1d4ed8);
    border-radius: 50%;
}

.nr-share-btn.is-fb i {
    background: #1877f2;
}

.nr-share-btn.is-line i {
    background: #06a64a;
}

.nr-share-btn.is-x i {
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.nr .nr-share-btn.is-done {
    color: var(--nr-brand);
    border-color: var(--nr-brand);
}

/* ═══════════════════════════════════════════════════════════════════════
   การ์ดข่าว: ภาพปกกับเนื้อข่าวกว้างเท่ากัน ขอบซ้ายขวาตรงกัน (ผอ. ขอ รอบ 3)
   ═══════════════════════════════════════════════════════════════════════ */

.nr-story {
    padding: clamp(14px, 2vw, 26px);
}

/* ภาพปกขึ้นตามสัดส่วนจริงของภาพ ภาพแนวตั้งไม่ยืดจนเต็มจอ ไม่ตัดขอบ ไม่ทับด้วยไล่เฉด */
.nr-lead {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: var(--nr-paper-alt);
    overflow: hidden;
    text-align: center;
}

.nr-lead:last-child {
    margin-bottom: 0;
}

.nr-lead img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(78vh, 46rem);
    margin-inline: auto;
}

/* ภาพแนวนอนเต็มคอลัมน์ ขอบซ้ายขวาตรงกับเนื้อข่าว ไม่มีแถบเทาบาง ๆ สองข้าง */
.nr-lead.is-wide {
    background: none;
}

.nr-lead.is-wide img {
    width: 100%;
    max-height: none;
}

/* ── เนื้อข่าว ─────────────────────────────────────────────────────────── */
/* เนื้อข่าวกว้างเท่าภาพปก ขอบขวาตรงกัน (ผอ. ขอ) จอกว้างขยายตัวอักษรขึ้นเล็กน้อยให้บรรทัดยาวยังอ่านสบาย */
.nr-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--nr-ink);
    overflow-wrap: anywhere;
}

.nr-body::after {
    content: "";
    display: block;
    clear: both;
}

.nr-body :where(p, ul, ol, blockquote, figure, .nr-table, hr) {
    margin-block: 0 1.05em;
}

.nr-body > :last-child {
    margin-bottom: 0;
}

.nr-body :where(h2, h3, h4, h5, h6) {
    margin: 1.6em 0 .5em;
    font-family: var(--nr-serif);
    font-weight: 600;
    line-height: 1.4;
    color: var(--nr-ink);
}

.nr-body h2 {
    font-size: 1.4rem;
}

.nr-body h3 {
    font-size: 1.22rem;
}

.nr-body :where(h4, h5, h6) {
    font-size: 1.08rem;
}

.nr-body :where(ul, ol) {
    padding-left: 1.5rem;
}

.nr-body ul {
    list-style: disc;
}

.nr-body ol {
    list-style: decimal;
}

.nr-body li + li {
    margin-top: .3em;
}

.nr .nr-body a:not(.nr-embed) {
    color: var(--nr-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.nr .nr-body a:not(.nr-embed):hover {
    text-decoration-thickness: 2px;
}

.nr-body :where(strong, b) {
    font-weight: 700;
    color: var(--nr-ink);
}

.nr-body blockquote {
    padding: .2rem 0 .2rem 1.1rem;
    border-left: 3px solid var(--nr-spine);
    color: var(--nr-ink-2);
}

.nr-body hr {
    border: 0;
    border-top: 1px solid var(--nr-line);
}

.nr-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* รูปในเนื้อข่าวจาก CKEditor (ลอยซ้าย ลอยขวา ย่อขนาด) ย้ายมาจาก read-news.css เดิม */
.nr-body figure.image {
    display: table;
    max-width: 100%;
    margin: 1.4rem auto;
    text-align: center;
}

.nr-body figure.image img {
    margin: 0 auto;
}

.nr-body figure.image[style*="width"] img,
.nr-body figure.image_resized img {
    width: 100% !important;
    height: auto !important;
}

.nr-body figure.image-style-side:not([style*="width"]),
.nr-body figure.image-style-wrapText:not([style*="width"]),
.nr-body figure.image-style-align-left:not([style*="width"]),
.nr-body figure.image-style-align-right:not([style*="width"]),
.nr-body figure.image-style-block-align-left:not([style*="width"]),
.nr-body figure.image-style-block-align-right:not([style*="width"]),
.nr-body figure.image-style-align-block-left:not([style*="width"]),
.nr-body figure.image-style-align-block-right:not([style*="width"]) {
    width: min(52%, 560px);
}

.nr-body figure.image-style-align-center:not([style*="width"]),
.nr-body figure.image-style-breakText:not([style*="width"]) {
    width: 100%;
}

.nr-body figure.image-style-align-left,
.nr-body figure.image-style-wrapText,
.nr-body figure.image-style-block-align-left,
.nr-body figure.image-style-align-block-left {
    float: left;
    margin: .35rem 1.35rem 1rem 0;
}

.nr-body figure.image-style-align-right,
.nr-body figure.image-style-side,
.nr-body figure.image-style-block-align-right,
.nr-body figure.image-style-align-block-right {
    float: right;
    margin: .35rem 0 1rem 1.35rem;
}

.nr-body figure.image-style-align-center {
    margin-inline: auto;
}

.nr-body figcaption {
    margin-top: .5rem;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--nr-muted);
    text-align: center;
}

/* ตารางกว้างเลื่อนในกล่องของตัวเอง */
.nr-body .nr-table {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
}

.nr-body table {
    width: 100%;
    /* ตารางไม่บีบคอลัมน์จนตัดคำทีละพยางค์บนมือถือ ให้เลื่อนในกล่องแทน */
    min-width: 30rem;
    border-collapse: collapse;
    font-size: .95rem;
    line-height: 1.6;
}

.nr-body :where(th, td) {
    padding: .5rem .7rem;
    border: 1px solid var(--nr-line-bold);
    text-align: left;
    vertical-align: top;
}

.nr-body th {
    background: var(--nr-paper-alt);
    font-weight: 700;
}

.nr-body :where(th, td) > :where(p, ul, ol):last-child {
    margin-bottom: 0;
}

.nr-body :where(th, td) > :where(p, ul, ol) {
    margin-bottom: .5em;
}

/* โค้ดฝังที่แปลงเป็นลิงก์ (โพสต์ Facebook แผนที่ Google) */
.nr .nr-embed {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    max-width: 30rem;
    padding: .75rem 1rem;
    color: var(--nr-ink);
    background: var(--nr-paper-alt);
    border: 1px solid var(--nr-line);
    border-left: 3px solid var(--nr-brand);
    border-radius: 0 8px 8px 0;
    text-decoration: none;
    line-height: 1.5;
}

.nr-body > .nr-embed {
    margin-bottom: 1.05em;
}

.nr-embed-kind {
    font-size: .86rem;
    color: var(--nr-muted);
}

.nr .nr-embed-cta {
    font-weight: 700;
    color: var(--nr-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nr .nr-embed:hover .nr-embed-cta {
    text-decoration-thickness: 2px;
}

.nr-body .nr-video {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
}

.nr-body .nr-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   คลิปกิจกรรม: คลิปแนวตั้งกลางเวทีสีเข้ม
   ═══════════════════════════════════════════════════════════════════════ */

.nr-reel,
.nr-album {
    scroll-margin-top: 4.5rem;
}

.nr-stage {
    display: grid;
    place-items: center;
    padding: clamp(16px, 2.4vw, 28px);
    background:
        radial-gradient(circle at 50% 18%, rgba(59, 130, 246, .28) 0%, transparent 58%),
        linear-gradient(180deg, #0f172a, #020617);
    border-radius: 0 0 var(--nr-r) var(--nr-r);
}

.nr-reel-video {
    display: block;
    width: min(100%, 18rem);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #000000;
    border-radius: 12px;
    box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
}

/* ═══════════════════════════════════════════════════════════════════════
   แผ่นภาพกิจกรรม
   ภาพย่อสี่เหลี่ยมจัตุรัสเรียงตามลำดับ กวาดตาหาคนในภาพได้เร็ว ภาพเต็มอยู่หลังการกด
   ═══════════════════════════════════════════════════════════════════════ */

.nr-sheet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(8.5rem, 100%), 1fr));
    gap: 8px;
}

.nr .nr-shot {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--nr-paper-alt);
}

.nr-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--nr-ease);
}

/* แสงไล่จากล่างตอนชี้ บอกว่ากดได้ โดยไม่บังหน้าคนในภาพ */
.nr .nr-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(2, 6, 23, .38));
    opacity: 0;
    transition: opacity .3s var(--nr-ease);
    pointer-events: none;
}

.nr .nr-shot:hover img {
    transform: scale(1.06);
}

.nr .nr-shot:hover::after {
    opacity: 1;
}

.nr .nr-shot:focus-visible {
    outline-offset: 2px;
}

.nr-print-note {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   ข่าวก่อนหน้า ข่าวถัดไป
   ═══════════════════════════════════════════════════════════════════════ */

.nr-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--nr-gap);
}

.nr .nr-pager-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 16px 12px 12px;
    color: var(--nr-ink);
    text-decoration: none;
    background: var(--nr-paper);
    border: 1px solid var(--nr-line);
    border-radius: var(--nr-r);
    box-shadow: var(--nr-shadow);
    transition: border-color .25s var(--nr-ease), box-shadow .25s var(--nr-ease);
}

.nr .nr-pager-link.is-newer {
    grid-column: 2;
    flex-direction: row-reverse;
    padding: 12px 12px 12px 16px;
    text-align: right;
}

.nr .nr-pager-link:hover {
    border-color: var(--nr-brand-line);
    box-shadow: 0 22px 40px -26px rgba(15, 23, 42, .6);
}

.nr-pager-img {
    flex: none;
    display: block;
    width: 7.5rem;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--nr-paper-alt);
    border-radius: 10px;
}

.nr-pager-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nr-pager-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--nr-muted);
}

.nr-pager-link.is-newer .nr-pager-label {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.nr-pager-label .nr-icon {
    width: 16px;
    height: 16px;
    transition: translate .25s var(--nr-ease);
}

.nr .nr-pager-link.is-older:hover .nr-pager-label .nr-icon {
    translate: -3px 0;
}

.nr .nr-pager-link.is-newer:hover .nr-pager-label .nr-icon {
    translate: 3px 0;
}

/* พาดหัวยาวถึง 211 ตัวอักษร การ์ดจึงแสดงสามบรรทัดแรก (ข้อความเต็มยังอยู่ให้โปรแกรมอ่านหน้าจอ) */
.nr .nr-pager-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.5;
    color: var(--nr-brand);
    overflow-wrap: anywhere;
}

.nr .nr-pager-link:hover .nr-pager-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════
   ข่าวล่าสุด
   จอแคบ: รายการแนวนอน ภาพ 4:3 · จอกลางขึ้นไป: การ์ดภาพ 16:10 บน ชื่อข่าวล่าง
   ═══════════════════════════════════════════════════════════════════════ */

.nr-recent-item + .nr-recent-item {
    border-top: 1px solid var(--nr-line);
}

.nr .nr-recent-link {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
    padding: .8rem 0;
    color: var(--nr-ink);
    text-decoration: none;
}

.nr-recent-item:first-child .nr-recent-link {
    padding-top: 0;
}

.nr-recent-frame {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--nr-paper-alt);
}

.nr-recent-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .45s var(--nr-ease);
}

.nr-recent-img.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nr-muted);
}

.nr-recent-img.is-empty .nr-icon {
    width: 30px;
    height: 30px;
}

.nr-recent-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.nr-recent-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.nr .nr-recent-link:hover .nr-recent-title {
    color: var(--nr-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nr .nr-recent-link:hover .nr-recent-img:not(.is-empty) {
    transform: scale(1.05);
}

.nr-recent-date {
    font-size: .82rem;
    color: var(--nr-muted);
}

.nr-recent-all {
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--nr-line);
    font-size: .92rem;
}

.nr .nr-recent-all .nr-link {
    display: inline-block;
    min-height: 24px;
    padding-block: .1rem;
}

@media (min-width: 640px) {
    .nr-recent-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
        gap: 1.4rem 1.25rem;
    }

    .nr-recent-item + .nr-recent-item {
        border-top: 0;
    }

    .nr .nr-recent-link {
        grid-template-columns: minmax(0, 1fr);
        gap: .55rem;
        padding: 0;
    }

    .nr-recent-frame {
        border-radius: 10px;
    }

    .nr-recent-img {
        aspect-ratio: 16 / 10;
    }

    .nr-recent-title {
        font-size: .98rem;
    }
}

@media (min-width: 1024px) {
    .nr-grid:not(.is-missing) .nr-recent-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    /* หน้าไม่พบข่าว: ข่าวล่าสุด 6 เรื่องเป็นสองแถวแถวละสาม ไม่เหลือการ์ดเดียวค้างแถวล่าง */
    .nr-recent-wide .nr-recent-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nr-body {
        font-size: 1.16rem;
    }
}

/* ── ตัวดูภาพเต็มจอ ────────────────────────────────────────────────────
   พื้นมืดทุกโหมด เพราะเป็นที่ดูภาพ ภาพเลื่อนด้วย scroll-snap ของเบราว์เซอร์
   นิ้วปัดบนมือถือจึงลื่นตามระบบ และคีย์บอร์ดกับปุ่มใช้ทางเดียวกัน */
.nr-viewer {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    color: #f1f5f9;
    background: #070b14;
    overflow: hidden;
}

.nr-viewer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.nr-viewer::backdrop {
    background: #070b14;
}

.nr-viewer-bar,
.nr-viewer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    padding: .6rem max(1rem, env(safe-area-inset-left)) .6rem max(1rem, env(safe-area-inset-right));
}

.nr-viewer-bar {
    padding-top: max(.6rem, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.nr-viewer-nav {
    justify-content: center;
    padding-bottom: max(.7rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.nr-viewer-title {
    font-family: var(--nr-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
}

.nr-viewer-count {
    margin-right: auto;
    font-size: .92rem;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

.nr-viewer-count b {
    color: #ffffff;
}

.nr .nr-viewer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    color: #f8fafc;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.nr .nr-viewer-btn:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .5);
}

.nr .nr-viewer-btn[disabled] {
    opacity: .4;
    cursor: default;
}

.nr .nr-viewer-step {
    min-width: 8.5rem;
}

.nr-viewer :focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.nr-viewer-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.nr-viewer-track::-webkit-scrollbar {
    display: none;
}

.nr-viewer-slide {
    display: grid;
    /* แถวต้องเป็น 1fr ที่มีความสูงแน่นอน max-height:100% ของภาพจึงมีผล
       ถ้าเป็นแถว auto ภาพแนวตั้งจะสูงเกินจอแล้วถูกตัดท้าย */
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    flex: 0 0 100%;
    height: 100%;
    min-width: 0;
    padding: .75rem;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.nr-viewer-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
}

html.nr-viewer-open {
    overflow: hidden;
}

/* ── หน้าต่างยืนยันการลบ ───────────────────────────────────────────────── */
.nr-dialog {
    width: min(30rem, calc(100vw - 32px));
    padding: 1.4rem 1.4rem 1.1rem;
    color: var(--nr-ink);
    background: var(--nr-paper);
    border: 1px solid var(--nr-line-bold);
    border-radius: 14px;
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .55);
}

.nr-dialog::backdrop {
    background: rgba(15, 23, 42, .5);
}

.nr-dialog-title {
    font-family: var(--nr-serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.nr-dialog-what {
    margin-top: .7rem;
    padding: .5rem 0 .5rem .8rem;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--nr-warn);
    overflow-wrap: anywhere;
}

.nr-dialog-note {
    margin-top: .6rem;
    font-size: .92rem;
    color: var(--nr-ink-2);
}

.nr-dialog-error {
    margin-top: .7rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--nr-warn);
}

.nr-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1.1rem;
}


/* ═══════════════════════════════════════════════════════════════════════
   จอแคบ
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
    .nr-hero {
        padding-top: 16px;
    }

    .nr-dateline {
        gap: 4px 16px;
        font-size: .9rem;
    }

    .nr-body {
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .nr-body figure.image,
    .nr-body figure.image-style-align-left,
    .nr-body figure.image-style-align-right,
    .nr-body figure.image-style-side,
    .nr-body figure.image-style-wrapText,
    .nr-body figure.image-style-breakText,
    .nr-body figure.image-style-block-align-left,
    .nr-body figure.image-style-block-align-right,
    .nr-body figure.image-style-align-block-left,
    .nr-body figure.image-style-align-block-right {
        float: none;
        width: 100% !important;
        margin: 1.1rem auto;
    }

    /* มือถือ: ภาพปกชนขอบการ์ดเป็นหัวการ์ด ได้ภาพกว้างที่สุดเท่าที่จอให้ */
    .nr-story:not(.is-textonly) {
        padding-top: 0;
    }

    .nr-lead {
        margin-inline: calc(-1 * clamp(14px, 2vw, 26px));
        margin-bottom: 1.2rem;
        border-radius: var(--nr-r) var(--nr-r) 0 0;
    }

    .nr-lead:last-child {
        margin-bottom: calc(-1 * clamp(14px, 2vw, 26px));
        border-radius: var(--nr-r);
    }

    .nr-card-head,
    .nr-card-body {
        padding-inline: 14px;
    }

    .nr-card-note {
        margin-left: 0;
        flex-basis: 100%;
    }

    /* จอแคบใช้สี่คอลัมน์ ภาพ 85 รูปยังกวาดดูจบได้ในไม่กี่หน้าจอ */
    .nr-sheet {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .nr .nr-shot {
        border-radius: 6px;
    }

    .nr-pager {
        grid-template-columns: minmax(0, 1fr);
    }

    .nr .nr-pager-link.is-newer {
        grid-column: auto;
    }

    .nr-pager-img {
        width: 6rem;
    }

    .nr .nr-viewer-step {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .nr-facts.is-2 {
        gap: 8px;
    }

    .nr .nr-fact {
        padding: 12px 10px 10px;
    }

    .nr-fact-v b {
        font-size: 1.45rem;
    }
}

@media (max-width: 340px) {
    .nr-sheet {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   การเคลื่อนไหว
   ★ ทุกอย่างอยู่ใน prefers-reduced-motion: no-preference
   ★ สถานะ "รอเล่น" มีเฉพาะเมื่อสคริปต์ติดคลาส nr-motion ที่ .nr แล้วเท่านั้น
   ★ ที่รอเล่นได้มีแค่ตำแหน่ง (เลื่อนลง 26px ยังมองเห็นเต็มตา) และแถบสีบนการ์ด "ในข่าวนี้"
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
    .nr-hero-text > *,
    .nr-datetile {
        animation: nr-hero-rise .7s var(--nr-ease) both;
    }

    .nr-hero-text > :nth-child(2) { animation-delay: .05s; }
    .nr-hero-text > :nth-child(3) { animation-delay: .1s; }
    .nr-hero-text > :nth-child(4) { animation-delay: .15s; }
    .nr-datetile { animation-delay: .18s; }

    .nr-hero::before {
        animation: nr-glow 1.8s var(--nr-ease) both;
    }

    .nr-rise {
        transition-property: translate;
        transition-duration: .8s;
        transition-timing-function: var(--nr-ease);
        transition-delay: var(--nr-d, 0s);
    }

    .nr.nr-motion [data-nr-reveal].nr-rise:not(.is-in),
    .nr.nr-motion [data-nr-reveal]:not(.is-in) .nr-rise {
        translate: 0 26px;
    }

    .nr-actions { --nr-d: .08s; }
    .nr-pager-link.is-newer { --nr-d: .08s; }

    .nr-fact::before {
        transition: transform .9s var(--nr-ease) .3s;
    }

    .nr.nr-motion .nr-actions:not(.is-in) .nr-fact::before {
        transform: scaleX(0);
    }

    /* ภาพย่อยกขึ้นทีละรูปตามลำดับ (view จำกัดลำดับไว้ที่ 23 รูปหลังจากนั้นมาพร้อมกัน) */
    .nr-sheet > li {
        transition: translate .6s var(--nr-ease) calc(.12s + var(--i, 0) * .025s);
    }

    .nr.nr-motion .nr-album:not(.is-in) .nr-sheet > li {
        translate: 0 18px;
    }

    .nr-recent-item {
        transition: translate .6s var(--nr-ease) calc(.1s + var(--k, 0) * .06s);
    }

    .nr.nr-motion .nr-recent:not(.is-in) .nr-recent-item {
        translate: 0 18px;
    }
}

.nr.nr-arming *,
.nr.nr-arming *::before {
    transition: none !important;
}

@keyframes nr-hero-rise {
    from {
        transform: translateY(16px);
    }

    to {
        transform: none;
    }
}

@keyframes nr-glow {
    from {
        transform: scale(.9);
        opacity: .2;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nr *,
    .nr *::before,
    .nr *::after {
        animation: none !important;
        transition: none !important;
    }

    .nr .nr-shot:hover img,
    .nr .nr-recent-link:hover .nr-recent-img,
    .nr .nr-btn:active {
        transform: none;
    }

    .nr .nr-fact:hover,
    .nr .nr-pager-link:hover .nr-pager-label .nr-icon {
        translate: none;
    }

    .nr-viewer-track {
        scroll-behavior: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   โหมดคอนทราสต์สูง
   ไฟล์กลางบังคับพื้นดำและตัวอักษรขาวให้ main/section/article/aside และตัวอักษรส่วนใหญ่แล้ว
   ลิงก์เป็น #facc15 ปุ่มพื้นดำขอบเหลือง ที่นี่เขียนเฉพาะการ์ด เส้นขอบ แถบ และสิ่งที่ไฟล์กลางไม่รู้จัก
   ═══════════════════════════════════════════════════════════════════════ */

html.tb1-contrast-high body.nr-page {
    background: #000000;
    color: #ffffff;
}

html.tb1-contrast-high .nr {
    --nr-shadow: none;
    --nr-shadow-float: none;
    --nr-paper: #000000;
    --nr-brand: #facc15;
}

html.tb1-contrast-high .nr-hero {
    background: #000000;
}

html.tb1-contrast-high .nr-hero::before,
html.tb1-contrast-high .nr-hero::after,
html.tb1-contrast-high .nr .nr-shot::after,
html.tb1-contrast-high .nr-crumbs li + li::before {
    display: none;
}

html.tb1-contrast-high .nr-crumbs li + li {
    margin-left: .9rem;
}

html.tb1-contrast-high .nr-datetile {
    background: #000000;
    border-color: #ffffff;
    box-shadow: none;
}

html.tb1-contrast-high .nr-card,
html.tb1-contrast-high .nr-dialog,
html.tb1-contrast-high .nr-lead,
html.tb1-contrast-high .nr .nr-shot,
html.tb1-contrast-high .nr-recent-frame,
html.tb1-contrast-high .nr .nr-embed,
html.tb1-contrast-high .nr .nr-fact,
html.tb1-contrast-high .nr .nr-pager-link,
html.tb1-contrast-high .nr-card-head,
html.tb1-contrast-high .nr-card-ic,
html.tb1-contrast-high .nr-fact-ic,
html.tb1-contrast-high .nr-card-count,
html.tb1-contrast-high .nr-stage,
html.tb1-contrast-high .nr-body th {
    background: #000000;
    border-color: #ffffff;
    box-shadow: none;
}

html.tb1-contrast-high .nr-card-ic,
html.tb1-contrast-high .nr-fact-ic,
html.tb1-contrast-high .nr-card-count {
    color: #ffffff;
    border: 1px solid #ffffff;
}

html.tb1-contrast-high .nr-fact::before {
    background: #ffffff;
}

html.tb1-contrast-high .nr-tools,
html.tb1-contrast-high .nr-recent-all,
html.tb1-contrast-high .nr-recent-item,
html.tb1-contrast-high .nr-body :where(th, td) {
    border-color: #ffffff;
}

html.tb1-contrast-high .nr :where(time, b, figcaption, th, td, .nr-embed-kind),
html.tb1-contrast-high .nr-dialog-error {
    color: #ffffff;
}

html.tb1-contrast-high .nr .nr-btn,
html.tb1-contrast-high .nr .nr-share-btn,
html.tb1-contrast-high .nr .nr-link,
html.tb1-contrast-high .nr .nr-crumb,
html.tb1-contrast-high .nr .nr-hero-link,
html.tb1-contrast-high .nr .nr-kicker-link {
    color: #facc15;
    background: #000000;
    border-color: #facc15;
}

html.tb1-contrast-high .nr .nr-crumb {
    text-decoration-color: #facc15;
}

html.tb1-contrast-high .nr-share-btn i {
    color: #facc15;
    background: #000000;
    box-shadow: inset 0 0 0 1px #facc15;
}

html.tb1-contrast-high .nr .nr-fact:hover,
html.tb1-contrast-high .nr .nr-pager-link:hover,
html.tb1-contrast-high .nr .nr-share-btn:hover,
html.tb1-contrast-high .nr .nr-btn:hover {
    border-color: #facc15;
    box-shadow: inset 0 0 0 1px #facc15;
}

/* ปุ่มลบในหน้าต่างยืนยันกลับสีเป็นดำบนเหลือง
   ★ ไฟล์กลางบังคับปุ่มทุกตัวด้วย !important ถ้าไม่ !important ด้วยจะเหมือนปุ่มธรรมดา */
html.tb1-contrast-high .nr .nr-dialog .nr-btn-warn {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: #facc15 !important;
    border-color: #facc15 !important;
}

html.tb1-contrast-high .nr-dialog-what {
    box-shadow: inset 3px 0 0 #facc15;
}

html.tb1-contrast-high .nr-dialog-error {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

html.tb1-contrast-high .nr-body blockquote {
    border-left-color: #facc15;
}

html.tb1-contrast-high .nr :focus-visible,
html.tb1-contrast-high .nr-viewer :focus-visible {
    outline-color: #ffffff;
}

/* ตัวดูภาพ: พื้นดำ ปุ่มขอบเหลือง */
html.tb1-contrast-high .nr-viewer,
html.tb1-contrast-high .nr-viewer::backdrop {
    background: #000000;
}

html.tb1-contrast-high .nr-viewer-bar,
html.tb1-contrast-high .nr-viewer-nav {
    border-color: #facc15;
}

html.tb1-contrast-high .nr .nr-viewer-btn {
    color: #facc15;
    background: #000000;
    border: 2px solid #facc15;
}

html.tb1-contrast-high body.nr-page a.nr-skip {
    color: #000000;
    background: #facc15;
}

/* ═══════════════════════════════════════════════════════════════════════
   ฉบับพิมพ์: พิมพ์เป็นหน้าข่าว ภาพกิจกรรม 12 รูปแรก
   ═══════════════════════════════════════════════════════════════════════ */

@media print {
    body.nr-page {
        background: #ffffff;
    }

    .nr {
        --nr-ink: #000000;
        --nr-ink-2: #1f2937;
        --nr-muted: #374151;
        --nr-paper: #ffffff;
        --nr-line: #cbd5e1;
        color-scheme: light;
    }

    .nr *,
    .nr *::before,
    .nr *::after {
        transition: none !important;
        animation: none !important;
    }

    .nr .nr-rise,
    .nr [data-nr-reveal],
    .nr .nr-sheet > li,
    .nr .nr-recent-item {
        translate: none !important;
    }

    .nr-shell {
        max-width: none;
        padding: 0;
    }

    .nr-crumbs,
    .nr-datetile,
    .nr-actions,
    .nr-pager,
    .nr-recent,
    .nr-viewer,
    .nr-dialog,
    .nr-skip,
    .nr-reel,
    .nr-card-ic,
    .nr-hero::before,
    .nr-hero::after,
    body.nr-page .tb1-footer,
    body.nr-page footer {
        display: none !important;
    }

    .nr-hero {
        margin: 0;
        padding: 0 0 10px;
        color: #000000;
        background: #ffffff;
        border-bottom: 2px solid #000000;
    }

    .nr-hero-in {
        display: block;
    }

    .nr-kicker {
        margin-top: 0;
    }

    .nr .nr-kicker-link {
        min-height: 0;
        padding: 0;
        color: #000000;
        background: none;
        border: 0;
    }

    .nr-kicker-link .nr-icon {
        display: none;
    }

    .nr-title,
    .nr-dl,
    .nr-dl time,
    .nr-hero-sub {
        color: #000000;
    }

    .nr-title {
        margin-top: 4px;
    }

    .nr-grid {
        display: block;
        margin-top: 14px;
    }

    .nr-main {
        display: block;
    }

    .nr-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #ffffff;
    }

    .nr-story {
        padding: 0;
    }

    .nr-card-head {
        padding: 14px 0 6px;
        background: none;
        border-radius: 0;
        border-bottom: 1px solid #999999;
    }

    .nr-card-body {
        padding: 8px 0 0;
    }

    .nr-card-count {
        padding: 0;
        background: none;
    }

    .nr-lead {
        background: none;
    }

    .nr-lead img,
    .nr-lead.is-wide img {
        width: auto;
        max-height: 11cm;
    }

    .nr .nr-body a {
        color: #000000;
    }

    .nr-sheet {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nr-sheet li:nth-child(n + 13) {
        display: none;
    }

    .nr-sheet li {
        break-inside: avoid;
    }

    .nr-card-note {
        display: none !important;
    }

    .nr-print-note {
        display: block;
        margin-top: .5rem;
        font-size: .9rem;
    }

    .nr-title,
    .nr-card-head {
        break-after: avoid;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   หัวหน้าเต็มความกว้างจอ (ผอ. ขอ 24 ก.ย. 2569 ให้เหมือนหน้าทำเนียบบุคลากร)
   เปลือกหน้า (main.nr-shell) เคยกว้างสุด 1440px หัวหน้าจึงหยุดที่ 1440px และเห็นพื้นเทาสองข้างบนจอกว้าง
   ตอนนี้เปลือกกว้างเต็มจอ หัวหน้ายืดเต็มจอ (margin ลบ gutter เดิม) ส่วนตัวในของหัวหน้ากับกริดเนื้อหา
   ยังกว้างสุด 1400px เท่าเดิม ขอบซ้ายของพาดหัวกับการ์ดจึงยังตรงกัน
   ★ เฉพาะจอภาพ ฉบับพิมพ์ใช้กฎของตัวเอง
   ═══════════════════════════════════════════════════════════════════════ */

@media screen {
    .nr-shell {
        max-width: none;
    }

    .nr-hero-in,
    .nr-grid {
        max-width: calc(var(--tb1-page-max-width, 1440px) - 2 * var(--nr-gutter));
        margin-inline: auto;
    }
}
