/*
Theme Name: TIL
Theme URI: https://il-thailand.org
Author: มูลนิธิสภาศูนย์การดำรงชีวิตอิสระคนพิการประเทศไทย
Description: ธีมเว็บไซต์ TIL ออกแบบให้คนพิการเข้าถึงได้ มีปุ่มขยายตัวอักษร ความคมชัดสูง ภาพสไลด์ และโต๊ะกลมคณะผู้บริหาร
Version: 1.5.22
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: til
*/
/* Layout: แถบช่วยการเข้าถึง → หัวเว็บโลโก้+เมนู → ภาพปกหมุนเวียน 5 ภาพ → ข่าวปักหมุด → คำถามบ่อย → แรงบันดาลใจ → ภารกิจ → เครือข่าย → ติดต่อ */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #1C2826;
  --muted: #5A6965;
  --line: #E4DFD4;
  --jade: #1F5C55;
  --jade-deep: #143F3A;
  --jade-soft: #E2EDEA;
  --gold: #A9822F;
  --gold-soft: #F3EBD9;
  --on-jade: #FFFFFF;
  --red: #C1121F;
  --menu-bg: #EDF3F0;
  --display: "Noto Serif Thai", "Leelawadee UI", Georgia, serif;
  --body: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --scale: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101816; --surface: #17211F; --ink: #E9EFED; --muted: #A5B4B0; --line: #2A3835;
    --jade: #5FB3A6; --jade-deep: #0C2724; --jade-soft: #1C302C; --gold: #D9B566; --gold-soft: #2E2817; --on-jade: #0C1A18; --menu-bg: #1C2A27;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101816; --surface: #17211F; --ink: #E9EFED; --muted: #A5B4B0; --line: #2A3835;
  --jade: #5FB3A6; --jade-deep: #0C2724; --jade-soft: #1C302C; --gold: #D9B566; --gold-soft: #2E2817; --on-jade: #0C1A18; --menu-bg: #1C2A27;
  color-scheme: dark;
}
:root.hc {
  --bg: #000; --surface: #000; --ink: #FFF; --muted: #FFF; --line: #FFF;
  --jade: #FFE600; --jade-deep: #000; --jade-soft: #000; --gold: #FFE600; --gold-soft: #000; --on-jade: #000; --menu-bg: #000;
  color-scheme: dark;
}

html { font-size: calc(17px * var(--scale)); }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.75; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.35; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
a { color: var(--jade); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1340px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 0; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); }
.todo { background: var(--gold-soft); color: var(--gold); border-radius: 4px; padding: 0 6px; font-size: 0.85em; white-space: nowrap; }

