/*
Theme Name: IAU KMUTT
Theme URI: https://web.kmutt.ac.th/internal-audit/
Author: KMUTT Internal Audit Unit
Description: ธีมเว็บไซต์หน่วยตรวจสอบภายใน มจธ. (KMUTT Internal Audit Unit) — โครงสร้าง 8 เมนูตาม blueprint. เวอร์ชันโครงร่างสำหรับทดสอบบน local.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: iau-kmutt
*/

/* ===== DB Heavent Cond webfont (KMUTT CI typeface) ===== */
/* DB Heavent (non-condensed) — ตรงกับที่ kmutt.ac.th ใช้จริง */
@font-face { font-family: "DB Heavent"; src: url('fonts/DBHeavent.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DB Heavent"; src: url('fonts/DBHeavent-Med.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DB Heavent"; src: url('fonts/DBHeavent-Bold.ttf') format('truetype'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DB Heavent"; src: url('fonts/DBHeavent-Black.ttf') format('truetype'); font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DB Heavent"; src: url('fonts/DBHeavent-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

/* ===== Design tokens — KMUTT CI Website (9.1.2) ===== */
:root {
	--iau-orange: #fa4616;        /* Primary Orange */
	--iau-orange-deep: #d3461e;   /* Dark Orange */
	--iau-yellow: #ffc72c;        /* Primary Yellow */
	--iau-yellow-deep: #ffb91a;   /* Dark Yellow */
	--iau-grey: #4b4f54;          /* Dark Grey — logo/nav bar */
	--iau-grey-dark: #2f3235;     /* Dark Grey — menu bar / footer */
	--iau-bluegrey: #7b8189;      /* Blue Grey */
	--iau-navy: #2f3235;          /* alias -> dark grey (reuse existing rules) */
	--iau-navy-2: #4b4f54;
	--iau-bg: #f8f8f9;
	--iau-surface: #ffffff;
	--iau-border: #e4e6e9;
	--iau-text: #2f3235;
	--iau-muted: #6b7075;
	--iau-radius: 8px;
	--iau-radius-lg: 14px;
	--iau-hairline: #dfe1e4;
	--iau-orange-wash: rgba(250,70,22,.06);
	--iau-yellow-wash: rgba(255,199,44,.16);
	--iau-shadow: 0 2px 10px rgba(47,50,53,.09);
	--iau-max: 1200px;
	--iau-font: "DB Heavent";
	/* --- Motion / Kinetic Editorial --- */
	--iau-ease: cubic-bezier(.22,.61,.36,1);
	--iau-ease-spring: cubic-bezier(.34,1.56,.64,1);
	--iau-dur: .7s;
	--iau-dur-s: .35s;
	--iau-stagger: 80ms;
	--iau-head: 152px;
	--iau-section-y: clamp(72px, 10vw, 132px);
	--iau-rail-w: 56px;
	--iau-h2: clamp(2.3rem, 5.4vw, 4.7rem);
	--iau-statement: clamp(2.6rem, 6.5vw, 5.4rem);
	--iau-lead: 30px;
	/* ── Type scale — FRONT-PAGE CONTENT (header / navbar / footer are locked to
	   their own literal sizes and do NOT use these). Sitewide floor is 24px —
	   any two adjacent/paired styles (title+desc, label+value) keep a 5px gap. */
	--iau-fs-emphasis: 36px;    /* section emphasis — stand-list strong (600) */
	--iau-fs-title:    31px;    /* lead · cta-door head · pol-card head */
	--iau-fs-body:     28px;    /* front-page body base */
	--iau-fs-small:    24px;    /* event title · card desc */
	--iau-fs-meta:     24px;    /* links, buttons, list rows (24px floor) */
	--iau-fs-caption:  24px;    /* section kickers, hints (24px floor) */
	--iau-fs-micro:    24px;    /* mono eyebrows, badges (24px floor) */
	--iau-fw-emphasis: 600;
	--iau-fw-title:    500;
	--iau-fw-body:     400;
	--iau-fw-fine:     300;
	--iau-mono: var(--iau-font); /* site-wide rule: one typeface everywhere, no monospace exception */
}

* { box-sizing: border-box; }
/* Browsers don't inherit font-family on form controls by default — force it so
   button/input/select/textarea never silently fall back to the OS UI font. */
button, input, select, textarea, optgroup { font-family: inherit; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--iau-font);
	color: var(--iau-text);
	background: var(--iau-bg);
	line-height: 1.6;
	font-size: 24px;
	-webkit-user-select: none;
	user-select: none;
}
input, textarea, [contenteditable="true"] {
	-webkit-user-select: text;
	user-select: text;
}
/* Front-page content reads one step larger than the CI base — header/nav/footer keep their own sizes */
body.home { font-size: var(--iau-fs-body); }
a { color: var(--iau-orange-deep); }
img { max-width: 100%; height: auto; }
.iau-wrap { max-width: var(--iau-max); margin: 0 auto; padding: 0 20px; }

/* ===== Header (CI 9.1.6 — Splash Bar / Logo+Nav / Menu) ===== */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: var(--iau-shadow); }
/* ล็อกอินอยู่ = มีแถบ WP admin bar ปักบนสุด (fixed) → ดันเมนู sticky ลงมาใต้แถบ
   ไม่งั้นตอนเลื่อน เมนูจะมุดใต้แถบ admin แล้วดูเหมือน "แถบบนบังแบนเนอร์"
   (admin bar สูง 32px จอใหญ่ / 46px จอเล็ก / ต่ำกว่า 600px แถบเลื่อนหายเอง = ไม่ต้องเผื่อ) */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* 1) Splash Bar — สีหลักหน่วยงาน (ส้ม มจธ.) */
.splash-bar { background: var(--iau-orange); color: #fff; font-size: 18px; }
.splash-bar .iau-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 30px; }
.splash-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; opacity: .92; transition: opacity .18s ease; }
.splash-bar a:hover { opacity: 1; }
.splash-bar .ext-ico { width: 15px; height: 15px; flex: none; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.splash-bar a:hover .ext-ico { transform: translate(2px, -2px); }

/* 2) แถวโลโก้ — เทาเข้มอมฟ้า #343A41 + เส้นล่างส้ม (ตาม kmutt.ac.th) */
.header-main { background: #343a41; border-bottom: 2px solid var(--iau-orange); }
/* padding บน-ล่างคือ clearspace ของตราสัญลักษณ์ตาม CI — ห้ามให้โลโก้ชนขอบแถบ */
.header-main .iau-wrap { display: flex; align-items: center; gap: 14px; min-height: 66px; padding-top: 8px; padding-bottom: 8px; }
.site-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; min-width: 0; }
.site-brand .brand-logo { height: 48px; width: auto; display: block; flex: none; }
.site-brand .title { font-weight: 500; font-size: 30px; line-height: 1.0; color: #fff; min-width: 0; }
.site-brand .title small { display: block; font-weight: 300; font-size: 18px; line-height: 1.15; margin-top: 3px; color: rgba(255,255,255,.75); }
/* จอแคบ: ตัด subtitle EN ออก + ลดโลโก้ — ชื่อหลักย่อบรรทัดเดียวด้วย data-fit-line ใน header.php */
@media (max-width: 700px) {
	.site-brand .brand-logo { height: 40px; }
	.site-brand .title small { display: none; }
}
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
/* สวิตช์ TH | EN — มุมขวาของแถวโลโก้ */
.lang-switch { display: flex; align-items: center; gap: 7px; font-size: 19px; font-weight: 500; }
.lang-switch__opt { color: rgba(255,255,255,.6); text-decoration: none; line-height: 1; padding: 3px 1px; transition: color .15s ease; }
.lang-switch__opt:hover { color: #fff; }
.lang-switch__opt.is-active { color: var(--iau-yellow); font-weight: 700; }
.lang-switch__sep { color: rgba(255,255,255,.32); font-weight: 300; }

/* 3) แถบเมนูหลัก — โคลนเมนู kmutt.ac.th (ปลั๊กอิน Max Mega Menu #mega-menu-primary) ให้เหมือนจริง
   • บาร์: เว็บหลักใช้ rgba(255,255,255,.3) ทับพื้นเข้ม → เรนเดอร์เป็นเทาอมฟ้า = โซลิด #626a74
   • เมนู: ตัวอักษรขาว "หนา" ชิดซ้าย (ไม่กึ่งกลาง) — ไม่มีเส้นใต้ส้ม (เมนูหลัก มจธ. ไม่ใช้ส้ม)
   • hover / หน้าปัจจุบัน: บล็อกขาวจาง ๆ (ไม่ใช่เส้นใต้ส้มแบบเดิม)
   • เมนูที่มีเมนูย่อย: มีลูกศร ⌄ ท้ายชื่อ (เทียบเท่า span.mega-indicator, dashicons \f140)
   • ดรอปดาวน์: พาเนลพื้นเข้มโทน มจธ. ลิงก์ขาว (เว็บหลักเป็นเมกะพาเนลโปร่งทับ hero) */
.menu-bar { background: #626a74; }
.menu-bar .iau-wrap { display: flex; align-items: stretch; min-height: 46px; padding: 0; }
.main-nav { width: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0; }
.main-nav li { position: relative; display: flex; }
.main-nav > ul > li > a { white-space: nowrap; }
.main-nav a {
	display: flex; align-items: center; gap: 4px;
	min-height: 46px; padding: 0 13px; line-height: 1;
	text-decoration: none; color: #fff; font-weight: 700; font-size: 24px;
	border: 0; transition: background .15s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-page-parent > a,
.main-nav .current-page-ancestor > a { background: rgba(255,255,255,.13); color: #fff; }
/* ลูกศรดรอปดาวน์ท้ายเมนูที่มีลูก (= span.mega-indicator ของ Max Mega Menu) */
.main-nav .menu-item-has-children > a::after {
	content: ""; flex: none; width: .46em; height: .46em; margin: -.16em 0 0 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); opacity: .9;
}
/* ดรอปดาวน์ (เมนูย่อย) — พื้นเข้มโทน มจธ. ลิงก์ขาว */
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 250px; background: rgba(47,50,53,.98);
	box-shadow: var(--iau-shadow); padding: 6px 0; margin: 0;
	display: none; flex-direction: column; gap: 0; z-index: 60;
}
.main-nav li:hover > .sub-menu { display: flex; }
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { min-height: 0; padding: 9px 18px; font-weight: 400; font-size: 20px; white-space: nowrap; }
.main-nav .sub-menu a:hover { background: rgba(255,255,255,.10); color: #fff; }
.main-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; }
.main-nav .sub-menu .sub-menu { position: static; box-shadow: none; padding: 0 0 0 14px; display: flex; background: transparent; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 9px 15px; font-size: 18px; cursor: pointer; white-space: nowrap; flex: none; }

/* ===== Hero slideshow (front page) ===== */
.hero-slider { position: relative; background: var(--iau-grey-dark); overflow: hidden; display: flex; flex-direction: column; }
.hero-media { position: relative; }
.hero-slider .slides { position: relative; width: 100%; aspect-ratio: 16 / 6; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-slider .slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slider .slide > a, .hero-slider .slide img { display: block; width: 100%; height: 100%; }
.hero-slider .slide img { object-fit: cover; }
.slide-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--iau-grey) 0%, var(--iau-grey-dark) 100%); }
.slide-ph .ph-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255,255,255,.55); border: 2px dashed rgba(255,255,255,.22); border-radius: 16px; padding: 28px 44px; }
.slide-ph svg { width: 42px; height: 42px; }
.slide-ph span { font-size: 24px; font-weight: 600; letter-spacing: .2px; }
.hero-dotsbar { position: relative; z-index: 3; flex: none; display: flex; justify-content: center; align-items: center; padding: 10px 0; background: var(--iau-grey-dark); }
.slider-dots { display: flex; justify-content: center; align-items: center; gap: 9px; }
.slider-dots .dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.45); transition: background .2s ease, width .2s ease; }
.slider-dots .dot.is-active { background: #fff; width: 26px; }
@media (max-width: 700px) {
	.hero-slider .slides { aspect-ratio: 16 / 11; }
	.slide-ph .ph-inner { padding: 20px 26px; }
	.slide-ph span { font-size: 24px; }
}

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 12px 22px; border-radius: 4px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--iau-orange); color: #fff; }
.btn-primary:hover { background: var(--iau-orange-deep); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--iau-grey); color: var(--iau-grey-dark); }
.btn-outline:hover { background: rgba(75,79,84,.08); border-color: var(--iau-grey-dark); }
.btn:focus-visible, .btn-textlink:focus-visible, a.card:focus-visible, .cta-door:focus-visible, .dot:focus-visible, .more-link:focus-visible, .home .lx-title a:focus-visible, .home a.act-tile:focus-visible, .rail-dot:focus-visible, .home .reel-btn:focus-visible, .home .kcal-nav:focus-visible, .page-cal .kcal-nav:focus-visible, .home button.kcal-day:focus-visible, .home .kcal-ev__link:focus-visible, .page-cal .kcal-ev__link:focus-visible { outline: 2px solid var(--iau-orange); outline-offset: 2px; }

