/*
Theme Name:        Pakchom
Theme URI:         https://example.com/
Description:       ธีมเว็บไซต์โรงเรียนปากชมวิทยา โทนเขียวมะนาว–ทอง มินิมอล ทางการแต่ทันสมัย ใช้คู่กับปลั๊กอิน Pakchom Core
Version:           1.0.0
Requires at least: 6.4
Requires PHP:      8.0
Author:            โรงเรียนปากชมวิทยา
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       pakchom
*/

/* ---------- Tokens ---------- */
:root {
	--lime: #B5DC4A;
	--lime-line: #A3C83E;
	--gold: #F5BE1E;
	--ink: #253A14;
	--ink-2: #1F2E10;
	--body: #2A3520;
	--text: #4A5A3E;
	--muted: #5A6A4C;
	--link: #3C7316;
	--link-hover: #2C5810;
	--bg: #FBFDF3;
	--card: #FFFFFF;
	--line: #E8EFD6;
	--soft: #F1F8DC;
	--soft-2: #EAF4CF;
	--soft-line: #DCEAB6;
	--cream: #FFFBEA;
	--cream-line: #F6E6A8;
	--gold-soft: #FFF4CC;
	--gold-text: #7A5A00;
	--gold-ink: #2A2105;
	--shadow: 0 1px 3px rgba(37, 58, 20, 0.18);
	--radius: 20px;
	--font-head: "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif;
	--font-body: "IBM Plex Sans Thai", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--font-body); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.3; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; border: 1.5px solid transparent; text-decoration: none !important; cursor: pointer; font: inherit; font-weight: 600; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(0.97); }