/* แถบช่วยการเข้าถึง */
.a11y { background: #143F3A; color: #E9EFED; font-size: 0.8rem; border-bottom: 2px solid #C9A24C; }
:root.hc .a11y { border-bottom: 1px solid #FFF; }
.a11y .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; align-items: center; padding-block: 5px; }
.a11y .grp { display: flex; gap: 6px; align-items: center; }
.a11y button { font: inherit; color: inherit; background: none; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; min-height: 30px; padding: 0 10px; cursor: pointer; }
.a11y button[aria-pressed="true"] { background: #E9EFED; color: #143F3A; border-color: #E9EFED; }

/* หัวเว็บ */
header.top { background: #143F3A; }
header.top .wrap { display: flex; align-items: center; padding-block: 14px 4px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 60px; height: auto; border-radius: 6px; background: #FFF; padding: 3px; }
.brand strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.18rem; line-height: 1.4; color: #E7C77F; letter-spacing: 0.01em; }
.brand small { display: block; font-size: 0.74rem; letter-spacing: 0.08em; color: #CFE0DB; text-transform: uppercase; }
/* แถบเมนู แยกสีพื้นจากแถบชื่อ และติดอยู่ด้านบนเวลาเลื่อน */
nav.menu { background: var(--surface); border-block: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
nav.menu > .wrap > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0 4px; }
nav.menu li { position: relative; }
nav.menu a { display: block; white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 0.84rem; font-weight: 500; padding: 9px 12px; background: linear-gradient(var(--gold), var(--gold)) 12px 100% / 0 2px no-repeat; transition: background-size .25s, color .2s; }
nav.menu > .wrap > ul > li > a:hover, nav.menu > .wrap > ul > li > a:focus-visible { background-size: calc(100% - 24px) 2px; color: var(--jade); }
nav.menu > .wrap > ul > li:first-child > a { padding-left: 0; background-position: 0 100%; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.sub { list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 13rem; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 0 0 10px 10px; box-shadow: 0 12px 24px rgba(20,63,58,.12); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 7px 16px; }
.sub a:hover, .sub a:focus-visible { background: var(--jade-soft); color: var(--jade); }

/* ภาพปกหมุนเวียน */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); }
:root.hc .hero { background: #000; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; padding-block: 44px; }
.slides { position: relative; aspect-ratio: 3 / 2; max-width: 100%; max-height: 400px; width: 100%; justify-self: end; border-radius: 14px; overflow: hidden; background: #0C2724; box-shadow: 0 0 0 1px var(--line), 0 14px 32px rgba(20,63,58,.16); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { max-width: 36rem; color: var(--ink); min-width: 0; order: -1; }
.hero-card .eyebrow { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; font-weight: 600; }
.hero-card h1 { color: var(--ink); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.45; margin-top: -0.2em; }
.motto span { display: block; }
@media (min-width: 681px) { .motto span { white-space: nowrap; } }
.motto span + span { color: var(--jade); }
.hero-card p.lead { margin-top: 12px; color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.b { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 0.95rem; transition: transform .2s, box-shadow .2s; }
.b:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.b.gold { background: var(--jade); color: var(--on-jade); }
.b.ghost { border: 1.5px solid var(--jade); color: var(--jade); }
.dots { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 6px 8px; border-radius: 999px; background: rgba(0,0,0,.35); display: flex; gap: 8px; align-items: center; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #FFF; background: transparent; padding: 0; cursor: pointer; }
.dots button[aria-current="true"] { background: #E7C77F; border-color: #E7C77F; }
.dots .pause { width: auto; height: 26px; border-radius: 999px; padding: 0 10px; color: #FFF; font: inherit; font-size: 0.75rem; margin-left: 4px; background: transparent; }

section { padding-block: 60px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.sec-head .kicker { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 600; }
.sec-head h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin-top: 2px; }
.sec-head p { color: var(--muted); max-width: 34em; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }

/* ข่าว */
.news { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.pin { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.pin img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pin .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.badge { align-self: flex-start; font-size: 0.75rem; font-weight: 600; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 1px 10px; }
.meta { font-size: 0.85rem; color: var(--jade); font-weight: 600; }
.pin h3 { font-size: 1.3rem; }
.pin p, .item p { color: var(--muted); font-size: 0.93rem; }
.list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 4.2rem 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.item:hover { background: var(--jade-soft); }
.date { font-family: var(--display); text-align: center; line-height: 1.15; color: var(--jade); border-right: 1px solid var(--line); padding-right: 12px; }
.date b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.date span { font-size: 0.78rem; }
.item h4 { font-size: 1rem; font-family: var(--body); font-weight: 600; }

/* คำถามบ่อย */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20,63,58,.10); border-color: var(--jade); }
.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--jade-soft); color: var(--jade); }
.card:nth-child(even) .ic { background: var(--gold-soft); color: #E7C77F; letter-spacing: 0.01em; }
.ic svg { width: 21px; height: 21px; }
.card h3 { font-size: 1.05rem; }
.card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.card .go { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--jade); }
.card .go::after { content: " →"; display: inline-block; transition: transform .25s; }
.card:hover .go::after { transform: translateX(4px); }

/* แรงบันดาลใจ */
.insp { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 26px; align-items: start; }
.insp .idea { min-width: 0; }
.insp .idea h3 { font-size: 1.35rem; }
.insp .idea p { color: var(--muted); margin-top: 10px; }
.insp .idea blockquote { margin: 18px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.person { margin: 0; min-width: 0; }
.frame { padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 0 0 4px var(--gold-soft); }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 2px; }
.person figcaption { margin-top: 14px; }
.person figcaption b { font-family: var(--display); font-size: 1.05rem; display: block; }
.person figcaption span { color: var(--muted); font-size: 0.88rem; }

/* ภารกิจ */
.missions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; counter-reset: m; }
.missions li { border-top: 1px solid var(--line); padding: 18px 0 22px; min-width: 0; }
.missions h3 { font-size: 1.02rem; font-family: var(--body); font-weight: 600; }
.missions p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* เครือข่าย */
.net { display: grid; grid-template-columns: auto 1fr; gap: 28px 40px; align-items: center; background: var(--jade); color: var(--on-jade); border-radius: 20px; padding: 34px clamp(20px, 4vw, 44px); position: relative; overflow: hidden; }
.net::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid var(--gold); opacity: .55; }
.net .big { font-family: var(--display); font-size: 4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.net .big small { display: block; font-family: var(--body); font-size: 0.85rem; font-weight: 500; margin-top: 6px; opacity: .85; }
.net h2 { color: var(--on-jade); font-size: 1.4rem; }
.net p { margin-top: 6px; opacity: .9; max-width: 36em; position: relative; z-index: 1; }
.net .b { margin-top: 14px; background: var(--on-jade); color: var(--jade); position: relative; z-index: 1; }

/* ติดต่อ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
footer { background: var(--jade-deep); color: #D7E2DF; font-size: 0.85rem; }
:root.hc footer { border-top: 1px solid #FFF; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 22px; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .insp { grid-template-columns: 1fr 1fr; }
  .insp .idea { grid-column: 1 / -1; }
  .missions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  nav.menu > .wrap > ul { flex-wrap: wrap; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .news, .cards, .missions, .contact, .net { grid-template-columns: 1fr; }
  section { padding-block: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
/* โหมดตรวจงาน: แสดงรหัสอ้างอิงของแต่ละส่วนและรูป ใช้คุยกันตอนแก้งาน */
.review [data-ref]:not(.slide):not(.menu) { position: relative; }
.review [data-ref] { outline: 1.5px dashed rgba(193,18,31,.55); outline-offset: -2px; }
.review [data-ref]::before { content: attr(data-ref); position: absolute; top: 4px; left: 4px; z-index: 20; background: #C1121F; color: #FFF; font: 600 12px/1.7 var(--body); padding: 0 7px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.3); pointer-events: none; white-space: nowrap; }
.review-btn { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; font: 600 0.8rem/1 var(--body); background: #C1121F; color: #FFF; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.review-btn[aria-pressed="false"] { background: #555; }


/* ===== ความเป็นมา: ปุ่มสลับสองหน้า รูปประกอบ บทเรียน อ้างอิง ===== */
.seg { display: inline-flex; margin-top: 16px; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; flex-wrap: wrap; }
.seg a { padding: 6px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; transition: background .2s, color .2s; }
.seg a:hover { color: var(--jade); }
.seg a[aria-current="page"] { background: var(--jade); color: var(--on-jade); }
.fig { margin: 1.4em 0 0; }
.fig img { display: block; width: 100%; max-width: 30rem; border-radius: 10px; border: 1px solid var(--line); }
.fig.small img { max-width: 18rem; }
.fig.portrait img { max-width: 18rem; }
.fig figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.credit { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); opacity: .85; }
.credit a { color: inherit; }
.prose sup { font-size: 0.7em; line-height: 0; margin-left: 2px; }
.prose sup a { text-decoration: none; color: var(--jade); }
.prose sup a:hover { text-decoration: underline; }
.lessons { margin: 1.2em 0 0; padding: 0; list-style: none; counter-reset: ls; display: grid; gap: 10px; }
.lessons li { counter-increment: ls; display: grid; grid-template-columns: 2.2rem 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.lessons li::before { content: counter(ls); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: var(--display); font-weight: 700; }
.refs { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.refs h2 { font-size: 1.05rem; }
.refs ol { margin: 10px 0 0; padding-left: 1.6em; font-size: 0.85rem; color: var(--muted); display: grid; gap: 6px; }
.refs li { overflow-wrap: anywhere; scroll-margin-top: 70px; }
.refs li:target { background: var(--gold-soft); border-radius: 6px; }

/* ===== พื้นฐานของทุกหน้า (หน้าย่อยไม่มีโครงหน้าจากระบบ จึงตั้งเอง) ===== */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
nav.menu a[aria-current="page"] { background-size: calc(100% - 24px) 2px; color: var(--jade); }
nav.menu > .wrap > ul > li:first-child > a[aria-current="page"] { background-size: 100% 2px; }

/* ===== หัวหน้าภายใน: แถบบอกทาง ปุ่มย้อนกลับ ชื่อหน้า ===== */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 22px 30px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.82rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--jade); text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--jade); text-decoration: none; }
.back:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 10px; }
.page-head .intro { margin-top: 8px; color: var(--muted); max-width: 42em; }

/* ===== เนื้อหาบทความ + เมนูข้าง ===== */
.layout2 { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 48px; align-items: start; }
.prose { max-width: 44rem; min-width: 0; }
.prose > h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose > h2:first-child { margin-top: 0; }
.prose > p { margin-top: 0.9em; }
.side { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); border-left: 3px solid var(--gold); padding-left: 18px; }
.side h2 { font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; color: var(--gold); }
.side ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.side a { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.side a:hover { color: var(--jade); }
.side a[aria-current="page"] { color: var(--jade); font-weight: 600; }

.timeline { list-style: none; margin: 1.2em 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::after { content: ""; position: absolute; left: -7px; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--gold); }
.timeline b { display: block; font-family: var(--display); color: var(--jade); font-size: 1.05rem; }
.timeline p { margin-top: 2px; color: var(--muted); }
.pullquote { margin: 1.6em 0 0; padding: 18px 22px; background: var(--jade-soft); border-radius: 12px; font-family: var(--display); font-size: 1.12rem; font-weight: 600; line-height: 1.6; }
.pullquote small { display: block; margin-top: 6px; font-family: var(--body); font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.chips { list-style: none; margin: 1em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 0.88rem; }

/* ===== การ์ดหน้าย่อย ===== */
.subnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts3 div { border-left: 3px solid var(--gold); padding-left: 14px; }
.facts3 strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--jade); line-height: 1.15; font-variant-numeric: tabular-nums; }
.facts3 span { font-size: 0.88rem; color: var(--muted); }
.vision { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.vision blockquote { margin: 14px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.6; }
.vision figure { margin: 0; }
.vision figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; display: block; }
.vision figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ===== ขั้นวิวัฒนาการ: ลูกศรไล่จากซ้ายไปขวา ขั้นสุดท้ายเด่นที่สุด ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: st; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #FFF; font-size: 0.75rem; display: grid; place-items: center; }
.steps b { display: block; font-family: var(--display); font-size: 1.02rem; }
.steps span { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.steps li.now { background: var(--jade); border-color: var(--jade); }
.steps li.now b, .steps li.now span { color: var(--on-jade); }

/* ===== เรื่องเล่า จาก...สู่... ===== */
.stories { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 10px; }
.stories li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.stories .from { color: var(--muted); font-size: 0.92rem; }
.stories .arrow { color: var(--gold); font-weight: 700; }
.stories .to { font-weight: 600; color: var(--jade); font-size: 0.95rem; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.2em; }
.split2 > div { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.split2 h3 { font-size: 1.02rem; }
.split2 ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 0.92rem; }
.split2 li { margin-top: 4px; }

/* ===== คณะผู้บริหาร ===== */
.board-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 12px; margin-top: 14px; }
.member { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.member > div { min-width: 0; }
.member.lead { flex-direction: column; text-align: center; padding: 22px 16px; }
.avatar { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--jade-soft); color: var(--jade); font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.member.lead .avatar { width: 80px; height: 80px; font-size: 1.7rem; background: var(--jade); color: var(--on-jade); box-shadow: 0 0 0 4px var(--gold-soft); }
.member b { display: block; font-weight: 600; line-height: 1.45; }
.member .role { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.group-title { font-size: 1.1rem; margin-top: 36px; }
.note { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }

/* ===== ภารกิจและบริการ ===== */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 14px; margin-top: 1.2em; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.svc small { display: block; color: var(--gold); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; }
.svc h3 { font-size: 1rem; font-family: var(--body); font-weight: 600; }
.svc p { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.mission-list { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.mission-list li { border-top: 1px solid var(--line); padding: 16px 0 18px; min-width: 0; }
.mission-list h3 { font-size: 1rem; font-family: var(--body); font-weight: 600; }
.mission-list p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

/* ===== แรงบันดาลใจ ===== */
.persons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 1.4em; }
.persons .person p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

/* ===== ลิงก์อ่านต่อท้ายหน้า ===== */
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; }
.related h2 { font-size: 1.05rem; }
.related ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--jade); background: var(--surface); }
.related a:hover { border-color: var(--jade); }

/* ===== กล่องเกี่ยวกับเราในหน้าแรก ===== */
.teaser { display: grid; grid-template-columns: 1.1fr 2fr; gap: 32px; align-items: center; }
.teaser p { color: var(--muted); margin-top: 8px; }
.teaser .links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.teaser .links a { display: flex; justify-content: space-between; gap: 8px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s; }
.teaser .links a::after { content: "→"; color: var(--jade); }
.teaser .links a:hover { border-color: var(--jade); transform: translateX(3px); }

@media (max-width: 960px) {
  .subnav, .board-top, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2)::after { display: none; }
  .layout2, .teaser, .vision { grid-template-columns: 1fr; }
  .side { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 680px) {
  .subnav, .persons, .teaser .links, .facts3, .mission-list, .steps, .split2 { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -11px; transform: translateX(-50%); }
  .stories li { grid-template-columns: 1fr; gap: 2px; }
  .stories .arrow { display: none; }
}

/* แกลเลอรีภาพ (2.1.2) */
.gal-title { margin: 1.6em 0 0; font-size: 0.95rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 12px; margin: 0.6em 0 0; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gallery figcaption { margin-top: 6px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.gallery + .credit, .gallery ~ .credit { margin-top: 10px; }
/* ภาพคณะกรรมการ + รายชื่อแบบตัวอักษร (2.2) */
.board-pic { margin: 0; }
.board-pic img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.roster { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 24px; }
.roster li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.roster b { font-weight: 600; }
.roster span { color: var(--gold); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
/* กรอบไว้อาลัย (2.2) */
.memorial { position: relative; margin-top: 44px; display: flex; gap: 22px; align-items: center; max-width: 40rem; padding: 18px; border: 3px double var(--ink); border-radius: 6px; background: var(--surface); }
.memorial img { width: 150px; height: auto; flex: none; border: 1px solid var(--ink); border-radius: 4px; }
.memorial > div { min-width: 0; }
.mem-kicker { font-size: 0.85rem; letter-spacing: .08em; color: var(--muted); }
.mem-name { font-family: var(--display); font-size: 1.35rem; font-weight: 600; margin-top: 4px; }
.mem-role { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.ribbon-mourn { position: absolute; top: -10px; right: 18px; width: 30px; fill: var(--ink); }
@media (max-width: 520px) { .memorial { flex-direction: column; text-align: center; } }

/* โต๊ะกลมคณะผู้บริหาร (2.2): ทุกคนขนาดเท่ากัน เรียงตามตัวอักษร หมุนรอบละ 10 นาที */
.bd-head { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.bd-logo { width: 76px; height: auto; flex: none; border-radius: 4px; background: #fff; }
.bd-head h1 { margin-top: 0; }
.bd-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 6px 0 0; padding: 0; font-size: 0.9rem; color: var(--muted); }
.bd-legend li { display: flex; align-items: center; gap: 8px; }
.bd-legend i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--jade); }
.bd-legend i.adv { border-color: var(--gold); }
.bd-head .intro { margin-top: 4px; }
.rt { position: relative; width: min(940px, 100%); aspect-ratio: 1; margin: -5cqw auto 0; container-type: inline-size; }
.rt-top { position: absolute; inset: 22%; border-radius: 50%; background: var(--jade-soft); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.6cqw 4.2cqw; }
.rt-top h2 { font-size: max(2.1cqw, 0.85rem); color: var(--jade); margin: 0.6cqw 0 0.3cqw; }
.rt-vision { font-size: max(1.58cqw, 0.78rem); line-height: 1.55; max-width: 40cqw; }
.rt-mission { list-style: none; margin: 0; padding: 0; font-size: max(1.5cqw, 0.74rem); line-height: 1.45; max-width: 46cqw; }
.rt-mission li { margin: 0.25cqw 0; }
.rt-mission b { color: var(--gold); margin-right: 0.3em; }
.rt-seats { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; animation: rt-spin 600s linear infinite; }
.rt .seat { position: absolute; width: 15cqw; transform: translate(-50%, -4.3cqw); text-align: center; animation: rt-unspin 600s linear infinite; }
.rt .seat img { display: block; width: 8.6cqw; height: 8.6cqw; margin: 0 auto; border-radius: 50%; object-fit: cover; border: 0.45cqw solid var(--jade); background: var(--surface); }
.rt .seat.adv img { border-color: var(--gold); }
.rt .seat b { display: block; white-space: nowrap; font-weight: 600; font-size: max(1.45cqw, 0.72rem); line-height: 1.35; margin-top: 0.7cqw; }
.rt .seat span { display: block; font-size: max(1.3cqw, 0.68rem); color: var(--muted); line-height: 1.5; }
.rt .seat.adv span { color: var(--gold); font-weight: 600; }
.rt.paused .rt-seats, .rt.paused .seat, .rt:hover .rt-seats, .rt:hover .seat, .rt:focus-within .rt-seats, .rt:focus-within .seat { animation-play-state: paused; }
@keyframes rt-spin { to { transform: rotate(360deg); } }
@keyframes rt-unspin { from { transform: translate(-50%, -4.3cqw) rotate(0); } to { transform: translate(-50%, -4.3cqw) rotate(-360deg); } }
.rt-btn { display: block; margin: 16px auto 0; font: 600 0.88rem/1 var(--body); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--jade); background: var(--surface); color: var(--jade); cursor: pointer; }
.rt-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .rt-seats, .rt .seat { animation: none; } }
@media (max-width: 760px) {
  .rt { aspect-ratio: auto; container-type: normal; margin: 0; }
  .rt-top { position: static; border-radius: 18px; padding: 22px 18px; margin-bottom: 24px; }
  .rt-top h2 { font-size: 1.1rem; margin: 10px 0 4px; }
  .rt-vision { font-size: 0.95rem; max-width: none; }
  .rt-mission { font-size: 0.92rem; max-width: none; text-align: left; }
  .rt-mission li { margin: 6px 0; }
  .rt-seats { position: static; animation: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 12px; }
  .rt .seat { position: static; transform: none; width: auto; animation: none; }
  .rt .seat img { width: 96px; height: 96px; border-width: 4px; }
  .rt .seat b { font-size: 0.9rem; margin-top: 8px; }
  .rt .seat span { font-size: 0.82rem; }
  .rt-btn { display: none; }
}
@media (max-width: 520px) { .bd-head { flex-direction: column; align-items: flex-start; gap: 10px; } .bd-logo { width: 60px; } }
/* ภาพสไลด์หน้าแรก 13 ภาพ: จุดเล็กลงบนมือถือ ปุ่มหยุดภาพไม่ตัดบรรทัด */
.dots .pause { white-space: nowrap; flex: none; }
@media (max-width: 520px) { .dots { gap: 5px; right: 8px; bottom: 8px; padding: 5px 6px; } .dots button:not(.pause) { width: 10px; height: 10px; } .dots .pause { padding: 0 8px; margin-left: 2px; } }

/* ===== ส่วนเสริมสำหรับ WordPress ===== */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
body.admin-bar header.top { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.top { top: 0; } }
.entry img { max-width: 100%; height: auto; }
.entry > * + * { margin-top: 1em; }
.entry figure { margin: 1.2em 0; }
.entry figcaption, .wp-caption-text { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.alignleft { float: left; margin: 0.3em 1.2em 0.8em 0; }
.alignright { float: right; margin: 0.3em 0 0.8em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-button__link { display: inline-block; background: var(--jade); color: var(--on-jade); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.wp-block-file a:not(.wp-block-file__button) { font-weight: 600; }
.wp-block-file__button { margin-left: 10px; background: var(--jade); color: var(--on-jade) !important; border-radius: 999px; padding: 4px 12px; text-decoration: none; font-size: 0.85rem; }
.wp-block-embed iframe { max-width: 100%; }
.lead-img { margin: 0 0 1.4em; }
.lead-img img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

/* หน้ารวมข่าว */
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 20px; align-items: start; }
.news-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.news-card:hover { border-color: var(--jade); }
.news-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; flex: none; min-height: 0; background: var(--jade-soft); }
.news-card .body { display: block; padding: 14px 16px 18px; }
.news-card .meta { display: block; font-size: 0.82rem; color: var(--gold); }
.news-card h2 { font-size: 1.1rem; margin-top: 4px; }
.news-card p { margin-top: 6px; font-size: 0.92rem; color: var(--muted); }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-numbers { display: inline-block; min-width: 2.4em; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { background: var(--jade); color: var(--on-jade); border-color: var(--jade); }
.pin img, .news-card img, .lead-img img, .gallery img { height: auto; }
.pin h3 a { color: inherit; text-decoration: none; }
.pin h3 a:hover { text-decoration: underline; }

/* กลางโต๊ะกลม: รองรับข้อความที่แก้จากหลังบ้าน */
.rt-top > p { font-size: max(1.58cqw, 0.78rem); line-height: 1.55; max-width: 40cqw; margin: 0; }
.rt-top > ol, .rt-top > ul { list-style: none; margin: 0; padding: 0; font-size: max(1.5cqw, 0.74rem); line-height: 1.45; max-width: 46cqw; }
.rt-top > ol li, .rt-top > ul li { margin: 0.25cqw 0; }
.rt .seat .noface { display: block; width: 8.6cqw; height: 8.6cqw; margin: 0 auto; border-radius: 50%; border: 0.45cqw solid var(--jade); background: var(--jade-soft); }
.rt .seat.adv .noface { border-color: var(--gold); }
@media (max-width: 760px) {
  .rt-top > p { font-size: 0.95rem; max-width: none; }
  .rt-top > ol, .rt-top > ul { font-size: 0.92rem; max-width: none; text-align: left; }
  .rt-top > ol li, .rt-top > ul li { margin: 6px 0; }
  .rt .seat .noface { width: 96px; height: 96px; border-width: 4px; }
}
/* โหมดตรวจงาน: ป้ายรหัสต้องไม่ทำให้โต๊ะกลมเลื่อน */
.review .rt .rt-top[data-ref]:not(.x) { position: absolute; }
@media (max-width: 760px) { .review .rt .rt-top[data-ref]:not(.x) { position: static; } }
/* ปุ่มหลักในหน้าแรก (C3 C4): วางคู่กัน บนมือถือเรียงลง */
.hero-cta { display: flex; gap: 10px; margin-top: 22px; }
.cta { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; border: 1.5px solid var(--jade); transition: transform .15s ease, box-shadow .15s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 63, 58, .15); }
.cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.cta svg { flex: none; width: 26px; height: 26px; }
.cta .t { display: block; flex: 1; min-width: 0; }
.cta b { display: block; font-size: .9rem; line-height: 1.35; }
.cta small { display: block; font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; opacity: .85; margin-top: 1px; line-height: 1.3; }
.cta .go { width: 16px; height: 16px; }
.cta.primary { background: var(--jade); color: var(--on-jade); }
.cta.ghost { background: var(--surface); color: var(--gold); border-color: var(--gold); }
.cta.ghost b { color: var(--gold); }
@media (max-width: 560px) { .hero-cta { flex-direction: column; } .cta { flex: none; padding: 12px 14px; } .cta b { font-size: .98rem; } }
@media (min-width: 901px) { .cta { gap: 8px; padding: 10px 10px 10px 12px; } .cta svg { width: 24px; height: 24px; } .cta .go { width: 14px; height: 14px; } }
@media (min-width: 1200px) { .cta b { white-space: nowrap; font-size: .88rem; } }
@media (min-width: 901px) and (max-width: 1199px) { .cta .go { display: none; } .cta b { font-size: .86rem; } }
@media (min-width: 561px) and (max-width: 900px) { .cta small { display: none; } .cta svg { width: 22px; height: 22px; } .cta .go { display: none; } }
@media (prefers-reduced-motion: reduce) { .cta { transition: none; } .cta:hover { transform: none; } }

/* หน้าความหมายของการดำรงชีวิตอิสระ (2.5) */
.prose h3.principle { display: flex; align-items: baseline; gap: 10px; margin-top: 1.4em; font-size: 1.12rem; }
.prose h3.principle .n { flex: none; display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--jade); color: var(--on-jade); font-family: var(--body); font-size: .85rem; transform: translateY(-1px); }
.prose h3.principle small { font-family: var(--body); font-weight: 400; font-size: .8rem; color: var(--gold); }
.prose .il-list { list-style: none; padding: 0; margin: 1em 0 0; display: grid; gap: 10px; }
.prose .il-list li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; }
.prose .il-list b { color: var(--jade); }
/* ตารางจำนวนศูนย์ IL */
.tbl-wrap { overflow-x: auto; margin-top: 1em; }
.cil-table { width: 100%; max-width: 30rem; border-collapse: collapse; font-size: .95rem; }
.cil-table caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: 8px; }
.cil-table th, .cil-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cil-table thead th { background: var(--jade); color: var(--on-jade); font-weight: 600; }
.cil-table tbody th { font-weight: 600; }
.cil-table tbody th small { font-weight: 400; color: var(--muted); }
.cil-table td { white-space: nowrap; }
.cil-table td .todo { white-space: normal; }

/* ===================================================================
   รุ่น 1.3: หัวเว็บพื้นครีม + หน้าแรกภาพใหญ่จางเข้าหาตัวหนังสือ
   =================================================================== */
/* แถบช่วยการเข้าถึง: แถบเล็กด้านบนสุด */
.a11y { border-bottom: 0; }

/* หัวเว็บ: โลโก้ เมนู ปุ่มติดต่อเรา อยู่แถวเดียว ถ้าจอแคบเมนูลงไปแถวที่สอง */
header.top, .review header.top[data-ref] { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 12px; }

.brand strong { color: var(--jade-deep); font-size: 1.08rem; }
.brand small { color: var(--gold); font-weight: 600; letter-spacing: .12em; font-size: .68rem; }
.brand img { width: 54px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
nav.menu { background: none; border: 0; position: static; margin-left: auto; }
nav.menu > .wrap > ul { gap: 0 2px; }
nav.menu a { font-size: .92rem; font-weight: 600; color: var(--jade-deep); padding: 8px 10px; background-size: 0 3px; }
nav.menu > .wrap > ul > li > a:hover, nav.menu > .wrap > ul > li > a:focus-visible, nav.menu a[aria-current="page"] { background-size: calc(100% - 22px) 3px; }
nav.menu > .wrap > ul > li:first-child > a[aria-current="page"] { background-size: 100% 3px; }
nav.menu li:has(> a[href$="#contact"]) { display: none; } /* มีปุ่มติดต่อเราแล้ว */
.hd-contact { flex: none; border: 2px solid var(--gold); color: var(--jade-deep); border-radius: 999px; padding: 7px 18px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s; }
.hd-contact:hover { background: var(--gold-soft); }
:root.hc header.top { background: #000; border-color: #FFF; }
:root.hc .brand strong, :root.hc nav.menu a, :root.hc .hd-contact { color: #FFE600; }
@media (max-width: 1379px) { nav.menu { order: 3; flex-basis: 100%; margin-left: 0; } .hd-contact { margin-left: auto; } nav.menu > .wrap > ul > li:first-child > a { padding-left: 0; } }
@media (max-width: 900px) { header.top, .review header.top[data-ref] { position: static; } }
@media (max-width: 560px) { .brand strong { font-size: .95rem; } .brand small { display: none; } .brand img { width: 46px; } .hd-contact { padding: 6px 14px; font-size: .9rem; } }

/* หน้าแรก: ภาพใหญ่ฝั่งขวา ขอบซ้ายและขอบล่างจางเข้าหาพื้น */
.hero { position: relative; overflow: hidden; border-bottom: 0; min-height: clamp(540px, 74vh, 720px); }
.hero .slides { position: absolute; inset: 0 0 0 38%; width: auto; justify-self: stretch; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(#000 72%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(#000 72%, transparent); mask-composite: intersect; }
.hero .dots { right: 32px; bottom: 28px; }
.hero-in { position: relative; z-index: 2; padding-block: clamp(48px, 9vh, 100px) 64px; }
.hero .hero-card { max-width: 40rem; order: 0; }
.hero .motto { font-size: clamp(2.3rem, 4.6vw, 4.2rem); font-weight: 800; line-height: 1.3; color: var(--jade-deep); margin: 0; text-shadow: 0 0 22px var(--bg), 0 0 10px var(--bg), 0 0 4px var(--bg); }
.hero .motto span + span { color: var(--gold); font-size: .64em; margin-top: .15em; }
.hero .hero-card p.lead { font-size: 1.2rem; line-height: 1.75; color: var(--ink); margin-top: 18px; max-width: 34rem; text-shadow: 0 0 12px var(--bg), 0 0 6px var(--bg), 0 0 2px var(--bg); }
/* ปุ่ม 2 ปุ่มกว้างเท่ากัน และเส้นแบ่งด้านล่างอยู่ตรงกลางระหว่างปุ่มพอดี */
.hero-cta, .hero-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; max-width: 36rem; }
.hero-cta { margin-top: 30px; }
.hero .cta { display: flex; justify-content: center; align-items: center; gap: 8px; text-align: center; border-radius: 999px; padding: 14px 22px; font-size: 1.05rem; font-weight: 700; line-height: 1.4; border: 2px solid var(--jade-deep); }
.hero .cta.primary { background: var(--jade-deep); color: #FFF; }
.hero .cta.ghost { background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--jade-deep); }
.hero-links { margin-top: 40px; }
.hero-links a { display: block; text-decoration: none; color: var(--ink); padding: 2px 8px; position: relative; text-shadow: 0 0 10px var(--bg), 0 0 4px var(--bg); }
.hero-links a + a::before { content: ""; position: absolute; left: -9px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.hero-links b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--jade-deep); }
.hero-links span { color: var(--gold); font-weight: 600; font-size: .95rem; }
.hero-links a:hover b { text-decoration: underline; }
:root.hc .hero .cta.primary { background: #FFE600; color: #000; border-color: #FFE600; }
:root.hc .hero .cta.ghost { color: #FFE600; border-color: #FFE600; background: #000; }
:root.hc .hero-links b { color: #FFE600; }
:root.hc .hero-links a, :root.hc .hero .hero-card p.lead { text-shadow: 0 0 8px #000, 0 0 3px #000; }
:root.hc .hero .motto, :root.hc .hero .motto span + span { color: #FFF; text-shadow: 0 0 8px #000, 0 0 3px #000; }
:root.hc .hero .slides { opacity: .45; }
@media (min-width: 761px) { .hero .motto span { white-space: nowrap; } }
/* มือถือ: ภาพอยู่บน ตัวหนังสืออยู่ล่าง ไม่ซ้อนกัน อ่านง่าย */
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero .slides { position: relative; inset: auto; aspect-ratio: 4 / 3; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .hero .dots { top: calc(75vw - 52px); bottom: auto; right: 12px; }
  .hero-in { padding-block: 8px 40px; }
  .hero .motto span + span { font-size: .7em; }
  .hero .hero-card p.lead { font-size: 1.05rem; }
  .hero-cta { grid-template-columns: 1fr; row-gap: 12px; }
  .hero-links { margin-top: 28px; }
  .hero-links b { font-size: 1.1rem; }
  .hero-links span { font-size: .85rem; }
}

/* หน้าคณะผู้บริหาร: ตัวหนังสือด้านบนน้อยลง โต๊ะกลมขึ้นมาใกล้หัวหน้า */
.page-head.compact { border-bottom: 0; }
.page-head.compact .wrap { padding-block: 18px 0; }
.page-head.compact .bd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin: 0; }
.page-head.compact h1 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0; }
.page-head.compact .bd-legend { margin: 0; font-size: .85rem; }
.page-head.compact + section { padding-top: 4px; }
@media (min-width: 761px) and (max-width: 1200px) { .hero .slides { inset: 0 0 0 46%; } }
@media (max-width: 560px) { header.top .wrap { flex-wrap: wrap; } .brand { flex: 1 1 0; } nav.menu a { padding-inline: 8px; } }
/* มือถือ: รูปคณะผู้บริหารขึ้นก่อน วิสัยทัศน์ พันธกิจ ตามมาด้านล่าง */
@media (max-width: 760px) { .rt { display: flex; flex-direction: column; } .rt-seats { order: -1; } .rt-top, .review .rt .rt-top[data-ref]:not(.x) { margin: 28px 0 0; } }

/* ===================================================================
   รุ่น 1.4: หมวดสิทธิและสวัสดิการ
   =================================================================== */
.rights .rt-intro { max-width: 46rem; margin-bottom: 8px; }
.r-draftnote { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 6px; font-size: .95rem; }
.r-empty { background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: 12px; }
.r-tools { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 14px 0 10px; margin: 12px 0 8px; border-bottom: 1px solid var(--line); }
body.admin-bar .r-tools { top: 32px; }
@media (min-width: 901px) { .r-tools { top: 90px; } body.admin-bar .r-tools { top: 122px; } }
.r-lbl { display: block; font-weight: 700; color: var(--jade-deep); margin-bottom: 6px; }
.r-tools input[type=search] { width: 100%; max-width: 40rem; font: inherit; font-size: 1.05rem; padding: 12px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.r-tools input[type=search]:focus { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--jade); }
.r-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.r-filter button { font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--jade); background: var(--surface); color: var(--jade-deep); cursor: pointer; }
.r-filter button span { font-weight: 400; opacity: .75; margin-left: 2px; }
.r-filter button[aria-pressed="true"] { background: var(--jade-deep); color: #FFF; border-color: var(--jade-deep); }
.r-filter button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.r-count { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.r-gh { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 34px 0 14px; color: var(--jade-deep); }
.r-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.r-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.r-card h3 { font-size: 1.12rem; line-height: 1.45; margin: 4px 0 0; }
.r-card h3 a { color: var(--jade-deep); text-decoration: none; }
.r-card h3 a:hover { text-decoration: underline; }
.r-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; flex: 1; }
.r-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.r-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; line-height: 1.6; }
.r-badge.law { background: var(--jade-soft); color: var(--jade-deep); }
.r-badge.prog { background: #E8EEF7; color: #24406B; }
.r-badge.pend { background: #FFF1D6; color: #7A4A00; border: 1px solid #E5B95C; }
.r-badge.drf { background: #F1E4E4; color: #7A1F1F; }
.r-badge.cat { background: var(--surface); color: var(--jade-deep); border: 1px solid var(--line); }
.r-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.r-btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 8px 16px; border-radius: 999px; background: var(--jade-deep); color: #FFF; border: 2px solid var(--jade-deep); }
.r-btn.ghost { background: transparent; color: var(--jade-deep); }
.r-btn:hover { filter: brightness(1.15); }
.r-btn:focus-visible, .r-card a:focus-visible, .r-toc a:focus-visible, .r-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.r-none { padding: 20px 0; }
.r-disclaim { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 36px; padding-top: 14px; }
/* หน้ารายละเอียด */
.r-detail { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 40px; align-items: start; }
.r-sec, .prose section.r-sec { scroll-margin-top: 110px; margin: 0 0 28px; padding: 0; border: 0; background: none; }
section.rights { padding-top: 28px; }
.r-detail .prose { max-width: 44rem; }
.r-sec h2 { font-size: 1.25rem; color: var(--jade-deep); border-bottom: 2px solid var(--gold-soft); padding-bottom: 6px; }
.r-sec h3 { font-size: 1.02rem; margin-top: 16px; }
.r-sec ol li, .r-sec ul li { margin-bottom: 6px; }
.r-links { list-style: none; padding: 0; }
.r-links li { margin-bottom: 8px; }
.r-links a { font-weight: 600; }
.r-links small { display: block; color: var(--muted); font-size: .8rem; }
.r-pending { background: #FFF8E9; border: 1px solid #E5B95C; border-radius: 12px; padding: 4px 18px 8px; }
.r-pending h2 { border-color: #E5B95C; color: #7A4A00; }
.r-checked { font-size: .88rem; color: var(--muted); }
.r-toc { position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .92rem; }
.r-toc p { margin: 0 0 6px; }
.r-toc ul { list-style: none; padding: 0; margin: 0; }
.r-toc li { margin: 4px 0; }
.r-toc a { color: var(--jade-deep); text-decoration: none; }
.r-toc a:hover { text-decoration: underline; }
.page-head nav.crumbs { display: block; margin-bottom: 8px; }
.page-head .r-meta { margin-bottom: 6px; }
@media (max-width: 900px) { .r-detail { grid-template-columns: 1fr; } .r-toc { position: static; order: -1; } .r-tools { position: static; } }
:root.hc .r-card, :root.hc .r-toc, :root.hc .r-pending, :root.hc .r-empty { background: #000; border-color: #FFF; }
:root.hc .r-card h3 a, :root.hc .r-toc a, :root.hc .r-gh, :root.hc .r-sec h2 { color: #FFE600; }
:root.hc .r-card p { color: #FFF; }
:root.hc .r-btn { background: #FFE600; color: #000; border-color: #FFE600; }
:root.hc .r-btn.ghost, :root.hc .r-filter button { background: #000; color: #FFE600; border-color: #FFE600; }
:root.hc .r-filter button[aria-pressed="true"] { background: #FFE600; color: #000; }
:root.hc .r-tools { background: #000; }
.prose section.r-sec.r-pending { background: #FFF8E9; border: 1px solid #E5B95C; border-radius: 12px; padding: 4px 18px 8px; }
:root.hc .prose section.r-sec.r-pending { background: #000; border-color: #FFF; }
/* 1.4.1: หน้าสิทธิ ตัวหนังสือด้านบนน้อยลง เห็นตัวกรองทันที แถบค้นหาที่ค้างไว้บางลง */
body.page-template-template-rights header.top, body.single-til_right header.top { position: static; }
.page-head.compact .r-sub { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
section.rights { padding-top: 8px; }
.r-draftnote { font-size: .85rem; padding: 6px 12px; margin: 0 0 4px; }
.r-tools, body.admin-bar .r-tools { position: sticky; top: env(safe-area-inset-top, 0px); margin: 0; padding: 10px 0 8px; box-shadow: 0 6px 10px -8px rgba(0,0,0,.18); }
body.admin-bar .r-tools { top: 32px; }
@media (min-width: 901px) { .r-tools { top: env(safe-area-inset-top, 0px); } body.admin-bar .r-tools { top: 32px; } }
@media (max-width: 782px) { body.admin-bar .r-tools { top: 0; } }
.r-srow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.r-tools input[type=search] { flex: 1 1 18rem; max-width: 34rem; font-size: .95rem; padding: 8px 14px; border-width: 1.5px; }
.r-count { margin: 0; font-size: .82rem; white-space: nowrap; }
.r-filter { gap: 6px; margin-top: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.r-filter button { font-size: .8rem; padding: 4px 11px; white-space: nowrap; flex: none; }
.r-gh { margin: 22px 0 12px; scroll-margin-top: 110px; }
@media (min-width: 1100px) { .r-tools { display: flex; align-items: center; gap: 14px; } .r-srow { flex: 0 1 30rem; flex-wrap: nowrap; } .r-tools input[type=search] { flex: 1 1 auto; } .r-filter { flex: 1 1 0; margin-top: 0; min-width: 0; } }
@media (max-width: 900px) { .r-tools { position: sticky; } }
.r-total { font-size: 1.05rem; margin: 0 0 10px; }
.r-total b { color: var(--gold); font-size: 1.3rem; }
.r-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 4px 28px; }
.r-ig h3 { font-size: 1rem; color: var(--jade); margin: 12px 0 4px; }
.r-ig ol { margin: 0; padding-left: 1.9em; }
.r-ig li { margin-bottom: 4px; }
.r-ig li::marker { color: var(--gold); font-weight: 700; }
.prose section.r-sec.r-tips { background: var(--jade-soft); border-radius: 12px; padding: 4px 18px 8px; }
.r-tips h2 { border-color: transparent; }
:root.hc .prose section.r-sec.r-tips { background: #000; border: 1px solid #FFF; }
/* 1.4.2: หัวเว็บสีเขียวค้างไว้ด้านบนตอนเลื่อน แถบขนาดตัวอักษรย้ายลงใต้หัวเว็บ เป็นสีครีม */
header.top, .review header.top[data-ref], body.page-template-template-rights header.top, body.single-til_right header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--jade-deep); border-bottom: 3px solid var(--gold); }
body.admin-bar header.top { top: 32px; }
.brand strong { color: #F6EFDF; }
.brand small { color: #E2C27A; }
.brand img { box-shadow: none; }
nav.menu > .wrap > ul > li > a { color: #F6EFDF; background-image: linear-gradient(#E2C27A, #E2C27A); }
nav.menu > .wrap > ul > li > a:hover, nav.menu > .wrap > ul > li > a:focus-visible { color: #FFF; }
nav.menu .sub a { color: var(--jade-deep); }
nav.menu .caret, nav.menu > .wrap > ul > li > a svg { color: inherit; stroke: currentColor; }
.hd-contact { color: #F6EFDF; border-color: #E2C27A; }
.hd-contact:hover { background: rgba(255,255,255,.1); }
header.top :focus-visible { outline-color: #E2C27A; }
.a11y { background: var(--bg); color: var(--jade-deep); border-bottom: 1px solid var(--line); }
.a11y button { border-color: var(--jade); color: var(--jade-deep); }
.a11y button[aria-pressed="true"] { background: var(--jade-deep); color: #FFF; border-color: var(--jade-deep); }
@media (max-width: 900px) { header.top, .review header.top[data-ref], body.page-template-template-rights header.top, body.single-til_right header.top { position: static; } }
/* แถบค้นหาสิทธิ ค้างต่อใต้หัวเว็บ */
.r-tools { top: var(--hdr, 0px); }
body.admin-bar .r-tools { top: calc(var(--hdr, 0px) + 32px); }
@media (max-width: 900px) { .r-tools, body.admin-bar .r-tools { top: 0; } }
:root.hc header.top { background: #000; }
:root.hc .a11y { background: #000; color: #FFF; }
:root.hc .a11y button { color: #FFF; border-color: #FFF; }
:root.hc .a11y button[aria-pressed="true"] { background: #FFE600; color: #000; }
nav.menu > .wrap > ul > li > a[aria-current="page"], nav.menu > .wrap > ul > li.on > a, nav.menu > .wrap > ul > li > a.on { color: #E2C27A; }
/* 1.4.3: แถบเขียว = ชื่อมูลนิธิ + ปุ่มขนาดตัวอักษร (ขวา) / แถบครีม = เมนูหลัก (รวมติดต่อเรา) / ค้างไว้ทั้งสองแถบ */
header.top, .review header.top[data-ref], body.page-template-template-rights header.top, body.single-til_right header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top > .wrap { display: none; }
.hd-bar { background: var(--jade-deep); border-bottom: 3px solid var(--gold); }
.hd-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 10px; }
.hd-bar .a11y { background: none; border: 0; color: #F6EFDF; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .8rem; }
.hd-bar .a11y .grp { display: flex; gap: 6px; align-items: center; }
.hd-bar .a11y button { color: #F6EFDF; border: 1px solid rgba(246,239,223,.55); background: none; border-radius: 6px; min-height: 30px; padding: 0 10px; }
.hd-bar .a11y button[aria-pressed="true"] { background: #F6EFDF; color: var(--jade-deep); border-color: #F6EFDF; }
nav.menu { position: static; background: var(--bg); border: 0; margin: 0; flex-basis: auto; order: 0; }
nav.menu > .wrap > ul { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 0; }
nav.menu > .wrap > ul > li > a, nav.menu > .wrap > ul > li > a[aria-current="page"] { color: var(--jade-deep); background-image: linear-gradient(var(--gold), var(--gold)); padding: 12px 12px; }
nav.menu > .wrap > ul > li:first-child > a { padding-left: 0; }
nav.menu > .wrap > ul > li > a[aria-current="page"] { color: var(--jade); }
nav.menu li:has(> a[href$="#contact"]) { display: list-item; }
.hd-contact { display: none; }
@media (max-width: 900px) { header.top, .review header.top[data-ref], body.page-template-template-rights header.top, body.single-til_right header.top { position: static; } }
:root.hc header.top, :root.hc nav.menu { background: #000; }
:root.hc nav.menu > .wrap > ul > li > a { color: #FFE600; }
:root.hc .hd-bar .a11y button[aria-pressed="true"] { background: #FFE600; color: #000; }
nav.menu > .wrap > ul > li > a:hover, nav.menu > .wrap > ul > li > a:focus-visible { color: var(--jade); }
.r-tools { top: var(--hdr, 0px); }
/* 1.4.4: แถบเขียว 70 : แถบเมนู 30 ชื่อมูลนิธิใหญ่ขึ้น เมนูเล็กลง */
.hd-bar .wrap { padding-block: 16px; }
.hd-bar .brand img { width: 74px; }
.hd-bar .brand strong { font-size: clamp(1.15rem, 1.9vw, 1.65rem); line-height: 1.3; }
.hd-bar .brand small { font-size: .78rem; letter-spacing: .16em; margin-top: 2px; }
nav.menu > .wrap > ul > li > a, nav.menu > .wrap > ul > li > a[aria-current="page"] { font-size: .85rem; padding: 7px 11px; }
nav.menu > .wrap > ul > li:first-child > a { padding-left: 0; }
@media (max-width: 560px) { .hd-bar .brand img { width: 52px; } .hd-bar .wrap { padding-block: 10px; } }
header.top nav.menu > .wrap { display: block; padding-block: 2px; }
/* 1.5.1: หน้าแรกค้างทั้งแถบชื่อมูลนิธิและเมนู / หน้าอื่นค้างเฉพาะแถบเมนู */
body:not(.home) header.top, body:not(.home) .review header.top[data-ref] { display: contents; }
body:not(.home) nav.menu { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid var(--line); }
body.admin-bar:not(.home) nav.menu { top: 32px; }
@media (max-width: 900px) { body:not(.home) nav.menu { position: static; } }

/* ===== 1.5 แผนผังสิทธิ (หน้ารวมสิทธิ) ===== */
.r-map {
  --c-law:#7A3B5E; --t-law:#F6EDF2;
  --c-aid:#A9822F; --t-aid:#F8F1E1;
  --c-acc:#1F6F6A; --t-acc:#E4F0EE;
  --c-hlt:#4E7A2E; --t-hlt:#EEF3E6;
  --c-edu:#2F5D8A; --t-edu:#E8EFF7;
  --c-job:#B0602A; --t-job:#F8ECE2;
  position: relative; display: grid; gap: 26px 0;
  grid-template-columns: 1fr minmax(220px, 290px) 1fr;
  grid-template-rows: repeat(3, auto); align-items: center;
  margin: 8px 0 34px; padding: 26px 10px;
  background: radial-gradient(ellipse at 50% 50%, var(--surface) 0 40%, transparent 75%), var(--bg);
  border-radius: 22px;
}
.r-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.r-map-lines path { fill: none; stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .75; }
.r-map-lines .l-law{stroke:var(--c-law)} .r-map-lines .l-aid{stroke:var(--c-aid)} .r-map-lines .l-acc{stroke:var(--c-acc)}
.r-map-lines .l-hlt{stroke:var(--c-hlt)} .r-map-lines .l-edu{stroke:var(--c-edu)} .r-map-lines .l-job{stroke:var(--c-job)}

.r-map-hub {
  grid-column: 2; grid-row: 1 / 4; position: relative; z-index: 1; justify-self: center;
  width: min(100%, 270px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, var(--jade) 0, var(--jade-deep) 70%);
  border: 5px solid var(--gold); box-shadow: 0 0 0 8px var(--surface), 0 14px 34px rgba(20,63,58,.28);
  color: #fff;
}
.r-map-hub svg { width: 64px; height: 64px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.r-map-hub h2 { font-family: var(--display); color: #fff; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.3; margin: 0; }
.r-map-swash { display: block; width: 62%; height: 8px; margin-top: 12px; border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, #E9C978 70%, transparent); transform: rotate(-3deg); }

.r-branch { position: relative; z-index: 1; --c: var(--jade); --t: var(--surface);
  background: var(--t); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  border-radius: 18px; padding: 0 22px 16px 22px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.r-branch.p0,.r-branch.p1,.r-branch.p2 { grid-column: 1; margin-right: 34px; }
.r-branch.p3,.r-branch.p4,.r-branch.p5 { grid-column: 3; margin-left: 34px; }
.r-branch.p0,.r-branch.p3 { grid-row: 1; } .r-branch.p1,.r-branch.p4 { grid-row: 2; } .r-branch.p2,.r-branch.p5 { grid-row: 3; }
.r-branch.p1 { margin-right: 4px; } .r-branch.p4 { margin-left: 4px; }
.b-law{--c:var(--c-law);--t:var(--t-law)} .b-aid{--c:var(--c-aid);--t:var(--t-aid)} .b-acc{--c:var(--c-acc);--t:var(--t-acc)}
.b-hlt{--c:var(--c-hlt);--t:var(--t-hlt)} .b-edu{--c:var(--c-edu);--t:var(--t-edu)} .b-job{--c:var(--c-job);--t:var(--t-job)}
.r-branch h3 { margin: 0 -22px 10px 34px; padding: 11px 18px 11px 46px; background: var(--c); color: #fff;
  font-family: var(--display); font-size: clamp(1.02rem, 1.35vw, 1.25rem); line-height: 1.3;
  border-radius: 0 18px 0 22px; }
.r-ico { position: absolute; left: -14px; top: -14px; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c); border: 4px solid var(--surface);
  box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.r-ico svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r-branch ul { list-style: none; margin: 0 0 0 52px; padding: 0; }
.r-branch li { position: relative; padding: 3px 0 3px 18px; font-size: .98rem; line-height: 1.45; }
.r-branch li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 8px; background: var(--c); border-radius: 2px; }
.r-branch a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--c) 55%, transparent); }
.r-branch a:hover, .r-branch a:focus-visible { color: var(--c); border-bottom-style: solid; }

/* โหมดมืด / คอนทราสต์สูง */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .r-map { --t-law:#2A1E25; --t-aid:#2B2618; --t-acc:#17302D; --t-hlt:#1F2A17; --t-edu:#18242F; --t-job:#2E2118; } }
:root[data-theme="dark"] .r-map { --t-law:#2A1E25; --t-aid:#2B2618; --t-acc:#17302D; --t-hlt:#1F2A17; --t-edu:#18242F; --t-job:#2E2118; }
html.hc .r-map, body.hc .r-map, .hc .r-map { --c-law:#000; --c-aid:#000; --c-acc:#000; --c-hlt:#000; --c-edu:#000; --c-job:#000; --t-law:#000; --t-aid:#000; --t-acc:#000; --t-hlt:#000; --t-edu:#000; --t-job:#000; }
.hc .r-branch { border: 2px solid #FFE600; } .hc .r-branch h3, .hc .r-ico { border: 2px solid #FFE600; color: #FFE600; }
.hc .r-ico svg, .hc .r-map-hub svg { stroke: #FFE600; } .hc .r-map-lines path { stroke: #FFE600; }
.hc .r-branch a { color: #FFE600; } .hc .r-map-hub { background: #000; border-color: #FFE600; } .hc .r-map-hub h2 { color: #FFE600; }

/* แท็บเล็ต/มือถือ: วงกลมอยู่บน การ์ดเรียงลงมา */
@media (max-width: 1000px) {
  .r-map { grid-template-columns: 1fr 1fr; gap: 30px 22px; padding: 18px 4px; background: none; }
  .r-map-lines { display: none; }
  .r-map-hub { grid-column: 1 / -1; grid-row: auto; width: 200px; }
  .r-map-hub svg { width: 46px; height: 46px; }
  .r-branch.p0,.r-branch.p1,.r-branch.p2,.r-branch.p3,.r-branch.p4,.r-branch.p5 { grid-column: auto; grid-row: auto; margin: 0 0 0 12px; }
}
@media (max-width: 640px) { .r-map { grid-template-columns: 1fr; } }

/* 1.5 มือถือ: ชื่อมูลนิธิเต็มแถว ปุ่มปรับขนาดลงแถวล่าง */
.hd-bar .brand img { flex: none; }
@media (max-width: 700px) {
  .hd-bar .brand { flex: 1 1 100%; }
  .hd-bar .brand strong { font-size: 1.05rem; }
  .hd-bar .a11y { width: 100%; justify-content: space-between; }
}

/* ===== 1.5 กระดานไม้ก๊อก (กลุ่มสิทธิแต่ละหมวด) ===== */
.r-board {
  position: relative; margin: 0 0 34px; padding: 26px clamp(14px, 3vw, 40px) 36px;
  border: 14px solid #B07A45; border-radius: 10px;
  border-image: linear-gradient(135deg, #C99460, #9C6534 40%, #C48D57 60%, #8E5A2D) 1;
  box-shadow: inset 0 0 22px rgba(70,35,10,.45), 0 10px 26px rgba(60,35,15,.25);
  background-color: #C28A55;
  background-image:
    radial-gradient(rgba(90,50,20,.35) 1px, transparent 1.6px),
    radial-gradient(rgba(255,230,190,.28) 1px, transparent 1.5px),
    radial-gradient(rgba(120,70,30,.25) 1.4px, transparent 2px);
  background-size: 7px 7px, 11px 11px, 17px 17px;
  background-position: 0 0, 3px 5px, 8px 2px;
}
.r-board .r-gh {
  position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto 30px;
  padding: 14px 44px 18px; background: #FFFDF8; color: var(--jade-deep);
  font-family: "Itim", var(--display); font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.3; text-align: center;
  transform: rotate(-1deg); box-shadow: 0 4px 10px rgba(0,0,0,.22);
  clip-path: polygon(0 4%, 6% 0, 14% 3%, 30% 0, 52% 2%, 70% 0, 88% 3%, 100% 0, 99% 50%, 100% 96%, 84% 100%, 62% 97%, 40% 100%, 20% 97%, 4% 100%, 1% 60%);
}
.r-board .r-gh span { background: linear-gradient(transparent 82%, color-mix(in srgb, var(--gold) 70%, #F2C230) 82% 94%, transparent 94%); padding: 0 4px; }
.r-board .r-gh::before, .r-board .r-gh::after { content: ""; position: absolute; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8A8A, #C8102E 60%, #7A0A1C); box-shadow: 2px 3px 3px rgba(0,0,0,.3); }
.r-board .r-gh::before { left: 12px; } .r-board .r-gh::after { right: 12px; }

.r-board .r-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 30px; list-style: none; margin: 0; padding: 0; }
.r-note {
  --paper: #FCEB9A; --pin: #D7263D;
  position: relative; min-height: 190px; padding: 34px 22px 18px; background: var(--paper);
  border: 0; border-radius: 2px 2px 14px 2px; box-shadow: 0 2px 2px rgba(0,0,0,.12), 0 10px 18px rgba(50,25,5,.28);
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.r-note.n0 { --paper:#FCEB9A; --pin:#D7263D; transform: rotate(-1.6deg); }
.r-note.n1 { --paper:#BDE7F6; --pin:#1D6FD1; transform: rotate(1deg); }
.r-note.n2 { --paper:#F9C7D9; --pin:#1E9E4A; transform: rotate(1.8deg); }
.r-note.n3 { --paper:#CDEBB0; --pin:#E8B10C; transform: rotate(-1deg); }
.r-note.n4 { --paper:#DCCDF3; --pin:#7B2FBF; transform: rotate(1.2deg); }
.r-note.n5 { --paper:#FFD6B0; --pin:#D7263D; transform: rotate(-1.8deg); }
.r-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--paper) 70%, #fff) 50%, transparent 50%); border-top-left-radius: 6px;
  box-shadow: -2px -2px 3px rgba(0,0,0,.08); }
.r-pin { position: absolute; top: -10px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pin) 45%, #fff), var(--pin) 55%, color-mix(in srgb, var(--pin) 60%, #000));
  box-shadow: 3px 5px 4px rgba(0,0,0,.32); z-index: 2; }
.r-pin::after { content: ""; position: absolute; left: 11px; top: 21px; width: 2px; height: 9px; background: #8a8a8a; transform: rotate(-12deg); }
.r-note h3 { margin: 0 0 8px; font-family: "Itim", var(--display); font-size: clamp(1.15rem, 1.6vw, 1.42rem); line-height: 1.4; font-weight: 600; }
.r-note h3 a { color: #1D2A35; text-decoration: none; }
.r-note h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.r-note:hover, .r-note:focus-within { transform: rotate(0) translateY(-4px) scale(1.02); box-shadow: 0 4px 4px rgba(0,0,0,.12), 0 18px 28px rgba(50,25,5,.32); z-index: 3; }
.r-note:focus-within { outline: 4px solid var(--jade-deep); outline-offset: 4px; }
.r-note h3 a:focus-visible { outline: none; }
.r-nico { margin-top: auto; align-self: flex-end; width: 78px; height: 78px; }
.r-nico svg { width: 100%; height: 100%; fill: none; stroke: #1D2A35; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r-note .r-badge.pend { position: absolute; left: 18px; bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .r-note { transition: none; } }
@media (max-width: 640px) { .r-board { border-width: 9px; padding: 20px 12px 26px; } .r-board .r-cards { gap: 26px; } .r-note { min-height: 0; } .r-nico { width: 58px; height: 58px; } }

/* มืด / คอนทราสต์สูง */
:root[data-theme="dark"] .r-board { filter: brightness(.82); }
:root.hc .r-board { background: #000; border: 3px solid #FFE600; border-image: none; box-shadow: none; }
:root.hc .r-board .r-gh { background: #000; color: #FFE600; border: 2px solid #FFE600; clip-path: none; transform: none; }
:root.hc .r-board .r-gh span { background: none; }
:root.hc .r-note { --paper: #000; background: #000; border: 2px solid #FFE600; transform: none; box-shadow: none; }
:root.hc .r-note h3 a { color: #FFE600; } :root.hc .r-nico svg { stroke: #FFE600; } :root.hc .r-note::after { display: none; }
.r-board .r-cards { display: flex; flex-wrap: wrap; justify-content: center; }
.r-board .r-note { flex: 0 1 calc((100% - 60px) / 3); min-width: 240px; }
@media (max-width: 640px) { .r-board .r-note { flex-basis: 100%; } }
.r-board { background-image:
    radial-gradient(rgba(90,50,20,.30) .8px, transparent 1.4px),
    radial-gradient(rgba(255,228,185,.22) 1px, transparent 1.6px),
    radial-gradient(rgba(110,62,25,.30) 1.6px, transparent 2.4px),
    radial-gradient(ellipse at 20% 30%, rgba(255,220,170,.18), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(80,40,10,.18), transparent 55%);
  background-size: 5px 6px, 9px 7px, 23px 19px, 100% 100%, 100% 100%;
  background-position: 0 0, 2px 3px, 7px 11px, 0 0, 0 0; }
.r-board .r-note { flex: 0 1 calc((100% - 72px) / 3); min-width: 230px; margin: 0; }
@media (max-width: 640px) {
  .r-board .r-note { flex-basis: 100%; min-height: 0; flex-direction: row; align-items: flex-start; gap: 12px; padding: 28px 16px 16px; }
  .r-board .r-note h3 { flex: 1; }
  .r-board .r-nico { width: 50px; height: 50px; margin-top: 0; align-self: center; }
  .r-board .r-note .r-badge.pend { position: static; align-self: flex-end; }
  .r-board .r-note { flex-wrap: wrap; }
}
.r-board .r-note { box-sizing: border-box; }
@media (max-width: 640px) {
  .r-board .r-note h3 { flex: 1 1 calc(100% - 64px); }
  .r-board .r-note .r-badge.pend { order: 3; margin-top: 2px; }
}

/* ===== 1.5 ทางเข้า "ถามแบบคนพิการ" ===== */
.r-ask { position: relative; overflow: hidden; margin: 6px 0 22px; padding: clamp(22px, 3vw, 36px);
  background: radial-gradient(circle at 92% -10%, rgba(201,162,76,.28), transparent 42%), linear-gradient(160deg, var(--jade) 0%, var(--jade-deep) 70%);
  border-radius: 24px; border-bottom: 4px solid var(--gold); color: #F6EFDF; }
.r-ask::before { content: "“"; position: absolute; right: 22px; top: -36px; font: 700 15rem/1 var(--display); color: rgba(233,201,120,.12); pointer-events: none; }
.r-ask-head { position: relative; margin-bottom: 22px; }
.r-ask-head h2 { font-family: var(--display); color: #FFF; font-size: clamp(1.45rem, 2.6vw, 2.1rem); margin: 0 0 4px; }
.r-ask-head p { margin: 0; color: #DCE8E4; font-size: 1rem; }
.r-ask-head p span { display: inline-block; margin-left: 8px; padding: 2px 12px; border-radius: 999px; background: rgba(233,201,120,.18); color: #F1D58E; font-weight: 600; font-size: .88rem; border: 1px solid rgba(233,201,120,.45); }
.r-ask-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.r-q { position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 14px 18px 14px 14px; text-align: left; cursor: pointer;
  background: #FBF7EE; color: var(--jade-deep); border: 2px solid transparent; border-radius: 20px 20px 20px 6px;
  font: 600 clamp(1rem, 1.2vw, 1.12rem)/1.4 var(--display); box-shadow: 0 6px 0 rgba(0,0,0,.14);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.r-q::after { content: ""; position: absolute; left: 14px; bottom: -13px; border: 7px solid transparent; border-top: 8px solid #FBF7EE; border-left: 9px solid #FBF7EE; }
.r-q:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,.14); }
.r-q:focus-visible { outline: 4px solid #F1D58E; outline-offset: 3px; }
.r-q-ico { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); border: 2px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.r-q-ico svg { width: 32px; height: 32px; fill: none; stroke: var(--jade-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.r-q[aria-pressed="true"] { background: #F1D58E; border-color: #FFF; }
.r-q[aria-pressed="true"]::after { border-top-color: #F1D58E; border-left-color: #F1D58E; }
.r-q[aria-pressed="true"] .r-q-ico { background: var(--jade-deep); border-color: var(--jade-deep); }
.r-q[aria-pressed="true"] .r-q-ico svg { stroke: #F1D58E; }

.r-reply { display: flex; align-items: center; gap: 14px; margin: 0 0 22px auto; max-width: 760px; padding: 14px 18px;
  background: var(--surface); border: 2px solid var(--gold); border-radius: 20px 20px 6px 20px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.r-reply[hidden] { display: none; }
.r-reply img { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #FFF; padding: 4px; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }
.r-reply p { margin: 0; flex: 1; font-size: 1.05rem; } .r-reply b { color: var(--jade-deep); font-family: var(--display); }
.r-reply-x { flex: none; font: inherit; font-size: .9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--jade); background: none; color: var(--jade-deep); cursor: pointer; }

/* การ์ดสิทธิ: แถบสีหมวด + ไอคอนลายเส้น */
.r-tile { --tc: var(--jade); --tt: var(--jade-soft); flex-direction: row; gap: 16px; align-items: flex-start; border-left: 6px solid var(--tc); }
.r-tile.t-c1{--tc:#7A3B5E;--tt:#F6EDF2} .r-tile.t-c2{--tc:#4E7A2E;--tt:#EEF3E6} .r-tile.t-c3{--tc:#2F5D8A;--tt:#E8EFF7}
.r-tile.t-c4{--tc:#B0602A;--tt:#F8ECE2} .r-tile.t-c5{--tc:#1F6F6A;--tt:#E4F0EE} .r-tile.t-c6{--tc:#A9822F;--tt:#F8F1E1}
.r-tile .r-nico { flex: none; width: 58px; height: 58px; margin: 2px 0 0; border-radius: 16px; display: grid; place-items: center; background: var(--tt); align-self: flex-start; }
.r-tile .r-nico svg { width: 36px; height: 36px; fill: none; stroke: var(--tc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.r-tile-b { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.r-tile h3 a::before { content: ""; position: absolute; inset: 0; }
.r-tile { position: relative; transition: transform .12s ease, box-shadow .12s ease; }
.r-tile:hover, .r-tile:focus-within { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.r-tile:focus-within { outline: 3px solid var(--jade); outline-offset: 2px; }
.r-tile h3 a:focus-visible { outline: none; }
.r-tile .r-meta { order: 3; }

@media (max-width: 1100px) { .r-ask-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .r-ask-grid { grid-template-columns: 1fr; gap: 18px; } .r-q { min-height: 72px; } .r-q-ico { width: 46px; height: 46px; } .r-reply { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .r-q, .r-tile { transition: none; } }
:root.hc .r-ask { background: #000; border: 2px solid #FFE600; } :root.hc .r-ask::before { display: none; }
:root.hc .r-ask-head h2, :root.hc .r-ask-head p { color: #FFE600; }
:root.hc .r-q { background: #000; color: #FFE600; border-color: #FFE600; box-shadow: none; } :root.hc .r-q::after { display: none; }
:root.hc .r-q-ico { background: #000; border-color: #FFE600; } :root.hc .r-q-ico svg, :root.hc .r-tile .r-nico svg { stroke: #FFE600; }
:root.hc .r-q[aria-pressed="true"] { background: #FFE600; color: #000; } :root.hc .r-q[aria-pressed="true"] .r-q-ico svg { stroke: #000; }
:root.hc .r-tile { border-left-color: #FFE600; } :root.hc .r-tile .r-nico { background: #000; border: 1px solid #FFE600; }
:root.hc .r-reply { background: #000; border-color: #FFE600; color: #FFE600; }
.r-group .r-cards:has(.r-tile) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
@media (max-width: 520px) {
  .r-ask-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .r-q { flex-direction: column; justify-content: flex-start; text-align: center; gap: 8px; min-height: 0; padding: 14px 10px 12px; font-size: .98rem; }
  .r-q-ico { width: 44px; height: 44px; } .r-q-ico svg { width: 26px; height: 26px; }
}

/* แถวเรื่องหลักของ IL — โดดกว่าปุ่มอื่น */
.r-ask-il { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; padding-top: 24px; border-top: 1px dashed rgba(241,213,142,.45); }
.r-q-il { text-decoration: none; background: linear-gradient(135deg, #F6DC93, #E2B85A); color: var(--jade-deep); border-color: #FFF4D6; box-shadow: 0 6px 0 rgba(80,55,10,.35); }
.r-q-il::after { border-top-color: #E9C46E; border-left-color: #EBC772; }
.r-q-il .r-q-ico { background: var(--jade-deep); border-color: #FFF4D6; }
.r-q-il .r-q-ico svg { stroke: #F6DC93; }
.r-q-il .r-q-t { font-size: 1.08em; }
.r-q-il:hover { color: var(--jade-deep); }
@media (max-width: 1100px) { .r-ask-il { grid-template-columns: 1fr 1fr; } .r-q-all { grid-column: 1 / -1; } }
@media (max-width: 520px) { .r-q-all { flex-direction: row; justify-content: center; } }
:root.hc .r-q-il { background: #FFE600; color: #000; border-color: #FFE600; } :root.hc .r-q-il .r-q-ico { background: #000; } :root.hc .r-q-il .r-q-ico svg { stroke: #FFE600; }
:root.hc .r-ask-il { border-top-color: #FFE600; }
/* 1.5.1 แถว IL ขนาดเท่าปุ่มอื่น ชิดซ้าย + ภาพประกอบในช่องที่ 4 */
.r-ask-il { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.r-q-il .r-q-t { font-size: 1em; }
.r-q-all { grid-column: auto; }
.r-ask-art { display: flex; align-items: flex-end; justify-content: center; min-height: 92px; }
.r-ask-art svg { width: 100%; max-width: 230px; height: auto; }
@media (max-width: 1100px) { .r-ask-il { grid-template-columns: repeat(2, minmax(0, 1fr)); } .r-q-all { grid-column: auto; } }
@media (max-width: 520px) { .r-ask-il { gap: 20px 12px; } .r-q-all { flex-direction: column; } }
:root.hc .r-ask-art { display: none; }
.r-ask-il { align-items: start; }
.r-ask-art { height: 92px; min-height: 0; overflow: visible; }
.r-ask-art svg { width: auto; height: 118px; max-width: none; margin-bottom: -8px; }
@media (max-width: 520px) { .r-ask-il { align-items: stretch; } .r-ask-art { height: auto; align-items: center; } .r-ask-art svg { width: 100%; height: auto; margin: 0; } }
.r-q { box-sizing: border-box; }

/* ===== 1.5.2 ปุ่มเป็นลิงก์ + หัวข้อขยายความด้านล่าง ===== */
.r-ask-grid, .r-ask-il { list-style: none; margin-left: 0; padding-left: 0; }
.r-ask-il { padding-top: 24px; }
.r-ask-grid > li, .r-ask-il > li { display: flex; margin: 0; }
.r-ask-grid .r-q, .r-ask-il .r-q { flex: 1; text-decoration: none; }
.r-q { box-sizing: border-box; } .r-q:hover { color: var(--jade-deep); }

.r-topic { margin: 0 0 46px; scroll-margin-top: calc(var(--hdr, 0px) + 84px); }
.r-topic-q { position: relative; display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin: 0 0 18px; padding: 12px 24px 12px 12px;
  background: var(--jade-deep); color: #FFF; border-radius: 22px 22px 22px 6px; box-shadow: 0 5px 0 rgba(0,0,0,.12); }
.r-topic-q::after { content: ""; position: absolute; left: 16px; bottom: -13px; border: 7px solid transparent; border-top: 8px solid var(--jade-deep); border-left: 9px solid var(--jade-deep); }
.r-topic-q .r-q-ico { width: 52px; height: 52px; background: var(--gold-soft); }
.r-topic-q h2 { margin: 0; color: #FFF; font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; }
.r-topic-q h2:focus { outline: none; }
.r-topic-q h2 span { font-size: .7em; font-weight: 500; color: #DCE8E4; }
.r-topic-a { display: flex; align-items: flex-start; gap: 12px; max-width: 860px; margin: 0 0 20px auto; padding: 14px 20px;
  background: var(--surface); border: 2px solid var(--gold); border-radius: 22px 22px 6px 22px; }
.r-topic-a img { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #FFF; padding: 4px; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }
.r-topic-a p { margin: 0; font-size: 1.06rem; line-height: 1.65; }
.r-topic-n { color: var(--muted); font-size: .92em; white-space: nowrap; }
.r-topic .r-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.r-top { margin: 14px 0 0; text-align: right; font-size: .95rem; } .r-top a { color: var(--jade); }

.r-topic.is-il .r-topic-q { background: linear-gradient(135deg, #F6DC93, #E2B85A); color: var(--jade-deep); }
.r-topic.is-il .r-topic-q::after { border-top-color: #E9C46E; border-left-color: #EBC772; }
.r-topic.is-il .r-topic-q h2 { color: var(--jade-deep); }
.r-topic.is-il .r-topic-q .r-q-ico { background: var(--jade-deep); border-color: #FFF4D6; } .r-topic.is-il .r-topic-q .r-q-ico svg { stroke: #F6DC93; }
.r-topic.is-il { padding: 22px; margin-inline: -22px; border-radius: 24px; background: color-mix(in srgb, var(--gold-soft) 70%, transparent); }

.r-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.r-all-g { --tc: var(--jade); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--tc); border-radius: 14px; padding: 14px 18px; }
.r-all-g.t-c1{--tc:#7A3B5E} .r-all-g.t-c2{--tc:#4E7A2E} .r-all-g.t-c3{--tc:#2F5D8A} .r-all-g.t-c4{--tc:#B0602A} .r-all-g.t-c5{--tc:#1F6F6A} .r-all-g.t-c6{--tc:#A9822F}
.r-all-g h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--tc); }
.r-all-g ul { list-style: none; margin: 0; padding: 0; }
.r-line { padding: 5px 0 5px 16px; position: relative; border: 0; background: none; border-radius: 0; display: block; }
.r-line::before { content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 7px; border-radius: 2px; background: var(--tc); }
.r-line a { color: var(--ink); }
@media (max-width: 640px) { .r-topic-a { margin-left: 0; } .r-topic.is-il { margin-inline: -10px; padding: 16px 10px; } }
:root.hc .r-topic-q, :root.hc .r-topic.is-il .r-topic-q { background: #000; border: 2px solid #FFE600; } :root.hc .r-topic-q h2 { color: #FFE600 !important; }
:root.hc .r-topic-q::after { display: none; } :root.hc .r-topic.is-il { background: #000; } :root.hc .r-topic-a { background: #000; border-color: #FFE600; }
.r-topic { scroll-margin-top: calc(var(--hdr, 0px) + 84px); } @supports (top: 1px) { .r-topic { scroll-margin-top: 132px; } } @media (max-width: 900px) { .r-topic { scroll-margin-top: 16px; } }
.r-topic { scroll-margin-top: 132px; }
section.r-topic { padding: 0; } section.r-topic.is-il { padding: 22px; } @media (max-width: 640px) { section.r-topic.is-il { padding: 16px 10px; } } section.r-ask { padding: clamp(22px, 3vw, 36px); }

/* ===== 1.5.2 หน้ากิจกรรม: Time line + กิจกรรมเต็มเรื่อง ===== */
section.act { padding-top: 8px; }
.act-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; }
.act-tl { position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); }
.act-tl-box { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; max-height: calc(100vh - 84px); display: flex; flex-direction: column; overflow: hidden; }
.act-tl-box > summary { list-style: none; cursor: default; padding: 12px 16px; font-weight: 700; font-size: 1.05rem; color: var(--jade-deep); border-bottom: 1px solid var(--line); background: var(--jade-soft); }
.act-tl-box > summary::-webkit-details-marker { display: none; }
.act-tl-box > summary small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.act-tl-list { overflow-y: auto; padding: 4px 8px 14px; }
.act-y { font-size: .95rem; margin: 14px 8px 6px; color: var(--gold); letter-spacing: .02em; }
.act-tl-list ol { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); margin-left: 12px; }
.act-tl-list li { position: relative; }
.act-tl-list li::before { content: ""; position: absolute; left: -16px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.act-tl-list a { display: grid; grid-template-columns: 3.6em 1fr; gap: 6px; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.act-tl-list a .d { color: var(--muted); font-size: .82rem; padding-top: 1px; white-space: nowrap; }
.act-tl-list a:hover, .act-tl-list a:focus-visible { background: var(--jade-soft); color: var(--jade-deep); }
.act-tl-list a[aria-current] { background: var(--jade); color: #fff; }
.act-tl-list a[aria-current] .d { color: #fff; }
.act-tl-list li:has(a[aria-current])::before { background: var(--gold); }
.act-tl-list .act-pin { font-size: .85em; margin-left: 2px; }
.act-feed { min-width: 0; }
.act-item { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 2px dashed var(--line); max-width: 860px; }
.act-item[hidden] { display: none; }
.act-meta { font-size: .9rem; color: var(--gold); font-weight: 600; margin: 0 0 4px; }
.act-item h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: 0 0 16px; line-height: 1.35; }
.act-item h2 a { color: var(--ink); text-decoration: none; }
.act-item h2 a:hover { color: var(--jade); text-decoration: underline; }
.act-item h2:focus { outline: none; } .act-item h2:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.act-more { text-align: center; max-width: 860px; margin: 0 0 20px; }
.act-more .b { font-size: 1.05rem; padding: 12px 24px; cursor: pointer; background: var(--surface); border-radius: 999px; }
.act-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) {
  .act-wrap { grid-template-columns: 1fr; gap: 18px; }
  .act-tl { position: sticky; top: calc(46px + env(safe-area-inset-top, 0px)); z-index: 8; }
  .act-tl-box { max-height: calc(100vh - 70px); box-shadow: 0 6px 12px -8px rgba(0,0,0,.25); }
  .act-tl-box > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
  .act-tl-box > summary::after { content: "▾ เปิด"; margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--jade); }
  .act-tl-box[open] > summary::after { content: "▴ ปิด"; }
}
:root.hc .act-tl-list a[aria-current] { background: #FFE600; color: #000; } :root.hc .act-tl-list a[aria-current] .d { color: #000; }
:root.hc .act-tl-box > summary { color: #FFE600; background: #000; }
/* 1.5.2b หน้ากิจกรรม: หัวบาง / รูปปกไม่สูงเกินจอ / Time line เลื่อนในกรอบ */
.page-head.act-head .wrap { padding-block: 10px; }
section.act { padding-top: 16px; }
.act-item .lead-img img { width: auto; max-width: 100%; max-height: calc(100vh - 200px); display: block; }
.act-tl-list { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.act-tl-list::-webkit-scrollbar { width: 8px; } .act-tl-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }
.act-tl-list::after { content: ""; position: sticky; bottom: -14px; display: block; height: 32px; margin-top: -32px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
.act-tl-box { display: block; max-height: none; }
.act-tl-list { max-height: calc(100vh - 150px); overflow-y: auto; }
@media (max-width: 900px) { .act-tl-list { max-height: calc(100vh - 140px); } }
.act-item .lead-img img { max-height: max(320px, calc(100vh - 330px)); }
.act-tl-list { max-height: max(300px, calc(100vh - 290px)); }
.act-tl-top { list-style: none; margin: 10px 0 4px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.act-tl-top a { font-weight: 600; }
.act-tl-list ol.act-tl-top { border-left: 0; margin: 10px 0 4px; padding: 0 0 10px; }
.act-tl-list .act-tl-top li::before { display: none; }
.act-tl-list .act-tl-top a { grid-template-columns: 4.6em 1fr; }
/* 1.5.2c วันที่ + ชื่อเรื่องบรรทัดเดียว / ตัดแถบบอกทาง / รูปปกสูงขึ้น */
section.act { padding-top: 14px; }
.act-item h2.act-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.4; white-space: nowrap; min-width: 0; }
.act-h .act-d { flex: none; color: var(--gold); font-size: .85em; font-weight: 700; }
.act-h .act-sep { flex: none; color: var(--muted); }
.act-h a { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.act-item .lead-img { margin-bottom: 1em; }
.act-item .lead-img img { max-height: max(380px, calc(100vh - 215px)); }
.act-tl { top: calc(56px + env(safe-area-inset-top, 0px)); }
.act-tl-list { max-height: max(300px, calc(100vh - 230px)); }

/* ===== 1.5.7 รูปขยายเต็มจอ ===== */
img.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
html.lb-on { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8,14,13,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lb[hidden] { display: none; }
.lb-f { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lb-f img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #222; }
.lb-f figcaption { color: #EEF3F1; font-size: 1rem; margin-top: 12px; text-align: center; max-width: 900px; }
.lb-n { color: #D9B566; white-space: nowrap; margin-left: .5em; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; width: 52px; height: 52px; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb button:focus-visible { outline: 3px solid #FFE600; outline-offset: 2px; }
.lb-x { top: 14px; right: 14px; font-size: 24px !important; }
.lb-p { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-nx { right: 12px; top: 50%; transform: translateY(-50%); }
.lb button[hidden] { display: none; }
@media (max-width: 640px) {
  .lb { padding: 60px 8px 70px; }
  .lb-p, .lb-nx { top: auto; bottom: 12px; transform: none; }
  .lb-p { left: calc(50% - 64px); } .lb-nx { right: calc(50% - 64px); }
}

/* ===== 1.5.7 หน้าสิทธิ: คำถามที่พบบ่อย + ข้อคิดจาก TIL ===== */
.r-faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 0 0 10px; }
.r-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--jade-deep); list-style: none; position: relative; padding-right: 40px; }
.r-faq summary::-webkit-details-marker { display: none; }
.r-faq summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-size: 1.4rem; color: var(--gold); }
.r-faq details[open] summary::after { content: "−"; }
.r-faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.r-faq details p { margin: 0; padding: 0 16px 14px; }
.prose section.r-sec.r-more { background: var(--jade-soft); border-left: 5px solid var(--jade); border-radius: 0 12px 12px 0; padding: 6px 20px 10px; }
.r-more p:last-child strong { color: var(--jade-deep); font-size: 1.06rem; }
:root.hc .r-faq details, :root.hc .prose section.r-sec.r-more { background: #000; border-color: #FFF; }
:root.hc .r-faq summary { color: #FFE600; }

.prose section.r-sec p { margin: 0 0 14px; }
.prose section.r-sec h3 + p, .prose section.r-sec h3 + ul { margin-top: 6px; }

/* ===== 1.5.7 หน้าสิทธิ: ขยาย/ยุบหัวข้อ ===== */
.r-allbar { display: flex; gap: 8px; justify-content: flex-end; margin: 0 0 12px; }
.r-all { font: inherit; font-size: .92rem; background: var(--surface); color: var(--jade-deep); border: 1.5px solid var(--jade); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.r-all:hover { background: var(--jade-soft); }
.r-sec h2 .r-tog { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; cursor: pointer; color: inherit; font: inherit; }
.r-tog-i::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-size: 1.3rem; font-weight: 700; flex: none; }
.r-sec.is-open .r-tog-i::before { content: "−"; }
.r-sec h2 .r-tog:focus-visible, .r-all:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.prose section.r-sec { margin-bottom: 14px; }
.prose section.r-sec .r-body { padding-top: 8px; }
.prose section.r-sec.r-tips, .prose section.r-sec.r-pending, .prose section.r-sec.r-more { padding-bottom: 4px; }
:root.hc .r-all { background: #000; color: #FFE600; border-color: #FFF; }
:root.hc .r-tog-i::before { background: #000; color: #FFE600; border: 1px solid #FFF; }
@media print { .r-allbar, .r-tog-i { display: none; } .r-body[hidden] { display: block !important; } }

/* ===== 1.5.8 ปุ่มลัดใต้ชื่อเรื่อง หน้าสิทธิ ===== */
.r-quick { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 4px; }
.r-qb { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--jade); color: var(--jade-deep); background: var(--surface); }
.r-qb:hover { background: var(--jade-soft); }
.r-qb.main { background: var(--jade); color: var(--on-jade); border-color: var(--jade); }
.r-qb.main:hover { background: var(--jade-deep); }
.r-qb:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
:root.hc .r-qb { background: #000; color: #FFE600; border-color: #FFE600; } :root.hc .r-qb.main { background: #FFE600; color: #000; }
@media (max-width: 640px) { .r-qb { width: 100%; justify-content: center; } }

/* 1.5.8 ลดพื้นที่ว่างระหว่างหัวเรื่องกับเนื้อหา หน้าสิทธิ */
section.r-wrap { padding-top: 16px; }
.r-allbar { margin: 0 0 4px; }
.r-detail .r-toc { margin-top: 4px; }

/* ===== 1.5.9 กล่อง "ตอนนี้อยากรู้เรื่องอะไร" กระชับ: เห็นครบในจอแรก ===== */
section.r-ask { padding: 20px 26px 22px; margin-top: 4px; }
.r-ask::before { font-size: 10rem; top: -26px; }
.r-ask-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 2px; margin-bottom: 16px; }
.r-ask-head h2 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); margin: 0; }
.r-ask-head p { font-size: .98rem; }
.r-ask-grid { gap: 16px 14px; }
.r-ask-il { gap: 16px 14px; margin-top: 16px; padding-top: 16px; }
.r-q { min-height: 60px; padding: 8px 14px 8px 10px; gap: 10px; font-size: 1rem; line-height: 1.35; }
.r-q-ico { width: 42px; height: 42px; } .r-q-ico svg { width: 24px; height: 24px; }
.r-q::after { bottom: -11px; border-width: 6px; border-top-width: 7px; border-left-width: 8px; }
.r-q-il .r-q-t { font-size: 1em; }
.r-ask-art { height: 60px; } .r-ask-art svg { height: 84px; margin-bottom: -6px; }
@media (max-width: 1100px) { .r-q { min-height: 56px; } }
@media (max-width: 520px) { section.r-ask { padding: 16px 12px 18px; } .r-q-ico { width: 38px; height: 38px; } }

/* ===== 1.5.10 หัวหน้าสิทธิแบบกระชับ + เมนูย่อยบนป้าย ===== */
.page-head.r-head .wrap { padding-block: 14px 14px; }
.r-head .crumbs { margin-bottom: 6px; }
.r-titlerow { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 4px; }
.r-titlerow h1 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.25; }
.r-titlerow .r-tag { margin: 0; font-size: 1.08rem; color: var(--muted); }
.r-titlerow .r-badge.drf { align-self: center; }
.r-head .r-quick { margin: 10px 0 0; }
.r-head .r-qb { padding: 8px 18px; font-size: 1rem; }
section.r-wrap { padding-top: 10px; }
.r-q-has { position: relative; }
button.r-q { width: 100%; border-style: solid; font: 600 clamp(1rem, 1.2vw, 1.12rem)/1.4 var(--display); font-size: 1rem; }
.r-q-caret { margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); flex: none; transition: transform .15s; }
.r-q-has.open .r-q-caret { transform: rotate(-135deg) translateY(-2px); }
.r-q-sub { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 14px); margin: 0; padding: 6px; list-style: none; background: #FFF; border: 2px solid var(--gold); border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.r-q-sub li { margin: 0; }
.r-q-sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--jade-deep); font-weight: 600; text-decoration: none; }
.r-q-sub li + li a { border-top: 1px solid var(--line); border-radius: 0; }
.r-q-sub li:first-child a { background: var(--gold-soft); border-radius: 10px; }
.r-q-sub a:hover { background: var(--jade-soft); }
.r-q-sub a:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
:root.hc .r-q-sub { background: #000; border-color: #FFE600; } :root.hc .r-q-sub a { color: #FFE600; } :root.hc .r-q-sub li:first-child a { background: #222; }
@media (max-width: 520px) { .r-q-sub { position: static; margin-top: 12px; } .r-titlerow .r-tag { font-size: 1rem; } }
.r-ask { overflow: visible; } .r-ask::before { top: 4px; font-size: 7rem; line-height: .9; }

/* 1.5.11 หน้าความรู้แบบบทความ (เมื่อชีวิตเปลี่ยนไป) */
.prose section.r-sec h4 { font-size: 1.08rem; color: var(--jade-deep); margin: 1.1em 0 .3em; }
.prose p.r-key { background: var(--jade-soft); border-left: 5px solid var(--jade); border-radius: 0 10px 10px 0; padding: 10px 16px; margin: 1em 0; }
.prose p.r-key strong { color: var(--jade-deep); }
.prose ol.r-steps { counter-reset: st; list-style: none; padding-left: 0; }
.prose ol.r-steps li { counter-increment: st; position: relative; padding: 6px 0 6px 46px; min-height: 34px; }
.prose ol.r-steps li::before { content: counter(st); position: absolute; left: 0; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--jade); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.prose ul.r-rel { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.prose ul.r-rel li { margin: 0; }
.prose ul.r-rel a { display: block; box-sizing: border-box; height: 100%; padding: 12px 14px; border: 1px solid var(--line, #d9d4c7); border-radius: 12px; background: var(--surface, #fff); text-decoration: none; color: inherit; }
.prose ul.r-rel a:hover, .prose ul.r-rel a:focus-visible { border-color: var(--jade); box-shadow: 0 0 0 2px var(--jade-soft); }
.prose ul.r-rel b { display: block; color: var(--jade-deep); }
.prose ul.r-rel small { display: block; margin-top: 2px; color: #555; font-size: .92rem; }
:root.hc .prose p.r-key, :root.hc .prose ul.r-rel a { background: #000; border-color: #FFF; color: #FFF; }
:root.hc .prose ul.r-rel b, :root.hc .prose ul.r-rel small { color: #FFF; }
.prose figure.r-fig { margin: 1em 0 1.3em; text-align: center; }
.prose figure.r-fig img { max-width: 100%; max-height: 460px; width: auto; height: auto; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.prose figure.r-fig figcaption { font-size: .92rem; color: var(--muted, #555); margin-top: 6px; }

/* 1.5.11 อยู่ระหว่างจัดเตรียมข้อมูล */
.r-wip { margin: 14px 0 6px; padding: 18px 20px; border: 2px dashed var(--gold, #B8862B); border-radius: 14px; background: #FFF8E9; color: #7A4A00; font-style: italic; font-weight: 600; font-size: 1.15rem; text-align: center; }
.net.is-wip { position: relative; overflow: hidden; }
.net .wip-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 2; padding: 6px 26px; border: 3px solid #F6DC93; border-radius: 10px; color: #F6DC93; background: rgba(14, 46, 42, .55); font-style: italic; font-weight: 700; font-size: clamp(1.3rem, 3.4vw, 2.3rem); white-space: nowrap; pointer-events: none; letter-spacing: .02em; }
:root.hc .r-wip { background: #000; color: #FFF; border-color: #FFF; }
:root.hc .net .wip-stamp { color: #FFF; border-color: #FFF; background: #000; }

/* 1.5.12 กรอบด่วน + ป้ายด่วนหน้าแรก */
.prose aside.r-hot { position: relative; margin: 0 0 22px; padding: 16px 20px 12px; border: 3px solid #C0392B; border-radius: 16px; background: #FFF6EC; box-shadow: 0 4px 0 rgba(192, 57, 43, .15); scroll-margin-top: 90px; }
.prose aside.r-hot .r-hot-h { margin: 0 0 8px; font-weight: 700; font-size: 1.15rem; color: #8E2A1F; line-height: 1.5; }
.prose aside.r-hot .r-hot-tag { display: inline-block; margin-right: 6px; padding: 1px 12px; border-radius: 999px; background: #C0392B; color: #fff; font-size: .95rem; }
.prose aside.r-hot ul { margin: 0; }
.prose aside.r-hot li { margin: 4px 0; }
.prose aside.r-hot:target { animation: hotflash 1.2s ease 2; }
@keyframes hotflash { 50% { box-shadow: 0 0 0 8px rgba(192, 57, 43, .25); } }
@media (prefers-reduced-motion: reduce) { .prose aside.r-hot:target { animation: none; } }
.hot-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #FFF6EC; border: 2px solid #C0392B; color: #8E2A1F; font-weight: 700; text-decoration: none; line-height: 1.35; }
.hot-badge small { font-weight: 600; font-size: .85rem; color: #8E2A1F; }
.hot-badge .hot-dot { padding: 2px 10px; border-radius: 999px; background: #C0392B; color: #fff; }
.hot-badge:hover, .hot-badge:focus-visible { background: #fff; box-shadow: 0 0 0 3px rgba(192, 57, 43, .3); }
:root.hc .prose aside.r-hot, :root.hc .hot-badge { background: #000; border-color: #FF0; color: #FF0; }
:root.hc .prose aside.r-hot .r-hot-h, :root.hc .hot-badge small { color: #FF0; }
:root.hc .r-hot-tag, :root.hc .hot-badge .hot-dot { background: #FF0 !important; color: #000 !important; }

/* 1.5.13 ป้ายประกาศตัวอักษรเดิน (หน้าแรก) */
.tk-wrap { position: absolute; top: 18px; left: 0; right: 0; z-index: 4; pointer-events: none; }
.til-ticker { pointer-events: auto; display: flex; align-items: stretch; max-width: 600px; background: #FFFDF6; border: 2px solid #C0392B; border-radius: 16px; box-shadow: 0 10px 24px rgba(20, 63, 58, .22), 0 2px 0 #C0392B; overflow: hidden; }
.tk-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; text-decoration: none; color: #6B1E14; }
.tk-ico { flex: none; width: 50px; height: 42px; border-radius: 12px; background: none; display: grid; place-items: center; }
.tk-ico svg { width: 34px; height: 34px; animation: tkbob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.tk-ico img { width: 44px; height: auto; animation: tkbob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.tk-tag { flex: none; padding: 3px 12px; border-radius: 999px; background: #C0392B; color: #fff; font-weight: 800; font-size: 1rem; }
.tk-view { flex: 1; min-width: 0; position: relative; height: 1.9em; overflow: hidden; font-size: 1.08rem; -webkit-mask-image: linear-gradient(90deg, #000 97%, transparent); mask-image: linear-gradient(90deg, #000 97%, transparent); }
.tk-item { position: absolute; left: 4px; top: 0; line-height: 1.9em; white-space: nowrap; font-weight: 700; transform-origin: 50% 100%; will-change: transform, opacity; }
.tk-item + .tk-item { transform: translateX(200vw); }
.tk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tk-go { flex: none; padding: 4px 11px; border-radius: 999px; background: #8E2A1F; color: #fff; font-weight: 700; font-size: .92rem; }
.tk-link:hover .tk-go, .tk-link:focus-visible .tk-go { background: #C0392B; }
.tk-pause { flex: none; width: 44px; border: 0; border-left: 1px solid #F0C9C2; background: #FFF6EC; color: #8E2A1F; cursor: pointer; font-size: .8rem; }
.tk-pause:hover, .tk-pause:focus-visible { background: #FFE7D6; }
.til-ticker.is-paused .tk-ico img, .til-ticker.is-paused .tk-ico svg { animation-play-state: paused; }
@keyframes tkbob { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg) translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .tk-ico img, .tk-ico svg { animation: none; } .tk-view { height: auto; -webkit-mask-image: none; mask-image: none; } .tk-item { position: static; display: block; transform: none; white-space: normal; line-height: 1.45; } }
@media (max-width: 760px) { .tk-wrap { position: relative; top: auto; padding-top: 10px; padding-bottom: 6px; } .tk-go { display: none; } .tk-view { font-size: 1rem; } .tk-link { gap: 7px; } .tk-ico { width: 42px; } .tk-ico img { width: 38px; } }
:root.hc .til-ticker { background: #000; border-color: #FF0; } :root.hc .tk-link, :root.hc .tk-pause { color: #FF0; background: #000; } :root.hc .tk-tag, :root.hc .tk-go { background: #FF0; color: #000; }
@media (min-width: 761px) { .hero.has-tk .hero-in { padding-top: 116px; } }
.prose p.r-warn { background: #FFF1EE; border: 2px solid #C0392B; border-left-width: 7px; border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 1em 0; color: #5A1A12; }
.prose p.r-warn strong:first-child { color: #A3271B; font-size: 1.12rem; }
:root.hc .prose p.r-warn { background: #000; color: #FFF; border-color: #FF0; }
.prose a.r-inlink { display: inline-block; margin: 4px 0 10px; padding: 8px 16px; border-radius: 999px; background: var(--jade-soft); color: var(--jade-deep); font-weight: 700; text-decoration: none; border: 1px solid var(--jade); }
.prose a.r-inlink:hover, .prose a.r-inlink:focus-visible { background: var(--jade); color: #fff; }
:root.hc .prose a.r-inlink { background: #000; color: #FF0; border-color: #FF0; }

/* 1.5.13 สรุปสิทธิสำคัญในหน้าเดียว (หน้ารวมสิทธิ) */
.r-sum { margin: 28px 0 8px; }
.r-sum-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.r-sum-head h2 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: var(--jade-deep); }
.r-sum-head p { margin: 0; color: var(--muted, #555); }
.r-sum-first { margin: 12px 0 14px; padding: 10px 16px; border-radius: 12px; background: var(--jade-soft); border-left: 5px solid var(--jade); }
.r-sum-first a { font-weight: 700; color: var(--jade-deep); }
.r-sum-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.r-sum-c { display: flex; flex-direction: column; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); }
.r-sum-c.is-il { border-color: #E2B85A; background: #FFFBEF; }
.r-sum-c h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; color: var(--jade-deep); }
.r-sum-c h3 .r-q-ico { flex: none; width: 38px; height: 38px; }
.r-sum-c ul { margin: 0 0 10px; padding-left: 1.1em; flex: 1; }
.r-sum-c li { margin: 3px 0; line-height: 1.55; }
.r-sum-c > a { align-self: flex-start; font-weight: 700; color: var(--jade-deep); text-decoration: none; padding: 4px 0; }
.r-sum-c > a:hover, .r-sum-c > a:focus-visible { text-decoration: underline; }
:root.hc .r-sum-c, :root.hc .r-sum-first { background: #000; color: #FFF; border-color: #FFF; }
:root.hc .r-sum-c h3, :root.hc .r-sum-c > a, :root.hc .r-sum-first a, :root.hc .r-sum-head h2 { color: #FF0; }
/* 1.5.13 ป้ายเล็กในรายการสวัสดิการทั้งหมด: บทความหลัก + คำสรุป */
.r-line small { display: block; color: var(--muted, #5b5b5b); font-size: .88rem; line-height: 1.45; margin-top: 1px; }
.r-line.is-main { padding-bottom: 9px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
.r-line.is-main a { font-weight: 700; }
.r-main-tag { display: inline-block; padding: 0 8px; margin-right: 2px; border-radius: 999px; background: var(--tc); color: #fff; font-size: .78rem; font-weight: 700; vertical-align: 1px; }
.prose p.r-goto, p.r-goto { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #FFF6E2; border: 2px solid #E2B85A; }
p.r-goto a { font-weight: 700; color: var(--jade-deep); }
:root.hc .r-main-tag { background: #FF0; color: #000; } :root.hc p.r-goto { background: #000; color: #FFF; border-color: #FF0; } :root.hc .r-line small { color: #DDD; }
.r-pending h2 small { font-size: .7em; font-weight: 600; color: #8a6d1f; }
.prose p.r-pubnote, p.r-pubnote { margin: 18px 0 6px; padding: 10px 14px; border-radius: 10px; background: #FFF8E9; border: 1px solid #E8D3A0; color: #6b5317; font-size: .95rem; }
:root.hc p.r-pubnote { background: #000; color: #FFF; border-color: #FFF; }

/* 1.5.14 สื่อวิดีโอ (หน้าคู่มือ สื่อ และองค์ความรู้) */
.vch { margin: 8px 0 28px; }
.vch h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--jade-deep); }
.vch-sub { margin: 4px 0 14px; color: var(--muted, #555); }
.vch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.vch-c { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); }
.vch-c.is-til { border: 2px solid #E2B85A; background: #FFFBEF; }
.vch-play svg { width: 56px; height: auto; display: block; }
.vch-b { min-width: 0; display: flex; flex-direction: column; }
.vch-b h3 { margin: 0; font-size: 1.12rem; color: var(--jade-deep); line-height: 1.4; }
.vch-by { margin: 2px 0 6px; font-size: .9rem; color: #8a6d1f; font-weight: 600; }
.vch-b p { margin: 0 0 10px; line-height: 1.6; }
.vch-go { margin-top: auto; align-self: flex-start; padding: 7px 16px; border-radius: 999px; background: var(--jade-deep); color: #fff; font-weight: 700; text-decoration: none; }
.vch-go:hover, .vch-go:focus-visible { background: #C0392B; color: #fff; }
:root.hc .vch-c { background: #000; color: #FFF; border-color: #FFF; } :root.hc .vch-b h3, :root.hc .vch-by { color: #FF0; } :root.hc .vch-go { background: #FF0; color: #000; }
main > section:has(> .wrap > .vch) { padding-top: 22px; }
section.vch { padding: 0; }
section.r-sum { padding: 0; }
/* 1.5.15 วิดีโอ Ed Roberts (หน้าแรงบันดาลใจ) */
.ed-vids { margin: 28px 0; padding: 0; }
.ed-vids > p { color: var(--muted, #555); margin: 4px 0 14px; }
.ytc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.prose .ytc, .entry .ytc { margin: 0; }
.ytc { margin: 0; }
.ytc-play, .ytc-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.ytc-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.ytc-btn { position: absolute; inset: 0; display: grid; place-items: center; }
.ytc-btn svg { width: 64px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.ytc-play:hover img, .ytc-play:focus-visible img { opacity: 1; }
.ytc-play:focus-visible { outline: 3px solid var(--gold, #B8862B); outline-offset: 3px; }
.ytc figcaption { margin-top: 8px; line-height: 1.45; }
.ytc figcaption b { display: block; color: var(--jade-deep); }
.ytc figcaption small { display: block; color: var(--muted, #555); font-size: .88rem; }
.ytc figcaption a { font-size: .9rem; font-weight: 600; }

/* 1.5.17 หน้าองค์กรเครือข่าย */
.nw-head { margin-bottom: 22px; }
.nw-stat { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px !important; }
.nw-stat span { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.nw-stat b { font-size: 1.15rem; margin-right: 4px; }
.nw-g { margin: 26px 0 10px; padding: 0; }
.nw-g > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.55rem); color: var(--jade-deep); padding-left: 12px; border-left: 6px solid var(--jade); }
.nw-g.is-prep > h2 { border-left-color: #E2B85A; }
.nw-n { font-size: .85rem; font-weight: 600; color: var(--muted, #555); }
.nw-desc { margin: 6px 0 4px; color: var(--muted, #555); max-width: 60em; }
.nw-reg { margin: 18px 0 8px; font-size: 1rem; color: #8a6d1f; }
.nw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.nw-c { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); }
.nw-g.is-prep .nw-c { background: #FFFBEF; border-color: #EAD9A8; }
.nw-prov { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--jade-soft); color: var(--jade-deep); font-size: .82rem; font-weight: 600; }
.nw-c h4 { margin: 6px 0 4px; font-size: 1.02rem; line-height: 1.45; color: var(--ink, #1d2b28); }
.nw-addr { margin: 0; font-size: .92rem; color: #444; line-height: 1.55; }
.nw-tel { margin: 4px 0 0; }
.nw-tel a { font-weight: 700; color: var(--jade-deep); text-decoration: none; }
.nw-tel a:hover, .nw-tel a:focus-visible { text-decoration: underline; }
.nw-upd { margin-top: 22px; font-size: .88rem; color: var(--muted, #555); }
section.nw-g { padding: 0; }
:root.hc .nw-c { background: #000; color: #FFF; border-color: #FFF; } :root.hc .nw-c h4, :root.hc .nw-tel a { color: #FF0; } :root.hc .nw-addr { color: #EEE; }
main > section:has(> .wrap > .nw) { padding-top: 22px; }

/* 1.5.19 แรงบันดาลใจ: พันโทต่อพงษ์ กุลครรชิต */
@media (min-width: 900px) { .persons { grid-template-columns: repeat(3, 1fr); } }
.tp-story { margin: 2.4em 0; padding: 26px 28px; background: #FFFDF6; border: 1px solid var(--line); border-top: 5px solid var(--jade); border-radius: 18px; scroll-margin-top: 90px; }
.tp-story h2 { margin-top: 0; }
.tp-head { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; }
.tp-art { margin: 0; }
.tp-art img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 18px rgba(20, 63, 58, .18); }
.tp-art figcaption { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 6px; }
@media (max-width: 560px) { .tp-head { grid-template-columns: 1fr; } .tp-art { max-width: 200px; margin: 0 auto; } }
.tp-sub { color: var(--jade); font-weight: 700; margin-top: .2em; }
.tp-lead { font-style: italic; font-size: 1.08rem; color: var(--ink); border-left: 4px solid #B08A2E; padding-left: 14px; }
.tp-story h3 { margin-top: 1.4em; }
.tp-story p { margin: .7em 0; }
.tp-time { list-style: none; margin: 1.2em 0; padding: 0 0 0 18px; border-left: 3px solid var(--jade); }
.tp-time li { position: relative; padding: 0 0 14px 14px; }
.tp-time li::before { content: ""; position: absolute; left: -27px; top: .55em; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--jade); }
.tp-time b { display: block; color: var(--jade); }
@media (max-width: 760px) { .tp-story { padding: 18px 16px; } }

/* 1.5.19 ส่วนท้ายเว็บ 5 กลุ่ม */
footer.site-ft { font-size: .9rem; line-height: 1.6; }
footer.site-ft .ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 28px; padding-block: 40px 30px; justify-content: stretch; }
.site-ft a { color: #EAF2EF; text-decoration: none; }
.site-ft a:hover, .site-ft a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ft-brand img { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #fff; padding: 4px; }
.ft-brand span { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.45; color: #E7C77F; }
.site-ft .ft-org { padding: 0; }
.ft-org p { margin: 0 0 10px; color: #C9D8D4; }
.site-ft ul { list-style: none; margin: 0; padding: 0; }
.ft-ct li { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.ft-ct li > span { width: 18px; text-align: center; color: #E7C77F; font-weight: 700; }
.ft-col summary { list-style: none; cursor: default; }
.ft-col summary::-webkit-details-marker { display: none; }
.ft-col h2 { font-family: var(--display); font-size: .98rem; color: #E7C77F; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(231, 199, 127, .35); }
.ft-col li { margin-bottom: 7px; }
.ft-bar { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: #B9CBC6; }
.ft-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-block: 16px; }
@media (max-width: 1080px) { footer.site-ft .ft-grid { grid-template-columns: 1fr 1fr 1fr; } .ft-org { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  footer.site-ft .ft-grid { grid-template-columns: 1fr; gap: 0; padding-block: 28px 10px; }
  .ft-org { padding-bottom: 18px; }
  .ft-col { border-top: 1px solid rgba(255, 255, 255, .14); }
  .ft-col summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
  .ft-col summary::after { content: "+"; color: #E7C77F; font-size: 1.3rem; font-weight: 700; }
  .ft-col[open] summary::after { content: "−"; }
  .ft-col h2 { margin: 0; padding: 0; border: 0; }
  .ft-col ul { padding: 0 0 14px; }
  .ft-col li { margin-bottom: 0; }
  .ft-col li a { display: block; padding: 7px 0; }
}
:root.hc .site-ft a, :root.hc .ft-col h2, :root.hc .ft-brand span { color: #FF0; }

/* 1.5.19 หน้าติดต่อเรา + ไอคอนหน้าเครือข่าย */
.net .nw-ico { color: var(--on-jade); opacity: .95; }
.ctp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.ctp-info h2 { font-size: 1.3rem; }
.ctp-info > p { color: var(--muted); margin-top: 8px; }
.ctp-info dl { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; }
.ctp-info dt { color: var(--muted); }
.ctp-info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ctp-qr { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ctp-qr figure { margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.ctp-qr img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
.ctp-qr figcaption { margin-top: 8px; display: grid; gap: 4px; color: #143F3A; }
.ctp-dl { display: inline-block; justify-self: center; padding: 6px 14px; border-radius: 999px; background: var(--jade); color: #fff !important; text-decoration: none; font-size: .88rem; font-weight: 600; }
.ctp-dl:hover, .ctp-dl:focus-visible { background: var(--jade-deep); }
.ctp-map { grid-column: 1 / -1; }
.ctp-map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 16px; background: var(--jade-soft); }
.ctp-map p { margin-top: 8px; }
@media (max-width: 760px) { .ctp { grid-template-columns: 1fr; } .ctp-map iframe { height: 280px; } }
.prose a.r-txtlink { color: var(--jade); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(31, 92, 85, .45); text-underline-offset: 3px; }
.prose a.r-txtlink:hover, .prose a.r-txtlink:focus-visible { text-decoration-color: currentColor; background: var(--jade-soft); }
.ctp-maplink { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-weight: 600; color: #143F3A; }

/* 1.5.22 รูปกิจกรรมที่จัดเองในหลังบ้าน (บล็อกตาราง/แกลเลอรี): ทุกรูปกรอบ 4:3 เท่ากัน ไม่กระโดด กดรูปเพื่อดูเต็ม */
.entry .is-layout-grid { align-items: start; }
.entry .is-layout-grid > figure, .entry .is-layout-grid > .wp-block-gallery { margin: 0; }
.entry .is-layout-grid > .wp-block-gallery > figure.wp-block-image { width: 100% !important; margin: 0 !important; flex: 1 1 100% !important; }
.entry .is-layout-grid img, .entry .wp-block-gallery img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover !important; border-radius: 8px; }