/* ============================================================
   THE LEDGER — front page design system (scoped to .home for
   shared classes so inner templates stay untouched this round)
   ============================================================ */

/* Kicker — numbered section label (signature) */
.kicker { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: 1.6px; color: var(--iau-muted); margin: 0; }
.kicker__idx { color: var(--iau-orange); }
.kicker__tick { width: 20px; height: 2px; background: var(--iau-orange); border-radius: 2px; flex: none; }
.kicker__label { color: var(--iau-muted); }

/* Hero masthead: scrim + tagline overlay; dots live in their own thin bar below (.hero-dotsbar) */
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(47,50,53,.82) 0%, rgba(47,50,53,.5) 38%, rgba(47,50,53,0) 66%),
	            linear-gradient(0deg, rgba(47,50,53,.55) 0%, rgba(47,50,53,0) 40%); }
.hero-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; pointer-events: none; }
.hero-kicker { color: var(--iau-yellow); font-size: 24px; font-weight: 700; letter-spacing: 1.6px; margin: 0 0 12px; }
.hero-tagline { color: #fff; font-size: 40px; line-height: 1.14; font-weight: 800; letter-spacing: -.3px; margin: 0; max-width: 660px; text-shadow: 0 1px 14px rgba(0,0,0,.3); }

/* Empty slide state → borderless line-work on the grey masthead */
.slide-ph .ph-inner { border: 0; padding: 0; gap: 12px; color: rgba(255,255,255,.5); }

/* Section rhythm + display headings (home only) */
.home .section { padding: 64px 0; }
.home .section h2 { font-size: 40px; line-height: 1.12; letter-spacing: -.3px; color: var(--iau-text); margin: 8px 0 0; }
.home .section .lead { font-size: 24px; color: var(--iau-muted); margin: 8px 0 34px; max-width: 64ch; }

/* Services — table of contents */
.home .services .svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home .card.svc { position: relative; box-shadow: none; transition: border-color .16s ease; }
.home a.card.svc:hover { transform: none; box-shadow: none; border-color: var(--iau-orange); }
.home .card.svc .ico { width: 44px; height: 44px; display: flex; align-items: center; color: var(--iau-muted); background: none; border-radius: 0; padding: 0; margin-bottom: 12px; transition: color .16s ease; }
.home a.card.svc:hover .ico { color: var(--iau-orange); }
.home .card.svc h3 { font-size: 30px; font-weight: 700; color: var(--iau-text); margin: 0 0 4px; }
.home .card.svc p { font-size: 24px; color: var(--iau-muted); margin: 0; }
.home .svc-num { position: absolute; top: 18px; right: 20px; font-size: 24px; font-weight: 700; letter-spacing: 1px; color: #c2c5c9; }
.home .card.svc--featured { border-top: 3px solid var(--iau-orange); display: flex; align-items: flex-start; gap: 20px; padding: 26px; margin-bottom: 12px; }
.home .card.svc--featured .ico { width: 40px; height: 40px; color: var(--iau-orange); margin: 2px 0 0; flex: none; }
.home .card.svc--featured .svc-body { flex: 1; }
.home .card.svc--featured h3 { font-size: 34px; }
.home .svc-arrow { color: #c2c5c9; align-self: center; display: flex; transition: transform .16s ease, color .16s ease; }
.home a.card.svc--featured:hover .svc-arrow { color: var(--iau-orange); transform: translateX(3px); }

/* Movement — editorial news + document register */
.home .move-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 4px; }
.home .move-col { padding-right: 40px; }
.home .move-col--r { padding-right: 0; padding-left: 40px; border-left: 1px solid var(--iau-hairline); }
.home .col-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.home .col-title { font-size: 24px; font-weight: 700; color: var(--iau-text); margin: 0; }
.home .more-link { font-size: var(--iau-fs-meta); font-weight: 700; color: var(--iau-orange-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.home .more-link svg { transition: transform .16s ease; }
.home .more-link:hover svg { transform: translateX(3px); }
.home .lx-news { padding: 18px 0; border-bottom: 1px solid var(--iau-hairline); }
.home .lx-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.home .lx-date { font-size: 24px; color: var(--iau-muted); }
.home .lx-chip { font-size: 24px; font-weight: 700; padding: 3px 10px; border-radius: 4px; white-space: nowrap; }
.home .lx-chip--news { background: var(--iau-orange-deep); color: #fff; }
.home .lx-chip--doc { background: #ffe9ad; color: var(--iau-grey); }
.home .lx-title { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.home .lx-title a { color: var(--iau-text); text-decoration: none; }
.home .lx-title a:hover { color: var(--iau-orange-deep); }
.home .lx-excerpt { margin: 5px 0 0; font-size: 24px; color: var(--iau-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home .lx-doc { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--iau-hairline); }
.home .lx-fic { color: var(--iau-muted); flex: none; display: flex; }
.home .lx-doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.home .lx-doc-title { font-size: 24px; font-weight: 700; color: var(--iau-text); overflow-wrap: anywhere; }
.btn-textlink { color: var(--iau-orange-deep); font-weight: 700; font-size: var(--iau-fs-meta); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.btn-textlink svg { transition: transform .16s ease; }
.btn-textlink:hover svg { transform: translateY(2px); }

/* Activities strip */
.home .act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 6px; }
.home .act-tile { text-decoration: none; display: block; }
.home .act-thumb { aspect-ratio: 4/3; background: var(--iau-bg); border: 1px solid var(--iau-border); border-radius: var(--iau-radius); overflow: hidden; display: grid; place-items: center; color: #c2c5c9; }
.home .act-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home .act-cap { padding: 10px 2px 0; }
.home .act-date { display: block; font-size: 24px; color: var(--iau-muted); margin-bottom: 2px; }
.home .act-title { font-size: 30px; font-weight: 700; color: var(--iau-text); line-height: 1.3; }
.home a.act-tile:hover .act-title { color: var(--iau-orange-deep); }

/* CTA band — two doors (the single color moment, bridges into footer) */
.cta-band { background: var(--iau-grey-dark); padding-top: 54px; }
.cta-head { padding-bottom: 22px; }
.cta-band .kicker__idx, .cta-band .kicker__label { color: var(--iau-yellow); }
.cta-band .kicker__tick { background: var(--iau-yellow); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cta-door { padding: 44px 44px; text-decoration: none; display: block; position: relative; overflow: hidden; }
.cta-door--o { padding-left: max(20px, calc(50vw - var(--iau-max)/2 + 20px)); }
.cta-door--g { padding-right: max(20px, calc(50vw - var(--iau-max)/2 + 20px)); border-left: 1px solid rgba(255,255,255,.15); }
.cta-door--photo.cta-door--o { background:
	linear-gradient(115deg, rgba(20,16,30,.92) 0%, rgba(20,16,30,.62) 46%, rgba(211,70,30,.55) 100%),
	radial-gradient(120% 140% at 15% 15%, #4a2a3a 0%, #1c1420 55%, #120e16 100%); }
.cta-door--photo.cta-door--g { background:
	linear-gradient(115deg, rgba(15,17,20,.94) 0%, rgba(15,17,20,.68) 46%, rgba(60,90,90,.45) 100%),
	radial-gradient(120% 140% at 85% 15%, #24312f 0%, #171d1f 55%, #101314 100%); }
.cta-door__watermark { position: absolute; right: -18px; bottom: -22px; color: rgba(255,255,255,.08); pointer-events: none; line-height: 0; }
.cta-door--g .cta-door__watermark { right: auto; left: -18px; }
.cta-door .ico, .cta-door h3, .cta-door p, .cta-door .cta-btn { position: relative; z-index: 1; }
.cta-door .ico { color: #fff; margin-bottom: 14px; display: flex; }
.cta-door h3 { color: #fff; font-size: var(--iau-fs-title); font-weight: var(--iau-fw-emphasis); margin: 0 0 8px; }
.cta-door p { color: rgba(255,255,255,.9); font-size: var(--iau-fs-small); line-height: 1.55; margin: 0 0 18px; max-width: 44ch; }
.cta-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--iau-text); font-weight: 700; font-size: var(--iau-fs-meta); padding: 11px 20px; border-radius: 4px; }
.cta-btn svg { transition: transform .16s ease; }
.cta-door:hover .cta-btn svg { transform: translateX(3px); }
.cta-btn--ghost { background: var(--iau-orange); color: #fff; border: 0; }
.home .site-footer { margin-top: 0; }

/* Motion — guarded; ticks + Ken-Burns only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
	.kicker__tick { width: 0; }
	.kicker.is-in .kicker__tick { width: 20px; transition: width .3s ease .05s; }
}

/* Responsive */
@media (max-width: 900px) {
	.home .services .svc-grid { grid-template-columns: repeat(2, 1fr); }
	.home .act-grid { grid-template-columns: repeat(2, 1fr); }
	.home .move-grid { grid-template-columns: 1fr; }
	.home .move-col { padding-right: 0; }
	.home .move-col--r { padding-left: 0; border-left: 0; border-top: 1px solid var(--iau-hairline); margin-top: 6px; padding-top: 10px; }
	.cta-grid { grid-template-columns: 1fr; }
	.cta-door--g { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
	.hero-tagline { font-size: 30px; }
	.home .section h2 { font-size: 30px; }
}
@media (max-width: 560px) {
	.home .services .svc-grid { grid-template-columns: 1fr; }
	.home .card.svc--featured { flex-direction: column; gap: 12px; }
	.home .card.svc--featured .svc-arrow { display: none; }
	.hero-tagline { font-size: 25px; }
	.home .section { padding: 40px 0; }
	.cta-door { padding: 34px 22px; }
}

/* ===== Sections / cards ===== */
.section { padding: 46px 0; }
.section h2 { font-size: 31px; color: var(--iau-navy); margin: 0 0 6px; }
.section .lead { color: var(--iau-muted); margin: 0 0 26px; }
.grid { display: grid; gap: 18px; }
/* minmax(0,1fr): กันคอลัมน์ถ่างตาม min-content ของลูก (เช่นข้อความ nowrap ของ [data-fit-line]) */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: var(--iau-radius); padding: 22px; box-shadow: var(--iau-shadow); text-decoration: none; color: inherit; display: block; transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20,40,75,.14); }
.card .ico { width: 46px; height: 46px; border-radius: 10px; background: var(--iau-bg); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 30px; color: var(--iau-navy); }
.card p { margin: 0; color: var(--iau-muted); font-size: 24px; }
.card--accent { border-top: 4px solid var(--iau-orange); }

/* ===== Page layout with section subnav ===== */
.page-head { background: var(--iau-navy); color: #fff; padding: 34px 0; }
.page-head h1 { margin: 0; font-size: 36px; }
.breadcrumb { font-size: 24px; opacity: .85; margin-bottom: 8px; }
.breadcrumb a { color: #fff; }
.page-body { display: grid; grid-template-columns: 250px 1fr; gap: 34px; padding: 40px 0; }
.subnav { background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: var(--iau-radius); padding: 10px; height: max-content; }
.subnav a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--iau-navy); font-weight: 600; font-size: 24px; }
.subnav a:hover, .subnav a.active { background: var(--iau-bg); color: var(--iau-orange-deep); }
.content { font-size: 24px; line-height: 1.9; letter-spacing: .01em; color: var(--iau-text); }
.content :is(h2,h3) { color: var(--iau-navy); letter-spacing: .01em; }
.content h2 { margin: 34px 0 14px; line-height: 1.4; font-size: 36px; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 26px 0 10px; line-height: 1.4; font-size: 30px; }
.content p { margin: 0 0 18px; }
.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; }
.content li { margin-bottom: 10px; line-height: 1.85; }
.content li:last-child { margin-bottom: 0; }
.content strong { letter-spacing: .01em; }

/* ===== News / list items ===== */
/* การ์ดข่าว: รูป Featured (ถ้ามี) ชิดซ้าย + เนื้อหาขวา — จอแคบซ้อนรูปไว้บน
   ทั้งการ์ดกดได้ (ลิงก์หัวข้อขยายคลุมผ่าน ::after) — ลิงก์หมวดหมู่ยก z-index ให้ยังกดแยกได้ */
.news-item { position: relative; display: flex; align-items: stretch; background: var(--iau-surface); border: 1px solid var(--iau-border); border-left: 4px solid var(--iau-orange); border-radius: 10px; margin-bottom: 14px; overflow: hidden; transition: box-shadow .12s ease, transform .12s ease; }
.news-item:hover { box-shadow: 0 8px 20px rgba(20,40,75,.12); transform: translateY(-2px); }
.news-item h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-item .date a { position: relative; z-index: 2; }
.news-thumb { flex: none; width: 264px; background: var(--iau-bg); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 18px 22px; min-width: 0; }
.news-item .date { color: var(--iau-muted); font-size: 24px; }
.news-item .date a { color: var(--iau-orange-deep); }
.news-item h3 { margin: 4px 0 6px; font-size: 30px; }
.news-item h3 a { text-decoration: none; color: var(--iau-navy); }
.news-item h3 a:hover { color: var(--iau-orange-deep); }
.news-item p { margin: 4px 0 0; color: var(--iau-muted); line-height: 1.65; }
@media (max-width: 680px) {
	.news-item { flex-direction: column; }
	.news-thumb { width: 100%; aspect-ratio: 16 / 9; }
}

/* ===== Staff grid ===== */
.staff-card { text-align: center; }
.staff-card .photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; background: var(--iau-bg); display: grid; place-items: center; font-size: 40px; color: var(--iau-muted); }
.staff-card .pos { color: var(--iau-orange-deep); font-weight: 600; font-size: 24px; }
.staff-card .contact { color: var(--iau-muted); font-size: 24px; margin-top: 6px; }
.group-title { color: var(--iau-navy); border-left: 5px solid var(--iau-orange); padding-left: 12px; margin: 30px 0 16px; }

/* ===== Document list ===== */
.doc-row { display: flex; align-items: center; gap: 16px; background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.doc-row .doc-ico { font-size: 26px; }
.doc-row .doc-main { flex: 1; }
.doc-row .doc-main strong { font-size: 30px; }
.doc-row .doc-main .type { color: var(--iau-muted); font-size: 24px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-item .ico { font-size: 22px; }
.map-embed iframe { width: 100%; height: 340px; border: 0; border-radius: var(--iau-radius); }

/* ติดต่อเรา — section ปิดท้ายหน้าแรก */
.home .ksec--contact .contact-grid { align-items: start; }
.home .ksec--contact .contact-item .ico { color: var(--iau-orange); display: inline-flex; flex: 0 0 auto; }
.home .ksec--contact .contact-item strong { color: var(--iau-text); }
.home .ksec--contact .contact-info a { color: var(--iau-text); text-decoration: none; }
.home .ksec--contact .contact-info a:hover { color: var(--iau-orange-deep); text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--iau-navy); color: #cdd6e4; margin-top: 40px; padding: 36px 0 22px; scroll-margin-top: var(--iau-head); }
.site-footer .foot-kicker { color: rgba(255,255,255,.55); font-size: 17px; letter-spacing: .06em; margin: 0 0 18px; }
.site-footer .foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; }
.site-footer .foot-org h4 { margin: 0 0 8px; font-size: 26px; }
.site-footer .foot-org p { margin: 0; }
.site-footer .foot-reach p { margin: 0 0 14px; }
.site-footer .foot-lbl { color: rgba(255,255,255,.5); font-size: 16px; letter-spacing: .04em; }
.site-footer .foot-social { margin: 0; }
.site-footer .foot-social a { display: inline-flex; color: #cdd6e4; }
.site-footer .foot-social a:hover { color: var(--iau-yellow); }
@media (max-width: 680px) { .site-footer .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 18px; }
.site-footer a { color: #cdd6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 26px; padding-top: 16px; font-size: 13px; opacity: .8; }
/* หน้าแรกไม่มีบล็อกติดต่อใน footer (มี section แล้ว) — footer เหลือแค่บรรทัดลิขสิทธิ์ */
.home .site-footer { padding: 22px 0; }
.home .site-footer .copy { border-top: 0; margin-top: 0; padding-top: 0; }

/* ===== สถิติผู้เข้าชม — อยู่ในบรรทัดลิขสิทธิ์ (section สุดท้ายของ footer) ===== */
.site-footer .foot-visits { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: auto; }
.site-footer .foot-visits svg { flex: none; width: 14px; height: 14px; color: var(--iau-yellow); }

/* ===== แชทให้คำปรึกษา — widget ลอยมุมขวาล่าง (เฉพาะหน้า /consulting/) ===== */
.iau-chat-fab {
	position: fixed; right: 20px; bottom: 20px; z-index: 45;
	width: 56px; height: 56px; border-radius: 50%; border: 0;
	background: var(--iau-orange); color: #fff; display: grid; place-items: center;
	box-shadow: var(--iau-shadow); cursor: pointer;
}
.iau-chat-fab:hover { background: var(--iau-orange-deep); }
.iau-chat-dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--iau-yellow); border: 2px solid #fff; }
.iau-chat-panel {
	position: fixed; right: 20px; bottom: 88px; z-index: 45;
	width: min(340px, calc(100vw - 40px)); height: min(460px, calc(100vh - 140px));
	background: var(--iau-surface); border-radius: var(--iau-radius-lg); box-shadow: var(--iau-shadow);
	display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--iau-border);
}
.iau-chat-panel-head { background: var(--iau-grey-dark); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.iau-chat-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.iau-chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.iau-chat-msg { display: flex; }
.iau-chat-msg--staff { justify-content: flex-start; }
.iau-chat-msg--visitor { justify-content: flex-end; }
.iau-chat-bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.iau-chat-msg--staff .iau-chat-bubble { background: var(--iau-bg); color: var(--iau-text); border-bottom-left-radius: 4px; }
.iau-chat-msg--visitor .iau-chat-bubble { background: var(--iau-orange); color: #fff; border-bottom-right-radius: 4px; }
.iau-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--iau-border); }
.iau-chat-form textarea { flex: 1; resize: none; border: 1px solid var(--iau-border); border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 14px; max-height: 80px; }
.iau-chat-form button { background: var(--iau-orange); color: #fff; border: 0; border-radius: 8px; width: 40px; flex: none; display: grid; place-items: center; cursor: pointer; }
.iau-chat-form button:hover { background: var(--iau-orange-deep); }
.iau-chat-widget [hidden] { display: none !important; }
@media (max-width: 480px) { .iau-chat-panel { right: 10px; bottom: 84px; } .iau-chat-fab { right: 14px; bottom: 14px; } }

/* ===== Notice banner (สำหรับ placeholder เมนูที่ยังไม่ทำระบบ) ===== */
.iau-notice { background: #fff8ef; border: 1px dashed var(--iau-orange); border-radius: 10px; padding: 18px 20px; color: #7a4a12; }

/* ===== Forms ===== */
.iau-form { background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: var(--iau-radius); padding: 22px; box-shadow: var(--iau-shadow); }
.iau-form label { font-weight: 600; color: var(--iau-navy); font-size: 24px; }
.iau-form input[type=text], .iau-form input[type=email], .iau-form input[type=url], .iau-form textarea, .iau-form select {
	width: 100%; padding: 11px 13px; border: 1px solid var(--iau-border); border-radius: 14px; font-family: inherit; font-size: 24px; margin-top: 5px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
/* แนบไฟล์: ซ่อน input จริง (ปุ่ม native ใหญ่เกะกะ) ใช้ label เป็นปุ่มเล็ก ๆ ตามโทนปุ่ม CI เทา→ส้ม */
.iau-form .iau-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.iau-form .iau-file-picker { display: flex; align-items: center; gap: 12px; margin-top: 6px; min-width: 0; }
.iau-form .iau-file-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 7px 16px; border: 1px solid var(--iau-border); border-radius: 4px; background: var(--iau-bg); color: var(--iau-text); font-weight: 600; font-size: 20px; cursor: pointer; transition: border-color .12s ease, color .12s ease, background .12s ease; }
.iau-form .iau-file-btn:hover { border-color: var(--iau-orange); color: var(--iau-orange-deep); background: var(--iau-orange-wash); }
.iau-form .iau-file-picker:focus-within .iau-file-btn { border-color: var(--iau-orange); box-shadow: 0 0 0 4px rgba(250,70,22,.14); }
.iau-form .iau-file-names { color: var(--iau-muted); font-size: 18px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iau-form input:focus, .iau-form textarea:focus, .iau-form select:focus { outline: none; border-color: var(--iau-orange); box-shadow: 0 0 0 4px rgba(250,70,22,.14); }
.iau-form input[type=checkbox] { width: 18px; height: 18px; margin-right: 8px; accent-color: var(--iau-orange); vertical-align: -3px; }
.iau-form .btn { border: 0; cursor: pointer; font-family: inherit; font-size: 24px; display: inline-flex; align-items: center; gap: 8px; }
.iau-form .btn svg { flex: none; }

/* field icons — pencil/list/calendar glyph anchored inside each input */
.iau-field-input { position: relative; display: block; margin-top: 5px; }
.iau-field-input input, .iau-field-input select, .iau-field-input textarea { margin-top: 0; padding-left: 42px; }
.iau-field-input svg { position: absolute; left: 13px; top: 15px; color: var(--iau-muted); pointer-events: none; }

.iau-notice svg { vertical-align: -4px; margin-right: 2px; }
.iau-form-hint { display: flex; align-items: flex-start; gap: 7px; color: var(--iau-muted); font-size: 14px; margin-top: 10px; }
.iau-form-hint svg { flex: none; margin-top: 2px; color: var(--iau-orange); }

/* ===== Tabs (complaint: submit / status) ===== */
.iau-tab-nav { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--iau-border); }
.iau-tab-btn { appearance: none; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-family: inherit; font-size: 24px; font-weight: 700; color: var(--iau-muted); padding: 10px 18px; border-radius: 4px 4px 0 0; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.iau-tab-btn:hover { color: var(--iau-orange-deep); background: var(--iau-orange-wash); }
.iau-tab-btn.is-active { color: var(--iau-orange-deep); border-bottom-color: var(--iau-orange); }
.iau-tab-btn:focus-visible { outline: 2px solid var(--iau-orange); outline-offset: 2px; }
.iau-tab-panel { display: none; }
.iau-tab-panel.is-active { display: block; }

/* ===== Whistleblowing — soft illustrated intro panel ===== */
.wb-panel { position: relative; background: radial-gradient(circle at 88% 4%, rgba(255,199,44,.22), transparent 50%), linear-gradient(175deg, var(--iau-orange-wash) 0%, rgba(255,199,44,.06) 100%); border: 1px solid var(--iau-border); border-radius: 28px; padding: 34px 30px; box-shadow: 0 20px 44px rgba(250,70,22,.12), 0 2px 10px rgba(47,50,53,.05); }
.wb-panel .content { color: var(--iau-text); }
.wb-illus { position: relative; width: 208px; height: 208px; margin: 0 auto 26px; display: grid; place-items: center; }
.wb-illus-blob { position: absolute; inset: 0; border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; background: radial-gradient(circle at 32% 26%, #fff 0%, var(--iau-yellow-wash) 45%, rgba(250,70,22,.18) 100%); box-shadow: 0 14px 30px rgba(250,70,22,.22); animation: wb-blob-float 7s ease-in-out infinite; }
.wb-illus-scene { position: relative; width: 78%; height: 78%; }
.wb-illus-dot { position: absolute; border-radius: 50%; }
.wb-illus-dot--a { width: 14px; height: 14px; top: 2px; left: 6px; background: var(--iau-yellow); box-shadow: 0 3px 8px rgba(255,199,44,.5); }
.wb-illus-dot--b { width: 9px; height: 9px; top: 30px; right: -6px; background: var(--iau-orange); }
.wb-illus-dot--c { width: 7px; height: 7px; bottom: 14px; left: -8px; background: var(--iau-bluegrey); }
@keyframes wb-blob-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .wb-illus-blob { animation: none; } }

.iau-check-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.iau-check-list li { display: flex; align-items: flex-start; gap: 12px; background: rgba(255,255,255,.72); border-radius: 14px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(47,50,53,.05); }
.iau-check-list li svg { flex: none; margin-top: 2px; color: var(--iau-orange); background: #fff; border-radius: 50%; padding: 3px; box-shadow: var(--iau-shadow); }

.wb-trust { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed rgba(250,70,22,.3); color: var(--iau-muted); font-size: 24px; line-height: 1.6; }
.wb-trust svg { flex: none; margin-top: 2px; color: var(--iau-orange); }

/* ===== Consulting — intro banner + illustrated form panel ===== */
.iau-intro-banner { position: relative; display: flex; align-items: flex-start; gap: 16px; background: radial-gradient(circle at 92% 0%, rgba(255,199,44,.28), transparent 55%), linear-gradient(135deg, var(--iau-yellow-wash), var(--iau-orange-wash)); border: 1px solid var(--iau-border); border-radius: 24px; padding: 24px 26px; margin-bottom: 28px; box-shadow: 0 16px 34px rgba(250,70,22,.1), 0 2px 8px rgba(47,50,53,.05); }
.iau-intro-banner svg { flex: none; color: var(--iau-orange-deep); background: #fff; border-radius: 50%; padding: 8px; box-shadow: var(--iau-shadow); }
.iau-intro-banner .content { margin: 0; }
.iau-intro-banner .content p { margin: 0; }

.qa-panel { background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: 26px; padding: 28px; box-shadow: 0 18px 38px rgba(250,70,22,.08), 0 2px 10px rgba(47,50,53,.05); }
.qa-panel .iau-form { border: 0; padding: 0; box-shadow: none; background: transparent; }
.qa-illus { position: relative; width: 190px; height: 190px; margin: 0 0 18px; display: grid; place-items: center; }
.qa-illus-blob { position: absolute; inset: 0; border-radius: 58% 42% 35% 65% / 55% 60% 40% 45%; background: radial-gradient(circle at 32% 26%, #fff 0%, var(--iau-yellow-wash) 50%, rgba(250,70,22,.16) 100%); box-shadow: 0 12px 26px rgba(250,70,22,.2); animation: wb-blob-float 8s ease-in-out infinite reverse; }
.qa-illus-scene { position: relative; width: 78%; height: 78%; }
.qa-illus-dot { position: absolute; border-radius: 50%; }
.qa-illus-dot--a { width: 12px; height: 12px; top: -2px; right: 8px; background: var(--iau-yellow); box-shadow: 0 3px 8px rgba(255,199,44,.5); }
.qa-illus-dot--b { width: 8px; height: 8px; bottom: 8px; right: -6px; background: var(--iau-orange); }
.qa-illus-dot--c { width: 7px; height: 7px; bottom: 22px; left: -8px; background: var(--iau-bluegrey); }
@media (prefers-reduced-motion: reduce) { .qa-illus-blob { animation: none; } }

/* ===== QA cards (FAQ accordion) ===== */
.qa-card { border-radius: 18px; padding: 18px 20px; transition: box-shadow .15s ease, border-color .15s ease; }
.qa-card:hover { border-color: rgba(250,70,22,.35); box-shadow: 0 10px 22px rgba(250,70,22,.1); }
.qa-card-summary { cursor: pointer; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--iau-navy); list-style: none; }
.qa-card-summary::-webkit-details-marker { display: none; }
.qa-card-summary::after { content: "+"; margin-left: auto; flex: none; color: var(--iau-orange); font-size: 26px; font-weight: 700; line-height: 1; transition: transform .15s ease; }
.qa-card[open] .qa-card-summary::after { transform: rotate(45deg); }
.qa-badge { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.qa-badge--q { background: var(--iau-orange); }
.qa-badge--a { background: var(--iau-grey); margin-top: 2px; }
.qa-card-body { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--iau-hairline); }
.qa-card-q { margin: 0; }
.qa-card-a { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.qa-card-a > div { flex: 1; }

/* ===== Staff directory ===== */
.staff-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 6px 0 22px; }
.staff-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-tabs button { border: 1px solid var(--iau-border); background: var(--iau-surface); color: var(--iau-navy); font-family: inherit; font-size: 24px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.staff-tabs button:hover { border-color: var(--iau-orange); }
.staff-tabs button.active { background: var(--iau-orange); color: #fff; border-color: var(--iau-orange); }
.staff-search { border: 1px solid var(--iau-border); border-radius: 999px; padding: 10px 18px; font-family: inherit; font-size: 24px; min-width: 260px; background: #fff; }
.staff-search:focus { outline: 2px solid var(--iau-orange); border-color: var(--iau-orange); }
.staff-card2 { text-align: left; }
.staff-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.staff-avatar { width: 52px; height: 52px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 24px; display: grid; place-items: center; }
.staff-badge { background: var(--iau-bg); color: var(--iau-muted); font-size: 24px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.staff-card2 h3 { margin: 0 0 3px; font-size: 30px; color: var(--iau-navy); }
.staff-card2 .pos { color: var(--iau-muted); font-size: 24px; margin-bottom: 12px; }
.staff-lines { border-top: 1px solid var(--iau-border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 24px; }
.staff-lines a { color: var(--iau-orange-deep); text-decoration: none; word-break: break-all; }
.staff-lines span { color: var(--iau-muted); }

/* ===== People directory — profile cards (รูปด้านบน + ข้อมูลด้านล่าง) ใต้แผนผังโครงสร้างในหน้า /people/ =====
   สัดส่วนสี CI 85/10/5: หมวดหัวหน้า=ส้ม (10%) · ผู้ตรวจสอบ=เทา (85%) · งานทั่วไป=เหลือง (5%, เฉพาะเส้น/ป้าย) */
.iau-people { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--iau-hairline); scroll-margin-top: 16px; }
.iau-people .ppl-head { margin: 0 0 6px; }
.iau-people .ppl-kicker { display: flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 700; letter-spacing: 2px; color: var(--iau-muted); text-transform: uppercase; margin: 0 0 12px; }
.iau-people .ppl-kicker::before { content: ""; width: 24px; height: 2px; background: var(--iau-orange); border-radius: 2px; flex: none; }
.iau-people .ppl-title { font-size: 36px; line-height: 1.15; font-weight: 800; color: var(--iau-text); margin: 0; }
.iau-people .ppl-sub { color: var(--iau-muted); font-size: 24px; line-height: 1.5; margin: 8px 0 0; max-width: 70ch; }

/* --- Category section --- */
.iau-people .ppl-group { margin-top: 36px; scroll-margin-top: 16px; }
.iau-people .ppl-grp-head { display: flex; align-items: center; gap: 15px; padding-bottom: 12px; margin-bottom: 22px; border-bottom: 2px solid var(--iau-border); position: relative; }
.iau-people .ppl-grp-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--grp-color, var(--iau-orange)); }
.iau-people .ppl-grp-bar { width: 5px; align-self: stretch; min-height: 38px; border-radius: 2px; background: var(--grp-color, var(--iau-orange)); flex: none; }
.iau-people .ppl-grp-meta { flex: 1; min-width: 0; }
.iau-people .ppl-grp-eyebrow { display: block; font-size: 24px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--iau-muted); margin: 0 0 2px; }
.iau-people .ppl-grp-name { font-size: 30px; font-weight: 800; color: var(--iau-text); margin: 0; line-height: 1.2; }
.iau-people .ppl-grp-count { font-size: 24px; font-weight: 700; color: var(--iau-muted); background: var(--iau-bg); border: 1px solid var(--iau-border); padding: 5px 12px; border-radius: 6px; white-space: nowrap; align-self: center; }

/* --- Roster grid (3 → 2 → 1) --- */
.iau-people .ppl-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.iau-people .ppl-grid .ppl-card { flex: 0 1 calc((100% - 40px) / 3); max-width: calc((100% - 40px) / 3); }

/* --- Card --- */
.iau-people .ppl-card { position: relative; background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: var(--iau-radius-lg); box-shadow: var(--iau-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--iau-dur-s) var(--iau-ease), box-shadow var(--iau-dur-s) var(--iau-ease), border-color var(--iau-dur-s) var(--iau-ease); }
.iau-people .ppl-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(47,50,53,.14); border-color: var(--card-color, var(--iau-border)); }

/* --- Photo band (จตุรัส 1:1 รองรับรูปจริงภายหลัง) --- */
.iau-people .ppl-photo { position: relative; aspect-ratio: 1 / 1; width: 100%; display: grid; place-items: center; overflow: hidden; background: var(--tone, var(--iau-grey)); }
@supports (background: color-mix(in srgb, red, blue)) {
	.iau-people .ppl-photo { background: radial-gradient(120% 120% at 78% 12%, rgba(255,255,255,.16), rgba(255,255,255,0) 55%), linear-gradient(158deg, var(--tone, var(--iau-grey)), color-mix(in srgb, var(--tone, var(--iau-grey)) 78%, var(--iau-grey-dark))); }
}
.iau-people .ppl-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,.16)); }
.iau-people .ppl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: 3; }
.iau-people .ppl-silhouette { position: absolute; bottom: -7%; left: 50%; transform: translateX(-50%); width: 72%; height: auto; opacity: .16; color: #fff; z-index: 0; }
.iau-people .ppl-mono { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.iau-people .ppl-mono-k { font-size: 52px; font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.iau-people .ppl-mono-ring { width: 42px; height: 1px; background: rgba(255,255,255,.42); }
.iau-people .ppl-photo.has-img .ppl-mono, .iau-people .ppl-photo.has-img .ppl-silhouette { display: none; }

/* --- ตำแหน่งว่าง (อยู่ระหว่างการสรรหา) --- */
.iau-people .ppl-card--vacant { border-style: dashed; box-shadow: none; }
.iau-people .ppl-card--vacant .ppl-photo { background: var(--iau-bg); }
.iau-people .ppl-card--vacant .ppl-photo::after { display: none; }
.iau-people .ppl-vacant { position: relative; z-index: 2; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--iau-muted) 55%, transparent); color: var(--iau-muted); }
.iau-people .ppl-vacant svg { width: 38px; height: 38px; opacity: .85; }
.iau-people .ppl-card--vacant .ppl-name { color: var(--iau-muted); font-weight: 700; font-style: italic; margin: 0; }

/* --- Info body (ชิดซ้าย, ลำดับชั้นชัด) --- */
.iau-people .ppl-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.iau-people .ppl-name { font-size: 24px; font-weight: 800; color: var(--iau-text); margin: 0 0 12px; line-height: 1.3; }
.iau-people .ppl-lines { border-top: 1px solid var(--iau-hairline); padding-top: 13px; margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.iau-people .ppl-line { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 6px; }
.iau-people .ppl-lbl { font-size: 20px; line-height: 1; color: var(--iau-muted); }
.iau-people .ppl-val { font-size: 24px; color: var(--iau-text); min-width: 0; display: flex; align-items: center; gap: 4px; }
.iau-people .ppl-val a { color: var(--iau-orange-deep); text-decoration: none; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--iau-dur-s) var(--iau-ease); }
.iau-people .ppl-card:hover .ppl-val a { color: var(--iau-orange); }
.iau-people .ppl-val a:hover { text-decoration: underline; text-underline-offset: 2px; }
.iau-people .ppl-val--tel a { color: var(--iau-text); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.iau-people .ppl-val--tel a:hover { color: var(--iau-orange); }

/* --- Copy-email affordance (progressive enhancement — ซ่อนไว้จนกว่า JS จะเปิด) --- */
.iau-people .ppl-copy { display: none; border: 0; background: transparent; padding: 2px; margin-left: 2px; cursor: pointer; color: var(--iau-bluegrey); line-height: 0; border-radius: 4px; flex: none; transition: color var(--iau-dur-s) var(--iau-ease); }
.iau-people.has-copy .ppl-copy { display: inline-flex; }
.iau-people .ppl-copy:hover { color: var(--iau-orange); }
.iau-people .ppl-copy:focus-visible { outline: 2px solid var(--iau-orange); outline-offset: 2px; }
.iau-people .ppl-copy svg { width: 14px; height: 14px; }
.iau-people .ppl-copy .ic-check { display: none; }
.iau-people .ppl-copy.is-copied { color: var(--iau-orange); }
.iau-people .ppl-copy.is-copied .ic-copy { display: none; }
.iau-people .ppl-copy.is-copied .ic-check { display: inline; }

/* --- Responsive --- */
@media (max-width: 900px) { .iau-people .ppl-grid .ppl-card { flex-basis: calc((100% - 20px) / 2); max-width: calc((100% - 20px) / 2); } }
@media (max-width: 680px) { .iau-people .ppl-grid .ppl-card { flex-basis: calc((100% - 20px) / 2); max-width: calc((100% - 20px) / 2); } .iau-people .ppl-title { font-size: 31px; } }
@media (max-width: 460px) { .iau-people .ppl-grid .ppl-card { flex-basis: 100%; max-width: 100%; } .iau-people .ppl-grp-head { flex-wrap: wrap; } }

/* --- คณะกรรมการตรวจสอบ: ผังประธาน + กรรมการ (รูปวงกลมขอบส้ม + ป้ายชื่อ/ตำแหน่งลอยทับขอบล่าง) ---
   ทุกระยะคูณ --cmt-scale (ตั้งโดย iau-fit.js) เพื่อย่อผังทั้งก้อนให้พอดีความสูงจอเมื่อกดลิงก์มาที่ #audit-committee */
.committee-tree { --cmt: var(--cmt-scale, 1); display: flex; flex-direction: column; align-items: center; padding: calc(40px * var(--cmt)) 20px 8px; }
.committee-seat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: calc(250px * var(--cmt)); }
.committee-seat--chair { width: calc(300px * var(--cmt)); }
/* ชื่อ/ตำแหน่งภาษาอังกฤษยาวกว่าไทยมาก (มีคำนำหน้า Assoc. Prof. Dr. ฯลฯ) — ให้ป้ายกว้างขึ้นกันย่อเล็ก+ตกบรรทัด
   .committee-seat (270px) คูณ 4 ที่นั่ง + gap ต้องยังไม่เกิน .committee-row max-width (1160px) ไม่งั้นจะตกแถวเป็น 2 แถว
   แล้วไปกระตุ้น --cmt-scale (ย่อทั้งก้อนตามความสูงจอ ใน fitCommittee()) ให้ย่อแรงกว่าเดิมโดยไม่ตั้งใจ
   ประธาน (chair) อยู่แถวเดี่ยว ไม่ติดข้อจำกัดนี้ จึงขยายได้กว้างกว่า */
html[lang="en"] .committee-seat { width: calc(270px * var(--cmt)); }
html[lang="en"] .committee-seat--chair { width: calc(330px * var(--cmt)); }
.committee-photo { position: relative; width: calc(148px * var(--cmt)); height: calc(148px * var(--cmt)); border-radius: 50%; border: calc(7px * var(--cmt)) solid var(--iau-orange);
	background: var(--iau-orange); overflow: hidden; display: grid; place-items: center; z-index: 1; }
.committee-seat--chair .committee-photo { width: calc(176px * var(--cmt)); height: calc(176px * var(--cmt)); border-width: calc(8px * var(--cmt)); }
.committee-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.committee-photo .ppl-silhouette { width: 58%; height: 58%; color: var(--iau-grey-dark); }
.committee-tag { margin-top: calc(-20px * var(--cmt)); z-index: 2; background: var(--iau-orange); border-radius: 14px; padding: calc(12px * var(--cmt)) calc(20px * var(--cmt)) calc(10px * var(--cmt));
	width: 100%; box-sizing: border-box; box-shadow: 0 4px 10px rgba(47,50,53,.16); }
/* white-space/max-width มาจาก [data-fit-line] กลาง — ย่อ font-size อัตโนมัติ แล้วตัดขึ้นบรรทัดใหม่แทนการตัดคำด้วย "…" ถ้าย่อสุดแล้วยังไม่พอ */
.committee-tag .committee-name { display: block; font-weight: 800; font-size: calc(30px * var(--cmt)); color: var(--iau-text); line-height: 1.3; }
.committee-role { display: block; font-size: calc(24px * var(--cmt)); color: var(--iau-text); opacity: .78; margin-top: 1px; }
/* ตำแหน่งว่าง (อยู่ระหว่างการสรรหา) — โทนเทาแทนส้ม แยกจากกรรมการตัวจริง */
.committee-seat--vacant .committee-photo { background: var(--iau-bluegrey); border-color: var(--iau-bluegrey); }
.committee-seat--vacant .committee-photo .ppl-silhouette { color: rgba(255,255,255,.65); }
.committee-seat--vacant .committee-tag { background: var(--iau-border); box-shadow: none; }
.committee-seat--vacant .committee-name, .committee-seat--vacant .committee-role { color: var(--iau-muted); }
.committee-conn { width: 2px; height: calc(26px * var(--cmt-scale, 1)); background: var(--iau-grey); margin: 4px 0 0; }
.committee-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: calc(24px * var(--cmt-scale, 1)); padding-top: calc(40px * var(--cmt-scale, 1)); width: fit-content; max-width: 1160px; }
.committee-row::before { content: ""; position: absolute; z-index: 0; top: 0; left: calc(125px * var(--cmt-scale, 1)); right: calc(125px * var(--cmt-scale, 1)); height: 2px; background: var(--iau-grey); }
.committee-row .committee-seat::before { content: ""; position: absolute; z-index: 0; top: calc(-40px * var(--cmt-scale, 1)); left: 50%; width: 2px; height: calc(30px * var(--cmt-scale, 1)); background: var(--iau-grey); transform: translateX(-50%); }
@media (max-width: 680px) {
	.committee-row { flex-direction: column; gap: 34px; border-top: 0; padding-top: 0; }
	.committee-row .committee-seat::before { display: none; }
}

/* ===== Manual (web version) ===== */
.manual { max-width: 900px; }
.manual h2 { margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--iau-orange); color: var(--iau-navy); font-size: 30px; }
.manual h3 { margin: 26px 0 10px; color: var(--iau-orange-deep); font-size: 24px; }
.manual p { margin: 10px 0; }
.manual img { width: 100%; border: 1px solid var(--iau-border); border-radius: 8px; box-shadow: var(--iau-shadow); margin: 10px 0 4px; }
.manual table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.manual th, .manual td { border: 1px solid var(--iau-border); padding: 9px 12px; text-align: left; font-size: 24px; vertical-align: top; }
.manual th { background: var(--iau-navy); color: #fff; }
.manual tr:nth-child(even) td { background: var(--iau-bg); }
.manual ul, .manual ol { padding-left: 24px; }
.manual li { margin: 5px 0; }
.manual code { background: var(--iau-bg); padding: 2px 6px; border-radius: 4px; font-size: 24px; }

/* ============================================================
   KINETIC EDITORIAL — motion single-page home (scoped .home)
   ============================================================ */
html { scroll-padding-top: var(--iau-head); }
.home section[id] { scroll-margin-top: var(--iau-head); }
.mono { font-family: var(--iau-mono); }

/* ข้อความบรรทัดเดียว: iau-fit.js ย่อ font-size อัตโนมัติจนพอดีความกว้าง (ถ้าปิด JS ปล่อยตัดบรรทัดปกติ) */
[data-fit-line] { white-space: nowrap; }
span[data-fit-line], strong[data-fit-line] { display: inline-block; max-width: 100%; vertical-align: bottom; }
.no-js [data-fit-line] { white-space: normal; }

/* --- Motion primitives (hidden states only when JS is on → no-JS/crawlers see final visible text) --- */
.rise { transition: opacity var(--iau-dur) var(--iau-ease), transform var(--iau-dur) var(--iau-ease); transition-delay: calc(var(--i, 0) * var(--iau-stagger)); }
html:not(.no-js) .rise { opacity: 0; transform: translateY(24px); }
[data-reveal].is-in .rise, .rise[data-reveal].is-in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-top: .2em; padding-bottom: .06em; }
.line__i { display: block; transition: transform var(--iau-dur) var(--iau-ease); transition-delay: calc(var(--i, 0) * var(--iau-stagger)); }
html:not(.no-js) .line__i { transform: translateY(112%); }
[data-reveal].is-in .line__i { transform: none; }
.rule { display: block; height: 2px; width: 42px; background: var(--iau-orange); transform-origin: left; transition: transform var(--iau-dur) var(--iau-ease); transition-delay: calc(var(--i, 0) * var(--iau-stagger)); }
html:not(.no-js) .rule { transform: scaleX(0); }
[data-reveal].is-in .rule, .rule[data-reveal].is-in { transform: scaleX(1); }

/* --- Hero (taller, immersive) --- */
.home .hero-media { position: relative; aspect-ratio: 16 / 9; min-height: 440px; max-height: 100vh; }
.home .hero-media .slides { position: absolute; inset: 0; aspect-ratio: auto; }
/* มีสไลด์รูปจริง → กล่องเต็มความกว้างเสมอ (width:100%) สัดส่วนตามสไลด์แรก (--hero-ar ตั้งโดย JS)
   และจำกัดสูงไม่เกิน "พื้นที่ใต้เมนู" (100svh - ความสูงเฮดเดอร์ - แถบจุดบาง ๆ) เพื่อให้แบนเนอร์อยู่ในหน้าจอแรก
   ไม่หลุดใต้ fold แม้จอเตี้ย */
.home .hero-slider.has-slides .hero-media { width: 100%; aspect-ratio: var(--hero-ar, 16 / 9); min-height: 0; max-height: calc(100svh - var(--iau-head) - 33px); }
/* ทุกสไลด์ = แสดงภาพเต็มใบเสมอ (contain) ไม่ครอปหัว-ท้าย เหมาะกับอินโฟกราฟิก/ภาพมีข้อความ
   เติมพื้นหลังด้วยภาพเดียวกันแบบเบลอ+ขยาย (--slide-bg ตั้งใน PHP) เพื่อให้ภาพถ่ายยังดูเต็มกรอบ
   ไม่เหลือแถบเทาโล่ง */
.home .hero-slider.has-slides .slide { background: var(--iau-grey-dark); }
.home .hero-slider.has-slides .slide::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image: var(--slide-bg); background-size: cover; background-position: center;
	filter: blur(34px) saturate(1.12); transform: scale(1.2); }
.home .hero-slider.has-slides .slide > a,
.home .hero-slider.has-slides .slide img { position: relative; z-index: 1; }
.home .hero-slider.has-slides .slide img { object-fit: contain; }
/* มีสไลด์รูปจริง → ให้สไลด์โชว์เต็ม (ซ่อน scrim + ข้อความ overlay + scroll-cue) คงไว้แค่แถบจุดด้านล่าง */
.home .hero-slider.has-slides .hero-media::before { display: none; }
.home .hero-slider.has-slides .hero-copy { display: none; }
.home .hero-slider.has-slides .scroll-cue { display: none; }
.home .hero-kicker { font-family: var(--iau-mono); font-size: 24px; letter-spacing: .06em; font-weight: 500; opacity: .95; }
.home .hero-tagline { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.06; font-weight: 800; letter-spacing: -.01em; max-width: 900px; }
.scroll-cue { position: absolute; left: 50%; bottom: 16px; z-index: 3; color: rgba(255,255,255,.85); display: grid; place-items: center; }
.scroll-cue svg { transform: rotate(90deg); animation: iau-cue 1.8s var(--iau-ease) infinite; }
@keyframes iau-cue { 0%,100% { transform: rotate(90deg) translateX(0); opacity: .55; } 50% { transform: rotate(90deg) translateX(6px); opacity: 1; } }

/* --- Section shell --- */
.home .ksec { padding: var(--iau-section-y) 0; background: var(--iau-bg); position: relative; }
.home .ksec--alt { background: var(--iau-surface); }
.home .ksec-head { position: relative; max-width: 900px; margin-bottom: 46px; }
.home .reveal-h, .home .ksec-head h2 { font-size: var(--iau-h2); line-height: 1.04; font-weight: 800; letter-spacing: -.01em; color: var(--iau-text); margin: 12px 0 0; }
.home .ksec-foot { display: flex; justify-content: flex-end; margin-top: 44px; }

/* --- About: sticky keynote --- */
.home .ksec--about { overflow: hidden; }
.home .about-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.15fr); gap: 52px; align-items: start; }
.home .about-aside { position: sticky; top: calc(var(--iau-head) + 26px); align-self: start; }
.home .about-head { position: relative; z-index: 1; }
.home .about-body .lead { font-size: var(--iau-fs-title); line-height: 1.62; color: var(--iau-text); margin: 0 0 34px; max-width: 60ch; }
.home .about-body .lead em { color: var(--iau-orange-deep); font-style: normal; font-weight: 700; }
.home .stand-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 24px; }
.home .stand-list li { display: grid; gap: 3px; }
.home .stand-list .rule { margin-bottom: 12px; }
.home .stand-list strong { font-size: var(--iau-fs-emphasis); font-weight: var(--iau-fw-emphasis); color: var(--iau-text); }
.home .stand-list span { color: var(--iau-muted); }

/* --- About: วิสัยทัศน์ / พันธกิจ / ภารกิจ / กฎบัตร --- */
.home .about-body .vm { margin: 0 0 30px; }
.home .about-body .vm:last-child { margin-bottom: 0; }
.home .vm-label { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: 1.6px; color: var(--iau-muted); margin: 0 0 12px; }
.home .vm-label::before { content: ""; width: 20px; height: 2px; background: var(--iau-orange); border-radius: 2px; flex: none; }
.home .vm-vision { font-size: var(--iau-lead); line-height: 1.5; font-weight: 700; color: var(--iau-text); margin: 0; max-width: 46ch; }
.home .vm-text { color: var(--iau-muted); line-height: 1.72; margin: 0; max-width: 60ch; }
.home .vm-tasks { list-style: none; margin: 0; padding: 0; counter-reset: vm; display: grid; gap: 14px; }
.home .vm-tasks li { position: relative; padding-left: 48px; min-height: 34px; color: var(--iau-text); line-height: 1.6; counter-increment: vm; }
.home .vm-tasks li::before { content: counter(vm); position: absolute; left: 0; top: -3px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: var(--iau-orange-deep); background: var(--iau-orange-wash); box-shadow: inset 0 0 0 1px rgba(250,70,22,.18); }
.home .vm-tasks--obj { gap: 20px; }
.home .vm-tasks--obj li { padding-top: 2px; }
.home .vm-obj-title { display: block; font-size: 30px; font-weight: 700; color: var(--iau-text); line-height: 1.4; margin: 0 0 3px; }
.home .vm-obj-desc { display: block; font-size: 24px; color: var(--iau-muted); line-height: 1.65; max-width: 58ch; }
.home .vm--charter { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--iau-hairline); }
.home .vm-charter-head { font-size: var(--iau-fs-title); line-height: 1.42; font-weight: 700; color: var(--iau-text); margin: 0 0 12px; }
.home .vm--charter .btn-textlink { margin-top: 16px; }

/* --- Stat band (dark, count-up) --- */
.home .stat-band { background: var(--iau-grey-dark); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.home .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.home .stat-cell { padding: 4px 30px; border-left: 1px solid rgba(255,255,255,.14); }
.home .stat-cell:first-child { border-left: 0; padding-left: 0; }
.home .stat-num { font-size: var(--iau-statement); font-weight: 800; line-height: .92; letter-spacing: -.02em; color: #fff; }
.home .stat-label { font-family: var(--iau-mono); font-size: 24px; color: rgba(255,255,255,.62); margin-top: 12px; letter-spacing: .02em; }

/* --- Policy pillars (การ์ดตกแต่งลิงก์ไปหน้าย่อยใต้ /policy/) --- */
.home .pol-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 52px; }
.home .pol-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: var(--iau-radius); padding: 32px 28px 26px; text-decoration: none; overflow: hidden; transition: transform var(--iau-dur-s) var(--iau-ease), box-shadow var(--iau-dur-s) var(--iau-ease), border-color var(--iau-dur-s) var(--iau-ease); }
.home .pol-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--iau-grey); }
.home .pol-card--orange::before { background: var(--iau-orange); }
.home .pol-card:hover { transform: translateY(-4px); box-shadow: var(--iau-shadow); border-color: transparent; }
.home .pol-ic { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: var(--iau-grey); background: var(--iau-bg); }
.home .pol-card--orange .pol-ic { color: var(--iau-orange-deep); background: var(--iau-orange-wash); }
.home .pol-title { font-size: var(--iau-fs-title); font-weight: 700; line-height: 1.18; color: var(--iau-text); margin: 2px 0 0; }
.home .pol-title .pol-en { font-family: var(--iau-mono); font-size: max(20px, .72em); font-weight: 500; color: var(--iau-muted); letter-spacing: .01em; }
.home .pol-desc { color: var(--iau-muted); margin: 0; font-size: var(--iau-fs-small); line-height: 1.55; }
.home .pol-more { margin-top: auto; padding-top: 8px; font-size: var(--iau-fs-meta); font-weight: 700; color: var(--iau-orange-deep); display: inline-flex; align-items: center; gap: 5px; }
.home .pol-more svg { transition: transform .16s ease; }
.home .pol-card:hover .pol-more svg { transform: translateX(3px); }
.home .pol-docs-label { font-size: var(--iau-fs-micro); letter-spacing: .04em; color: var(--iau-muted); text-transform: uppercase; margin: 0 0 6px; }

/* --- Policy doc list --- */
.home .doc-list { border-top: 1px solid var(--iau-hairline); }

/* --- People horizontal reel --- */
.home .people-reel { position: relative; margin-top: 6px; }
.home .reel-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px max(20px, calc((100vw - var(--iau-max)) / 2 + 20px)) 18px; }
.home .reel-track::-webkit-scrollbar { display: none; }
.home .staff-card3 { scroll-snap-align: start; flex: 0 0 clamp(260px, 78vw, 320px); background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: var(--iau-radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.home .sc-avatar { width: 62px; height: 62px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 24px; }
.home .sc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home .sc-name { font-size: 30px; font-weight: 700; margin: 0; color: var(--iau-text); }
.home .sc-pos { font-family: var(--iau-mono); font-size: 24px; color: var(--iau-muted); margin: 2px 0 0; }
.home .sc-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; border-top: 1px solid var(--iau-hairline); padding-top: 12px; }
.home .sc-meta a { display: flex; align-items: center; gap: 7px; color: var(--iau-orange-deep); text-decoration: none; font-size: 24px; word-break: break-all; }
.home .reel-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; }
.home .reel-progress { position: relative; flex: 1; max-width: 340px; height: 2px; background: var(--iau-hairline); overflow: hidden; }
.home .reel-progress__fill { position: absolute; inset: 0; background: var(--iau-orange); transform: scaleX(0); transform-origin: left; }
.home .reel-ctrls { display: flex; gap: 8px; }
.home .reel-btn { width: 46px; height: 46px; border-radius: 4px; border: 1px solid var(--iau-grey); background: var(--iau-surface); color: var(--iau-text); cursor: pointer; display: grid; place-items: center; transition: background var(--iau-dur-s), border-color var(--iau-dur-s), color var(--iau-dur-s); }
.home .reel-btn:hover { background: var(--iau-orange); border-color: var(--iau-orange); color: #fff; }
.home .reel-btn[data-reel="prev"] svg { transform: rotate(180deg); }

/* --- Org chart — โครงสร้างหน่วยงาน (สาย functional ทึบ / สาย administrative ประ) --- */
/* ดีไซน์อิงตามผังจริง: ป้ายชี้ (chevron) สีส้มลอยเหนือกล่องพื้นเทาเข้ม/ตัวหนังสือขาว, โหนดหน่วยตรวจสอบภายในไล่สีส้ม→แดงเด่นตรงกลาง */
.org { --org-line: var(--iau-grey); --org-w: 2px; max-width: 1040px; margin: 58px auto 0; scroll-margin-top: 16px; transform-origin: top center; }
.org-row { display: flex; justify-content: center; }
.org-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (min-width: 641px) {
	.org-row--2:has(.org-node--team) { grid-template-columns: 1.6fr 1fr; }
	/* เส้นเชื่อมต้องขยับตามสัดส่วนคอลัมน์ 1.6fr/1fr (จุดกึ่งกลางจริง ไม่ใช่ 25%/75% แบบ 2 คอลัมน์เท่ากัน) */
	.org-conn--split:has(+ .org-row--2 .org-node--team) .c-bar { left: 30.12%; width: 51.06%; }
	.org-conn--split:has(+ .org-row--2 .org-node--team) .c-l { left: 30.12%; }
	.org-conn--split:has(+ .org-row--2 .org-node--team) .c-r { left: 81.18%; }
}
.org-row--2 .org-node { width: 100%; }
/* อธิการบดี / คณะกรรมการตรวจสอบ — จำกัดความกว้างไม่ให้ล้นคอลัมน์ กึ่งกลางไว้ที่จุดเดิมของเส้นเชื่อม */
.org-node--pres, .org-node--committee { max-width: 400px; margin-left: auto; margin-right: auto; }
.org-node { position: relative; background: var(--iau-grey); border: 0; border-radius: 0;
	padding: 24px 20px 16px; margin-top: 14px; box-shadow: 0 1px 4px rgba(47,50,53,.14); text-align: center;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.org-eyebrow { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap;
	background: var(--iau-orange); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .02em;
	padding: 8px 20px; line-height: 1;
	clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.org-title { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.25; }
.org-sub { font-size: 24px; letter-spacing: .08em; color: rgba(255,255,255,.75); }
/* หน่วยตรวจสอบภายใน — โหนดเด่น ไล่สีส้ม→แดง */
.org-node--unit { background: linear-gradient(135deg, var(--iau-orange) 0%, var(--iau-orange-deep) 100%); box-shadow: 0 10px 26px rgba(250,70,22,.32); }
.org-node--unit .org-title { font-size: 34px; }
/* ผู้ตรวจสอบภายใน / งานสนับสนุน — ป้ายลอยเหนือกล่องย่อยพื้นเทาอ่อน */
.org-node--team, .org-node--admin { background: none; box-shadow: none; padding: 0; margin-top: 0; justify-content: flex-start; }
.org-node--team .org-eyebrow, .org-node--admin .org-eyebrow { position: static; transform: none; margin: 0 0 12px; }
.org-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.org-leaf { background: var(--iau-border); color: var(--iau-text); border-radius: 0; padding: 10px 14px; font-size: 30px; font-weight: 600; line-height: 1.35; text-align: center; }
.org-leaf .org-sub { color: var(--iau-muted); display: block; margin-top: 2px; }
/* connectors */
.org-conn { position: relative; height: 30px; }
.org-conn i { position: absolute; background: var(--org-line); }
.org-conn--line .c-v { left: 50%; transform: translateX(-50%); width: var(--org-w); top: 0; bottom: 0; }
.org-conn--split .c-v { left: 50%; transform: translateX(-50%); width: var(--org-w); top: 0; height: 50%; }
.org-conn--split .c-bar { left: 25%; width: 50%; top: calc(50% - 1px); height: var(--org-w); }
.org-conn--split .c-l { left: 25%; transform: translateX(-50%); width: var(--org-w); top: 50%; height: 50%; }
.org-conn--split .c-r { left: 75%; transform: translateX(-50%); width: var(--org-w); top: 50%; height: 50%; }
/* merge (ก้นเพชร): 2 สายอิสระ — อธิการบดี(25%) เส้นประทั้งเส้นเข้าหน่วยฯที่ 44% | คณะกรรมการ(75%) เส้นทึบทั้งเส้นเข้าที่ 56% (ไม่ใช้ช่วงร่วมกัน) */
.org-conn--merge i { background: none; }
.org-conn--merge .m-la { left: 25%; top: 0; height: 50%; border-left: var(--org-w) dashed var(--iau-grey); }
.org-conn--merge .m-lb { left: 25%; width: 19%; top: calc(50% - 1px); border-top: var(--org-w) dashed var(--iau-grey); }
.org-conn--merge .m-lc { left: 44%; top: 50%; height: 50%; border-left: var(--org-w) dashed var(--iau-grey); }
.org-conn--merge .m-ra { left: 75%; top: 0; height: 50%; border-left: var(--org-w) solid var(--org-line); }
.org-conn--merge .m-rb { left: 56%; width: 19%; top: calc(50% - 1px); border-top: var(--org-w) solid var(--org-line); }
.org-conn--merge .m-rc { left: 56%; top: 50%; height: 50%; border-left: var(--org-w) solid var(--org-line); }
/* legend */
.org-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 26px 0 0; font-size: 24px; color: var(--iau-muted); letter-spacing: .04em; }
.org-legend span { display: inline-flex; align-items: center; gap: 8px; }
.org-legend .lg { width: 24px; height: 0; border-top: 2px solid var(--org-line); }
.org-legend .lg--dash { border-top-style: dashed; }
@media (max-width: 640px) {
	.org { max-width: 380px; }
	.org-row--2 { grid-template-columns: 1fr; gap: 14px; }
	.org-conn { height: 22px; }
	.org-conn .c-bar, .org-conn .c-l, .org-conn .c-r { display: none; }
	.org-conn--split .c-v, .org-conn--merge .c-v { top: 0; height: 100%; }
	.org-people { grid-template-columns: 1fr; }
}

/* --- Activity calendar + timeline (ความเคลื่อนไหวล่าสุด) --- */
.home .kcal, .page-cal .kcal { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 44px; align-items: start; }

/* ปฏิทินรายเดือน */
.home .kcal-cal, .page-cal .kcal-cal { background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: var(--iau-radius-lg); box-shadow: var(--iau-shadow); padding: 20px 20px 16px; position: sticky; top: calc(var(--iau-head) + 16px); }
.home .kcal-cal__head, .page-cal .kcal-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.home .kcal-title, .page-cal .kcal-title { font-size: var(--iau-fs-body); font-weight: var(--iau-fw-emphasis); color: var(--iau-text); text-align: center; flex: 1; }
.home .kcal-nav, .page-cal .kcal-nav { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--iau-border); background: var(--iau-surface); color: var(--iau-grey); border-radius: 4px; cursor: pointer; transition: background var(--iau-dur-s) var(--iau-ease), color var(--iau-dur-s) var(--iau-ease), border-color var(--iau-dur-s) var(--iau-ease); }
.home .kcal-nav:hover:not(:disabled), .page-cal .kcal-nav:hover:not(:disabled) { background: var(--iau-orange); border-color: var(--iau-orange); color: #fff; }
.home .kcal-nav:disabled, .page-cal .kcal-nav:disabled { opacity: .35; cursor: default; }
.home .kcal-grid, .page-cal .kcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.home .kcal-dow, .page-cal .kcal-dow { margin-bottom: 6px; }
.home .kcal-dow span, .page-cal .kcal-dow span { text-align: center; font-family: var(--iau-mono); font-size: 24px; font-weight: 700; letter-spacing: .02em; color: var(--iau-muted); padding: 4px 0; }
.home .kcal-day, .page-cal .kcal-day { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--iau-text); border: 0; background: transparent; border-radius: 6px; padding: 0; }
.home .kcal-day.is-out, .page-cal .kcal-day.is-out { color: var(--iau-hairline); }
.home .kcal-day.is-today, .page-cal .kcal-day.is-today { background: var(--iau-yellow-wash); color: var(--iau-orange-deep); font-weight: 700; }
.home button.kcal-day { cursor: pointer; transition: background var(--iau-dur-s) var(--iau-ease), color var(--iau-dur-s) var(--iau-ease); }
.home button.kcal-day:hover { background: var(--iau-orange-wash); }
.home .kcal-day.has-ev::after, .page-cal .kcal-day.has-ev::after { content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--iau-orange); }
.home .kcal-day.is-sel, .page-cal .kcal-day.is-sel { background: var(--iau-orange-deep); color: #fff; font-weight: 700; box-shadow: none; }
.home .kcal-day.is-sel::after, .page-cal .kcal-day.is-sel::after { background: #fff; }
.home .kcal-hint, .page-cal .kcal-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 2px; font-size: 24px; color: var(--iau-muted); }
.home .kcal-legdot, .page-cal .kcal-legdot { width: 6px; height: 6px; border-radius: 50%; background: var(--iau-orange); display: inline-block; }
.home .kcal-sr, .page-cal .kcal-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ไทม์ไลน์กิจกรรม */
.home .kcal-timeline, .page-cal .kcal-timeline { position: relative; list-style: none; margin: 0; padding: 2px 4px 2px 0; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--iau-hairline) transparent; }
.home .kcal-timeline::-webkit-scrollbar, .page-cal .kcal-timeline::-webkit-scrollbar { width: 8px; }
.home .kcal-timeline::-webkit-scrollbar-thumb, .page-cal .kcal-timeline::-webkit-scrollbar-thumb { background: var(--iau-hairline); border-radius: 8px; }
.home .kcal-ev, .page-cal .kcal-ev { position: relative; }
.home .kcal-ev + .kcal-ev, .page-cal .kcal-ev + .kcal-ev { border-top: 1px solid var(--iau-hairline); }
.home .kcal-ev__link, .page-cal .kcal-ev__link { display: grid; grid-template-columns: auto auto 1fr auto; gap: 16px; align-items: center; padding: 15px 12px; text-decoration: none; border-radius: var(--iau-radius); transition: background var(--iau-dur-s) var(--iau-ease); }
.home .kcal-ev__link:hover, .page-cal .kcal-ev__link:hover { background: var(--iau-orange-wash); }
.home .kcal-ev__date, .page-cal .kcal-ev__date { flex: none; width: 58px; text-align: center; border-right: 1px solid var(--iau-hairline); padding-right: 14px; line-height: 1; }
.home .kcal-ev__day, .page-cal .kcal-ev__day { display: block; font-size: 1.85rem; font-weight: 700; color: var(--iau-text); }
.home .kcal-ev__mon, .page-cal .kcal-ev__mon { display: block; font-size: 24px; color: var(--iau-muted); margin-top: 3px; }
.home .kcal-ev__icon, .page-cal .kcal-ev__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.home .kcal-ev__icon--a, .page-cal .kcal-ev__icon--a { background: var(--iau-orange-wash); color: var(--iau-orange-deep); }
.home .kcal-ev__icon--b, .page-cal .kcal-ev__icon--b { background: var(--iau-yellow-wash); color: var(--iau-orange-deep); }
.home .kcal-ev__icon--c, .page-cal .kcal-ev__icon--c { background: rgba(123,129,137,.16); color: var(--iau-bluegrey); }
.home .kcal-ev.is-past .kcal-ev__icon, .page-cal .kcal-ev.is-past .kcal-ev__icon { filter: grayscale(.5); }
.home .kcal-ev__body, .page-cal .kcal-ev__body { min-width: 0; }
.home .kcal-ev__badge, .page-cal .kcal-ev__badge { display: inline-block; font-size: 24px; font-weight: 700; line-height: 1; color: #fff; background: var(--iau-orange-deep); border-radius: 3px; padding: 5px 10px; margin-bottom: 6px; }
.home .kcal-ev__title, .page-cal .kcal-ev__title { display: block; font-size: 30px; font-weight: var(--iau-fw-emphasis); color: var(--iau-text); line-height: 1.3; transition: color var(--iau-dur-s) var(--iau-ease); }
.home .kcal-ev__link:hover .kcal-ev__title, .page-cal .kcal-ev__link:hover .kcal-ev__title { color: var(--iau-orange-deep); }
.home .kcal-ev__meta, .page-cal .kcal-ev__meta { display: block; font-size: 24px; color: var(--iau-muted); margin-top: 4px; }
.home .kcal-ev__go, .page-cal .kcal-ev__go { flex: none; color: var(--iau-bluegrey); opacity: 0; transform: translateX(-4px); transition: opacity var(--iau-dur-s) var(--iau-ease), transform var(--iau-dur-s) var(--iau-ease); }
.home .kcal-ev__link:hover .kcal-ev__go, .page-cal .kcal-ev__link:hover .kcal-ev__go { opacity: 1; transform: translateX(0); color: var(--iau-orange); }
.home .kcal-ev.is-past .kcal-ev__link, .page-cal .kcal-ev.is-past .kcal-ev__link { opacity: .5; }
.home .kcal-ev.is-past .kcal-ev__day, .page-cal .kcal-ev.is-past .kcal-ev__day { color: var(--iau-muted); }
.home .kcal-ev.is-today .kcal-ev__day, .page-cal .kcal-ev.is-today .kcal-ev__day { color: var(--iau-orange); }
.home .kcal-ev.is-hit, .page-cal .kcal-ev.is-hit { background: var(--iau-orange-wash); border-radius: var(--iau-radius); }
.home .kcal-ev.is-hit .kcal-ev__link, .page-cal .kcal-ev.is-hit .kcal-ev__link { opacity: 1; }
.home .kcal-ev.is-hit .kcal-ev__date, .page-cal .kcal-ev.is-hit .kcal-ev__date { border-right-color: var(--iau-orange); }

/* --- Contact --- */
.home .contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.home .contact-col .cc-ico { color: var(--iau-orange); display: block; margin: 16px 0 12px; }
.home .contact-col h3 { font-size: 24px; letter-spacing: .06em; color: var(--iau-muted); margin: 0 0 8px; font-weight: 700; }
.home .contact-col p { color: var(--iau-text); line-height: 1.7; margin: 0; }
.home .contact-col a { color: var(--iau-orange-deep); text-decoration: none; }
.home .contact-col a:hover { text-decoration: underline; }

/* --- CTA two-door: "pick a door" hover (graft) --- */
.home .cta-grid { display: flex; }
.home .cta-door { flex: 1; transition: flex var(--iau-dur-s) var(--iau-ease), background var(--iau-dur-s) var(--iau-ease); }
.home .cta-door--photo:hover { filter: brightness(1.08); }
@media (hover: hover) and (min-width: 760px) {
	.home .cta-grid:has(.cta-door:hover) .cta-door { flex: .82; }
	.home .cta-grid .cta-door:hover { flex: 1.34; }
}

/* --- Reduced motion (dual-enforced with the JS guard) --- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.home .rise, .home .line__i, .home .rule, .home [data-reveal], .home [data-reveal] .rise { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
	.home .hero-slider .slide img { transform: none !important; }
	.scroll-cue svg { animation: none !important; }
	.scroll-cue { display: none !important; }
	.home .reel-track { scroll-snap-type: none; scroll-behavior: auto; }
}

/* --- Responsive --- */
@media (max-width: 980px) {
	.home .about-grid { grid-template-columns: 1fr; gap: 8px; }
	.home .about-aside { position: static; }
	.home .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
	.home .stat-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
	.home .kcal, .page-cal .kcal { grid-template-columns: 1fr; gap: 28px; }
	.home .kcal-cal, .page-cal .kcal-cal { position: static; max-width: 420px; }
	.home .kcal-timeline, .page-cal .kcal-timeline { max-height: none; overflow: visible; }
}
@media (max-width: 680px) {
	.home .contact-cols { grid-template-columns: 1fr; gap: 26px; }
	.home .cta-grid { flex-direction: column; }
	.home .pol-pillars { grid-template-columns: 1fr; gap: 16px; margin-bottom: 42px; }
}
.manual blockquote { border-left: 4px solid var(--iau-orange); background: #fff8ef; margin: 14px 0; padding: 10px 16px; color: #7a4a12; border-radius: 0 8px 8px 0; }
.manual hr { border: 0; border-top: 1px solid var(--iau-border); margin: 26px 0; }
.manual .manual-dl { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 22px; }
.manual .manual-toc { background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: var(--iau-radius); padding: 14px 20px; margin: 6px 0 20px; }
.manual .manual-toc a { display: inline-block; margin: 3px 14px 3px 0; }

/* ===== Responsive ===== */
@media (max-width: 1240px) {
	:root { --iau-head: 100px; } /* จอกลาง/มือถือ: แถบเมนูยุบเป็น hamburger (กันตกบรรทัด) */
	.splash-bar a { font-size: 18px; }
	.nav-toggle { display: block; }
	#primary-menu { display: none; }
	#primary-menu.open { display: block; }
	.menu-bar .iau-wrap { display: block; min-height: 0; padding: 0; }
	.main-nav li { display: block; }
	.main-nav ul { flex-direction: column; gap: 1px; padding: 6px 20px 10px; }
	.main-nav > ul > li > a { white-space: normal; }
	.main-nav .sub-menu { position: static; display: flex; border-top: 0; box-shadow: none; padding-left: 16px; background: transparent; min-width: 0; }
}
@media (max-width: 900px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.page-body { grid-template-columns: 1fr; }
	.contact-grid, .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
	.hero h1 { font-size: 30px; }
}

/* ============================================================
   Charter page (template-charter.php) — หน้าอ่านกฎบัตร
   ============================================================ */
.charter-hero { background: var(--iau-surface); border-bottom: 1px solid var(--iau-border); }
.charter-hero__in { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px 44px; align-items: start; padding: 40px 0; }
.charter-hero__eyebrow { color: var(--iau-orange-deep); font-size: 24px; letter-spacing: .04em; margin: 0 0 6px; }
.charter-hero__title { font-size: clamp(1.5625rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.18; color: var(--iau-text); margin: 0 0 14px; }
.charter-hero__desc { color: var(--iau-muted); line-height: 1.7; margin: 0; max-width: 60ch; }
.charter-facts { display: grid; gap: 12px; margin: 0; padding: 18px 20px; background: var(--iau-orange-wash); border-radius: var(--iau-radius); border: 1px solid rgba(250,70,22,.14); }
.charter-facts > div { display: grid; gap: 2px; }
.charter-facts dt { font-size: 24px; letter-spacing: .04em; color: var(--iau-muted); font-family: var(--iau-mono); }
.charter-facts dd { margin: 0; font-weight: 700; color: var(--iau-text); }
.charter-dl { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 9px; justify-self: start; padding: 13px 24px; }
.charter-dl svg { flex: none; }
.charter-hero__dls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.charter-hero__dls .charter-dl { grid-column: auto; }

.charter-shell { display: grid; grid-template-columns: 236px minmax(0,1fr); gap: 48px; padding: 44px 0 70px; align-items: start; }

/* สารบัญ sticky */
.charter-toc { position: sticky; top: calc(var(--iau-head) + 20px); align-self: start; }
.charter-toc__label { font-size: 24px; letter-spacing: .12em; text-transform: uppercase; color: var(--iau-muted); margin: 0 0 12px; }
.charter-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--iau-border); }
.charter-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--iau-text); text-decoration: none; font-size: 24px; line-height: 1.4; transition: color .15s, border-color .15s, background .15s; }
.charter-toc a:hover { color: var(--iau-orange-deep); border-left-color: var(--iau-orange); background: var(--iau-orange-wash); }
.charter-toc__n { font-family: var(--iau-mono); font-size: 24px; color: var(--iau-orange-deep); font-weight: 700; flex: none; min-width: 14px; }

/* เนื้อหา */
.charter-body { min-width: 0; }
.charter-sec { padding: 0 0 40px; margin: 0 0 40px; border-bottom: 1px solid var(--iau-hairline); scroll-margin-top: calc(var(--iau-head) + 16px); }
.charter-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.charter-sec__no { color: var(--iau-orange-deep); font-size: 24px; letter-spacing: .08em; margin: 0 0 4px; }
.charter-body h2 { font-size: clamp(1.5625rem, 2.6vw, 2rem); line-height: 1.2; font-weight: 800; color: var(--iau-text); margin: 0 0 18px; }
/* หน้า /about/ (เนื้อหา charter-body ไหลยาวใน .page-body): คั่นแต่ละหัวข้อใหญ่ด้วยเส้นบาง ให้จังหวะอ่านเป็นบท ๆ
   (หน้า /charter/ ไม่โดน — ใช้ .charter-sec ที่มีเส้นคั่นของตัวเองอยู่แล้ว) */
.page-body .charter-body h2 { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--iau-hairline); }
.page-body .charter-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* หัวข้อย่อยต้องใหญ่กว่าเนื้อหา (เนื้อหา 24px) + แถบส้มนำสายตาให้รู้ว่าเป็นหัวข้อ */
.charter-body h3 { font-size: 28px; font-weight: 800; color: var(--iau-text); margin: 34px 0 12px; padding-left: 14px; border-left: 4px solid var(--iau-orange); line-height: 1.35; }
.charter-body h4 { margin: 0; }
.charter-body p { color: var(--iau-text); line-height: 1.75; margin: 0 0 14px; }
.charter-en-inline, .charter-body .en { color: var(--iau-bluegrey); font-weight: 500; font-size: max(20px, .82em); }
.charter-en-inline { display: inline-block; margin-left: 6px; }
/* คำบรรยายภาษาอังกฤษถาวรข้างหัวข้อไทย (.charter-en-inline / .en) มีไว้คู่กับหัวข้อ "ไทย" เท่านั้น
   เมื่อสลับทั้งหน้าเป็นภาษาอังกฤษ (_iau_content_en) หัวข้อหลักจะกลายเป็นอังกฤษเองอยู่แล้ว
   จึงต้องซ่อนคำบรรยายซ้ำนี้ ไม่งั้นจะขึ้นซ้ำสอง เช่น "Consulting Services Consulting Services" */
html[lang="en"] .charter-body .charter-en-inline,
html[lang="en"] .charter-body .en { display: none; }
.charter-kv { display: inline-flex; align-items: center; gap: 9px; color: var(--iau-orange-deep) !important; font-size: 24px; letter-spacing: .06em; margin: 22px 0 8px; }
.charter-kv::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--iau-orange); }

/* คำนิยาม */
.charter-defs { display: grid; gap: 0; margin: 8px 0 0; border-top: 1px solid var(--iau-hairline); }
.charter-defs > div { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 8px 26px; padding: 16px 0; border-bottom: 1px solid var(--iau-hairline); }
.charter-defs dt { font-weight: 700; color: var(--iau-text); margin: 0; }
.charter-defs dt .en { display: block; font-weight: 500; margin-top: 2px; }
.charter-defs dd { margin: 0; color: var(--iau-muted); line-height: 1.7; }

.charter-vision { position: relative; margin: 0 0 6px; padding: 22px 28px 22px 66px; border-left: 4px solid var(--iau-orange); background: var(--iau-orange-wash); border-radius: 0 var(--iau-radius) var(--iau-radius) 0; font-size: 1.5rem; font-weight: 700; line-height: 1.5; color: var(--iau-text); }
.charter-vision::before { content: "\201C"; position: absolute; left: 20px; top: 4px; font-size: 60px; line-height: 1; font-weight: 800; color: var(--iau-orange); opacity: .55; }

/* ลิสต์ */
.charter-list { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 11px; }
.charter-list li { position: relative; padding-left: 20px; color: var(--iau-text); line-height: 1.7; }
.charter-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--iau-orange); }
.charter-list--num { counter-reset: cl; }
.charter-list--num li { padding-left: 46px; }
.charter-list--num li::before { content: counter(cl); counter-increment: cl; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--iau-orange-wash); color: var(--iau-orange-deep); font-weight: 700; font-size: 24px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(250,70,22,.18); }
.charter-list em { font-style: normal; color: var(--iau-orange-deep); font-weight: 700; }