.btn-lime { background: var(--lime); color: var(--ink-2); }
.btn-lime:hover { color: var(--ink-2); filter: brightness(0.97); }
.btn-white { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; color: var(--link); border-color: #9FCB3A; }
.btn-soft { background: #fff; color: #3E4C32; border-color: var(--soft-line); }
.btn svg { flex: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.header-top { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none !important; }
.brand img, .brand .custom-logo { width: 56px; height: 56px; object-fit: contain; flex: none; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); }
.brand-en { display: block; font-size: 14px; font-weight: 600; color: var(--link); letter-spacing: 0.02em; line-height: 1.3; }
.brand-sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.header-actions .btn { font-size: 15px; }
.nav-toggle { display: none; }

/* ---------- Capsule menu ---------- */
.nv { border-top: 1px solid #EEF3E0; }
.nv-inner { display: flex; justify-content: center; padding-top: 12px; padding-bottom: 14px; }
.nv-bar { position: relative; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px; background: var(--lime); border: 1px solid var(--lime-line); border-radius: 28px; font-size: 15px; list-style: none; margin: 0; }
.nv-bar > li { position: relative; }
.nv-bar > li.has-mega { position: static; }
.nv-item { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 2px solid transparent; color: var(--ink-2); background: none; font: inherit; cursor: pointer; text-decoration: none !important; line-height: 1.5; }
.nv-item:hover, .nv-item:focus-visible { border-color: #fff; color: var(--ink-2); outline: none; }
.nv-item.is-current { background: #fff; font-weight: 600; box-shadow: var(--shadow); }
.nv-item svg { transition: transform 0.15s; }
.nv-item[aria-expanded="true"] svg { transform: rotate(180deg); }
.ddm { position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 8px; }
.ddm[hidden] { display: none; }
.has-mega > .ddm { left: 50%; transform: translateX(-50%); }
.ddm-panel { min-width: 290px; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 32px rgba(37, 58, 20, 0.14); list-style: none; margin: 0; }
.ddm-mega { width: 860px; max-width: calc(100vw - 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 16px; }
.ddm-col { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ddm-head { padding: 6px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #8A6400; }
.ddm-link { display: block; padding: 9px 14px; border-radius: 999px; border: 2px solid transparent; color: #3E4C32; text-decoration: none !important; line-height: 1.45; }
.ddm-link:hover, .ddm-link:focus-visible { background: var(--soft); border-color: var(--lime); color: var(--ink); outline: none; }
.ddm-link.is-current { background: var(--soft); color: var(--ink); font-weight: 600; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--soft); }
.page-hero.is-cream { background: var(--cream); border-bottom: 1px solid var(--cream-line); }
.page-hero .wrap { padding-top: 48px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); }
.page-hero .lead { margin: 0; max-width: 760px; font-size: 17px; color: var(--text); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--link); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* ---------- Capsule sub-menu (tabs) ---------- */
.sub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sub-label { font-size: 15px; font-weight: 600; color: #3E4C32; }
.sub { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--lime); border: 1px solid var(--lime-line); border-radius: 28px; align-self: flex-start; }
.sub a { min-height: 40px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 2px solid transparent; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none !important; }
.sub a:hover, .sub a:focus-visible { border-color: #fff; outline: none; color: var(--ink-2); }
.sub a.is-on { background: #fff; box-shadow: var(--shadow); }

/* ---------- Sections / cards ---------- */
.section { padding-top: 48px; padding-bottom: 24px; }
.section:last-of-type { padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: #8A6400; }
.more { font-weight: 600; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-link { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink) !important; text-decoration: none !important; }
.card-link:hover, .card-link:focus-visible { border-color: var(--lime); outline: none; }
.card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.4; color: var(--ink); margin: 0; }
.card-text { margin: 0; font-size: 15px; color: var(--text); }
.read-more { font-weight: 600; font-size: 15px; color: var(--link); }
.thumb { aspect-ratio: 16 / 10; background: var(--soft-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb img.ph-logo { width: 72px; height: auto; object-fit: contain; opacity: 0.4; }
.hero-img img.hero-ph { width: 42%; height: auto; object-fit: contain; }
.tag { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: #EEF7D3; color: var(--link); font-size: 13px; font-weight: 600; line-height: 1.6; }
.tag-gold { background: var(--gold-soft); color: var(--gold-text); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.empty { padding: 36px; text-align: center; border-radius: 18px; background: #fff; border: 1px dashed var(--soft-line); color: var(--muted); }

/* ---------- Home ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: 14px; font-weight: 600; }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.15; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--lime) 62%); }
.hero p { margin: 0; font-size: 19px; color: var(--text); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 440px; min-width: 0; position: relative; }
.hero-media::before { content: ""; position: absolute; top: -14px; right: -14px; width: 120px; height: 120px; border-radius: 24px; background: var(--gold); }
.hero-media::after { content: ""; position: absolute; bottom: -16px; left: -16px; width: 90px; height: 90px; border-radius: 50%; background: var(--lime); }
.hero-img { position: relative; z-index: 1; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; background: var(--soft-2); border: 1px solid #D6E7A6; display: flex; align-items: center; justify-content: center; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 24px; }
.quick a { display: flex; gap: 14px; align-items: center; padding: 20px; background: #fff; border: 2px solid var(--line); border-radius: 18px; color: var(--ink) !important; text-decoration: none !important; }
.quick a:hover, .quick a:focus-visible { border-color: var(--lime); outline: none; }
.quick .ic { width: 48px; height: 48px; border-radius: 14px; background: #EEF7D3; display: flex; align-items: center; justify-content: center; flex: none; }
.quick a:nth-child(even) .ic { background: var(--gold-soft); }
.quick strong { display: block; font-size: 17px; }
.quick small { font-size: 14px; color: var(--muted); }
.plans-band { background: var(--soft); margin-top: 48px; }
.plans-band .wrap { padding-top: 64px; padding-bottom: 64px; }
.plan { padding: 26px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.plan:nth-child(4n+1) { background: var(--lime); border-color: transparent; }
.plan:nth-child(4n+3) { background: var(--gold); border-color: transparent; color: var(--gold-ink); }
.plan .no { font-family: var(--font-head); font-weight: 700; font-size: 32px; }
.plan h3 { margin: 0; font-size: 20px; color: inherit; }
.plan p { margin: 0; font-size: 15px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.split > * { flex: 1 1 360px; min-width: 0; }
.director-card { padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; flex-grow: 1.4; }
.director-card .portrait { width: 160px; flex: none; }
.director-card blockquote { margin: 0; font-family: var(--font-head); font-size: 21px; line-height: 1.6; color: var(--ink); }
.events-card { padding: 32px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 24px; display: flex; flex-direction: column; gap: 16px; }
.events-card h2 { margin: 0; font-size: 26px; }
.ev { display: flex; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--cream-line); }
.ev:last-of-type { border-bottom: 0; }
.ev-date { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 2px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1.1; }
.ev-date b { font-family: var(--font-head); font-size: 22px; color: var(--ink); }
.ev-date small { font-size: 12px; color: var(--muted); }
.ev strong { display: block; color: var(--ink); }
.ev span { font-size: 14px; color: var(--muted); }
.cta { padding: 40px 44px; border-radius: 28px; background: var(--gold); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); color: var(--gold-ink); }
.cta p { margin: 8px 0 0; color: #3A2E05; font-size: 17px; }

/* ---------- People ---------- */
.avatar { border-radius: 50%; background: var(--soft-2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-family: var(--font-head); font-weight: 700; color: var(--link); border: 4px solid #D6E7A6; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.is-gold { border-color: var(--gold); }
.avatar.is-lime { border-color: var(--lime); }
.person { padding: 24px 16px; align-items: center; text-align: center; gap: 10px; }
.person .avatar { width: 112px; height: 112px; font-size: 36px; }
.person-name { font-weight: 600; color: var(--ink); }
.person-role { font-size: 14px; color: var(--muted); line-height: 1.5; }
.portrait { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--soft-2); border: 1px solid #D6E7A6; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 64px; font-weight: 700; color: var(--link); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait.bar-gold { border-bottom: 10px solid var(--gold); }
.portrait.bar-lime { border-bottom: 10px solid var(--lime); }
.lead-card { padding: 26px; display: flex; gap: 20px; align-items: center; }
.lead-card .avatar { width: 112px; height: 112px; font-size: 36px; border-color: var(--gold); }
.lead-card .k { font-size: 13px; font-weight: 600; color: #8A6400; }
.lead-card .n { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }
.panel-cream { padding: 26px; border-radius: 24px; background: var(--cream); border: 1px solid var(--cream-line); }
.panel-cream h2 { margin: 0 0 10px; font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--cream-line); font-size: 14px; color: #3E4C32; }

.profile { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.profile-photo { flex: 1 1 320px; max-width: 440px; min-width: 0; }
.profile-info { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.profile-info h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.profile-info .pos { font-size: 20px; color: #3E4C32; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.contact-cards > * { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; }
.contact-cards small { display: block; font-size: 13px; color: var(--muted); }
.contact-cards b { overflow-wrap: anywhere; }
.rows { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.rows > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 22px; border-top: 1px solid #EEF3E0; }
.rows > div:first-child { border-top: 0; }
.rows dt { flex: 0 0 170px; font-size: 15px; color: var(--muted); margin: 0; }
.rows dd { flex: 1 1 240px; margin: 0; color: var(--ink); font-weight: 500; }
.mini { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.mini .avatar { width: 52px; height: 52px; font-size: 18px; border-width: 2px; }

/* ---------- Structure ---------- */
.org-top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.org-side { flex: 0 1 260px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1.5px dashed #CFE2A0; text-align: center; }
.org-side small { display: block; font-size: 13px; color: var(--muted); }
.org-main { flex: 0 1 300px; padding: 20px 24px; border-radius: 22px; background: var(--gold); color: var(--gold-ink) !important; text-align: center; text-decoration: none !important; display: flex; flex-direction: column; gap: 2px; }
.org-main b { font-family: var(--font-head); font-size: 21px; }
.org-line { width: 2px; height: 32px; background: #CFE2A0; margin: 0 auto; }
.org-bar { height: 2px; background: #CFE2A0; margin: 0 12.5%; }
.org-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 18px; }
.org-col { display: flex; flex-direction: column; }
.org-col .org-line { height: 26px; }
.dept-card { border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.dept-head { padding: 16px 18px; text-align: center; color: var(--ink-2) !important; text-decoration: none !important; display: flex; flex-direction: column; gap: 2px; background: var(--lime); }
.org-col:nth-child(even) .dept-head { background: var(--gold); color: var(--gold-ink) !important; }
.dept-head b { font-family: var(--font-head); font-size: 18px; }
.dept-head small { font-size: 13px; }
.dept-tasks { list-style: none; margin: 0; padding: 12px 18px; flex: 1; }
.dept-tasks li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; color: #3E4C32; border-bottom: 1px solid #F1F5E6; }
.dept-tasks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-top: 9px; flex: none; }
.dept-more { padding: 12px 18px; font-weight: 600; border-top: 1px solid #EEF3E0; }
.task { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.task .n { width: 40px; height: 40px; border-radius: 12px; background: #EEF7D3; color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.task:nth-child(even) .n { background: var(--gold-soft); }
.task b { display: block; color: var(--ink); }
.task small { font-size: 14px; color: var(--muted); }

/* ---------- Calendar / docs / reports ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--text); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.k-academic { background: var(--lime); }
.k-activity { background: var(--gold); }
.k-holiday { background: #C9D3BB; }
.event-row { display: flex; gap: 18px; align-items: center; padding: 16px 20px; }
.event-row .ev-chip { width: 64px; height: 64px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; color: var(--ink-2); line-height: 1.1; }
.event-row .ev-chip b { font-family: var(--font-head); font-size: 22px; }
.event-row .ev-chip small { font-size: 12px; }
.list { display: flex; flex-direction: column; gap: 12px; }
.doc-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 16px 20px; }
.doc-row .ext { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-text); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.doc-row .t { flex: 1 1 280px; min-width: 0; }
.doc-row .t b { display: block; color: var(--ink); font-size: 17px; }
.doc-row .t small { font-size: 14px; color: var(--muted); }
.search-pill { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 0 6px 0 18px; min-height: 52px; border-radius: 999px; background: #fff; border: 1.5px solid #D6E3B3; }
.search-pill input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; min-height: 48px; min-width: 0; }
.report-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.report-card { flex: 1 1 340px; min-width: 0; padding: 30px; border-radius: 24px; background: var(--lime); color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.report-card.is-gold { background: var(--gold); color: var(--gold-ink); }
.report-card .big { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.2; }
.report-card .btn { align-self: flex-start; margin-top: 8px; }
.report-side { flex: 2 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.report-side h2 { margin: 0; font-size: 23px; }
.res-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding: 16px 20px; }
.res-row .t { flex: 1 1 260px; min-width: 0; font-weight: 600; color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tile { padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.tile small { display: block; font-size: 14px; color: var(--muted); }
.tile b { font-family: var(--font-head); font-size: 28px; color: var(--ink); }
.tile.is-lime { background: var(--lime); border-color: transparent; }
.tile.is-gold { background: var(--gold-soft); border-color: transparent; }
.acc { border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 24px; min-height: 64px; }
.acc summary::-webkit-details-marker { display: none; }
.acc[open] summary { background: #F7FBEA; }
.acc .no { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); background: var(--lime); flex: none; }
.acc:nth-child(even) .no { background: var(--gold); }
.acc .t { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--ink); }
.acc .c { font-size: 14px; color: var(--muted); }
.acc .sign::after { content: "+"; font-size: 22px; color: var(--link); }
.acc[open] .sign::after { content: "−"; }
.acc-body { padding: 4px 24px 18px; }
.acc-body a, .acc-body .row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 13px 0; border-top: 1px solid #EEF3E0; color: var(--ink); }
.code { min-width: 52px; padding: 3px 10px; border-radius: 8px; background: #EEF7D3; color: var(--link); font-weight: 600; font-size: 14px; text-align: center; }
.table-box { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.table-box table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.table-box th { background: #EEF7D3; text-align: left; padding: 14px 20px; font-weight: 600; color: var(--ink); }
.table-box td { padding: 13px 20px; border-top: 1px solid #EEF3E0; color: var(--text); }
.table-box td:first-child { color: var(--ink); font-weight: 600; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.three > div { padding: 24px; }
.three h2 { margin: 0 0 8px; font-size: 20px; }
.three p { margin: 0; color: var(--text); white-space: pre-line; }

/* ---------- Article / content ---------- */
.article { padding-top: 40px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 22px; }
.article h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.article .featured { border-radius: 24px; overflow: hidden; background: var(--soft-2); }
.article .featured img { width: 100%; display: block; }
.entry-content { font-size: 17px; line-height: 1.9; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 26px; margin: 1.6em 0 0.5em; }
.entry-content h3 { font-size: 21px; margin: 1.4em 0 0.4em; }
.entry-content blockquote { margin: 1.2em 0; padding: 18px 22px; border-radius: 18px; background: var(--cream); font-family: var(--font-head); font-size: 19px; color: var(--ink); border: 0; }
.entry-content figure { margin: 1.4em 0; }
.entry-content img { border-radius: 16px; }
.entry-content table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid #EEF3E0; text-align: left; }
.entry-content th { background: #EEF7D3; color: var(--ink); }
.entry-content .wp-block-file { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.entry-content .wp-block-file .wp-block-file__button { border-radius: 999px; background: var(--lime); color: var(--ink-2); padding: 8px 18px; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--lime); color: var(--ink-2); font-weight: 600; }
.share { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share .btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.post-nav a { padding: 16px 20px; border-radius: 18px; background: #fff; border: 2px solid var(--line); color: var(--ink) !important; text-decoration: none !important; display: flex; flex-direction: column; gap: 2px; }
.post-nav a:hover { border-color: var(--lime); }
.post-nav small { color: var(--muted); }
.post-nav .next { text-align: right; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.pagination .page-numbers.current { background: var(--lime); border-color: var(--lime); font-weight: 600; }
.featured-news { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 22px; flex-direction: row; }
.featured-news .thumb { flex: 1 1 420px; border-radius: 18px; aspect-ratio: 16 / 9; }
.featured-news .card-body { flex: 1 1 360px; padding: 0; }
.featured-news .card-title { font-size: 28px; }
.map { min-height: 380px; border-radius: 24px; overflow: hidden; background: var(--soft-2); border: 1px solid #D6E7A6; display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 0; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-cards > div { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.info-cards .ic { width: 44px; height: 44px; border-radius: 12px; background: #EEF7D3; display: flex; align-items: center; justify-content: center; }
.info-cards > div:nth-child(even) .ic { background: var(--gold-soft); }
.info-cards b { color: var(--ink); }
.info-cards p { margin: 0; font-size: 15px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.admin-hint { padding: 14px 18px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-text); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 4px solid var(--lime); margin-top: 0; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 40px; padding-bottom: 28px; }
.footer-top > div { flex: 1 1 300px; min-width: 0; color: var(--text); font-size: 15px; line-height: 1.8; }
.footer-top b { font-family: var(--font-head); font-size: 20px; color: var(--ink); display: block; margin-bottom: 4px; }
.footer-bottom { padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--soft-line); font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.nv { display: none; }
	.nv.is-open { display: block; }
	.nv-inner { padding-top: 8px; }
	.nv-bar { flex-direction: column; flex-wrap: nowrap; width: 100%; border-radius: 22px; }
	.nv-bar > li, .nv-bar > li.has-mega { position: relative; }
	.nv-item { width: 100%; justify-content: space-between; }
	.ddm, .has-mega > .ddm { position: static; transform: none; margin: 4px 0 6px; }
	.ddm-panel, .ddm-mega { width: auto; max-width: none; min-width: 0; box-shadow: none; }
	.ddm-mega { grid-template-columns: 1fr; }
	.org-bar { display: none; }
}
@media (max-width: 600px) {
	.wrap { padding: 0 16px; }
	.header-actions .btn-soft:not(.nav-toggle) { display: none; }
	.cta { padding: 28px; }
	.director-card { padding: 22px; }
	.rows dt { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
