/*
Theme Name: IRES Modern
Author: IRES
Description: เว็บไซต์มูลนิธิสถาบันวิจัยระบบการศึกษา โทนเขียว ขาว และส้ม รองรับมือถือ
Version: 1.0.1
Text Domain: ires-modern
Requires PHP: 7.4
*/
:root{--ink:#122e3d;--green:#075b49;--teal:#087260;--orange:#ee571f;--muted:#617370;--line:#dce6e1;--cream:#f6f8f3;--navy:#092e39}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:105px}body{margin:0;color:var(--ink);background:#fff;font-family:Tahoma,"Leelawadee UI",system-ui,sans-serif;font-size:16px;line-height:1.8;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a,button{touch-action:manipulation}img{max-width:100%;height:auto;display:block}button,input{font:inherit}button,a,input{outline-offset:5px}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--orange)}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.45;letter-spacing:-.035em}p{color:var(--muted)}.wrap{width:min(1280px,calc(100% - 96px));margin:auto}.topbar{background:var(--green);color:#fff;font-size:11px;letter-spacing:.02em}.topbar .wrap{display:flex;justify-content:space-between;align-items:center;min-height:32px}.topbar a{color:#e0eee5}.site-header{position:sticky;top:0;background:#fffffffa;backdrop-filter:blur(12px);z-index:30;border-bottom:1px solid var(--line)}.header-inner{min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:18px}.brand-mark{font-family:Arial,sans-serif;font-weight:800;letter-spacing:-4px;font-size:48px;line-height:1;color:var(--green);position:relative;border-left:6px solid var(--orange);padding-left:7px;padding-right:5px}.brand-name{font-size:15px;font-weight:700;line-height:1.5;letter-spacing:-.02em}.brand-name small{display:block;font-size:8px;font-weight:400;color:var(--muted);letter-spacing:0;margin-top:5px}#site-nav{display:flex;align-items:center;gap:28px}.nav-links{display:flex;align-items:center;gap:25px;padding:0;margin:0;list-style:none;font-size:13px;font-weight:700}.nav-links a{display:block;padding:14px 0}.nav-links a:hover{color:var(--teal)}.nav-links li{position:relative}.nav-links .sub-menu{display:none;position:absolute;background:white;list-style:none;min-width:200px;padding:16px;box-shadow:0 10px 24px #0001}.nav-links li:hover>.sub-menu,.nav-links li:focus-within>.sub-menu{display:block}.contact-button{background:var(--green);color:white;border-radius:4px;padding:10px 18px;font-size:13px;white-space:nowrap}.contact-button span{margin-left:15px}.menu-toggle{display:none}.hero{position:relative;min-height:580px;overflow:hidden;background:#e9f1e8}.hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#f2f7ef 0%,#f2f7eff5 17%,#f2f7efda 33%,#f2f7ef50 54%,transparent 71%)}.hero-inner{position:relative;padding-top:66px;padding-bottom:60px}.hero-copy{max-width:650px}.eyebrow{font-family:Arial,Tahoma,sans-serif;font-size:11px;letter-spacing:.18em;font-weight:700;color:var(--teal);display:block;line-height:1.6}.hero .eyebrow:before{content:"";width:35px;height:2px;background:var(--orange);display:inline-block;margin-right:13px;vertical-align:middle}.hero h1{font-size:clamp(38px,4.1vw,60px);font-weight:700;line-height:1.37;letter-spacing:-.05em;margin:22px 0 20px}.hero em,.about-copy em{font-style:normal;color:var(--green)}.hero-copy>p{font-size:15px;line-height:1.95;color:#3f5b58}.hero-actions{display:flex;align-items:center;gap:32px;margin-top:28px}.button{background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:30px;padding:13px 24px;border-radius:4px;font-weight:700;font-size:14px;transition:transform .2s,background .2s}.button:hover{transform:translateY(-2px);background:#044736}.button.orange{background:var(--orange)}.button.orange:hover{background:#c7410d}.text-link{display:inline-flex;align-items:center;gap:20px;font-size:13px;font-weight:700;color:var(--green)}.text-link:hover{text-decoration:underline}.hero-note{display:flex;align-items:center;gap:13px;font-size:11px;color:var(--muted);margin-top:38px}.note-line{width:38px;height:1px;background:var(--green)}.hero-caption{position:absolute;right:34px;bottom:24px;color:white;font-size:9px;letter-spacing:.19em;text-shadow:0 1px 6px #0009}.mission-strip{background:var(--cream);border-bottom:1px solid var(--line)}.mission-grid{display:grid;grid-template-columns:1.05fr 1fr 1fr 1fr;padding-top:35px;padding-bottom:35px;gap:35px}.mission-grid>div+div{border-left:1px solid var(--line);padding-left:34px}.mission-intro h2{font-size:24px;margin-top:7px}.mission-icon{font-family:Georgia,serif;color:var(--teal);font-size:19px}.mission-grid h3{font-size:17px;margin:5px 0 8px}.mission-grid p{font-size:13px;line-height:1.9}.section{padding:76px 0}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:30px}.section-head h2{font-size:31px;margin-top:10px}.section-head p{font-size:14px;margin-top:12px}.section-head>.text-link{white-space:nowrap;padding-bottom:7px}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:27px}.post-card{border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.post-card:hover{transform:translateY(-4px);box-shadow:0 12px 35px #123b2a0c}.card-image{overflow:hidden;display:block;aspect-ratio:1.8;background:#e8eee9}.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.post-card:hover .card-image img{transform:scale(1.035)}.card-copy{padding:24px;display:flex;flex-direction:column;flex:1}.card-copy .eyebrow{letter-spacing:.025em;font-size:10px}.card-copy h3,.card-copy h2{font-size:19px;line-height:1.65;margin:9px 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-copy p{font-size:13px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:auto;padding-top:15px;gap:12px}.card-copy p+.card-bottom{margin-top:22px}.card-bottom time,.card-copy>time{font-size:11px;color:var(--muted)}.card-bottom a{color:var(--green);width:32px;height:32px;border-radius:50%;background:#eef5f0;text-align:center;font-size:20px;line-height:32px}.about-section{background:var(--cream);padding:65px 0}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.about-photo{position:relative;min-height:440px;height:100%;border-radius:6px;overflow:hidden}.about-photo img{height:100%;width:100%;object-fit:cover;position:absolute;object-position:65% center}.photo-label{position:absolute;bottom:22px;left:22px;background:#fff;padding:12px 20px;font-size:13px;color:var(--green);border-left:3px solid var(--orange)}.about-copy{padding:15px 0}.about-copy h2{font-size:36px;margin:17px 0 18px}.about-copy p{font-size:14px;line-height:2;margin-bottom:22px}.topic-links{border-top:1px solid var(--line);margin-top:30px}.topic-links a{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.topic-links span{color:var(--teal)}.knowledge-section{background:#f7f9f7}.publication-grid .card-image{aspect-ratio:2; background:#e2eae4}.cta-section{background:var(--green);color:white;position:relative;overflow:hidden}.cta-section:after{content:"";position:absolute;width:450px;height:450px;border:1px solid #ffffff12;border-radius:50%;right:6%;top:-150px;box-shadow:0 0 0 70px #ffffff05,0 0 0 140px #ffffff04;pointer-events:none}.cta-inner{padding-top:62px;padding-bottom:62px;display:flex;justify-content:space-between;align-items:center;gap:30px;position:relative;z-index:1}.cta-inner .eyebrow{color:#b7dace}.cta-inner h2{font-size:37px;margin:12px 0}.cta-inner p{color:#d3e7df;font-size:14px}.site-footer{background:#092c31;color:#fff;padding-top:55px}.footer-grid{display:grid;grid-template-columns:1.4fr .8fr 1fr 1.2fr;gap:45px;padding-bottom:45px}.footer-brand{font:700 40px/1 Arial,sans-serif;letter-spacing:-2px}.footer-brand span{display:block;font-family:Tahoma,sans-serif;font-size:12px;letter-spacing:0;margin-top:13px}.footer-grid p{font-size:12px;margin-top:20px;color:#b2c9c4}.footer-grid h3{font-size:13px;margin-bottom:17px}.footer-grid>div>a:not(.footer-brand){display:block;color:#c4d8d1;font-size:12px;margin-bottom:10px}.footer-bottom{border-top:1px solid #ffffff20;display:flex;justify-content:space-between;gap:20px;padding-top:20px;padding-bottom:20px;font-size:10px;color:#9bb6b0}.search-form{display:flex;border:1px solid #9bb6b0;border-radius:3px;overflow:hidden;margin:15px 0;max-width:500px;background:#fff}.search-form input{min-width:0;width:100%;border:0;padding:11px;font-size:12px;color:var(--ink);background:white}.search-form button{border:0;background:#e5eee8;color:var(--green);font-size:11px;white-space:nowrap;padding:10px;cursor:pointer}.listing{min-height:55vh}.page-heading{margin-bottom:38px}.page-heading h1{font-size:clamp(28px,3.3vw,46px);margin:14px 0 15px;overflow-wrap:anywhere}.page-heading time{font-size:13px;color:var(--muted)}.article-wrap{max-width:900px}.back-link{margin-bottom:26px}.article-cover{width:100%;max-height:520px;object-fit:cover;border-radius:6px;margin-bottom:35px}.entry-content{font-size:17px;line-height:2;color:#344b4a;overflow-wrap:anywhere}.entry-content>*{max-width:100%}.entry-content p{color:inherit;margin-bottom:1.4em}.entry-content h2,.entry-content h3{margin:1.5em 0 .7em}.entry-content a{color:var(--green);text-decoration:underline}.entry-content img{height:auto;max-width:100%}.entry-content iframe,.entry-content video{max-width:100%}.entry-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.entry-content td,.entry-content th{padding:10px;border:1px solid var(--line)}.post-navigation{display:flex;justify-content:space-between;gap:30px;border-top:1px solid var(--line);padding-top:30px;margin-top:50px;font-size:13px}.post-navigation a{flex:1}.pagination{margin-top:38px}.page-numbers{display:inline-block;padding:6px 13px}.page-numbers.current{background:var(--green);color:#fff}.empty-state{min-height:40vh;padding-top:40px;padding-bottom:40px}.empty-state p{margin:20px 0}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:white;padding:12px}.skip-link:focus{top:12px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.hero{min-height:650px}.hero-inner{padding-top:90px}.hero-image{object-position:center 45%}}
@media(max-width:1150px){.wrap{width:calc(100% - 56px)}.brand-name{font-size:12px}.brand-name small{font-size:7px}.nav-links{gap:16px;font-size:12px}#site-nav{gap:18px}.header-inner{gap:15px}.brand{gap:12px}.brand-mark{font-size:42px}.contact-button{padding:9px 12px}.about-grid{gap:40px}.hero h1{font-size:48px}.footer-grid{gap:25px}}
@media(max-width:900px){.brand-name{font-size:14px}.brand-name small{font-size:8px}.menu-toggle{display:flex;gap:15px;align-items:center;background:white;border:1px solid var(--line);border-radius:4px;padding:7px 12px;color:var(--green);font-size:13px}.header-inner{min-height:80px}#site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;padding:15px 28px 25px;box-shadow:0 14px 20px #0001;align-items:stretch}#site-nav.is-open{display:flex;flex-direction:column;gap:15px}.nav-links{flex-direction:column;align-items:stretch;gap:0}.nav-links a{border-bottom:1px solid var(--line);font-size:15px}.nav-links .sub-menu{position:static;display:block;box-shadow:none}.contact-button{align-self:flex-start}.hero{min-height:550px}.hero-shade{background:linear-gradient(90deg,#f2f7effa 0%,#f2f7efed 30%,#f2f7ef30 85%)}.hero h1{font-size:45px}.mission-grid{gap:22px;grid-template-columns:repeat(2,1fr)}.mission-grid>div+div{padding-left:20px}.mission-grid>div:nth-child(3){border:0;padding:0}.cards-grid{gap:18px}.card-copy{padding:17px}.card-copy h3,.card-copy h2{font-size:17px}.about-grid{gap:30px}.about-copy h2{font-size:30px}.section-head h2{font-size:27px}.footer-grid{grid-template-columns:1fr 1fr;gap:35px}.hero-caption{display:none}}
@media(max-width:640px){.wrap{width:calc(100% - 40px)}.topbar .wrap{min-height:29px}.topbar .wrap>span{display:none}.topbar .wrap{justify-content:flex-end}.brand-mark{font-size:38px;letter-spacing:-3px;border-left-width:4px}.brand-name{font-size:10px;max-width:180px}.brand-name small{font-size:6px;max-width:160px;line-height:1.5}.brand{gap:10px}.header-inner{min-height:73px}.menu-toggle{font-size:11px;padding:6px 9px;gap:7px}.hero{min-height:680px;display:flex;align-items:flex-start}.hero-image{height:100%;object-position:65% center}.hero-shade{background:linear-gradient(180deg,#f2f7effc 0%,#f2f7eff2 25%,#f2f7efb0 49%,#f2f7ef00 70%)}.hero-inner{padding-top:35px;padding-bottom:210px}.hero h1{font-size:37px;line-height:1.4;margin:17px 0}.hero .eyebrow{font-size:9px;letter-spacing:.12em}.hero-copy>p{font-size:12px;max-width:330px}.desktop{display:none}.hero-actions{gap:24px;margin-top:21px}.button{font-size:12px;padding:12px 19px;gap:24px}.text-link{font-size:12px;gap:12px}.hero-note{margin-top:23px;font-size:10px}.mission-grid{padding-top:28px;padding-bottom:28px;gap:22px 17px}.mission-grid>div+div{padding-left:17px}.mission-intro h2{font-size:23px}.mission-grid h3{font-size:14px}.mission-grid p{font-size:11px}.mission-icon{font-size:17px}.eyebrow{font-size:9px}.section{padding:46px 0}.section-head{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:23px}.section-head h2{font-size:25px}.cards-grid{grid-template-columns:1fr;gap:24px}.card-copy{padding:22px}.card-copy h3,.card-copy h2{font-size:20px}.card-image{aspect-ratio:1.8}.card-copy p{font-size:13px}.about-section{padding:40px 0}.about-grid{grid-template-columns:1fr;gap:24px}.about-photo{min-height:300px}.about-copy h2{font-size:31px}.about-copy p{font-size:14px}.photo-label{font-size:11px;left:15px;bottom:15px}.cta-inner{padding-top:42px;padding-bottom:42px;align-items:flex-start;flex-direction:column;gap:24px}.cta-inner h2{font-size:30px}.cta-inner p{font-size:12px}.footer-grid{gap:30px 20px}.footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1/-1}.footer-grid h3{font-size:12px}.footer-bottom{flex-direction:column;gap:7px;font-size:9px}.page-heading h1{font-size:28px}.entry-content{font-size:16px}.post-navigation{flex-direction:column}.search-form input{font-size:13px}.article-wrap{width:calc(100% - 40px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
.community-panels{display:grid;grid-template-columns:1fr 1fr;gap:32px}.info-panel{background:white;border:1px solid var(--line);border-radius:6px;padding:30px}.info-panel h2{font-size:25px;margin:10px 0 17px}.info-panel p{font-size:13px}.panel-row{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:17px 0;font-size:14px;line-height:1.8}.panel-row:hover{color:var(--teal)}.panel-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.info-panel>.text-link{margin-top:22px}.president-panel{display:flex;align-items:flex-start;gap:24px}.president-panel>img{width:100px;border-radius:5px}.president-panel .text-link{display:flex;margin-top:16px}.category-directory{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.category-directory a{display:flex;align-items:center;justify-content:space-between;gap:18px;background:white;border:1px solid var(--line);padding:16px 20px;font-size:13px;border-radius:4px}.category-directory span{color:var(--green);background:var(--cream);padding:0 10px;border-radius:30px}.archive-bottom{display:flex;justify-content:space-between;margin-top:25px}.contact-details{background:#092c31;color:white;padding:0 0 30px}.contact-details .wrap{border-top:1px solid #ffffff20;padding-top:25px}.contact-details h2{font-size:15px;margin-bottom:12px}.contact-details p{font-size:12px;color:#c4d8d1;margin:6px 0}.contact-details small{font-size:10px;color:#9bb6b0}@media(max-width:900px){.category-directory{grid-template-columns:1fr 1fr}.president-panel{flex-direction:column}}@media(max-width:640px){.community-panels,.category-directory{grid-template-columns:1fr}.info-panel{padding:23px}.president-panel{flex-direction:row}.president-panel>img{width:70px}.info-panel h2{font-size:22px}.panel-row{font-size:13px}}
.archive-nav{border-bottom:1px solid var(--line);background:#f6f8f3}.archive-nav .wrap{display:flex;gap:24px;overflow-x:auto;padding-top:9px;padding-bottom:9px}.archive-nav a{font-size:11px;white-space:nowrap;color:var(--green)}
.recent-directory{display:grid;grid-template-columns:1fr 1fr;gap:0 35px}.project-links{display:flex;gap:25px;flex-wrap:wrap;margin-top:25px}@media(max-width:640px){.recent-directory{grid-template-columns:1fr}}
.project-banner-section{padding:40px 0;background:#fff}.project-banners{display:grid;grid-template-columns:1fr 1fr;gap:25px}.project-banner{display:block;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:white;transition:box-shadow .2s,transform .2s}.project-banner:hover{box-shadow:0 8px 25px #123b2a16;transform:translateY(-3px)}.project-banner img{width:100%;height:auto}.project-banner>span{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:13px 18px;font-size:13px;font-weight:700;color:var(--green)}@media(max-width:900px){.project-banners{grid-template-columns:1fr;gap:20px}}
/* Compact homepage: ordered editorial feed with a dedicated sidebar. */
body{line-height:1.6}.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:35px;align-items:start;padding-top:32px;padding-bottom:38px}.home-feed{min-width:0}.feed-section{padding:0 0 28px;margin:0 0 28px;border-bottom:1px solid var(--line)}.feed-section:last-child{margin-bottom:0;border-bottom:0;padding-bottom:0}.home-layout .section-head{gap:16px;margin-bottom:16px;align-items:flex-end;flex-direction:row}.home-layout .section-head h2{font-size:24px;margin-top:5px}.home-layout .eyebrow{font-size:9px;line-height:1.4;letter-spacing:.13em}.home-layout .section-head>.text-link{padding-bottom:3px;white-space:nowrap}.home-feed .cards-grid{gap:16px}.home-feed .card-copy{padding:14px}.home-feed .card-copy h3{font-size:16px;line-height:1.5;margin:7px 0 9px}.home-feed .card-copy p{font-size:12px;line-height:1.55;-webkit-line-clamp:2}.home-feed .card-copy p+.card-bottom{margin-top:12px}.home-feed .card-bottom{padding-top:9px}.home-feed .card-bottom time{font-size:10px}.home-feed .card-bottom a{height:27px;width:27px;line-height:27px;font-size:17px}.home-sidebar{min-width:0;display:flex;flex-direction:column;gap:22px;border-left:1px solid var(--line);padding-left:24px}.side-panel{padding-bottom:18px;border-bottom:1px solid var(--line)}.side-panel h2{font-size:18px;line-height:1.45;margin:6px 0 10px}.side-panel p{font-size:12px;line-height:1.55}.foundation-intro{display:flex;gap:12px;margin:13px 0}.foundation-intro img{width:65px;height:80px;object-fit:cover;border-radius:4px}.foundation-intro h2{font-size:15px;margin:0 0 5px}.side-panel .panel-row{padding:10px 0;font-size:12px;line-height:1.55}.side-panel .panel-row small{font-size:10px;margin-top:4px}.side-panel .text-link{font-size:11px;margin-top:10px}.home-sidebar .project-banner-section{padding:0 0 18px;border-bottom:1px solid var(--line);background:none}.home-sidebar .project-banner-section>.wrap{width:100%;margin:0}.home-sidebar .project-banner-section h2{font-size:18px;line-height:1.45}.home-sidebar .project-banners{grid-template-columns:1fr;gap:12px}.home-sidebar .project-banner>span{font-size:11px;line-height:1.5;padding:9px 10px;gap:8px}.archive-section{padding:30px 0}.archive-section .section-head{margin-bottom:18px}.archive-section .section-head h2{font-size:24px;margin-top:5px}.archive-section .category-directory a{padding:10px 14px}.archive-section .archive-bottom{margin-top:17px}.home .hero{min-height:460px}.home .hero-inner{padding-top:38px;padding-bottom:38px}.home .hero h1{font-size:46px;line-height:1.25;margin:17px 0}.home .hero-copy>p{line-height:1.65;font-size:14px}.home .hero-note{margin-top:24px}.home .hero-actions{margin-top:22px}.home .site-footer{padding-top:35px}.home .footer-grid{padding-bottom:25px}.home .footer-grid p{line-height:1.6}.home .archive-nav .wrap{padding-top:6px;padding-bottom:6px}
@media(max-width:1150px){.home-layout{grid-template-columns:minmax(0,1fr) 270px;gap:24px}.home-sidebar{padding-left:20px}.home-feed .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-feed .post-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.home-feed .post-card:last-child .card-image{height:100%;aspect-ratio:auto}}
@media(max-width:800px){.home-layout{grid-template-columns:1fr;gap:28px}.home-sidebar{padding-left:0;border-left:0;display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.home .hero{min-height:470px}.home .hero h1{font-size:40px}.home-layout .section-head h2{font-size:23px}}
@media(max-width:640px){.home-layout{padding-top:25px;padding-bottom:25px}.home-feed .cards-grid{grid-template-columns:1fr;gap:12px}.home-feed .post-card,.home-feed .post-card:last-child{display:grid;grid-template-columns:110px minmax(0,1fr);grid-column:auto}.home-feed .post-card .card-image{height:100%;aspect-ratio:auto}.home-feed .card-copy{padding:12px}.home-feed .card-copy h3{font-size:15px;line-height:1.45;margin:4px 0 7px}.home-feed .card-copy p{display:none}.home-feed .card-bottom{margin-top:auto}.home-layout .section-head{gap:12px}.home-layout .section-head h2{font-size:21px}.home-layout .section-head>.text-link{font-size:11px}.home-sidebar{grid-template-columns:1fr}.home-sidebar .project-banners{grid-template-columns:1fr}.home .hero{min-height:510px}.home .hero-inner{padding-top:28px;padding-bottom:155px}.home .hero h1{font-size:34px;line-height:1.3}.home .hero-copy>p{font-size:12px}.home .hero-note{margin-top:18px}.feed-section{padding-bottom:23px;margin-bottom:23px}}
/* Readable Thai type and aligned editorial cards. */
@font-face{font-family:IRES Sarabun;src:url('assets/fonts/Sarabun-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:IRES Sarabun;src:url('assets/fonts/Sarabun-SemiBold.woff2') format('woff2');font-style:normal;font-weight:600 900;font-display:swap}
body,button,input,textarea,select,.entry-content{font-family:'IRES Sarabun',Tahoma,sans-serif!important;letter-spacing:0;line-height:1.6}
h1,h2,h3,.brand-name{font-family:'IRES Sarabun',Tahoma,sans-serif!important;letter-spacing:0;line-height:1.4;font-weight:600}
.brand-name{font-size:16px}.brand-name small{font-size:10px;line-height:1.4}.nav-links{font-size:15px}.archive-nav a{font-size:13px}.contact-button,.text-link{font-size:14px}.eyebrow,.home-layout .eyebrow{font-size:11px;letter-spacing:.1em;line-height:1.4}
.home .hero h1{font-size:46px;line-height:1.35;font-weight:600}.home .hero-copy>p{font-size:17px;line-height:1.65}.home .hero-note{font-size:12px}.home .hero .button{font-size:16px}.home-layout .section-head h2,.archive-section .section-head h2{font-size:27px;line-height:1.4}.home-layout .section-head{margin-bottom:18px}.home-feed .cards-grid{align-items:stretch}.home-feed .post-card,.home-feed .post-card:last-child{display:flex;flex-direction:column;grid-column:auto;height:100%}.home-feed .post-card .card-image,.home-feed .post-card:last-child .card-image{aspect-ratio:1.8;height:auto;flex:none}.home-feed .card-copy{padding:16px;display:flex;flex-direction:column}.home-feed .card-copy h3{font-size:18px;line-height:1.5;font-weight:600;margin:0 0 10px;height:4.5em;min-height:4.5em;-webkit-line-clamp:3}.home-feed .card-copy p{display:-webkit-box;font-size:15px;line-height:1.6;height:3.2em;min-height:3.2em;margin:0 0 14px;-webkit-line-clamp:2}.home-feed .card-copy p+.card-bottom{margin-top:auto}.home-feed .card-bottom{margin-top:auto;padding-top:10px;min-height:40px}.home-feed .card-bottom time{font-size:12px}.side-panel h2,.home-sidebar .project-banner-section h2{font-size:20px}.side-panel .panel-row{font-size:14px;line-height:1.55}.side-panel .panel-row small{font-size:12px}.side-panel p{font-size:14px;line-height:1.55}.foundation-intro h2{font-size:17px}.side-panel .text-link{font-size:13px}.home-sidebar .project-banner>span{font-size:13px;line-height:1.5}.category-directory a{font-size:14px}.entry-content{font-size:18px;line-height:1.7}.entry-content p{margin-bottom:1em}.footer-grid p,.footer-grid>div>a:not(.footer-brand),.contact-details p{font-size:14px;line-height:1.6}.footer-grid h3{font-size:16px}
@media(min-width:801px) and (max-width:1150px){.home-feed .cards-grid{grid-template-columns:1fr}.home-feed .post-card,.home-feed .post-card:last-child{display:grid;grid-template-columns:180px minmax(0,1fr)}.home-feed .post-card .card-image,.home-feed .post-card:last-child .card-image{height:100%;aspect-ratio:auto}.home-feed .card-copy h3{height:3em;min-height:3em;-webkit-line-clamp:2}}
@media(max-width:640px){.brand-name{font-size:12px}.brand-name small{font-size:8px}.home .hero h1{font-size:34px}.home .hero-copy>p{font-size:15px}.home .hero-note{font-size:11px}.home-layout .section-head h2{font-size:24px}.home-layout .section-head>.text-link{font-size:13px}.home-feed .post-card,.home-feed .post-card:last-child{display:grid;grid-template-columns:105px minmax(0,1fr)}.home-feed .post-card .card-image,.home-feed .post-card:last-child .card-image{height:100%;aspect-ratio:auto}.home-feed .card-copy{padding:13px}.home-feed .card-copy h3{font-size:17px;height:4.5em;min-height:4.5em;line-height:1.5}.home-feed .card-copy p{display:none}.home-feed .card-bottom{margin-top:auto}.eyebrow,.home-layout .eyebrow{font-size:10px}}
@media(max-width:640px){.home-feed .card-copy h3{height:3em;min-height:3em;-webkit-line-clamp:2}.brand-name small{max-width:190px}.home-feed .card-copy{padding:12px 13px}}
/* Equal card tracks: image / title / summary / date. */
.home-feed .cards-grid{align-items:stretch;grid-auto-rows:1fr}
.home-feed .post-card .card-copy{display:grid;grid-template-rows:81px 48px 40px;row-gap:10px;align-content:start;flex:1;padding:16px}
.home-feed .post-card .card-copy>h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;height:81px;min-height:0;max-height:81px;margin:0;line-height:27px;font-size:18px;align-self:start}
.home-feed .post-card .card-copy>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:48px;min-height:0;max-height:48px;margin:0;line-height:24px;font-size:15px;align-self:start}
.home-feed .post-card .card-copy>.card-bottom{display:flex;align-items:center;justify-content:space-between;height:40px;min-height:0;margin:0;padding:10px 0 0;border-top:1px solid var(--line);align-self:end}
.home-feed .post-card .card-image{overflow:hidden;line-height:0}
.home-feed .post-card .card-image img{display:block;object-fit:cover;width:100%;height:100%;margin:0}
@media(min-width:801px) and (max-width:1150px){.home-feed .post-card .card-copy{grid-template-rows:54px 48px 40px}.home-feed .post-card .card-copy>h3{height:54px;max-height:54px;-webkit-line-clamp:2}}
@media(max-width:640px){.home-feed .post-card .card-copy{padding:12px 13px;grid-template-rows:51px 36px;row-gap:9px}.home-feed .post-card .card-copy>h3{height:51px;max-height:51px;font-size:17px;line-height:25.5px;-webkit-line-clamp:2}.home-feed .post-card .card-copy>p{display:none}.home-feed .post-card .card-copy>.card-bottom{height:36px;padding-top:7px}}
/* Single-language headings and a sliding page-translation switch. */
.eyebrow{display:none!important}.hero-note{display:none!important}.footer-bottom>span:last-child{display:none}.language-control{position:relative;margin-left:auto;flex:none}.language-switch{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;min-width:106px;padding:4px;border:1px solid var(--line);border-radius:30px;background:#edf3ef;cursor:pointer;color:var(--green);font-size:13px;font-weight:600;line-height:30px;isolation:isolate}.language-switch:before{content:'';position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:20px;background:var(--green);transition:transform .2s}.language-switch[aria-checked=true]:before{transform:translateX(100%)}.language-switch[aria-checked=false] .language-th,.language-switch[aria-checked=true] .language-en{color:white}.language-switch:disabled{opacity:.6;cursor:wait}.language-status{position:absolute;right:0;top:100%;white-space:nowrap;font-size:10px;color:var(--muted);background:white;line-height:1.4;border-radius:3px}.section-head h2,.home-layout .section-head h2{margin-top:0}.side-panel h2{margin-top:0}.home-sidebar .foundation-intro{margin-top:0}.header-inner{gap:20px}.brand-name{max-width:300px}.home .hero h1{margin-top:0}@media(max-width:1150px){.header-inner{gap:12px}.language-switch{min-width:88px;font-size:12px}.brand-name{max-width:230px}.nav-links{gap:14px}}@media(max-width:640px){.header-inner{gap:8px}.language-switch{min-width:80px;font-size:12px;line-height:26px}.brand-name{max-width:140px}.brand-mark{font-size:31px}.brand{gap:7px}.menu-toggle{padding:6px}.language-status{font-size:9px;max-width:180px;white-space:normal;min-width:120px}}
/* One primary navigation row, grouped by purpose. */
.header-inner{min-height:86px;gap:22px}.header-inner .brand{order:1;flex-shrink:0;gap:12px}.header-inner #site-nav{order:2;margin-left:auto;gap:0}.header-inner .language-control{order:3;margin-left:0}.header-inner .menu-toggle{order:4}.header-inner .brand-name{font-size:14px;max-width:200px;line-height:1.45}.header-inner .brand-mark{font-size:42px}.unified-nav{gap:20px;white-space:nowrap;font-size:14px}.unified-nav>li>a,.nav-dropdown>summary{padding:13px 0;font-size:14px;font-weight:600;line-height:1.5;cursor:pointer;list-style:none}.nav-dropdown>summary::-webkit-details-marker{display:none}.nav-dropdown>summary>span{display:inline-block;font-size:13px;margin-left:4px;transition:transform .2s}.nav-dropdown[open]>summary>span{transform:rotate(180deg)}.unified-nav a[aria-current=page]{color:var(--green);box-shadow:inset 0 -2px var(--green)}.nav-dropdown{position:relative}.nav-dropdown[open]>summary{color:var(--green)}.dropdown-panel{list-style:none;padding:8px;margin:0;position:absolute;left:-14px;top:100%;min-width:225px;background:white;border:1px solid var(--line);border-radius:5px;box-shadow:0 10px 30px #092e3915;z-index:40}.dropdown-panel a{padding:10px 12px!important;font-size:14px;line-height:1.5;border:0!important;border-radius:3px;box-shadow:none!important}.dropdown-panel a:hover{background:var(--cream)}.unified-nav .nav-contact{color:var(--green)}
@media(max-width:1250px){.header-inner .brand-name{max-width:155px;font-size:13px}.unified-nav{gap:14px}.unified-nav>li>a,.nav-dropdown>summary{font-size:13px}.header-inner{gap:15px}.header-inner .language-switch{min-width:84px}}
@media(min-width:901px) and (max-width:1100px){.header-inner .brand-name{display:none}.header-inner .brand-mark{font-size:38px}.unified-nav{gap:12px}.header-inner{gap:12px}}
@media(max-width:900px){.header-inner{min-height:76px}.header-inner .brand-name{font-size:13px;max-width:210px}.header-inner .language-control{margin-left:auto}.header-inner #site-nav{margin-left:0;align-items:stretch}.unified-nav{gap:0;white-space:normal}.unified-nav>li>a,.nav-dropdown>summary{padding:12px 0;font-size:16px;border-bottom:1px solid var(--line)}.nav-dropdown>summary{display:flex;align-items:center;justify-content:space-between}.dropdown-panel{position:static;min-width:0;margin:5px 0 10px;box-shadow:none;border:0;border-left:2px solid var(--line);border-radius:0;padding:0 0 0 12px}.dropdown-panel a{font-size:15px}.unified-nav a[aria-current=page]{box-shadow:none}.unified-nav .nav-contact{font-weight:600}}
@media(max-width:640px){.header-inner .brand-name{font-size:11px;max-width:145px}.header-inner .brand-mark{font-size:31px}.header-inner{gap:8px}.header-inner .brand{gap:7px}.header-inner .language-switch{min-width:76px}}
.home-sidebar .sidebar-categories .category-directory{grid-template-columns:1fr;gap:0}.home-sidebar .sidebar-categories .category-directory a{padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:14px;line-height:1.55}.home-sidebar .sidebar-categories .category-directory span{font-size:12px}.home-sidebar .sidebar-categories .text-link{margin-top:15px}
/* Fluid desktop canvas and a wider, readable sidebar. */
.wrap{width:calc(100% - clamp(32px,4vw,96px));max-width:1760px}
.home-layout{grid-template-columns:minmax(0,1fr) clamp(340px,28%,460px);gap:32px}
.home-sidebar{padding-left:24px;min-width:0}
.home-sidebar .project-banner>span{font-size:14px;line-height:1.5}
.foundation-intro{align-items:flex-start}.foundation-intro>div{min-width:0}.foundation-intro h2{font-size:18px}.foundation-intro img{width:72px;height:88px;flex-shrink:0}
.home-sidebar .project-banner-section>.wrap{width:100%;max-width:none}
.article-wrap{max-width:900px}
@media(min-width:1001px) and (max-width:1150px){.home-feed .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-feed .post-card,.home-feed .post-card:last-child{display:flex;flex-direction:column;grid-column:auto}.home-feed .post-card .card-image,.home-feed .post-card:last-child .card-image{height:auto;aspect-ratio:1.8}.home-feed .post-card .card-copy{grid-template-rows:81px 48px 40px}.home-feed .post-card .card-copy>h3{height:81px;max-height:81px;-webkit-line-clamp:3}}
@media(max-width:1000px){.home-layout{grid-template-columns:minmax(0,1fr);gap:30px}.home-sidebar{padding-left:0;border-left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}}
@media(min-width:801px) and (max-width:1000px){.home-feed .cards-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-feed .post-card,.home-feed .post-card:last-child{display:flex;flex-direction:column;grid-column:auto}.home-feed .post-card .card-image,.home-feed .post-card:last-child .card-image{height:auto;aspect-ratio:1.8}.home-feed .post-card .card-copy{grid-template-rows:81px 48px 40px}.home-feed .post-card .card-copy>h3{height:81px;max-height:81px;-webkit-line-clamp:3}}
@media(max-width:640px){.wrap{width:calc(100% - 32px)}.home-layout{gap:24px}.home-sidebar{grid-template-columns:minmax(0,1fr);gap:22px}.home-sidebar .project-banner-section>.wrap{width:100%}}

/* Give the homepage and imported WordPress menus more breathing room. */
.header-inner,.home .hero-inner,.home-layout{max-width:1560px}
.header-inner{min-height:78px}
.header-inner .assigned-nav{gap:clamp(10px,1vw,18px);justify-content:flex-end;flex-wrap:wrap;row-gap:0}
.header-inner .assigned-nav>li>a{padding:10px 0;font-size:14px;line-height:1.4}
.home .hero-caption{display:none}
@media(min-width:1001px){.home-layout{grid-template-columns:minmax(0,1fr) clamp(285px,24%,370px);gap:clamp(24px,3vw,46px)}}
@media(min-width:901px) and (max-width:1200px){
  .header-inner .brand-name{display:block;max-width:210px}
  .header-inner .language-control{margin-left:auto}
  .header-inner .menu-toggle{display:flex;align-items:center;gap:12px;padding:7px 12px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--green);font-size:13px}
  .header-inner #site-nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:14px 28px 22px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 12px 24px #092e3915}
  .header-inner #site-nav.is-open{display:block}
  .header-inner .nav-links{flex-direction:column;align-items:stretch;gap:0}
  .header-inner .nav-links>li>a,.header-inner .nav-dropdown>summary{padding:12px 0;border-bottom:1px solid var(--line)}
  .header-inner .dropdown-panel,.header-inner .nav-links .sub-menu{position:static;box-shadow:none}
}
@media(max-width:900px){.header-inner .assigned-nav{gap:0}.header-inner .assigned-nav>li>a{padding:12px 0}}