/* การ์ด (จรรยาบรรณ / KPI) */
.charter-cards { display: grid; gap: 14px; margin: 6px 0 0; }
.charter-cards--ethics { grid-template-columns: repeat(2, minmax(0,1fr)); }
.charter-card { border: 1px solid var(--iau-border); border-radius: var(--iau-radius-lg); padding: 18px 20px; background: var(--iau-surface); }
.charter-card__k { display: block; color: var(--iau-orange); font-size: 24px; font-weight: 700; margin-bottom: 6px; }
/* แถวบนของการ์ด: เลขลำดับซ้าย + ไอคอนประจำหมวดขวา (หน้า /about/ วัตถุประสงค์หลัก) */
.charter-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.charter-card__top .charter-card__k { margin-bottom: 0; }
.charter-card__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--iau-orange-wash); color: var(--iau-orange); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(250,70,22,.18); }
.charter-card h4 { font-size: 30px; color: var(--iau-text); }
.charter-card h4 .en { display: block; margin-top: 2px; }
.charter-card p { color: var(--iau-muted); line-height: 1.65; margin: 8px 0 0; font-size: 24px; }
.charter-cards--kpi { grid-template-columns: repeat(3, minmax(0,1fr)); }
.charter-card--kpi { text-align: center; border-top: 3px solid var(--iau-orange); }
.charter-kpi__big { display: block; font-size: 1.9rem; font-weight: 800; color: var(--iau-orange-deep); line-height: 1.1; margin-bottom: 8px; }

/* สรุปสาระสำคัญ 9 ข้อ */
.charter-cards--summary { grid-template-columns: repeat(3, minmax(0,1fr)); }
.charter-card--summary { scroll-margin-top: calc(var(--iau-head) + 16px); }
.charter-card--summary .charter-list { margin-top: 10px; }
.charter-summary-src { color: var(--iau-muted); font-size: 24px; letter-spacing: .04em; margin: 22px 0 0; }
@media (max-width: 1300px) {
	.charter-cards--summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* บทบาทหน้าที่ */
.charter-roles { display: grid; gap: 14px; margin: 6px 0 0; }
.charter-role { border: 1px solid var(--iau-border); border-left: 3px solid var(--iau-orange); border-radius: var(--iau-radius); padding: 16px 20px; background: var(--iau-surface); }
.charter-role h4 { font-size: 30px; color: var(--iau-text); margin-bottom: 8px; }
.charter-role > p { color: var(--iau-muted); margin: 0 0 8px; }

/* callout ข้อจำกัด/ความรับผิดชอบ */
.charter-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 6px; }
.charter-callout { border: 1px solid var(--iau-border); border-radius: var(--iau-radius-lg); padding: 18px 20px; background: var(--iau-surface); }
.charter-callout--warn { background: var(--iau-orange-wash); border-color: rgba(250,70,22,.18); }
.charter-callout__h { font-weight: 800 !important; color: var(--iau-text) !important; margin: 0 0 10px !important; }

/* chips ขอบเขต */
.charter-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.charter-chips li { background: var(--iau-surface); border: 1px solid var(--iau-border); border-radius: 20px; padding: 7px 14px; font-size: 24px; color: var(--iau-text); }

/* กระบวนการตรวจสอบ */
.charter-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; }
.charter-steps li { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px; padding: 0 0 22px; position: relative; }
.charter-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 34px; bottom: 0; width: 2px; background: var(--iau-border); }
/* justify-self:center → ศูนย์กลางวงกลม (22px) ตรงกับแกนเส้น timeline (left 21 + กว้าง 2) · line-height 1 กันตัวเลขตกต่ำกว่ากึ่งกลาง */
.charter-steps__n { width: 34px; height: 34px; border-radius: 50%; background: var(--iau-orange); color: #fff; display: grid; place-items: center; line-height: 1; justify-self: center; font-weight: 800; font-family: var(--iau-mono); z-index: 1; }
.charter-steps li > div { padding-top: 3px; }
.charter-steps strong { color: var(--iau-text); font-size: 30px; }
.charter-steps .en { display: block; margin: 1px 0 4px; }
.charter-steps p { margin: 0; color: var(--iau-muted); line-height: 1.65; font-size: 24px; }

/* ท้ายเอกสาร */
.charter-effective { color: var(--iau-text); font-weight: 700; letter-spacing: .02em; padding: 12px 18px; background: var(--iau-yellow-wash); border-radius: var(--iau-radius); display: inline-block; margin: 0 0 24px; }
.charter-signs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 0 0 30px; }
.charter-sign { border-top: 2px solid var(--iau-grey-dark); padding-top: 12px; }
.charter-sign strong { display: block; color: var(--iau-text); font-size: 30px; }
.charter-sign span { color: var(--iau-muted); font-size: 24px; }
.charter-ref-label { color: var(--iau-muted); font-size: 24px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.charter-refs { margin: 0 0 26px; padding-left: 20px; color: var(--iau-muted); display: grid; gap: 6px; }
.charter-refs li { line-height: 1.6; }
.charter-approve .charter-dl { margin-top: 6px; }

@media (max-width: 900px) {
	.charter-hero__in { grid-template-columns: 1fr; }
	.charter-shell { grid-template-columns: 1fr; gap: 24px; }
	.charter-toc { position: static; border: 1px solid var(--iau-border); border-radius: var(--iau-radius-lg); padding: 16px 18px; background: var(--iau-surface); }
	.charter-cards--ethics, .charter-cards--kpi, .charter-cards--summary, .charter-two, .charter-signs { grid-template-columns: 1fr; }
	.charter-defs > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   ปฏิทินกิจกรรม /news/events/ (The Events Calendar — list view)
   ปรับหน้าตา + ฟอนต์ให้เข้าธีม (ปลั๊กอินมาพร้อม Helvetica/สีเริ่มต้น)
   ============================================================ */
/* TEC's own "tribe-common-h*"/"min-*" responsive-type utility classes are 3-class compounds
   (e.g. .tribe-common--breakpoint-medium.tribe-common .tribe-common-h4--min-medium) — that beats
   our 2-class selectors on specificity alone regardless of load order, so font/size/color here need !important. */
body.tribe-events-page-template,
body.tribe-events-page-template .tribe-common {
	font-family: var(--iau-font) !important;
	color: var(--iau-text);
}
/* กันตกหล่น: ทุก element ลูกในหน้านี้ใช้ฟอนต์เดียวกันหมด (ตัด Helvetica ของปลั๊กอินออกทั้งก้อน) */
body.tribe-events-page-template .tribe-common * {
	font-family: var(--iau-font) !important;
}
body.tribe-events-page-template .tribe-common-l-container {
	max-width: var(--iau-max);
	margin: 0 auto;
	padding: 36px 20px 90px;
}
/* แถบค้นหา/สลับมุมมองด้านบน — คุมสี/ตัวอักษรให้เข้าธีม ไม่แตะโครงสร้าง/JS */
body.tribe-events-page-template .tribe-events-header {
	border-bottom: 1px solid var(--iau-border);
	padding-bottom: 18px;
	margin-bottom: 30px;
}
body.tribe-events-page-template .tribe-events-c-view-selector,
body.tribe-events-page-template .tribe-events-c-events-bar__search-button,
body.tribe-events-page-template .tribe-common-c-btn,
body.tribe-events-page-template .tribe-events-c-search__input-control,
body.tribe-events-page-template .tribe-events-c-search__button {
	font-family: var(--iau-font);
	border-radius: 4px;
}
body.tribe-events-page-template .tribe-common-c-btn,
body.tribe-events-page-template .tribe-events-c-search__button {
	background: var(--iau-grey);
	border-color: var(--iau-grey);
	transition: background .2s var(--iau-ease), border-color .2s var(--iau-ease);
}
body.tribe-events-page-template .tribe-common-c-btn:hover,
body.tribe-events-page-template .tribe-events-c-search__button:hover {
	background: var(--iau-orange);
	border-color: var(--iau-orange);
}

/* ตัวคั่นเดือน — สไตล์เดียวกับ kicker ของหน้าอื่น (แถบส้ม + ตัวหนา ตัวพิมพ์ใหญ่) */
body.tribe-events-page-template .tribe-events-calendar-list__month-separator {
	margin: 0 0 18px;
	padding: 0;
}
body.tribe-events-page-template .tribe-events-calendar-list__month-separator:not(:first-child) {
	margin-top: 44px;
}
body.tribe-events-page-template .tribe-events-calendar-list__month-separator h3 {
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--iau-border);
	position: relative;
}
body.tribe-events-page-template .tribe-events-calendar-list__month-separator h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 56px;
	height: 2px;
	background: var(--iau-orange);
}
body.tribe-events-page-template .tribe-events-calendar-list__month-separator-text {
	font-family: var(--iau-font) !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--iau-muted) !important;
}

/* แถวกิจกรรม — การ์ดพร้อมป้ายวันที่ ให้ภาษาเดียวกับ kcal-ev ในวิดเจ็ตหน้าแรก */
body.tribe-events-page-template .tribe-events-calendar-list__event-row {
	list-style: none;
	margin: 0 0 12px;
}
body.tribe-events-page-template .tribe-events-calendar-list__event-date-tag {
	background: var(--iau-surface);
	border: 1px solid var(--iau-border);
	border-radius: var(--iau-radius) 0 0 var(--iau-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 10px;
	min-width: 78px;
}
body.tribe-events-page-template .tribe-events-calendar-list__event-date-tag-datetime {
	text-align: center;
	line-height: 1.15;
}
body.tribe-events-page-template .tribe-events-calendar-list__event-date-tag-weekday {
	display: block;
	font-family: var(--iau-font) !important;
	font-size: 24px !important;
	color: var(--iau-muted) !important;
	margin-bottom: 2px;
}
body.tribe-events-page-template .tribe-events-calendar-list__event-date-tag-daynum {
	font-family: var(--iau-font) !important;
	font-size: 1.85rem !important;
	font-weight: 700 !important;
	color: var(--iau-text) !important;
}
body.tribe-events-page-template .tribe-events-calendar-list__event {
	background: var(--iau-surface);
	border: 1px solid var(--iau-border);
	border-left: 0;
	border-radius: 0 var(--iau-radius) var(--iau-radius) 0;
	box-shadow: var(--iau-shadow);
	transition: box-shadow .2s var(--iau-ease), border-color .2s var(--iau-ease);
}
body.tribe-events-page-template .tribe-events-calendar-list__event-row:hover .tribe-events-calendar-list__event-date-tag,
body.tribe-events-page-template .tribe-events-calendar-list__event-row:hover .tribe-events-calendar-list__event {
	border-color: var(--iau-orange);
}
body.tribe-events-page-template .tribe-events-calendar-list__event-details {
	padding: 12px 20px;
}
body.tribe-events-page-template .tribe-events-calendar-list__event-title {
	font-family: var(--iau-font) !important;
	font-size: var(--iau-fs-title) !important;
	font-weight: var(--iau-fw-emphasis) !important;
	line-height: 1.3;
	margin: 0 0 4px;
}
body.tribe-events-page-template .tribe-events-calendar-list__event-title-link {
	font-family: var(--iau-font) !important;
	color: var(--iau-text) !important;
	text-decoration: none;
	transition: color .15s var(--iau-ease);
}
body.tribe-events-page-template .tribe-events-calendar-list__event-title-link:hover {
	color: var(--iau-orange-deep) !important;
}
body.tribe-events-page-template .tribe-events-calendar-list__event-datetime-wrapper {
	font-family: var(--iau-font) !important;
	font-size: 24px !important;
	color: var(--iau-muted) !important;
}

@media (max-width: 680px) {
	/* จอแคบ: ป้ายวันที่วงกลม (ซ้ำกับวัน-เวลาที่มีอยู่แล้วในการ์ด) ทำให้การ์ดสูงเทอะทะโดยไม่จำเป็น
	   — ซ่อนป้ายทิ้ง ให้การ์ดกิจกรรมกว้างเต็มบรรทัดแทน (เร็ว/ชัวร์กว่าไปสู้กับความกว้างคงที่ของ .tribe-common-g-col) */
	body.tribe-events-page-template .tribe-events-calendar-list__event-date-tag {
		display: none;
	}
	body.tribe-events-page-template .tribe-events-calendar-list__event-wrapper {
		width: 100% !important;
	}
	body.tribe-events-page-template .tribe-events-calendar-list__event {
		border-radius: var(--iau-radius);
		border-left: 1px solid var(--iau-border);
	}
}
